Skip to content

Commit

Permalink
Implement scale-info for all primitive types
Browse files Browse the repository at this point in the history
  • Loading branch information
Lohann committed Oct 31, 2023
1 parent b145c3b commit 6768684
Show file tree
Hide file tree
Showing 15 changed files with 805 additions and 52 deletions.
40 changes: 14 additions & 26 deletions Cargo.lock

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

28 changes: 28 additions & 0 deletions chains/ethereum/playground/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[package]
name = "playground"
version = "0.1.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/analog-labs/chain-connectors"
description = "Ethereum integration tests."

[features]
default = ["sputnik-vm"]
sputnik-vm = ["rosetta-ethereum-executor/sputnik-evm"]
rust-vm = ["rosetta-ethereum-executor/rust-evm"]

[dependencies]
async-trait = "0.1"
ethers-solc = { version = "2.0", features = ["async", "project-util"] }
eyre = "0.6"
hex-literal = "0.4"
inkwell = { version = "0.2.0", features = ["target-webassembly", "no-libffi-linking", "llvm15-0"] }
jsonrpsee = { version = "0.20", default-features = false, features = ["macros", "client"] }
rosetta-ethereum-executor = { workspace = true, features = ["jsonrpsee"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
tokio = { version = "1.32", features = ["rt-multi-thread", "macros"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["tracing-log", "parking_lot"] }
url = "2.4.0"
15 changes: 15 additions & 0 deletions chains/ethereum/playground/res/Example.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.5.0 <0.9.0;

contract Example {
uint256 private _value;

function value() public view returns (uint256) {
return _value;
}

function setValue(uint256 newValue) public {
_value = newValue;
}
}
Loading

0 comments on commit 6768684

Please sign in to comment.