Skip to content

Commit abaf1bc

Browse files
akruCopilotCopilot
authored
Added pallet-robonomics-claim (#490)
* Added pallet-robonomics-claim * Fix license headers and add comprehensive documentation for claim pallet (#491) * Initial plan * Fix license headers and improve documentation for claim pallet Co-authored-by: akru <786394+akru@users.noreply.github.com> * Fix README documentation issues Co-authored-by: akru <786394+akru@users.noreply.github.com> * Add prefix to signing examples in README Co-authored-by: akru <786394+akru@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: akru <786394+akru@users.noreply.github.com> * Apply auto-formatting changes * Rename misleading test function in claim pallet (#492) * Initial plan * Rename test to better reflect its purpose Co-authored-by: akru <786394+akru@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: akru <786394+akru@users.noreply.github.com> * Update lib.rs * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Fix xcm-info tests --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6c151f2 commit abaf1bc

File tree

11 files changed

+1592
-1
lines changed

11 files changed

+1592
-1
lines changed

Cargo.lock

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ members = [
2525
"frame/digital-twin",
2626
"frame/xcm-info",
2727
"frame/cps",
28+
"frame/claim",
2829
"frame/wrapped-asset",
2930
"runtime/robonomics",
3031
"tools/libcps",
@@ -41,8 +42,10 @@ parity-scale-codec = { version = "3.6.1", default-features = false, features = [
4142
scale-info = { version = "2.5.0", default-features = false, features = [
4243
"derive",
4344
] }
45+
libsecp256k1 = { version = "0.7.0", default-features = false }
4446
smallvec = { version = "1.11", default-features = false }
4547
hex-literal = { version = "0.4.1", default-features = false }
48+
rustc-hex = { version = "2.1.0", default-features = false }
4649
log = { version = "0.4.19", default-features = false }
4750

4851
# (native)
@@ -244,6 +247,7 @@ pallet-robonomics-launch = { path = "./frame/launch", default-features = false }
244247
pallet-robonomics-liability = { path = "./frame/liability", default-features = false }
245248
pallet-robonomics-rws = { path = "./frame/rws", default-features = false }
246249
pallet-robonomics-cps = { path = "./frame/cps", default-features = false }
250+
pallet-robonomics-claim = { path = "./frame/claim", default-features = false }
247251
pallet-wrapped-asset = { path = "./frame/wrapped-asset", default-features = false }
248252

249253
# Robonomics runtimes

frame/claim/Cargo.toml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[package]
2+
name = "pallet-robonomics-claim"
3+
description = "Claim token from Ethereum account."
4+
version = "0.1.0"
5+
authors.workspace = true
6+
edition.workspace = true
7+
homepage.workspace = true
8+
repository.workspace = true
9+
10+
[dependencies]
11+
frame-support.workspace = true
12+
frame-system.workspace = true
13+
frame-benchmarking = { workspace = true, optional = true }
14+
parity-scale-codec.workspace = true
15+
scale-info.workspace = true
16+
serde = { features = ["alloc"], workspace = true }
17+
rustc-hex.workspace = true
18+
libsecp256k1.workspace = true
19+
sp-runtime = { features = ["serde"], workspace = true }
20+
sp-std.workspace = true
21+
sp-io.workspace = true
22+
23+
[dev-dependencies]
24+
sp-core.workspace = true
25+
hex-literal.workspace = true
26+
serde_json = { workspace = true, default-features = true }
27+
libsecp256k1 = { workspace = true, default-features = true }
28+
pallet-balances.workspace = true
29+
30+
[features]
31+
default = ["std"]
32+
std = [
33+
"frame-support/std",
34+
"frame-system/std",
35+
"frame-benchmarking?/std",
36+
"parity-scale-codec/std",
37+
38+
"scale-info/std",
39+
"serde/std",
40+
"sp-runtime/std",
41+
"sp-std/std",
42+
"sp-io/std",
43+
]
44+
45+
runtime-benchmarks = [
46+
"frame-benchmarking",
47+
"frame-support/runtime-benchmarks",
48+
"frame-system/runtime-benchmarks",
49+
"sp-runtime/runtime-benchmarks",
50+
]
51+
52+
try-runtime = [
53+
"frame-support/try-runtime",
54+
"frame-system/try-runtime",
55+
"sp-runtime/try-runtime",
56+
]

0 commit comments

Comments
 (0)