Ticket
Ticket
readGreyList
Read grey list
** Request **
Params
Type
Description
_tokenId
uint256
ticket token id
** Response **
Params
Type
Description
isGreyToken
bool
is grey token
readrentExpires
Read the rent expiration date for a ticket
** Request **
** Params**
Type
Description
_tokenId
uint256
ticket token id
_user
address
rent user
** Response **
Params
Type
Description
timestamp
uint256
rent expired at
readMiner
Read the token address issued under a ticket
** Response **
Params
Type
Description
miner
address
miner
readTotalSupply
Read the total token amount issued under a ticket
** Response **
Params
Type
Description
totalSupply
uint256
ticket total supply
readTokenTotalSupply
The amount of specified tickets
** Request **
Params
Type
Description
token_id
uint256
ticket id
** Response **
Params
Type
Description
totalSupply
uint256
a ticket amount
readTokenOwner
Read the ticket address of the owner
** Request **
Params
Type
Description
token_id
uint256
ticket id
** Response **
Params
Type
Description
owner
address
a ticket owner
readTokenFroze
Read whether the ticket is collateralized or not
** Request **
Params
Type
Description
token_id
uint256
ticket id
** Response **
Params
Type
Description
isFroze
bool
ticket is frozen
Issue
Issue a CDS
Params
Type
Description
_tokenId
address
ticket id
_leverage
uint256
Leverage,*10,e.g., leverage 1.1 is 11
_baseToken
address
Tokens
_underlyingHash
bytes32
cds content
_isStakeNFT
uint256
Is the collateral nft
_maturityDate
uint256
cds maturity date(seconds)
_initialMargin
uint256
Initial lp amount
_minInvest
uint256
Minimum liquidity investment
SafeTransferFrom
Transfer a ticket
Params
Type
Description
from
address
ticket transfer from
to
address
ticket transfer to
ticket_id
uint256
ticket transfer id
amount
uint256
amount=from address balance,just ticket owner have right to transfer
TackBack
Take back the NFT ticket after the rental period expires
Params
Type
Description
user
address
rent address of user
ticket_id
uint256
ticket transfer id
Last updated