Listing
Listing contract for CIS-1 tokens with CIS Royalty extension.
Compatibility
Listed tokens must implement following standards or specifications:
Types
Events
Write functions
Function list
list
Full name: BictoryNftListing.list
List transfered token for sale.
To list token for sale, it must be trasnfered via CIS-1 transfer
function to this BictoryNftListing
contract instance with this function as a callback. Token price is specified via additional data field of CIS-1 transfer
function. See CIS-1 transfer documentation.
AdditionalData in binary
Events
Produces ListEvent
per each listed token.
Errors
-13 InvalidRoyalty
Token royalty exceeds 100%;
-24 ContractOnly
Transaction sent by an account.
-33 InvokeContractError
NFT contract logic rejected.
-37 Incompatible
NFT contract doesn't implement CIS Royalty Extension specification.
-39 Unsupported
Transfer amount is over 1 token;
Token owner is a contract.
-2147483645 LogError::Full
-2147483646 ParseError
Invalid CIS-1 callback parameter;
Invalid AdditionalData format.
Function unlist
unlist
Full name: BictoryNftListing.unlist
Unlist token from sale and return it to original owner.
Parameters in binary
Events
Produces UnlistEvent
.
Errors
-5 TokenNotListedForSale
-33 InvokeContractError
NFT contract logic rejected.
-36 Unauthorized
Attempt to unlist token as a non-owner account.
-37 Incompatible
NFT contract doesn't implement CIS-1.
-2147483645 LogError::Full
-2147483646 ParseError
Function buy
buy
Full name: BictoryNftListing.buy
Buy listed NFT. Transfer all royalties and payment to the previous owner. Transfer NFT token to buyer.
Parameters in binary
Events
Produces BuyEvent
.
Errors
-5 TokenNotListedForSale
-10 OnlyAccountAddress
-37 Incompatible
NFT contract doesn't implement CIS-1.
-2147483634 MissingAccount
-2147483635 AmountTooLarge
-2147483645 LogError::Full
-2147483646 ParseError
Last updated