ITTFutureToken
Fully qualified path: tokentable_v2::components::interfaces::futuretoken::ITTFutureToken
pub trait ITTFutureToken<TContractState>
Trait functions
set_authorized_minter_single_use
Permanently sets the authorized FutureToken minter. This function can only be called once.
Arguments
authorized_minter: The authorized minter, typically an Unlocker contract.
Panics
NOT_PERMISSIONED: If this function has already been called before.
Fully qualified path: tokentable_v2::components::interfaces::futuretoken::ITTFutureToken::set_authorized_minter_single_use
fn set_authorized_minter_single_use(ref self: TContractState, authorized_minter: ContractAddress)
mint
Mints a new FutureToken.
Arguments
to: The owner of the minted FutureToken.unsafe_mint: Usemint(...)instead ofsafe_mint(...).
Panics
NOT_PERMISSIONED: If the caller isn’t the authorized minter.
Returns
u256: The token ID, akaactual_id, of the minted FutureToken.
Fully qualified path: tokentable_v2::components::interfaces::futuretoken::ITTFutureToken::mint
fn mint(ref self: TContractState, to: ContractAddress, unsafe_mint: bool) -> u256
set_token_base_uri
Sets the base token URI.
Arguments
uri: The new URI.
Panics
NOT_PERMISSIONED: If the caller isn’t the owner of the authorized minter.
Events
DidSetBaseURI
Fully qualified path: tokentable_v2::components::interfaces::futuretoken::ITTFutureToken::set_token_base_uri
fn set_token_base_uri(ref self: TContractState, uri: ByteArray)
get_claim_info
Returns information regarding the unlocking schedule attached to a FutureToken.
Arguments
token_id: The FutureToken we are querying. This is also theactual_id.
Returns
u256: The claimable amount of tokens this time.u256: The updated total amount of tokens claimed after this claim action.bool: If the schedule attached to said FutureToken is cancelable.
Fully qualified path: tokentable_v2::components::interfaces::futuretoken::ITTFutureToken::get_claim_info
fn get_claim_info(self: @TContractState, token_id: u256) -> (u256, u256, bool)