Skip to content

apollodao/terra-native-multisig-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published