| 1 | import 'package:encrypt/encrypt.dart' as encrypt; |
| 2 | import 'package:convert/convert.dart'; |
| 3 | |
| 4 | class SecretKey { |
| 5 | const SecretKey(this.name, this.generate); |
| 6 | |
| 7 | static final base = [ |
| 8 | SecretKey('salt', () => hex.encode(encrypt.Key.fromSecureRandom(16).bytes)), |
| 9 | SecretKey('keychainSalt', () => hex.encode(encrypt.Key.fromSecureRandom(12).bytes)), |
| 10 | SecretKey('key', () => hex.encode(encrypt.Key.fromSecureRandom(16).bytes)), |
| 11 | SecretKey('walletSalt', () => hex.encode(encrypt.Key.fromSecureRandom(4).bytes)), |
| 12 | SecretKey('shortKey', () => hex.encode(encrypt.Key.fromSecureRandom(12).bytes)), |
| 13 | SecretKey('backupSalt', () => hex.encode(encrypt.Key.fromSecureRandom(8).bytes)), |
| 14 | SecretKey('backupKeychainSalt', () => hex.encode(encrypt.Key.fromSecureRandom(12).bytes)), |
| 15 | SecretKey('changeNowCakeWalletApiKey', () => ''), |
| 16 | SecretKey('changeNowMoneroApiKey', () => ''), |
| 17 | SecretKey('wyreSecretKey', () => ''), |
| 18 | SecretKey('wyreApiKey', () => ''), |
| 19 | SecretKey('wyreAccountId', () => ''), |
| 20 | SecretKey('moonPayApiKey', () => ''), |
| 21 | SecretKey('moonPaySandboxApiKey', () => ''), |
| 22 | SecretKey('moonPaySecretKey', () => ''), |
| 23 | SecretKey('sideShiftAffiliateId', () => ''), |
| 24 | SecretKey('simpleSwapApiKey', () => ''), |
| 25 | SecretKey('simpleSwapApiKeyDesktop', () => ''), |
| 26 | SecretKey('anypayToken', () => ''), |
| 27 | SecretKey('onramperApiKey', () => ''), |
| 28 | SecretKey('ioniaClientId', () => ''), |
| 29 | SecretKey('trocadorApiKey', () => ''), |
| 30 | SecretKey('trocadorMoneroApiKey', () => ''), |
| 31 | SecretKey('trocadorExchangeMarkup', () => ''), |
| 32 | SecretKey('twitterBearerToken', () => ''), |
| 33 | SecretKey('anonPayReferralCode', () => ''), |
| 34 | SecretKey('fiatApiKey', () => ''), |
| 35 | SecretKey('chatwootWebsiteToken', () => ''), |
| 36 | SecretKey('exolixCakeWalletApiKey', () => ''), |
| 37 | SecretKey('exolixMoneroApiKey', () => ''), |
| 38 | SecretKey('robinhoodApplicationId', () => ''), |
| 39 | SecretKey('exchangeHelperApiKey', () => ''), |
| 40 | SecretKey('walletConnectProjectId', () => ''), |
| 41 | SecretKey('moralisApiKey', () => ''), |
| 42 | SecretKey('ankrApiKey', () => ''), |
| 43 | SecretKey('chainStackApiKey', () => ''), |
| 44 | SecretKey('swapTradeExchangeMarkup', () => ''), |
| 45 | SecretKey('seeds', () => ''), |
| 46 | SecretKey('testCakePayApiKey', () => ''), |
| 47 | SecretKey('cakePayApiKey', () => ''), |
| 48 | SecretKey('CSRFToken', () => ''), |
| 49 | SecretKey('authorization', () => ''), |
| 50 | SecretKey('meldTestApiKey', () => ''), |
| 51 | SecretKey('meldTestPublicKey', () => ''), |
| 52 | SecretKey('moneroTestWalletSeeds', () => ''), |
| 53 | SecretKey('moneroLegacyTestWalletSeeds ', () => ''), |
| 54 | SecretKey('bitcoinTestWalletSeeds', () => ''), |
| 55 | SecretKey('ethereumTestWalletSeeds', () => ''), |
| 56 | SecretKey('litecoinTestWalletSeeds', () => ''), |
| 57 | SecretKey('bitcoinCashTestWalletSeeds', () => ''), |
| 58 | SecretKey('polygonTestWalletSeeds', () => ''), |
| 59 | SecretKey('baseTestWalletSeeds', () => ''), |
| 60 | SecretKey('arbitrumTestWalletSeeds', () => ''), |
| 61 | SecretKey('bscTestWalletSeeds', () => ''), |
| 62 | SecretKey('solanaTestWalletSeeds', () => ''), |
| 63 | SecretKey('tronTestWalletSeeds', () => ''), |
| 64 | SecretKey('nanoTestWalletSeeds', () => ''), |
| 65 | SecretKey('wowneroTestWalletSeeds', () => ''), |
| 66 | SecretKey('moneroTestWalletReceiveAddress', () => ''), |
| 67 | SecretKey('bitcoinTestWalletReceiveAddress', () => ''), |
| 68 | SecretKey('ethereumTestWalletReceiveAddress', () => ''), |
| 69 | SecretKey('litecoinTestWalletReceiveAddress', () => ''), |
| 70 | SecretKey('bitcoinCashTestWalletReceiveAddress', () => ''), |
| 71 | SecretKey('polygonTestWalletReceiveAddress', () => ''), |
| 72 | SecretKey('baseTestWalletReceiveAddress', () => ''), |
| 73 | SecretKey('arbitrumTestWalletReceiveAddress', () => ''), |
| 74 | SecretKey('bscTestWalletReceiveAddress', () => ''), |
| 75 | SecretKey('solanaTestWalletReceiveAddress', () => ''), |
| 76 | SecretKey('tronTestWalletReceiveAddress', () => ''), |
| 77 | SecretKey('nanoTestWalletReceiveAddress', () => ''), |
| 78 | SecretKey('wowneroTestWalletReceiveAddress', () => ''), |
| 79 | SecretKey('etherScanApiKey', () => ''), |
| 80 | SecretKey('polygonScanApiKey', () => ''), |
| 81 | SecretKey('letsExchangeBearerToken', () => ''), |
| 82 | SecretKey('letsExchangeAffiliateId', () => ''), |
| 83 | SecretKey('stealthExBearerToken', () => ''), |
| 84 | SecretKey('stealthExAdditionalFeePercent', () => ''), |
| 85 | SecretKey('moneroTestWalletBlockHeight', () => ''), |
| 86 | SecretKey('chainflipApiKey', () => ''), |
| 87 | SecretKey('chainflipAffiliateFee', () => ''), |
| 88 | SecretKey('kryptonimApiKey', () => ''), |
| 89 | SecretKey('walletGroupSalt', () => hex.encode(encrypt.Key.fromSecureRandom(16).bytes)), |
| 90 | SecretKey('swapsXyzApiKey', () => ''), |
| 91 | SecretKey('jupiterApiKey', () => ''), |
| 92 | SecretKey('jupiterReferralFeeBps', () => ''), |
| 93 | SecretKey('jupiterReferralAccount', () => ''), |
| 94 | SecretKey('nearIntentsBearerToken', () => ''), |
| 95 | SecretKey('nearIntentsAppFee', () => ''), |
| 96 | SecretKey('nearIntentsAppFeeRecipient', () => ''), |
| 97 | ]; |
| 98 | |
| 99 | static final evmChainsSecrets = [ |
| 100 | SecretKey('etherScanApiKey', () => ''), |
| 101 | SecretKey('polygonScanApiKey', () => ''), |
| 102 | SecretKey('moralisApiKey', () => ''), |
| 103 | SecretKey('nowNodesApiKey ', () => ''), |
| 104 | SecretKey('blinkApiKey', () => ''), |
| 105 | ]; |
| 106 | |
| 107 | static final solanaSecrets = [ |
| 108 | SecretKey('ankrApiKey', () => ''), |
| 109 | SecretKey('nowNodesApiKey', () => ''), |
| 110 | SecretKey('chainStackApiKey', () => ''), |
| 111 | SecretKey('moralisApiKey', () => ''), |
| 112 | ]; |
| 113 | |
| 114 | static final nanoSecrets = [ |
| 115 | SecretKey('nano2ApiKey', () => ''), |
| 116 | SecretKey('nanoNowNodesApiKey', () => ''), |
| 117 | ]; |
| 118 | |
| 119 | static final tronSecrets = [ |
| 120 | SecretKey('tronGridApiKey', () => ''), |
| 121 | SecretKey('tronNowNodesApiKey', () => ''), |
| 122 | ]; |
| 123 | |
| 124 | static final bitcoinSecrets = [ |
| 125 | SecretKey('breezApiKey', () => ''), |
| 126 | ]; |
| 127 | |
| 128 | final String name; |
| 129 | final String Function() generate; |
| 130 | } |