Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dapplion/gas_futures


https://github.com/dapplion/gas_futures

Last synced: about 20 hours ago
JSON representation

Awesome Lists containing this project

README

        

## Gnosis gas futures

Background doc: https://hackmd.io/@dapplion/gnosis_gas_futures

Extend the network fee collector to allow the network to sell gas futures. This repo explores two approaches:
- Periodic dutch auctions to sell an NFT to gives right to a specific daily quota for a range of days. Every month 10 auctions are hold at 1:10 months lookahead.
- [FuturesGasNFTPaymaster.sol](src/FuturesGasNFTPaymaster.sol)
- Purchase gas units as a fungible ERC-20 which can redeemed forever. There's an additive eip-1559 fee mechanism that targets to sell 10% of the block limit every block.

## Usage

### Build

```shell
$ forge build
```

### Test

```shell
$ forge test
```

### Format

```shell
$ forge fmt
```

### Gas Snapshots

```shell
$ forge snapshot
```

### Anvil

```shell
$ anvil
```

### Deploy

```shell
$ forge script script/Counter.s.sol:CounterScript --rpc-url --private-key
```

### Cast

```shell
$ cast
```

### Help

```shell
$ forge --help
$ anvil --help
$ cast --help
```