AssetIssueContract constructor
AssetIssueContract({
- required TronAddress ownerAddress,
- required List<
int> name, - required List<
int> abbr, - required BigInt totalSupply,
- List<
AssetIssueContractFrozenSupply> ? frozenSupply, - required int trxNum,
- required int num,
- int? precision,
- required BigInt startTime,
- required BigInt endTime,
- BigInt? order,
- int? voteScore,
- List<
int> ? description, - List<
int> ? url, - BigInt? freeAssetNetLimit,
- BigInt? publicFreeAssetNetLimit,
- BigInt? publicFreeAssetNetUsage,
- BigInt? publicLatestFreeNetTime,
- String? id,
Private constructor for creating an instance of AssetIssueContract.
Implementation
AssetIssueContract({
required this.ownerAddress,
required List<int> name,
required List<int> abbr,
required this.totalSupply,
List<AssetIssueContractFrozenSupply>? frozenSupply,
required this.trxNum,
required this.num,
this.precision,
required this.startTime,
required this.endTime,
this.order,
this.voteScore,
List<int>? description,
List<int>? url,
this.freeAssetNetLimit,
this.publicFreeAssetNetLimit,
this.publicFreeAssetNetUsage,
this.publicLatestFreeNetTime,
this.id,
}) : name = BytesUtils.toBytes(name, unmodifiable: true),
abbr = BytesUtils.toBytes(abbr, unmodifiable: true),
frozenSupply =
frozenSupply != null ? List.unmodifiable(frozenSupply) : null,
description = BytesUtils.tryToBytes(description, unmodifiable: true),
url = BytesUtils.tryToBytes(url, unmodifiable: true);