Skip to content

zkchannel_operation_fees

Darius Parvin edited this page Jul 9, 2021 · 2 revisions

zkChannel Operation Fees

Below are the fees, gas, and storage costs for originating and calling the entrypoints in the zkchannels contract. The estimates are taken from zkchannel_edo2net_broadcaster.py, which broadcasts the operations on edo2net.

originate: 
            fee: 10879
            gas: 32278
            storage_bytes: 7549
            storage_cost: 1887250
            total_cost: 1898129
addFunding: 
            fee: 3585
            gas: 33098
            storage_bytes: 3
            storage_cost: 750
            total_cost: 4335
reclaimFunding: 
            fee: 3775
            gas: 34981
            storage_bytes: 0
            storage_cost: 0
            total_cost: 3775
expiry:  
            fee: 3599
            gas: 33305
            storage_bytes: 4
            storage_cost: 1000
            total_cost: 4599
custClose: 
            fee: 4796
            gas: 42668
            storage_bytes: 35
            storage_cost: 8750
            total_cost: 13546
custClaim: 
            fee: 3771
            gas: 34996
            storage_bytes: 0
            storage_cost: 0
            total_cost: 3771
 merchClaim: 
            fee: 3771
            gas: 34985
            storage_bytes: 0
            storage_cost: 0
            total_cost: 3771