forked from scs/substrate-api-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
executable file
·135 lines (111 loc) · 4.99 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[package]
name = "substrate-api-client"
version = "0.6.0"
authors = ["Supercomputing Systems AG <[email protected]>"]
edition = "2018"
[dependencies]
hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
log = { version = "0.4", optional = true }
primitive-types = { version = "0.10.1", optional = true, features = ["codec"] }
serde = { version = "1.0", optional = true, features = ["derive"] }
serde_json = { version = "1.0", optional = true }
thiserror = { version = "1.0", optional = true }
ws = { version = "0.9.1", optional = true, features = ["ssl"] }
codec = { package = 'parity-scale-codec', version = "2.0.0", default-features = false, features = ['derive']}
# Substrate dependencies
sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master", features = ["full_crypto"] }
sp-version = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master", package = "sp-version", optional = true }
balances = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master", package = "pallet-balances", optional = true }
staking = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master", package = "pallet-staking", optional = true }
system = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master", package = "frame-system", optional = true }
transaction-payment = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master", package = "pallet-transaction-payment", optional = true }
sp-rpc = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master", optional = true }
sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" }
support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", package = "frame-support", branch = "master" }
sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" }
# new parity repository
metadata = { version = "14.0.0", default-features = false, git = "https://github.com/paritytech/frame-metadata.git", branch = "main", package = "frame-metadata", features = ["v13"] }
# need to add this for the app_crypto macro
sp-application-crypto = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master", features = ["full_crypto"] }
[dev-dependencies]
env_logger = "0.9"
node-template-runtime = { git = "https://github.com/scs/substrate-api-client-test-node", branch = "master" }
keyring = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master", package = "sp-keyring" }
clap = { version = "2.33", features = ["yaml"] }
[features]
default = ["std", "ws-client"]
std = [
"sp-application-crypto/std",
"sp-core/std",
"codec/std",
"metadata/std",
"sp-version",
"balances",
"system",
"sp-runtime/std",
"support/std",
"sp-std/std",
"serde/std",
"serde_json",
"log",
"hex/std",
"primitive-types",
"thiserror",
"sp-rpc",
"transaction-payment/std"
]
ws-client = ["ws"]
staking-xt = ["std", "staking"]
[[example]]
name = "example_get_storage"
path = "src/examples/example_get_storage.rs"
[[example]]
name = "example_get_blocks"
path = "src/examples/example_get_blocks.rs"
[[example]]
name = "example_transfer"
path = "src/examples/example_transfer.rs"
[[example]]
name = "example_event_error_details"
path = "src/examples/example_event_error_details.rs"
[[example]]
name = "example_event_callback"
path = "src/examples/example_event_callback.rs"
[[example]]
name = "example_generic_extrinsic"
path = "src/examples/example_generic_extrinsic.rs"
[[example]]
name = "example_print_metadata"
path = "src/examples/example_print_metadata.rs"
[[example]]
name = "example_compose_extrinsic_offline"
path = "src/examples/example_compose_extrinsic_offline.rs"
[[example]]
name = "example_generic_event_callback"
path = "src/examples/example_generic_event_callback.rs"
[[example]]
name = "example_benchmark_bulk_xt"
path = "src/examples/example_benchmark_bulk_xt.rs"
[[example]]
name = "example_sudo"
path = "src/examples/example_sudo.rs"
[[example]]
name = "example_custom_client"
path = "src/examples/example_custom_client.rs"
[[example]]
name = "example_get_existential_deposit"
path = "src/examples/example_get_existential_deposit.rs"
# DEPRECATED. might work but too much work to maintain, sorry
# needed for contract example
#[dev-dependencies]
#wabt = "0.10.0"
#[dev-dependencies.contracts]
#git = "https://github.com/paritytech/substrate.git"
#branch = "master"
#package = "pallet-contracts"
#[[example]]
#name = "example_contract"
#path = "src/examples/example_contract.rs"
#[[example]]
#name = "example_custom_storage_struct"
#path = "src/examples/example_custom_storage_struct.rs"