-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: gracefully handle unknown transaction variants (#1499)
closes:#1575 closes #1477 # Summary `fuels-rs` is using `fuel-core-client` to communicate with the node. `fuel-core-client`: - added a new `TransactoinType` enum with an `Unknown` variant to `fuel-core-client`. - added `Unknown` variants to `ConsensusParameters` and all of its fields. `cynic` will fallback to this variant. `fuel-core` PR: FuelLabs/fuel-core#2154 Checklist: - [x] transaction: `fuel-core-client` - [x] add new `TransactionType` with the `Unknown` variant in `fuel-core-client` - [x] refactor `fuels-rs` - [x] coin-type: `fuels-rs` - [x] `fuel-core-client` already has an `Unknown` variant - refactor `fuels-rs` - [x] consensus-parameters: `fuel-core-client` - [x] add `Unknown` variants to all the version enums - [x] refactor code - [x] block and headers: `fuel-core-client` - [x] add `Unknown` variants to all the version enums - [x] refactor code # Breaking Changes - added `Unknown` variant to `TransactionType` and `CoinType` - `CoinType` methods `id`, `owner`, `asset_id` now return `Option` - `get_message_proof` now returns `Result<Option<MessageProof>>` instead of `Result<MessageProof>` - `get_balances` now returns `Result<HashMap<String, u128>> # Checklist - [x] All **changes** are **covered** by **tests** (or not applicable) - [x] All **changes** are **documented** (or not applicable) - [x] I **reviewed** the **entire PR** myself (preferably, on GH UI) - [x] I **described** all **Breaking Changes** (or there's none)
- Loading branch information
Showing
25 changed files
with
222 additions
and
156 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
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
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
Oops, something went wrong.