git.delta.rocks / unique-network / refs/commits / d3e0af28b4b6

difftreelog

source

pallets/evm-migration/README.md808 Bsourcehistory
1# EVM contract migration pallet23This pallet is only callable by root, it has functionality to migrate contract4from other ethereum chain to pallet-evm56Contract data includes contract code, and contract storage,7where contract storage is a mapping from evm word to evm word (evm word = 32 byte)89To import contract data into pallet-evm admin should call this pallet multiple times:101. Start migration via `begin`112. Insert all contract data using single or12   multiple (If data can't be fit into single extrinsic) calls13   to `set_data`143. Finish migration using `finish`, providing contract code1516During migration no one can insert code at address of this contract,17as [`pallet::OnMethodCall`] prevents this, and no one can call this contract,18as code is only supplied at final stage of contract deployment