Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.03 KB

README.md

File metadata and controls

28 lines (21 loc) · 1.03 KB

Apollo Multisig Tool

Setup

  1. Install terrad. Add your key to it.
  2. Add a .env file in the root dir with contents KEY_NAME=name.
  3. 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...

Usage

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>