You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -283,7 +284,7 @@ Currently the only option available is the `WithQueryPlugins` option, which allo
283
284
284
285
#### `WithQueryPlugins`
285
286
286
-
By default, the `08-wasm` module does not configure any querier options for light client contracts. However, it is possible to register custom query plugins for [`QueryRequest::Custom`](https://github.com/CosmWasm/cosmwasm/blob/v1.5.0/packages/std/src/query/mod.rs#L45) and [`QueryRequest::Stargate`](https://github.com/CosmWasm/cosmwasm/blob/v1.5.0/packages/std/src/query/mod.rs#L54-L61).
287
+
By default, the `08-wasm` module does not configure any querier options for light client contracts. However, it is possible to register custom query plugins for [`QueryRequest::Custom`](https://github.com/CosmWasm/cosmwasm/blob/v2.0.1/packages/std/src/query/mod.rs#L48) and [`QueryRequest::Stargate`](https://github.com/CosmWasm/cosmwasm/blob/v2.0.1/packages/std/src/query/mod.rs#L57-L65).
287
288
288
289
Assuming that the keeper is not yet instantiated, the following sample code shows how to register query plugins for the `08-wasm` module.
Copy file name to clipboardExpand all lines: docs/versioned_docs/version-v8.3.x/03-light-clients/04-wasm/03-integration.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -272,7 +272,7 @@ Currently the only option available is the `WithQueryPlugins` option, which allo
272
272
273
273
#### `WithQueryPlugins`
274
274
275
-
By default, the `08-wasm` module does not support any queries. However, it is possible to register custom query plugins for [`QueryRequest::Custom`](https://github.com/CosmWasm/cosmwasm/blob/v1.5.0/packages/std/src/query/mod.rs#L45) and [`QueryRequest::Stargate`](https://github.com/CosmWasm/cosmwasm/blob/v1.5.0/packages/std/src/query/mod.rs#L54-L61).
275
+
By default, the `08-wasm` module does not configure any querier options for light client contracts. However, it is possible to register custom query plugins for [`QueryRequest::Custom`](https://github.com/CosmWasm/cosmwasm/blob/v2.0.1/packages/std/src/query/mod.rs#L48) and [`QueryRequest::Stargate`](https://github.com/CosmWasm/cosmwasm/blob/v2.0.1/packages/std/src/query/mod.rs#L57-L65).
276
276
277
277
Assuming that the keeper is not yet instantiated, the following sample code shows how to register query plugins for the `08-wasm` module.
Note that the `Stargate` querier appends the user defined accept list of query routes to a default list defined by the `08-wasm` module.
293
+
The `defaultAcceptList` defines a single query route: `"/ibc.core.client.v1.Query/VerifyMembership"`. This allows for light client smart contracts to delegate parts of their workflow to other light clients for auxiliary proof verification. For example, proof of inclusion of block and tx data by a data availability provider.
294
+
295
+
```go
296
+
// defaultAcceptList defines a set of default allowed queries made available to the Querier.
297
+
vardefaultAcceptList = []string{
298
+
"/ibc.core.client.v1.Query/VerifyMembership",
299
+
}
300
+
```
301
+
292
302
You may leave any of the fields in the `QueryPlugins` object as `nil` if you do not want to register a query plugin for that query type.
293
303
294
304
Then, we pass the `QueryPlugins` object to the `WithQueryPlugins` option:
`path/to/wasm-file` is the path to the `.wasm` or `.wasm.gz` file.
31
31
32
+
#### `migrate-contract`
33
+
34
+
The `migrate-contract` command allows users to broadcast a transaction with a `MsgMigrateContract` to migrate the contract for a given light client to a new byte code denoted by the given checksum.
Copy file name to clipboardExpand all lines: docs/versioned_docs/version-v8.3.x/03-light-clients/04-wasm/09-migrations.md
+87Lines changed: 87 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,3 +14,90 @@ This guide provides instructions for migrating 08-wasm versions.
14
14
## Chains
15
15
16
16
In the 08-wasm versions compatible with ibc-go v7.3.x and above from the v7 release line, the checksums of the uploaded Wasm bytecodes are all stored under a single key. From ibc-go v8.0.x the checksums are stored using [`collections.KeySet`](https://docs.cosmos.network/v0.50/build/packages/collections#keyset), whose full functionality became available in Cosmos SDK v0.50. There is therefore an [automatic migration handler](https://github.com/cosmos/ibc-go/blob/57fcdb9a9a9db9b206f7df2f955866dc4e10fef4/modules/light-clients/08-wasm/module.go#L115-L118) configured in the 08-wasm module to migrate the stored checksums to `collections.KeySet`.
17
+
18
+
## From v0.1.0+ibc-go-v8.0-wasmvm-v1.5 to v0.2.0-ibc-go-v8.3-wasmvm-v2.0
19
+
20
+
The `WasmEngine` interface has been updated to reflect changes in the function signatures of Wasm VM:
0 commit comments