feat: Convert Beacon types to ParamsWithKind #3035
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This update introduces function
convertToPartialParamsWithKind
to convert Beacon types, as defined in TZIP-10 and aligned with Tezos RPC, intoParamsWithKind
.The "Partial" in the function name indicates that the dApp may not have all the necessary information for a full request. As such, the dApp sends
PartialTezosOperation
, expecting the wallet to fill in the missing data.Beacon types are integral to the WalletConnect interface for Tezos. In a typical flow, a dApp creates and sends a Beacon type, which the wallet then receives. The wallet usually needs to convert this data into the Taquito format and adjust parameters such as
source
orfee
.Given the frequency of this operation, the new function will streamline the process, making it more efficient. This function is already being used in the wallet prototype for WalletConnect.
Testing:
Depends on "fix: adding export for SmartRollupExecuteOutboxMessageParams" #3031
In this PR, please also make sure:
closes #TICKETNUMBER
in the description box (when applicable)Release Note Draft Snippet
If relevant, please write a summary of your change that will be suitable for
inclusion in the Release Notes for the next Taquito release.
Introduced a function
convertToPartialParamsWithKind
to convert Beacon types,PartialTezosOperation
, as defined in TZIP-10 and aligned with Tezos RPC, intoParamsWithKind
.