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

New kton precompile #1319

Merged
merged 51 commits into from Jul 25, 2022
Merged

New kton precompile #1319

merged 51 commits into from Jul 25, 2022

Conversation

boundless-forest
Copy link
Member

@boundless-forest boundless-forest commented Jul 4, 2022

Waiting for #1332

This pull request mainly adds a new Kton ERC20 implementation. Note that the original Transfer precompile will be deprecated in the future version.

@boundless-forest boundless-forest linked an issue Jul 4, 2022 that may be closed by this pull request
@boundless-forest boundless-forest changed the title New kton transfer precompile New kton precompile Jul 12, 2022
@boundless-forest boundless-forest marked this pull request as ready for review July 19, 2022 05:51
@github-actions
Copy link

github-actions bot commented Jul 19, 2022

Commit e6daac2

Pangolin

Check Runtime Version

RuntimeVersion {
    spec_name: "Pangolin",
    impl_name: "Pangolin",
    authoring_version: 0,
-   spec_version: 28140,
+   spec_version: 28160,
    impl_version: 0,
    transaction_version: 0,
}​

Check Storage Prefix

+ Pallet: "EcdsaRelayAuthority"
- Pallet: "EthereumIssuing"
- Pallet: "HeaderMMR"
+ Pallet: "HeaderMmr"
- Pallet: "Instance1DarwiniaRelayAuthorities"

Pallet DarwiniaEthereumRelay
+ Entry: StorageEntryMetadata { name: "PendingRelayHeaderParcels", modifier: Default, ty: Plain(UntrackedSymbol { id: 614, marker: PhantomData }), default: [0], docs: [] }
- Entry: StorageEntryMetadata { name: "PendingRelayHeaderParcels", modifier: Default, ty: Plain(UntrackedSymbol { id: 607, marker: PhantomData }), default: [0], docs: [] }

Pallet Instance1DarwiniaRelayerGame
+ Entry: StorageEntryMetadata { name: "Affirmations", modifier: Default, ty: Map { hashers: [Identity, Identity], key: UntrackedSymbol { id: 620, marker: PhantomData }, value: UntrackedSymbol { id: 621, marker: PhantomData } }, default: [0], docs: [" All the active games' affirmations here", "", " The first key is game id, the second key is round index", " then you will get the affirmations under that round in that game"] }
- Entry: StorageEntryMetadata { name: "Affirmations", modifier: Default, ty: Map { hashers: [Identity, Identity], key: UntrackedSymbol { id: 614, marker: PhantomData }, value: UntrackedSymbol { id: 615, marker: PhantomData } }, default: [0], docs: [" All the active games' affirmations here", "", " The first key is game id, the second key is round index", " then you will get the affirmations under that round in that game"] }​

Pangoro

Check Runtime Version

Check Storage Prefix

Commit d21baa3

Pangolin

Check Runtime Version

RuntimeVersion {
    spec_name: "Pangolin",
    impl_name: "Pangolin",
    authoring_version: 0,
-   spec_version: 28140,
+   spec_version: 28160,
    impl_version: 0,
    transaction_version: 0,
}​

Check Storage Prefix

+ Pallet: "EcdsaRelayAuthority"
- Pallet: "EthereumIssuing"
- Pallet: "HeaderMMR"
+ Pallet: "HeaderMmr"
- Pallet: "Instance1DarwiniaRelayAuthorities"

Pallet DarwiniaEthereumRelay
+ Entry: StorageEntryMetadata { name: "PendingRelayHeaderParcels", modifier: Default, ty: Plain(UntrackedSymbol { id: 614, marker: PhantomData }), default: [0], docs: [] }
- Entry: StorageEntryMetadata { name: "PendingRelayHeaderParcels", modifier: Default, ty: Plain(UntrackedSymbol { id: 607, marker: PhantomData }), default: [0], docs: [] }

Pallet Instance1DarwiniaRelayerGame
+ Entry: StorageEntryMetadata { name: "Affirmations", modifier: Default, ty: Map { hashers: [Identity, Identity], key: UntrackedSymbol { id: 620, marker: PhantomData }, value: UntrackedSymbol { id: 621, marker: PhantomData } }, default: [0], docs: [" All the active games' affirmations here", "", " The first key is game id, the second key is round index", " then you will get the affirmations under that round in that game"] }
- Entry: StorageEntryMetadata { name: "Affirmations", modifier: Default, ty: Map { hashers: [Identity, Identity], key: UntrackedSymbol { id: 614, marker: PhantomData }, value: UntrackedSymbol { id: 615, marker: PhantomData } }, default: [0], docs: [" All the active games' affirmations here", "", " The first key is game id, the second key is round index", " then you will get the affirmations under that round in that game"] }​

Pangoro

Check Runtime Version

Check Storage Prefix

Commit 4d54c43

Pangolin

Check Runtime Version

RuntimeVersion {
    spec_name: "Pangolin",
    impl_name: "Pangolin",
    authoring_version: 0,
-   spec_version: 28140,
+   spec_version: 28160,
    impl_version: 0,
    transaction_version: 0,
}​

Check Storage Prefix

+ Pallet: "EcdsaRelayAuthority"
- Pallet: "EthereumIssuing"
- Pallet: "HeaderMMR"
+ Pallet: "HeaderMmr"
- Pallet: "Instance1DarwiniaRelayAuthorities"

Pallet DarwiniaEthereumRelay
+ Entry: StorageEntryMetadata { name: "PendingRelayHeaderParcels", modifier: Default, ty: Plain(UntrackedSymbol { id: 614, marker: PhantomData }), default: [0], docs: [] }
- Entry: StorageEntryMetadata { name: "PendingRelayHeaderParcels", modifier: Default, ty: Plain(UntrackedSymbol { id: 607, marker: PhantomData }), default: [0], docs: [] }

Pallet Instance1DarwiniaRelayerGame
+ Entry: StorageEntryMetadata { name: "Affirmations", modifier: Default, ty: Map { hashers: [Identity, Identity], key: UntrackedSymbol { id: 620, marker: PhantomData }, value: UntrackedSymbol { id: 621, marker: PhantomData } }, default: [0], docs: [" All the active games' affirmations here", "", " The first key is game id, the second key is round index", " then you will get the affirmations under that round in that game"] }
- Entry: StorageEntryMetadata { name: "Affirmations", modifier: Default, ty: Map { hashers: [Identity, Identity], key: UntrackedSymbol { id: 614, marker: PhantomData }, value: UntrackedSymbol { id: 615, marker: PhantomData } }, default: [0], docs: [" All the active games' affirmations here", "", " The first key is game id, the second key is round index", " then you will get the affirmations under that round in that game"] }​

Pangoro

Check Runtime Version

Check Storage Prefix

Commit 184e530

Pangolin

Check Runtime Version

RuntimeVersion {
    spec_name: "Pangolin",
    impl_name: "Pangolin",
    authoring_version: 0,
-   spec_version: 28140,
+   spec_version: 28160,
    impl_version: 0,
    transaction_version: 0,
}​

Check Storage Prefix

+ Pallet: "EcdsaRelayAuthority"
- Pallet: "EthereumIssuing"
- Pallet: "HeaderMMR"
+ Pallet: "HeaderMmr"
- Pallet: "Instance1DarwiniaRelayAuthorities"

Pallet DarwiniaEthereumRelay
+ Entry: StorageEntryMetadata { name: "PendingRelayHeaderParcels", modifier: Default, ty: Plain(UntrackedSymbol { id: 614, marker: PhantomData }), default: [0], docs: [] }
- Entry: StorageEntryMetadata { name: "PendingRelayHeaderParcels", modifier: Default, ty: Plain(UntrackedSymbol { id: 607, marker: PhantomData }), default: [0], docs: [] }

Pallet Instance1DarwiniaRelayerGame
+ Entry: StorageEntryMetadata { name: "Affirmations", modifier: Default, ty: Map { hashers: [Identity, Identity], key: UntrackedSymbol { id: 620, marker: PhantomData }, value: UntrackedSymbol { id: 621, marker: PhantomData } }, default: [0], docs: [" All the active games' affirmations here", "", " The first key is game id, the second key is round index", " then you will get the affirmations under that round in that game"] }
- Entry: StorageEntryMetadata { name: "Affirmations", modifier: Default, ty: Map { hashers: [Identity, Identity], key: UntrackedSymbol { id: 614, marker: PhantomData }, value: UntrackedSymbol { id: 615, marker: PhantomData } }, default: [0], docs: [" All the active games' affirmations here", "", " The first key is game id, the second key is round index", " then you will get the affirmations under that round in that game"] }​

Pangoro

Check Runtime Version

Check Storage Prefix

Commit 109a7f8

Pangolin

Check Runtime Version

RuntimeVersion {
    spec_name: "Pangolin",
    impl_name: "Pangolin",
    authoring_version: 0,
-   spec_version: 28140,
+   spec_version: 28160,
    impl_version: 0,
    transaction_version: 0,
}​

Check Storage Prefix

+ Pallet: "EcdsaRelayAuthority"
- Pallet: "EthereumIssuing"
- Pallet: "HeaderMMR"
+ Pallet: "HeaderMmr"
- Pallet: "Instance1DarwiniaRelayAuthorities"

Pallet DarwiniaEthereumRelay
+ Entry: StorageEntryMetadata { name: "PendingRelayHeaderParcels", modifier: Default, ty: Plain(UntrackedSymbol { id: 614, marker: PhantomData }), default: [0], docs: [] }
- Entry: StorageEntryMetadata { name: "PendingRelayHeaderParcels", modifier: Default, ty: Plain(UntrackedSymbol { id: 607, marker: PhantomData }), default: [0], docs: [] }

Pallet Instance1DarwiniaRelayerGame
+ Entry: StorageEntryMetadata { name: "Affirmations", modifier: Default, ty: Map { hashers: [Identity, Identity], key: UntrackedSymbol { id: 620, marker: PhantomData }, value: UntrackedSymbol { id: 621, marker: PhantomData } }, default: [0], docs: [" All the active games' affirmations here", "", " The first key is game id, the second key is round index", " then you will get the affirmations under that round in that game"] }
- Entry: StorageEntryMetadata { name: "Affirmations", modifier: Default, ty: Map { hashers: [Identity, Identity], key: UntrackedSymbol { id: 614, marker: PhantomData }, value: UntrackedSymbol { id: 615, marker: PhantomData } }, default: [0], docs: [" All the active games' affirmations here", "", " The first key is game id, the second key is round index", " then you will get the affirmations under that round in that game"] }​

Pangoro

Check Runtime Version

Check Storage Prefix

@AurevoirXavier
Copy link
Member

Found some conflicts.

@hackfisher
Copy link
Contributor

@AsceticBear are you going to do #1349 in this PR or in another one?

@boundless-forest
Copy link
Member Author

@AsceticBear are you going to do #1349 in this PR or in another one?

This pr already contains too many changes, let's do it later. Wait, I need to remove the withdraw part in this pull request.

@hackfisher hackfisher merged commit c9202ed into main Jul 25, 2022
@hackfisher hackfisher deleted the bear-new-kton-precompile branch July 25, 2022 08:22
boundless-forest added a commit to darwinia-network/darwinia that referenced this pull request Aug 19, 2022
boundless-forest added a commit to darwinia-network/darwinia that referenced this pull request Aug 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Status: Done/No Companion
Development

Successfully merging this pull request may close these issues.

Transfer precompile refactor
3 participants