Skip to content

Commit

Permalink
APT-1508: New DNS names (#19)
Browse files Browse the repository at this point in the history
* new deployments configured

* visual fix for connect button on mobile

* typo

* secrets fro protomainnet moved to prod apps vault

---------

Co-authored-by: Lukasz Kosiak <[email protected]>
  • Loading branch information
lukozill and uHappyLogic authored Jan 7, 2025
1 parent 1f5acdb commit 8724ad7
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 5 deletions.
6 changes: 3 additions & 3 deletions render_config_staging.yaml → render_config_devnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ dbs_to_instances: []
apps_to_clusters:
- name_re: main/zq2-staking/zq2-staking-frontend
cluster: staging
dns_name: zq2-staking.zilstg.dev
dns_name: stake.zq2-devnet.zilliqa.com
healthcheck:
request_path: /api/health
image_name: zq2-staking-frontend
namespace: zq2-staking-stg
namespace: zq2-staking-devnet
pipeline:
dockerfile_path: images/frontend/Dockerfile
context: .
replicas: 1
env_vars:
- name: ZQ2_STAKING_CHAIN_ID
value: 33103
value: 33469
pod_limits:
cpu: 200m
memory: 200Mi
Expand Down
40 changes: 40 additions & 0 deletions render_config_protomainnet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
project_id: prj-p-prod-apps-3cidxzuc
bastion_instance_name: vm-p-prod-apps-bastion-ase1
bastion_instance_zone: asia-southeast1-a
region: asia-southeast1

k8s_clusters:
production:
project_id: "prj-p-prod-apps-3cidxzuc"
name: gke-p-prod-apps-01-ase1

registry: asia-docker.pkg.dev/prj-p-devops-services-tvwmrf63/zilliqa-private

dbs_to_instances: []

apps_to_clusters:
- name_re: main/zq2-staking/zq2-staking-frontend
cluster: production
dns_name: stake.zq2-protomainnet.zilliqa.com
healthcheck:
request_path: /api/health
image_name: zq2-staking-frontend
namespace: zq2-staking-protomainnet
pipeline:
dockerfile_path: images/frontend/Dockerfile
context: .
replicas: 1
env_vars:
- name: ZQ2_STAKING_CHAIN_ID
value: 32770
pod_limits:
cpu: 200m
memory: 200Mi
pod_requests:
cpu: 100m
memory: 100Mi

secrets:
zq2_staking:
wallet_connect_api_key:
_op: "op://prj-d-staging/zq2-staking/WALLET_CONNECT_API_KEY"
40 changes: 40 additions & 0 deletions render_config_prototestnet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
project_id: prj-d-staging-6zj2hygf
bastion_instance_name: vm-d-staging-bastion-ase1
bastion_instance_zone: asia-southeast1-a
region: asia-southeast1

k8s_clusters:
staging:
project_id: "prj-d-staging-6zj2hygf"
name: gke-d-staging-01-ase1

registry: asia-docker.pkg.dev/prj-d-devops-services-4dgwlsse/zilliqa-private

dbs_to_instances: []

apps_to_clusters:
- name_re: main/zq2-staking/zq2-staking-frontend
cluster: staging
dns_name: stake.zq2-prototestnet.zilliqa.com
healthcheck:
request_path: /api/health
image_name: zq2-staking-frontend
namespace: zq2-staking-prototestnet
pipeline:
dockerfile_path: images/frontend/Dockerfile
context: .
replicas: 1
env_vars:
- name: ZQ2_STAKING_CHAIN_ID
value: 33103
pod_limits:
cpu: 200m
memory: 200Mi
pod_requests:
cpu: 100m
memory: 100Mi

secrets:
zq2_staking:
wallet_connect_api_key:
_op: "op://prj-p-prod-apps/zq2-staking/WALLET_CONNECT_API_KEY"
18 changes: 18 additions & 0 deletions src/misc/chainConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@ export const CHAIN_ZQ2_PROTOTESTNET = defineChain({
},
})

export const CHAIN_ZQ2_PROTOMAINNET = defineChain({
id: 32770,
name: 'Zq2 ProtoMainnet',
nativeCurrency: { name: 'ZIL', symbol: 'ZIL', decimals: 18 },
rpcUrls: {
default: {
http: ['https://api.zq2-protomainnet.zilliqa.com'],
},
},
blockExplorers: {
default: {
name: 'Otterscan',
url: 'https://explorer.zq2-protomainnet.zilliqa.com',
},
},
})

export const CHAIN_ZQ2_DOCKERCOMPOSE = defineChain({
id: 87362,
name: 'Zq2 Dockercompose',
Expand Down Expand Up @@ -100,6 +117,7 @@ export function getChain(chainId: number) {
const chain = [
CHAIN_ZQ2_DEVNET,
CHAIN_ZQ2_PROTOTESTNET,
CHAIN_ZQ2_PROTOMAINNET,
CHAIN_ZQ2_DOCKERCOMPOSE,
MOCK_CHAIN,
].find(
Expand Down
5 changes: 4 additions & 1 deletion src/misc/stakingPoolsConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Address, erc20Abi, formatUnits, parseUnits } from "viem";
import { CHAIN_ZQ2_PROTOTESTNET, CHAIN_ZQ2_DOCKERCOMPOSE, getViemClient, MOCK_CHAIN, CHAIN_ZQ2_DEVNET } from "./chainConfig";
import { CHAIN_ZQ2_PROTOTESTNET, CHAIN_ZQ2_DOCKERCOMPOSE, getViemClient, MOCK_CHAIN, CHAIN_ZQ2_DEVNET, CHAIN_ZQ2_PROTOMAINNET } from "./chainConfig";
import { readContract } from "viem/actions";
import { delegatorAbi, depositAbi } from "./stakingAbis";

Expand Down Expand Up @@ -288,5 +288,8 @@ export const stakingPoolsConfigForChainId: Record<string, Array<StakingPoolConfi
},
delegatorDataProvider: fetchDelegatorDataFromNetwork.bind(null)
},
],
[CHAIN_ZQ2_PROTOMAINNET.id]: [

]
}
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const HomePage = () => {
Back
</Button></div>
) }
<div className={`${stakingPoolForView ? "xs:w-1/2" : "w-full"}`}>
<div className={`flex items-center justify-center h-[58.79px] bg-[#0e76fd] rounded-lg ${stakingPoolForView ? "w-1/2" : "w-full"}`}>
{connectWallet}
</div>
</>
Expand Down

0 comments on commit 8724ad7

Please sign in to comment.