Remove unused code and update CI #9
@ -20,7 +20,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: "./laconic2d/"
|
path: "./laconic2d/"
|
||||||
repository: deep-stack/laconic2d # TODO: Use cerc-io/laconic2d
|
repository: cerc-io/laconic2d
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: main
|
ref: main
|
||||||
- name: Environment
|
- name: Environment
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# registry-sdk
|
# registry-sdk
|
||||||
|
|
||||||
Client library used by TS/JS applications to communicate with laconicd.
|
Client library used by TS/JS applications to communicate with laconic2d.
|
||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ Follow these steps to run the tests:
|
|||||||
|
|
||||||
- Run the tests with auctions enabled
|
- Run the tests with auctions enabled
|
||||||
|
|
||||||
- In laconicd repo run:
|
- In laconic2d repo run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
TEST_AUCTION_ENABLED=true ./scripts/init.sh clean
|
TEST_AUCTION_ENABLED=true ./scripts/init.sh clean
|
||||||
@ -58,7 +58,7 @@ Follow these steps to run the tests:
|
|||||||
|
|
||||||
- Run the tests for record and authority expiry
|
- Run the tests for record and authority expiry
|
||||||
|
|
||||||
- In laconicd repo run:
|
- In laconic2d repo run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
TEST_REGISTRY_EXPIRY=true ./scripts/init.sh clean
|
TEST_REGISTRY_EXPIRY=true ./scripts/init.sh clean
|
||||||
@ -87,7 +87,7 @@ Follow these steps to run the tests:
|
|||||||
failed to execute message; message index: 0: Invalid signature.: unauthorized
|
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 laconicd 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 laconic2d 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.
|
- `setRecord` message throws error when fileds in [Record](./src/types.ts) message are not assigned.
|
||||||
```
|
```
|
||||||
|
@ -5,6 +5,7 @@ import * as bip39 from 'bip39';
|
|||||||
import canonicalStringify from 'canonical-json';
|
import canonicalStringify from 'canonical-json';
|
||||||
import secp256k1 from 'secp256k1';
|
import secp256k1 from 'secp256k1';
|
||||||
import { sha256 } from 'js-sha256';
|
import { sha256 } from 'js-sha256';
|
||||||
|
|
||||||
import { toHex } from '@cosmjs/encoding';
|
import { toHex } from '@cosmjs/encoding';
|
||||||
import { encodeSecp256k1Pubkey } from '@cosmjs/amino';
|
import { encodeSecp256k1Pubkey } from '@cosmjs/amino';
|
||||||
import { DirectSecp256k1Wallet } from '@cosmjs/proto-signing';
|
import { DirectSecp256k1Wallet } from '@cosmjs/proto-signing';
|
||||||
|
@ -115,7 +115,7 @@ if (!process.env.TEST_AUCTIONS_ENABLED) {
|
|||||||
test('skipping auction tests', () => {});
|
test('skipping auction tests', () => {});
|
||||||
} else {
|
} else {
|
||||||
/**
|
/**
|
||||||
Running these tests requires name auctions enabled. In laconicd repo run:
|
Running these tests requires name auctions enabled. In laconic2d repo run:
|
||||||
|
|
||||||
TEST_AUCTION_ENABLED=true ./init.sh
|
TEST_AUCTION_ENABLED=true ./init.sh
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { sha256 } from 'js-sha256';
|
import { sha256 } from 'js-sha256';
|
||||||
|
|
||||||
import { DeliverTxResponse, StdFee } from '@cosmjs/stargate';
|
import { DeliverTxResponse, StdFee } from '@cosmjs/stargate';
|
||||||
|
|
||||||
import { RegistryClient } from './registry-client';
|
import { RegistryClient } from './registry-client';
|
||||||
|
@ -21,7 +21,7 @@ import { MsgCommitBidResponse, MsgRevealBidResponse } from './proto2/cerc/auctio
|
|||||||
import { MsgCancelBondResponse, MsgCreateBondResponse, MsgRefillBondResponse, MsgWithdrawBondResponse } from './proto2/cerc/bond/v1/tx';
|
import { MsgCancelBondResponse, MsgCreateBondResponse, MsgRefillBondResponse, MsgWithdrawBondResponse } from './proto2/cerc/bond/v1/tx';
|
||||||
import { bankTypes } from './types/cosmos/bank/message';
|
import { bankTypes } from './types/cosmos/bank/message';
|
||||||
|
|
||||||
const DEFAULT_WRITE_ERROR = 'Unable to write to laconicd.';
|
const DEFAULT_WRITE_ERROR = 'Unable to write to laconic2d.';
|
||||||
|
|
||||||
export const laconicDefaultRegistryTypes: ReadonlyArray<[string, GeneratedType]> = [
|
export const laconicDefaultRegistryTypes: ReadonlyArray<[string, GeneratedType]> = [
|
||||||
...defaultRegistryTypes,
|
...defaultRegistryTypes,
|
||||||
|
@ -103,7 +103,7 @@ if (!process.env.TEST_NAMESERVICE_EXPIRY) {
|
|||||||
test('skipping nameservice expiry tests', () => {});
|
test('skipping nameservice expiry tests', () => {});
|
||||||
} else {
|
} else {
|
||||||
/**
|
/**
|
||||||
Running these tests requires timers to be set. In laconicd repo run:
|
Running these tests requires timers to be set. In laconic2d repo run:
|
||||||
|
|
||||||
TEST_REGISTRY_EXPIRY=true ./init.sh
|
TEST_REGISTRY_EXPIRY=true ./init.sh
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import * as Block from 'multiformats/block';
|
import * as Block from 'multiformats/block';
|
||||||
import { sha256 as hasher } from 'multiformats/hashes/sha2';
|
import { sha256 as hasher } from 'multiformats/hashes/sha2';
|
||||||
|
|
||||||
import * as dagCBOR from '@ipld/dag-cbor';
|
import * as dagCBOR from '@ipld/dag-cbor';
|
||||||
import * as dagJSON from '@ipld/dag-json';
|
import * as dagJSON from '@ipld/dag-json';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user