mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-28 06:29:39 +00:00
7bf2fb9dce
* feat: Add warning before adding erc20 token via contract address * fix: Update message on edit token page * fix: Adjust polygon secrets variable name * fix: Handle loading state, translate strings and fix other issues * fix linux build [skip ci] * fix: Modify warning text for contract address scam alert * Update secret_key.dart --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
85 lines
2.4 KiB
Dart
85 lines
2.4 KiB
Dart
class Erc20TokenInfoMoralis {
|
|
String? address;
|
|
String? addressLabel;
|
|
String? name;
|
|
String? symbol;
|
|
String? decimals;
|
|
String? logo;
|
|
String? logoHash;
|
|
String? thumbnail;
|
|
String? totalSupply;
|
|
String? totalSupplyFormatted;
|
|
String? fullyDilutedValuation;
|
|
String? blockNumber;
|
|
int? validated;
|
|
String? createdAt;
|
|
bool? possibleSpam;
|
|
bool? verifiedContract;
|
|
Links? links;
|
|
int? securityScore;
|
|
|
|
Erc20TokenInfoMoralis({
|
|
this.address,
|
|
this.addressLabel,
|
|
this.name,
|
|
this.symbol,
|
|
this.decimals,
|
|
this.logo,
|
|
this.logoHash,
|
|
this.thumbnail,
|
|
this.totalSupply,
|
|
this.totalSupplyFormatted,
|
|
this.fullyDilutedValuation,
|
|
this.blockNumber,
|
|
this.validated,
|
|
this.createdAt,
|
|
this.possibleSpam,
|
|
this.verifiedContract,
|
|
this.links,
|
|
this.securityScore,
|
|
});
|
|
|
|
Erc20TokenInfoMoralis.fromJson(Map<String, dynamic> json) {
|
|
address = json['address'] as String?;
|
|
addressLabel = json['address_label'] as String?;
|
|
name = json['name'] as String?;
|
|
symbol = json['symbol'] as String?;
|
|
decimals = json['decimals'] as String?;
|
|
logo = json['logo'] as String?;
|
|
logoHash = json['logo_hash'] as String?;
|
|
thumbnail = json['thumbnail'] as String?;
|
|
totalSupply = json['total_supply'] as String?;
|
|
totalSupplyFormatted = json['total_supply_formatted'] as String?;
|
|
fullyDilutedValuation = json['fully_diluted_valuation'] as String?;
|
|
blockNumber = json['block_number'] as String?;
|
|
validated = json['validated'] as int?;
|
|
createdAt = json['created_at'] as String?;
|
|
possibleSpam = json['possible_spam'] as bool?;
|
|
verifiedContract = json['verified_contract'] as bool;
|
|
links =
|
|
json['links'] != null ? new Links.fromJson(json['links'] as Map<String, dynamic>) : null;
|
|
securityScore = json['security_score'] as int?;
|
|
}
|
|
}
|
|
|
|
class Links {
|
|
String? twitter;
|
|
String? website;
|
|
String? facebook;
|
|
String? reddit;
|
|
String? github;
|
|
String? linkedin;
|
|
String? telegram;
|
|
|
|
Links({this.twitter, this.website, this.facebook, this.reddit});
|
|
|
|
Links.fromJson(Map<String, dynamic> json) {
|
|
twitter = json['twitter'] as String?;
|
|
website = json['website'] as String?;
|
|
facebook = json['facebook'] as String?;
|
|
reddit = json['reddit'] as String?;
|
|
github = json['github'] as String?;
|
|
linkedin = json['linkedin'] as String?;
|
|
telegram = json['telegram'] as String?;
|
|
}
|
|
}
|