Skip to content

Commit 5903742

Browse files
authored
Merge pull request #1317 from opentensor/utility-pallet-fees
Respect `Pays::No` Utility & Proxy pallets
2 parents c771436 + 449bab0 commit 5903742

File tree

14 files changed

+4590
-8
lines changed

14 files changed

+4590
-8
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,16 @@ pallet-insecure-randomness-collective-flip = { git = "https://github.com/parityt
115115
pallet-membership = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409", default-features = false }
116116
pallet-multisig = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409", default-features = false }
117117
pallet-preimage = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409", default-features = false }
118-
pallet-proxy = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409", default-features = false }
118+
pallet-proxy = { path = "pallets/proxy", default-features = false }
119119
pallet-safe-mode = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409", default-features = false }
120120
pallet-scheduler = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409", default-features = false }
121121
pallet-sudo = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409", default-features = false }
122122
pallet-timestamp = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409", default-features = false }
123123
pallet-transaction-payment = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409", default-features = false }
124124
pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409" }
125125
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409", default-features = false }
126-
pallet-utility = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409", default-features = false }
126+
pallet-utility = { path = "pallets/utility", default-features = false }
127+
pallet-root-testing = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409", default-features = false }
127128

128129
sc-basic-authorship = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409" }
129130
sc-cli = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409" }

pallets/proxy/Cargo.toml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
[package]
2+
name = "pallet-proxy"
3+
version = "38.0.0"
4+
authors = ["Bittensor Nucleus Team"]
5+
edition = "2021"
6+
license = "Apache-2.0"
7+
homepage = "https://bittensor.com"
8+
description = "FRAME proxying pallet"
9+
readme = "README.md"
10+
11+
[lints]
12+
workspace = true
13+
14+
[package.metadata.docs.rs]
15+
targets = ["x86_64-unknown-linux-gnu"]
16+
17+
[dependencies]
18+
codec = { features = ["max-encoded-len"], workspace = true }
19+
scale-info = { features = ["derive"], workspace = true }
20+
frame-benchmarking = { optional = true, workspace = true }
21+
frame-support.workspace = true
22+
frame-system.workspace = true
23+
sp-io.workspace = true
24+
sp-runtime.workspace = true
25+
subtensor-macros.workspace = true
26+
27+
[dev-dependencies]
28+
pallet-balances = { default-features = true, workspace = true }
29+
pallet-utility = { default-features = true, workspace = true }
30+
sp-core = { default-features = true, workspace = true }
31+
32+
[features]
33+
default = ["std"]
34+
std = [
35+
"codec/std",
36+
"frame-benchmarking?/std",
37+
"frame-support/std",
38+
"frame-system/std",
39+
"scale-info/std",
40+
"sp-io/std",
41+
"sp-runtime/std",
42+
]
43+
runtime-benchmarks = [
44+
"frame-benchmarking/runtime-benchmarks",
45+
"frame-support/runtime-benchmarks",
46+
"frame-system/runtime-benchmarks",
47+
"sp-runtime/runtime-benchmarks",
48+
"pallet-balances/runtime-benchmarks",
49+
"pallet-utility/runtime-benchmarks"
50+
]
51+
try-runtime = [
52+
"frame-support/try-runtime",
53+
"frame-system/try-runtime",
54+
"sp-runtime/try-runtime",
55+
"pallet-balances/try-runtime",
56+
"pallet-utility/try-runtime"
57+
]

pallets/proxy/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Proxy Module
2+
A module allowing accounts to give permission to other accounts to dispatch types of calls from
3+
their signed origin.
4+
5+
The accounts to which permission is delegated may be required to announce the action that they
6+
wish to execute some duration prior to execution happens. In this case, the target account may
7+
reject the announcement and in doing so, veto the execution.
8+
9+
- [`Config`](https://docs.rs/pallet-proxy/latest/pallet_proxy/pallet/trait.Config.html)
10+
- [`Call`](https://docs.rs/pallet-proxy/latest/pallet_proxy/pallet/enum.Call.html)
11+
12+
## Overview
13+
14+
## Interface
15+
16+
### Dispatchable Functions
17+
18+
[`Call`]: ./enum.Call.html
19+
[`Config`]: ./trait.Config.html
20+
21+
License: Apache-2.0
22+
23+
24+
## Release
25+
26+
Polkadot SDK stable2409

0 commit comments

Comments
 (0)