Update to wasmd v0.10.0-beta1
This commit is contained in:
parent
650f638b3d
commit
70e9c1532a
@ -8,9 +8,20 @@ An SDK to build CosmWasm clients.
|
||||
|
||||
| CosmWasm | x/wasm | @cosmjs/cosmwasm |
|
||||
| -------- | ------ | ---------------- |
|
||||
| 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.10.0-alpha2/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
|
||||
|
||||
@ -58,7 +58,6 @@ async function uploadContract(
|
||||
wasm_byte_code: toBase64(contract.data),
|
||||
source: contract.source || "",
|
||||
builder: contract.builder || "",
|
||||
instantiate_permission: null,
|
||||
},
|
||||
};
|
||||
const fee: StdFee = {
|
||||
|
||||
@ -24,7 +24,7 @@ export interface MsgStoreCode extends Msg {
|
||||
readonly source: string;
|
||||
/** A docker tag. Can be empty. */
|
||||
readonly builder: string;
|
||||
readonly instantiate_permission: AccessConfig | null;
|
||||
readonly instantiate_permission?: AccessConfig;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -214,7 +214,6 @@ export class SigningCosmWasmClient extends CosmWasmClient {
|
||||
wasm_byte_code: toBase64(compressed),
|
||||
source: source,
|
||||
builder: builder,
|
||||
instantiate_permission: null,
|
||||
},
|
||||
};
|
||||
const result = await this.signAndPost([storeCodeMsg], this.fees.upload, memo);
|
||||
|
||||
4
packages/cosmwasm/src/testdata/contract.json
vendored
4
packages/cosmwasm/src/testdata/contract.json
vendored
File diff suppressed because one or more lines are too long
@ -32,9 +32,9 @@ export const bech32AddressMatcher = /^[\x21-\x7e]{1,83}1[02-9ac-hj-np-z]{38}$/;
|
||||
/** Deployed as part of scripts/wasmd/init.sh */
|
||||
export const deployedErc20 = {
|
||||
codeId: 1,
|
||||
source: "https://crates.io/api/v1/crates/cw-erc20/0.5.1/download",
|
||||
builder: "cosmwasm/rust-optimizer:0.8.0",
|
||||
checksum: "3e97bf88bd960fee5e5959c77b972eb2927690bc10160792741b174f105ec0c5",
|
||||
source: "https://crates.io/api/v1/crates/cw-erc20/not-yet-released/download",
|
||||
builder: "cosmwasm/rust-optimizer:0.9.0",
|
||||
checksum: "0f14abcc6fed08f2dd06896db974989db97dbcc6e8e30188b73fe5ab427c7785",
|
||||
instances: [
|
||||
"cosmos18vd8fpwxzck93qlwghaj6arh4p7c5n89uzcee5", // HASH
|
||||
"cosmos1hqrdl6wstt8qzshwc6mrumpjk9338k0lr4dqxd", // ISA
|
||||
|
||||
2
packages/cosmwasm/types/msgs.d.ts
vendored
2
packages/cosmwasm/types/msgs.d.ts
vendored
@ -20,7 +20,7 @@ export interface MsgStoreCode extends Msg {
|
||||
readonly source: string;
|
||||
/** A docker tag. Can be empty. */
|
||||
readonly builder: string;
|
||||
readonly instantiate_permission: AccessConfig | null;
|
||||
readonly instantiate_permission?: AccessConfig;
|
||||
};
|
||||
}
|
||||
export declare function isMsgStoreCode(msg: Msg): msg is MsgStoreCode;
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
3e97bf88bd960fee5e5959c77b972eb2927690bc10160792741b174f105ec0c5 cw-erc20.wasm
|
||||
851aa8bbc76bc2326a38b99e1432bb06a8ed36442a68e9e676d10ed8beedd1d1 cw-nameservice.wasm
|
||||
44397b14c9ec35b3188d16b5ed46de2fb6397d7bf2d1f2755a9970054aa7abb0 staking.wasm
|
||||
0f14abcc6fed08f2dd06896db974989db97dbcc6e8e30188b73fe5ab427c7785 cw-erc20.wasm
|
||||
ebc2b11e2afa50d5dcd4234840cd581e948a59d888bb8d651598bba3732cd8ee cw-nameservice.wasm
|
||||
9430a98aa5bb765aa56f683290340e34e230822a4e356d566b54b9b5cf01ab30 staking.wasm
|
||||
|
||||
BIN
scripts/wasmd/contracts/cw-erc20.wasm
(Stored with Git LFS)
BIN
scripts/wasmd/contracts/cw-erc20.wasm
(Stored with Git LFS)
Binary file not shown.
BIN
scripts/wasmd/contracts/cw-nameservice.wasm
(Stored with Git LFS)
BIN
scripts/wasmd/contracts/cw-nameservice.wasm
(Stored with Git LFS)
Binary file not shown.
BIN
scripts/wasmd/contracts/staking.wasm
(Stored with Git LFS)
BIN
scripts/wasmd/contracts/staking.wasm
(Stored with Git LFS)
Binary file not shown.
@ -22,8 +22,8 @@ const guest = {
|
||||
};
|
||||
|
||||
const codeMeta = {
|
||||
source: "https://crates.io/api/v1/crates/cw-erc20/0.5.1/download",
|
||||
builder: "cosmwasm/rust-optimizer:0.8.0",
|
||||
source: "https://crates.io/api/v1/crates/cw-erc20/not-yet-released/download",
|
||||
builder: "cosmwasm/rust-optimizer:0.9.0",
|
||||
};
|
||||
|
||||
const initDataHash = {
|
||||
|
||||
@ -12,7 +12,7 @@ const alice = {
|
||||
};
|
||||
|
||||
const codeMeta = {
|
||||
source: "https://crates.io/api/v1/crates/cw-nameservice/0.5.1/download",
|
||||
source: "https://crates.io/api/v1/crates/cw-nameservice/not-yet-released/download",
|
||||
builder: "cosmwasm/rust-optimizer:0.8.0",
|
||||
};
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
# Choose from https://hub.docker.com/r/cosmwasm/wasmd/tags
|
||||
REPOSITORY="cosmwasm/wasmd"
|
||||
VERSION="v0.10.0-alpha"
|
||||
VERSION="v0.10.0-beta1"
|
||||
|
||||
CONTAINER_NAME="wasmd"
|
||||
|
||||
@ -47,6 +47,7 @@ docker exec "$CONTAINER_NAME" \
|
||||
wasmcli rest-server \
|
||||
--node tcp://localhost:26657 \
|
||||
--trust-node \
|
||||
--unsafe-cors \
|
||||
--laddr "tcp://0.0.0.0:$REST_PORT_GUEST" \
|
||||
> "$REST_SERVER_LOGFILE" &
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user