TokenEvent.nativeToken constructor
- @FreezedUnionValue('native')
Represents a native token event.
Parameters:
symbol
– The symbol of the token. Default is 'FUSE'.name
– The name of the token. Default is 'Fuse Token'.decimals
– The number of decimals the token uses. Default is 18.address
– The address of the token. Default is the native token address.value
– The value associated with the token event.
Implementation
@FreezedUnionValue('native')
const factory TokenEvent.nativeToken({
@Default('FUSE') String symbol,
@Default('Fuse Token') String name,
@Default(18) int decimals,
@Default(Variables.NATIVE_TOKEN_ADDRESS) String address,
@JsonKey(
fromJson: amountFromJson,
)
required BigInt value,
String? to,
String? from,
}) = NativeToken;