apikey updates

This commit is contained in:
Matthew Fosse 2024-04-29 09:02:45 -07:00
parent 6b560aadad
commit 083c5ac593
4 changed files with 7 additions and 4 deletions

View file

@ -150,7 +150,8 @@ jobs:
echo "const moralisApiKey = '${{ secrets.MORALIS_API_KEY }}';" >> lib/.secrets.g.dart
echo "const polygonScanApiKey = '${{ secrets.POLYGON_SCAN_API_KEY }}';" >> cw_evm/lib/.secrets.g.dart
echo "const breezApiKey = '${{ secrets.BREEZ_API_KEY }}';" >> cw_lightning/lib/.secrets.g.dart
echo "const breezInviteCode = '${{ secrets.BREEZ_INVITE_CODE }}';" >> cw_lightning/lib/.secrets.g.dart
echo "const greenlightCert = '${{ secrets.GREENLIGHT_CERTIFICATE }}';" >> cw_lightning/lib/.secrets.g.dart
echo "const greenlightKey = '${{ secrets.GREENLIGHT_KEY }}';" >> cw_lightning/lib/.secrets.g.dart
echo "const ankrApiKey = '${{ secrets.ANKR_API_KEY }}';" >> cw_solana/lib/.secrets.g.dart
- name: Rename app

View file

@ -154,8 +154,8 @@ abstract class LightningWalletBase extends ElectrumWallet with Store {
print("Error initializing Breez: $e");
}
Uint8List deviceKey = Uint8List(0);
Uint8List deviceCert = Uint8List(0);
Uint8List deviceKey = base64.decode(secrets.greenlightKey);
Uint8List deviceCert = base64.decode(secrets.greenlightCert);
GreenlightCredentials greenlightCredentials = GreenlightCredentials(
deviceKey: deviceKey,
deviceCert: deviceCert,

View file

@ -83,6 +83,7 @@ abstract class NodeCreateOrEditViewModelBase with Store {
case WalletType.litecoin:
case WalletType.bitcoinCash:
case WalletType.bitcoin:
case WalletType.lightning:
return false;
}
}

View file

@ -48,7 +48,8 @@ class SecretKey {
static final bitcoinSecrets = [
SecretKey('breezApiKey', () => ''),
SecretKey('breezInviteCode', () => ''),
SecretKey('greenlightCert', () => ''),
SecretKey('greenlightKey', () => ''),
];
static final solanaSecrets = [