forked from realiotech/realio-network
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
178 additions
and
69 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
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,102 @@ | ||
<!-- | ||
order: 5 | ||
--> | ||
|
||
# Queries | ||
|
||
## 1. QueryParams | ||
|
||
The `QueryParams` allows users to query asset module params | ||
|
||
```go | ||
type QueryParamsRequest struct { | ||
} | ||
``` | ||
|
||
```go | ||
type QueryParamsResponse struct { | ||
Params Params | ||
} | ||
``` | ||
|
||
CLI: | ||
|
||
```bash | ||
realio-networkd q params | ||
``` | ||
|
||
## 2. QueryToken | ||
|
||
The `QueryToken` allows users to query a token related information | ||
|
||
```go | ||
type QueryTokenRequest struct { | ||
TokenId string | ||
} | ||
``` | ||
|
||
```go | ||
type QueryTokenResponse struct { | ||
Token Token | ||
TokenManager TokenManager | ||
TokenDistributor TokenDistributor | ||
} | ||
``` | ||
|
||
CLI: | ||
|
||
```bash | ||
realio-networkd q token [token-id] | ||
``` | ||
|
||
## 3. QueryAllTokens | ||
|
||
The `QueryAllTokens` allows users to query all tokens related information | ||
|
||
```go | ||
type QueryAllTokensRequest struct { | ||
} | ||
``` | ||
|
||
```go | ||
type QueryAllTokensResponse struct { | ||
TokenInfo []TokenInfo | ||
|
||
} | ||
``` | ||
|
||
```go | ||
type TokenInfo struct { | ||
Token Token | ||
TokenManager TokenManager | ||
TokenDistributor TokenDistributor | ||
|
||
} | ||
``` | ||
|
||
CLI: | ||
|
||
```bash | ||
realio-networkd q all-tokens | ||
``` | ||
|
||
## 4. QueryFrozenAddresses | ||
|
||
The `QueryFrozenAddresses` allows users to query all frozen addresses | ||
|
||
```go | ||
type QueryFrozenAddressesRequest struct { | ||
} | ||
``` | ||
|
||
```go | ||
type QueryFrozenAddressesResponse struct { | ||
FrozenAddresses []address | ||
} | ||
``` | ||
|
||
CLI: | ||
|
||
```bash | ||
realio-networkd q frozen-addresses | ||
``` |
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