Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wjmelements committed Aug 5, 2021
1 parent ef53e2a commit 5d2838f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# BlockFarts
A transaction using more than half the block gas makes FARTS.

### Basic FARTS
If you release enough gas, you get FARTS.
```
function mintWithCall(address target, bytes calldata data) external;
```
You can still try to fart if you think it might be close and wouldn't want to revert.
```
function tryMintWithCall(address target, bytes calldata data) external;
```

### Turn your gas tokens into FARTS
Transactions clearing gas tokens from the state can claim FARTS using only 20% of the block gas.
```
function mintWithGasToken(IGasToken gasToken, uint256 burn) external;
```
Supported: GST1, GST2, CHI

### MultiFARTS
Batch FARTS best FARTS.
```
function mintWithMulticall(address[] calldata targets, bytes[] calldata datas, uint256[] calldata values) external payable;
function tryMintWithMulticall(address[] calldata targets, bytes[] calldata datas, uint256[] calldata values) external payable;
```

### Flash FARTS
Your FARTS are ready before your call, so you can use them within the transaction that creates them.

### Security
Don't leave any assets in this contract; they can be claimed by anyone.

0 comments on commit 5d2838f

Please sign in to comment.