-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correcting types and event parsing for Cosmos SDK 0.50 (#271)
* WIP correcting types and event parsing * Tidy up * Further improvement to wrappingEvents * Minor change
- Loading branch information
Showing
11 changed files
with
330 additions
and
204 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
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 |
---|---|---|
@@ -1,20 +1,34 @@ | ||
// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
import type { | ||
tendermint34, | ||
tendermint37, | ||
comet38, | ||
} from '@cosmjs/tendermint-rpc'; | ||
import { | ||
CosmosBlock, | ||
CosmosEvent, | ||
CosmosTransaction, | ||
CosmosMessage, | ||
} from '@subql/types-cosmos'; | ||
|
||
export type BlockResponse = | ||
| tendermint34.BlockResponse | ||
| tendermint37.BlockResponse | ||
| comet38.BlockResponse; | ||
export type BlockResultsResponse = | ||
| tendermint34.BlockResultsResponse | ||
| tendermint37.BlockResultsResponse | ||
| comet38.BlockResultsResponse; | ||
|
||
export interface BlockContent { | ||
block: CosmosBlock; | ||
transactions: CosmosTransaction[]; | ||
messages: CosmosMessage[]; | ||
events: CosmosEvent[]; | ||
beginBlockEvents: CosmosEvent[]; | ||
endBlockEvents: CosmosEvent[]; | ||
beginBlockEvents?: CosmosEvent[]; | ||
endBlockEvents?: CosmosEvent[]; | ||
} | ||
|
||
export type BestBlocks = Record<number, string>; |
Oops, something went wrong.