mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Rename @cosmjs/sdk38 to @cosmjs/launchpad
This commit is contained in:
parent
8410f41a40
commit
c575f930a8
@ -42,8 +42,8 @@
|
||||
"@cosmjs/cosmwasm": "^0.21.1",
|
||||
"@cosmjs/crypto": "^0.21.1",
|
||||
"@cosmjs/encoding": "^0.21.1",
|
||||
"@cosmjs/launchpad": "^0.21.1",
|
||||
"@cosmjs/math": "^0.21.1",
|
||||
"@cosmjs/sdk38": "^0.21.1",
|
||||
"@cosmjs/utils": "^0.21.1",
|
||||
"axios": "^0.19.2",
|
||||
"babylon": "^6.18.0",
|
||||
|
@ -78,9 +78,8 @@ export function main(originalArgs: readonly string[]): void {
|
||||
"@cosmjs/encoding",
|
||||
["fromAscii", "fromBase64", "fromHex", "fromUtf8", "toAscii", "toBase64", "toHex", "toUtf8", "Bech32"],
|
||||
],
|
||||
["@cosmjs/math", ["Decimal", "Int53", "Uint32", "Uint53", "Uint64"]],
|
||||
[
|
||||
"@cosmjs/sdk38",
|
||||
"@cosmjs/launchpad",
|
||||
[
|
||||
"coin",
|
||||
"coins",
|
||||
@ -106,6 +105,7 @@ export function main(originalArgs: readonly string[]): void {
|
||||
"StdTx",
|
||||
],
|
||||
],
|
||||
["@cosmjs/math", ["Decimal", "Int53", "Uint32", "Uint53", "Uint64"]],
|
||||
["@cosmjs/utils", ["assert", "sleep"]],
|
||||
]);
|
||||
|
||||
|
@ -40,8 +40,8 @@
|
||||
"dependencies": {
|
||||
"@cosmjs/crypto": "^0.21.1",
|
||||
"@cosmjs/encoding": "^0.21.1",
|
||||
"@cosmjs/launchpad": "^0.21.1",
|
||||
"@cosmjs/math": "^0.21.1",
|
||||
"@cosmjs/sdk38": "^0.21.1",
|
||||
"@cosmjs/utils": "^0.21.1",
|
||||
"axios": "^0.19.0",
|
||||
"fast-deep-equal": "^3.1.1",
|
||||
|
@ -9,7 +9,7 @@ import {
|
||||
makeSignBytes,
|
||||
MsgSend,
|
||||
Secp256k1Wallet,
|
||||
} from "@cosmjs/sdk38";
|
||||
} from "@cosmjs/launchpad";
|
||||
import { assert, sleep } from "@cosmjs/utils";
|
||||
|
||||
import { CosmWasmClient } from "./cosmwasmclient";
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import { Sha256 } from "@cosmjs/crypto";
|
||||
import { Bech32, fromHex, fromUtf8, toAscii, toBase64 } from "@cosmjs/encoding";
|
||||
import { assertIsPostTxSuccess, makeSignBytes, MsgSend, Secp256k1Wallet, StdFee } from "@cosmjs/sdk38";
|
||||
import { assertIsPostTxSuccess, makeSignBytes, MsgSend, Secp256k1Wallet, StdFee } from "@cosmjs/launchpad";
|
||||
import { assert, sleep } from "@cosmjs/utils";
|
||||
import { ReadonlyDate } from "readonly-date";
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { Sha256 } from "@cosmjs/crypto";
|
||||
import { fromBase64, fromHex, toHex } from "@cosmjs/encoding";
|
||||
import { Uint53 } from "@cosmjs/math";
|
||||
import {
|
||||
AuthExtension,
|
||||
BroadcastMode,
|
||||
@ -14,7 +13,8 @@ import {
|
||||
setupAuthExtension,
|
||||
StdTx,
|
||||
uint64ToNumber,
|
||||
} from "@cosmjs/sdk38";
|
||||
} from "@cosmjs/launchpad";
|
||||
import { Uint53 } from "@cosmjs/math";
|
||||
|
||||
import { setupWasmExtension, WasmExtension } from "./lcdapi/wasm";
|
||||
import { parseLogs } from "./logs";
|
||||
|
@ -13,7 +13,7 @@ import {
|
||||
Secp256k1Wallet,
|
||||
setupAuthExtension,
|
||||
StdFee,
|
||||
} from "@cosmjs/sdk38";
|
||||
} from "@cosmjs/launchpad";
|
||||
import { assert } from "@cosmjs/utils";
|
||||
|
||||
import { findAttribute, parseLogs } from "../logs";
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import { fromBase64, fromUtf8, toHex, toUtf8 } from "@cosmjs/encoding";
|
||||
import { LcdApiArray, LcdClient, normalizeLcdApiArray } from "@cosmjs/sdk38";
|
||||
import { LcdApiArray, LcdClient, normalizeLcdApiArray } from "@cosmjs/launchpad";
|
||||
|
||||
import { JsonObject, Model, parseWasmData, WasmData } from "../types";
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import { Coin, Msg } from "@cosmjs/sdk38";
|
||||
import { Coin, Msg } from "@cosmjs/launchpad";
|
||||
|
||||
// TODO: implement
|
||||
/**
|
||||
|
@ -10,7 +10,7 @@ import {
|
||||
MsgDelegate,
|
||||
Secp256k1Wallet,
|
||||
setupAuthExtension,
|
||||
} from "@cosmjs/sdk38";
|
||||
} from "@cosmjs/launchpad";
|
||||
import { assert } from "@cosmjs/utils";
|
||||
|
||||
import { PrivateCosmWasmClient } from "./cosmwasmclient";
|
||||
|
@ -1,7 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import { Sha256 } from "@cosmjs/crypto";
|
||||
import { toBase64, toHex } from "@cosmjs/encoding";
|
||||
import { Uint53 } from "@cosmjs/math";
|
||||
import {
|
||||
BroadcastMode,
|
||||
Coin,
|
||||
@ -16,7 +15,8 @@ import {
|
||||
StdFee,
|
||||
StdSignature,
|
||||
StdTx,
|
||||
} from "@cosmjs/sdk38";
|
||||
} from "@cosmjs/launchpad";
|
||||
import { Uint53 } from "@cosmjs/math";
|
||||
import pako from "pako";
|
||||
|
||||
import { isValidBuilder } from "./builder";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Random } from "@cosmjs/crypto";
|
||||
import { Bech32, fromBase64 } from "@cosmjs/encoding";
|
||||
import { Msg, StdFee, StdSignature, StdTx } from "@cosmjs/sdk38";
|
||||
import { Msg, StdFee, StdSignature, StdTx } from "@cosmjs/launchpad";
|
||||
|
||||
import hackatom from "./testdata/contract.json";
|
||||
|
||||
|
2
packages/cosmwasm/types/cosmwasmclient.d.ts
vendored
2
packages/cosmwasm/types/cosmwasmclient.d.ts
vendored
@ -8,7 +8,7 @@ import {
|
||||
PostTxResult,
|
||||
PubKey,
|
||||
StdTx,
|
||||
} from "@cosmjs/sdk38";
|
||||
} from "@cosmjs/launchpad";
|
||||
import { WasmExtension } from "./lcdapi/wasm";
|
||||
import { JsonObject } from "./types";
|
||||
export interface GetSequenceResult {
|
||||
|
2
packages/cosmwasm/types/lcdapi/wasm.d.ts
vendored
2
packages/cosmwasm/types/lcdapi/wasm.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
import { LcdClient } from "@cosmjs/sdk38";
|
||||
import { LcdClient } from "@cosmjs/launchpad";
|
||||
import { JsonObject, Model } from "../types";
|
||||
export interface CodeInfo {
|
||||
readonly id: number;
|
||||
|
2
packages/cosmwasm/types/msgs.d.ts
vendored
2
packages/cosmwasm/types/msgs.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
import { Coin, Msg } from "@cosmjs/sdk38";
|
||||
import { Coin, Msg } from "@cosmjs/launchpad";
|
||||
/**
|
||||
* @see https://github.com/CosmWasm/wasmd/blob/v0.10.0-alpha/x/wasm/internal/types/params.go#L68-L71
|
||||
*/
|
||||
|
@ -1,4 +1,12 @@
|
||||
import { BroadcastMode, Coin, Msg, OfflineSigner, PostTxResult, StdFee, StdSignature } from "@cosmjs/sdk38";
|
||||
import {
|
||||
BroadcastMode,
|
||||
Coin,
|
||||
Msg,
|
||||
OfflineSigner,
|
||||
PostTxResult,
|
||||
StdFee,
|
||||
StdSignature,
|
||||
} from "@cosmjs/launchpad";
|
||||
import { Account, CosmWasmClient, GetSequenceResult } from "./cosmwasmclient";
|
||||
import { Log } from "./logs";
|
||||
export interface SigningCallback {
|
||||
|
@ -35,6 +35,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@cosmjs/cosmwasm": "^0.21.1",
|
||||
"@cosmjs/sdk38": "^0.21.1"
|
||||
"@cosmjs/launchpad": "^0.21.1"
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import { SigningCosmWasmClient } from "@cosmjs/cosmwasm";
|
||||
import { Coin, coins, makeCosmoshubPath, Secp256k1Wallet } from "@cosmjs/sdk38";
|
||||
import { Coin, coins, makeCosmoshubPath, Secp256k1Wallet } from "@cosmjs/launchpad";
|
||||
|
||||
import {
|
||||
BalanceResponse,
|
||||
|
@ -36,8 +36,8 @@
|
||||
"dependencies": {
|
||||
"@cosmjs/crypto": "^0.21.1",
|
||||
"@cosmjs/encoding": "^0.21.1",
|
||||
"@cosmjs/launchpad": "^0.21.1",
|
||||
"@cosmjs/math": "^0.21.1",
|
||||
"@cosmjs/sdk38": "^0.21.1",
|
||||
"@cosmjs/utils": "^0.21.1",
|
||||
"@koa/cors": "^3.0.0",
|
||||
"koa": "^2.11.0",
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { CosmosClient } from "@cosmjs/sdk38";
|
||||
import { CosmosClient } from "@cosmjs/launchpad";
|
||||
|
||||
import { Webserver } from "../../api/webserver";
|
||||
import * as constants from "../../constants";
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Coin } from "@cosmjs/launchpad";
|
||||
import { Decimal } from "@cosmjs/math";
|
||||
import { Coin } from "@cosmjs/sdk38";
|
||||
|
||||
import { MinimalAccount, SendJob, TokenConfiguration } from "./types";
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Random } from "@cosmjs/crypto";
|
||||
import { Bech32 } from "@cosmjs/encoding";
|
||||
import { CosmosClient } from "@cosmjs/sdk38";
|
||||
import { CosmosClient } from "@cosmjs/launchpad";
|
||||
import { assert } from "@cosmjs/utils";
|
||||
|
||||
import { Faucet } from "./faucet";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { CosmosClient, OfflineSigner, SigningCosmosClient } from "@cosmjs/sdk38";
|
||||
import { CosmosClient, OfflineSigner, SigningCosmosClient } from "@cosmjs/launchpad";
|
||||
import { sleep } from "@cosmjs/utils";
|
||||
|
||||
import { debugAccount, logAccountsState, logSendJob } from "./debugging";
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { pathToString } from "@cosmjs/crypto";
|
||||
import { makeCosmoshubPath, OfflineSigner, Secp256k1Wallet } from "@cosmjs/sdk38";
|
||||
import { makeCosmoshubPath, OfflineSigner, Secp256k1Wallet } from "@cosmjs/launchpad";
|
||||
|
||||
export async function createWallets(
|
||||
mnemonic: string,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Coin } from "@cosmjs/launchpad";
|
||||
import { Decimal, Uint53 } from "@cosmjs/math";
|
||||
import { Coin } from "@cosmjs/sdk38";
|
||||
|
||||
import { BankTokenMeta, MinimalAccount, TokenConfiguration } from "./types";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Account, Coin } from "@cosmjs/sdk38";
|
||||
import { Account, Coin } from "@cosmjs/launchpad";
|
||||
|
||||
export interface SendJob {
|
||||
readonly sender: string;
|
||||
|
14
packages/launchpad/README.md
Normal file
14
packages/launchpad/README.md
Normal file
@ -0,0 +1,14 @@
|
||||
# @cosmjs/launchpad
|
||||
|
||||
[](https://www.npmjs.com/package/@cosmjs/launchpad)
|
||||
|
||||
A client library for the Cosmos SDK 0.37 (cosmoshub-3), 0.38 and 0.39
|
||||
(Launchpad). See the article
|
||||
[Launchpad — A pre-stargate stable version of the Cosmos SDK](https://blog.cosmos.network/launchpad-a-pre-stargate-stable-version-of-the-cosmos-sdk-e0c58d8c4e24)
|
||||
to learn more about launchpad.
|
||||
|
||||
## License
|
||||
|
||||
This package is part of the cosmjs repository, licensed under the Apache License
|
||||
2.0 (see [NOTICE](https://github.com/CosmWasm/cosmjs/blob/master/NOTICE) and
|
||||
[LICENSE](https://github.com/CosmWasm/cosmjs/blob/master/LICENSE)).
|
@ -1,8 +1,11 @@
|
||||
{
|
||||
"name": "@cosmjs/sdk38",
|
||||
"name": "@cosmjs/launchpad",
|
||||
"version": "0.21.1",
|
||||
"description": "Utilities for Cosmos SDK 0.38",
|
||||
"author": "Ethan Frey <ethanfrey@users.noreply.github.com>",
|
||||
"description": "A client library for the Cosmos SDK 0.37 (cosmoshub-3), 0.38 and 0.39 (Launchpad)",
|
||||
"contributors": [
|
||||
"Ethan Frey <ethanfrey@users.noreply.github.com>",
|
||||
"Simon Warta <webmaster128@users.noreply.github.com>"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"main": "build/index.js",
|
||||
"types": "types/index.d.ts",
|
||||
@ -15,7 +18,7 @@
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/CosmWasm/cosmjs/tree/master/packages/sdk38"
|
||||
"url": "https://github.com/CosmWasm/cosmjs/tree/master/packages/launchpad"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user