Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Upgrade Ethereum pallet to FRAMEv2 #649

Merged
merged 2 commits into from
Jun 1, 2021
Merged

Conversation

boundless-forest
Copy link
Member

@boundless-forest boundless-forest commented May 27, 2021

The old version metadata:

$ subsee -p Ethereum > eth_old.json

{"name":"Ethereum","storage":{"prefix":"Ethereum","entries":[{"name":"Pending","modifier":"Default","ty":{"Plain":"Vec<(ethereum::Transaction, TransactionStatus, ethereum::Receipt)>"},"default":[0],"documentation":[" Current building block's transactions and receipts."]},{"name":"CurrentBlock","modifier":"Optional","ty":{"Plain":"ethereum::Block"},"default":[0],"documentation":[" The current Ethereum block."]},{"name":"CurrentReceipts","modifier":"Optional","ty":{"Plain":"Vec<ethereum::Receipt>"},"default":[0],"documentation":[" The current Ethereum receipts."]},{"name":"CurrentTransactionStatuses","modifier":"Optional","ty":{"Plain":"Vec<TransactionStatus>"},"default":[0],"documentation":[" The current transaction statuses."]},{"name":"RemainingRingBalance","modifier":"Default","ty":{"Map":{"hasher":"Blake2_128Concat","key":"T::AccountId","value":"RingBalance<T>","unused":false}},"default":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"documentation":[" Remaining ring balance for account"]},{"name":"RemainingKtonBalance","modifier":"Default","ty":{"Map":{"hasher":"Blake2_128Concat","key":"T::AccountId","value":"KtonBalance<T>","unused":false}},"default":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"documentation":[" Remaining kton balance for account"]}]},"calls":[{"name":"transact","arguments":[{"name":"transaction","ty":"ethereum::Transaction"}],"documentation":[" Transact an Ethereum transaction."]}],"event":[{"name":"Executed","arguments":["H160","H160","H256","ExitReason"],"documentation":[" An ethereum transaction was successfully executed. [from, to\/contract_address, transaction_hash, exit_reason]"]}],"constants":[],"errors":[],"index":41}

the new version metadata after upgrade:

$ subsee -p Ethereum > eth_new.json

{"name":"Ethereum","storage":{"prefix":"Ethereum","entries":[{"name":"Pending","modifier":"Default","ty":{"Plain":"Vec<(ethereum::Transaction, TransactionStatus, ethereum::Receipt)>"},"default":[0],"documentation":[" Current building block's transactions and receipts."]},{"name":"CurrentBlock","modifier":"Optional","ty":{"Plain":"ethereum::Block"},"default":[0],"documentation":[" The current Ethereum block."]},{"name":"CurrentReceipts","modifier":"Optional","ty":{"Plain":"Vec<ethereum::Receipt>"},"default":[0],"documentation":[" The current Ethereum receipts."]},{"name":"CurrentTransactionStatuses","modifier":"Optional","ty":{"Plain":"Vec<TransactionStatus>"},"default":[0],"documentation":[" The current transaction statuses."]},{"name":"RemainingRingBalance","modifier":"Default","ty":{"Map":{"hasher":"Blake2_128Concat","key":"T::AccountId","value":"RingBalance<T>","unused":false}},"default":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"documentation":[" Remaining ring balance for account"]},{"name":"RemainingKtonBalance","modifier":"Default","ty":{"Map":{"hasher":"Blake2_128Concat","key":"T::AccountId","value":"KtonBalance<T>","unused":false}},"default":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"documentation":[" Remaining kton balance for account"]}]},"calls":[{"name":"transact","arguments":[{"name":"transaction","ty":"ethereum::Transaction"}],"documentation":[" Transact an Ethereum transaction."]}],"event":[{"name":"Executed","arguments":["H160","H160","H256","ExitReason"],"documentation":[" An ethereum transaction was successfully executed. [from, to\/contract_address, transaction_hash, exit_reason]"]}],"constants":[],"errors":[{"name":"InvalidSignature","documentation":[" Signature is invalid."]},{"name":"PreLogExists","documentation":[" Pre-log is present, therefore transact is not allowed."]},{"name":"InvalidCall","documentation":[" Call failed"]}],"index":41}

@boundless-forest boundless-forest changed the title Upgrade dvm-ethereum pallet to FRAMEv2 Upgrade Ethereum pallet to FRAMEv2 May 27, 2021
Copy link
Contributor

@hackfisher hackfisher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Runtimes(Pangolin, Crab) are using the same storage prefix "Ethereum"

LGTM

@hackfisher hackfisher merged commit 5d13208 into master Jun 1, 2021
@hackfisher hackfisher deleted the bear-dvm-ethereum-new-style branch June 1, 2021 09:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants