kin-labs / kinetic

MIT License
40 stars 24 forks source link

feat: use Keypair.fromSecret() for any secrets used in the API #492

Closed beeman closed 1 year ago

beeman commented 1 year ago

This PR changes how secrets for provisioning apps and airdrop wallets are handled.

The fee payer and airdrop wallet can now by provisioned with either a mnemonic, secret key or byte array by leveraging the Keypair.fromSecret() method.

This also changes the env vars to make them more consistent:

APP_1_FEE_PAYER_BYTE_ARRAY -> APP_1_FEE_PAYER_SECRET SOLANA_DEVNET_MINT_KIN_AIRDROP_SECRET_KEY -> SOLANA_DEVNET_MINT_KIN_AIRDROP_SECRET

nx-cloud[bot] commented 1 year ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 167510a927fd889e4b5c0280e1c7142beb907344. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 3 targets - [`nx affected --target=build --parallel --max-parallel=3`](https://cloud.nx.app/runs/o5ehV3xa3r) - [`nx affected --target=lint --parallel --max-parallel=3`](https://cloud.nx.app/runs/cpuDCOwB7j) - [`nx affected --target=test --parallel --max-parallel=3`](https://cloud.nx.app/runs/lAxKpsJMiX)

Sent with 💌 from NxCloud.