- Notifications
You must be signed in to change notification settings - Fork11
Allows to easily create tx to be signed through CLI and submitted on a Safe
License
NotificationsYou must be signed in to change notification settings
morpho-org/safer
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
- InstallFoundry.
- Run
maketo initialize the repository. - Create a
.envfile from the template.env.examplefile.- Use the environment variable
SAFE_NONCEto override a transaction's nonce. Leave it blank to use the default, latest Safe nonce. - Use the environment variable
FOUNDRY_ETH_RPC_URLto customize the RPC endpoint used. This is useful to interact with a Safe deployed on another chain than Ethereum mainnet (the default one).
- Use the environment variable
- Run
yarn builderand follow the steps; OR - Put the transaction's raw data in
data/tx.json
- Hash the transaction's raw data:
make hash - To sign the data with a Ledger, run:
make sign:ledger - Share the content of
data/signatures.txtwith the signer who will execute the transaction on the Safe
- Make sure at least
thresholdsignatures are available indata/signatures.txt, each one per line - To execute the transaction on the Safe with a Ledger, run:
make exec:ledger
Withmake sign &make exec, one can also use any other wallet provider available withcast:
make cmd:interactiveto input the private key to the command promptmake cmd:ledgerto use a Ledgermake cmd:trezorto use a Trezormake cmd:keystoreto use a keystoremake cmd:"private-key 0x..."if you really want to save your private key to your shell's history...
{"to":"0x0000000000000000000000000000000000000000","value":0,"data":"0x",// The raw tx data"operation":0,// 0 for a call, 1 for a delegatecall"safeTxGas":0,"baseGas":0,"gasPrice":0,"gasToken":"0x0000000000000000000000000000000000000000",// Indicates the tx will consume the chain's default gas token (ETH on mainnet)"refundReceiver":"0x0000000000000000000000000000000000000000"// Indicates the tx's refund receiver will be the address executing the tx}About
Allows to easily create tx to be signed through CLI and submitted on a Safe
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.