Browse Source

Update example code in OpenAPI docs. (#7318) (#7322)

The event examples for the query filter language were not updated after the
change of key and value types from []byte to string. Also, the attributes need
to be a slice not a bare value.

(cherry picked from commit da3449599f)

Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
pull/7331/head
mergify[bot] 3 years ago
committed by GitHub
parent
commit
333d7f7068
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 21 deletions
  1. +21
    -21
      rpc/openapi/openapi.yaml

+ 21
- 21
rpc/openapi/openapi.yaml View File

@ -296,28 +296,28 @@ paths:
Events: []abci.Event{ Events: []abci.Event{
{ {
Type: "rewards.withdraw", Type: "rewards.withdraw",
Attributes: abci.EventAttribute{
{Key: []byte("address"), Value: []byte("AddrA"), Index: true},
{Key: []byte("source"), Value: []byte("SrcX"), Index: true},
{Key: []byte("amount"), Value: []byte("..."), Index: true},
{Key: []byte("balance"), Value: []byte("..."), Index: true},
Attributes: []abci.EventAttribute{
{Key: "address", Value: "AddrA", Index: true},
{Key: "source", Value: "SrcX", Index: true},
{Key: "amount", Value: "...", Index: true},
{Key: "balance", Value: "...", Index: true},
}, },
}, },
{ {
Type: "rewards.withdraw", Type: "rewards.withdraw",
Attributes: abci.EventAttribute{
{Key: []byte("address"), Value: []byte("AddrB"), Index: true},
{Key: []byte("source"), Value: []byte("SrcY"), Index: true},
{Key: []byte("amount"), Value: []byte("..."), Index: true},
{Key: []byte("balance"), Value: []byte("..."), Index: true},
Attributes: []abci.EventAttribute{
{Key: "address", Value: "AddrB", Index: true},
{Key: "source", Value: "SrcY", Index: true},
{Key: "amount", Value: "...", Index: true},
{Key: "balance", Value: "...", Index: true},
}, },
}, },
{ {
Type: "transfer", Type: "transfer",
Attributes: abci.EventAttribute{
{Key: []byte("sender"), Value: []byte("AddrC"), Index: true},
{Key: []byte("recipient"), Value: []byte("AddrD"), Index: true},
{Key: []byte("amount"), Value: []byte("..."), Index: true},
Attributes: []abci.EventAttribute{
{Key: "sender", Value: "AddrC", Index: true},
{Key: "recipient", Value: "AddrD", Index: true},
{Key: "amount", Value: "...", Index: true},
}, },
}, },
}, },
@ -1423,25 +1423,25 @@ components:
example: "0" example: "0"
total_snapshots: total_snapshots:
type: string type: string
example: "10"
example: "10"
chunk_process_avg_time: chunk_process_avg_time:
type: string type: string
example: "1000000000"
example: "1000000000"
snapshot_height: snapshot_height:
type: string type: string
example: "1262196"
example: "1262196"
snapshot_chunks_count: snapshot_chunks_count:
type: string type: string
example: "10"
example: "10"
snapshot_chunks_total: snapshot_chunks_total:
type: string type: string
example: "100"
example: "100"
backfilled_blocks: backfilled_blocks:
type: string type: string
example: "10"
example: "10"
backfill_blocks_total: backfill_blocks_total:
type: string type: string
example: "100"
example: "100"
ValidatorInfo: ValidatorInfo:
type: object type: object
properties: properties:


Loading…
Cancel
Save