Merge pull request #582 from cosmos/491-deprecate-cosmwasm-launchpad
Rename cosmwasm package -> cosmwasm-launchpad
This commit is contained in:
commit
831d81764a
@ -2,6 +2,8 @@
|
||||
|
||||
## 0.24.0 (unreleased)
|
||||
|
||||
- @cosmjs/cosmwasm: This package is now deprecated. The same functionality is
|
||||
now available in @cosmjs/cosmwasm-launchpad.
|
||||
- @cosmjs/cosmwasm: `logs` is no longer exported. Use `logs` from
|
||||
@cosmjs/launchpad instead.
|
||||
- @cosmjs/cosmwasm: Export `JsonObject`, `ChangeAdminResult` and `WasmData`
|
||||
|
||||
22
HACKING.md
22
HACKING.md
@ -89,14 +89,14 @@ In the `scripts/` folder, a bunch of blockchains and other backend systems are
|
||||
started for testing purposes. Some ports need to be changed from the default in
|
||||
order to avoid conflicts. Here is an overview of the ports used:
|
||||
|
||||
| Port | Application | Usage |
|
||||
| ----- | --------------------- | ------------------------------------------------------------------------------ |
|
||||
| 1317 | wasmd LCD API | @cosmjs/launchpad and @cosmjs/cosmwasm tests |
|
||||
| 1318 | simapp LCD API | Manual Stargate debugging |
|
||||
| 1319 | wasmd LCD API | Manual Stargate debugging |
|
||||
| 4444 | socketserver | @cosmjs/sockets tests |
|
||||
| 4445 | socketserver slow | @cosmjs/sockets tests |
|
||||
| 11133 | Tendermint 0.33 RPC | @cosmjs/tendermint-rpc tests |
|
||||
| 11134 | Tendermint 0.34 RPC | @cosmjs/tendermint-rpc tests |
|
||||
| 26658 | simapp Tendermint RPC | Stargate client tests |
|
||||
| 26659 | wasmd Tendermint RPC | CosmWasm+Stargate tests ([soon™](https://github.com/cosmos/cosmjs/issues/491)) |
|
||||
| Port | Application | Usage |
|
||||
| ----- | --------------------- | ------------------------------------------------------ |
|
||||
| 1317 | wasmd LCD API | @cosmjs/launchpad and @cosmjs/cosmwasm-launchpad tests |
|
||||
| 1318 | simapp LCD API | Manual Stargate debugging |
|
||||
| 1319 | wasmd LCD API | Manual Stargate debugging |
|
||||
| 4444 | socketserver | @cosmjs/sockets tests |
|
||||
| 4445 | socketserver slow | @cosmjs/sockets tests |
|
||||
| 11133 | Tendermint 0.33 RPC | @cosmjs/tendermint-rpc tests |
|
||||
| 11134 | Tendermint 0.34 RPC | @cosmjs/tendermint-rpc tests |
|
||||
| 26658 | simapp Tendermint RPC | Stargate client tests |
|
||||
| 26659 | wasmd Tendermint RPC | @cosmjs/cosmwasm-stargate tests |
|
||||
|
||||
16
README.md
16
README.md
@ -13,14 +13,14 @@ CosmJS is a library that consists of many smaller npm packages within the
|
||||
[@cosmjs namespace](https://www.npmjs.com/org/cosmjs), a so called monorepo.
|
||||
Here are some of them to get an idea:
|
||||
|
||||
| Package | Description | Latest |
|
||||
| --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
|
||||
| [@cosmjs/launchpad](packages/launchpad) | A client library for the Cosmos SDK 0.37 (cosmoshub-3), 0.38 and 0.39 (Launchpad) | [](https://www.npmjs.com/package/@cosmjs/launchpad) |
|
||||
| [@cosmjs/faucet](packages/faucet) | A faucet application for node.js | [](https://www.npmjs.com/package/@cosmjs/faucet) |
|
||||
| [@cosmjs/cosmwasm](packages/cosmwasm) | Client for chains with the CosmWasm module enabled | [](https://www.npmjs.com/package/@cosmjs/cosmwasm) |
|
||||
| [@cosmjs/crypto](packages/crypto) | Cryptography for blockchain projects, e.g. hashing (SHA-2, Keccak256, Ripemd160), signing (secp256k1, ed25519), HD key derivation (BIPO39, SLIP-0010), KDFs and symmetric encryption for key storage (PBKDF2, Argon2, XChaCha20Poly1305) | [](https://www.npmjs.com/package/@cosmjs/crypto) |
|
||||
| [@cosmjs/encoding](packages/encoding) | Encoding helpers for blockchain projects | [](https://www.npmjs.com/package/@cosmjs/encoding) |
|
||||
| [@cosmjs/math](packages/math) | Safe integers; decimals for handling financial amounts | [](https://www.npmjs.com/package/@cosmjs/math) |
|
||||
| Package | Description | Latest |
|
||||
| ----------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [@cosmjs/launchpad](packages/launchpad) | A client library for the Cosmos SDK 0.37 (cosmoshub-3), 0.38 and 0.39 (Launchpad) | [](https://www.npmjs.com/package/@cosmjs/launchpad) |
|
||||
| [@cosmjs/faucet](packages/faucet) | A faucet application for node.js | [](https://www.npmjs.com/package/@cosmjs/faucet) |
|
||||
| [@cosmjs/cosmwasm-launchpad](packages/cosmwasm) | Client for chains with the CosmWasm module enabled | [](https://www.npmjs.com/package/@cosmjs/cosmwasm-launchpad) |
|
||||
| [@cosmjs/crypto](packages/crypto) | Cryptography for blockchain projects, e.g. hashing (SHA-2, Keccak256, Ripemd160), signing (secp256k1, ed25519), HD key derivation (BIPO39, SLIP-0010), KDFs and symmetric encryption for key storage (PBKDF2, Argon2, XChaCha20Poly1305) | [](https://www.npmjs.com/package/@cosmjs/crypto) |
|
||||
| [@cosmjs/encoding](packages/encoding) | Encoding helpers for blockchain projects | [](https://www.npmjs.com/package/@cosmjs/encoding) |
|
||||
| [@cosmjs/math](packages/math) | Safe integers; decimals for handling financial amounts | [](https://www.npmjs.com/package/@cosmjs/math) |
|
||||
|
||||
### Modularity
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
"!**/testdata/"
|
||||
],
|
||||
"dependencies": {
|
||||
"@cosmjs/cosmwasm": "^0.24.0-alpha.10",
|
||||
"@cosmjs/cosmwasm-launchpad": "^0.24.0-alpha.10",
|
||||
"@cosmjs/crypto": "^0.24.0-alpha.10",
|
||||
"@cosmjs/encoding": "^0.24.0-alpha.10",
|
||||
"@cosmjs/faucet-client": "^0.24.0-alpha.10",
|
||||
|
||||
@ -37,7 +37,7 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
|
||||
|
||||
const imports = new Map<string, readonly string[]>([
|
||||
[
|
||||
"@cosmjs/cosmwasm",
|
||||
"@cosmjs/cosmwasm-launchpad",
|
||||
[
|
||||
// cosmwasmclient
|
||||
"Account",
|
||||
|
||||
1
packages/cosmwasm-launchpad/.eslintignore
Symbolic link
1
packages/cosmwasm-launchpad/.eslintignore
Symbolic link
@ -0,0 +1 @@
|
||||
../../.eslintignore
|
||||
3
packages/cosmwasm-launchpad/.gitignore
vendored
Normal file
3
packages/cosmwasm-launchpad/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
build/
|
||||
dist/
|
||||
docs/
|
||||
30
packages/cosmwasm-launchpad/README.md
Normal file
30
packages/cosmwasm-launchpad/README.md
Normal file
@ -0,0 +1,30 @@
|
||||
# @cosmjs/cosmwasm-launchpad
|
||||
|
||||
[](https://www.npmjs.com/package/@cosmjs/cosmwasm-launchpad)
|
||||
|
||||
An SDK to build CosmWasm clients.
|
||||
|
||||
## Compatibility
|
||||
|
||||
| CosmWasm | x/wasm | @cosmjs/cosmwasm-launchpad |
|
||||
| --------- | --------- | -------------------------- |
|
||||
| 0.10-0.11 | 0.10-0.11 | `^0.23.0` |
|
||||
| 0.10 | 0.10 | `^0.22.0` |
|
||||
| 0.9 | 0.9 | `^0.21.0` |
|
||||
| 0.8 | 0.8 | `^0.20.1` |
|
||||
|
||||
## Development
|
||||
|
||||
Updating Hackatom development contract in `src/testdata/contract.json`:
|
||||
|
||||
```sh
|
||||
cd packages/cosmwasm-launchpad
|
||||
export HACKATOM_URL=https://github.com/CosmWasm/cosmwasm-launchpad/releases/download/v0.11.0-alpha4/hackatom.wasm
|
||||
echo "{\"// source\": \"$HACKATOM_URL\", \"data\": \"$(curl -sS --location $HACKATOM_URL | base64)\" }" | jq > src/testdata/contract.json
|
||||
```
|
||||
|
||||
## 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
packages/cosmwasm-launchpad/nonces/README.txt
Normal file
1
packages/cosmwasm-launchpad/nonces/README.txt
Normal file
@ -0,0 +1 @@
|
||||
Directory used to trigger lerna package updates for all packages
|
||||
57
packages/cosmwasm-launchpad/package.json
Normal file
57
packages/cosmwasm-launchpad/package.json
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
"name": "@cosmjs/cosmwasm-launchpad",
|
||||
"version": "0.24.0-alpha.10",
|
||||
"description": "CosmWasm SDK for Launchpad",
|
||||
"contributors": [
|
||||
"Ethan Frey <ethanfrey@users.noreply.github.com>",
|
||||
"Will Clark <willclarktech@users.noreply.github.com>"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"main": "build/index.js",
|
||||
"types": "types/index.d.ts",
|
||||
"files": [
|
||||
"build/",
|
||||
"types/",
|
||||
"*.md",
|
||||
"!*.spec.*",
|
||||
"!**/testdata/"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/CosmWasm/cosmjs/tree/master/packages/cosmwasm-launchpad"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"docs": "typedoc --options typedoc.js",
|
||||
"format": "prettier --write --loglevel warn \"./src/**/*.ts\"",
|
||||
"format-text": "prettier --write --prose-wrap always --print-width 80 \"./*.md\"",
|
||||
"lint": "eslint --max-warnings 0 \"**/*.{js,ts}\"",
|
||||
"lint-fix": "eslint --max-warnings 0 \"**/*.{js,ts}\" --fix",
|
||||
"move-types": "shx rm -rf ./types/* && shx mv build/types/* ./types && shx rm -rf ./types/testdata ./types/*.spec.d.ts ./types/*/*.spec.d.ts",
|
||||
"format-types": "prettier --write --loglevel warn \"./types/**/*.d.ts\"",
|
||||
"prebuild": "shx rm -rf ./build",
|
||||
"build": "tsc",
|
||||
"postbuild": "yarn move-types && yarn format-types",
|
||||
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
|
||||
"test-node": "node jasmine-testrunner.js",
|
||||
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",
|
||||
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless",
|
||||
"test": "yarn build-or-skip && yarn test-node",
|
||||
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet",
|
||||
"pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@cosmjs/crypto": "^0.24.0-alpha.10",
|
||||
"@cosmjs/encoding": "^0.24.0-alpha.10",
|
||||
"@cosmjs/launchpad": "^0.24.0-alpha.10",
|
||||
"@cosmjs/math": "^0.24.0-alpha.10",
|
||||
"@cosmjs/utils": "^0.24.0-alpha.10",
|
||||
"pako": "^2.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/pako": "^1.0.1",
|
||||
"readonly-date": "^1.0.0"
|
||||
}
|
||||
}
|
||||
59
packages/cosmwasm-launchpad/src/index.ts
Normal file
59
packages/cosmwasm-launchpad/src/index.ts
Normal file
@ -0,0 +1,59 @@
|
||||
export { isValidBuilder } from "./builder";
|
||||
export { Expiration } from "./interfaces";
|
||||
export { setupWasmExtension, WasmExtension } from "./lcdapi/wasm";
|
||||
|
||||
export { BankMsg, CosmosMsg, CustomMsg, StakingMsg, WasmMsg } from "./cosmosmsg";
|
||||
export {
|
||||
Account,
|
||||
Block,
|
||||
BlockHeader,
|
||||
Code,
|
||||
CodeDetails,
|
||||
Contract,
|
||||
ContractCodeHistoryEntry,
|
||||
CosmWasmClient,
|
||||
GetSequenceResult,
|
||||
SearchByHeightQuery,
|
||||
SearchBySentFromOrToQuery,
|
||||
SearchByTagsQuery,
|
||||
SearchTxQuery,
|
||||
SearchTxFilter,
|
||||
} from "./cosmwasmclient";
|
||||
export { Cw1CosmWasmClient } from "./cw1cosmwasmclient";
|
||||
export {
|
||||
Cw3CosmWasmClient,
|
||||
ProposalResult,
|
||||
ProposalsResult,
|
||||
ThresholdResult,
|
||||
Vote,
|
||||
VoteResult,
|
||||
VotesResult,
|
||||
VoterResult,
|
||||
VotersResult,
|
||||
} from "./cw3cosmwasmclient";
|
||||
export {
|
||||
ChangeAdminResult,
|
||||
ExecuteResult,
|
||||
CosmWasmFeeTable,
|
||||
InstantiateOptions,
|
||||
InstantiateResult,
|
||||
MigrateResult,
|
||||
SigningCosmWasmClient,
|
||||
UploadMeta,
|
||||
UploadResult,
|
||||
} from "./signingcosmwasmclient";
|
||||
export {
|
||||
isMsgClearAdmin,
|
||||
isMsgExecuteContract,
|
||||
isMsgInstantiateContract,
|
||||
isMsgMigrateContract,
|
||||
isMsgUpdateAdmin,
|
||||
isMsgStoreCode,
|
||||
MsgClearAdmin,
|
||||
MsgExecuteContract,
|
||||
MsgInstantiateContract,
|
||||
MsgMigrateContract,
|
||||
MsgUpdateAdmin,
|
||||
MsgStoreCode,
|
||||
} from "./msgs";
|
||||
export { JsonObject, parseWasmData, WasmData } from "./types";
|
||||
12
packages/cosmwasm-launchpad/tsconfig.json
Normal file
12
packages/cosmwasm-launchpad/tsconfig.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"outDir": "build",
|
||||
"declarationDir": "build/types",
|
||||
"rootDir": "src"
|
||||
},
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
||||
13
packages/cosmwasm-launchpad/typedoc.js
Normal file
13
packages/cosmwasm-launchpad/typedoc.js
Normal file
@ -0,0 +1,13 @@
|
||||
const packageJson = require("./package.json");
|
||||
|
||||
module.exports = {
|
||||
inputFiles: ["./src"],
|
||||
out: "docs",
|
||||
exclude: "**/*.spec.ts",
|
||||
name: `${packageJson.name} Documentation`,
|
||||
readme: "README.md",
|
||||
mode: "file",
|
||||
excludeExternals: true,
|
||||
excludeNotExported: true,
|
||||
excludePrivate: true,
|
||||
};
|
||||
58
packages/cosmwasm-launchpad/types/index.d.ts
vendored
Normal file
58
packages/cosmwasm-launchpad/types/index.d.ts
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
export { isValidBuilder } from "./builder";
|
||||
export { Expiration } from "./interfaces";
|
||||
export { setupWasmExtension, WasmExtension } from "./lcdapi/wasm";
|
||||
export { BankMsg, CosmosMsg, CustomMsg, StakingMsg, WasmMsg } from "./cosmosmsg";
|
||||
export {
|
||||
Account,
|
||||
Block,
|
||||
BlockHeader,
|
||||
Code,
|
||||
CodeDetails,
|
||||
Contract,
|
||||
ContractCodeHistoryEntry,
|
||||
CosmWasmClient,
|
||||
GetSequenceResult,
|
||||
SearchByHeightQuery,
|
||||
SearchBySentFromOrToQuery,
|
||||
SearchByTagsQuery,
|
||||
SearchTxQuery,
|
||||
SearchTxFilter,
|
||||
} from "./cosmwasmclient";
|
||||
export { Cw1CosmWasmClient } from "./cw1cosmwasmclient";
|
||||
export {
|
||||
Cw3CosmWasmClient,
|
||||
ProposalResult,
|
||||
ProposalsResult,
|
||||
ThresholdResult,
|
||||
Vote,
|
||||
VoteResult,
|
||||
VotesResult,
|
||||
VoterResult,
|
||||
VotersResult,
|
||||
} from "./cw3cosmwasmclient";
|
||||
export {
|
||||
ChangeAdminResult,
|
||||
ExecuteResult,
|
||||
CosmWasmFeeTable,
|
||||
InstantiateOptions,
|
||||
InstantiateResult,
|
||||
MigrateResult,
|
||||
SigningCosmWasmClient,
|
||||
UploadMeta,
|
||||
UploadResult,
|
||||
} from "./signingcosmwasmclient";
|
||||
export {
|
||||
isMsgClearAdmin,
|
||||
isMsgExecuteContract,
|
||||
isMsgInstantiateContract,
|
||||
isMsgMigrateContract,
|
||||
isMsgUpdateAdmin,
|
||||
isMsgStoreCode,
|
||||
MsgClearAdmin,
|
||||
MsgExecuteContract,
|
||||
MsgInstantiateContract,
|
||||
MsgMigrateContract,
|
||||
MsgUpdateAdmin,
|
||||
MsgStoreCode,
|
||||
} from "./msgs";
|
||||
export { JsonObject, parseWasmData, WasmData } from "./types";
|
||||
@ -48,7 +48,7 @@
|
||||
"postdefine-proto": "prettier --write \"src/codec/generated/codecimpl.*\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@cosmjs/cosmwasm": "^0.24.0-alpha.10",
|
||||
"@cosmjs/cosmwasm-launchpad": "^0.24.0-alpha.10",
|
||||
"@cosmjs/crypto": "^0.24.0-alpha.10",
|
||||
"@cosmjs/encoding": "^0.24.0-alpha.10",
|
||||
"@cosmjs/launchpad": "^0.24.0-alpha.10",
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import { Code } from "@cosmjs/cosmwasm";
|
||||
import { Code } from "@cosmjs/cosmwasm-launchpad";
|
||||
import { sha256 } from "@cosmjs/crypto";
|
||||
import { Bech32, fromAscii, fromBase64, fromHex, toAscii, toBase64 } from "@cosmjs/encoding";
|
||||
import { coins, logs, StdFee } from "@cosmjs/launchpad";
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import { Code, CodeDetails, Contract, ContractCodeHistoryEntry, JsonObject } from "@cosmjs/cosmwasm";
|
||||
import {
|
||||
Code,
|
||||
CodeDetails,
|
||||
Contract,
|
||||
ContractCodeHistoryEntry,
|
||||
JsonObject,
|
||||
} from "@cosmjs/cosmwasm-launchpad";
|
||||
import { fromAscii, toHex } from "@cosmjs/encoding";
|
||||
import {
|
||||
Block,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import { UploadMeta } from "@cosmjs/cosmwasm";
|
||||
import { UploadMeta } from "@cosmjs/cosmwasm-launchpad";
|
||||
import { sha256 } from "@cosmjs/crypto";
|
||||
import { toHex } from "@cosmjs/encoding";
|
||||
import { coin, coins, GasPrice } from "@cosmjs/launchpad";
|
||||
|
||||
@ -9,7 +9,7 @@ import {
|
||||
MigrateResult,
|
||||
UploadMeta,
|
||||
UploadResult,
|
||||
} from "@cosmjs/cosmwasm";
|
||||
} from "@cosmjs/cosmwasm-launchpad";
|
||||
import { sha256 } from "@cosmjs/crypto";
|
||||
import { fromBase64, toAscii, toHex } from "@cosmjs/encoding";
|
||||
import {
|
||||
|
||||
@ -1,4 +1,10 @@
|
||||
import { Code, CodeDetails, Contract, ContractCodeHistoryEntry, JsonObject } from "@cosmjs/cosmwasm";
|
||||
import {
|
||||
Code,
|
||||
CodeDetails,
|
||||
Contract,
|
||||
ContractCodeHistoryEntry,
|
||||
JsonObject,
|
||||
} from "@cosmjs/cosmwasm-launchpad";
|
||||
import { Block, Coin, SearchTxFilter, SearchTxQuery } from "@cosmjs/launchpad";
|
||||
import {
|
||||
Account,
|
||||
|
||||
@ -7,7 +7,7 @@ import {
|
||||
MigrateResult,
|
||||
UploadMeta,
|
||||
UploadResult,
|
||||
} from "@cosmjs/cosmwasm";
|
||||
} from "@cosmjs/cosmwasm-launchpad";
|
||||
import { Coin, CosmosFeeTable, GasLimits, GasPrice, StdFee } from "@cosmjs/launchpad";
|
||||
import { EncodeObject, OfflineSigner, Registry } from "@cosmjs/proto-signing";
|
||||
import { BroadcastTxResponse } from "@cosmjs/stargate";
|
||||
|
||||
@ -1,30 +1,5 @@
|
||||
# @cosmjs/cosmwasm
|
||||
|
||||
[](https://www.npmjs.com/package/@cosmjs/cosmwasm)
|
||||
|
||||
An SDK to build CosmWasm clients.
|
||||
|
||||
## Compatibility
|
||||
|
||||
| CosmWasm | x/wasm | @cosmjs/cosmwasm |
|
||||
| --------- | --------- | ---------------- |
|
||||
| 0.10-0.11 | 0.10-0.11 | `^0.23.0` |
|
||||
| 0.10 | 0.10 | `^0.22.0` |
|
||||
| 0.9 | 0.9 | `^0.21.0` |
|
||||
| 0.8 | 0.8 | `^0.20.1` |
|
||||
|
||||
## Development
|
||||
|
||||
Updating Hackatom development contract in `src/testdata/contract.json`:
|
||||
|
||||
```sh
|
||||
cd packages/cosmwasm
|
||||
export HACKATOM_URL=https://github.com/CosmWasm/cosmwasm/releases/download/v0.11.0-alpha4/hackatom.wasm
|
||||
echo "{\"// source\": \"$HACKATOM_URL\", \"data\": \"$(curl -sS --location $HACKATOM_URL | base64)\" }" | jq > src/testdata/contract.json
|
||||
```
|
||||
|
||||
## 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)).
|
||||
This package is deprecated and simply wraps `@cosmjs/cosmwasm-launchpad`, which
|
||||
should be used for Launchpad support. At some point in the future this package
|
||||
name will be used for a Stargate-compatible CosmWasm package.
|
||||
|
||||
@ -2,7 +2,10 @@
|
||||
"name": "@cosmjs/cosmwasm",
|
||||
"version": "0.24.0-alpha.10",
|
||||
"description": "CosmWasm SDK",
|
||||
"author": "Ethan Frey <ethanfrey@users.noreply.github.com>",
|
||||
"contributors": [
|
||||
"Ethan Frey <ethanfrey@users.noreply.github.com>",
|
||||
"Will Clark <willclarktech@users.noreply.github.com>"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"main": "build/index.js",
|
||||
"types": "types/index.d.ts",
|
||||
@ -26,29 +29,14 @@
|
||||
"format-text": "prettier --write --prose-wrap always --print-width 80 \"./*.md\"",
|
||||
"lint": "eslint --max-warnings 0 \"**/*.{js,ts}\"",
|
||||
"lint-fix": "eslint --max-warnings 0 \"**/*.{js,ts}\" --fix",
|
||||
"move-types": "shx rm -rf ./types/* && shx mv build/types/* ./types && shx rm -rf ./types/testdata ./types/*.spec.d.ts ./types/*/*.spec.d.ts",
|
||||
"move-types": "shx rm -rf ./types/* && shx mv build/types/* ./types",
|
||||
"format-types": "prettier --write --loglevel warn \"./types/**/*.d.ts\"",
|
||||
"prebuild": "shx rm -rf ./build",
|
||||
"build": "tsc",
|
||||
"postbuild": "yarn move-types && yarn format-types",
|
||||
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
|
||||
"test-node": "node jasmine-testrunner.js",
|
||||
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",
|
||||
"test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless",
|
||||
"test": "yarn build-or-skip && yarn test-node",
|
||||
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet",
|
||||
"pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js"
|
||||
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@cosmjs/crypto": "^0.24.0-alpha.10",
|
||||
"@cosmjs/encoding": "^0.24.0-alpha.10",
|
||||
"@cosmjs/launchpad": "^0.24.0-alpha.10",
|
||||
"@cosmjs/math": "^0.24.0-alpha.10",
|
||||
"@cosmjs/utils": "^0.24.0-alpha.10",
|
||||
"pako": "^2.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/pako": "^1.0.1",
|
||||
"readonly-date": "^1.0.0"
|
||||
"@cosmjs/cosmwasm-launchpad": "^0.24.0-alpha.10"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,59 +1 @@
|
||||
export { isValidBuilder } from "./builder";
|
||||
export { Expiration } from "./interfaces";
|
||||
export { setupWasmExtension, WasmExtension } from "./lcdapi/wasm";
|
||||
|
||||
export { BankMsg, CosmosMsg, CustomMsg, StakingMsg, WasmMsg } from "./cosmosmsg";
|
||||
export {
|
||||
Account,
|
||||
Block,
|
||||
BlockHeader,
|
||||
Code,
|
||||
CodeDetails,
|
||||
Contract,
|
||||
ContractCodeHistoryEntry,
|
||||
CosmWasmClient,
|
||||
GetSequenceResult,
|
||||
SearchByHeightQuery,
|
||||
SearchBySentFromOrToQuery,
|
||||
SearchByTagsQuery,
|
||||
SearchTxQuery,
|
||||
SearchTxFilter,
|
||||
} from "./cosmwasmclient";
|
||||
export { Cw1CosmWasmClient } from "./cw1cosmwasmclient";
|
||||
export {
|
||||
Cw3CosmWasmClient,
|
||||
ProposalResult,
|
||||
ProposalsResult,
|
||||
ThresholdResult,
|
||||
Vote,
|
||||
VoteResult,
|
||||
VotesResult,
|
||||
VoterResult,
|
||||
VotersResult,
|
||||
} from "./cw3cosmwasmclient";
|
||||
export {
|
||||
ChangeAdminResult,
|
||||
ExecuteResult,
|
||||
CosmWasmFeeTable,
|
||||
InstantiateOptions,
|
||||
InstantiateResult,
|
||||
MigrateResult,
|
||||
SigningCosmWasmClient,
|
||||
UploadMeta,
|
||||
UploadResult,
|
||||
} from "./signingcosmwasmclient";
|
||||
export {
|
||||
isMsgClearAdmin,
|
||||
isMsgExecuteContract,
|
||||
isMsgInstantiateContract,
|
||||
isMsgMigrateContract,
|
||||
isMsgUpdateAdmin,
|
||||
isMsgStoreCode,
|
||||
MsgClearAdmin,
|
||||
MsgExecuteContract,
|
||||
MsgInstantiateContract,
|
||||
MsgMigrateContract,
|
||||
MsgUpdateAdmin,
|
||||
MsgStoreCode,
|
||||
} from "./msgs";
|
||||
export { JsonObject, parseWasmData, WasmData } from "./types";
|
||||
export * from "@cosmjs/cosmwasm-launchpad";
|
||||
|
||||
59
packages/cosmwasm/types/index.d.ts
vendored
59
packages/cosmwasm/types/index.d.ts
vendored
@ -1,58 +1 @@
|
||||
export { isValidBuilder } from "./builder";
|
||||
export { Expiration } from "./interfaces";
|
||||
export { setupWasmExtension, WasmExtension } from "./lcdapi/wasm";
|
||||
export { BankMsg, CosmosMsg, CustomMsg, StakingMsg, WasmMsg } from "./cosmosmsg";
|
||||
export {
|
||||
Account,
|
||||
Block,
|
||||
BlockHeader,
|
||||
Code,
|
||||
CodeDetails,
|
||||
Contract,
|
||||
ContractCodeHistoryEntry,
|
||||
CosmWasmClient,
|
||||
GetSequenceResult,
|
||||
SearchByHeightQuery,
|
||||
SearchBySentFromOrToQuery,
|
||||
SearchByTagsQuery,
|
||||
SearchTxQuery,
|
||||
SearchTxFilter,
|
||||
} from "./cosmwasmclient";
|
||||
export { Cw1CosmWasmClient } from "./cw1cosmwasmclient";
|
||||
export {
|
||||
Cw3CosmWasmClient,
|
||||
ProposalResult,
|
||||
ProposalsResult,
|
||||
ThresholdResult,
|
||||
Vote,
|
||||
VoteResult,
|
||||
VotesResult,
|
||||
VoterResult,
|
||||
VotersResult,
|
||||
} from "./cw3cosmwasmclient";
|
||||
export {
|
||||
ChangeAdminResult,
|
||||
ExecuteResult,
|
||||
CosmWasmFeeTable,
|
||||
InstantiateOptions,
|
||||
InstantiateResult,
|
||||
MigrateResult,
|
||||
SigningCosmWasmClient,
|
||||
UploadMeta,
|
||||
UploadResult,
|
||||
} from "./signingcosmwasmclient";
|
||||
export {
|
||||
isMsgClearAdmin,
|
||||
isMsgExecuteContract,
|
||||
isMsgInstantiateContract,
|
||||
isMsgMigrateContract,
|
||||
isMsgUpdateAdmin,
|
||||
isMsgStoreCode,
|
||||
MsgClearAdmin,
|
||||
MsgExecuteContract,
|
||||
MsgInstantiateContract,
|
||||
MsgMigrateContract,
|
||||
MsgUpdateAdmin,
|
||||
MsgStoreCode,
|
||||
} from "./msgs";
|
||||
export { JsonObject, parseWasmData, WasmData } from "./types";
|
||||
export * from "@cosmjs/cosmwasm-launchpad";
|
||||
|
||||
@ -169,7 +169,10 @@ allows applications to add their extensions without changing CosmJS. As an
|
||||
example we show how to build a client for a blockchain with a wasm module:
|
||||
|
||||
```ts
|
||||
import { MsgExecuteContract, setupWasmExtension } from "@cosmjs/cosmwasm";
|
||||
import {
|
||||
MsgExecuteContract,
|
||||
setupWasmExtension,
|
||||
} from "@cosmjs/cosmwasm-launchpad";
|
||||
import {
|
||||
assertIsBroadcastTxResult,
|
||||
LcdClient,
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm");
|
||||
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm-launchpad");
|
||||
const { Secp256k1HdWallet } = require("@cosmjs/launchpad");
|
||||
const fs = require("fs");
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm");
|
||||
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm-launchpad");
|
||||
const { Secp256k1HdWallet } = require("@cosmjs/launchpad");
|
||||
const fs = require("fs");
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm");
|
||||
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm-launchpad");
|
||||
const { Secp256k1HdWallet } = require("@cosmjs/launchpad");
|
||||
const fs = require("fs");
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm");
|
||||
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm-launchpad");
|
||||
const { Secp256k1HdWallet } = require("@cosmjs/launchpad");
|
||||
const fs = require("fs");
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm");
|
||||
const { SigningCosmWasmClient } = require("@cosmjs/cosmwasm-launchpad");
|
||||
const { Secp256k1HdWallet } = require("@cosmjs/launchpad");
|
||||
const fs = require("fs");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user