pub struct ESDTSystemSCProxyMethods<Env, From, To, Gas>{ /* private fields */ }
Expand description
Method container of the ESDT system smart contract proxy.
Implementations§
Source§impl<Env, From, To, Gas> ESDTSystemSCProxyMethods<Env, From, To, Gas>
impl<Env, From, To, Gas> ESDTSystemSCProxyMethods<Env, From, To, Gas>
Sourcepub fn issue_fungible<Arg0: ProxyArg<ManagedBuffer<Env::Api>>, Arg1: ProxyArg<ManagedBuffer<Env::Api>>, Arg2: ProxyArg<BigUint<Env::Api>>>(
self,
issue_cost: BigUint<Env::Api>,
token_display_name: Arg0,
token_ticker: Arg1,
initial_supply: Arg2,
properties: FungibleTokenProperties,
) -> IssueCall<Env, From, To, Gas>
pub fn issue_fungible<Arg0: ProxyArg<ManagedBuffer<Env::Api>>, Arg1: ProxyArg<ManagedBuffer<Env::Api>>, Arg2: ProxyArg<BigUint<Env::Api>>>( self, issue_cost: BigUint<Env::Api>, token_display_name: Arg0, token_ticker: Arg1, initial_supply: Arg2, properties: FungibleTokenProperties, ) -> IssueCall<Env, From, To, Gas>
Produces a contract call to the ESDT system SC, which causes it to issue a new fungible ESDT token.
Sourcepub fn issue_non_fungible<Arg0: ProxyArg<ManagedBuffer<Env::Api>>, Arg1: ProxyArg<ManagedBuffer<Env::Api>>>(
self,
issue_cost: BigUint<Env::Api>,
token_display_name: Arg0,
token_ticker: Arg1,
properties: NonFungibleTokenProperties,
) -> IssueCall<Env, From, To, Gas>
pub fn issue_non_fungible<Arg0: ProxyArg<ManagedBuffer<Env::Api>>, Arg1: ProxyArg<ManagedBuffer<Env::Api>>>( self, issue_cost: BigUint<Env::Api>, token_display_name: Arg0, token_ticker: Arg1, properties: NonFungibleTokenProperties, ) -> IssueCall<Env, From, To, Gas>
Produces a contract call to the ESDT system SC, which causes it to issue a new non-fungible ESDT token.
Sourcepub fn issue_semi_fungible<Arg0: ProxyArg<ManagedBuffer<Env::Api>>, Arg1: ProxyArg<ManagedBuffer<Env::Api>>>(
self,
issue_cost: BigUint<Env::Api>,
token_display_name: Arg0,
token_ticker: Arg1,
properties: SemiFungibleTokenProperties,
) -> IssueCall<Env, From, To, Gas>
pub fn issue_semi_fungible<Arg0: ProxyArg<ManagedBuffer<Env::Api>>, Arg1: ProxyArg<ManagedBuffer<Env::Api>>>( self, issue_cost: BigUint<Env::Api>, token_display_name: Arg0, token_ticker: Arg1, properties: SemiFungibleTokenProperties, ) -> IssueCall<Env, From, To, Gas>
Produces a contract call to the ESDT system SC, which causes it to issue a new semi-fungible ESDT token.
Sourcepub fn register_meta_esdt<Arg0: ProxyArg<ManagedBuffer<Env::Api>>, Arg1: ProxyArg<ManagedBuffer<Env::Api>>>(
self,
issue_cost: BigUint<Env::Api>,
token_display_name: Arg0,
token_ticker: Arg1,
properties: MetaTokenProperties,
) -> IssueCall<Env, From, To, Gas>
pub fn register_meta_esdt<Arg0: ProxyArg<ManagedBuffer<Env::Api>>, Arg1: ProxyArg<ManagedBuffer<Env::Api>>>( self, issue_cost: BigUint<Env::Api>, token_display_name: Arg0, token_ticker: Arg1, properties: MetaTokenProperties, ) -> IssueCall<Env, From, To, Gas>
Produces a contract call to the ESDT system SC, which causes it to register a new Meta ESDT token.
pub fn issue_and_set_all_roles<Arg0: ProxyArg<ManagedBuffer<Env::Api>>, Arg1: ProxyArg<ManagedBuffer<Env::Api>>>( self, issue_cost: BigUint<Env::Api>, token_display_name: Arg0, token_ticker: Arg1, token_type: EsdtTokenType, num_decimals: usize, ) -> IssueCall<Env, From, To, Gas>
Sourcepub fn issue_dynamic<Arg0: ProxyArg<ManagedBuffer<Env::Api>>, Arg1: ProxyArg<ManagedBuffer<Env::Api>>>(
self,
issue_cost: BigUint<Env::Api>,
token_display_name: Arg0,
token_ticker: Arg1,
token_type: EsdtTokenType,
num_decimals: usize,
) -> IssueCall<Env, From, To, Gas>
pub fn issue_dynamic<Arg0: ProxyArg<ManagedBuffer<Env::Api>>, Arg1: ProxyArg<ManagedBuffer<Env::Api>>>( self, issue_cost: BigUint<Env::Api>, token_display_name: Arg0, token_ticker: Arg1, token_type: EsdtTokenType, num_decimals: usize, ) -> IssueCall<Env, From, To, Gas>
Issues dynamic ESDT tokens
Sourcepub fn mint<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<BigUint<Env::Api>>>(
self,
token_identifier: Arg0,
amount: Arg1,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn mint<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<BigUint<Env::Api>>>( self, token_identifier: Arg0, amount: Arg1, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
Produces a contract call to the ESDT system SC, which causes it to mint more fungible ESDT tokens. It will fail if the SC is not the owner of the token.
Sourcepub fn burn<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<BigUint<Env::Api>>>(
self,
token_identifier: Arg0,
amount: Arg1,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn burn<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<BigUint<Env::Api>>>( self, token_identifier: Arg0, amount: Arg1, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
Produces a contract call to the ESDT system SC, which causes it to burn fungible ESDT tokens owned by the SC.
Sourcepub fn pause<Arg0: ProxyArg<TokenIdentifier<Env::Api>>>(
self,
token_identifier: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn pause<Arg0: ProxyArg<TokenIdentifier<Env::Api>>>( self, token_identifier: Arg0, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
The manager of an ESDT token may choose to suspend all transactions of the token, except minting, freezing/unfreezing and wiping.
Sourcepub fn unpause<Arg0: ProxyArg<TokenIdentifier<Env::Api>>>(
self,
token_identifier: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn unpause<Arg0: ProxyArg<TokenIdentifier<Env::Api>>>( self, token_identifier: Arg0, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
The reverse operation of pause
.
Sourcepub fn freeze<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<ManagedAddress<Env::Api>>>(
self,
token_identifier: Arg0,
address: Arg1,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn freeze<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<ManagedAddress<Env::Api>>>( self, token_identifier: Arg0, address: Arg1, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
The manager of an ESDT token may freeze the tokens held by a specific account. As a consequence, no tokens may be transferred to or from the frozen account. Freezing and unfreezing the tokens of an account are operations designed to help token managers to comply with regulations.
Sourcepub fn unfreeze<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<ManagedAddress<Env::Api>>>(
self,
token_identifier: Arg0,
address: Arg1,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn unfreeze<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<ManagedAddress<Env::Api>>>( self, token_identifier: Arg0, address: Arg1, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
The reverse operation of freeze
, unfreezing, will allow further transfers to and from the account.
Sourcepub fn wipe<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<ManagedAddress<Env::Api>>>(
self,
token_identifier: Arg0,
address: Arg1,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn wipe<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<ManagedAddress<Env::Api>>>( self, token_identifier: Arg0, address: Arg1, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
The manager of an ESDT token may wipe out all the tokens held by a frozen account. This operation is similar to burning the tokens, but the account must have been frozen beforehand, and it must be done by the token manager. Wiping the tokens of an account is an operation designed to help token managers to comply with regulations.
Sourcepub fn freeze_nft<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<ManagedAddress<Env::Api>>>(
self,
token_identifier: Arg0,
nft_nonce: u64,
address: Arg1,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn freeze_nft<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<ManagedAddress<Env::Api>>>( self, token_identifier: Arg0, nft_nonce: u64, address: Arg1, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
The manager of an ESDT token may freeze the NFT held by a specific Account. As a consequence, no NFT can be transferred to or from the frozen Account. Freezing and unfreezing a single NFT of an Account are operations designed to help token managers to comply with regulations.
Sourcepub fn unfreeze_nft<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<ManagedAddress<Env::Api>>>(
self,
token_identifier: Arg0,
nft_nonce: u64,
address: Arg1,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn unfreeze_nft<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<ManagedAddress<Env::Api>>>( self, token_identifier: Arg0, nft_nonce: u64, address: Arg1, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
The reverse operation of freeze
, unfreezing, will allow further transfers to and from the account.
Sourcepub fn wipe_nft<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<ManagedAddress<Env::Api>>>(
self,
token_identifier: Arg0,
nft_nonce: u64,
address: Arg1,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn wipe_nft<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<ManagedAddress<Env::Api>>>( self, token_identifier: Arg0, nft_nonce: u64, address: Arg1, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
The manager of an ESDT token may wipe out a single NFT held by a frozen Account. This operation is similar to burning the quantity, but the Account must have been frozen beforehand, and it must be done by the token manager. Wiping the tokens of an Account is an operation designed to help token managers to comply with regulations.
Sourcepub fn change_sft_to_meta_esdt<Arg0: ProxyArg<TokenIdentifier<Env::Api>>>(
self,
token_identifier: Arg0,
num_decimals: usize,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn change_sft_to_meta_esdt<Arg0: ProxyArg<TokenIdentifier<Env::Api>>>( self, token_identifier: Arg0, num_decimals: usize, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
This function converts an SFT to a metaESDT by adding decimals to its structure in the metachain ESDT System SC. This function as almost all in case of ESDT can be called only by the owner.
Sourcepub fn set_special_roles<RoleIter: Iterator<Item = EsdtLocalRole>, Arg0: ProxyArg<ManagedAddress<Env::Api>>, Arg1: ProxyArg<TokenIdentifier<Env::Api>>>(
self,
address: Arg0,
token_identifier: Arg1,
roles_iter: RoleIter,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn set_special_roles<RoleIter: Iterator<Item = EsdtLocalRole>, Arg0: ProxyArg<ManagedAddress<Env::Api>>, Arg1: ProxyArg<TokenIdentifier<Env::Api>>>( self, address: Arg0, token_identifier: Arg1, roles_iter: RoleIter, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
This function can be called only if canSetSpecialRoles was set to true. The metachain system SC will evaluate the arguments and call “ESDTSetRole@tokenId@listOfRoles” for the given address. This will be actually a cross shard call. This function as almost all in case of ESDT can be called only by the owner.
Sourcepub fn unset_special_roles<RoleIter: Iterator<Item = EsdtLocalRole>, Arg0: ProxyArg<ManagedAddress<Env::Api>>, Arg1: ProxyArg<TokenIdentifier<Env::Api>>>(
self,
address: Arg0,
token_identifier: Arg1,
roles_iter: RoleIter,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn unset_special_roles<RoleIter: Iterator<Item = EsdtLocalRole>, Arg0: ProxyArg<ManagedAddress<Env::Api>>, Arg1: ProxyArg<TokenIdentifier<Env::Api>>>( self, address: Arg0, token_identifier: Arg1, roles_iter: RoleIter, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
This function can be called only if canSetSpecialRoles was set to true. The metachain system SC will evaluate the arguments and call “ESDTUnsetRole@tokenId@listOfRoles” for the given address. This will be actually a cross shard call. This function as almost all in case of ESDT can be called only by the owner.
pub fn transfer_ownership<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<ManagedAddress<Env::Api>>>( self, token_identifier: Arg0, new_owner: Arg1, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn transfer_nft_create_role<Arg0: ProxyArg<TokenIdentifier<Env::Api>>, Arg1: ProxyArg<ManagedAddress<Env::Api>>>( self, token_identifier: Arg0, old_creator: Arg1, new_creator: Arg1, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn control_changes<Arg0: ProxyArg<TokenIdentifier<Env::Api>>>( self, token_identifier: Arg0, property_arguments: &TokenPropertyArguments, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
Sourcepub fn change_to_dynamic<Arg0: ProxyArg<TokenIdentifier<Env::Api>>>(
self,
token_id: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn change_to_dynamic<Arg0: ProxyArg<TokenIdentifier<Env::Api>>>( self, token_id: Arg0, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
Changes token to dynamic. Does not work for: FungibleESDT, NonFungibleESDT, NonFungibleESDTv2.
Sourcepub fn update_token<Arg0: ProxyArg<TokenIdentifier<Env::Api>>>(
self,
token_id: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
pub fn update_token<Arg0: ProxyArg<TokenIdentifier<Env::Api>>>( self, token_id: Arg0, ) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()>
Updates a specific token to the newest version.