Skip to content

Commit

Permalink
feat: nep-199 royalties
Browse files Browse the repository at this point in the history
  • Loading branch information
encody committed Sep 14, 2022
1 parent d5df044 commit 81ae9a0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export enum StandardInterfaceId {
NEP171 = 'nep171',
NEP177 = 'nep177',
NEP178 = 'nep178',
NEP199 = 'nep199',
NEP330 = 'nep330',
}

Expand Down Expand Up @@ -184,6 +185,30 @@ export const interfaces: Readonly<
},
],
},
[StandardInterfaceId.NEP199]: {
id: StandardInterfaceId.NEP199,
name: 'Royalties and Payouts (NEP-199)',
methods: [
{
name: 'nft_payout',
args: [
{ name: 'token_id', type: 'string' },
{ name: 'balance', type: 'string' },
{ name: 'max_len_payout', type: 'number' },
],
},
{
name: 'nft_transfer_payout',
args: [
{ name: 'receiver_id', type: 'string' },
{ name: 'token_id', type: 'string' },
{ name: 'approval_id', type: 'number' },
{ name: 'balance', type: 'string' },
{ name: 'max_len_payout', type: 'number' },
],
},
],
},
[StandardInterfaceId.NEP330]: {
id: StandardInterfaceId.NEP330,
name: 'Source Metadata (NEP-330)',
Expand Down

0 comments on commit 81ae9a0

Please sign in to comment.