-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into loans/quantity-18-dec…
…imals
- Loading branch information
Showing
28 changed files
with
3,142 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
use frame_support::dispatch::DispatchResultWithPostInfo; | ||
use sp_runtime::app_crypto::sp_core::{H160, U256}; | ||
|
||
/// Something capable of managing transactions in an EVM/Ethereum context | ||
pub trait EthereumTransactor { | ||
/// Transacts the specified call in the EVM context, | ||
/// exposing the call and any events to the EVM block. | ||
fn call( | ||
from: H160, | ||
to: H160, | ||
data: &[u8], | ||
value: U256, | ||
gas_price: U256, | ||
gas_limit: U256, | ||
) -> DispatchResultWithPostInfo; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
[package] | ||
authors = ["Centrifuge <admin@centrifuge.io>"] | ||
description = "Centrifuge Ethereum Transaction Pallet" | ||
edition = "2021" | ||
license = "LGPL-3.0" | ||
name = "pallet-ethereum-transaction" | ||
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-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" } | ||
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" } | ||
|
||
# Benchmarking | ||
frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.38" } | ||
|
||
# Substrate crates | ||
sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" } | ||
|
||
# Ethereum | ||
ethereum = { version = "0.14.0", default-features = false } | ||
fp-evm = { git = "https://github.com/PureStake/frontier", default-features = false, branch = "moonbeam-polkadot-v0.9.38" } | ||
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" } | ||
|
||
# Our custom traits | ||
cfg-primitives = { path = "../../libs/primitives", default-features = false } | ||
cfg-traits = { path = "../../libs/traits", default-features = false } | ||
|
||
[dev-dependencies] | ||
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" } | ||
|
||
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.38" } | ||
pallet-evm-precompile-simple = { git = "https://github.com/PureStake/frontier", branch = "moonbeam-polkadot-v0.9.38" } | ||
pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.38" } | ||
|
||
[features] | ||
default = ["std"] | ||
runtime-benchmarks = [ | ||
"frame-benchmarking/runtime-benchmarks", | ||
"frame-support/runtime-benchmarks", | ||
"frame-system/runtime-benchmarks", | ||
"sp-runtime/runtime-benchmarks", | ||
"cfg-traits/runtime-benchmarks", | ||
"pallet-ethereum/runtime-benchmarks", | ||
"pallet-evm/runtime-benchmarks", | ||
] | ||
std = [ | ||
"codec/std", | ||
"cfg-traits/std", | ||
"frame-support/std", | ||
"frame-system/std", | ||
"frame-benchmarking/std", | ||
"sp-core/std", | ||
"sp-std/std", | ||
"sp-runtime/std", | ||
"scale-info/std", | ||
"pallet-ethereum/std", | ||
"pallet-evm/std", | ||
"fp-evm/std", | ||
"ethereum/std", | ||
] | ||
try-runtime = [ | ||
"frame-support/try-runtime", | ||
"frame-system/try-runtime", | ||
"cfg-traits/try-runtime", | ||
"pallet-ethereum/try-runtime", | ||
"pallet-evm/try-runtime", | ||
"sp-runtime/try-runtime", | ||
] |
Oops, something went wrong.