Skip to content

Commit

Permalink
chore: develop -> main (#274)
Browse files Browse the repository at this point in the history
* feat(feat): develop/main

* fix(fix): fix

* fix(test): fix

* fix(nibijs): examples up-to-date + more docs + test examples in CI (#254)

* fix(fix): markdown (#256)

* fix(nibijs): NibiruQueryClient must expose methods from the Tendermint client (#257)

* refactor: custom chain for mainnet (#262)

* refactor: custom chain for mainnet

* test: increase open handle timeout

* test: adding --watchAll --no-cache

* ci: removing --watchall and --no-cache

* feat(nibijs): functions for humans + getTxByHash (exchange integration) (#260)

* fix(nibijs): NibiruQueryClient must expose methods from the Tendermint client

* feat(nibijs): functions for humans + getTxByHash

* chore(nibijs): build docs

* test(nibijs): fix import

* refactor(nibijs): remove unused fn, 'go', and use Result instead

* docs(nibijs-result): function docs

* test: fix by removing usage of go in test

* test: fix inactive chaint est

* test: fix inactive chaint est

* test: address PR comments

* chore(nibijs): rebuild docs

* Update packages/nibijs/src/result.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix: initChainId couldn't handle number == 0 case

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix: yarn merge

* fix: align chain id (#263)

* fix: align chain id

* fix: merge

* fix: merge

* fix: test

* fix: fix

* fix: fix

* fix: rem readme

* fix: point tests at devnet

* refactor(nibijs)!: NibiruSigningClient -> NibiruTxClient, NibiruQueryClient -> NibiruQuerier (#265)

* refactor(nibijs)!: NibiruSigningClient -> NibiruTxClient, NibiruQueryClient -> NibiruQuerier

* chore: rebuild docs + txClient file name

* fix(release): publish please

* chore: rebuild docs with v0.21.43 (main)

* feat(nibijs): mainnet custom chain function (#268)

* feat(nibijs): mainnet custom chain function

* PR comments

* coderabbit: Update packages/nibijs/docs/modules.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* refactor: adding hm & ws to custom chain (#269)

* test: faucet fix

* test: empty chain in faucet test

* refactor: endpt hm & ws typo

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Karim El Shenawy <[email protected]>
Co-authored-by: elshenak <[email protected]>

* feat(triggering release): now

* fix: install error

* fix: fix

names

* fix: fix update

---------

Co-authored-by: Unique Divine <[email protected]>
Co-authored-by: Karim El Shenawy <[email protected]>
Co-authored-by: elshenak <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Unique-Divine <[email protected]>
  • Loading branch information
6 people authored Jan 4, 2024
1 parent ad232b7 commit e2ebd40
Show file tree
Hide file tree
Showing 41 changed files with 267 additions and 233 deletions.
60 changes: 47 additions & 13 deletions .github/workflows/test-ts-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ name: ⛓️ Tests @nibiruchain/ts-sdk
on:
pull_request:
branches: ["develop", "main"]
paths: ["**.js", "**.ts", "**.tsx", "**.json"]
push:
branches: ["main"]
paths: ["**.js", "**.ts", "**.tsx", "**.json"]

jobs:
test-ts-sdk:
checkout_cache_install:
runs-on: ubuntu-latest
env:
VALIDATOR_MNEMONIC: ${{ secrets.VALIDATOR_MNEMONIC }}
Expand All @@ -21,8 +19,8 @@ jobs:
WEBSOCKET_ENDPOINT: "ws://127.0.0.1:26657/websocket"
CHAIN_ID: "nibiru-localnet-0"
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

Expand All @@ -42,17 +40,53 @@ jobs:
node-version: "lts/hydrogen"
cache: "yarn"

- name: Install yarn using npm
run: npm install -g yarn
- name: yarn install
uses: borales/actions-yarn@v4
with:
cmd: install

- name: "Tar files"
run: tar -cf preview_image.tar ./

- name: Upload preview_image
uses: actions/upload-artifact@v4
with:
name: preview_image
path: ./preview_image.tar

- name: Install dependencies
run: yarn --prefer-offline --check-files
build:
runs-on: ubuntu-latest
needs: [checkout_cache_install]
steps:
- name: Download preview_image
uses: actions/download-artifact@v4
with:
name: preview_image

- name: Build the application
run: yarn build --include-dependencies || yarn build --parallel --include-dependencies
- name: Untar files
run: tar -xf preview_image.tar

- name: Run tests
run: yarn test
- name: yarn build
uses: borales/actions-yarn@v4
with:
cmd: build

test:
runs-on: ubuntu-latest
needs: [checkout_cache_install]
steps:
- name: Download preview_image
uses: actions/download-artifact@v4
with:
name: preview_image

- name: Untar files
run: tar -xf preview_image.tar

- name: yarn test
uses: borales/actions-yarn@v4
with:
cmd: test

- name: "Run examples (packages/examples)"
run: |
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
]
},
"scripts": {
"build": "lerna run --parallel build",
"build:watch": "lerna run --parallel build:watch",
"build": "lerna run --parallel build --include-dependencies",
"build:watch": "lerna run --parallel build:watch ",
"clean": "lerna run --parallel clean",
"commit": "cz",
"publish:all": "lerna publish from-package",
Expand Down
26 changes: 13 additions & 13 deletions packages/nibijs/docs/classes/CustomChain.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / CustomChain
[NibiJS Documentation - v0.21.44](../intro.md) / [Exports](../modules.md) / CustomChain

# Class: CustomChain

Expand Down Expand Up @@ -56,7 +56,7 @@ export const chain = new CustomChain({

#### Defined in

[chain/chain.ts:72](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/chain/chain.ts#L72)
[chain/chain.ts:72](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/chain/chain.ts#L72)

## Properties

Expand All @@ -72,7 +72,7 @@ chainId: identifier for the chain

#### Defined in

[chain/chain.ts:61](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/chain/chain.ts#L61)
[chain/chain.ts:61](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/chain/chain.ts#L61)

---

Expand All @@ -82,7 +82,7 @@ chainId: identifier for the chain

#### Defined in

[chain/chain.ts:70](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/chain/chain.ts#L70)
[chain/chain.ts:70](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/chain/chain.ts#L70)

---

Expand All @@ -98,7 +98,7 @@ chainName: the name of the chain to display to the user

#### Defined in

[chain/chain.ts:62](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/chain/chain.ts#L62)
[chain/chain.ts:62](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/chain/chain.ts#L62)

---

Expand All @@ -114,7 +114,7 @@ endptGrpc: endpoint for the gRPC gateway. Usually on port 9090.

#### Defined in

[chain/chain.ts:65](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/chain/chain.ts#L65)
[chain/chain.ts:65](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/chain/chain.ts#L65)

---

Expand All @@ -130,7 +130,7 @@ endptHm: endpoint for the heart monitor.

#### Defined in

[chain/chain.ts:66](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/chain/chain.ts#L66)
[chain/chain.ts:66](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/chain/chain.ts#L66)

---

Expand All @@ -146,7 +146,7 @@ endptRest: endpoint for the REST server. Also, the LCD endpoint.

#### Defined in

[chain/chain.ts:64](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/chain/chain.ts#L64)
[chain/chain.ts:64](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/chain/chain.ts#L64)

---

Expand All @@ -162,7 +162,7 @@ endptTm: endpoint for the Tendermint RPC server. Usually on port 26657.

#### Defined in

[chain/chain.ts:63](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/chain/chain.ts#L63)
[chain/chain.ts:63](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/chain/chain.ts#L63)

---

Expand All @@ -178,7 +178,7 @@ endptWs: endpoint for the web socket.

#### Defined in

[chain/chain.ts:67](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/chain/chain.ts#L67)
[chain/chain.ts:67](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/chain/chain.ts#L67)

---

Expand All @@ -194,7 +194,7 @@ feeDenom: the denomination of the fee to be paid for transactions.

#### Defined in

[chain/chain.ts:68](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/chain/chain.ts#L68)
[chain/chain.ts:68](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/chain/chain.ts#L68)

## Methods

Expand All @@ -208,7 +208,7 @@ feeDenom: the denomination of the fee to be paid for transactions.

#### Defined in

[chain/chain.ts:98](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/chain/chain.ts#L98)
[chain/chain.ts:98](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/chain/chain.ts#L98)

---

Expand All @@ -228,4 +228,4 @@ feeDenom: the denomination of the fee to be paid for transactions.

#### Defined in

[chain/chain.ts:88](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/chain/chain.ts#L88)
[chain/chain.ts:88](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/chain/chain.ts#L88)
6 changes: 3 additions & 3 deletions packages/nibijs/docs/classes/MsgFactory.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / MsgFactory
[NibiJS Documentation - v0.21.44](../intro.md) / [Exports](../modules.md) / MsgFactory

# Class: MsgFactory

Expand Down Expand Up @@ -27,7 +27,7 @@

#### Defined in

[msg/index.ts:6](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/msg/index.ts#L6)
[msg/index.ts:6](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/msg/index.ts#L6)

---

Expand All @@ -37,4 +37,4 @@

#### Defined in

[msg/index.ts:5](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/msg/index.ts#L5)
[msg/index.ts:5](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/msg/index.ts#L5)
20 changes: 10 additions & 10 deletions packages/nibijs/docs/classes/NibiruQuerier.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / NibiruQuerier
[NibiJS Documentation - v0.21.44](../intro.md) / [Exports](../modules.md) / NibiruQuerier

# Class: NibiruQuerier

Expand Down Expand Up @@ -58,7 +58,7 @@ StargateClient.constructor

#### Defined in

[query/query.ts:66](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/query/query.ts#L66)
[query/query.ts:66](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/query/query.ts#L66)

## Properties

Expand All @@ -68,7 +68,7 @@ StargateClient.constructor

#### Defined in

[query/query.ts:53](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/query/query.ts#L53)
[query/query.ts:53](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/query/query.ts#L53)

---

Expand All @@ -78,7 +78,7 @@ StargateClient.constructor

#### Defined in

[query/query.ts:55](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/query/query.ts#L55)
[query/query.ts:55](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/query/query.ts#L55)

---

Expand All @@ -88,7 +88,7 @@ StargateClient.constructor

#### Defined in

[query/query.ts:54](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/query/query.ts#L54)
[query/query.ts:54](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/query/query.ts#L54)

## Methods

Expand Down Expand Up @@ -126,7 +126,7 @@ const txRespResult = await getTxByHash(txHash)

#### Defined in

[query/query.ts:122](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/query/query.ts#L122)
[query/query.ts:122](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/query/query.ts#L122)

---

Expand All @@ -153,7 +153,7 @@ getTxByHash - Equivalent query using the hex-encoded tx hash string.

#### Defined in

[query/query.ts:136](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/query/query.ts#L136)
[query/query.ts:136](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/query/query.ts#L136)

---

Expand All @@ -173,7 +173,7 @@ getTxByHash - Equivalent query using the hex-encoded tx hash string.

#### Defined in

[query/query.ts:92](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/query/query.ts#L92)
[query/query.ts:92](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/query/query.ts#L92)

---

Expand All @@ -187,7 +187,7 @@ getTxByHash - Equivalent query using the hex-encoded tx hash string.

#### Defined in

[query/query.ts:100](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/query/query.ts#L100)
[query/query.ts:100](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/query/query.ts#L100)

---

Expand All @@ -212,4 +212,4 @@ StargateClient.connect

#### Defined in

[query/query.ts:57](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/query/query.ts#L57)
[query/query.ts:57](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/query/query.ts#L57)
14 changes: 7 additions & 7 deletions packages/nibijs/docs/classes/NibiruTxClient.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / NibiruTxClient
[NibiJS Documentation - v0.21.44](../intro.md) / [Exports](../modules.md) / NibiruTxClient

# Class: NibiruTxClient

Expand Down Expand Up @@ -46,7 +46,7 @@ SigningStargateClient.constructor

#### Defined in

[tx/txClient.ts:41](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/tx/txClient.ts#L41)
[tx/txClient.ts:41](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/tx/txClient.ts#L41)

## Properties

Expand All @@ -56,7 +56,7 @@ SigningStargateClient.constructor

#### Defined in

[tx/txClient.ts:38](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/tx/txClient.ts#L38)
[tx/txClient.ts:38](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/tx/txClient.ts#L38)

---

Expand All @@ -66,7 +66,7 @@ SigningStargateClient.constructor

#### Defined in

[tx/txClient.ts:39](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/tx/txClient.ts#L39)
[tx/txClient.ts:39](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/tx/txClient.ts#L39)

## Methods

Expand All @@ -86,7 +86,7 @@ SigningStargateClient.constructor

#### Defined in

[tx/txClient.ts:94](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/tx/txClient.ts#L94)
[tx/txClient.ts:94](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/tx/txClient.ts#L94)

---

Expand All @@ -100,7 +100,7 @@ SigningStargateClient.constructor

#### Defined in

[tx/txClient.ts:102](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/tx/txClient.ts#L102)
[tx/txClient.ts:102](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/tx/txClient.ts#L102)

---

Expand All @@ -127,4 +127,4 @@ SigningStargateClient.connectWithSigner

#### Defined in

[tx/txClient.ts:66](https://github.com/NibiruChain/ts-sdk/blob/c7f0580/packages/nibijs/src/tx/txClient.ts#L66)
[tx/txClient.ts:66](https://github.com/NibiruChain/ts-sdk/blob/b09b5db/packages/nibijs/src/tx/txClient.ts#L66)
Loading

0 comments on commit e2ebd40

Please sign in to comment.