nami_crank
v1.0.1
Published
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.
Readme
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
MNEMONICb. Set theRPC_ENDPOINTto our starsquid node c. Set theREBALANCER_CONTRACTd. Fill in theENABLED_WORKER: "rebalancer"Rebalancer: Call
submitMessageToBlockchain(msg)from./bin/app.jsand pass the following msg:
{
"from_amount": BigNumberish, // (ethers package)
"from_denom": Addr,
"to_denom": Addr,
"price": Decimal
}