Skip to content

Automatically build gas reimbursement transactions for a Safe.

Notifications You must be signed in to change notification settings

filipviz/gaswoman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gaswoman

gaswoman tracks multisig gas spending for a Safe. It generates a JSON which can be imported with the Safe Transaction Builder.

Built with Node.js and the Safe Transaction Service API. Inspired by gasman.

Installation

Clone with:

git clone https://github.com/filipvvv/gaswoman.git
cd gaswoman

Usage

gaswoman accepts two command line arguments:

  1. A Safe address, and
  2. A Unix timestamp

Any transactions which were executed before the timestamp are ignored. Pass the arguments to gaswoman like so:

node . <safe-address> <timestamp>

For example, to calculate gas refunds for the JuiceboxDAO multisig since 2022-12-08, use:

node . 0xAF28bcB48C40dBC86f52D459A6562F658fc94B1e 1670475600

To generate a timestamp, you can use a service like unixtimestamp.com.

gaswoman will write to refunds.json. To queue your transaction:

  1. Open the Safe App.
  2. On the right-hand side of the screen, click "Use Transaction Builder".
  3. Within the Transaction Builder, select "choose a file" (in the lower right-hand corner).
  4. Navigate to the gaswoman directory, and double-click on refunds.json.
  5. Click "Create Batch".
  6. Click "Send Batch".
  7. Click "Submit".

About

Automatically build gas reimbursement transactions for a Safe.

Topics

Resources

Stars

Watchers

Forks