fusion
fusion copied to clipboard
Add `fee` to transaction
By signing the tx, the user agrees that the fee
will be subtracted from their account and given to the block.coinbase
at the end of the transaction.
Tasks:
- [ ] Add
fee
to the Tx types in the subcrates - [ ] Create an L2
block
type that has a list of transactions and acoinbase
- [ ] Modify L1 verifier contract to take in the new block instead of txs
- [ ] Modify sequencer to send block (with its own public key as the coinbase) instead of txs
- [ ] Add
tx.fee
andblock.coinbase
to the circuit which also adds the fee transfer to the state update