Rename laconic2d to laconicd and upgrade SDK (#61)
Part of https://www.notion.so/Rename-laconic2d-to-laconicd-9028d0c020d24d1288e92ebcb773d7a7 Co-authored-by: neeraj <neeraj.rtly@gmail.com> Reviewed-on: cerc-io/laconic-registry-cli#61 Co-authored-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to> Co-committed-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to>
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@
|
||||
* Get account address of test account:
|
||||
|
||||
```bash
|
||||
laconic2d keys list --keyring-backend test
|
||||
laconicd keys list --keyring-backend test
|
||||
|
||||
# - address: laconic10er85pyd7ukw732e88fzv7k0jq205764hye2dx
|
||||
# name: alice
|
||||
|
||||
+10
-10
@@ -1,24 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Get the key from laconic2d
|
||||
laconic2d_key=$(yes | docker compose exec laconic2d laconic2d keys export alice --keyring-backend test --unarmored-hex --unsafe)
|
||||
# Get the key from laconicd
|
||||
laconicd_key=$(yes | docker compose exec laconicd laconicd keys export alice --keyring-backend test --unarmored-hex --unsafe)
|
||||
|
||||
# Get the fixturenet account address
|
||||
laconic2d_account_address=$(docker compose exec laconic2d laconic2d keys list --keyring-backend test | awk '/- address:/ {print $3}')
|
||||
laconicd_account_address=$(docker compose exec laconicd laconicd keys list --keyring-backend test | awk '/- address:/ {print $3}')
|
||||
|
||||
# Set parameters for the test suite
|
||||
cosmos_chain_id=laconic_9000-1
|
||||
laconic2d_rpc_endpoint=http://127.0.0.1:26657
|
||||
laconic2d_gql_endpoint=http://127.0.0.1:9473/api
|
||||
laconicd_rpc_endpoint=http://127.0.0.1:26657
|
||||
laconicd_gql_endpoint=http://127.0.0.1:9473/api
|
||||
|
||||
# Create the required config
|
||||
config_file="config.yml"
|
||||
config=$(cat <<EOL
|
||||
services:
|
||||
registry:
|
||||
restEndpoint: $laconic2d_rpc_endpoint
|
||||
gqlEndpoint: $laconic2d_gql_endpoint
|
||||
userKey: $laconic2d_key
|
||||
rpcEndpoint: $laconicd_rpc_endpoint
|
||||
gqlEndpoint: $laconicd_gql_endpoint
|
||||
userKey: $laconicd_key
|
||||
bondId:
|
||||
chainId: $cosmos_chain_id
|
||||
gas: 200000
|
||||
@@ -28,7 +28,7 @@ EOL
|
||||
echo "$config" > "$config_file"
|
||||
|
||||
# Wait for the laconid endpoint to come up
|
||||
docker compose exec laconic2d sh -c "curl --retry 10 --retry-delay 3 --retry-connrefused http://127.0.0.1:9473/api"
|
||||
docker compose exec laconicd sh -c "curl --retry 10 --retry-delay 3 --retry-connrefused http://127.0.0.1:9473/api"
|
||||
|
||||
# Run tests
|
||||
TEST_ACCOUNT=$laconic2d_account_address yarn test
|
||||
TEST_ACCOUNT=$laconicd_account_address yarn test
|
||||
|
||||
Reference in New Issue
Block a user