mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
9590aa25b6
* fix: Ethereum enhancements around fees and computations relating to signing and sending transactions * feat: Add nownodes key for evm to workflow * feat: Reactivate send all on both eth and polygon wallet types * fix: Add generic function for updating the node for a wallet type, move ethereum transaction error fees handler to a new file * fix: Revert podfile.lock --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
103 lines
4.4 KiB
Dart
103 lines
4.4 KiB
Dart
import 'package:encrypt/encrypt.dart' as encrypt;
|
|
import 'package:convert/convert.dart';
|
|
|
|
class SecretKey {
|
|
const SecretKey(this.name, this.generate);
|
|
|
|
static final base = [
|
|
SecretKey('salt', () => hex.encode(encrypt.Key.fromSecureRandom(16).bytes)),
|
|
SecretKey('keychainSalt', () => hex.encode(encrypt.Key.fromSecureRandom(12).bytes)),
|
|
SecretKey('key', () => hex.encode(encrypt.Key.fromSecureRandom(16).bytes)),
|
|
SecretKey('walletSalt', () => hex.encode(encrypt.Key.fromSecureRandom(4).bytes)),
|
|
SecretKey('shortKey', () => hex.encode(encrypt.Key.fromSecureRandom(12).bytes)),
|
|
SecretKey('backupSalt', () => hex.encode(encrypt.Key.fromSecureRandom(8).bytes)),
|
|
SecretKey('backupKeychainSalt', () => hex.encode(encrypt.Key.fromSecureRandom(12).bytes)),
|
|
SecretKey('changeNowApiKey', () => ''),
|
|
SecretKey('changeNowApiKeyDesktop', () => ''),
|
|
SecretKey('wyreSecretKey', () => ''),
|
|
SecretKey('wyreApiKey', () => ''),
|
|
SecretKey('wyreAccountId', () => ''),
|
|
SecretKey('moonPayApiKey', () => ''),
|
|
SecretKey('moonPaySecretKey', () => ''),
|
|
SecretKey('sideShiftAffiliateId', () => ''),
|
|
SecretKey('simpleSwapApiKey', () => ''),
|
|
SecretKey('simpleSwapApiKeyDesktop', () => ''),
|
|
SecretKey('anypayToken', () => ''),
|
|
SecretKey('onramperApiKey', () => ''),
|
|
SecretKey('ioniaClientId', () => ''),
|
|
SecretKey('trocadorApiKey', () => ''),
|
|
SecretKey('trocadorExchangeMarkup', () => ''),
|
|
SecretKey('twitterBearerToken', () => ''),
|
|
SecretKey('anonPayReferralCode', () => ''),
|
|
SecretKey('fiatApiKey', () => ''),
|
|
SecretKey('payfuraApiKey', () => ''),
|
|
SecretKey('chatwootWebsiteToken', () => ''),
|
|
SecretKey('exolixApiKey', () => ''),
|
|
SecretKey('robinhoodApplicationId', () => ''),
|
|
SecretKey('exchangeHelperApiKey', () => ''),
|
|
SecretKey('walletConnectProjectId', () => ''),
|
|
SecretKey('moralisApiKey', () => ''),
|
|
SecretKey('ankrApiKey', () => ''),
|
|
SecretKey('quantexExchangeMarkup', () => ''),
|
|
SecretKey('seeds', () => ''),
|
|
SecretKey('testCakePayApiKey', () => ''),
|
|
SecretKey('cakePayApiKey', () => ''),
|
|
SecretKey('CSRFToken', () => ''),
|
|
SecretKey('authorization', () => ''),
|
|
SecretKey('meldTestApiKey', () => ''),
|
|
SecretKey('meldTestPublicKey', () => ''),
|
|
SecretKey('moneroTestWalletSeeds', () => ''),
|
|
SecretKey('moneroLegacyTestWalletSeeds ', () => ''),
|
|
SecretKey('bitcoinTestWalletSeeds', () => ''),
|
|
SecretKey('ethereumTestWalletSeeds', () => ''),
|
|
SecretKey('litecoinTestWalletSeeds', () => ''),
|
|
SecretKey('bitcoinCashTestWalletSeeds', () => ''),
|
|
SecretKey('polygonTestWalletSeeds', () => ''),
|
|
SecretKey('solanaTestWalletSeeds', () => ''),
|
|
SecretKey('polygonTestWalletSeeds', () => ''),
|
|
SecretKey('tronTestWalletSeeds', () => ''),
|
|
SecretKey('nanoTestWalletSeeds', () => ''),
|
|
SecretKey('wowneroTestWalletSeeds', () => ''),
|
|
SecretKey('moneroTestWalletReceiveAddress', () => ''),
|
|
SecretKey('bitcoinTestWalletReceiveAddress', () => ''),
|
|
SecretKey('ethereumTestWalletReceiveAddress', () => ''),
|
|
SecretKey('litecoinTestWalletReceiveAddress', () => ''),
|
|
SecretKey('bitcoinCashTestWalletReceiveAddress', () => ''),
|
|
SecretKey('polygonTestWalletReceiveAddress', () => ''),
|
|
SecretKey('solanaTestWalletReceiveAddress', () => ''),
|
|
SecretKey('tronTestWalletReceiveAddress', () => ''),
|
|
SecretKey('nanoTestWalletReceiveAddress', () => ''),
|
|
SecretKey('wowneroTestWalletReceiveAddress', () => ''),
|
|
SecretKey('etherScanApiKey', () => ''),
|
|
SecretKey('polygonScanApiKey', () => ''),
|
|
SecretKey('letsExchangeBearerToken', () => ''),
|
|
SecretKey('letsExchangeAffiliateId', () => ''),
|
|
SecretKey('stealthExBearerToken', () => ''),
|
|
SecretKey('stealthExAdditionalFeePercent', () => ''),
|
|
SecretKey('moneroTestWalletBlockHeight', () => ''),
|
|
];
|
|
|
|
static final evmChainsSecrets = [
|
|
SecretKey('etherScanApiKey', () => ''),
|
|
SecretKey('polygonScanApiKey', () => ''),
|
|
SecretKey('moralisApiKey', () => ''),
|
|
SecretKey('nowNodesApiKey ', () => ''),
|
|
];
|
|
|
|
static final solanaSecrets = [
|
|
SecretKey('ankrApiKey', () => ''),
|
|
];
|
|
|
|
static final nanoSecrets = [
|
|
SecretKey('nano2ApiKey', () => ''),
|
|
SecretKey('nanoNowNodesApiKey', () => ''),
|
|
];
|
|
|
|
static final tronSecrets = [
|
|
SecretKey('tronGridApiKey', () => ''),
|
|
SecretKey('tronNowNodesApiKey', () => ''),
|
|
];
|
|
|
|
final String name;
|
|
final String Function() generate;
|
|
}
|