Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Oct 18, 2024
1 parent 9fc6407 commit b14d2fc
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions docs/docs/build/modules/02-provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -1558,6 +1558,29 @@ power_shaping_params:

</details>

##### Consumer Genesis Time

The `consumer-genesis-time` command allows to query the genesis time of the consumer chain associated with the consumer id.

```bash
interchain-security-pd query provider consumer-genesis-time [consumer-id] [flags]
```

<details>
<summary>Example</summary>

```bash
interchain-security-pd query provider consumer-genesis-time 0
```

Output:

```bash
genesis_time: "2024-10-18T08:13:23.507178095Z"
```

</details>

#### Transactions

The `tx` commands allows users to interact with the `provider` module.
Expand Down Expand Up @@ -2841,6 +2864,29 @@ grpcurl -plaintext -d '{"consumer_id": "0"}' localhost:9090 interchain_security.

</details>

#### Consumer Genesis Time

The `QueryConsumerGenesisTime` command allows to query the genesis time of the consumer chain associated with the consumer id.

```bash
interchain_security.ccv.provider.v1.Query/QueryConsumerGenesisTime
```

<details>
<summary>Example</summary>

```bash
grpcurl -plaintext -d '{"consumer_id": "0"}' localhost:9090 interchain_security.ccv.provider.v1.Query/QueryConsumerGenesisTime
```

```json
{
"genesisTime": "2024-10-18T08:13:23.507178095Z"
}
```

</details>

### REST

A user can query the `provider` module using REST endpoints.
Expand Down Expand Up @@ -3515,3 +3561,26 @@ Output:
```

</details>

#### Consumer Chain Time

The `consumer_chain` endpoint allows to query the consumer chain associated with the consumer id.

```bash
interchain_security/ccv/provider/consumer_genesis_time/{consumer_id}
```

<details>
<summary>Example</summary>

```bash
curl http://localhost:1317/interchain_security/ccv/provider/consumer_genesis_time/0
```

Output:

```json
{"genesis_time":"2024-10-18T08:29:46.153234Z"}
```

</details>

0 comments on commit b14d2fc

Please sign in to comment.