- Install terrad. Add your key to it.
- Add a
.env
file in the root dir with contentsKEY_NAME=name
. - Run
yarn
to install dependencies.
If you have problems using terrad, for example if using an M1 Mac, you can
instead put your seed phrase in your .env
file. You will also need to add
the address of your multisig, like so:
MNEMONIC=seed phrase here
MULTISIG_ADDRESS=terra1...
First you will need to define some messages you want to sign and execute with
your native multisig. You can create a file in the src/contracts
directory for
the contract you want to interact with. See the src/contracts/general.ts
for
an example. After you have created a function to create a Msg
, export it and
import it in src/generateTx.ts
and add it to the if statement. Then you can
sign and execute it as follows:
- To sign a transaction run:
yarn run sign-tx <network> <contract> <action>
- When we have enough signatures, to execute run:
yarn run execute-tx <network> <contract> <action>