Check deployment status while creating project with single deployer #15

Merged
nabarun merged 7 commits from sk-check-deployment-status into main 2024-10-25 10:47:05 +00:00
3 changed files with 6 additions and 9 deletions
Showing only changes of commit 7502f5230c - Show all commits

View File

@ -1,10 +1,8 @@
services: services:
registry: registry:
rpcEndpoint: http://laconicd.laconic.com:26657 rpcEndpoint: https://laconicd-sapo.laconic.com
gqlEndpoint: http://laconicd.laconic.com:9473/api gqlEndpoint: https://laconicd-sapo.laconic.com/api
userKey: 08c0d30ed23706330468e6936316a3bc3e69e451e394f05027ad56119bb485b9 userKey:
bondId: 820587f916d9a6a056f1e6a5a250151d9fa0c1e771347a6b8bb3d6f2090fd11b bondId:
chainId: laconic_9000-2 chainId: laconic_9000-2
gas:
fees:
gasPrice: 1alnt gasPrice: 1alnt

View File

@ -98,8 +98,7 @@ fi
# Get payment address for deployer # Get payment address for deployer
paymentAddress=$(yarn --silent laconic -c config.yml registry name resolve "$DEPLOYER_LRN" | jq -r '.[0].attributes.paymentAddress') paymentAddress=$(yarn --silent laconic -c config.yml registry name resolve "$DEPLOYER_LRN" | jq -r '.[0].attributes.paymentAddress')
paymentAmount=$(yarn --silent laconic -c config.yml registry name resolve "$DEPLOYER_LRN" | jq -r '.[0].attributes.minimumPayment') paymentAmount=$(yarn --silent laconic -c config.yml registry name resolve "$DEPLOYER_LRN" | jq -r '.[0].attributes.minimumPayment' | sed 's/alnt//g')
# Pay deployer if paymentAmount is not null # Pay deployer if paymentAmount is not null
if [[ -n "$paymentAmount" && "$paymentAmount" != "null" ]]; then if [[ -n "$paymentAmount" && "$paymentAmount" != "null" ]]; then
payment=$(yarn --silent laconic -c config.yml registry tokens send --address "$paymentAddress" --type alnt --quantity "$paymentAmount") payment=$(yarn --silent laconic -c config.yml registry tokens send --address "$paymentAddress" --type alnt --quantity "$paymentAmount")

View File

@ -1,7 +1,7 @@
{ {
"name": "frontend", "name": "frontend",
"private": true, "private": true,
"version": "0.0.0", "version": "1.0.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite --port 3000", "dev": "vite --port 3000",