mayassalman / D11cStorage

Store data as bytecode deployed at a deterministic address saving gas cost

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

D11cStorage

This is a remake of SSTORE2 implemented with the deterministic-deployment-proxy.

What D11cStorage is

"D11c" is an abbreviation for "deterministic". Storage since it is about storing (and reading) data.

Why do I need it

tbd ...

How to use

tbd ...

Try running some of the following tasks:

npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.js

TODO: update README.md TODO: analyse/document gas cost for reading/writing data via these contracts TODO: implement scripts/deployMockDeterministicProxy.js TODO: implement scripts/deployMockContracts.js TODO: implement hardhat task(s) for writing data by calling deterministic-deployment-proxy from js/ts directly TODO: write unit-tests (see test/dev-notes.txt)

About

Store data as bytecode deployed at a deterministic address saving gas cost


Languages

Language:Solidity 96.5%Language:JavaScript 3.5%