Skip to content

Commit

Permalink
chore: setting defaults for env vars considering a local supabase ins…
Browse files Browse the repository at this point in the history
…tall and default anvil addresses/privatekeys
  • Loading branch information
pasviegas committed Feb 2, 2024
1 parent 4fd56a1 commit 4b30786
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 34 deletions.
20 changes: 8 additions & 12 deletions packages/api/.env.local.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@ APP_PORT=3001
APP_VERSION=0.0.1

NODE_ENV=development

NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
SUPABASE_JWT_SECRET=super-secret-jwt-token-with-at-least-32-characters-long
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key

NEXT_PUBLIC_TARGET_NETWORK=http://localhost:8545
NEXT_PUBLIC_TARGET_NETWORK_WSS=ws://localhost:8545
ETHERS_DEPLOYER_PRIVATE_KEY=your_deployer_private_key
ETHERS_CUSTODIAN_PRIVATE_KEY=your_custodian_private_key
#ETHERS_INFURA_API_KEY=your_infura_api_key

CRON_SECRET=any_string_will_do
NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU
SUPABASE_JWT_SECRET=super-secret-jwt-token-with-at-least-32-characters-long
ETHERS_CUSTODIAN_PRIVATE_KEY=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
ETHERS_DEPLOYER_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
CRON_SECRET=0HZhZrf4Grw3d1WybyXCWEX5fxQyl3tfi4JuBAhgvcIpN48mMTWFIthXcGu+XsmUiNC3jVHXj7zvyUBkEiOa8A==

VAULT_FACTORY_ADDRESS=factory_address
ETHERS_INFURA_API_KEY=your_infura_api_key
10 changes: 5 additions & 5 deletions packages/app/.env.local.sample
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=your_wallet_connect_project_id
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key

API_BASE_URL=http://localhost:3001

NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=e5a750631e8d11ff221cc92bf352e0d2
12 changes: 7 additions & 5 deletions packages/app/.env.test.local.sample
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
NEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=your_wallet_connect_project_id
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key

API_BASE_URL=http://localhost:3001
APP_BASE_URL=http://localhost:3000

NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=e5a750631e8d11ff221cc92bf352e0d2


22 changes: 10 additions & 12 deletions packages/contracts/.env.example
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
DEFAULT_ANVIL_KEY=
DEPLOYER_PRIVATE_KEY=
ETHERSCAN_API_KEY=
SEPOLIA_RPC_URL=
SEPOLIA_PRIVATE_KEY=
DEFAULT_ANVIL_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80

NEXT_PUBLIC_TARGET_NETWORK=31337
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key
NEXT_PUBLIC_TARGET_NETWORK_ID=31337
NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU
VAULT_OPENS_AT_TIMESTAMP=1705276800
VAULT_CLOSES_DURATION_TIMESTAMP=86400
PUBLIC_OWNER_ADDRESS=
PUBLIC_OPERATOR_ADDRESS=
#EXPORT_TO_SUPABASE=
VAULT_CLOSES_DURATION_TIMESTAMP=604800

PUBLIC_OWNER_ADDRESS=your-wallet-address
PUBLIC_OPERATOR_ADDRESS=your-wallet-address

#EXPORT_TO_SUPABASE=true

0 comments on commit 4b30786

Please sign in to comment.