Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Asset Transaction Payment#488

Merged
apopiak merged 75 commits into
masterfrom
apopiak/asset-tx-payment
Oct 11, 2021
Merged

Asset Transaction Payment#488
apopiak merged 75 commits into
masterfrom
apopiak/asset-tx-payment

Conversation

@apopiak
Copy link
Copy Markdown
Contributor

@apopiak apopiak commented Jun 10, 2021

Add a pallet to allow for transaction payment in assets.

The asset-tx-payment pallet wraps FRAME's transaction-payment pallet and either pays the fees in the native currency if the asset id is set to None or in the specified asset.

Depends on:

Closes #505

Todos:

  • FungiblesAdapter

@apopiak
Copy link
Copy Markdown
Contributor Author

apopiak commented Jun 17, 2021

@jacogr We'll need a different SignedExtra for the transactions here.

@apopiak
Copy link
Copy Markdown
Contributor Author

apopiak commented Oct 4, 2021

I would like to merge this PR.
Only open conversations are #488 (comment) and #488 (comment) and for both I tend towards staying with the status quo of the PR.

@apopiak apopiak requested a review from bkchr October 5, 2021 13:02
@apopiak
Copy link
Copy Markdown
Contributor Author

apopiak commented Oct 5, 2021

@bkchr Any objections to merging this?

Copy link
Copy Markdown
Member

@bkchr bkchr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can see it looks good.

Comment thread polkadot-parachains/parachains-common/src/impls.rs Outdated
Comment thread pallets/asset-tx-payment/src/lib.rs Outdated
Comment thread pallets/asset-tx-payment/src/payment.rs Outdated
@apopiak
Copy link
Copy Markdown
Contributor Author

apopiak commented Oct 7, 2021

Note: Will require spec version and transaction bumps when upstreaming Statemine v4 release

Comment thread pallets/asset-tx-payment/src/tests.rs Outdated
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

T7-system_parachains This PR/Issue is related to System Parachains.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accept Transaction Fees in Assets

4 participants