reef-defi / reef-chain

EVM compatible chain with NPoS/PoC consensus
https://docs.reef.io
GNU General Public License v3.0
135 stars 37 forks source link

standardise storage cost per byte #61

Closed frisitano closed 2 years ago

frisitano commented 2 years ago

This PR standardises the cost of storage (per byte) across the different pallets that charge for storage usage in the reef runtime. This includes transactions, evm and multisig. The cost per byte has been standardised at 10 mREEF.

closes: #62

Netherdrake commented 2 years ago

For EVM, some backwards compatibility testing is required (ie. will the contract terminations refund storage deposit correctly).

frisitano commented 2 years ago

I am currently in the process of exploring contract terminations. Contract termination via evm.selfdestruct extrinsic seems reasonable. My main concern is when a selfdestruct OPCODE is sent via an evm.call extrinsic as in this instance the destruction is handled by the EVM handler rather then the extrinsic logic. Will report back with findings.

frisitano commented 2 years ago

TODO:

frisitano commented 2 years ago

TODO:

frisitano commented 2 years ago

This was not ready for merge - still had bugs relating to event queue not being purged properly.