-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
transfer (total escrow): add documentation and migration docs (#3509)
* add docs for total escrow feature * revert change * fix tag * Update docs/migrations/v7-to-v7_1.md --------- Co-authored-by: colin axnér <[email protected]>
- Loading branch information
1 parent
0d9d697
commit a448960
Showing
4 changed files
with
82 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<!-- | ||
order: 9 | ||
--> | ||
|
||
# Client | ||
|
||
## CLI | ||
|
||
A user can query and interact with the `transfer` module using the CLI. Use the `--help` flag to discover the available commands: | ||
|
||
### Query | ||
|
||
The `query` commands allow users to query `transfer` state. | ||
|
||
```shell | ||
simd query ibc-transfer --help | ||
``` | ||
|
||
#### `total-escrow` | ||
|
||
The `total-escrow` command allows users to query the total amount in escrow for a particular coin denomination regardless of the transfer channel from where the coins where sent out. | ||
|
||
```shell | ||
simd query ibc-transfer total-escrow [denom] [flags] | ||
``` | ||
|
||
Example: | ||
|
||
```shell | ||
simd query ibc-transfer total-escrow samoleans | ||
``` | ||
|
||
Example Output: | ||
|
||
```shell | ||
amount: "100" | ||
``` | ||
|
||
## gRPC | ||
|
||
A user can query the `transfer` module using gRPC endpoints. | ||
|
||
### `TotalEscrowForDenom` | ||
|
||
The `TotalEscrowForDenom` endpoint allows users to query the total amount in escrow for a particular coin denomination regardless of the transfer channel from where the coins where sent out. | ||
|
||
```shell | ||
ibc.applications.transfer.v1.Query/TotalEscrowForDenom | ||
``` | ||
|
||
Example: | ||
|
||
```shell | ||
grpcurl -plaintext \ | ||
-d '{"denom":"samoleans"}' \ | ||
localhost:9090 \ | ||
ibc.applications.transfer.v1.Query/TotalEscrowForDenom | ||
``` | ||
|
||
Example output: | ||
|
||
```shell | ||
{ | ||
"amount": "100" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters