Skip to content

Commit

Permalink
Precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
pharr117 committed Sep 17, 2024
1 parent 8156a54 commit 626b1ed
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/reference/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ The following sections provide details on how to use the `cosmos-indexer` codeba

* [Custom Message Type Registration](./custom_cosmos_module_extensions/custom_message_type_registration.md) - Reference documentation on how to register custom message types in the indexer
* [Cosmos Indexer Modules](./custom_cosmos_module_extensions/cosmos_indexer_modules.md) - Reference documentation on the strategy for modules provided by the `cosmos-indexer-modules` package for extending the supported transaction message types
* [Probe Codec Walkthrough](./custom_cosmos_module_extensions/probe_codec_walkthrough.md) - Reference documentation on the probe package and its codec for decoding JSON RPC responses and their Protobuf encoded Transaction Messages
* [Probe Codec Walkthrough](./custom_cosmos_module_extensions/probe_codec_walkthrough.md) - Reference documentation on the probe package and its codec for decoding JSON RPC responses and their Protobuf encoded Transaction Messages
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This allows data to be passed from the blockchain to the `probe` package in a fo

## RPC Client Generation

The `probe` package also provides a client generator that can be used to generate a client for a specific blockchain. The client provides methods for querying the blockchain for data, such as blocks, transactions, and events.
The `probe` package also provides a client generator that can be used to generate a client for a specific blockchain. The client provides methods for querying the blockchain for data, such as blocks, transactions, and events.

The `ChainClient` type defined in the [client package client.go file](https://github.com/DefiantLabs/probe/blob/main/client/client.go) is used to generate the client for a specific blockchain. The client is generated using the `NewChainClient` function, which takes a `ChainClientConfig` type as an argument that contains the configuration for the client, such as RPC endpoint, chain ID and others.

Expand Down
2 changes: 1 addition & 1 deletion examples/block-sdk-indexer/demo.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SELECT b.height, tx.hash, met.message_type from txes tx
JOIN messages me on me.tx_id = tx.id
JOIN blocks b on b.id = tx.block_id
JOIN message_types met on met.id = me.message_type_id;
JOIN message_types met on met.id = me.message_type_id;
2 changes: 1 addition & 1 deletion examples/block-sdk-indexer/filter.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"message_type": "/sdk.auction.v1.MsgAuctionBid"
}
]
}
}
6 changes: 3 additions & 3 deletions examples/gov-voting-patterns/demo.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
select b.height, a.address, p.proposal_id, CASE
WHEN vo.option = 1 THEN 'yes'
select b.height, a.address, p.proposal_id, CASE
WHEN vo.option = 1 THEN 'yes'
WHEN vo.option = 2 THEN 'abstain'
WHEN vo.option = 3 THEN 'no'
WHEN vo.option = 4 THEN 'veto'
Expand All @@ -10,4 +10,4 @@ select b.height, a.address, p.proposal_id, CASE
JOIN txes tx on tx.id = me.tx_id
JOIN blocks b on b.id = tx.block_id
JOIN message_types met on met.id = me.message_type_id
JOIN addresses a on vo.address_id = a.id;
JOIN addresses a on vo.address_id = a.id;

0 comments on commit 626b1ed

Please sign in to comment.