1.0.1 • Published 12 months ago
nami_crank v1.0.1
NAMI Crank
This script will allow you to call a function with message to sign and broadcast it to the blockchain. It uses a feegrant to make one single wallet responsible for providing the fees.
The script is very flexible and other workers can be added whenever we like.
How to use it
Create your local .env: a. Fill the
MNEMONIC
b. Set theRPC_ENDPOINT
to our starsquid node c. Set theREBALANCER_CONTRACT
d. Fill in theENABLED_WORKER
: "rebalancer"Rebalancer: Call
submitMessageToBlockchain(msg)
from./bin/app.js
and pass the following msg:
{
"from_amount": BigNumberish, // (ethers package)
"from_denom": Addr,
"to_denom": Addr,
"price": Decimal
}