From b07df23804490ef376d4e2b17f0d5c4f5b44d0ed Mon Sep 17 00:00:00 2001 From: David Boreham Date: Wed, 28 Sep 2022 13:20:15 -0600 Subject: [PATCH 1/4] Blind attempt to re-brand --- README.md | 12 ++++++------ package.json | 4 ++-- src/auction.test.ts | 4 ++-- src/index.ts | 2 +- src/nameservice-expiry.test.ts | 4 ++-- src/testing/helper.ts | 6 +++--- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 1561720..188e62d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# chiba-clonk-client +# laconic-client ## Tests @@ -12,7 +12,7 @@ Follow these steps to run the tests: - Copy [.env.example](./.env.example) file and create a `.env` file. -- Clone the [chiba-clonk repo](https://github.com/vulcanize/chiba-clonk) and change to repo directory. +- Clone the [laconicd repo](https://github.com/cerc-io/laconicd) and change to repo directory. - Run the chain using `./init.sh`. @@ -24,7 +24,7 @@ Follow these steps to run the tests: - Copy the private key and assign it to variable `PRIVATE_KEY` in the `.env` file. -- Run the tests in chiba-clonk-client repo: +- Run the tests in laconic-client repo: ```bash yarn test @@ -32,7 +32,7 @@ Follow these steps to run the tests: - Run the tests with auctions enabled - - In chiba-clonk repo run: + - In laconicd repo run: ```bash TEST_AUCTION_ENABLED=true ./init.sh @@ -52,7 +52,7 @@ Follow these steps to run the tests: - Run the tests for record and authority expiry - - In chiba-clonk repo run: + - In laconicd repo run: ```bash TEST_NAMESERVICE_EXPIRY=true ./init.sh @@ -81,7 +81,7 @@ Follow these steps to run the tests: failed to execute message; message index: 0: Invalid signature.: unauthorized ``` -- When sending `setRecord` message, an integer value passed in watcher attributes is parsed as float type in chiba-clonk while [unmarshalling json](https://pkg.go.dev/encoding/json#Unmarshal). +- When sending `setRecord` message, an integer value passed in watcher attributes is parsed as float type in laconicd while [unmarshalling json](https://pkg.go.dev/encoding/json#Unmarshal). - `setRecord` message throws error when fileds in [Record](./src/types.ts) message are not assigned. ``` diff --git a/package.json b/package.json index 15663c2..3a942cf 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { - "name": "chiba-clonk-client", + "name": "laconic-client", "version": "0.1.0", "main": "dist/index.js", "types": "dist/index.d.ts", - "repository": "git@github.com:vulcanize/chiba-clonk-client.git", + "repository": "git@github.com:cerc-io/laconic-client.git", "author": "", "license": "UNLICENSED", "devDependencies": { diff --git a/src/auction.test.ts b/src/auction.test.ts index 3248d6f..111484c 100644 --- a/src/auction.test.ts +++ b/src/auction.test.ts @@ -30,7 +30,7 @@ const auctionTests = (numBidders = 3) => { }); test('Reserve authority.', async () => { - authorityName = `chiba-clonk-${Date.now()}`; + authorityName = `laconic-${Date.now()}`; await registry.reserveAuthority({ name: authorityName }, accounts[0].privateKey, fee); }); @@ -115,7 +115,7 @@ if (!process.env.TEST_AUCTIONS_ENABLED) { test('skipping auction tests', () => {}); } else { /** - Running these tests requires name auctions enabled. In chiba-clonk repo run: + Running these tests requires name auctions enabled. In laconicd repo run: TEST_AUCTION_ENABLED=true ./init.sh diff --git a/src/index.ts b/src/index.ts index 7805f36..ae06546 100644 --- a/src/index.ts +++ b/src/index.ts @@ -53,7 +53,7 @@ import { MessageMsgRevealBid } from './messages/auction'; -const DEFAULT_WRITE_ERROR = 'Unable to write to chiba-clonk.'; +const DEFAULT_WRITE_ERROR = 'Unable to write to laconicd.'; // Parse Tx response from cosmos-sdk. export const parseTxResponse = (result: any, parseResponse?: (data: string) => any) => { diff --git a/src/nameservice-expiry.test.ts b/src/nameservice-expiry.test.ts index e395db7..afa49ed 100644 --- a/src/nameservice-expiry.test.ts +++ b/src/nameservice-expiry.test.ts @@ -50,7 +50,7 @@ const nameserviceExpiryTests = () => { }) test('Reserve authority and set bond', async () => { - authorityName = `chiba-clonk-${Date.now()}`; + authorityName = `laconic-${Date.now()}`; await registry.reserveAuthority({ name: authorityName }, privateKey, fee); await registry.setAuthorityBond({ name: authorityName, bondId }, privateKey, fee); const [authority] = await registry.lookupAuthorities([authorityName]); @@ -102,7 +102,7 @@ if (!process.env.TEST_NAMESERVICE_EXPIRY) { test('skipping nameservice expiry tests', () => {}); } else { /** - Running these tests requires timers to be set. In chiba-clonk repo run: + Running these tests requires timers to be set. In laconicd repo run: TEST_NAMESERVICE_EXPIRY=true ./init.sh diff --git a/src/testing/helper.ts b/src/testing/helper.ts index 15ba347..1b58932 100644 --- a/src/testing/helper.ts +++ b/src/testing/helper.ts @@ -37,10 +37,10 @@ export const getConfig = () => { assert(process.env.PRIVATE_KEY); return { - chainId: process.env.COSMOS_CHAIN_ID || 'chibaclonk_9000-1', + chainId: process.env.COSMOS_CHAIN_ID || 'laconic_9000-1', privateKey: process.env.PRIVATE_KEY, - restEndpoint: process.env.CHIBA_CLONK_REST_ENDPOINT || 'http://localhost:1317', - gqlEndpoint: process.env.CHIBA_CLONK_GQL_ENDPOINT || 'http://localhost:9473/api', + restEndpoint: process.env.LACONICD_REST_ENDPOINT || 'http://localhost:1317', + gqlEndpoint: process.env.LACONICD_GQL_ENDPOINT || 'http://localhost:9473/api', fee: { amount: '20', denom: 'aphoton', From b1d3c83d32ba29521069b955eae60606857264a0 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Wed, 28 Sep 2022 13:22:57 -0600 Subject: [PATCH 2/4] Files the IDE thoughtfully did not save earlier --- README.md | 6 +++--- src/naming.test.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 188e62d..7d8d193 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Follow these steps to run the tests: - Export the private key using: ```bash - chibaclonkd keys export mykey --unarmored-hex --unsafe + laconicd keys export mykey --unarmored-hex --unsafe ``` - Copy the private key and assign it to variable `PRIVATE_KEY` in the `.env` file. @@ -41,7 +41,7 @@ Follow these steps to run the tests: - Export the private key and change it in `.env` file again using: ```bash - chibaclonkd keys export mykey --unarmored-hex --unsafe + laconicd keys export mykey --unarmored-hex --unsafe ``` - Run tests: @@ -61,7 +61,7 @@ Follow these steps to run the tests: - Export the private key and change it in `.env` file again using: ```bash - chibaclonkd keys export mykey --unarmored-hex --unsafe + laconicd keys export mykey --unarmored-hex --unsafe ``` - Run tests: diff --git a/src/naming.test.ts b/src/naming.test.ts index 284e43f..943d122 100644 --- a/src/naming.test.ts +++ b/src/naming.test.ts @@ -47,7 +47,7 @@ const namingTests = () => { }); test('Reserve authority.', async () => { - authorityName = `chiba-clonk-${Date.now()}`; + authorityName = `laconic-${Date.now()}`; await registry.reserveAuthority({ name: authorityName }, privateKey, fee); }); From ff3d70cc0d49232fe76caf97550207a6ac98895c Mon Sep 17 00:00:00 2001 From: David Boreham Date: Wed, 28 Sep 2022 19:52:00 -0600 Subject: [PATCH 3/4] Add postinstall target --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3a942cf..689aaaf 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "test": "jest --runInBand --verbose", "test:auctions": "TEST_AUCTIONS_ENABLED=1 jest --runInBand --verbose src/auction.test.ts", "test:nameservice-expiry": "TEST_NAMESERVICE_EXPIRY=1 jest --runInBand --verbose src/nameservice-expiry.test.ts", - "build": "tsc" + "build": "tsc", + "postinstall": "tsc --outDir ./dist" } } From fb3edfabd39c4f9605083ec8dc3d27efe90b641c Mon Sep 17 00:00:00 2001 From: David Boreham Date: Wed, 28 Sep 2022 20:37:00 -0600 Subject: [PATCH 4/4] Revert postinstall script --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 689aaaf..3a942cf 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,6 @@ "test": "jest --runInBand --verbose", "test:auctions": "TEST_AUCTIONS_ENABLED=1 jest --runInBand --verbose src/auction.test.ts", "test:nameservice-expiry": "TEST_NAMESERVICE_EXPIRY=1 jest --runInBand --verbose src/nameservice-expiry.test.ts", - "build": "tsc", - "postinstall": "tsc --outDir ./dist" + "build": "tsc" } }