-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6d7d9d
commit 3ea9649
Showing
1 changed file
with
31 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Multisig Pallet | ||
|
||
[![Run in StackBlitz](https://img.shields.io/badge/Open_in_StackBlitz-1269D3?style=for-the-badge&logo=stackblitz&logoColor=white)](https://stackblitz.com/github/futureversecom/trn-examples?file=examples%2Fsubstrate%2Fuse-multisig%2FREADME.md&title=Futurepass%20Pallet%20Examples) [![Pallet Documentation](https://img.shields.io/badge/Pallet_Documentation-black?style=for-the-badge&logo=googledocs&logoColor=white)](https://docs-beta.therootnetwork.com/buidl/substrate/pallet-multisig) | ||
|
||
> [!IMPORTANT] | ||
> Ensure the following ENV vars are available before running the examples | ||
> | ||
> - `CALLER_1_PRIVATE_KEY` - Private key of an account #1 that submits the multisig transaction. | ||
> - `CALLER_2_PRIVATE_KEY` - Private key of an account #2 that submits the multisig transaction. | ||
> - `CALLER_3_PRIVATE_KEY` - Private key of an account #3 that submits the multisig transaction. | ||
> Follow this guide to [create and fund an account with some test tokens](../../GUIDES.md) on Porcini (testnet) if you don't have one yet. | ||
## Examples | ||
|
||
```bash | ||
# change your working directory to this example first | ||
cd examples/substrate/use-multisig | ||
|
||
# export all required environments | ||
export CALLER_1_PRIVATE_KEY= | ||
export CALLER_2_PRIVATE_KEY= | ||
export CALLER_3_PRIVATE_KEY= | ||
|
||
# call an simple extrinsic as multisig | ||
pnpm call:callSystemRemark | ||
|
||
# call an FPass proxy extrinsic as multisig | ||
pnpm call:callProxyExtrinsic | ||
|
||
``` |