This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 463
Support for transaction sponsorship/resource payer #964
Merged
Conversation
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
Also adding extension to docs page
praphael
approved these changes
Jul 1, 2021
nksanthosh
added a commit
that referenced
this pull request
Jul 1, 2021
CI/CD changes for PRs #937/#963/#964 - merging per a request from Brad this is a bug with github actions, version 12.14.1 has been replaced by the v15.14.0 ones, can you override and merge it? It also might be because I have to copy the workflow files to master but I won't be certain until this one is merged Will be verified and can be reverted if something else breaks.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Change Description
Adds support for transaction sponsorship/resource payer feature by utilizing the transaction_extensions key in the transaction payload. Serialize/deserialize work was necessarily since the transaction_extensions data type is not easily defined in the abi format.
API Changes
api.serializeTransactionExtensions
: serializes the transaction extension arrayapi.deserializeTransactionExtensions
: deserializes the transaction extension arrayeosjs-serialize.ts
serializeMap
/deserializeMap
: serialize/deserialize functions specifically for the flat map structure of the serialized transaction extension data e.g.[1, '0000000080ABBCA90010000000000000FA000000000000000000000000000000']
eosjs-serialize.ts
: Removed the transaction.abi.json file and incorporated it into the eosjs-serialize.ts file since the transaction_extension is a type not supported directly from abi formatDocumentation Additions
Short 'how-to' guide on how to include payer information for the feature