FRAME: Meta Transaction (#6428)
Meta transactions implementation. The meta transaction follows a layout similar to that of a regular transaction and can leverage the same extensions implementing the `TransactionExtension` trait. Once signed and shared by the signer, the relayer may submit a regular transaction with the `pallet_meta_tx::dispatch` call, passing the signed meta transaction as an argument. To see an example, refer to the mock setup and the `sign_and_execute_meta_tx` test case in `substrate/frame/meta-tx/src/tests.rs` file. RFC: https://github.com/paritytech/polkadot-sdk/issues/4123 --------- Co-authored-by:Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: command-bot <> Co-authored-by:
Guillaume Thiolliere <gui.thiolliere@gmail.com>
Showing
- Cargo.lock 25 additions, 0 deletionsCargo.lock
- Cargo.toml 2 additions, 0 deletionsCargo.toml
- polkadot/runtime/westend/Cargo.toml 8 additions, 0 deletionspolkadot/runtime/westend/Cargo.toml
- polkadot/runtime/westend/src/lib.rs 38 additions, 1 deletionpolkadot/runtime/westend/src/lib.rs
- polkadot/runtime/westend/src/weights/mod.rs 2 additions, 0 deletionspolkadot/runtime/westend/src/weights/mod.rs
- polkadot/runtime/westend/src/weights/pallet_meta_tx.rs 57 additions, 0 deletionspolkadot/runtime/westend/src/weights/pallet_meta_tx.rs
- polkadot/runtime/westend/src/weights/pallet_verify_signature.rs 59 additions, 0 deletions...ot/runtime/westend/src/weights/pallet_verify_signature.rs
- prdoc/pr_6428.prdoc 32 additions, 0 deletionsprdoc/pr_6428.prdoc
- substrate/bin/node/runtime/src/lib.rs 26 additions, 17 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/examples/authorization-tx-extension/src/mock.rs 1 addition, 15 deletions...ate/frame/examples/authorization-tx-extension/src/mock.rs
- substrate/frame/meta-tx/Cargo.toml 65 additions, 0 deletionssubstrate/frame/meta-tx/Cargo.toml
- substrate/frame/meta-tx/src/benchmarking.rs 130 additions, 0 deletionssubstrate/frame/meta-tx/src/benchmarking.rs
- substrate/frame/meta-tx/src/extension.rs 49 additions, 0 deletionssubstrate/frame/meta-tx/src/extension.rs
- substrate/frame/meta-tx/src/lib.rs 242 additions, 0 deletionssubstrate/frame/meta-tx/src/lib.rs
- substrate/frame/meta-tx/src/mock.rs 147 additions, 0 deletionssubstrate/frame/meta-tx/src/mock.rs
- substrate/frame/meta-tx/src/tests.rs 398 additions, 0 deletionssubstrate/frame/meta-tx/src/tests.rs
- substrate/frame/meta-tx/src/weights.rs 86 additions, 0 deletionssubstrate/frame/meta-tx/src/weights.rs
- substrate/frame/verify-signature/src/benchmarking.rs 15 additions, 2 deletionssubstrate/frame/verify-signature/src/benchmarking.rs
- umbrella/Cargo.toml 10 additions, 0 deletionsumbrella/Cargo.toml
- umbrella/src/lib.rs 4 additions, 0 deletionsumbrella/src/lib.rs
Please register or sign in to comment