Update to wasmd v0.10.0-beta1

This commit is contained in:
Simon Warta
2020-07-28 14:54:37 +02:00
parent 650f638b3d
commit 70e9c1532a
15 changed files with 32 additions and 22 deletions
+11
View File
@@ -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 = {
+1 -1
View File
@@ -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);
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -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
+1 -1
View File
@@ -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;