Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dapplion/gas_futures
https://github.com/dapplion/gas_futures
Last synced: about 20 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/dapplion/gas_futures
- Owner: dapplion
- Created: 2024-04-17T11:28:28.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-29T01:55:24.000Z (8 months ago)
- Last Synced: 2024-12-28T06:47:50.165Z (10 days ago)
- Language: Solidity
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```