Skip to content

Commit

Permalink
connectors-gateway: Add gateway routers (#1475)
Browse files Browse the repository at this point in the history
* connectors-gateway: Add Ethereum Transaction pallet

* connectors-gateway: Add gateway routers

* gateway-routers: Add generic routers, Axelar XCM router, update tests

* runtime: Remove duplicate dep entries

* gateway-routers: Use specific types when getting Axelar encoded contract

* gateway-routers: Change folder structure

* deps: Update dependencies

* gateway-routers: Re-structure routers

* axelar-evm: Add Goerli to EVMChain
  • Loading branch information
cdamian authored Aug 3, 2023
1 parent 35c9b70 commit 637ec22
Show file tree
Hide file tree
Showing 14 changed files with 2,410 additions and 28 deletions.
36 changes: 36 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 @@ -40,6 +40,7 @@ members = [
"pallets/block-rewards",
"pallets/connectors",
"pallets/connectors-gateway",
"pallets/connectors-gateway/routers",
"pallets/claims",
"pallets/collator-allowlist",
"pallets/crowdloan-claim",
Expand Down
100 changes: 100 additions & 0 deletions pallets/connectors-gateway/routers/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
[package]
authors = ["Centrifuge <[email protected]>"]
description = "Centrifuge Connectors Gateway Routers"
edition = "2021"
license = "LGPL-3.0"
name = "connectors-gateway-routers"
repository = "https://github.com/centrifuge/centrifuge-chain"
version = "0.0.1"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { package = "parity-scale-codec", version = "3.0.0", features = ["derive"], default-features = false }
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
scale-info = { version = "2.3.0", default-features = false, features = ["derive"] }
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }

# Substrate
sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }

# XCM
pallet-xcm-transactor = { git = "https://github.com/PureStake/moonbeam", default-features = false, rev = "00b3e3d97806e889b02e1bcb4b69e65433dd805d" }
xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.38" }
xcm-primitives = { git = "https://github.com/PureStake/moonbeam", default-features = false, rev = "00b3e3d97806e889b02e1bcb4b69e65433dd805d" }

# EVM
ethabi = { version = "16.0", default-features = false }
pallet-ethereum = { git = "https://github.com/PureStake/frontier", default-features = false, branch = "moonbeam-polkadot-v0.9.38" }
pallet-evm = { git = "https://github.com/PureStake/frontier", default-features = false, branch = "moonbeam-polkadot-v0.9.38" }

# Custom crates
cfg-traits = { path = "../../../libs/traits", default-features = false }
cfg-types = { path = "../../../libs/types", default-features = false }

# Local pallets
pallet-connectors-gateway = { path = "../.", default-features = false }
pallet-ethereum-transaction = { path = "../../ethereum-transaction", default-features = false }

[dev-dependencies]
cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.38", default-features = false }

xcm-builder = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.38", default-features = false }
xcm-executor = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.38", default-features = false }

pallet-evm-chain-id = { git = "https://github.com/PureStake/frontier", default-features = false, branch = "moonbeam-polkadot-v0.9.38" }
pallet-evm-precompile-simple = { git = "https://github.com/PureStake/frontier", default-features = false, branch = "moonbeam-polkadot-v0.9.38" }
pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.38" }

sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.38" }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.38" }

orml-traits = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.38", default-features = false }

cfg-mocks = { path = "../../../libs/mocks" }
cfg-primitives = { path = "../../../libs/primitives" }
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.38" }

[features]
default = ["std"]
runtime-benchmarks = [
"cfg-traits/runtime-benchmarks",
"cfg-types/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-connectors-gateway/runtime-benchmarks",
"pallet-ethereum/runtime-benchmarks",
"pallet-ethereum-transaction/runtime-benchmarks",
"pallet-xcm-transactor/runtime-benchmarks",
"xcm-primitives/runtime-benchmarks",
]
std = [
"codec/std",
"cfg-types/std",
"cfg-traits/std",
"frame-support/std",
"frame-system/std",
"sp-std/std",
"sp-core/std",
"xcm/std",
"pallet-connectors-gateway/std",
"pallet-xcm-transactor/std",
"pallet-ethereum/std",
"pallet-ethereum-transaction/std",
"xcm-primitives/std",
"ethabi/std",
"scale-info/std",
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"cfg-traits/try-runtime",
"cfg-types/try-runtime",
"pallet-connectors-gateway/try-runtime",
"pallet-ethereum/try-runtime",
"pallet-ethereum-transaction/try-runtime",
"pallet-xcm-transactor/try-runtime",
]
Loading

0 comments on commit 637ec22

Please sign in to comment.