Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
2dcbad53
Commit
2dcbad53
authored
3 years ago
by
Keith Yeung
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Generate storage info for treasury pallet (#9368)
parent
5a65bf55
Branches
gh-readonly-queue/master/pr-5443-38fce08896ee595cb8572923bd0d9f40570e7cb6
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
substrate/frame/treasury/Cargo.toml
+1
-1
1 addition, 1 deletion
substrate/frame/treasury/Cargo.toml
substrate/frame/treasury/src/lib.rs
+3
-2
3 additions, 2 deletions
substrate/frame/treasury/src/lib.rs
with
4 additions
and
3 deletions
substrate/frame/treasury/Cargo.toml
+
1
−
1
View file @
2dcbad53
...
...
@@ -13,7 +13,7 @@ readme = "README.md"
targets
=
[
"x86_64-unknown-linux-gnu"
]
[dependencies]
codec
=
{
package
=
"parity-scale-codec"
,
version
=
"2.
0
.0"
,
default-features
=
false
,
features
=
[
"derive"
]
}
codec
=
{
package
=
"parity-scale-codec"
,
version
=
"2.
2
.0"
,
default-features
=
false
,
features
=
[
"derive"
,
"max-encoded-len"
]
}
serde
=
{
version
=
"1.0.126"
,
features
=
[
"derive"
],
optional
=
true
}
impl-trait-for-tuples
=
"0.2.1"
...
...
This diff is collapsed.
Click to expand it.
substrate/frame/treasury/src/lib.rs
+
3
−
2
View file @
2dcbad53
...
...
@@ -62,7 +62,7 @@ mod tests;
mod
benchmarking
;
pub
mod
weights
;
use
codec
::{
Encode
,
Decode
};
use
codec
::{
Encode
,
Decode
,
MaxEncodedLen
};
use
sp_std
::
prelude
::
*
;
use
sp_runtime
::{
...
...
@@ -116,7 +116,7 @@ pub type ProposalIndex = u32;
/// A spending proposal.
#[cfg_attr(feature
=
"std"
,
derive(serde::Serialize,
serde::Deserialize))]
#[derive(Encode,
Decode,
Clone,
PartialEq,
Eq,
RuntimeDebug)]
#[derive(Encode,
Decode,
Clone,
PartialEq,
Eq,
MaxEncodedLen,
RuntimeDebug)]
pub
struct
Proposal
<
AccountId
,
Balance
>
{
/// The account proposing it.
proposer
:
AccountId
,
...
...
@@ -136,6 +136,7 @@ pub mod pallet {
#[pallet::pallet]
#[pallet::generate_store(pub(super)
trait
Store)]
#[pallet::generate_storage_info]
pub
struct
Pallet
<
T
,
I
=
()
>
(
PhantomData
<
(
T
,
I
)
>
);
#[pallet::config]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment