-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
Asset-hub-royalties #7816
Asset-hub-royalties #7816
Conversation
✅ Deploy Preview for koda-canary ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
import { verifyRoyalty } from './utils' | ||
|
||
function payRoyaltyAssetHub( | ||
legacy, |
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.
Function payRoyaltyAssetHub
has 6 arguments (exceeds 4 allowed). Consider refactoring.
AI-Generated Summary: This pull request includes 3 patches.
On the whole, these changes thus deal with the implementation of royalty payments for NFTs across different chains. |
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.
otherwise code lgtm
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.
~
: api.tx.nfts.payTips([ | ||
{ | ||
collection: collectionId, | ||
item: tokenId, | ||
receiver: normalizedRoyalty.address, | ||
amount: royaltyFee(price, normalizedRoyalty.amount), | ||
}, |
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.
move to utils?
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.
i don't see the value in it
you will have a function with 4 params plus API
why not just use api.tx.nfts.payTips
directly?
thought so but didn't want to step in and do it without your consent |
Still can tag me ^-^ |
Ahk - custom royalties only Set @daiagi to receive 5% royalties, bought NFT from myself on AssetHub and value got sent to him |
@vikiival what ? He is adding royalty to each nft unless of adding into the collection |
Sir I do not understand what you mean. |
Code Climate has analyzed commit dc512ec and detected 3 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
// { | ||
// linkName: 'Instagram', | ||
// linkAddress: 'https://www.instagram.com/kodadot.xyz/', | ||
// }, |
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.
let's fix it in another PR or maybe @prury has an idea?
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.
let's fix it in another PR or maybe @prury has an idea?
can we leave it like that and I'll apply a proper fix in another PR?
Thanks! |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type
Needs QA check
Context
Did your issue had any of the "$" label on it?
$
Related transacrions
https://assethub-kusama.subscan.io/extrinsic/5640724-2
https://assethub-kusama.subscan.io/extrinsic/5640390-2
https://assethub-kusama.subscan.io/extrinsic/5645506-2
items minted with royalty:
/ahk/gallery/12-10
/ahk/gallery/12-11
/ahk/gallery/12-12
Copilot Summary
🤖 Generated by Copilot at b6f31df
This pull request adds and improves the functionality for handling royalties on different chains and NFT standards. It enables minting and paying royalties on Statemine, toggles Rmrk-specific features based on the chain, and refactors the code for verifying and normalizing royalty data. It affects the files
CreateNft.vue
,transactionMintStatemine.ts
,transactionBuy.ts
,useIsChain.ts
,support.ts
, andutils.ts
.🤖 Generated by Copilot at b6f31df