@@ -15,64 +15,63 @@ jobs:
15
15
- uses : actions/checkout@v4
16
16
- name : Add secrets
17
17
run : |
18
- powershell -Command " New-Item -ItemType File -Force lib\\ .secrets.g.dart"
19
- powershell -Command " New-Item -ItemType File -Force cw_evm\\ lib\\ .secrets.g.dart"
20
- powershell -Command " New-Item -ItemType File -Force cw_solana\\ lib\\ .secrets.g.dart"
21
- powershell -Command " New-Item -ItemType File -Force cw_core\\ lib\\ .secrets.g.dart"
22
- powershell -Command " New-Item -ItemType File -Force cw_nano\\ lib\\ .secrets.g.dart"
23
- powershell -Command " New-Item -ItemType File -Force cw_tron\\ lib\\ .secrets.g.dart"
18
+ New-Item -ItemType File -Force lib\.secrets.g.dart
19
+ New-Item -ItemType File -Force cw_evm\lib\.secrets.g.dart
20
+ New-Item -ItemType File -Force cw_solana\lib\.secrets.g.dart
21
+ New-Item -ItemType File -Force cw_core\lib\.secrets.g.dart
22
+ New-Item -ItemType File -Force cw_nano\lib\.secrets.g.dart
23
+ New-Item -ItemType File -Force cw_tron\lib\.secrets.g.dart
24
24
25
- # Add secrets with fallback values
26
- powershell -Command "if ('${{ secrets.SALT }}' -eq '') { Add-Content lib\\.secrets.g.dart 'const salt = \"954f787f12622067f7e548d9450c3832\";' } else { Add-Content lib\\.secrets.g.dart \"const salt = '${{ secrets.SALT }}';\" }"
27
- powershell -Command "if ('${{ secrets.KEY_CHAIN_SALT }}' -eq '') { Add-Content lib\\.secrets.g.dart 'const keychainSalt = \"2d2beba777dbf7dff7013b7a\";' } else { Add-Content lib\\.secrets.g.dart \"const keychainSalt = '${{ secrets.KEY_CHAIN_SALT }}';\" }"
28
- powershell -Command "if ('${{ secrets.KEY }}' -eq '') { Add-Content lib\\.secrets.g.dart 'const key = \"638e98820ec10a2945e968435c9397a3\";' } else { Add-Content lib\\.secrets.g.dart \"const key = '${{ secrets.KEY }}';\" }"
29
- powershell -Command "if ('${{ secrets.WALLET_SALT }}' -eq '') { Add-Content lib\\.secrets.g.dart 'const walletSalt = \"8f7f1b70\";' } else { Add-Content lib\\.secrets.g.dart \"const walletSalt = '${{ secrets.WALLET_SALT }}';\" }"
30
- powershell -Command "if ('${{ secrets.SHORT_KEY }}' -eq '') { Add-Content lib\\.secrets.g.dart 'const shortKey = \"653f270c2c152bc7ec864afe\";' } else { Add-Content lib\\.secrets.g.dart \"const shortKey = '${{ secrets.SHORT_KEY }}';\" }"
31
- powershell -Command "if ('${{ secrets.BACKUP_SALT }}' -eq '') { Add-Content lib\\.secrets.g.dart 'const backupSalt = \"bf630d24ff0b6f60\";' } else { Add-Content lib\\.secrets.g.dart \"const backupSalt = '${{ secrets.BACKUP_SALT }}';\" }"
32
- powershell -Command "if ('${{ secrets.BACKUP_KEY_CHAIN_SALT }}' -eq '') { Add-Content lib\\.secrets.g.dart 'const backupKeychainSalt = \"bf630d24ff0b6f60\";' } else { Add-Content lib\\.secrets.g.dart \"const backupKeychainSalt = '${{ secrets.BACKUP_KEY_CHAIN_SALT }}';\" }"
25
+ if ('${{ secrets.SALT }}' -eq '') { Add-Content lib\.secrets.g.dart 'const salt = "954f787f12622067f7e548d9450c3832";' } else { Add-Content lib\.secrets.g.dart "const salt = '${{ secrets.SALT }}';" }
26
+ if ('${{ secrets.KEY_CHAIN_SALT }}' -eq '') { Add-Content lib\.secrets.g.dart 'const keychainSalt = "2d2beba777dbf7dff7013b7a";' } else { Add-Content lib\.secrets.g.dart "const keychainSalt = '${{ secrets.KEY_CHAIN_SALT }}';" }
27
+ if ('${{ secrets.KEY }}' -eq '') { Add-Content lib\.secrets.g.dart 'const key = "638e98820ec10a2945e968435c9397a3";' } else { Add-Content lib\.secrets.g.dart "const key = '${{ secrets.KEY }}';" }
28
+ if ('${{ secrets.WALLET_SALT }}' -eq '') { Add-Content lib\.secrets.g.dart 'const walletSalt = "8f7f1b70";' } else { Add-Content lib\.secrets.g.dart "const walletSalt = '${{ secrets.WALLET_SALT }}';" }
29
+ if ('${{ secrets.SHORT_KEY }}' -eq '') { Add-Content lib\.secrets.g.dart 'const shortKey = "653f270c2c152bc7ec864afe";' } else { Add-Content lib\.secrets.g.dart "const shortKey = '${{ secrets.SHORT_KEY }}';" }
30
+ if ('${{ secrets.BACKUP_SALT }}' -eq '') { Add-Content lib\.secrets.g.dart 'const backupSalt = "bf630d24ff0b6f60";' } else { Add-Content lib\.secrets.g.dart "const backupSalt = '${{ secrets.BACKUP_SALT }}';" }
31
+ if ('${{ secrets.BACKUP_KEY_CHAIN_SALT }}' -eq '') { Add-Content lib\.secrets.g.dart 'const backupKeychainSalt = "bf630d24ff0b6f60";' } else { Add-Content lib\.secrets.g.dart "const backupKeychainSalt = '${{ secrets.BACKUP_KEY_CHAIN_SALT }}';" }
33
32
34
33
# Add remaining secrets
35
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const changeNowApiKey = '${{ secrets.CHANGE_NOW_API_KEY }}';\" "
36
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const changeNowApiKeyDesktop = '${{ secrets.CHANGE_NOW_API_KEY_DESKTOP }}';\" "
37
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const wyreSecretKey = '${{ secrets.WYRE_SECRET_KEY }}';\" "
38
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const wyreApiKey = '${{ secrets.WYRE_API_KEY }}';\" "
39
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const wyreAccountId = '${{ secrets.WYRE_ACCOUNT_ID }}';\" "
40
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const moonPayApiKey = '${{ secrets.MOON_PAY_API_KEY }}';\" "
41
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const moonPaySecretKey = '${{ secrets.MOON_PAY_SECRET_KEY }}';\" "
42
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const sideShiftAffiliateId = '${{ secrets.SIDE_SHIFT_AFFILIATE_ID }}';\" "
43
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const simpleSwapApiKey = '${{ secrets.SIMPLE_SWAP_API_KEY }}';\" "
44
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const simpleSwapApiKeyDesktop = '${{ secrets.SIMPLE_SWAP_API_KEY_DESKTOP }}';\" "
45
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const onramperApiKey = '${{ secrets.ONRAMPER_API_KEY }}';\" "
46
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const anypayToken = '${{ secrets.ANY_PAY_TOKEN }}';\" "
47
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const ioniaClientId = '${{ secrets.IONIA_CLIENT_ID }}';\" "
48
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const twitterBearerToken = '${{ secrets.TWITTER_BEARER_TOKEN }}';\" "
49
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const trocadorApiKey = '${{ secrets.TROCADOR_API_KEY }}';\" "
50
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const trocadorExchangeMarkup = '${{ secrets.TROCADOR_EXCHANGE_MARKUP }}';\" "
51
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const anonPayReferralCode = '${{ secrets.ANON_PAY_REFERRAL_CODE }}';\" "
52
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const fiatApiKey = '${{ secrets.FIAT_API_KEY }}';\" "
53
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const ankrApiKey = '${{ secrets.ANKR_API_KEY }}';\" "
54
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const chainStackApiKey = '${{ secrets.CHAIN_STACK_API_KEY }}';\" "
55
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const etherScanApiKey = '${{ secrets.ETHER_SCAN_API_KEY }}';\" "
56
- powershell -Command " Add-Content cw_evm\\ lib\\ .secrets.g.dart \ "const etherScanApiKey = '${{ secrets.ETHER_SCAN_API_KEY }}';\" "
57
- powershell -Command " Add-Content cw_evm\\ lib\\ .secrets.g.dart \ "const moralisApiKey = '${{ secrets.MORALIS_API_KEY }}';\" "
58
- powershell -Command " Add-Content cw_evm\\ lib\\ .secrets.g.dart \ "const nowNodesApiKey = '${{ secrets.EVM_NOWNODES_API_KEY }}';\" "
59
- powershell -Command " Add-Content cw_solana\\ lib\\ .secrets.g.dart \ "const ankrApiKey = '${{ secrets.ANKR_API_KEY }}';\" "
60
- powershell -Command " Add-Content cw_solana\\ lib\\ .secrets.g.dart \ "const chainStackApiKey = '${{ secrets.CHAIN_STACK_API_KEY }}';\" "
61
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const testCakePayApiKey = '${{ secrets.TEST_CAKE_PAY_API_KEY }}';\" "
62
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const cakePayApiKey = '${{ secrets.CAKE_PAY_API_KEY }}';\" "
63
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const authorization = '${{ secrets.CAKE_PAY_AUTHORIZATION }}';\" "
64
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const CSRFToken = '${{ secrets.CSRF_TOKEN }}';\" "
65
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const quantexExchangeMarkup = '${{ secrets.QUANTEX_EXCHANGE_MARKUP }}';\" "
66
- powershell -Command " Add-Content cw_nano\\ lib\\ .secrets.g.dart \ "const nano2ApiKey = '${{ secrets.NANO2_API_KEY }}';\" "
67
- powershell -Command " Add-Content cw_nano\\ lib\\ .secrets.g.dart \ "const nanoNowNodesApiKey = '${{ secrets.NANO_NOW_NODES_API_KEY }}';\" "
68
- powershell -Command " Add-Content cw_tron\\ lib\\ .secrets.g.dart \ "const tronGridApiKey = '${{ secrets.TRON_GRID_API_KEY }}';\" "
69
- powershell -Command " Add-Content cw_tron\\ lib\\ .secrets.g.dart \ "const tronNowNodesApiKey = '${{ secrets.TRON_NOW_NODES_API_KEY }}';\" "
70
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const meldTestApiKey = '${{ secrets.MELD_TEST_API_KEY }}';\" "
71
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const meldTestPublicKey = '${{ secrets.MELD_TEST_PUBLIC_KEY }}';\" "
72
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const letsExchangeBearerToken = '${{ secrets.LETS_EXCHANGE_TOKEN }}';\" "
73
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const letsExchangeAffiliateId = '${{ secrets.LETS_EXCHANGE_AFFILIATE_ID }}';\" "
74
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const stealthExBearerToken = '${{ secrets.STEALTH_EX_BEARER_TOKEN }}';\" "
75
- powershell -Command " Add-Content lib\\ .secrets.g.dart \ "const stealthExAdditionalFeePercent = '${{ secrets.STEALTH_EX_ADDITIONAL_FEE_PERCENT }}';\" "
34
+ Add-Content lib\.secrets.g.dart "const changeNowApiKey = '${{ secrets.CHANGE_NOW_API_KEY }}';"
35
+ Add-Content lib\.secrets.g.dart "const changeNowApiKeyDesktop = '${{ secrets.CHANGE_NOW_API_KEY_DESKTOP }}';"
36
+ Add-Content lib\.secrets.g.dart "const wyreSecretKey = '${{ secrets.WYRE_SECRET_KEY }}';"
37
+ Add-Content lib\.secrets.g.dart "const wyreApiKey = '${{ secrets.WYRE_API_KEY }}';"
38
+ Add-Content lib\.secrets.g.dart "const wyreAccountId = '${{ secrets.WYRE_ACCOUNT_ID }}';"
39
+ Add-Content lib\.secrets.g.dart "const moonPayApiKey = '${{ secrets.MOON_PAY_API_KEY }}';"
40
+ Add-Content lib\.secrets.g.dart "const moonPaySecretKey = '${{ secrets.MOON_PAY_SECRET_KEY }}';"
41
+ Add-Content lib\.secrets.g.dart "const sideShiftAffiliateId = '${{ secrets.SIDE_SHIFT_AFFILIATE_ID }}';"
42
+ Add-Content lib\.secrets.g.dart "const simpleSwapApiKey = '${{ secrets.SIMPLE_SWAP_API_KEY }}';"
43
+ Add-Content lib\.secrets.g.dart "const simpleSwapApiKeyDesktop = '${{ secrets.SIMPLE_SWAP_API_KEY_DESKTOP }}';"
44
+ Add-Content lib\.secrets.g.dart "const onramperApiKey = '${{ secrets.ONRAMPER_API_KEY }}';"
45
+ Add-Content lib\.secrets.g.dart "const anypayToken = '${{ secrets.ANY_PAY_TOKEN }}';"
46
+ Add-Content lib\.secrets.g.dart "const ioniaClientId = '${{ secrets.IONIA_CLIENT_ID }}';"
47
+ Add-Content lib\.secrets.g.dart "const twitterBearerToken = '${{ secrets.TWITTER_BEARER_TOKEN }}';"
48
+ Add-Content lib\.secrets.g.dart "const trocadorApiKey = '${{ secrets.TROCADOR_API_KEY }}';"
49
+ Add-Content lib\.secrets.g.dart "const trocadorExchangeMarkup = '${{ secrets.TROCADOR_EXCHANGE_MARKUP }}';"
50
+ Add-Content lib\.secrets.g.dart "const anonPayReferralCode = '${{ secrets.ANON_PAY_REFERRAL_CODE }}';"
51
+ Add-Content lib\.secrets.g.dart "const fiatApiKey = '${{ secrets.FIAT_API_KEY }}';"
52
+ Add-Content lib\.secrets.g.dart "const ankrApiKey = '${{ secrets.ANKR_API_KEY }}';"
53
+ Add-Content lib\.secrets.g.dart "const chainStackApiKey = '${{ secrets.CHAIN_STACK_API_KEY }}';"
54
+ Add-Content lib\.secrets.g.dart "const etherScanApiKey = '${{ secrets.ETHER_SCAN_API_KEY }}';"
55
+ Add-Content cw_evm\lib\.secrets.g.dart "const etherScanApiKey = '${{ secrets.ETHER_SCAN_API_KEY }}';"
56
+ Add-Content cw_evm\lib\.secrets.g.dart "const moralisApiKey = '${{ secrets.MORALIS_API_KEY }}';"
57
+ Add-Content cw_evm\lib\.secrets.g.dart "const nowNodesApiKey = '${{ secrets.EVM_NOWNODES_API_KEY }}';"
58
+ Add-Content cw_solana\lib\.secrets.g.dart "const ankrApiKey = '${{ secrets.ANKR_API_KEY }}';"
59
+ Add-Content cw_solana\lib\.secrets.g.dart "const chainStackApiKey = '${{ secrets.CHAIN_STACK_API_KEY }}';"
60
+ Add-Content lib\.secrets.g.dart "const testCakePayApiKey = '${{ secrets.TEST_CAKE_PAY_API_KEY }}';"
61
+ Add-Content lib\.secrets.g.dart "const cakePayApiKey = '${{ secrets.CAKE_PAY_API_KEY }}';"
62
+ Add-Content lib\.secrets.g.dart "const authorization = '${{ secrets.CAKE_PAY_AUTHORIZATION }}';"
63
+ Add-Content lib\.secrets.g.dart "const CSRFToken = '${{ secrets.CSRF_TOKEN }}';"
64
+ Add-Content lib\.secrets.g.dart "const quantexExchangeMarkup = '${{ secrets.QUANTEX_EXCHANGE_MARKUP }}';"
65
+ Add-Content cw_nano\lib\.secrets.g.dart "const nano2ApiKey = '${{ secrets.NANO2_API_KEY }}';"
66
+ Add-Content cw_nano\lib\.secrets.g.dart "const nanoNowNodesApiKey = '${{ secrets.NANO_NOW_NODES_API_KEY }}';"
67
+ Add-Content cw_tron\lib\.secrets.g.dart "const tronGridApiKey = '${{ secrets.TRON_GRID_API_KEY }}';"
68
+ Add-Content cw_tron\lib\.secrets.g.dart "const tronNowNodesApiKey = '${{ secrets.TRON_NOW_NODES_API_KEY }}';"
69
+ Add-Content lib\.secrets.g.dart "const meldTestApiKey = '${{ secrets.MELD_TEST_API_KEY }}';"
70
+ Add-Content lib\.secrets.g.dart "const meldTestPublicKey = '${{ secrets.MELD_TEST_PUBLIC_KEY }}';"
71
+ Add-Content lib\.secrets.g.dart "const letsExchangeBearerToken = '${{ secrets.LETS_EXCHANGE_TOKEN }}';"
72
+ Add-Content lib\.secrets.g.dart "const letsExchangeAffiliateId = '${{ secrets.LETS_EXCHANGE_AFFILIATE_ID }}';"
73
+ Add-Content lib\.secrets.g.dart "const stealthExBearerToken = '${{ secrets.STEALTH_EX_BEARER_TOKEN }}';"
74
+ Add-Content lib\.secrets.g.dart "const stealthExAdditionalFeePercent = '${{ secrets.STEALTH_EX_ADDITIONAL_FEE_PERCENT }}';"
76
75
77
76
- name : download monero_c prebuilds (can't build inside of windows container)
78
77
run : |
0 commit comments