From 90fc97212b105228780bbb403eb9f0c3bdf5dc21 Mon Sep 17 00:00:00 2001 From: Cameron Gilbert Date: Tue, 19 Dec 2023 20:14:25 -0500 Subject: [PATCH] develop -> Main (#270) * 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 <54007257+elshenak@users.noreply.github.com> Co-authored-by: elshenak --------- Co-authored-by: Unique Divine <51418232+Unique-Divine@users.noreply.github.com> Co-authored-by: Karim El Shenawy <54007257+elshenak@users.noreply.github.com> Co-authored-by: elshenak Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Unique-Divine --- packages/examples/package.json | 2 +- packages/nibijs/docs/classes/CustomChain.md | 26 +-- packages/nibijs/docs/classes/MsgFactory.md | 6 +- packages/nibijs/docs/classes/NibiruQuerier.md | 20 +-- .../nibijs/docs/classes/NibiruTxClient.md | 14 +- .../nibijs/docs/classes/PerpMsgFactory.md | 16 +- packages/nibijs/docs/classes/Result.md | 16 +- .../nibijs/docs/classes/SpotMsgFactory.md | 10 +- packages/nibijs/docs/classes/StableSwap.md | 22 +-- packages/nibijs/docs/enums/BECH32_PREFIX.md | 14 +- packages/nibijs/docs/enums/Signer.md | 6 +- packages/nibijs/docs/interfaces/ABCIEvent.md | 6 +- packages/nibijs/docs/interfaces/Chain.md | 14 +- .../nibijs/docs/interfaces/ChainIdParts.md | 25 ++- packages/nibijs/docs/interfaces/CoinMap.md | 2 +- .../nibijs/docs/interfaces/EpochsExtension.md | 4 +- .../nibijs/docs/interfaces/EventAttribute.md | 6 +- packages/nibijs/docs/interfaces/EventMap.md | 4 +- .../docs/interfaces/EventMapAttribute.md | 2 +- .../docs/interfaces/InflationExtension.md | 4 +- .../interfaces/MsgAddMarginEncodeObject.md | 6 +- .../MsgClosePositionEncodeObject.md | 6 +- .../interfaces/MsgCreatePoolEncodeObject.md | 6 +- .../MsgDonateToEcosystemFundEncodeObject.md | 6 +- .../interfaces/MsgExitPoolEncodeObject.md | 6 +- .../interfaces/MsgJoinPoolEncodeObject.md | 6 +- .../MsgMultiLiquidateEncodeObject.md | 6 +- .../interfaces/MsgOpenPositionEncodeObject.md | 6 +- .../interfaces/MsgPartialCloseEncodeObject.md | 6 +- .../interfaces/MsgRemoveMarginEncodeObject.md | 6 +- .../interfaces/MsgSwapAssetsEncodeObject.md | 6 +- .../nibijs/docs/interfaces/MsgTypeUrls.md | 2 +- .../nibijs/docs/interfaces/OracleExtension.md | 4 +- .../nibijs/docs/interfaces/PageRequest.md | 12 +- .../nibijs/docs/interfaces/PerpExtension.md | 4 +- .../nibijs/docs/interfaces/SpotExtension.md | 4 +- .../nibijs/docs/interfaces/SudoExtension.md | 4 +- packages/nibijs/docs/interfaces/TxLog.md | 4 +- packages/nibijs/docs/interfaces/TxMessage.md | 2 +- packages/nibijs/docs/modules.md | 152 ++++++++++-------- packages/nibijs/package.json | 4 +- packages/nibijs/src/chain/chain.ts | 38 ++++- packages/nibijs/src/test/chain.test.ts | 31 ++-- packages/nibijs/src/test/faucet.test.ts | 4 + 44 files changed, 316 insertions(+), 234 deletions(-) diff --git a/packages/examples/package.json b/packages/examples/package.json index ee5b63b4..63bfcbf4 100644 --- a/packages/examples/package.json +++ b/packages/examples/package.json @@ -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" diff --git a/packages/nibijs/docs/classes/CustomChain.md b/packages/nibijs/docs/classes/CustomChain.md index 589764ab..6808b9d9 100644 --- a/packages/nibijs/docs/classes/CustomChain.md +++ b/packages/nibijs/docs/classes/CustomChain.md @@ -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 @@ -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 @@ -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 @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) --- @@ -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 @@ -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) --- @@ -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) diff --git a/packages/nibijs/docs/classes/MsgFactory.md b/packages/nibijs/docs/classes/MsgFactory.md index aac4a9fa..a726b08c 100644 --- a/packages/nibijs/docs/classes/MsgFactory.md +++ b/packages/nibijs/docs/classes/MsgFactory.md @@ -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 @@ -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) --- @@ -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) diff --git a/packages/nibijs/docs/classes/NibiruQuerier.md b/packages/nibijs/docs/classes/NibiruQuerier.md index 0972251a..c3077733 100644 --- a/packages/nibijs/docs/classes/NibiruQuerier.md +++ b/packages/nibijs/docs/classes/NibiruQuerier.md @@ -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 @@ -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 @@ -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) --- @@ -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) --- @@ -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 @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) diff --git a/packages/nibijs/docs/classes/NibiruTxClient.md b/packages/nibijs/docs/classes/NibiruTxClient.md index a1d121f7..fce67952 100644 --- a/packages/nibijs/docs/classes/NibiruTxClient.md +++ b/packages/nibijs/docs/classes/NibiruTxClient.md @@ -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 @@ -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 @@ -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) --- @@ -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 @@ -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) --- @@ -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) --- @@ -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) diff --git a/packages/nibijs/docs/classes/PerpMsgFactory.md b/packages/nibijs/docs/classes/PerpMsgFactory.md index e07c5dd2..9b174e2b 100644 --- a/packages/nibijs/docs/classes/PerpMsgFactory.md +++ b/packages/nibijs/docs/classes/PerpMsgFactory.md @@ -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 @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) diff --git a/packages/nibijs/docs/classes/Result.md b/packages/nibijs/docs/classes/Result.md index 6a9ee42b..555c678e 100644 --- a/packages/nibijs/docs/classes/Result.md +++ b/packages/nibijs/docs/classes/Result.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / Result +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / Result # Class: Result @@ -82,7 +82,7 @@ if (res.isOk()) { #### Defined in -[result.ts:33](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/result.ts#L33) +[result.ts:33](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/result.ts#L33) ## Properties @@ -92,7 +92,7 @@ if (res.isOk()) { #### Defined in -[result.ts:32](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/result.ts#L32) +[result.ts:32](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/result.ts#L32) --- @@ -102,7 +102,7 @@ if (res.isOk()) { #### Defined in -[result.ts:31](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/result.ts#L31) +[result.ts:31](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/result.ts#L31) ## Methods @@ -116,7 +116,7 @@ if (res.isOk()) { #### Defined in -[result.ts:44](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/result.ts#L44) +[result.ts:44](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/result.ts#L44) --- @@ -130,7 +130,7 @@ if (res.isOk()) { #### Defined in -[result.ts:45](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/result.ts#L45) +[result.ts:45](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/result.ts#L45) --- @@ -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/d8a549e/packages/nibijs/src/result.ts#L48) +[result.ts:48](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/result.ts#L48) --- @@ -192,4 +192,4 @@ const result = Result.ofSafeExecAsync(async () => someAsyncFunc(args)) #### Defined in -[result.ts:60](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/result.ts#L60) +[result.ts:60](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/result.ts#L60) diff --git a/packages/nibijs/docs/classes/SpotMsgFactory.md b/packages/nibijs/docs/classes/SpotMsgFactory.md index 3d5d0225..5916e35c 100644 --- a/packages/nibijs/docs/classes/SpotMsgFactory.md +++ b/packages/nibijs/docs/classes/SpotMsgFactory.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / SpotMsgFactory +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / SpotMsgFactory # Class: SpotMsgFactory @@ -39,7 +39,7 @@ #### Defined in -[msg/spot.ts:61](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L61) +[msg/spot.ts:61](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L61) --- @@ -59,7 +59,7 @@ #### Defined in -[msg/spot.ts:91](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L91) +[msg/spot.ts:91](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L91) --- @@ -79,7 +79,7 @@ #### Defined in -[msg/spot.ts:74](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L74) +[msg/spot.ts:74](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L74) --- @@ -99,4 +99,4 @@ #### Defined in -[msg/spot.ts:102](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L102) +[msg/spot.ts:102](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L102) diff --git a/packages/nibijs/docs/classes/StableSwap.md b/packages/nibijs/docs/classes/StableSwap.md index deb389ab..bdac37f1 100644 --- a/packages/nibijs/docs/classes/StableSwap.md +++ b/packages/nibijs/docs/classes/StableSwap.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / StableSwap +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / StableSwap # Class: StableSwap @@ -54,7 +54,7 @@ Constructor: #### Defined in -[stableswap/stableswap.ts:25](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/stableswap/stableswap.ts#L25) +[stableswap/stableswap.ts:25](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/stableswap/stableswap.ts#L25) ## Properties @@ -64,7 +64,7 @@ Constructor: #### Defined in -[stableswap/stableswap.ts:20](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/stableswap/stableswap.ts#L20) +[stableswap/stableswap.ts:20](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/stableswap/stableswap.ts#L20) --- @@ -74,7 +74,7 @@ Constructor: #### Defined in -[stableswap/stableswap.ts:23](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/stableswap/stableswap.ts#L23) +[stableswap/stableswap.ts:23](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/stableswap/stableswap.ts#L23) --- @@ -84,7 +84,7 @@ Constructor: #### Defined in -[stableswap/stableswap.ts:21](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/stableswap/stableswap.ts#L21) +[stableswap/stableswap.ts:21](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/stableswap/stableswap.ts#L21) --- @@ -94,7 +94,7 @@ Constructor: #### Defined in -[stableswap/stableswap.ts:22](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/stableswap/stableswap.ts#L22) +[stableswap/stableswap.ts:22](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/stableswap/stableswap.ts#L22) ## Methods @@ -117,7 +117,7 @@ StableSwap #### Defined in -[stableswap/stableswap.ts:54](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/stableswap/stableswap.ts#L54) +[stableswap/stableswap.ts:54](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/stableswap/stableswap.ts#L54) --- @@ -145,7 +145,7 @@ StableSwap #### Defined in -[stableswap/stableswap.ts:143](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/stableswap/stableswap.ts#L143) +[stableswap/stableswap.ts:143](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/stableswap/stableswap.ts#L143) --- @@ -165,7 +165,7 @@ StableSwap #### Defined in -[stableswap/stableswap.ts:41](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/stableswap/stableswap.ts#L41) +[stableswap/stableswap.ts:41](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/stableswap/stableswap.ts#L41) --- @@ -178,7 +178,7 @@ y() Calculate x[j] if one makes x[i] = x Done by solving quadratic equation iteratively. -x*1**2 + x1 * (sum' - (A*n**n - 1) * D / (A _ n**n)) = D ** (n+1)/(n \*\* (2 _ n) \_ prod' \* A) +x*1\*\*2 + x1 * (sum' - (A*n\*\*n - 1) * D / (A _ n**n)) = D ** (n+1)/(n \*\* (2 _ n) \_ prod' \* A) x_1\*\*2 + b\*x_1 = c x_1 = (x_1\**2 + c) / (2*x_1 + b) @@ -201,4 +201,4 @@ StableSwap #### Defined in -[stableswap/stableswap.ts:104](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/stableswap/stableswap.ts#L104) +[stableswap/stableswap.ts:104](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/stableswap/stableswap.ts#L104) diff --git a/packages/nibijs/docs/enums/BECH32_PREFIX.md b/packages/nibijs/docs/enums/BECH32_PREFIX.md index 17eb2e03..721e0162 100644 --- a/packages/nibijs/docs/enums/BECH32_PREFIX.md +++ b/packages/nibijs/docs/enums/BECH32_PREFIX.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / BECH32_PREFIX +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / BECH32_PREFIX # Enumeration: BECH32_PREFIX @@ -23,7 +23,7 @@ ADDR defines the Bech32 prefix of an account address #### Defined in -[tx/signer.ts:6](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/signer.ts#L6) +[tx/signer.ts:6](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/signer.ts#L6) --- @@ -35,7 +35,7 @@ ADDR_VAL defines the Bech32 prefix of an validator's operator address #### Defined in -[tx/signer.ts:8](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/signer.ts#L8) +[tx/signer.ts:8](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/signer.ts#L8) --- @@ -47,7 +47,7 @@ ADDR_VALCONS defines the Bech32 prefix of a consensus node address #### Defined in -[tx/signer.ts:10](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/signer.ts#L10) +[tx/signer.ts:10](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/signer.ts#L10) --- @@ -59,7 +59,7 @@ PUB defines the Bech32 prefix of an account's public key #### Defined in -[tx/signer.ts:12](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/signer.ts#L12) +[tx/signer.ts:12](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/signer.ts#L12) --- @@ -71,7 +71,7 @@ PUB_VAL defines the Bech32 prefix of an validator's operator public key #### Defined in -[tx/signer.ts:14](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/signer.ts#L14) +[tx/signer.ts:14](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/signer.ts#L14) --- @@ -83,4 +83,4 @@ PUB_VALCONS defines the Bech32 prefix of a consensus node public key #### Defined in -[tx/signer.ts:16](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/signer.ts#L16) +[tx/signer.ts:16](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/signer.ts#L16) diff --git a/packages/nibijs/docs/enums/Signer.md b/packages/nibijs/docs/enums/Signer.md index 39a78f0a..27469c8f 100644 --- a/packages/nibijs/docs/enums/Signer.md +++ b/packages/nibijs/docs/enums/Signer.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / Signer +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / Signer # Enumeration: Signer @@ -17,7 +17,7 @@ #### Defined in -[tx/signer.ts:53](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/signer.ts#L53) +[tx/signer.ts:53](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/signer.ts#L53) --- @@ -27,4 +27,4 @@ #### Defined in -[tx/signer.ts:52](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/signer.ts#L52) +[tx/signer.ts:52](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/signer.ts#L52) diff --git a/packages/nibijs/docs/interfaces/ABCIEvent.md b/packages/nibijs/docs/interfaces/ABCIEvent.md index b31a6749..17d87164 100644 --- a/packages/nibijs/docs/interfaces/ABCIEvent.md +++ b/packages/nibijs/docs/interfaces/ABCIEvent.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / ABCIEvent +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / ABCIEvent # Interface: ABCIEvent @@ -23,7 +23,7 @@ key-value strings of arbitrary data. #### Defined in -[tx/event.ts:23](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/event.ts#L23) +[tx/event.ts:23](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/event.ts#L23) --- @@ -33,4 +33,4 @@ key-value strings of arbitrary data. #### Defined in -[tx/event.ts:22](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/event.ts#L22) +[tx/event.ts:22](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/event.ts#L22) diff --git a/packages/nibijs/docs/interfaces/Chain.md b/packages/nibijs/docs/interfaces/Chain.md index 5ed56c59..684d5056 100644 --- a/packages/nibijs/docs/interfaces/Chain.md +++ b/packages/nibijs/docs/interfaces/Chain.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / Chain +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / Chain # Interface: Chain @@ -38,7 +38,7 @@ chainId: identifier for the chain #### Defined in -[chain/chain.ts:21](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L21) +[chain/chain.ts:21](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L21) --- @@ -50,7 +50,7 @@ chainName: the name of the chain to display to the user #### Defined in -[chain/chain.ts:23](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L23) +[chain/chain.ts:23](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L23) --- @@ -62,7 +62,7 @@ endptGrpc: endpoint for the gRPC gateway. Usually on port 9090. #### Defined in -[chain/chain.ts:19](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L19) +[chain/chain.ts:19](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L19) --- @@ -74,7 +74,7 @@ endptRest: endpoint for the REST server. Also, the LCD endpoint. #### Defined in -[chain/chain.ts:17](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L17) +[chain/chain.ts:17](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L17) --- @@ -86,7 +86,7 @@ endptTm: endpoint for the Tendermint RPC server. Usually on port 26657. #### Defined in -[chain/chain.ts:15](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L15) +[chain/chain.ts:15](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L15) --- @@ -98,4 +98,4 @@ feeDenom: the denomination of the fee to be paid for transactions. #### Defined in -[chain/chain.ts:25](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L25) +[chain/chain.ts:25](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L25) diff --git a/packages/nibijs/docs/interfaces/ChainIdParts.md b/packages/nibijs/docs/interfaces/ChainIdParts.md index 99c7648e..45153af2 100644 --- a/packages/nibijs/docs/interfaces/ChainIdParts.md +++ b/packages/nibijs/docs/interfaces/ChainIdParts.md @@ -1,7 +1,22 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / ChainIdParts +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / ChainIdParts # Interface: ChainIdParts +ChainIdParts: An object mapping to the standard strucutre of Nibiru Chain +identifier. Generally, the CometBFT RPC, gRPC, and REST endpoints can be +deduced from `ChainIdParts`. + +**`Example`** + +```ts +let chain: ChainIdParts = { + shortName: "cataclysm", + number: 1, + mainnet: true, +} +chain = { prefix: "nibiru", shortName: "testnet", number: 1 } +``` + ## Table of contents ### Properties @@ -19,7 +34,7 @@ #### Defined in -[chain/chain.ts:32](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L32) +[chain/chain.ts:41](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L41) --- @@ -29,7 +44,7 @@ #### Defined in -[chain/chain.ts:31](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L31) +[chain/chain.ts:40](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L40) --- @@ -39,7 +54,7 @@ #### Defined in -[chain/chain.ts:29](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L29) +[chain/chain.ts:38](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L38) --- @@ -49,4 +64,4 @@ #### Defined in -[chain/chain.ts:30](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L30) +[chain/chain.ts:39](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L39) diff --git a/packages/nibijs/docs/interfaces/CoinMap.md b/packages/nibijs/docs/interfaces/CoinMap.md index bc9369a6..cb97ae69 100644 --- a/packages/nibijs/docs/interfaces/CoinMap.md +++ b/packages/nibijs/docs/interfaces/CoinMap.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / CoinMap +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / CoinMap # Interface: CoinMap diff --git a/packages/nibijs/docs/interfaces/EpochsExtension.md b/packages/nibijs/docs/interfaces/EpochsExtension.md index bb261244..7f98db99 100644 --- a/packages/nibijs/docs/interfaces/EpochsExtension.md +++ b/packages/nibijs/docs/interfaces/EpochsExtension.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / EpochsExtension +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / EpochsExtension # Interface: EpochsExtension @@ -16,4 +16,4 @@ #### Defined in -[query/epochs.ts:11](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/epochs.ts#L11) +[query/epochs.ts:11](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/epochs.ts#L11) diff --git a/packages/nibijs/docs/interfaces/EventAttribute.md b/packages/nibijs/docs/interfaces/EventAttribute.md index bb321871..e1dd2e4b 100644 --- a/packages/nibijs/docs/interfaces/EventAttribute.md +++ b/packages/nibijs/docs/interfaces/EventAttribute.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / EventAttribute +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / EventAttribute # Interface: EventAttribute @@ -19,7 +19,7 @@ EventAttribute: A single key-value pair of event data for an ABCI event. #### Defined in -[tx/event.ts:5](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/event.ts#L5) +[tx/event.ts:5](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/event.ts#L5) --- @@ -29,4 +29,4 @@ EventAttribute: A single key-value pair of event data for an ABCI event. #### Defined in -[tx/event.ts:6](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/event.ts#L6) +[tx/event.ts:6](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/event.ts#L6) diff --git a/packages/nibijs/docs/interfaces/EventMap.md b/packages/nibijs/docs/interfaces/EventMap.md index 393fa426..51f8c25e 100644 --- a/packages/nibijs/docs/interfaces/EventMap.md +++ b/packages/nibijs/docs/interfaces/EventMap.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / EventMap +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / EventMap # Interface: EventMap @@ -41,4 +41,4 @@ export interface EventTransfer extends EventMap { #### Defined in -[tx/event.ts:41](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/event.ts#L41) +[tx/event.ts:41](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/event.ts#L41) diff --git a/packages/nibijs/docs/interfaces/EventMapAttribute.md b/packages/nibijs/docs/interfaces/EventMapAttribute.md index a0474eaa..1487dfd8 100644 --- a/packages/nibijs/docs/interfaces/EventMapAttribute.md +++ b/packages/nibijs/docs/interfaces/EventMapAttribute.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / EventMapAttribute +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / EventMapAttribute # Interface: EventMapAttribute diff --git a/packages/nibijs/docs/interfaces/InflationExtension.md b/packages/nibijs/docs/interfaces/InflationExtension.md index 9bdcc755..02f8e648 100644 --- a/packages/nibijs/docs/interfaces/InflationExtension.md +++ b/packages/nibijs/docs/interfaces/InflationExtension.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / InflationExtension +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / InflationExtension # Interface: InflationExtension @@ -16,4 +16,4 @@ #### Defined in -[query/inflation.ts:19](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/inflation.ts#L19) +[query/inflation.ts:19](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/inflation.ts#L19) diff --git a/packages/nibijs/docs/interfaces/MsgAddMarginEncodeObject.md b/packages/nibijs/docs/interfaces/MsgAddMarginEncodeObject.md index 250bbd79..0edc08df 100644 --- a/packages/nibijs/docs/interfaces/MsgAddMarginEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgAddMarginEncodeObject.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / MsgAddMarginEncodeObject +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / MsgAddMarginEncodeObject # Interface: MsgAddMarginEncodeObject @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:37](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L37) +[msg/perp.ts:37](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L37) --- @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/perp.ts:38](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L38) +[msg/perp.ts:38](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L38) diff --git a/packages/nibijs/docs/interfaces/MsgClosePositionEncodeObject.md b/packages/nibijs/docs/interfaces/MsgClosePositionEncodeObject.md index 2587d2ba..138c91a9 100644 --- a/packages/nibijs/docs/interfaces/MsgClosePositionEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgClosePositionEncodeObject.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / MsgClosePositionEncodeObject +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / MsgClosePositionEncodeObject # Interface: MsgClosePositionEncodeObject @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:73](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L73) +[msg/perp.ts:73](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L73) --- @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/perp.ts:74](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L74) +[msg/perp.ts:74](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L74) diff --git a/packages/nibijs/docs/interfaces/MsgCreatePoolEncodeObject.md b/packages/nibijs/docs/interfaces/MsgCreatePoolEncodeObject.md index d7aa3ab0..c1285c38 100644 --- a/packages/nibijs/docs/interfaces/MsgCreatePoolEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgCreatePoolEncodeObject.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / MsgCreatePoolEncodeObject +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / MsgCreatePoolEncodeObject # Interface: MsgCreatePoolEncodeObject @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/spot.ts:27](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L27) +[msg/spot.ts:27](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L27) --- @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/spot.ts:28](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L28) +[msg/spot.ts:28](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L28) diff --git a/packages/nibijs/docs/interfaces/MsgDonateToEcosystemFundEncodeObject.md b/packages/nibijs/docs/interfaces/MsgDonateToEcosystemFundEncodeObject.md index 348e2f1b..e42cf5d6 100644 --- a/packages/nibijs/docs/interfaces/MsgDonateToEcosystemFundEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgDonateToEcosystemFundEncodeObject.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / MsgDonateToEcosystemFundEncodeObject +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / MsgDonateToEcosystemFundEncodeObject # Interface: MsgDonateToEcosystemFundEncodeObject @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:82](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L82) +[msg/perp.ts:82](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L82) --- @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/perp.ts:83](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L83) +[msg/perp.ts:83](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L83) diff --git a/packages/nibijs/docs/interfaces/MsgExitPoolEncodeObject.md b/packages/nibijs/docs/interfaces/MsgExitPoolEncodeObject.md index b5d58bb2..f5cd1a16 100644 --- a/packages/nibijs/docs/interfaces/MsgExitPoolEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgExitPoolEncodeObject.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / MsgExitPoolEncodeObject +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / MsgExitPoolEncodeObject # Interface: MsgExitPoolEncodeObject @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/spot.ts:43](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L43) +[msg/spot.ts:43](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L43) --- @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/spot.ts:44](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L44) +[msg/spot.ts:44](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L44) diff --git a/packages/nibijs/docs/interfaces/MsgJoinPoolEncodeObject.md b/packages/nibijs/docs/interfaces/MsgJoinPoolEncodeObject.md index e9de4d34..fe4bb1ff 100644 --- a/packages/nibijs/docs/interfaces/MsgJoinPoolEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgJoinPoolEncodeObject.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / MsgJoinPoolEncodeObject +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / MsgJoinPoolEncodeObject # Interface: MsgJoinPoolEncodeObject @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/spot.ts:35](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L35) +[msg/spot.ts:35](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L35) --- @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/spot.ts:36](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L36) +[msg/spot.ts:36](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L36) diff --git a/packages/nibijs/docs/interfaces/MsgMultiLiquidateEncodeObject.md b/packages/nibijs/docs/interfaces/MsgMultiLiquidateEncodeObject.md index 665e3994..ea93c33d 100644 --- a/packages/nibijs/docs/interfaces/MsgMultiLiquidateEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgMultiLiquidateEncodeObject.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / MsgMultiLiquidateEncodeObject +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / MsgMultiLiquidateEncodeObject # Interface: MsgMultiLiquidateEncodeObject @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:55](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L55) +[msg/perp.ts:55](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L55) --- @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/perp.ts:56](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L56) +[msg/perp.ts:56](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L56) diff --git a/packages/nibijs/docs/interfaces/MsgOpenPositionEncodeObject.md b/packages/nibijs/docs/interfaces/MsgOpenPositionEncodeObject.md index c9aeb2ff..671e9478 100644 --- a/packages/nibijs/docs/interfaces/MsgOpenPositionEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgOpenPositionEncodeObject.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / MsgOpenPositionEncodeObject +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / MsgOpenPositionEncodeObject # Interface: MsgOpenPositionEncodeObject @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:64](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L64) +[msg/perp.ts:64](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L64) --- @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/perp.ts:65](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L65) +[msg/perp.ts:65](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L65) diff --git a/packages/nibijs/docs/interfaces/MsgPartialCloseEncodeObject.md b/packages/nibijs/docs/interfaces/MsgPartialCloseEncodeObject.md index 811febea..36b8879d 100644 --- a/packages/nibijs/docs/interfaces/MsgPartialCloseEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgPartialCloseEncodeObject.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / MsgPartialCloseEncodeObject +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / MsgPartialCloseEncodeObject # Interface: MsgPartialCloseEncodeObject @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:93](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L93) +[msg/perp.ts:93](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L93) --- @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/perp.ts:94](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L94) +[msg/perp.ts:94](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L94) diff --git a/packages/nibijs/docs/interfaces/MsgRemoveMarginEncodeObject.md b/packages/nibijs/docs/interfaces/MsgRemoveMarginEncodeObject.md index dd0a1b79..92543a42 100644 --- a/packages/nibijs/docs/interfaces/MsgRemoveMarginEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgRemoveMarginEncodeObject.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / MsgRemoveMarginEncodeObject +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / MsgRemoveMarginEncodeObject # Interface: MsgRemoveMarginEncodeObject @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:46](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L46) +[msg/perp.ts:46](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L46) --- @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/perp.ts:47](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L47) +[msg/perp.ts:47](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L47) diff --git a/packages/nibijs/docs/interfaces/MsgSwapAssetsEncodeObject.md b/packages/nibijs/docs/interfaces/MsgSwapAssetsEncodeObject.md index 2d91abca..c90c551e 100644 --- a/packages/nibijs/docs/interfaces/MsgSwapAssetsEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgSwapAssetsEncodeObject.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / MsgSwapAssetsEncodeObject +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / MsgSwapAssetsEncodeObject # Interface: MsgSwapAssetsEncodeObject @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/spot.ts:51](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L51) +[msg/spot.ts:51](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L51) --- @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/spot.ts:52](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L52) +[msg/spot.ts:52](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L52) diff --git a/packages/nibijs/docs/interfaces/MsgTypeUrls.md b/packages/nibijs/docs/interfaces/MsgTypeUrls.md index d7872949..de15e132 100644 --- a/packages/nibijs/docs/interfaces/MsgTypeUrls.md +++ b/packages/nibijs/docs/interfaces/MsgTypeUrls.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / MsgTypeUrls +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / MsgTypeUrls # Interface: MsgTypeUrls diff --git a/packages/nibijs/docs/interfaces/OracleExtension.md b/packages/nibijs/docs/interfaces/OracleExtension.md index fe3f5a30..310b5656 100644 --- a/packages/nibijs/docs/interfaces/OracleExtension.md +++ b/packages/nibijs/docs/interfaces/OracleExtension.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / OracleExtension +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / OracleExtension # Interface: OracleExtension @@ -16,4 +16,4 @@ #### Defined in -[query/oracle.ts:37](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/oracle.ts#L37) +[query/oracle.ts:37](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/oracle.ts#L37) diff --git a/packages/nibijs/docs/interfaces/PageRequest.md b/packages/nibijs/docs/interfaces/PageRequest.md index c8bc3462..bb73c827 100644 --- a/packages/nibijs/docs/interfaces/PageRequest.md +++ b/packages/nibijs/docs/interfaces/PageRequest.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / PageRequest +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / PageRequest # Interface: PageRequest @@ -34,7 +34,7 @@ is set. #### Defined in -[query/spot.ts:252](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/spot.ts#L252) +[query/spot.ts:252](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/spot.ts#L252) --- @@ -48,7 +48,7 @@ should be set. #### Defined in -[query/spot.ts:234](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/spot.ts#L234) +[query/spot.ts:234](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/spot.ts#L234) --- @@ -61,7 +61,7 @@ If left empty it will default to a value to be set by each app. #### Defined in -[query/spot.ts:245](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/spot.ts#L245) +[query/spot.ts:245](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/spot.ts#L245) --- @@ -75,7 +75,7 @@ be set. #### Defined in -[query/spot.ts:240](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/spot.ts#L240) +[query/spot.ts:240](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/spot.ts#L240) --- @@ -89,4 +89,4 @@ Since: cosmos-sdk 0.43 #### Defined in -[query/spot.ts:258](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/spot.ts#L258) +[query/spot.ts:258](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/spot.ts#L258) diff --git a/packages/nibijs/docs/interfaces/PerpExtension.md b/packages/nibijs/docs/interfaces/PerpExtension.md index 3d21f133..1455400a 100644 --- a/packages/nibijs/docs/interfaces/PerpExtension.md +++ b/packages/nibijs/docs/interfaces/PerpExtension.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / PerpExtension +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / PerpExtension # Interface: PerpExtension @@ -16,4 +16,4 @@ #### Defined in -[query/perp.ts:24](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/perp.ts#L24) +[query/perp.ts:24](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/perp.ts#L24) diff --git a/packages/nibijs/docs/interfaces/SpotExtension.md b/packages/nibijs/docs/interfaces/SpotExtension.md index 902ca879..fe9e7e77 100644 --- a/packages/nibijs/docs/interfaces/SpotExtension.md +++ b/packages/nibijs/docs/interfaces/SpotExtension.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / SpotExtension +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / SpotExtension # Interface: SpotExtension @@ -16,4 +16,4 @@ #### Defined in -[query/spot.ts:58](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/spot.ts#L58) +[query/spot.ts:58](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/spot.ts#L58) diff --git a/packages/nibijs/docs/interfaces/SudoExtension.md b/packages/nibijs/docs/interfaces/SudoExtension.md index ba13f45f..cab8b898 100644 --- a/packages/nibijs/docs/interfaces/SudoExtension.md +++ b/packages/nibijs/docs/interfaces/SudoExtension.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / SudoExtension +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / SudoExtension # Interface: SudoExtension @@ -16,4 +16,4 @@ #### Defined in -[query/sudo.ts:9](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/sudo.ts#L9) +[query/sudo.ts:9](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/sudo.ts#L9) diff --git a/packages/nibijs/docs/interfaces/TxLog.md b/packages/nibijs/docs/interfaces/TxLog.md index c9cd69ad..6393510e 100644 --- a/packages/nibijs/docs/interfaces/TxLog.md +++ b/packages/nibijs/docs/interfaces/TxLog.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / TxLog +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / TxLog # Interface: TxLog @@ -16,4 +16,4 @@ #### Defined in -[chain/types.ts:41](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/types.ts#L41) +[chain/types.ts:41](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/types.ts#L41) diff --git a/packages/nibijs/docs/interfaces/TxMessage.md b/packages/nibijs/docs/interfaces/TxMessage.md index 561d5688..94b71d5d 100644 --- a/packages/nibijs/docs/interfaces/TxMessage.md +++ b/packages/nibijs/docs/interfaces/TxMessage.md @@ -1,4 +1,4 @@ -[NibiJS Documentation - v0.21.42](../intro.md) / [Exports](../modules.md) / TxMessage +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / TxMessage # Interface: TxMessage diff --git a/packages/nibijs/docs/modules.md b/packages/nibijs/docs/modules.md index 0d44de09..0a384c6c 100644 --- a/packages/nibijs/docs/modules.md +++ b/packages/nibijs/docs/modules.md @@ -1,6 +1,6 @@ -[NibiJS Documentation - v0.21.42](intro.md) / Exports +[NibiJS Documentation - v0.21.43](intro.md) / Exports -# NibiJS Documentation - v0.21.42 +# NibiJS Documentation - v0.21.43 ## Table of contents @@ -74,6 +74,7 @@ - [Devnet](modules.md#devnet) - [IncentivizedTestnet](modules.md#incentivizedtestnet) +- [Mainnet](modules.md#mainnet) - [Testnet](modules.md#testnet) - [assert](modules.md#assert) - [assertExpectedError](modules.md#assertexpectederror) @@ -128,7 +129,7 @@ #### Defined in -[query/query.ts:32](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/query.ts#L32) +[query/query.ts:32](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/query.ts#L32) ## Variables @@ -146,7 +147,7 @@ #### Defined in -[testutil.ts:19](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/testutil.ts#L19) +[testutil.ts:19](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L19) --- @@ -156,7 +157,7 @@ #### Defined in -[chain/parse.ts:2](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/parse.ts#L2) +[chain/parse.ts:2](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/parse.ts#L2) --- @@ -171,7 +172,7 @@ controllable, isolated development environment for testing purposes. #### Defined in -[chain/chain.ts:93](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L93) +[chain/chain.ts:102](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L102) --- @@ -181,7 +182,7 @@ controllable, isolated development environment for testing purposes. #### Defined in -[msg/index.ts:9](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/index.ts#L9) +[msg/index.ts:9](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/index.ts#L9) --- @@ -203,7 +204,7 @@ controllable, isolated development environment for testing purposes. #### Defined in -[msg/perp.ts:16](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L16) +[msg/perp.ts:16](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L16) --- @@ -222,7 +223,7 @@ controllable, isolated development environment for testing purposes. #### Defined in -[msg/spot.ts:12](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L12) +[msg/spot.ts:12](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L12) --- @@ -234,7 +235,7 @@ Address for the wallet of the default validator on localnet" #### Defined in -[testutil.ts:16](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/testutil.ts#L16) +[testutil.ts:16](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L16) --- @@ -250,7 +251,7 @@ Localnet #### Defined in -[testutil.ts:8](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/testutil.ts#L8) +[testutil.ts:8](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L8) --- @@ -262,7 +263,7 @@ Mnemonic for the wallet of the default validator on localnet" #### Defined in -[testutil.ts:11](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/testutil.ts#L11) +[testutil.ts:11](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L11) --- @@ -272,7 +273,7 @@ Mnemonic for the wallet of the default validator on localnet" #### Defined in -[tx/txClient.ts:31](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/txClient.ts#L31) +[tx/txClient.ts:31](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/txClient.ts#L31) --- @@ -282,7 +283,7 @@ Mnemonic for the wallet of the default validator on localnet" #### Defined in -[msg/perp.ts:26](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L26) +[msg/perp.ts:26](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L26) --- @@ -292,7 +293,7 @@ Mnemonic for the wallet of the default validator on localnet" #### Defined in -[msg/spot.ts:19](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L19) +[msg/spot.ts:19](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L19) ## Functions @@ -316,7 +317,7 @@ dev team to live-test new features before official public release. #### Defined in -[chain/chain.ts:132](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L132) +[chain/chain.ts:141](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L141) --- @@ -345,7 +346,31 @@ Testnet - Permanent Nibiru public test network. #### Defined in -[chain/chain.ts:114](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L114) +[chain/chain.ts:123](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L123) + +--- + +### Mainnet + +▸ **Mainnet**(`chainNumber?`): [`CustomChain`](classes/CustomChain.md) + +Mainnet: "Chain" configuration for the Nibiru "mainnet". +❗ Mainnet uses real funds. For more info, see +Nibiru Networks. + +#### Parameters + +| Name | Type | Default value | +| :------------ | :------- | :------------ | +| `chainNumber` | `number` | `1` | + +#### Returns + +[`CustomChain`](classes/CustomChain.md) + +#### Defined in + +[chain/chain.ts:152](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L152) --- @@ -358,9 +383,8 @@ networks that are upgraded in advance of Nibiru's mainnet network as a beta-testing environments. For an updated list of active networks, see: -TODO: Add networks link -- Networks | Nibiru Docs (Recommended) +- Nibiru Networks | Nibiru Docs (Recommended) - NibiruChain/Networks (GitHub) By default, the "Testnet" function returns the permanent testnet if no @@ -378,7 +402,7 @@ arguments are passed. #### Defined in -[chain/chain.ts:114](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L114) +[chain/chain.ts:123](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L123) --- @@ -404,7 +428,7 @@ an "AssertionError" is thrown with an optional custom message. #### Defined in -[chain/types.ts:14](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/types.ts#L14) +[chain/types.ts:14](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/types.ts#L14) --- @@ -431,7 +455,7 @@ expectation that the error message is contained within the list of acceptable er #### Defined in -[testutil.ts:100](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/testutil.ts#L100) +[testutil.ts:100](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L100) --- @@ -456,7 +480,7 @@ contained in `events`. #### Defined in -[testutil.ts:82](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/testutil.ts#L82) +[testutil.ts:82](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L82) --- @@ -480,7 +504,7 @@ Asserts that a list of ABCIEvents contains a specific type of `TxMsg`. This #### Defined in -[testutil.ts:63](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/testutil.ts#L63) +[testutil.ts:63](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L63) --- @@ -503,7 +527,7 @@ assertValidBlock: Performs runtime type validation on a CometBFT "Block". #### Defined in -[testutil.ts:49](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/testutil.ts#L49) +[testutil.ts:49](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L49) --- @@ -525,7 +549,7 @@ Validates that block queried via the JSON RPC client has the expected fields. #### Defined in -[testutil.ts:26](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/testutil.ts#L26) +[testutil.ts:26](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L26) --- @@ -555,7 +579,7 @@ Thus, a byte value of 9 is represented as "09". #### Defined in -[hash.ts:14](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/hash.ts#L14) +[hash.ts:14](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/hash.ts#L14) --- @@ -579,7 +603,7 @@ a ChainIdParts object #### Defined in -[chain/chain.ts:166](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L166) +[chain/chain.ts:186](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L186) --- @@ -601,7 +625,7 @@ eventToMap: Converts an ABCIEvent into an EventMap. #### Defined in -[tx/event.ts:44](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/event.ts#L44) +[tx/event.ts:44](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/event.ts#L44) --- @@ -623,7 +647,7 @@ Constructs a faucet URL from a Chain object. #### Defined in -[chain/useFaucet.ts:59](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/useFaucet.ts#L59) +[chain/useFaucet.ts:59](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/useFaucet.ts#L59) --- @@ -647,7 +671,7 @@ events of known type are present. #### Defined in -[tx/event.ts:54](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/event.ts#L54) +[tx/event.ts:54](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/event.ts#L54) --- @@ -687,7 +711,7 @@ the human-readbale Dec. #### Defined in -[chain/parse.ts:113](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/parse.ts#L113) +[chain/parse.ts:113](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/parse.ts#L113) --- @@ -707,7 +731,7 @@ the human-readbale Dec. #### Defined in -[chain/parse.ts:166](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/parse.ts#L166) +[chain/parse.ts:166](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/parse.ts#L166) --- @@ -721,7 +745,7 @@ the human-readbale Dec. #### Defined in -[tx/signer.ts:19](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/signer.ts#L19) +[tx/signer.ts:19](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/signer.ts#L19) --- @@ -775,7 +799,7 @@ if (result.isOk()) { #### Defined in -[hash.ts:51](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/hash.ts#L51) +[hash.ts:51](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/hash.ts#L51) --- @@ -795,7 +819,7 @@ if (result.isOk()) { #### Defined in -[msg/perp.ts:41](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L41) +[msg/perp.ts:41](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L41) --- @@ -815,7 +839,7 @@ if (result.isOk()) { #### Defined in -[msg/perp.ts:77](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L77) +[msg/perp.ts:77](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L77) --- @@ -835,7 +859,7 @@ if (result.isOk()) { #### Defined in -[msg/spot.ts:31](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L31) +[msg/spot.ts:31](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L31) --- @@ -855,7 +879,7 @@ if (result.isOk()) { #### Defined in -[msg/perp.ts:86](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L86) +[msg/perp.ts:86](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L86) --- @@ -875,7 +899,7 @@ if (result.isOk()) { #### Defined in -[msg/spot.ts:47](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L47) +[msg/spot.ts:47](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L47) --- @@ -895,7 +919,7 @@ if (result.isOk()) { #### Defined in -[msg/spot.ts:39](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L39) +[msg/spot.ts:39](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L39) --- @@ -915,7 +939,7 @@ if (result.isOk()) { #### Defined in -[msg/perp.ts:59](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L59) +[msg/perp.ts:59](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L59) --- @@ -935,7 +959,7 @@ if (result.isOk()) { #### Defined in -[msg/perp.ts:68](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L68) +[msg/perp.ts:68](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L68) --- @@ -955,7 +979,7 @@ if (result.isOk()) { #### Defined in -[msg/perp.ts:97](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L97) +[msg/perp.ts:97](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L97) --- @@ -975,7 +999,7 @@ if (result.isOk()) { #### Defined in -[msg/perp.ts:50](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/perp.ts#L50) +[msg/perp.ts:50](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/perp.ts#L50) --- @@ -995,7 +1019,7 @@ if (result.isOk()) { #### Defined in -[msg/spot.ts:55](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/msg/spot.ts#L55) +[msg/spot.ts:55](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/msg/spot.ts#L55) --- @@ -1018,7 +1042,7 @@ the network and endpoint are active. #### Defined in -[chain/chain.ts:156](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L156) +[chain/chain.ts:176](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L176) --- @@ -1038,7 +1062,7 @@ the network and endpoint are active. #### Defined in -[chain/types.ts:32](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/types.ts#L32) +[chain/types.ts:32](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/types.ts#L32) --- @@ -1065,7 +1089,7 @@ A wallet for protobuf based signing using SIGN_MODE_DIRECT. #### Defined in -[tx/signer.ts:45](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/signer.ts#L45) +[tx/signer.ts:45](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/signer.ts#L45) --- @@ -1092,7 +1116,7 @@ A wallet for protobuf based signing using SIGN_MODE_DIRECT #### Defined in -[tx/signer.ts:29](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/signer.ts#L29) +[tx/signer.ts:29](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/signer.ts#L29) --- @@ -1116,7 +1140,7 @@ have type "Error" since it's perfectly valid to throw strings or `undefined`. #### Defined in -[result.ts:75](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/result.ts#L75) +[result.ts:75](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/result.ts#L75) --- @@ -1146,7 +1170,7 @@ const eventLogs = parseEventLogs(txResp) #### Defined in -[tx/event.ts:67](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/tx/event.ts#L67) +[tx/event.ts:67](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/tx/event.ts#L67) --- @@ -1166,7 +1190,7 @@ const eventLogs = parseEventLogs(txResp) #### Defined in -[chain/chain.ts:139](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/chain.ts#L139) +[chain/chain.ts:159](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L159) --- @@ -1186,7 +1210,7 @@ const eventLogs = parseEventLogs(txResp) #### Defined in -[query/epochs.ts:19](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/epochs.ts#L19) +[query/epochs.ts:19](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/epochs.ts#L19) --- @@ -1206,7 +1230,7 @@ const eventLogs = parseEventLogs(txResp) #### Defined in -[query/inflation.ts:29](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/inflation.ts#L29) +[query/inflation.ts:29](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/inflation.ts#L29) --- @@ -1226,7 +1250,7 @@ const eventLogs = parseEventLogs(txResp) #### Defined in -[query/oracle.ts:91](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/oracle.ts#L91) +[query/oracle.ts:91](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/oracle.ts#L91) --- @@ -1246,7 +1270,7 @@ const eventLogs = parseEventLogs(txResp) #### Defined in -[query/perp.ts:45](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/perp.ts#L45) +[query/perp.ts:45](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/perp.ts#L45) --- @@ -1266,7 +1290,7 @@ const eventLogs = parseEventLogs(txResp) #### Defined in -[query/spot.ts:102](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/spot.ts#L102) +[query/spot.ts:102](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/spot.ts#L102) --- @@ -1286,7 +1310,7 @@ const eventLogs = parseEventLogs(txResp) #### Defined in -[query/sudo.ts:14](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/sudo.ts#L14) +[query/sudo.ts:14](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/sudo.ts#L14) --- @@ -1333,7 +1357,7 @@ sdk.Dec protobuf string into a number. #### Defined in -[chain/parse.ts:30](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/parse.ts#L30) +[chain/parse.ts:30](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/parse.ts#L30) --- @@ -1353,7 +1377,7 @@ sdk.Dec protobuf string into a number. #### Defined in -[chain/parse.ts:164](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/parse.ts#L164) +[chain/parse.ts:164](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/parse.ts#L164) --- @@ -1373,7 +1397,7 @@ sdk.Dec protobuf string into a number. #### Defined in -[query/spot.ts:49](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/spot.ts#L49) +[query/spot.ts:49](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/spot.ts#L49) --- @@ -1393,7 +1417,7 @@ sdk.Dec protobuf string into a number. #### Defined in -[query/spot.ts:41](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/query/spot.ts#L41) +[query/spot.ts:41](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/query/spot.ts#L41) --- @@ -1422,4 +1446,4 @@ Sends 11 NIBI, 100 NUSD, and 100 USDT to the given address from the testnet fauc #### Defined in -[chain/useFaucet.ts:7](https://github.com/NibiruChain/ts-sdk/blob/d8a549e/packages/nibijs/src/chain/useFaucet.ts#L7) +[chain/useFaucet.ts:7](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/useFaucet.ts#L7) diff --git a/packages/nibijs/package.json b/packages/nibijs/package.json index a13ba8ac..4c31c61a 100644 --- a/packages/nibijs/package.json +++ b/packages/nibijs/package.json @@ -9,11 +9,11 @@ "dist" ], "scripts": { - "build": "rm -f tsconfig.tsbuildinfo && tsc --build && yarn docgen:changes", + "build": "rm -f tsconfig.tsbuildinfo && tsc --build && yarn docgen", "build:watch": "tsc --build --watch", "clean": "tsc --clean", "docgen": "yarn run typedoc --tsconfig tsconfig.json --plugin typedoc-plugin-markdown", - "docgen:changes": "git diff-index --name-only HEAD -- | grep -q \"packages/nibijs/src\" && yarn docgen || true", + "docgen:changes": "git diff-index --name-only origin/HEAD -- | grep -q \"packages/nibijs/src\" && yarn docgen || true", "test": "jest", "test:watch": "jest --watch", "coverage": "jest --coverage" diff --git a/packages/nibijs/src/chain/chain.ts b/packages/nibijs/src/chain/chain.ts index 3705b9da..758bd116 100644 --- a/packages/nibijs/src/chain/chain.ts +++ b/packages/nibijs/src/chain/chain.ts @@ -17,6 +17,10 @@ export interface Chain { endptRest: string /** endptGrpc: endpoint for the gRPC gateway. Usually on port 9090. */ endptGrpc: string + /** endptHm: endpoint for the heart monitor. */ + endptHm: string + /** endptWs: endpoint for the web socket. */ + endptWs: string /** chainId: identifier for the chain */ chainId: string /** chainName: the name of the chain to display to the user */ @@ -25,6 +29,15 @@ export interface Chain { feeDenom: string } +/** ChainIdParts: An object mapping to the standard strucutre of Nibiru Chain + * identifier. Generally, the CometBFT RPC, gRPC, and REST endpoints can be + * deduced from `ChainIdParts`. + * @example + * let chain: ChainIdParts = { + * shortName: "cataclysm", number: 1, mainnet: true, + * } + * chain = { prefix: "nibiru", shortName: "testnet", number: 1 } + * */ export interface ChainIdParts { prefix?: string // e.g. `nibiru` shortName: string // e.g. `testnet` @@ -37,11 +50,11 @@ export interface ChainIdParts { * * @example * ```ts - * export const TEST_CHAIN = new CustomChain({ + * export const chain = new CustomChain({ * prefix: "nibiru", * shortName: "testnet", * number: 1, - * }) // v0.19.2 + * }) * ``` */ export class CustomChain implements Chain { @@ -50,6 +63,8 @@ export class CustomChain implements Chain { public readonly endptTm: string public readonly endptRest: string public readonly endptGrpc: string + public readonly endptHm: string + public readonly endptWs: string public readonly feeDenom = "unibi" private readonly chainIdParts: ChainIdParts @@ -66,6 +81,8 @@ export class CustomChain implements Chain { this.endptTm = `https://rpc${chainEndpt}.nibiru.fi` this.endptRest = `https://lcd${chainEndpt}.nibiru.fi` this.endptGrpc = `grpc${chainEndpt}.nibiru.fi` + this.endptHm = `https://hm-graphql${chainEndpt}.nibiru.fi/query` + this.endptWs = `wss://hm-graphql${chainEndpt}.nibiru.fi/query` } public static fromChainId(chainId: string): Chain { @@ -94,6 +111,8 @@ export const Localnet: Chain = { endptTm: "http://127.0.0.1:26657", endptRest: "http://127.0.0.1:1317", endptGrpc: "http://127.0.0.1:9090", + endptHm: "http://127.0.0.1:443/query", + endptWs: "ws://127.0.0.1:443/query", chainId: "nibiru-localnet-0", chainName: "Nibiru Localnet (Default)", feeDenom: "unibi", @@ -104,8 +123,8 @@ export const Localnet: Chain = { * beta-testing environments. * * For an updated list of active networks, see: - * TODO: Add networks link - * - Networks | Nibiru Docs (Recommended) + * + * - Nibiru Networks | Nibiru Docs (Recommended) * - NibiruChain/Networks (GitHub) * * By default, the "Testnet" function returns the permanent testnet if no @@ -136,6 +155,17 @@ export const Devnet = (chainNumber: number) => number: chainNumber, }) +/** Mainnet: "Chain" configuration for the Nibiru "mainnet". + * ❗ Mainnet uses real funds. For more info, see + * Nibiru Netwokrs. + * */ +export const Mainnet = (chainNumber: number = 1) => + new CustomChain({ + shortName: "cataclysm", + number: chainNumber, + mainnet: true, + }) + export const queryChainIdWithRest = async ( chain: Chain ): Promise> => { diff --git a/packages/nibijs/src/test/chain.test.ts b/packages/nibijs/src/test/chain.test.ts index 017feec0..6e66314a 100644 --- a/packages/nibijs/src/test/chain.test.ts +++ b/packages/nibijs/src/test/chain.test.ts @@ -13,6 +13,7 @@ import { newCoinMapFromCoins, queryChainIdWithRest, toSdkDec, + Mainnet, } from "../chain" import { TEST_CHAIN } from "../testutil" import { NibiruTxClient } from "../tx/txClient" @@ -32,14 +33,22 @@ describe("chain/chain", () => { const expectCreatedChain = ( result: CustomChain, - prefix: string, + shortName: string, num: number ) => { - expect(result.chainId).toEqual(`nibiru-${prefix}-${num}`) - expect(result.chainName).toEqual(`nibiru-${prefix}-${num}`) - expect(result.endptGrpc).toEqual(`grpc.${prefix}-${num}.nibiru.fi`) - expect(result.endptRest).toEqual(`https://lcd.${prefix}-${num}.nibiru.fi`) - expect(result.endptTm).toEqual(`https://rpc.${prefix}-${num}.nibiru.fi`) + expect(result.chainId).toEqual(`nibiru-${shortName}-${num}`) + expect(result.chainName).toEqual(`nibiru-${shortName}-${num}`) + expect(result.endptGrpc).toEqual(`grpc.${shortName}-${num}.nibiru.fi`) + expect(result.endptRest).toEqual( + `https://lcd.${shortName}-${num}.nibiru.fi` + ) + expect(result.endptTm).toEqual(`https://rpc.${shortName}-${num}.nibiru.fi`) + expect(result.endptHm).toEqual( + `https://hm-graphql.${shortName}-${num}.nibiru.fi/query` + ) + expect(result.endptWs).toEqual( + `wss://hm-graphql.${shortName}-${num}.nibiru.fi/query` + ) expect(result.feeDenom).toEqual(`unibi`) } @@ -56,18 +65,16 @@ describe("chain/chain", () => { }) test("Mainnet", () => { + const result = Mainnet() const shortName = "cataclysm" const number = 1 - const result = new CustomChain({ - shortName, - number, - mainnet: true, - }) expect(result.chainId).toEqual(`${shortName}-${number}`) expect(result.chainName).toEqual(`${shortName}-${number}`) expect(result.endptGrpc).toEqual(`grpc.nibiru.fi`) expect(result.endptRest).toEqual(`https://lcd.nibiru.fi`) expect(result.endptTm).toEqual(`https://rpc.nibiru.fi`) + expect(result.endptHm).toEqual(`https://hm-graphql.nibiru.fi/query`) + expect(result.endptWs).toEqual(`wss://hm-graphql.nibiru.fi/query`) expect(result.feeDenom).toEqual(`unibi`) }) @@ -82,6 +89,8 @@ describe("chain/chain", () => { endptTm: "", endptRest: "", endptGrpc: "", + endptHm: "", + endptWs: "", chainId: "chain-id", chainName: "inactive-chain", feeDenom: "unibi", diff --git a/packages/nibijs/src/test/faucet.test.ts b/packages/nibijs/src/test/faucet.test.ts index 90ada00e..7f0cc208 100644 --- a/packages/nibijs/src/test/faucet.test.ts +++ b/packages/nibijs/src/test/faucet.test.ts @@ -61,6 +61,8 @@ describe("useFaucet", () => { endptTm: "", endptRest: "", endptGrpc: "", + endptHm: "", + endptWs: "", chainId: "nibiru-testnet-1", chainName: "", feeDenom: "", @@ -117,6 +119,8 @@ describe("useFaucet", () => { endptTm: "", endptRest: "", endptGrpc: "", + endptHm: "", + endptWs: "", chainId: "nibiru-testnet-1", chainName: "", feeDenom: "",