diff --git a/packages/nibijs/docs/classes/CustomChain.md b/packages/nibijs/docs/classes/CustomChain.md index 56b74f8f..a6652132 100644 --- a/packages/nibijs/docs/classes/CustomChain.md +++ b/packages/nibijs/docs/classes/CustomChain.md @@ -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 @@ -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 @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) --- @@ -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 @@ -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) --- @@ -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) diff --git a/packages/nibijs/docs/classes/MsgFactory.md b/packages/nibijs/docs/classes/MsgFactory.md index 9298d805..4b531290 100644 --- a/packages/nibijs/docs/classes/MsgFactory.md +++ b/packages/nibijs/docs/classes/MsgFactory.md @@ -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) --- @@ -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) diff --git a/packages/nibijs/docs/classes/NibiruQuerier.md b/packages/nibijs/docs/classes/NibiruQuerier.md index caa14cb8..ac4d8a1c 100644 --- a/packages/nibijs/docs/classes/NibiruQuerier.md +++ b/packages/nibijs/docs/classes/NibiruQuerier.md @@ -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 @@ -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) --- @@ -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) --- @@ -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 @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) diff --git a/packages/nibijs/docs/classes/NibiruTxClient.md b/packages/nibijs/docs/classes/NibiruTxClient.md index b222345f..d7af1f21 100644 --- a/packages/nibijs/docs/classes/NibiruTxClient.md +++ b/packages/nibijs/docs/classes/NibiruTxClient.md @@ -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 @@ -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) --- @@ -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 @@ -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) --- @@ -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) --- @@ -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) diff --git a/packages/nibijs/docs/classes/PerpMsgFactory.md b/packages/nibijs/docs/classes/PerpMsgFactory.md index 6b325fa6..47a2f797 100644 --- a/packages/nibijs/docs/classes/PerpMsgFactory.md +++ b/packages/nibijs/docs/classes/PerpMsgFactory.md @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) diff --git a/packages/nibijs/docs/classes/Result.md b/packages/nibijs/docs/classes/Result.md index 0ba15fb8..cae25db0 100644 --- a/packages/nibijs/docs/classes/Result.md +++ b/packages/nibijs/docs/classes/Result.md @@ -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 @@ -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) --- @@ -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 @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) diff --git a/packages/nibijs/docs/classes/SpotMsgFactory.md b/packages/nibijs/docs/classes/SpotMsgFactory.md index 1765746e..0d96cb1c 100644 --- a/packages/nibijs/docs/classes/SpotMsgFactory.md +++ b/packages/nibijs/docs/classes/SpotMsgFactory.md @@ -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) --- @@ -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) --- @@ -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) --- @@ -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) diff --git a/packages/nibijs/docs/classes/StableSwap.md b/packages/nibijs/docs/classes/StableSwap.md index 1e66e19c..c688dbe1 100644 --- a/packages/nibijs/docs/classes/StableSwap.md +++ b/packages/nibijs/docs/classes/StableSwap.md @@ -54,7 +54,7 @@ Constructor: #### Defined in -[stableswap/stableswap.ts:25](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/stableswap/stableswap.ts#L25) +[stableswap/stableswap.ts:25](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/stableswap/stableswap.ts#L20) +[stableswap/stableswap.ts:20](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/stableswap/stableswap.ts#L23) +[stableswap/stableswap.ts:23](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/stableswap/stableswap.ts#L21) +[stableswap/stableswap.ts:21](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/stableswap/stableswap.ts#L22) +[stableswap/stableswap.ts:22](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/stableswap/stableswap.ts#L54) +[stableswap/stableswap.ts:54](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/stableswap/stableswap.ts#L143) +[stableswap/stableswap.ts:143](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/stableswap/stableswap.ts#L41) +[stableswap/stableswap.ts:41](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/stableswap/stableswap.ts#L41) --- @@ -201,4 +201,4 @@ StableSwap #### Defined in -[stableswap/stableswap.ts:104](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/stableswap/stableswap.ts#L104) +[stableswap/stableswap.ts:104](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 3388f150..e9ac355f 100644 --- a/packages/nibijs/docs/enums/BECH32_PREFIX.md +++ b/packages/nibijs/docs/enums/BECH32_PREFIX.md @@ -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/23db897/packages/nibijs/src/tx/signer.ts#L6) +[tx/signer.ts:6](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/signer.ts#L8) +[tx/signer.ts:8](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/signer.ts#L10) +[tx/signer.ts:10](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/signer.ts#L12) +[tx/signer.ts:12](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/signer.ts#L14) +[tx/signer.ts:14](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/signer.ts#L16) +[tx/signer.ts:16](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/tx/signer.ts#L16) diff --git a/packages/nibijs/docs/enums/Signer.md b/packages/nibijs/docs/enums/Signer.md index b8af40b4..2576fd1e 100644 --- a/packages/nibijs/docs/enums/Signer.md +++ b/packages/nibijs/docs/enums/Signer.md @@ -17,7 +17,7 @@ #### Defined in -[tx/signer.ts:53](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/tx/signer.ts#L53) +[tx/signer.ts:53](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/tx/signer.ts#L53) --- @@ -27,4 +27,4 @@ #### Defined in -[tx/signer.ts:52](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/tx/signer.ts#L52) +[tx/signer.ts:52](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/tx/signer.ts#L52) diff --git a/packages/nibijs/docs/interfaces/ABCIEvent.md b/packages/nibijs/docs/interfaces/ABCIEvent.md index 198bef8f..4df3b869 100644 --- a/packages/nibijs/docs/interfaces/ABCIEvent.md +++ b/packages/nibijs/docs/interfaces/ABCIEvent.md @@ -23,7 +23,7 @@ key-value strings of arbitrary data. #### Defined in -[tx/event.ts:23](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/tx/event.ts#L23) +[tx/event.ts:23](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/event.ts#L22) +[tx/event.ts:22](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/tx/event.ts#L22) diff --git a/packages/nibijs/docs/interfaces/Chain.md b/packages/nibijs/docs/interfaces/Chain.md index 85e79403..7c484798 100644 --- a/packages/nibijs/docs/interfaces/Chain.md +++ b/packages/nibijs/docs/interfaces/Chain.md @@ -38,7 +38,7 @@ chainId: identifier for the chain #### Defined in -[chain/chain.ts:21](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/chain/chain.ts#L21) +[chain/chain.ts:21](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L23) +[chain/chain.ts:23](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L19) +[chain/chain.ts:19](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L17) +[chain/chain.ts:17](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L15) +[chain/chain.ts:15](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L25) +[chain/chain.ts:25](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L25) diff --git a/packages/nibijs/docs/interfaces/ChainIdParts.md b/packages/nibijs/docs/interfaces/ChainIdParts.md index 5dd38bce..68bd6f23 100644 --- a/packages/nibijs/docs/interfaces/ChainIdParts.md +++ b/packages/nibijs/docs/interfaces/ChainIdParts.md @@ -2,6 +2,21 @@ # 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/23db897/packages/nibijs/src/chain/chain.ts#L32) +[chain/chain.ts:41](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L41) --- @@ -29,7 +44,7 @@ #### Defined in -[chain/chain.ts:31](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/chain/chain.ts#L31) +[chain/chain.ts:40](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L40) --- @@ -39,7 +54,7 @@ #### Defined in -[chain/chain.ts:29](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/chain/chain.ts#L29) +[chain/chain.ts:38](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L38) --- @@ -49,4 +64,4 @@ #### Defined in -[chain/chain.ts:30](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/chain/chain.ts#L30) +[chain/chain.ts:39](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L39) diff --git a/packages/nibijs/docs/interfaces/EpochsExtension.md b/packages/nibijs/docs/interfaces/EpochsExtension.md index 7d22816a..4a94fda2 100644 --- a/packages/nibijs/docs/interfaces/EpochsExtension.md +++ b/packages/nibijs/docs/interfaces/EpochsExtension.md @@ -16,4 +16,4 @@ #### Defined in -[query/epochs.ts:11](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/query/epochs.ts#L11) +[query/epochs.ts:11](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/query/epochs.ts#L11) diff --git a/packages/nibijs/docs/interfaces/EventAttribute.md b/packages/nibijs/docs/interfaces/EventAttribute.md index 6be4e70a..93c8da6b 100644 --- a/packages/nibijs/docs/interfaces/EventAttribute.md +++ b/packages/nibijs/docs/interfaces/EventAttribute.md @@ -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/23db897/packages/nibijs/src/tx/event.ts#L5) +[tx/event.ts:5](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/event.ts#L6) +[tx/event.ts:6](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/tx/event.ts#L6) diff --git a/packages/nibijs/docs/interfaces/EventMap.md b/packages/nibijs/docs/interfaces/EventMap.md index 6ff8a69f..f3399b10 100644 --- a/packages/nibijs/docs/interfaces/EventMap.md +++ b/packages/nibijs/docs/interfaces/EventMap.md @@ -41,4 +41,4 @@ export interface EventTransfer extends EventMap { #### Defined in -[tx/event.ts:41](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/tx/event.ts#L41) +[tx/event.ts:41](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/tx/event.ts#L41) diff --git a/packages/nibijs/docs/interfaces/InflationExtension.md b/packages/nibijs/docs/interfaces/InflationExtension.md index 7dd76b6a..2f1f642d 100644 --- a/packages/nibijs/docs/interfaces/InflationExtension.md +++ b/packages/nibijs/docs/interfaces/InflationExtension.md @@ -16,4 +16,4 @@ #### Defined in -[query/inflation.ts:19](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/query/inflation.ts#L19) +[query/inflation.ts:19](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/query/inflation.ts#L19) diff --git a/packages/nibijs/docs/interfaces/MsgAddMarginEncodeObject.md b/packages/nibijs/docs/interfaces/MsgAddMarginEncodeObject.md index 6a204e9f..13ff5811 100644 --- a/packages/nibijs/docs/interfaces/MsgAddMarginEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgAddMarginEncodeObject.md @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:37](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/msg/perp.ts#L37) +[msg/perp.ts:37](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L38) +[msg/perp.ts:38](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/perp.ts#L38) diff --git a/packages/nibijs/docs/interfaces/MsgClosePositionEncodeObject.md b/packages/nibijs/docs/interfaces/MsgClosePositionEncodeObject.md index 46a68d78..f5b380fb 100644 --- a/packages/nibijs/docs/interfaces/MsgClosePositionEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgClosePositionEncodeObject.md @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:73](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/msg/perp.ts#L73) +[msg/perp.ts:73](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L74) +[msg/perp.ts:74](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/perp.ts#L74) diff --git a/packages/nibijs/docs/interfaces/MsgCreatePoolEncodeObject.md b/packages/nibijs/docs/interfaces/MsgCreatePoolEncodeObject.md index af96cc3e..a564e5eb 100644 --- a/packages/nibijs/docs/interfaces/MsgCreatePoolEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgCreatePoolEncodeObject.md @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/spot.ts:27](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/msg/spot.ts#L27) +[msg/spot.ts:27](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/spot.ts#L28) +[msg/spot.ts:28](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/spot.ts#L28) diff --git a/packages/nibijs/docs/interfaces/MsgDonateToEcosystemFundEncodeObject.md b/packages/nibijs/docs/interfaces/MsgDonateToEcosystemFundEncodeObject.md index d1b45a98..654e4e7d 100644 --- a/packages/nibijs/docs/interfaces/MsgDonateToEcosystemFundEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgDonateToEcosystemFundEncodeObject.md @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:82](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/msg/perp.ts#L82) +[msg/perp.ts:82](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L83) +[msg/perp.ts:83](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/perp.ts#L83) diff --git a/packages/nibijs/docs/interfaces/MsgExitPoolEncodeObject.md b/packages/nibijs/docs/interfaces/MsgExitPoolEncodeObject.md index 11e25d79..86aaeaf9 100644 --- a/packages/nibijs/docs/interfaces/MsgExitPoolEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgExitPoolEncodeObject.md @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/spot.ts:43](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/msg/spot.ts#L43) +[msg/spot.ts:43](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/spot.ts#L44) +[msg/spot.ts:44](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/spot.ts#L44) diff --git a/packages/nibijs/docs/interfaces/MsgJoinPoolEncodeObject.md b/packages/nibijs/docs/interfaces/MsgJoinPoolEncodeObject.md index 324cb52e..5560923c 100644 --- a/packages/nibijs/docs/interfaces/MsgJoinPoolEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgJoinPoolEncodeObject.md @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/spot.ts:35](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/msg/spot.ts#L35) +[msg/spot.ts:35](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/spot.ts#L36) +[msg/spot.ts:36](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/spot.ts#L36) diff --git a/packages/nibijs/docs/interfaces/MsgMultiLiquidateEncodeObject.md b/packages/nibijs/docs/interfaces/MsgMultiLiquidateEncodeObject.md index cb92a16d..55b711a2 100644 --- a/packages/nibijs/docs/interfaces/MsgMultiLiquidateEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgMultiLiquidateEncodeObject.md @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:55](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/msg/perp.ts#L55) +[msg/perp.ts:55](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L56) +[msg/perp.ts:56](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/perp.ts#L56) diff --git a/packages/nibijs/docs/interfaces/MsgOpenPositionEncodeObject.md b/packages/nibijs/docs/interfaces/MsgOpenPositionEncodeObject.md index 7884c334..0bd35282 100644 --- a/packages/nibijs/docs/interfaces/MsgOpenPositionEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgOpenPositionEncodeObject.md @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:64](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/msg/perp.ts#L64) +[msg/perp.ts:64](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L65) +[msg/perp.ts:65](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/perp.ts#L65) diff --git a/packages/nibijs/docs/interfaces/MsgPartialCloseEncodeObject.md b/packages/nibijs/docs/interfaces/MsgPartialCloseEncodeObject.md index 9f17df84..a0a70a99 100644 --- a/packages/nibijs/docs/interfaces/MsgPartialCloseEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgPartialCloseEncodeObject.md @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:93](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/msg/perp.ts#L93) +[msg/perp.ts:93](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L94) +[msg/perp.ts:94](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/perp.ts#L94) diff --git a/packages/nibijs/docs/interfaces/MsgRemoveMarginEncodeObject.md b/packages/nibijs/docs/interfaces/MsgRemoveMarginEncodeObject.md index 829c0e48..3f72cab1 100644 --- a/packages/nibijs/docs/interfaces/MsgRemoveMarginEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgRemoveMarginEncodeObject.md @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:46](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/msg/perp.ts#L46) +[msg/perp.ts:46](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L47) +[msg/perp.ts:47](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/perp.ts#L47) diff --git a/packages/nibijs/docs/interfaces/MsgSwapAssetsEncodeObject.md b/packages/nibijs/docs/interfaces/MsgSwapAssetsEncodeObject.md index b9d379ee..f5835346 100644 --- a/packages/nibijs/docs/interfaces/MsgSwapAssetsEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgSwapAssetsEncodeObject.md @@ -27,7 +27,7 @@ EncodeObject.typeUrl #### Defined in -[msg/spot.ts:51](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/msg/spot.ts#L51) +[msg/spot.ts:51](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/spot.ts#L52) +[msg/spot.ts:52](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/msg/spot.ts#L52) diff --git a/packages/nibijs/docs/interfaces/OracleExtension.md b/packages/nibijs/docs/interfaces/OracleExtension.md index 937718b8..cd4b43e8 100644 --- a/packages/nibijs/docs/interfaces/OracleExtension.md +++ b/packages/nibijs/docs/interfaces/OracleExtension.md @@ -16,4 +16,4 @@ #### Defined in -[query/oracle.ts:37](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/query/oracle.ts#L37) +[query/oracle.ts:37](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/query/oracle.ts#L37) diff --git a/packages/nibijs/docs/interfaces/PageRequest.md b/packages/nibijs/docs/interfaces/PageRequest.md index 2b6ac590..485ee184 100644 --- a/packages/nibijs/docs/interfaces/PageRequest.md +++ b/packages/nibijs/docs/interfaces/PageRequest.md @@ -34,7 +34,7 @@ is set. #### Defined in -[query/spot.ts:252](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/query/spot.ts#L252) +[query/spot.ts:252](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/spot.ts#L234) +[query/spot.ts:234](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/spot.ts#L245) +[query/spot.ts:245](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/spot.ts#L240) +[query/spot.ts:240](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/spot.ts#L258) +[query/spot.ts:258](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/query/spot.ts#L258) diff --git a/packages/nibijs/docs/interfaces/PerpExtension.md b/packages/nibijs/docs/interfaces/PerpExtension.md index be51c844..ceb7c57d 100644 --- a/packages/nibijs/docs/interfaces/PerpExtension.md +++ b/packages/nibijs/docs/interfaces/PerpExtension.md @@ -16,4 +16,4 @@ #### Defined in -[query/perp.ts:24](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/query/perp.ts#L24) +[query/perp.ts:24](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/query/perp.ts#L24) diff --git a/packages/nibijs/docs/interfaces/SpotExtension.md b/packages/nibijs/docs/interfaces/SpotExtension.md index 58262784..a794ef88 100644 --- a/packages/nibijs/docs/interfaces/SpotExtension.md +++ b/packages/nibijs/docs/interfaces/SpotExtension.md @@ -16,4 +16,4 @@ #### Defined in -[query/spot.ts:58](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/query/spot.ts#L58) +[query/spot.ts:58](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/query/spot.ts#L58) diff --git a/packages/nibijs/docs/interfaces/SudoExtension.md b/packages/nibijs/docs/interfaces/SudoExtension.md index 9dceeb9c..090fa2fb 100644 --- a/packages/nibijs/docs/interfaces/SudoExtension.md +++ b/packages/nibijs/docs/interfaces/SudoExtension.md @@ -16,4 +16,4 @@ #### Defined in -[query/sudo.ts:9](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/query/sudo.ts#L9) +[query/sudo.ts:9](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/query/sudo.ts#L9) diff --git a/packages/nibijs/docs/interfaces/TxLog.md b/packages/nibijs/docs/interfaces/TxLog.md index f5606d6e..028d8dce 100644 --- a/packages/nibijs/docs/interfaces/TxLog.md +++ b/packages/nibijs/docs/interfaces/TxLog.md @@ -16,4 +16,4 @@ #### Defined in -[chain/types.ts:41](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/chain/types.ts#L41) +[chain/types.ts:41](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/types.ts#L41) diff --git a/packages/nibijs/docs/modules.md b/packages/nibijs/docs/modules.md index 69451fca..578b774f 100644 --- a/packages/nibijs/docs/modules.md +++ b/packages/nibijs/docs/modules.md @@ -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/23db897/packages/nibijs/src/query/query.ts#L32) +[query/query.ts:32](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/query/query.ts#L32) ## Variables @@ -146,7 +147,7 @@ #### Defined in -[testutil.ts:19](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/testutil.ts#L19) +[testutil.ts:19](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/testutil.ts#L19) --- @@ -156,7 +157,7 @@ #### Defined in -[chain/parse.ts:2](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/chain/parse.ts#L2) +[chain/parse.ts:2](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L93) +[chain/chain.ts:102](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/index.ts#L9) +[msg/index.ts:9](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L16) +[msg/perp.ts:16](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/spot.ts#L12) +[msg/spot.ts:12](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/testutil.ts#L16) +[testutil.ts:16](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/testutil.ts#L16) --- @@ -250,7 +251,7 @@ Localnet #### Defined in -[testutil.ts:8](https://github.com/NibiruChain/ts-sdk/blob/23db897/packages/nibijs/src/testutil.ts#L8) +[testutil.ts:8](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/testutil.ts#L11) +[testutil.ts:11](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/txClient.ts#L31) +[tx/txClient.ts:31](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L26) +[msg/perp.ts:26](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/spot.ts#L19) +[msg/spot.ts:19](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L132) +[chain/chain.ts:141](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L114) +[chain/chain.ts:123](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 Netwokrs. + +#### 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/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L114) +[chain/chain.ts:123](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/types.ts#L14) +[chain/types.ts:14](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/testutil.ts#L100) +[testutil.ts:100](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/testutil.ts#L82) +[testutil.ts:82](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/testutil.ts#L63) +[testutil.ts:63](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/testutil.ts#L49) +[testutil.ts:49](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/testutil.ts#L26) +[testutil.ts:26](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/hash.ts#L14) +[hash.ts:14](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L166) +[chain/chain.ts:186](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/event.ts#L44) +[tx/event.ts:44](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/useFaucet.ts#L59) +[chain/useFaucet.ts:59](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/event.ts#L54) +[tx/event.ts:54](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/parse.ts#L113) +[chain/parse.ts:113](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/parse.ts#L166) +[chain/parse.ts:166](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/signer.ts#L19) +[tx/signer.ts:19](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/hash.ts#L51) +[hash.ts:51](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L41) +[msg/perp.ts:41](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L77) +[msg/perp.ts:77](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/spot.ts#L31) +[msg/spot.ts:31](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L86) +[msg/perp.ts:86](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/spot.ts#L47) +[msg/spot.ts:47](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/spot.ts#L39) +[msg/spot.ts:39](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L59) +[msg/perp.ts:59](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L68) +[msg/perp.ts:68](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L97) +[msg/perp.ts:97](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/perp.ts#L50) +[msg/perp.ts:50](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/msg/spot.ts#L55) +[msg/spot.ts:55](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L156) +[chain/chain.ts:176](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/types.ts#L32) +[chain/types.ts:32](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/signer.ts#L45) +[tx/signer.ts:45](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/signer.ts#L29) +[tx/signer.ts:29](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/result.ts#L75) +[result.ts:75](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/tx/event.ts#L67) +[tx/event.ts:67](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/chain.ts#L139) +[chain/chain.ts:159](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/epochs.ts#L19) +[query/epochs.ts:19](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/inflation.ts#L29) +[query/inflation.ts:29](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/oracle.ts#L91) +[query/oracle.ts:91](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/perp.ts#L45) +[query/perp.ts:45](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/spot.ts#L102) +[query/spot.ts:102](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/sudo.ts#L14) +[query/sudo.ts:14](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/parse.ts#L30) +[chain/parse.ts:30](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/parse.ts#L164) +[chain/parse.ts:164](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/spot.ts#L49) +[query/spot.ts:49](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/query/spot.ts#L41) +[query/spot.ts:41](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/23db897/packages/nibijs/src/chain/useFaucet.ts#L7) +[chain/useFaucet.ts:7](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/useFaucet.ts#L7) diff --git a/packages/nibijs/src/chain/chain.ts b/packages/nibijs/src/chain/chain.ts index 3705b9da..f6d5ed4f 100644 --- a/packages/nibijs/src/chain/chain.ts +++ b/packages/nibijs/src/chain/chain.ts @@ -25,6 +25,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 +46,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 + * }) // v0.21.43 * ``` */ export class CustomChain implements Chain { @@ -104,8 +113,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 +145,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..4d81ed26 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" @@ -56,13 +57,9 @@ 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`)