Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pallet-revive] Add metrics to eth-rpc #6288

Merged
merged 14 commits into from
Oct 30, 2024
128 changes: 4 additions & 124 deletions Cargo.lock

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

7 changes: 7 additions & 0 deletions prdoc/pr_6288.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: '[pallet-revive] Add metrics to eth-rpc'
doc:
- audience: Runtime Dev
description: Add metrics for eth-rpc
crates:
- name: pallet-revive-eth-rpc
bump: minor
8 changes: 3 additions & 5 deletions substrate/frame/revive/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ sp-core = { workspace = true, default-features = true }
sp-weights = { workspace = true, default-features = true }
sp-runtime = { workspace = true, default-features = true }
sc-rpc = { workspace = true, default-features = true }

tower.workspace = true
tower-http = { workspace = true, features = ["full"] }
hyper.workspace = true
sc-cli = { workspace = true, default-features = true }
sc-service = { workspace = true, default-features = true }
prometheus-endpoint = { workspace = true, default-features = true }

rlp = { workspace = true, optional = true }
subxt-signer = { workspace = true, optional = true, features = [
Expand All @@ -73,7 +72,6 @@ secp256k1 = { workspace = true, optional = true, features = ["recovery"] }
env_logger = { workspace = true }

[features]
dev = []
example = ["hex", "hex-literal", "rlp", "secp256k1", "subxt-signer"]
riscv = ["pallet-revive/riscv"]

Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/revive/rpc/examples/js/src/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function str_to_bytes(str: string): Uint8Array {
async function deploy() {
console.log(`Deploying Contract...`);

const bytecode = readFileSync("rpc_demo.polkavm");
const bytecode = readFileSync("../rpc_demo.polkavm");
const contractFactory = new ContractFactory(
[
"constructor(bytes memory _data)",
Expand Down
Loading
Loading