Closed zahhar closed 3 years ago
NEP-181 defines 4 READ methods to be used in NTF contract: https://github.com/near/NEPs/blob/master/specs/Standards/NonFungibleToken/Enumeration.md
Our implementation will return Tokens, not Collectibles.
To make it happen, we need the following change:
get_tokens_by_owner
nft_tokens_for_owner
get_tokens_by_owner_and_gate_id
nft_tokens_for_owner_and_gate_id
get_collectible_by_gate_id
nft_collectible_for_gate_id
get_collectibles_by_creator
nft_collectibles_for_creator
nft_supply_for_owner
nft_tokens
NEP-181 defines 4 READ methods to be used in NTF contract: https://github.com/near/NEPs/blob/master/specs/Standards/NonFungibleToken/Enumeration.md
Our implementation will return Tokens, not Collectibles.
To make it happen, we need the following change:
get_tokens_by_owner
intonft_tokens_for_owner
and add Paginationget_tokens_by_owner_and_gate_id
intonft_tokens_for_owner_and_gate_id
and add Paginationget_collectible_by_gate_id
intonft_collectible_for_gate_id
for consistencyget_collectibles_by_creator
intonft_collectibles_for_creator
for consistencynft_supply_for_owner
method to return just a total amount of all tokens owned by AccountID (in all GateIds)nft_tokens
method to return a list of TokenIDs (NB! Not a Token Structures) with Pagination