igrc721_royalty.gno
0.64 Kb ยท 14 lines
1package grc721
2
3// IGRC2981 follows the Ethereum standard
4type IGRC2981 interface {
5 // RoyaltyInfo retrieves royalty information for a tokenID and salePrice.
6 // It returns the payment address, royalty amount, and an error if any.
7 RoyaltyInfo(tokenID TokenID, salePrice int64) (address, int64, error)
8}
9
10// RoyaltyInfo represents royalty information for a token.
11type RoyaltyInfo struct {
12 PaymentAddress address // PaymentAddress is the address where royalty payment should be sent.
13 Percentage int64 // Percentage is the royalty percentage. It indicates the percentage of royalty to be paid for each sale. For example : Percentage = 10 => 10%
14}