Skip to content

Commit

Permalink
feat(nibijs): mainnet custom chain function
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Divine committed Dec 13, 2023
1 parent 6e650cb commit cacf9b9
Show file tree
Hide file tree
Showing 37 changed files with 240 additions and 184 deletions.
24 changes: 12 additions & 12 deletions packages/nibijs/docs/classes/CustomChain.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}) // v0.21.43
```

## 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/23db897/packages/nibijs/src/chain/chain.ts#L57)
[chain/chain.ts:66](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L48)
[chain/chain.ts:57](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L55)
[chain/chain.ts:64](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L49)
[chain/chain.ts:58](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L52)
[chain/chain.ts:61](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L51)
[chain/chain.ts:60](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L50)
[chain/chain.ts:59](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L53)
[chain/chain.ts:62](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L81)
[chain/chain.ts:90](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L71)
[chain/chain.ts:80](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L80)
4 changes: 2 additions & 2 deletions packages/nibijs/docs/classes/MsgFactory.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#### Defined in

[msg/index.ts:6](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/msg/index.ts#L6)
[msg/index.ts:6](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/index.ts#L5)
[msg/index.ts:5](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/index.ts#L5)
18 changes: 9 additions & 9 deletions packages/nibijs/docs/classes/NibiruQuerier.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ StargateClient.constructor

#### Defined in

[query/query.ts:66](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/query/query.ts#L66)
[query/query.ts:66](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/query.ts#L53)
[query/query.ts:53](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/query.ts#L55)
[query/query.ts:55](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/query.ts#L54)
[query/query.ts:54](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/query.ts#L122)
[query/query.ts:122](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/query.ts#L136)
[query/query.ts:136](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/query.ts#L92)
[query/query.ts:92](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/query.ts#L100)
[query/query.ts:100](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/query.ts#L57)
[query/query.ts:57](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/query/query.ts#L57)
12 changes: 6 additions & 6 deletions packages/nibijs/docs/classes/NibiruTxClient.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ SigningStargateClient.constructor

#### Defined in

[tx/txClient.ts:41](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/tx/txClient.ts#L41)
[tx/txClient.ts:41](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/txClient.ts#L38)
[tx/txClient.ts:38](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/txClient.ts#L39)
[tx/txClient.ts:39](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/txClient.ts#L94)
[tx/txClient.ts:94](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/txClient.ts#L102)
[tx/txClient.ts:102](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/txClient.ts#L66)
[tx/txClient.ts:66](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/tx/txClient.ts#L66)
14 changes: 7 additions & 7 deletions packages/nibijs/docs/classes/PerpMsgFactory.md
Original file line number Diff line number Diff line change
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/23db897/packages/nibijs/src/msg/perp.ts#L124)
[msg/perp.ts:124](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L161)
[msg/perp.ts:161](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L175)
[msg/perp.ts:175](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L131)
[msg/perp.ts:131](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L138)
[msg/perp.ts:138](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L168)
[msg/perp.ts:168](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L110)
[msg/perp.ts:110](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/perp.ts#L110)
14 changes: 7 additions & 7 deletions packages/nibijs/docs/classes/Result.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ if (res.isOk()) {

#### Defined in

[result.ts:33](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/result.ts#L33)
[result.ts:33](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/result.ts#L33)

## Properties

Expand All @@ -92,7 +92,7 @@ if (res.isOk()) {

#### Defined in

[result.ts:32](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/result.ts#L32)
[result.ts:32](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/result.ts#L32)

---

Expand All @@ -102,7 +102,7 @@ if (res.isOk()) {

#### Defined in

[result.ts:31](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/result.ts#L31)
[result.ts:31](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/result.ts#L31)

## Methods

Expand All @@ -116,7 +116,7 @@ if (res.isOk()) {

#### Defined in

[result.ts:44](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/result.ts#L44)
[result.ts:44](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/result.ts#L44)

---

Expand All @@ -130,7 +130,7 @@ if (res.isOk()) {

#### Defined in

[result.ts:45](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/result.ts#L45)
[result.ts:45](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/result.ts#L45)

---

Expand Down Expand Up @@ -158,7 +158,7 @@ Constructor for "Result" using the return value of the input function.

#### Defined in

[result.ts:48](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/result.ts#L48)
[result.ts:48](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/result.ts#L48)

---

Expand Down Expand Up @@ -192,4 +192,4 @@ const result = Result.ofSafeExecAsync(async () => someAsyncFunc(args))

#### Defined in

[result.ts:60](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/result.ts#L60)
[result.ts:60](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/result.ts#L60)
8 changes: 4 additions & 4 deletions packages/nibijs/docs/classes/SpotMsgFactory.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

#### Defined in

[msg/spot.ts:61](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/msg/spot.ts#L61)
[msg/spot.ts:61](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/spot.ts#L61)

---

Expand All @@ -59,7 +59,7 @@

#### Defined in

[msg/spot.ts:91](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/msg/spot.ts#L91)
[msg/spot.ts:91](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/spot.ts#L91)

---

Expand All @@ -79,7 +79,7 @@

#### Defined in

[msg/spot.ts:74](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/msg/spot.ts#L74)
[msg/spot.ts:74](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/spot.ts#L74)

---

Expand All @@ -99,4 +99,4 @@

#### Defined in

[msg/spot.ts:102](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/msg/spot.ts#L102)
[msg/spot.ts:102](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/spot.ts#L102)
Loading

0 comments on commit cacf9b9

Please sign in to comment.