Skip to content

Commit

Permalink
develop -> Main (#270)
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]>

---------

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 Dec 20, 2023
1 parent 43d6096 commit 90fc972
Show file tree
Hide file tree
Showing 44 changed files with 316 additions and 234 deletions.
2 changes: 1 addition & 1 deletion packages/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependencies": {
"@cosmjs/amino": "^0.32.1",
"@cosmjs/proto-signing": "^0.32.1",
"@nibiruchain/nibijs": "0.21.42"
"@nibiruchain/nibijs": "0.21.43"
},
"engines": {
"node": ">=18"
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.42](../intro.md) / [Exports](../modules.md) / CustomChain
[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / CustomChain

# Class: CustomChain

Expand All @@ -8,11 +8,11 @@ based on its chain ID.
**`Example`**

```ts
export const TEST_CHAIN = new CustomChain({
export const chain = new CustomChain({
prefix: "nibiru",
shortName: "testnet",
number: 1,
}) // v0.19.2
})
```

## Implements
Expand Down Expand Up @@ -54,7 +54,7 @@ export const TEST_CHAIN = new CustomChain({

#### Defined in

[chain/chain.ts:57](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L57)
[chain/chain.ts:66](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L66)

## Properties

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

#### Defined in

[chain/chain.ts:48](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L48)
[chain/chain.ts:57](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L57)

---

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

#### Defined in

[chain/chain.ts:55](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L55)
[chain/chain.ts:64](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L64)

---

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

#### Defined in

[chain/chain.ts:49](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L49)
[chain/chain.ts:58](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L58)

---

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

#### Defined in

[chain/chain.ts:52](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L52)
[chain/chain.ts:61](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L61)

---

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

#### Defined in

[chain/chain.ts:51](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L51)
[chain/chain.ts:60](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L60)

---

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

#### Defined in

[chain/chain.ts:50](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L50)
[chain/chain.ts:59](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L59)

---

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

#### Defined in

[chain/chain.ts:53](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L53)
[chain/chain.ts:62](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L62)

## Methods

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

#### Defined in

[chain/chain.ts:81](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L81)
[chain/chain.ts:90](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L90)

---

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

#### Defined in

[chain/chain.ts:71](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L71)
[chain/chain.ts:80](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L80)
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.42](../intro.md) / [Exports](../modules.md) / MsgFactory
[NibiJS Documentation - v0.21.43](../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/d8a549e/packages/nibijs/src/msg/index.ts#L6)
[msg/index.ts:6](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/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/d8a549e/packages/nibijs/src/msg/index.ts#L5)
[msg/index.ts:5](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/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.42](../intro.md) / [Exports](../modules.md) / NibiruQuerier
[NibiJS Documentation - v0.21.43](../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/d8a549e/packages/nibijs/src/query/query.ts#L66)
[query/query.ts:66](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/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/d8a549e/packages/nibijs/src/query/query.ts#L53)
[query/query.ts:53](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/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/d8a549e/packages/nibijs/src/query/query.ts#L55)
[query/query.ts:55](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/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/d8a549e/packages/nibijs/src/query/query.ts#L54)
[query/query.ts:54](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/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/d8a549e/packages/nibijs/src/query/query.ts#L122)
[query/query.ts:122](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/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/d8a549e/packages/nibijs/src/query/query.ts#L136)
[query/query.ts:136](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/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/d8a549e/packages/nibijs/src/query/query.ts#L92)
[query/query.ts:92](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/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/d8a549e/packages/nibijs/src/query/query.ts#L100)
[query/query.ts:100](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/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/d8a549e/packages/nibijs/src/query/query.ts#L57)
[query/query.ts:57](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/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.42](../intro.md) / [Exports](../modules.md) / NibiruTxClient
[NibiJS Documentation - v0.21.43](../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/d8a549e/packages/nibijs/src/tx/txClient.ts#L41)
[tx/txClient.ts:41](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/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/d8a549e/packages/nibijs/src/tx/txClient.ts#L38)
[tx/txClient.ts:38](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/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/d8a549e/packages/nibijs/src/tx/txClient.ts#L39)
[tx/txClient.ts:39](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/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/d8a549e/packages/nibijs/src/tx/txClient.ts#L94)
[tx/txClient.ts:94](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/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/d8a549e/packages/nibijs/src/tx/txClient.ts#L102)
[tx/txClient.ts:102](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/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/d8a549e/packages/nibijs/src/tx/txClient.ts#L66)
[tx/txClient.ts:66](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/txClient.ts#L66)
16 changes: 8 additions & 8 deletions packages/nibijs/docs/classes/PerpMsgFactory.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / PerpMsgFactory
[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / PerpMsgFactory

# Class: PerpMsgFactory

Expand Down Expand Up @@ -55,7 +55,7 @@ Returns a 'TxMessage' for adding margin to a position

#### Defined in

[msg/perp.ts:124](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L124)
[msg/perp.ts:124](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L124)

---

Expand All @@ -75,7 +75,7 @@ Returns a 'TxMessage' for adding margin to a position

#### Defined in

[msg/perp.ts:161](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L161)
[msg/perp.ts:161](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L161)

---

Expand All @@ -95,7 +95,7 @@ Returns a 'TxMessage' for adding margin to a position

#### Defined in

[msg/perp.ts:175](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L175)
[msg/perp.ts:175](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L175)

---

Expand All @@ -115,7 +115,7 @@ Returns a 'TxMessage' for adding margin to a position

#### Defined in

[msg/perp.ts:131](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L131)
[msg/perp.ts:131](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L131)

---

Expand All @@ -141,7 +141,7 @@ Returns a 'TxMessage' for adding margin to a position

#### Defined in

[msg/perp.ts:138](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L138)
[msg/perp.ts:138](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L138)

---

Expand All @@ -161,7 +161,7 @@ Returns a 'TxMessage' for adding margin to a position

#### Defined in

[msg/perp.ts:168](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L168)
[msg/perp.ts:168](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L168)

---

Expand All @@ -181,4 +181,4 @@ Returns a 'TxMessage' for adding margin to a position

#### Defined in

[msg/perp.ts:110](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L110)
[msg/perp.ts:110](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L110)
Loading

1 comment on commit 90fc972

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines Statements Branches Functions
Coverage: 95%
95.47% (1370/1435) 97.96% (577/589) 88.21% (322/365)

Please sign in to comment.