loomnetwork/plasma-cash

GasToken Integration

gakonst opened this issue · 0 comments

Use https://github.com/projectchicago/gastoken/tree/master/contract mint/burn to mint gastoken during low periods, store it in the contract, and allow the operator to make cheap (free) submitBlock calls

https://github.com/projectchicago/gastoken/blob/master/contract/GST1.sol#L97

https://blog.polymath.network/turning-smart-contracts-into-gastoken-factories-3e947f664e8b

Add mint, freeStorage function. freeStorage will be called in SubmitBlock to pay for gas. Add test which shows that the gas cost of SubmitBlock was 0.