-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TransactionExtension, ExtrinsicV5 (#5976)
* TransactionExtension Start * Add V5_VERSION logic to necessary classes * Fix latest version to 5 * Add v5 dir * Add v5 types to interfaces * Cleanup paths * Update ExtrinsicSignature V5 * Cleanup v5 folders * nits * signed works * general works? * Clean linter, and imports * fix typing * Change sign in v5 to hash all payloads * remove SignV5Options * Remove SignatureV5Options * Change versioning * added bitmasks * cleanup * change version to constant * Add tests * Decouple payload v5 from v4 * Add helper fn to get signed extension version from the registry * Add version to encoding * Cleanup tests * renamed getSignedExtensionVersion to getTransactionExtensionVersion * removed this.type for v5 * undo this.type removal * replaced signedExtensionVersion by transactionExtensionVersion for v5 in ExtrinsicSignature * unfinished Preamble Class * Revert "unfinished Preamble Class" This reverts commit 0b1c350. * Added test for decoding * Fix test * preamble typo * updated GeneralExtrinsic [WIP] * added generalExtrinsic * General Extrinsic * linting and renaming * renaming * Extend the v5 signed extrinsic test * Unmask preamble * Set payload to GeneralExtrinsicPayload * Add test for GeneralExtrinsicPayload * Start GeneralExtrinsicEncoded tests * Add GeneralExt as a replacement class * Export GeneralExt * Fix nits * Start decodeu8a * GeneralExt tests * GeneralExt fix * updated decodeu8a * Fix decoding * Add error handling for invalid version * remove fluff * Fix version in GeneralExtrinsic * fixes * add parent class methods as errors * Reorg some types * Add test for GeneralExtrinsic * Fix compatibility with GeneralExtrinsic * fix structure of GeneralExtrinsic * Add another test * cleanup * Fix decoding bug for bare * fix change from bare to signed * linting * Fix encodinglength * Set default to preamble to bre * Fix tests * fixed version setting * Add test --------- Co-authored-by: bee344 <[email protected]>
- Loading branch information
Showing
22 changed files
with
1,302 additions
and
47 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
Oops, something went wrong.