AssetIssueContract constructor

AssetIssueContract({
  1. required TronAddress ownerAddress,
  2. required List<int> name,
  3. required List<int> abbr,
  4. required BigInt totalSupply,
  5. List<AssetIssueContractFrozenSupply>? frozenSupply,
  6. required int trxNum,
  7. required int num,
  8. int? precision,
  9. required BigInt startTime,
  10. required BigInt endTime,
  11. BigInt? order,
  12. int? voteScore,
  13. List<int>? description,
  14. List<int>? url,
  15. BigInt? freeAssetNetLimit,
  16. BigInt? publicFreeAssetNetLimit,
  17. BigInt? publicFreeAssetNetUsage,
  18. BigInt? publicLatestFreeNetTime,
  19. 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);