-
Notifications
You must be signed in to change notification settings - Fork 6
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
Mint and distribute Contribution Token via pallet_asset
#9
Mint and distribute Contribution Token via pallet_asset
#9
Conversation
pallets/funding/src/lib.rs
Outdated
@@ -381,7 +397,7 @@ pub mod pallet { | |||
pub fn edit_metadata( | |||
origin: OriginFor<T>, | |||
project_metadata_hash: T::Hash, | |||
project_id: T::ProjectIdentifier, | |||
#[pallet::compact] project_id: T::ProjectIdentifier, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to be careful, when you go to 0.9.36 you will need to account for paritytech/substrate@a0e00dc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the Cumulus companion for how that impacts the pallet config (and how you can still use compact).
Following the same reasoning done for |
Add the (basic) ability to create and mint Contribution Tokens via
pallet_asset
.pallet_asset
topallet_funding
create()
extrinsic (provided bypallet_asset
) at the end of the Community Roundid
: The identifier of the new asset. We use the T::ProjectIdentifier.admin
: The admin of this class of assets. The Issuer of the project.min_balance
: The minimum balance of this new asset that any single account must have. Se via the Issuer when the project is created.set()
extrinsic (provided bypallet_asset
)claim_contribution_tokens(origin: OriginFor<T>, project_id: T::ProjectIdentifier)
extrinsic.todo!()
todo!()