2021-03-16 13:20:46 +00:00
|
|
|
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)),
|
2023-02-06 19:48:31 +00:00
|
|
|
SecretKey('keychainSalt', () => hex.encode(encrypt.Key.fromSecureRandom(12).bytes)),
|
2021-03-16 13:20:46 +00:00
|
|
|
SecretKey('key', () => hex.encode(encrypt.Key.fromSecureRandom(16).bytes)),
|
2023-02-06 19:48:31 +00:00
|
|
|
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)),
|
2021-03-16 13:20:46 +00:00
|
|
|
SecretKey('changeNowApiKey', () => ''),
|
2023-04-14 04:39:08 +00:00
|
|
|
SecretKey('changeNowApiKeyDesktop', () => ''),
|
2021-03-16 13:20:46 +00:00
|
|
|
SecretKey('wyreSecretKey', () => ''),
|
|
|
|
SecretKey('wyreApiKey', () => ''),
|
|
|
|
SecretKey('wyreAccountId', () => ''),
|
2021-12-28 17:00:57 +00:00
|
|
|
SecretKey('moonPayApiKey', () => ''),
|
|
|
|
SecretKey('moonPaySecretKey', () => ''),
|
2022-04-13 13:28:21 +00:00
|
|
|
SecretKey('sideShiftAffiliateId', () => ''),
|
2022-10-27 21:33:58 +00:00
|
|
|
SecretKey('simpleSwapApiKey', () => ''),
|
2023-04-14 04:39:08 +00:00
|
|
|
SecretKey('simpleSwapApiKeyDesktop', () => ''),
|
2022-11-03 20:53:33 +00:00
|
|
|
SecretKey('anypayToken', () => ''),
|
2022-10-27 21:33:58 +00:00
|
|
|
SecretKey('onramperApiKey', () => ''),
|
2022-11-27 20:10:21 +00:00
|
|
|
SecretKey('ioniaClientId', () => ''),
|
2023-02-06 19:20:43 +00:00
|
|
|
SecretKey('trocadorApiKey', () => ''),
|
2023-02-06 21:18:54 +00:00
|
|
|
SecretKey('trocadorExchangeMarkup', () => ''),
|
2023-01-24 19:33:09 +00:00
|
|
|
SecretKey('twitterBearerToken', () => ''),
|
2023-03-31 18:22:51 +00:00
|
|
|
SecretKey('anonPayReferralCode', () => ''),
|
2023-03-31 18:34:39 +00:00
|
|
|
SecretKey('fiatApiKey', () => ''),
|
|
|
|
SecretKey('payfuraApiKey', () => ''),
|
2023-08-15 00:47:25 +00:00
|
|
|
SecretKey('chatwootWebsiteToken', () => ''),
|
2023-10-12 00:20:19 +00:00
|
|
|
SecretKey('exolixApiKey', () => ''),
|
2023-09-14 19:14:49 +00:00
|
|
|
SecretKey('robinhoodApplicationId', () => ''),
|
2024-03-25 18:16:57 +00:00
|
|
|
SecretKey('exchangeHelperApiKey', () => ''),
|
2023-10-03 14:56:10 +00:00
|
|
|
SecretKey('walletConnectProjectId', () => ''),
|
CW-551-Refactor-EVM-Chains (#1256)
* feat: Create central package for EVM chains
* chore: Cleanup pubspec and add core evm dependencies
* feat: Replicated core evm chain files, time to start fixing the issues
* feat: Setup evm central package to handle all evm chains
* feat: Link up Polygon and Ethereum wallets to the centra evm package, fix bugs and issues, and optimze for better performance
* feat: Setup and adjust configs to reflect new evm configurations
* Remove unneeded file
* fix: Changes done while re-reviewing entire structure and refactor
* fix: Add evm chain wallet path to imports in configure file
* feat: Adjust implementation of parent class, remove unneeded files, remove windows, linux and mac directories, restructure the evm child classes
* fix: Make EVMChainWallet a central abstract class and adjust accordingly
* fix: Adjust transaction info, restructure EVMWalletChain to be an abstract, adjust external facing interfaces for polygon and ethereum, adjust configuration for ethereum and polygon in configure file
* fix: Testing issues
* fix: Add localization for nft tile and details page texts and add dashes for null responses
* fix: merge conflicts
* Minor fixes for building Monero.com
---------
Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-01-30 18:01:48 +00:00
|
|
|
SecretKey('moralisApiKey', () => ''),
|
CW-584-WalletConnect-For-Solana (#1362)
* chore: Create cw_solana package and clean up files
* feat: Add Solana Wallet - Create, Restore form seed, restore from Key, Restore from QR, Send, Receive, transaction history, spl tokens
* fix: Make transactions file specific to solana only for solana transactions
* chore: Revert inject app details script
* fix: Fix issue with node and switch current node to main beta instead of testnet
* fix: Fix merge conflicts and adjust migration version
* fix: Fetch spl token error
Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
* fix: Diplay and activate spl tokens bug
* fix: Review and fixes
* fix: reverted formatting for cryptocurrency class
* fix: Review comments, split sending flow into signing and sending separately, fix issues
* fix: Revert throwing unimplenented error
* chore: Fix comment
* chore: Fix comment
* fix: Errors in flow
* Update provider_types.dart [skip ci]
* fix: Issues with solana wallet
* Update solana_wallet.dart [skip ci]
* fix: Review comments
* fix: Date time config
* fix: Revert bash script for app details
* fix: Error with balance, displaying fees, fixing sent or received identifier bug, displaying token symbol with token transaction item in transactions list
* fix: Issues with address validation when sending spl tokens and walletconnect initial setup
* fix: Issues with sending, fetching transactions history, almost wrapping up walletconnect
* fix: Adjust imports that would affect monerocom building successfully
* fix: Refine transaction direction and continue work on walletconnect
* feat: Display SPL token transfers in the transaction history and finally settle the transaction direction
* fix: Delay in transactions history dispaly, show native token transactions first, then process spl token transactions
* feat: Switch node and revert solana chain id to previous id
* fix: Remove print statement
* fix: Remove await for transactions, fetch all transaction histories instantly and adjust solana send success message
* chore: Code refactoring and streamlined wallet type check for solana send success message
* fix: Make timeout error for node silent and add spl token images
* fix: Still trying to figure out what's wrong
* Sync with remote
* feat: First run for walletconnect for solana
* chore: Add ankr api key to secrets
* remove duplicate transaction [skip ci]
---------
Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-04-09 00:26:11 +00:00
|
|
|
SecretKey('ankrApiKey', () => ''),
|
2024-05-14 02:07:16 +00:00
|
|
|
SecretKey('quantexExchangeMarkup', () => ''),
|
2024-06-28 21:36:12 +00:00
|
|
|
SecretKey('testCakePayApiKey', () => ''),
|
|
|
|
SecretKey('cakePayApiKey', () => ''),
|
|
|
|
SecretKey('CSRFToken', () => ''),
|
|
|
|
SecretKey('authorization', () => ''),
|
2021-03-16 13:20:46 +00:00
|
|
|
];
|
|
|
|
|
CW-551-Refactor-EVM-Chains (#1256)
* feat: Create central package for EVM chains
* chore: Cleanup pubspec and add core evm dependencies
* feat: Replicated core evm chain files, time to start fixing the issues
* feat: Setup evm central package to handle all evm chains
* feat: Link up Polygon and Ethereum wallets to the centra evm package, fix bugs and issues, and optimze for better performance
* feat: Setup and adjust configs to reflect new evm configurations
* Remove unneeded file
* fix: Changes done while re-reviewing entire structure and refactor
* fix: Add evm chain wallet path to imports in configure file
* feat: Adjust implementation of parent class, remove unneeded files, remove windows, linux and mac directories, restructure the evm child classes
* fix: Make EVMChainWallet a central abstract class and adjust accordingly
* fix: Adjust transaction info, restructure EVMWalletChain to be an abstract, adjust external facing interfaces for polygon and ethereum, adjust configuration for ethereum and polygon in configure file
* fix: Testing issues
* fix: Add localization for nft tile and details page texts and add dashes for null responses
* fix: merge conflicts
* Minor fixes for building Monero.com
---------
Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-01-30 18:01:48 +00:00
|
|
|
static final evmChainsSecrets = [
|
2023-08-04 17:01:49 +00:00
|
|
|
SecretKey('etherScanApiKey', () => ''),
|
2023-12-02 02:26:43 +00:00
|
|
|
SecretKey('polygonScanApiKey', () => ''),
|
2024-04-08 22:53:14 +00:00
|
|
|
SecretKey('moralisApiKey', () => ''),
|
2023-08-04 17:01:49 +00:00
|
|
|
];
|
|
|
|
|
CW-555-Add-Solana-Wallet (#1272)
* chore: Create cw_solana package and clean up files
* feat: Add Solana Wallet - Create, Restore form seed, restore from Key, Restore from QR, Send, Receive, transaction history, spl tokens
* fix: Make transactions file specific to solana only for solana transactions
* chore: Revert inject app details script
* fix: Fix issue with node and switch current node to main beta instead of testnet
* fix: Fix merge conflicts and adjust migration version
* fix: Fetch spl token error
Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
* fix: Diplay and activate spl tokens bug
* fix: Review and fixes
* fix: reverted formatting for cryptocurrency class
* fix: Review comments, split sending flow into signing and sending separately, fix issues
* fix: Revert throwing unimplenented error
* chore: Fix comment
* chore: Fix comment
* fix: Errors in flow
* Update provider_types.dart [skip ci]
* fix: Issues with solana wallet
* Update solana_wallet.dart [skip ci]
* fix: Review comments
* fix: Date time config
* fix: Revert bash script for app details
* fix: Error with balance, displaying fees, fixing sent or received identifier bug, displaying token symbol with token transaction item in transactions list
* fix: Issues with address validation when sending spl tokens and walletconnect initial setup
* fix: Issues with sending, fetching transactions history, almost wrapping up walletconnect
* fix: Adjust imports that would affect monerocom building successfully
* fix: Refine transaction direction and continue work on walletconnect
* feat: Display SPL token transfers in the transaction history and finally settle the transaction direction
* fix: Delay in transactions history dispaly, show native token transactions first, then process spl token transactions
* feat: Switch node and revert solana chain id to previous id
* fix: Remove print statement
* fix: Remove await for transactions, fetch all transaction histories instantly and adjust solana send success message
* chore: Code refactoring and streamlined wallet type check for solana send success message
* fix: Make timeout error for node silent and add spl token images
---------
Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-02-23 13:39:19 +00:00
|
|
|
static final solanaSecrets = [
|
|
|
|
SecretKey('ankrApiKey', () => ''),
|
|
|
|
];
|
|
|
|
|
2024-05-08 00:00:01 +00:00
|
|
|
static final nanoSecrets = [
|
|
|
|
SecretKey('nano2ApiKey', () => ''),
|
2024-07-04 19:44:08 +00:00
|
|
|
SecretKey('nanoNowNodesApiKey', () => ''),
|
2024-05-08 00:00:01 +00:00
|
|
|
];
|
2024-06-28 21:36:12 +00:00
|
|
|
|
CW-525-Add-Tron-Wallet (#1327)
* chore: Initial setup for Tron Wallet
* feat: Create Tron Wallet base flow implemented, keys, address, receive, restore and proxy classes all setup
* feat: Display seed and key within the app
* feat: Activate restore from key and seed for Tron wallet
* feat: Add icon for tron wallet in wallet listing page
* feat: Activate display of receive address for tron
* feat: Fetch and display tron balance, sending transaction flow setup, fee limit calculation setup
* feat: Implement sending of native tron, setup sending of trc20 tokens
* chore: Rename function
* Delete lib/tron/tron.dart
* feat: Activate exchange for tron and its tokens, implement balance display for trc20 tokens and setup secrets configuration for tron
* feat: Implement tron token management, add, remove, delete, and get tokens in home settings view, also minor cleanup
* feat: Activate buy and sell for tron
* feat: Implement restore from QR, transactions history listing for both native transactions and trc20 transactions
* feat: Activate send all and do some minor cleanups
* chore: Fix some lint infos and warnings
* chore: Adjust configurations
* ci: Modify CI to create and add secrets for node
* fix: Fixes made while self reviewing the PR for this feature
* feat: Add guide for adding new wallet types, and add fixes to requested changes
* fix: Handle exceptions gracefully
* fix: Alternative for trc20 estimated fee
* fix: Fixes to display of amount and fee, removing clashes
* fix: Fee calculation WIP
* fix: Fix issue with handling of send all flow and display of amount and fee values before broadcasting transaction
* fix: PR review fixes and fix merge conflicts
* fix: Modify fetching assetOfTransaction [skip ci]
* fix: Move tron settings migration to 33
2024-05-03 18:00:05 +00:00
|
|
|
static final tronSecrets = [
|
|
|
|
SecretKey('tronGridApiKey', () => ''),
|
2024-06-28 21:36:12 +00:00
|
|
|
SecretKey('tronNowNodesApiKey', () => ''),
|
CW-525-Add-Tron-Wallet (#1327)
* chore: Initial setup for Tron Wallet
* feat: Create Tron Wallet base flow implemented, keys, address, receive, restore and proxy classes all setup
* feat: Display seed and key within the app
* feat: Activate restore from key and seed for Tron wallet
* feat: Add icon for tron wallet in wallet listing page
* feat: Activate display of receive address for tron
* feat: Fetch and display tron balance, sending transaction flow setup, fee limit calculation setup
* feat: Implement sending of native tron, setup sending of trc20 tokens
* chore: Rename function
* Delete lib/tron/tron.dart
* feat: Activate exchange for tron and its tokens, implement balance display for trc20 tokens and setup secrets configuration for tron
* feat: Implement tron token management, add, remove, delete, and get tokens in home settings view, also minor cleanup
* feat: Activate buy and sell for tron
* feat: Implement restore from QR, transactions history listing for both native transactions and trc20 transactions
* feat: Activate send all and do some minor cleanups
* chore: Fix some lint infos and warnings
* chore: Adjust configurations
* ci: Modify CI to create and add secrets for node
* fix: Fixes made while self reviewing the PR for this feature
* feat: Add guide for adding new wallet types, and add fixes to requested changes
* fix: Handle exceptions gracefully
* fix: Alternative for trc20 estimated fee
* fix: Fixes to display of amount and fee, removing clashes
* fix: Fee calculation WIP
* fix: Fix issue with handling of send all flow and display of amount and fee values before broadcasting transaction
* fix: PR review fixes and fix merge conflicts
* fix: Modify fetching assetOfTransaction [skip ci]
* fix: Move tron settings migration to 33
2024-05-03 18:00:05 +00:00
|
|
|
];
|
|
|
|
|
2021-03-16 13:20:46 +00:00
|
|
|
final String name;
|
|
|
|
final String Function() generate;
|
|
|
|
}
|