Skip to content

Commit

Permalink
runtime support for pallet deepmind
Browse files Browse the repository at this point in the history
  • Loading branch information
Maar-io committed Jul 17, 2023
1 parent 122dbb3 commit 4a294d8
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ evm-runtime = { version = "0.39.0", default-features = false }

# Frontier
# (wasm)
deepmind = { path = "../frontier/frame/deepmind", default-features = false }
fp-rpc = { path = "../frontier/primitives/rpc", default-features = false }
fp-self-contained = { path = "../frontier/primitives/self-contained", default-features = false }
pallet-ethereum = { path = "../frontier/frame/ethereum", default-features = false, features = ["forbid-evm-reentrancy"] }
Expand Down
1 change: 1 addition & 0 deletions runtime/astar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pallet-base-fee = { workspace = true }
pallet-contracts = { workspace = true }
pallet-contracts-primitives = { workspace = true }
pallet-ethereum = { workspace = true }
deepmind = { workspace = true }
pallet-evm = { workspace = true }
pallet-evm-precompile-blake2 = { workspace = true }
pallet-evm-precompile-bn128 = { workspace = true }
Expand Down
4 changes: 4 additions & 0 deletions runtime/astar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -816,8 +816,11 @@ impl pallet_ethereum::Config for Runtime {
type PostLogContent = PostBlockAndTxnHashes;
// Maximum length (in bytes) of revert message to include in Executed event
type ExtraDataLength = ConstU32<30>;
type Firehose = DeepMind;
}

impl deepmind::Config for Runtime {}

impl pallet_sudo::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
Expand Down Expand Up @@ -1047,6 +1050,7 @@ construct_runtime!(
Ethereum: pallet_ethereum = 61,
EthCall: pallet_custom_signatures = 62,
BaseFee: pallet_base_fee = 63,
DeepMind: deepmind = 64,

Contracts: pallet_contracts = 70,

Expand Down
1 change: 1 addition & 0 deletions runtime/local/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pallet-contracts = { workspace = true }
pallet-contracts-primitives = { workspace = true }
pallet-democracy = { workspace = true }
pallet-ethereum = { workspace = true }
deepmind = { workspace = true }
pallet-evm = { workspace = true }
pallet-evm-precompile-blake2 = { workspace = true }
pallet-evm-precompile-bn128 = { workspace = true }
Expand Down
4 changes: 4 additions & 0 deletions runtime/local/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,11 @@ impl pallet_ethereum::Config for Runtime {
type PostLogContent = PostBlockAndTxnHashes;
// Maximum length (in bytes) of revert message to include in Executed event
type ExtraDataLength = ConstU32<30>;
type Firehose = DeepMind;
}

impl deepmind::Config for Runtime {}

parameter_types! {
pub const EcdsaUnsignedPriority: TransactionPriority = TransactionPriority::MAX / 2;
pub const CallFee: Balance = AST / 10;
Expand Down Expand Up @@ -974,6 +977,7 @@ construct_runtime!(
TransactionPayment: pallet_transaction_payment,
EVM: pallet_evm,
Ethereum: pallet_ethereum,
DeepMind: deepmind,
EthCall: pallet_custom_signatures,
BaseFee: pallet_base_fee,
Contracts: pallet_contracts,
Expand Down
1 change: 1 addition & 0 deletions runtime/shibuya/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ pallet-contracts = { workspace = true }
pallet-contracts-primitives = { workspace = true }
pallet-democracy = { workspace = true }
pallet-ethereum = { workspace = true }
deepmind = { workspace = true }
pallet-evm = { workspace = true }
pallet-evm-chain-id = { workspace = true }
pallet-evm-precompile-blake2 = { workspace = true }
Expand Down
4 changes: 4 additions & 0 deletions runtime/shibuya/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -867,8 +867,11 @@ impl pallet_ethereum::Config for Runtime {
type PostLogContent = PostBlockAndTxnHashes;
// Maximum length (in bytes) of revert message to include in Executed event
type ExtraDataLength = ConstU32<30>;
type Firehose = DeepMind;
}

impl deepmind::Config for Runtime {}

parameter_types! {
pub CouncilMotionDuration: BlockNumber = 36 * HOURS;
}
Expand Down Expand Up @@ -1274,6 +1277,7 @@ construct_runtime!(
Ethereum: pallet_ethereum = 61,
BaseFee: pallet_base_fee = 62,
EVMChainId: pallet_evm_chain_id = 63,
DeepMind: deepmind = 64,

Contracts: pallet_contracts = 70,

Expand Down
1 change: 1 addition & 0 deletions runtime/shiden/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pallet-base-fee = { workspace = true }
pallet-contracts = { workspace = true }
pallet-contracts-primitives = { workspace = true }
pallet-ethereum = { workspace = true }
deepmind = { workspace = true }
pallet-evm = { workspace = true }
pallet-evm-precompile-blake2 = { workspace = true }
pallet-evm-precompile-bn128 = { workspace = true }
Expand Down
4 changes: 4 additions & 0 deletions runtime/shiden/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -804,8 +804,11 @@ impl pallet_ethereum::Config for Runtime {
type PostLogContent = PostBlockAndTxnHashes;
// Maximum length (in bytes) of revert message to include in Executed event
type ExtraDataLength = ConstU32<30>;
type Firehose = DeepMind;
}

impl deepmind::Config for Runtime {}

impl pallet_sudo::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
Expand Down Expand Up @@ -1037,6 +1040,7 @@ construct_runtime!(
Ethereum: pallet_ethereum = 61,
EthCall: pallet_custom_signatures = 62,
BaseFee: pallet_base_fee = 63,
DeepMind: deepmind = 64,

Contracts: pallet_contracts = 70,
RandomnessCollectiveFlip: pallet_insecure_randomness_collective_flip = 71,
Expand Down

0 comments on commit 4a294d8

Please sign in to comment.