Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Evm Allowlist Feature to SBT Pallet (#1057)
* init sbt pallet Signed-off-by: Charles Ferrell <charlie@manta.network> * update polkadot version for uniques Signed-off-by: Charles Ferrell <charlie@manta.network> * fix mock and start tests Signed-off-by: Charles Ferrell <charlie@manta.network> * clean up code Signed-off-by: Charles Ferrell <charlie@manta.network> * some tests, add checks to_private Signed-off-by: Charles Ferrell <charlie@manta.network> * cleanup deps Signed-off-by: Charles Ferrell <charlie@manta.network> * fix dependencies Signed-off-by: Charles Ferrell <charlie@manta.network> * add pallet sbt to dolphin runtime Signed-off-by: Charles Ferrell <charlie@manta.network> * fix rpc Signed-off-by: Charles Ferrell <charlie@manta.network> * add reserve sbt Signed-off-by: Charles Ferrell <charlie@manta.network> * fix mock Signed-off-by: Charles Ferrell <charlie@manta.network> * fmt Signed-off-by: Charles Ferrell <charlie@manta.network> * clean up deps Signed-off-by: Charles Ferrell <charlie@manta.network> * fix sender ledger to return Ok((()) rather than error Signed-off-by: Charles Ferrell <charlie@manta.network> * restructure for some common code Signed-off-by: Charles Ferrell <charlie@manta.network> * benchmark sbt Signed-off-by: Charles Ferrell <charlie@manta.network> * add weights file Signed-off-by: Charles Ferrell <charlie@manta.network> * clean up & tests Signed-off-by: Charles Ferrell <charlie@manta.network> * remove duplicate code Signed-off-by: Charles Ferrell <charlie@manta.network> * add tests and docs Signed-off-by: Charles Ferrell <charlie@manta.network> * fmt Signed-off-by: Charles Ferrell <charlie@manta.network> * flip order of event to be more logical Signed-off-by: Charles Ferrell <charlie@manta.network> * change AssetMetadata to enum supporting different types of metadata Signed-off-by: Charles Ferrell <charlie@manta.network> * update runtimes to new asset manager Signed-off-by: Charles Ferrell <charlie@manta.network> * add events to asset manager Signed-off-by: Charles Ferrell <charlie@manta.network> * remove uniques Signed-off-by: Charles Ferrell <charlie@manta.network> * move storage change to UpdateMetadata trait Signed-off-by: Charles Ferrell <charlie@manta.network> * fix Cargo.toml Signed-off-by: Charles Ferrell <charlie@manta.network> * fmt Cargo.toml Signed-off-by: Charles Ferrell <charlie@manta.network> * fix clippy lints Signed-off-by: Charles Ferrell <charlie@manta.network> * fix benchmarking Signed-off-by: Charles Ferrell <charlie@manta.network> * add test for asset-manager, add docs and feedback Signed-off-by: Charles Ferrell <charlie@manta.network> * tests Signed-off-by: Charles Ferrell <charlie@manta.network> * make const and clippy fix Signed-off-by: Charles Ferrell <charlie@manta.network> * fix clippy lints Signed-off-by: Charles Ferrell <charlie@manta.network> * fmt Signed-off-by: Charles Ferrell <charlie@manta.network> * fix benchmark Signed-off-by: Charles Ferrell <charlie@manta.network> * fix benchmarking Signed-off-by: Charles Ferrell <charlie@manta.network> * better comments and add better errors Signed-off-by: Charles Ferrell <charlie@manta.network> * make more functional Signed-off-by: Charles Ferrell <charlie@manta.network> * review comment Signed-off-by: Charles Ferrell <charlie@manta.network> * remove unnecessary into_iter() Signed-off-by: Charles Ferrell <charlie@manta.network> * Better docs Signed-off-by: Charles Ferrell <charlie@manta.network> * better name for event Signed-off-by: Charles Ferrell <charlie@manta.network> * fix 2022 Signed-off-by: Charles Ferrell <charlie@manta.network> * change back to use separate storage Signed-off-by: Charles Ferrell <charlie@manta.network> * revert asset manager changes Signed-off-by: Charles Ferrell <charlie@manta.network> * revert benchmarks too Signed-off-by: Charles Ferrell <charlie@manta.network> * cleanup Signed-off-by: Charles Ferrell <charlie@manta.network> * more cleanup Signed-off-by: Charles Ferrell <charlie@manta.network> * fix error handling Signed-off-by: Charles Ferrell <charlie@manta.network> * fix clippy Signed-off-by: Charles Ferrell <charlie@manta.network> * update bench and remove unneeded Balance config Signed-off-by: Charles Ferrell <charlie@manta.network> * common types and redo weights Signed-off-by: Charles Ferrell <charlie@manta.network> * add tests Signed-off-by: Charles Ferrell <charlie@manta.network> * fmt Signed-off-by: Charles Ferrell <charlie@manta.network> * remove unneeded clones Signed-off-by: Charles Ferrell <charlie@manta.network> * remove unneeded pull_senders Signed-off-by: Charles Ferrell <charlie@manta.network> * add constant attribute to constants in Config Signed-off-by: Charles Ferrell <charlie@manta.network> * docs and make counter start at 1 Signed-off-by: Charles Ferrell <charlie@manta.network> * fix clippy Signed-off-by: Charles Ferrell <charlie@manta.network> * fix benchmarks Signed-off-by: Charles Ferrell <charlie@manta.network> * add zkSbt to calamari Signed-off-by: Charles Ferrell <charlie@manta.network> * update error handling and add weights file Signed-off-by: Charles Ferrell <charlie@manta.network> * make it expensive to mint sbt Signed-off-by: Charles Ferrell <charlie@manta.network> * initial evm sbt implementation Signed-off-by: Charles Ferrell <charlie@manta.network> * add to runtime and add whitelist account to storage Signed-off-by: Charles Ferrell <charlie@manta.network> * Add metadata to minting Signed-off-by: Charles Ferrell <charlie@manta.network> * after minting remove account from whitelist Signed-off-by: Charles Ferrell <charlie@manta.network> * add enum types and change signature to use proof field Signed-off-by: Charles Ferrell <charlie@manta.network> * fix version and more tests Signed-off-by: Charles Ferrell <charlie@manta.network> * fix tests Signed-off-by: Charles Ferrell <charlie@manta.network> * add timestamp logic Signed-off-by: Charles Ferrell <charlie@manta.network> * add eth mint and timestamp tests Signed-off-by: Charles Ferrell <charlie@manta.network> * add to tests some more Signed-off-by: Charles Ferrell <charlie@manta.network> * change whiteist to allowlist Signed-off-by: Charles Ferrell <charlie@manta.network> * add benchmarks Signed-off-by: Charles Ferrell <charlie@manta.network> * add weights for new calls Signed-off-by: Charles Ferrell <charlie@manta.network> * add and fix docs Signed-off-by: Charles Ferrell <charlie@manta.network> * fix docs Signed-off-by: Charles Ferrell <charlie@manta.network> * fix typos Signed-off-by: Charles Ferrell <charlie@manta.network> * add AlreadyMinted Error Signed-off-by: Charles Ferrell <charlie@manta.network> * update unit test Signed-off-by: Charles Ferrell <charlie@manta.network> * decouple from pallet_timestamp Signed-off-by: Charles Ferrell <charlie@manta.network> * fmt Signed-off-by: Charles Ferrell <charlie@manta.network> * add check for valid time range Signed-off-by: Charles Ferrell <charlie@manta.network> * add metadata Signed-off-by: zqhxuyuan <zqhxuyuan@gmail.com> * metadata optional Signed-off-by: zqhxuyuan <zqhxuyuan@gmail.com> * add chain_id config Signed-off-by: zqhxuyuan <zqhxuyuan@gmail.com> * rename time range to mint info Signed-off-by: zqhxuyuan <zqhxuyuan@gmail.com> * make storage bounded Signed-off-by: Charles Ferrell <charlie@manta.network> * MintChainInfo generic and add docs Signed-off-by: Charles Ferrell <charlie@manta.network> * 2/3 tech commitee and add comments Signed-off-by: Charles Ferrell <charlie@manta.network> --------- Signed-off-by: Charles Ferrell <charlie@manta.network> Signed-off-by: zqhxuyuan <zqhxuyuan@gmail.com> Co-authored-by: zqhxuyuan <zqhxuyuan@gmail.com>
- Loading branch information