ERC1155Burnable mixin
Dart Mixin for ERC1155Burnable that allows token holders to destroy both their own tokens and those that they have been approved to use.
- Superclass constraints
- Mixin applications
Properties
Methods
-
approvalForAllEvents(
[List? args, dynamic startBlock, dynamic endBlock]) → Future< List< Event> > -
Log of
ApprovalForAll
events.inherited -
balanceOf(
String address, int id) → Future< BigInt> -
Returns the amount of tokens
id
owned byaddress
inherited -
balanceOfBatch(
List< String> addresses, List<int> ids) → Future<List< BigInt> > -
Returns the amount of tokens
ids
owned byaddresses
inherited -
balanceOfBatchSingleAddress(
String address, List< int> ids) → Future<List< BigInt> > -
Returns the amount of tokens
ids
owned byaddress
inherited -
burn(
String address, int id, BigInt value) → Future< TransactionResponse> -
burnBatch(
String address, List< int> ids, List<BigInt> values) → Future<TransactionResponse> -
connect(
dynamic providerOrSigner) → void -
Connect current contract with
providerOrSigner
inherited -
isApprovedForAll(
String owner, String spender) → Future< bool> -
Returns
true
ifspender
is approved to transferowner
tokensinherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onApprovalForAll(
void callback(String account, String operator, Event event)) → void -
Emitted when
account
grants or revokes permission tooperator
to transfer their tokens, according toapproved
.inherited -
onTransferBatch(
void callback(String operator, String from, String to, Event event)) → void -
Equivalent to multiple
TransferSingle
events, whereoperator
,from
andto
are the same for all transfers.inherited -
onTransferSingle(
void callback(String operator, String from, String to, Event event)) → void -
Emitted when
value
tokens of token typeid
are transferred fromfrom
toto
byoperator
.inherited -
safeBatchTransferFrom(
String from, String to, List< int> id, List<BigInt> amount, String data) → Future<TransactionResponse> -
Batched version of safeTransferFrom.
inherited
-
safeTransferFrom(
String from, String to, int id, BigInt amount, String data) → Future< TransactionResponse> -
Transfers
amount
tokens of token typeid
fromfrom
toto
.inherited -
setApprovedForAll(
String spender, bool approved) → Future< TransactionResponse> -
Grants or revokes permission to
spender
to transfer the caller's tokens, according toapproved
,inherited -
toString(
) → String -
A string representation of this object.
inherited
-
transferBatchEvents(
[List? args, dynamic startBlock, dynamic endBlock]) → Future< List< Event> > -
Log of
TransferBatch
events.inherited -
transferSingleEvents(
[List? args, dynamic startBlock, dynamic endBlock]) → Future< List< Event> > -
Log of
TransferSingle
events.inherited -
uri(
int id) → FutureOr< String> -
Returns the URI for token type
id
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited