From f6c6147340a8e173520af9b27ffcbc9d5e076fed Mon Sep 17 00:00:00 2001 From: Nabarun Date: Fri, 25 Jul 2025 15:04:10 +0000 Subject: [PATCH] Add authority and bond ID in readme for deployment (#6) Reviewed-on: https://git.vdb.to/LaconicNetwork/gor-deploy/pulls/6 Co-authored-by: Nabarun Co-committed-by: Nabarun --- .env.example | 4 ++-- deploy/.registry.env.example | 6 +++--- deploy/README.md | 7 ++++--- deploy/config.yml | 2 +- src/utils/gorbagana.ts | 2 +- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.env.example b/.env.example index 6f7943c..6d9331a 100644 --- a/.env.example +++ b/.env.example @@ -23,8 +23,8 @@ NEXT_PUBLIC_REGISTRY_GQL_ENDPOINT=https://laconicd-mainnet-1.laconic.com/graphql NEXT_PUBLIC_ALNT_COST_LRN=lrn://laconic/pricing/alnt NEXT_PUBLIC_DEPLOYMENT_COST_LRN=lrn://laconic/pricing/webapp-deployment REGISTRY_GAS_PRICE=0.001 -REGISTRY_BOND_ID= -REGISTRY_AUTHORITY= +REGISTRY_BOND_ID=5d82586d156fb6671a9170d92f930a72a49a29afb45e30e16fff2100e30776e2 +REGISTRY_AUTHORITY=laconic-deploy REGISTRY_USER_KEY= # Application Configuration diff --git a/deploy/.registry.env.example b/deploy/.registry.env.example index dc814bf..d446a43 100644 --- a/deploy/.registry.env.example +++ b/deploy/.registry.env.example @@ -1,10 +1,10 @@ # ENV for registry operations # Bond to use -REGISTRY_BOND_ID= +REGISTRY_BOND_ID=5d82586d156fb6671a9170d92f930a72a49a29afb45e30e16fff2100e30776e2 # Target deployer LRN -DEPLOYER_LRN= +DEPLOYER_LRN=lrn://vaasl-provider/deployers/webapp-deployer-api.apps.vaasl.io # Authority to deploy the app under -AUTHORITY= +AUTHORITY=laconic-deploy diff --git a/deploy/README.md b/deploy/README.md index 5ac2ef3..313dd1b 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -48,7 +48,7 @@ ```bash cp .registry.env.example .registry.env - # Fill in the required values + # Update values if required nano .registry.env ``` @@ -75,7 +75,8 @@ Server-side: - `REGISTRY_BOND_ID` - The bond ID to use for Laconic Registry records - `REGISTRY_AUTHORITY` - The authority for Laconic Registry LRNs - - `REGISTRY_USER_KEY` - The private key for Laconic Registry transactions (also used for LNT transfers) + - `REGISTRY_USER_KEY` - The private key of account which will publish records + - The account should own the `laconic-deploy` authority which is set in `REGISTRY_AUTHORITY` - `DEPLOYER_LRN` - The LRN of the deployer ## Run @@ -86,7 +87,7 @@ # In gor-deploy/deploy dir docker run -it \ -v ./:/app/deploy -w /app/deploy \ - -e DEPLOYMENT_DNS=gor-deploy \ + -e DEPLOYMENT_DNS=gor-deploy.laconic.com \ cerc/laconic-registry-cli:latest \ ./deploy.sh ``` diff --git a/deploy/config.yml b/deploy/config.yml index 0ae673d..bb3d9ac 100644 --- a/deploy/config.yml +++ b/deploy/config.yml @@ -4,6 +4,6 @@ services: rpcEndpoint: 'https://laconicd-mainnet-1.laconic.com' gqlEndpoint: 'https://laconicd-mainnet-1.laconic.com/api' userKey: - bondId: + bondId: 5d82586d156fb6671a9170d92f930a72a49a29afb45e30e16fff2100e30776e2 chainId: laconic-mainnet gasPrice: 0.001alnt diff --git a/src/utils/gorbagana.ts b/src/utils/gorbagana.ts index 8555e72..823f50c 100644 --- a/src/utils/gorbagana.ts +++ b/src/utils/gorbagana.ts @@ -1 +1 @@ -export const IS_NAT_GOR_TRANSFER_ENABLED = process.env.NEXT_PUBLIC_ENABLE_NATIVE_GOR_TRANSFER === "true"; +export const IS_NAT_GOR_TRANSFER_ENABLED = process.env.NEXT_PUBLIC_ENABLE_NATIVE_GOR_TRANSFER !== "false";