Skip to content

Commit

Permalink
Merge pull request #5 from neutron-org/chore/remove-query-zone-id
Browse files Browse the repository at this point in the history
chore: remove query zone id
  • Loading branch information
zavgorodnii authored Sep 14, 2022
2 parents 41f1c82 + 916e2ee commit 1dbb2f4
Show file tree
Hide file tree
Showing 5 changed files with 7,581 additions and 21,925 deletions.
12 changes: 4 additions & 8 deletions docs/neutron-core/interchain-queries/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ neutrond tx interchainqueries submit-query-result [query-id] [result-file]
neutrond tx interchainqueries submit-query-result result.json --from demowallet1 --gas 10000000 --gas-adjustment 1.4 --gas-prices 0.5stake --broadcast-mode block --chain-id test-1
```

Example ontent of `result.json` file:
Example content of `result.json` file:
```json
{
"kv_results": [
Expand Down Expand Up @@ -128,10 +128,8 @@ Output:
keys:
- path: "staking"
key: "MRQE7KnWf7BcUyQTX/rb+q7XJL590xQE7KnWf7BcUyQTX/rb+q7XJL590w=="
query_type: 'kv'
query_type: kv
update_period: "1"
zone_id: test-2
```

</details>
Expand Down Expand Up @@ -165,18 +163,16 @@ Output:
keys:
- path: "staking"
key: "MRQE7KnWf7BcUyQTX/rb+q7XJL590xQE7KnWf7BcUyQTX/rb+q7XJL590w=="
query_type: 'kv'
query_type: kv
update_period: "1"
zone_id: test-2
- connection_id: connection-0
id: "2"
last_emitted_height: "217"
last_submitted_result_local_height: "199"
last_submitted_result_remote_height: "188"
transactions_filter: '{"message.module": "bank"}'
query_type: 'tx'
query_type: tx
update_period: "5"
zone_id: test-2
```

</details>
Expand Down
2 changes: 1 addition & 1 deletion docs/neutron-core/interchain-queries/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The ICQ module emits the following event:
| action | query |
| query_id | `{identifier_of_registered_query}` |
| owner | `{query_owner}` |
| zone_id | `{identifier_of_remote_zone}` |
| connection_id | `{connection_id_for_query}` |
| type | `{query_type}` |
| tx_filter | `{transactions_search_filter}` |
| kv_key | `{kv_keys}` |
9 changes: 3 additions & 6 deletions docs/neutron-core/interchain-queries/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,14 @@ message MsgRegisterInterchainQuery {
// is used to define a filter for transaction search ICQ
string transactions_filter = 3;
// is used to identify the chain of interest
string zone_id = 4;
// is IBC connection ID for getting ConsensusState to verify proofs
string connection_id = 5;
string connection_id = 4;
// is used to specify how often (in neutron blocks) the query must be updated
uint64 update_period = 6;
uint64 update_period = 5;
// is the signer of the message
string sender = 7;
string sender = 6;
}
message KVKey {
Expand Down
Loading

0 comments on commit 1dbb2f4

Please sign in to comment.