From e4d449a6009827dbb999b414a40c9b269948b43e Mon Sep 17 00:00:00 2001 From: Unique-Divine Date: Wed, 13 Dec 2023 01:37:46 -0600 Subject: [PATCH] PR comments --- packages/examples/package.json | 2 +- packages/nibijs/docs/classes/CustomChain.md | 46 +- packages/nibijs/docs/classes/MsgFactory.md | 6 +- packages/nibijs/docs/classes/NibiruQuerier.md | 64 +- .../nibijs/docs/classes/NibiruTxClient.md | 44 +- .../nibijs/docs/classes/PerpMsgFactory.md | 68 +- packages/nibijs/docs/classes/Result.md | 56 +- .../nibijs/docs/classes/SpotMsgFactory.md | 30 +- packages/nibijs/docs/classes/StableSwap.md | 66 +- packages/nibijs/docs/enums/BECH32_PREFIX.md | 54 +- packages/nibijs/docs/enums/Signer.md | 10 +- packages/nibijs/docs/interfaces/ABCIEvent.md | 6 +- packages/nibijs/docs/interfaces/Chain.md | 22 +- .../nibijs/docs/interfaces/ChainIdParts.md | 18 +- .../nibijs/docs/interfaces/EpochsExtension.md | 4 +- .../nibijs/docs/interfaces/EventAttribute.md | 6 +- packages/nibijs/docs/interfaces/EventMap.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/OracleExtension.md | 4 +- .../nibijs/docs/interfaces/PageRequest.md | 20 +- .../nibijs/docs/interfaces/PerpExtension.md | 4 +- .../nibijs/docs/interfaces/SpotExtension.md | 4 +- .../nibijs/docs/interfaces/SudoExtension.md | 4 +- packages/nibijs/docs/interfaces/TxLog.md | 2 +- packages/nibijs/docs/modules.md | 580 +++++++++--------- packages/nibijs/src/chain/chain.ts | 8 +- 37 files changed, 598 insertions(+), 602 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 a6652132..04ac12ad 100644 --- a/packages/nibijs/docs/classes/CustomChain.md +++ b/packages/nibijs/docs/classes/CustomChain.md @@ -12,7 +12,7 @@ export const chain = new CustomChain({ prefix: "nibiru", shortName: "testnet", number: 1, -}) // v0.21.43 +}) ``` ## Implements @@ -48,13 +48,13 @@ export const chain = new CustomChain({ #### Parameters -| Name | Type | -| :------------- | :---------------------------------------------- | +| Name | Type | +| :------ | :------ | | `chainIdParts` | [`ChainIdParts`](../interfaces/ChainIdParts.md) | #### Defined in -[chain/chain.ts:66](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L66) +[chain/chain.ts:66](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L66) ## Properties @@ -70,9 +70,9 @@ chainId: identifier for the chain #### Defined in -[chain/chain.ts:57](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L57) +[chain/chain.ts:57](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L57) ---- +___ ### chainIdParts @@ -80,9 +80,9 @@ chainId: identifier for the chain #### Defined in -[chain/chain.ts:64](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L64) +[chain/chain.ts:64](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L64) ---- +___ ### chainName @@ -96,9 +96,9 @@ chainName: the name of the chain to display to the user #### Defined in -[chain/chain.ts:58](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L58) +[chain/chain.ts:58](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L58) ---- +___ ### endptGrpc @@ -112,9 +112,9 @@ endptGrpc: endpoint for the gRPC gateway. Usually on port 9090. #### Defined in -[chain/chain.ts:61](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L61) +[chain/chain.ts:61](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L61) ---- +___ ### endptRest @@ -128,9 +128,9 @@ endptRest: endpoint for the REST server. Also, the LCD endpoint. #### Defined in -[chain/chain.ts:60](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L60) +[chain/chain.ts:60](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L60) ---- +___ ### endptTm @@ -144,13 +144,13 @@ endptTm: endpoint for the Tendermint RPC server. Usually on port 26657. #### Defined in -[chain/chain.ts:59](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L59) +[chain/chain.ts:59](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L59) ---- +___ ### feeDenom -• `Readonly` **feeDenom**: `"unibi"` +• `Readonly` **feeDenom**: ``"unibi"`` feeDenom: the denomination of the fee to be paid for transactions. @@ -160,7 +160,7 @@ feeDenom: the denomination of the fee to be paid for transactions. #### Defined in -[chain/chain.ts:62](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L62) +[chain/chain.ts:62](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L62) ## Methods @@ -174,9 +174,9 @@ feeDenom: the denomination of the fee to be paid for transactions. #### Defined in -[chain/chain.ts:90](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L90) +[chain/chain.ts:90](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L90) ---- +___ ### fromChainId @@ -184,8 +184,8 @@ feeDenom: the denomination of the fee to be paid for transactions. #### Parameters -| Name | Type | -| :-------- | :------- | +| Name | Type | +| :------ | :------ | | `chainId` | `string` | #### Returns @@ -194,4 +194,4 @@ feeDenom: the denomination of the fee to be paid for transactions. #### Defined in -[chain/chain.ts:80](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L80) +[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 4b531290..5d141c48 100644 --- a/packages/nibijs/docs/classes/MsgFactory.md +++ b/packages/nibijs/docs/classes/MsgFactory.md @@ -27,9 +27,9 @@ #### Defined in -[msg/index.ts:6](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### spot @@ -37,4 +37,4 @@ #### Defined in -[msg/index.ts:5](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 ac4d8a1c..74929de2 100644 --- a/packages/nibijs/docs/classes/NibiruQuerier.md +++ b/packages/nibijs/docs/classes/NibiruQuerier.md @@ -46,11 +46,11 @@ const querier = await NibiruQuerier.connect(chain.endptTm) #### Parameters -| Name | Type | -| :----------- | :---------------------- | -| `tmClient` | `Tendermint37Client` | -| `options` | `StargateClientOptions` | -| `wasmClient` | `CosmWasmClient` | +| Name | Type | +| :------ | :------ | +| `tmClient` | `Tendermint37Client` | +| `options` | `StargateClientOptions` | +| `wasmClient` | `CosmWasmClient` | #### Overrides @@ -58,7 +58,7 @@ StargateClient.constructor #### Defined in -[query/query.ts:66](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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,9 +68,9 @@ StargateClient.constructor #### Defined in -[query/query.ts:53](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### tm @@ -78,9 +78,9 @@ StargateClient.constructor #### Defined in -[query/query.ts:55](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### wasmClient @@ -88,7 +88,7 @@ StargateClient.constructor #### Defined in -[query/query.ts:54](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 @@ -100,7 +100,6 @@ getTxByHash: Query a transaction (tx) using its hexadecial encoded tx hash. A tx hash uniquely identifies a tx on the blockchain. The hex-encoded tx hash is: - - An unambiguous representation of the SHA-256 cryptographic hash in the consensus layer. - Well-suited for human-facing applications, as it is easier to work with @@ -108,8 +107,8 @@ The hex-encoded tx hash is: #### Parameters -| Name | Type | -| :---------- | :------- | +| Name | Type | +| :------ | :------ | | `txHashHex` | `string` | #### Returns @@ -119,16 +118,15 @@ The hex-encoded tx hash is: **`Example`** ```ts -const txHash = - "7A919F2CC9A51B139444F7D8E84A46EEF307E839C6CA914C1A1C594FEF5C1562" +const txHash = "7A919F2CC9A51B139444F7D8E84A46EEF307E839C6CA914C1A1C594FEF5C1562" const txRespResult = await getTxByHash(txHash) ``` #### Defined in -[query/query.ts:122](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### getTxByHashBytes @@ -139,8 +137,8 @@ A tx hash uniquely identifies a tx on the blockchain. #### Parameters -| Name | Type | -| :------- | :----------- | +| Name | Type | +| :------ | :------ | | `txHash` | `Uint8Array` | #### Returns @@ -153,9 +151,9 @@ getTxByHash - Equivalent query using the hex-encoded tx hash string. #### Defined in -[query/query.ts:136](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### waitForHeight @@ -163,8 +161,8 @@ getTxByHash - Equivalent query using the hex-encoded tx hash string. #### Parameters -| Name | Type | -| :------- | :------- | +| Name | Type | +| :------ | :------ | | `height` | `number` | #### Returns @@ -173,9 +171,9 @@ getTxByHash - Equivalent query using the hex-encoded tx hash string. #### Defined in -[query/query.ts:92](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### waitForNextBlock @@ -187,9 +185,9 @@ getTxByHash - Equivalent query using the hex-encoded tx hash string. #### Defined in -[query/query.ts:100](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### connect @@ -197,10 +195,10 @@ getTxByHash - Equivalent query using the hex-encoded tx hash string. #### Parameters -| Name | Type | -| :--------- | :---------------------- | -| `endpoint` | `string` | -| `options` | `StargateClientOptions` | +| Name | Type | +| :------ | :------ | +| `endpoint` | `string` | +| `options` | `StargateClientOptions` | #### Returns @@ -212,4 +210,4 @@ StargateClient.connect #### Defined in -[query/query.ts:57](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 d7af1f21..c014bb49 100644 --- a/packages/nibijs/docs/classes/NibiruTxClient.md +++ b/packages/nibijs/docs/classes/NibiruTxClient.md @@ -33,12 +33,12 @@ #### Parameters -| Name | Type | -| :--------- | :----------------------------- | -| `tmClient` | `Tendermint37Client` | -| `signer` | `OfflineSigner` | -| `options` | `SigningStargateClientOptions` | -| `wasm` | `SigningCosmWasmClient` | +| Name | Type | +| :------ | :------ | +| `tmClient` | `Tendermint37Client` | +| `signer` | `OfflineSigner` | +| `options` | `SigningStargateClientOptions` | +| `wasm` | `SigningCosmWasmClient` | #### Overrides @@ -46,7 +46,7 @@ SigningStargateClient.constructor #### Defined in -[tx/txClient.ts:41](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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,9 +56,9 @@ SigningStargateClient.constructor #### Defined in -[tx/txClient.ts:38](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### wasmClient @@ -66,7 +66,7 @@ SigningStargateClient.constructor #### Defined in -[tx/txClient.ts:39](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 @@ -76,8 +76,8 @@ SigningStargateClient.constructor #### Parameters -| Name | Type | -| :------- | :------- | +| Name | Type | +| :------ | :------ | | `height` | `number` | #### Returns @@ -86,9 +86,9 @@ SigningStargateClient.constructor #### Defined in -[tx/txClient.ts:94](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### waitForNextBlock @@ -100,9 +100,9 @@ SigningStargateClient.constructor #### Defined in -[tx/txClient.ts:102](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### connectWithSigner @@ -110,11 +110,11 @@ SigningStargateClient.constructor #### Parameters -| Name | Type | -| :------------ | :----------------------------- | -| `endpoint` | `string` | -| `signer` | `OfflineSigner` | -| `options` | `SigningStargateClientOptions` | +| Name | Type | +| :------ | :------ | +| `endpoint` | `string` | +| `signer` | `OfflineSigner` | +| `options` | `SigningStargateClientOptions` | | `wasmOptions` | `SigningCosmWasmClientOptions` | #### Returns @@ -127,4 +127,4 @@ SigningStargateClient.connectWithSigner #### Defined in -[tx/txClient.ts:66](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 47a2f797..07453c34 100644 --- a/packages/nibijs/docs/classes/PerpMsgFactory.md +++ b/packages/nibijs/docs/classes/PerpMsgFactory.md @@ -41,8 +41,8 @@ Returns a 'TxMessage' for adding margin to a position #### Parameters -| Name | Type | Description | -| :---- | :------------- | :-------------------- | +| Name | Type | Description | +| :------ | :------ | :------ | | `msg` | `MsgAddMargin` | Message to add margin | #### Returns @@ -55,9 +55,9 @@ Returns a 'TxMessage' for adding margin to a position #### Defined in -[msg/perp.ts:124](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### closePosition @@ -65,8 +65,8 @@ Returns a 'TxMessage' for adding margin to a position #### Parameters -| Name | Type | -| :---- | :----------------- | +| Name | Type | +| :------ | :------ | | `msg` | `MsgClosePosition` | #### Returns @@ -75,9 +75,9 @@ Returns a 'TxMessage' for adding margin to a position #### Defined in -[msg/perp.ts:161](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### donateToPerpEF @@ -85,8 +85,8 @@ Returns a 'TxMessage' for adding margin to a position #### Parameters -| Name | Type | -| :---- | :------------------------- | +| Name | Type | +| :------ | :------ | | `msg` | `MsgDonateToEcosystemFund` | #### Returns @@ -95,9 +95,9 @@ Returns a 'TxMessage' for adding margin to a position #### Defined in -[msg/perp.ts:175](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### liquidate @@ -105,8 +105,8 @@ Returns a 'TxMessage' for adding margin to a position #### Parameters -| Name | Type | -| :---- | :------------------ | +| Name | Type | +| :------ | :------ | | `msg` | `MsgMultiLiquidate` | #### Returns @@ -115,9 +115,9 @@ Returns a 'TxMessage' for adding margin to a position #### Defined in -[msg/perp.ts:131](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### openPosition @@ -125,15 +125,15 @@ Returns a 'TxMessage' for adding margin to a position #### Parameters -| Name | Type | -| :-------------------------- | :-------- | -| `msg` | `Object` | -| `msg.baseAssetAmountLimit?` | `number` | -| `msg.goLong` | `boolean` | -| `msg.leverage` | `number` | -| `msg.pair` | `string` | -| `msg.quoteAssetAmount` | `number` | -| `msg.sender` | `string` | +| Name | Type | +| :------ | :------ | +| `msg` | `Object` | +| `msg.baseAssetAmountLimit?` | `number` | +| `msg.goLong` | `boolean` | +| `msg.leverage` | `number` | +| `msg.pair` | `string` | +| `msg.quoteAssetAmount` | `number` | +| `msg.sender` | `string` | #### Returns @@ -141,9 +141,9 @@ Returns a 'TxMessage' for adding margin to a position #### Defined in -[msg/perp.ts:138](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### partialClosePosition @@ -151,8 +151,8 @@ Returns a 'TxMessage' for adding margin to a position #### Parameters -| Name | Type | -| :---- | :---------------- | +| Name | Type | +| :------ | :------ | | `msg` | `MsgPartialClose` | #### Returns @@ -161,9 +161,9 @@ Returns a 'TxMessage' for adding margin to a position #### Defined in -[msg/perp.ts:168](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### removeMargin @@ -171,8 +171,8 @@ Returns a 'TxMessage' for adding margin to a position #### Parameters -| Name | Type | -| :---- | :---------------- | +| Name | Type | +| :------ | :------ | | `msg` | `MsgRemoveMargin` | #### Returns @@ -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/6e650cb/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 cae25db0..b516a785 100644 --- a/packages/nibijs/docs/classes/Result.md +++ b/packages/nibijs/docs/classes/Result.md @@ -39,8 +39,8 @@ if (res.isOk()) { ## Type parameters | Name | -| :--- | -| `T` | +| :------ | +| `T` | ## Table of contents @@ -69,20 +69,20 @@ if (res.isOk()) { #### Type parameters | Name | -| :--- | -| `T` | +| :------ | +| `T` | #### Parameters -| Name | Type | -| :--------------- | :-------- | -| `«destructured»` | `Object` | -| › `err?` | `unknown` | -| › `ok?` | `T` | +| Name | Type | +| :------ | :------ | +| `«destructured»` | `Object` | +| › `err?` | `unknown` | +| › `ok?` | `T` | #### Defined in -[result.ts:33](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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,9 +92,9 @@ if (res.isOk()) { #### Defined in -[result.ts:32](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/result.ts#L32) +[result.ts:32](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/result.ts#L32) ---- +___ ### ok @@ -102,7 +102,7 @@ if (res.isOk()) { #### Defined in -[result.ts:31](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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,9 +116,9 @@ if (res.isOk()) { #### Defined in -[result.ts:44](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/result.ts#L44) +[result.ts:44](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/result.ts#L44) ---- +___ ### isOk @@ -130,9 +130,9 @@ if (res.isOk()) { #### Defined in -[result.ts:45](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/result.ts#L45) +[result.ts:45](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/result.ts#L45) ---- +___ ### ofSafeExec @@ -143,13 +143,13 @@ Constructor for "Result" using the return value of the input function. #### Type parameters | Name | -| :--- | -| `Y` | +| :------ | +| `Y` | #### Parameters -| Name | Type | -| :--- | :-------------------------- | +| Name | Type | +| :------ | :------ | | `fn` | (...`args`: `any`[]) => `Y` | #### Returns @@ -158,9 +158,9 @@ Constructor for "Result" using the return value of the input function. #### Defined in -[result.ts:48](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/result.ts#L48) +[result.ts:48](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/result.ts#L48) ---- +___ ### ofSafeExecAsync @@ -171,13 +171,13 @@ Constructor for "Result" using the return value of the input async function. #### Type parameters | Name | -| :--- | -| `Y` | +| :------ | +| `Y` | #### Parameters -| Name | Type | -| :--- | :-------------------- | +| Name | Type | +| :------ | :------ | | `fn` | () => `Promise`<`Y`\> | #### Returns @@ -192,4 +192,4 @@ const result = Result.ofSafeExecAsync(async () => someAsyncFunc(args)) #### Defined in -[result.ts:60](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 0d96cb1c..e283ea79 100644 --- a/packages/nibijs/docs/classes/SpotMsgFactory.md +++ b/packages/nibijs/docs/classes/SpotMsgFactory.md @@ -29,8 +29,8 @@ #### Parameters -| Name | Type | -| :---- | :-------------- | +| Name | Type | +| :------ | :------ | | `msg` | `MsgCreatePool` | #### Returns @@ -39,9 +39,9 @@ #### Defined in -[msg/spot.ts:61](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### exitPool @@ -49,8 +49,8 @@ #### Parameters -| Name | Type | -| :--------------- | :------------ | +| Name | Type | +| :------ | :------ | | `«destructured»` | `MsgExitPool` | #### Returns @@ -59,9 +59,9 @@ #### Defined in -[msg/spot.ts:91](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### joinPool @@ -69,8 +69,8 @@ #### Parameters -| Name | Type | -| :--------------- | :------------ | +| Name | Type | +| :------ | :------ | | `«destructured»` | `MsgJoinPool` | #### Returns @@ -79,9 +79,9 @@ #### Defined in -[msg/spot.ts:74](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### swapAssets @@ -89,8 +89,8 @@ #### Parameters -| Name | Type | -| :--------------- | :-------------- | +| Name | Type | +| :------ | :------ | | `«destructured»` | `MsgSwapAssets` | #### Returns @@ -99,4 +99,4 @@ #### Defined in -[msg/spot.ts:102](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 c688dbe1..4cd86952 100644 --- a/packages/nibijs/docs/classes/StableSwap.md +++ b/packages/nibijs/docs/classes/StableSwap.md @@ -46,15 +46,15 @@ Constructor: #### Parameters -| Name | Type | -| :----------------- | :------------ | -| `Amplification` | `BigNumber` | +| Name | Type | +| :------ | :------ | +| `Amplification` | `BigNumber` | | `totalTokenSupply` | `BigNumber`[] | -| `fee` | `BigNumber` | +| `fee` | `BigNumber` | #### Defined in -[stableswap/stableswap.ts:25](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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,9 +64,9 @@ Constructor: #### Defined in -[stableswap/stableswap.ts:20](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### fee @@ -74,9 +74,9 @@ Constructor: #### Defined in -[stableswap/stableswap.ts:23](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### totalTokenSupply @@ -84,9 +84,9 @@ Constructor: #### Defined in -[stableswap/stableswap.ts:21](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### totalTokensInPool @@ -94,7 +94,7 @@ Constructor: #### Defined in -[stableswap/stableswap.ts:22](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 @@ -105,7 +105,7 @@ Constructor: D() D invariant calculation in non-overflowing integer operations iteratively -A _ sum(x_i) _ n**n + D = A _ D _ n**n + D**(n+1) / (n**n \* prod(x_i)) +A * sum(x_i) * n**n + D = A * D * n**n + D**(n+1) / (n**n * prod(x_i)) #### Returns @@ -117,9 +117,9 @@ StableSwap #### Defined in -[stableswap/stableswap.ts:54](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### exchange @@ -129,11 +129,11 @@ exchange() runs a theorhetical Curve StableSwap model to determine impact on tok #### Parameters -| Name | Type | -| :---------- | :---------- | -| `fromIndex` | `number` | -| `toIndex` | `number` | -| `dx` | `BigNumber` | +| Name | Type | +| :------ | :------ | +| `fromIndex` | `number` | +| `toIndex` | `number` | +| `dx` | `BigNumber` | #### Returns @@ -145,9 +145,9 @@ StableSwap #### Defined in -[stableswap/stableswap.ts:143](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### xp @@ -165,9 +165,9 @@ StableSwap #### Defined in -[stableswap/stableswap.ts:41](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### y @@ -178,18 +178,18 @@ 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 + b\*x_1 = c + 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) + x_1 = (x_1**2 + c) / (2*x_1 + b) #### Parameters -| Name | Type | -| :---------- | :---------- | -| `fromIndex` | `number` | -| `toIndex` | `number` | -| `x` | `BigNumber` | +| Name | Type | +| :------ | :------ | +| `fromIndex` | `number` | +| `toIndex` | `number` | +| `x` | `BigNumber` | #### Returns @@ -201,4 +201,4 @@ StableSwap #### Defined in -[stableswap/stableswap.ts:104](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 e9ac355f..9ad7d357 100644 --- a/packages/nibijs/docs/enums/BECH32_PREFIX.md +++ b/packages/nibijs/docs/enums/BECH32_PREFIX.md @@ -1,86 +1,86 @@ -[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / BECH32_PREFIX +[NibiJS Documentation - v0.21.43](../intro.md) / [Exports](../modules.md) / BECH32\_PREFIX -# Enumeration: BECH32_PREFIX +# Enumeration: BECH32\_PREFIX ## Table of contents ### Enumeration Members - [ADDR](BECH32_PREFIX.md#addr) -- [ADDR_VAL](BECH32_PREFIX.md#addr_val) -- [ADDR_VALCONS](BECH32_PREFIX.md#addr_valcons) +- [ADDR\_VAL](BECH32_PREFIX.md#addr_val) +- [ADDR\_VALCONS](BECH32_PREFIX.md#addr_valcons) - [PUB](BECH32_PREFIX.md#pub) -- [PUB_VAL](BECH32_PREFIX.md#pub_val) -- [PUB_VALCONS](BECH32_PREFIX.md#pub_valcons) +- [PUB\_VAL](BECH32_PREFIX.md#pub_val) +- [PUB\_VALCONS](BECH32_PREFIX.md#pub_valcons) ## Enumeration Members ### ADDR -• **ADDR** = `"nibi"` +• **ADDR** = ``"nibi"`` ADDR defines the Bech32 prefix of an account address #### Defined in -[tx/signer.ts:6](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ -### ADDR_VAL +### ADDR\_VAL -• **ADDR_VAL** = `"nibivaloper"` +• **ADDR\_VAL** = ``"nibivaloper"`` 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/6e650cb/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) ---- +___ -### ADDR_VALCONS +### ADDR\_VALCONS -• **ADDR_VALCONS** = `"nibivalcons"` +• **ADDR\_VALCONS** = ``"nibivalcons"`` ADDR_VALCONS defines the Bech32 prefix of a consensus node address #### Defined in -[tx/signer.ts:10](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### PUB -• **PUB** = `"nibipub"` +• **PUB** = ``"nibipub"`` PUB defines the Bech32 prefix of an account's public key #### Defined in -[tx/signer.ts:12](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ -### PUB_VAL +### PUB\_VAL -• **PUB_VAL** = `"nibivaloperpub"` +• **PUB\_VAL** = ``"nibivaloperpub"`` 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/6e650cb/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) ---- +___ -### PUB_VALCONS +### PUB\_VALCONS -• **PUB_VALCONS** = `"nibivalconspub"` +• **PUB\_VALCONS** = ``"nibivalconspub"`` 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/6e650cb/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 2576fd1e..296838cc 100644 --- a/packages/nibijs/docs/enums/Signer.md +++ b/packages/nibijs/docs/enums/Signer.md @@ -13,18 +13,18 @@ ### Direct -• **Direct** = `"direct"` +• **Direct** = ``"direct"`` #### Defined in -[tx/signer.ts:53](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### Keplr -• **Keplr** = `"keplr"` +• **Keplr** = ``"keplr"`` #### Defined in -[tx/signer.ts:52](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 4df3b869..3d357986 100644 --- a/packages/nibijs/docs/interfaces/ABCIEvent.md +++ b/packages/nibijs/docs/interfaces/ABCIEvent.md @@ -23,9 +23,9 @@ key-value strings of arbitrary data. #### Defined in -[tx/event.ts:23](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### type @@ -33,4 +33,4 @@ key-value strings of arbitrary data. #### Defined in -[tx/event.ts:22](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 7c484798..31acb025 100644 --- a/packages/nibijs/docs/interfaces/Chain.md +++ b/packages/nibijs/docs/interfaces/Chain.md @@ -38,9 +38,9 @@ chainId: identifier for the chain #### Defined in -[chain/chain.ts:21](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### chainName @@ -50,9 +50,9 @@ chainName: the name of the chain to display to the user #### Defined in -[chain/chain.ts:23](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### endptGrpc @@ -62,9 +62,9 @@ endptGrpc: endpoint for the gRPC gateway. Usually on port 9090. #### Defined in -[chain/chain.ts:19](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### endptRest @@ -74,9 +74,9 @@ endptRest: endpoint for the REST server. Also, the LCD endpoint. #### Defined in -[chain/chain.ts:17](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### endptTm @@ -86,9 +86,9 @@ endptTm: endpoint for the Tendermint RPC server. Usually on port 26657. #### Defined in -[chain/chain.ts:15](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### feeDenom @@ -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/6e650cb/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 68bd6f23..a133f934 100644 --- a/packages/nibijs/docs/interfaces/ChainIdParts.md +++ b/packages/nibijs/docs/interfaces/ChainIdParts.md @@ -10,9 +10,7 @@ deduced from `ChainIdParts`. ```ts let chain: ChainIdParts = { - shortName: "cataclysm", - number: 1, - mainnet: true, + shortName: "cataclysm", number: 1, mainnet: true, } chain = { prefix: "nibiru", shortName: "testnet", number: 1 } ``` @@ -34,9 +32,9 @@ chain = { prefix: "nibiru", shortName: "testnet", number: 1 } #### Defined in -[chain/chain.ts:41](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L41) +[chain/chain.ts:41](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L41) ---- +___ ### number @@ -44,9 +42,9 @@ chain = { prefix: "nibiru", shortName: "testnet", number: 1 } #### Defined in -[chain/chain.ts:40](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L40) +[chain/chain.ts:40](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L40) ---- +___ ### prefix @@ -54,9 +52,9 @@ chain = { prefix: "nibiru", shortName: "testnet", number: 1 } #### Defined in -[chain/chain.ts:38](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L38) +[chain/chain.ts:38](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L38) ---- +___ ### shortName @@ -64,4 +62,4 @@ chain = { prefix: "nibiru", shortName: "testnet", number: 1 } #### Defined in -[chain/chain.ts:39](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L39) +[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/EpochsExtension.md b/packages/nibijs/docs/interfaces/EpochsExtension.md index 4a94fda2..b09f7ab6 100644 --- a/packages/nibijs/docs/interfaces/EpochsExtension.md +++ b/packages/nibijs/docs/interfaces/EpochsExtension.md @@ -12,8 +12,8 @@ ### epochs -• `Readonly` **epochs**: `Readonly`<{ `currentEpoch`: (`args`: { `identifier`: `string` }) => `Promise`<`QueryCurrentEpochResponse`\> ; `epochsInfo`: () => `Promise`<`QueryEpochsInfoResponse`\> }\> +• `Readonly` **epochs**: `Readonly`<{ `currentEpoch`: (`args`: { `identifier`: `string` }) => `Promise`<`QueryCurrentEpochResponse`\> ; `epochsInfo`: () => `Promise`<`QueryEpochsInfoResponse`\> }\> #### Defined in -[query/epochs.ts:11](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 93c8da6b..f4dfe993 100644 --- a/packages/nibijs/docs/interfaces/EventAttribute.md +++ b/packages/nibijs/docs/interfaces/EventAttribute.md @@ -19,9 +19,9 @@ 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/6e650cb/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) ---- +___ ### value @@ -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/6e650cb/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 f3399b10..51f8c25e 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/6e650cb/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/InflationExtension.md b/packages/nibijs/docs/interfaces/InflationExtension.md index 2f1f642d..fe3bd34d 100644 --- a/packages/nibijs/docs/interfaces/InflationExtension.md +++ b/packages/nibijs/docs/interfaces/InflationExtension.md @@ -12,8 +12,8 @@ ### inflation -• `Readonly` **inflation**: `Readonly`<{ `circulatingSupply`: () => `Promise`<`QueryCirculatingSupplyResponse`\> ; `epochMintProvision`: () => `Promise`<`QueryEpochMintProvisionResponse`\> ; `inflationRate`: () => `Promise`<`QueryInflationRateResponse`\> ; `params`: () => `Promise`<`QueryParamsResponse`\> ; `period`: () => `Promise`<`QueryPeriodResponse`\> ; `skippedEpochs`: () => `Promise`<`QuerySkippedEpochsResponse`\> }\> +• `Readonly` **inflation**: `Readonly`<{ `circulatingSupply`: () => `Promise`<`QueryCirculatingSupplyResponse`\> ; `epochMintProvision`: () => `Promise`<`QueryEpochMintProvisionResponse`\> ; `inflationRate`: () => `Promise`<`QueryInflationRateResponse`\> ; `params`: () => `Promise`<`QueryParamsResponse`\> ; `period`: () => `Promise`<`QueryPeriodResponse`\> ; `skippedEpochs`: () => `Promise`<`QuerySkippedEpochsResponse`\> }\> #### Defined in -[query/inflation.ts:19](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 13ff5811..9bf77cdb 100644 --- a/packages/nibijs/docs/interfaces/MsgAddMarginEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgAddMarginEncodeObject.md @@ -27,9 +27,9 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:37](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### value @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/perp.ts:38](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 f5b380fb..79587b61 100644 --- a/packages/nibijs/docs/interfaces/MsgClosePositionEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgClosePositionEncodeObject.md @@ -27,9 +27,9 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:73](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### value @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/perp.ts:74](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 a564e5eb..f0507c4a 100644 --- a/packages/nibijs/docs/interfaces/MsgCreatePoolEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgCreatePoolEncodeObject.md @@ -27,9 +27,9 @@ EncodeObject.typeUrl #### Defined in -[msg/spot.ts:27](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### value @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/spot.ts:28](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 654e4e7d..ec3adfda 100644 --- a/packages/nibijs/docs/interfaces/MsgDonateToEcosystemFundEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgDonateToEcosystemFundEncodeObject.md @@ -27,9 +27,9 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:82](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### value @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/perp.ts:83](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 86aaeaf9..f161f0c1 100644 --- a/packages/nibijs/docs/interfaces/MsgExitPoolEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgExitPoolEncodeObject.md @@ -27,9 +27,9 @@ EncodeObject.typeUrl #### Defined in -[msg/spot.ts:43](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### value @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/spot.ts:44](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 5560923c..ae6fc8be 100644 --- a/packages/nibijs/docs/interfaces/MsgJoinPoolEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgJoinPoolEncodeObject.md @@ -27,9 +27,9 @@ EncodeObject.typeUrl #### Defined in -[msg/spot.ts:35](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### value @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/spot.ts:36](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 55b711a2..1ad81cb0 100644 --- a/packages/nibijs/docs/interfaces/MsgMultiLiquidateEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgMultiLiquidateEncodeObject.md @@ -27,9 +27,9 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:55](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### value @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/perp.ts:56](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 0bd35282..4b135b25 100644 --- a/packages/nibijs/docs/interfaces/MsgOpenPositionEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgOpenPositionEncodeObject.md @@ -27,9 +27,9 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:64](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### value @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/perp.ts:65](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 a0a70a99..118e8b90 100644 --- a/packages/nibijs/docs/interfaces/MsgPartialCloseEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgPartialCloseEncodeObject.md @@ -27,9 +27,9 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:93](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### value @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/perp.ts:94](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 3f72cab1..741bff41 100644 --- a/packages/nibijs/docs/interfaces/MsgRemoveMarginEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgRemoveMarginEncodeObject.md @@ -27,9 +27,9 @@ EncodeObject.typeUrl #### Defined in -[msg/perp.ts:46](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### value @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/perp.ts:47](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 f5835346..39cfbc9b 100644 --- a/packages/nibijs/docs/interfaces/MsgSwapAssetsEncodeObject.md +++ b/packages/nibijs/docs/interfaces/MsgSwapAssetsEncodeObject.md @@ -27,9 +27,9 @@ EncodeObject.typeUrl #### Defined in -[msg/spot.ts:51](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### value @@ -41,4 +41,4 @@ EncodeObject.value #### Defined in -[msg/spot.ts:52](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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/OracleExtension.md b/packages/nibijs/docs/interfaces/OracleExtension.md index cd4b43e8..c5ec38f5 100644 --- a/packages/nibijs/docs/interfaces/OracleExtension.md +++ b/packages/nibijs/docs/interfaces/OracleExtension.md @@ -12,8 +12,8 @@ ### oracle -• **oracle**: `Readonly`<{ `actives`: () => `Promise`<`QueryActivesResponse`\> ; `aggregatePrevote`: (`oracle`: `string`) => `Promise`<`undefined` \| `AggregateExchangeRatePrevote`\> ; `aggregatePrevotes`: () => `Promise`<`AggregateExchangeRatePrevote`[]\> ; `aggregateVote`: (`oracle`: `string`) => `Promise`<`undefined` \| `AggregateExchangeRateVote`\> ; `aggregateVotes`: () => `Promise`<`AggregateExchangeRateVote`[]\> ; `exchangeRate`: (`pair`: `string`) => `Promise`<`number`\> ; `exchangeRates`: () => `Promise`<`ExchangeRatesMap`\> ; `feeder`: (`oracle`: `string`) => `Promise`<`string`\> ; `missCount`: (`oracle`: `string`) => `Promise`<`number`\> ; `params`: () => `Promise`<`QueryParamsResponse`\> ; `voteTargets`: () => `Promise`<`string`[]\> }\> +• **oracle**: `Readonly`<{ `actives`: () => `Promise`<`QueryActivesResponse`\> ; `aggregatePrevote`: (`oracle`: `string`) => `Promise`<`undefined` \| `AggregateExchangeRatePrevote`\> ; `aggregatePrevotes`: () => `Promise`<`AggregateExchangeRatePrevote`[]\> ; `aggregateVote`: (`oracle`: `string`) => `Promise`<`undefined` \| `AggregateExchangeRateVote`\> ; `aggregateVotes`: () => `Promise`<`AggregateExchangeRateVote`[]\> ; `exchangeRate`: (`pair`: `string`) => `Promise`<`number`\> ; `exchangeRates`: () => `Promise`<`ExchangeRatesMap`\> ; `feeder`: (`oracle`: `string`) => `Promise`<`string`\> ; `missCount`: (`oracle`: `string`) => `Promise`<`number`\> ; `params`: () => `Promise`<`QueryParamsResponse`\> ; `voteTargets`: () => `Promise`<`string`[]\> }\> #### Defined in -[query/oracle.ts:37](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 485ee184..38c7ea93 100644 --- a/packages/nibijs/docs/interfaces/PageRequest.md +++ b/packages/nibijs/docs/interfaces/PageRequest.md @@ -27,16 +27,16 @@ PageRequest • **countTotal**: `boolean` -count_total is set to true to indicate that the result set should include +count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set. #### Defined in -[query/spot.ts:252](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### key @@ -48,9 +48,9 @@ should be set. #### Defined in -[query/spot.ts:234](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### limit @@ -61,9 +61,9 @@ 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/6e650cb/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) ---- +___ ### offset @@ -75,9 +75,9 @@ be set. #### Defined in -[query/spot.ts:240](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### reverse @@ -89,4 +89,4 @@ Since: cosmos-sdk 0.43 #### Defined in -[query/spot.ts:258](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 ceb7c57d..1a4a75da 100644 --- a/packages/nibijs/docs/interfaces/PerpExtension.md +++ b/packages/nibijs/docs/interfaces/PerpExtension.md @@ -12,8 +12,8 @@ ### perp -• **perp**: `Readonly`<{ `markets`: () => `Promise`<`QueryMarketsResponse`\> ; `moduleAccounts`: () => `Promise`<`QueryModuleAccountsResponse`\> ; `position`: (`args`: { `pair`: `string` ; `trader`: `string` }) => `Promise`<`QueryPositionResponse`\> ; `positions`: (`args`: { `trader`: `string` }) => `Promise`<`QueryPositionsResponse`\> }\> +• **perp**: `Readonly`<{ `markets`: () => `Promise`<`QueryMarketsResponse`\> ; `moduleAccounts`: () => `Promise`<`QueryModuleAccountsResponse`\> ; `position`: (`args`: { `pair`: `string` ; `trader`: `string` }) => `Promise`<`QueryPositionResponse`\> ; `positions`: (`args`: { `trader`: `string` }) => `Promise`<`QueryPositionsResponse`\> }\> #### Defined in -[query/perp.ts:24](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 a794ef88..eda348d8 100644 --- a/packages/nibijs/docs/interfaces/SpotExtension.md +++ b/packages/nibijs/docs/interfaces/SpotExtension.md @@ -12,8 +12,8 @@ ### spot -• **spot**: `Readonly`<{ `estimateExitExactAmountIn`: (`poolId`: `number`, `poolSharesIn`: `number`) => `Promise`<`QueryExitExactAmountInResponse`\> ; `estimateExitExactAmountOut`: (`poolId`: `number`) => `Promise`<`QueryExitExactAmountOutResponse`\> ; `estimateJoinExactAmountIn`: (`poolId`: `number`, `tokensIn`: `Coin`[]) => `Promise`<`QueryJoinExactAmountInResponse`\> ; `estimateJoinExactAmountOut`: (`poolId`: `number`) => `Promise`<`QueryJoinExactAmountOutResponse`\> ; `estimateSwapExactAmountIn`: (`poolId`: `number`, `tokenOutDenom`: `string`, `tokenIn?`: `Coin`) => `Promise`<`QuerySwapExactAmountInResponse`\> ; `estimateSwapExactAmountOut`: (`poolId`: `number`, `tokenInDenom`: `string`, `tokenOut?`: `Coin`) => `Promise`<`QuerySwapExactAmountOutResponse`\> ; `numPools`: () => `Promise`<`QueryNumPoolsResponse`\> ; `params`: () => `Promise`<`QueryParamsResponse`\> ; `pool`: (`poolId`: `number`) => `Promise`<`QueryPoolResponse`\> ; `poolNumber`: () => `Promise`<`QueryPoolNumberResponse`\> ; `poolParams`: (`poolId`: `number`) => `Promise`<`QueryPoolParamsResponse`\> ; `pools`: (`pagination?`: [`PageRequest`](PageRequest.md)) => `Promise`<`QueryPoolsResponse`\> ; `spotPrice`: (`poolId`: `number`, `tokenInDenom`: `string`, `tokenOutDenom`: `string`) => `Promise`<`QuerySpotPriceResponse`\> ; `totalLiquidity`: () => `Promise`<`QueryTotalLiquidityResponse`\> ; `totalPoolLiquidity`: (`poolId`: `number`) => `Promise`<`QueryTotalPoolLiquidityResponse`\> ; `totalShares`: (`poolId`: `number`) => `Promise`<`QueryTotalSharesResponse`\> }\> +• **spot**: `Readonly`<{ `estimateExitExactAmountIn`: (`poolId`: `number`, `poolSharesIn`: `number`) => `Promise`<`QueryExitExactAmountInResponse`\> ; `estimateExitExactAmountOut`: (`poolId`: `number`) => `Promise`<`QueryExitExactAmountOutResponse`\> ; `estimateJoinExactAmountIn`: (`poolId`: `number`, `tokensIn`: `Coin`[]) => `Promise`<`QueryJoinExactAmountInResponse`\> ; `estimateJoinExactAmountOut`: (`poolId`: `number`) => `Promise`<`QueryJoinExactAmountOutResponse`\> ; `estimateSwapExactAmountIn`: (`poolId`: `number`, `tokenOutDenom`: `string`, `tokenIn?`: `Coin`) => `Promise`<`QuerySwapExactAmountInResponse`\> ; `estimateSwapExactAmountOut`: (`poolId`: `number`, `tokenInDenom`: `string`, `tokenOut?`: `Coin`) => `Promise`<`QuerySwapExactAmountOutResponse`\> ; `numPools`: () => `Promise`<`QueryNumPoolsResponse`\> ; `params`: () => `Promise`<`QueryParamsResponse`\> ; `pool`: (`poolId`: `number`) => `Promise`<`QueryPoolResponse`\> ; `poolNumber`: () => `Promise`<`QueryPoolNumberResponse`\> ; `poolParams`: (`poolId`: `number`) => `Promise`<`QueryPoolParamsResponse`\> ; `pools`: (`pagination?`: [`PageRequest`](PageRequest.md)) => `Promise`<`QueryPoolsResponse`\> ; `spotPrice`: (`poolId`: `number`, `tokenInDenom`: `string`, `tokenOutDenom`: `string`) => `Promise`<`QuerySpotPriceResponse`\> ; `totalLiquidity`: () => `Promise`<`QueryTotalLiquidityResponse`\> ; `totalPoolLiquidity`: (`poolId`: `number`) => `Promise`<`QueryTotalPoolLiquidityResponse`\> ; `totalShares`: (`poolId`: `number`) => `Promise`<`QueryTotalSharesResponse`\> }\> #### Defined in -[query/spot.ts:58](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 090fa2fb..4f290112 100644 --- a/packages/nibijs/docs/interfaces/SudoExtension.md +++ b/packages/nibijs/docs/interfaces/SudoExtension.md @@ -12,8 +12,8 @@ ### sudo -• `Readonly` **sudo**: `Readonly`<{ `querySudoers`: () => `Promise`<`QuerySudoersResponse`\> }\> +• `Readonly` **sudo**: `Readonly`<{ `querySudoers`: () => `Promise`<`QuerySudoersResponse`\> }\> #### Defined in -[query/sudo.ts:9](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 028d8dce..6393510e 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/6e650cb/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/modules.md b/packages/nibijs/docs/modules.md index 578b774f..6236890b 100644 --- a/packages/nibijs/docs/modules.md +++ b/packages/nibijs/docs/modules.md @@ -6,7 +6,7 @@ ### Enumerations -- [BECH32_PREFIX](enums/BECH32_PREFIX.md) +- [BECH32\_PREFIX](enums/BECH32_PREFIX.md) - [Signer](enums/Signer.md) ### Classes @@ -58,14 +58,14 @@ ### Variables - [ERR](modules.md#err) -- [INT_MULT](modules.md#int_mult) +- [INT\_MULT](modules.md#int_mult) - [Localnet](modules.md#localnet) - [Msg](modules.md#msg) -- [PERP_MSG_TYPE_URLS](modules.md#perp_msg_type_urls) -- [SPOT_MSG_TYPE_URLS](modules.md#spot_msg_type_urls) -- [TEST_ADDRESS](modules.md#test_address) -- [TEST_CHAIN](modules.md#test_chain) -- [TEST_MNEMONIC](modules.md#test_mnemonic) +- [PERP\_MSG\_TYPE\_URLS](modules.md#perp_msg_type_urls) +- [SPOT\_MSG\_TYPE\_URLS](modules.md#spot_msg_type_urls) +- [TEST\_ADDRESS](modules.md#test_address) +- [TEST\_CHAIN](modules.md#test_chain) +- [TEST\_MNEMONIC](modules.md#test_mnemonic) - [nibiruRegistryTypes](modules.md#nibiruregistrytypes) - [perpTypes](modules.md#perptypes) - [spotTypes](modules.md#spottypes) @@ -129,7 +129,7 @@ #### Defined in -[query/query.ts:32](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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 @@ -139,27 +139,27 @@ #### Type declaration -| Name | Type | -| :------------ | :------- | +| Name | Type | +| :------ | :------ | | `collections` | `string` | -| `noPrices` | `string` | -| `sequence` | `string` | +| `noPrices` | `string` | +| `sequence` | `string` | #### Defined in -[testutil.ts:19](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/testutil.ts#L19) +[testutil.ts:19](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L19) ---- +___ -### INT_MULT +### INT\_MULT -• `Const` **INT_MULT**: `1000000` +• `Const` **INT\_MULT**: ``1000000`` #### Defined in -[chain/parse.ts:2](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### Localnet @@ -172,9 +172,9 @@ controllable, isolated development environment for testing purposes. #### Defined in -[chain/chain.ts:102](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L102) +[chain/chain.ts:102](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L102) ---- +___ ### Msg @@ -182,66 +182,66 @@ controllable, isolated development environment for testing purposes. #### Defined in -[msg/index.ts:9](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ -### PERP_MSG_TYPE_URLS +### PERP\_MSG\_TYPE\_URLS -• `Const` **PERP_MSG_TYPE_URLS**: `Object` +• `Const` **PERP\_MSG\_TYPE\_URLS**: `Object` #### Type declaration -| Name | Type | -| :------------------------- | :------- | -| `MsgAddMargin` | `string` | -| `MsgClosePosition` | `string` | +| Name | Type | +| :------ | :------ | +| `MsgAddMargin` | `string` | +| `MsgClosePosition` | `string` | | `MsgDonateToEcosystemFund` | `string` | -| `MsgMarketOrder` | `string` | -| `MsgMultiLiquidate` | `string` | -| `MsgPartialClose` | `string` | -| `MsgRemoveMargin` | `string` | +| `MsgMarketOrder` | `string` | +| `MsgMultiLiquidate` | `string` | +| `MsgPartialClose` | `string` | +| `MsgRemoveMargin` | `string` | #### Defined in -[msg/perp.ts:16](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ -### SPOT_MSG_TYPE_URLS +### SPOT\_MSG\_TYPE\_URLS -• `Const` **SPOT_MSG_TYPE_URLS**: `Object` +• `Const` **SPOT\_MSG\_TYPE\_URLS**: `Object` #### Type declaration -| Name | Type | -| :-------------- | :------- | +| Name | Type | +| :------ | :------ | | `MsgCreatePool` | `string` | -| `MsgExitPool` | `string` | -| `MsgJoinPool` | `string` | +| `MsgExitPool` | `string` | +| `MsgJoinPool` | `string` | | `MsgSwapAssets` | `string` | #### Defined in -[msg/spot.ts:12](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ -### TEST_ADDRESS +### TEST\_ADDRESS -• `Const` **TEST_ADDRESS**: `string` +• `Const` **TEST\_ADDRESS**: `string` Address for the wallet of the default validator on localnet" #### Defined in -[testutil.ts:16](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/testutil.ts#L16) +[testutil.ts:16](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L16) ---- +___ -### TEST_CHAIN +### TEST\_CHAIN -• `Const` **TEST_CHAIN**: [`Chain`](interfaces/Chain.md) = `Localnet` +• `Const` **TEST\_CHAIN**: [`Chain`](interfaces/Chain.md) = `Localnet` TEST_CHAIN: Alias for Localnet. @@ -251,21 +251,21 @@ Localnet #### Defined in -[testutil.ts:8](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/testutil.ts#L8) +[testutil.ts:8](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L8) ---- +___ -### TEST_MNEMONIC +### TEST\_MNEMONIC -• `Const` **TEST_MNEMONIC**: `string` +• `Const` **TEST\_MNEMONIC**: `string` Mnemonic for the wallet of the default validator on localnet" #### Defined in -[testutil.ts:11](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/testutil.ts#L11) +[testutil.ts:11](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L11) ---- +___ ### nibiruRegistryTypes @@ -273,9 +273,9 @@ Mnemonic for the wallet of the default validator on localnet" #### Defined in -[tx/txClient.ts:31](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### perpTypes @@ -283,9 +283,9 @@ Mnemonic for the wallet of the default validator on localnet" #### Defined in -[msg/perp.ts:26](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### spotTypes @@ -293,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/6e650cb/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 @@ -307,8 +307,8 @@ dev team to live-test new features before official public release. #### Parameters -| Name | Type | -| :------------ | :------- | +| Name | Type | +| :------ | :------ | | `chainNumber` | `number` | #### Returns @@ -317,9 +317,9 @@ dev team to live-test new features before official public release. #### Defined in -[chain/chain.ts:141](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L141) +[chain/chain.ts:141](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L141) ---- +___ ### IncentivizedTestnet @@ -327,9 +327,9 @@ dev team to live-test new features before official public release. #### Parameters -| Name | Type | Default value | -| :------------ | :------- | :------------ | -| `chainNumber` | `number` | `1` | +| Name | Type | Default value | +| :------ | :------ | :------ | +| `chainNumber` | `number` | `1` | #### Returns @@ -346,9 +346,9 @@ Testnet - Permanent Nibiru public test network. #### Defined in -[chain/chain.ts:123](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L123) +[chain/chain.ts:123](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L123) ---- +___ ### Mainnet @@ -356,13 +356,13 @@ Testnet - Permanent Nibiru public test network. Mainnet: "Chain" configuration for the Nibiru "mainnet". ❗ Mainnet uses real funds. For more info, see -Nibiru Netwokrs. +Nibiru Netwokrs. #### Parameters -| Name | Type | Default value | -| :------------ | :------- | :------------ | -| `chainNumber` | `number` | `1` | +| Name | Type | Default value | +| :------ | :------ | :------ | +| `chainNumber` | `number` | `1` | #### Returns @@ -370,9 +370,9 @@ Mainnet: "Chain" configuration for the Nibiru "mainnet". #### Defined in -[chain/chain.ts:152](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L152) +[chain/chain.ts:152](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L152) ---- +___ ### Testnet @@ -392,9 +392,9 @@ arguments are passed. #### Parameters -| Name | Type | Default value | -| :------------ | :------- | :------------ | -| `chainNumber` | `number` | `1` | +| Name | Type | Default value | +| :------ | :------ | :------ | +| `chainNumber` | `number` | `1` | #### Returns @@ -402,9 +402,9 @@ arguments are passed. #### Defined in -[chain/chain.ts:123](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L123) +[chain/chain.ts:123](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L123) ---- +___ ### assert @@ -415,10 +415,10 @@ an "AssertionError" is thrown with an optional custom message. #### Parameters -| Name | Type | Description | -| :---------- | :-------- | :------------------------------------------------------------------ | -| `condition` | `boolean` | The condition to test. | -| `message?` | `string` | Optional. A custom error message to display if the assertion fails. | +| Name | Type | Description | +| :------ | :------ | :------ | +| `condition` | `boolean` | The condition to test. | +| `message?` | `string` | Optional. A custom error message to display if the assertion fails. | #### Returns @@ -428,9 +428,9 @@ an "AssertionError" is thrown with an optional custom message. #### Defined in -[chain/types.ts:14](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### assertExpectedError @@ -444,9 +444,9 @@ expectation that the error message is contained within the list of acceptable er #### Parameters -| Name | Type | Description | -| :--------- | :--------- | :-------------------------------------------- | -| `err` | `unknown` | The error object to be tested. | +| Name | Type | Description | +| :------ | :------ | :------ | +| `err` | `unknown` | The error object to be tested. | | `okErrors` | `string`[] | An array of acceptable error message strings. | #### Returns @@ -455,9 +455,9 @@ 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/6e650cb/packages/nibijs/src/testutil.ts#L100) +[testutil.ts:100](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L100) ---- +___ ### assertHasEventType @@ -469,10 +469,10 @@ contained in `events`. #### Parameters -| Name | Type | Description | -| :---------- | :--------------------------------------- | :------------------------------------------------- | -| `eventType` | `string` | The event type to look for in the array of events. | -| `events` | [`ABCIEvent`](interfaces/ABCIEvent.md)[] | An array of ABCIEvent objects to be tested. | +| Name | Type | Description | +| :------ | :------ | :------ | +| `eventType` | `string` | The event type to look for in the array of events. | +| `events` | [`ABCIEvent`](interfaces/ABCIEvent.md)[] | An array of ABCIEvent objects to be tested. | #### Returns @@ -480,9 +480,9 @@ contained in `events`. #### Defined in -[testutil.ts:82](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/testutil.ts#L82) +[testutil.ts:82](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L82) ---- +___ ### assertHasMsgType @@ -493,10 +493,10 @@ Asserts that a list of ABCIEvents contains a specific type of `TxMsg`. This #### Parameters -| Name | Type | Description | -| :-------- | :--------------------------------------- | :-------------------------------------------------- | -| `msgType` | `string` | TxMsg type to look for within the event attributes. | -| `events` | [`ABCIEvent`](interfaces/ABCIEvent.md)[] | set of events over which we're searching. | +| Name | Type | Description | +| :------ | :------ | :------ | +| `msgType` | `string` | TxMsg type to look for within the event attributes. | +| `events` | [`ABCIEvent`](interfaces/ABCIEvent.md)[] | set of events over which we're searching. | #### Returns @@ -504,9 +504,9 @@ 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/6e650cb/packages/nibijs/src/testutil.ts#L63) +[testutil.ts:63](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L63) ---- +___ ### assertValidBlock @@ -516,9 +516,9 @@ assertValidBlock: Performs runtime type validation on a CometBFT "Block". #### Parameters -| Name | Type | -| :------ | :----------------------------- | -| `block` | `Block` | +| Name | Type | +| :------ | :------ | +| `block` | `Block` | | `chain` | [`Chain`](interfaces/Chain.md) | #### Returns @@ -527,9 +527,9 @@ assertValidBlock: Performs runtime type validation on a CometBFT "Block". #### Defined in -[testutil.ts:49](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/testutil.ts#L49) +[testutil.ts:49](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L49) ---- +___ ### assertValidBlockFromJsonRpc @@ -539,8 +539,8 @@ Validates that block queried via the JSON RPC client has the expected fields. #### Parameters -| Name | Type | -| :---------- | :---- | +| Name | Type | +| :------ | :------ | | `blockJson` | `any` | #### Returns @@ -549,9 +549,9 @@ 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/6e650cb/packages/nibijs/src/testutil.ts#L26) +[testutil.ts:26](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/testutil.ts#L26) ---- +___ ### bytesToHex @@ -569,8 +569,8 @@ Thus, a byte value of 9 is represented as "09". #### Parameters -| Name | Type | -| :--- | :----------- | +| Name | Type | +| :------ | :------ | | `bz` | `Uint8Array` | #### Returns @@ -579,9 +579,9 @@ Thus, a byte value of 9 is represented as "09". #### Defined in -[hash.ts:14](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/hash.ts#L14) +[hash.ts:14](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/hash.ts#L14) ---- +___ ### chainToParts @@ -591,8 +591,8 @@ Converts a Chain object to its constituent parts. #### Parameters -| Name | Type | Description | -| :------ | :----------------------------- | :------------- | +| Name | Type | Description | +| :------ | :------ | :------ | | `chain` | [`Chain`](interfaces/Chain.md) | a Chain object | #### Returns @@ -603,9 +603,9 @@ a ChainIdParts object #### Defined in -[chain/chain.ts:186](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L186) +[chain/chain.ts:186](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L186) ---- +___ ### eventToMap @@ -615,8 +615,8 @@ eventToMap: Converts an ABCIEvent into an EventMap. #### Parameters -| Name | Type | -| :------ | :------------------------------------- | +| Name | Type | +| :------ | :------ | | `event` | [`ABCIEvent`](interfaces/ABCIEvent.md) | #### Returns @@ -625,9 +625,9 @@ eventToMap: Converts an ABCIEvent into an EventMap. #### Defined in -[tx/event.ts:44](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### faucetUrlFromChain @@ -637,8 +637,8 @@ Constructs a faucet URL from a Chain object. #### Parameters -| Name | Type | Description | -| :------ | :----------------------------- | :------------- | +| Name | Type | Description | +| :------ | :------ | :------ | | `chain` | [`Chain`](interfaces/Chain.md) | a Chain object | #### Returns @@ -647,9 +647,9 @@ Constructs a faucet URL from a Chain object. #### Defined in -[chain/useFaucet.ts:59](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### findEvent @@ -660,10 +660,10 @@ events of known type are present. #### Parameters -| Name | Type | -| :---------- | :--------------------------------------- | -| `events` | [`ABCIEvent`](interfaces/ABCIEvent.md)[] | -| `eventType` | `string` | +| Name | Type | +| :------ | :------ | +| `events` | [`ABCIEvent`](interfaces/ABCIEvent.md)[] | +| `eventType` | `string` | #### Returns @@ -671,9 +671,9 @@ events of known type are present. #### Defined in -[tx/event.ts:54](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### fromSdkDec @@ -696,8 +696,8 @@ the human-readbale Dec. #### Parameters -| Name | Type | -| :------- | :------- | +| Name | Type | +| :------ | :------ | | `sdkDec` | `string` | #### Returns @@ -706,14 +706,14 @@ the human-readbale Dec. **`See`** -- TxMessage // from nibijs/src/tx -- toSdkDec + - TxMessage // from nibijs/src/tx + - toSdkDec #### Defined in -[chain/parse.ts:113](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### fromSdkInt @@ -721,8 +721,8 @@ the human-readbale Dec. #### Parameters -| Name | Type | -| :------- | :------- | +| Name | Type | +| :------ | :------ | | `intStr` | `string` | #### Returns @@ -731,9 +731,9 @@ the human-readbale Dec. #### Defined in -[chain/parse.ts:166](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### getRegistry @@ -745,9 +745,9 @@ the human-readbale Dec. #### Defined in -[tx/signer.ts:19](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### hexToBytes @@ -756,13 +756,13 @@ the human-readbale Dec. Converts a hexadecimal-encoded string into a Uint8Array. The hexadecimal string must have an even length, as each byte is represented -by two hex digits. Each of hex digit 2-tuples (ranging from 00 to FF) is +by two hex digits. Each of hex digit 2-tuples (ranging from 00 to FF) is converted to a single byte ranging from 0 to 255. #### Parameters -| Name | Type | Description | -| :---- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Name | Type | Description | +| :------ | :------ | :------ | | `hex` | `string` | The hexadecimal string to be decoded. If the string has an odd length or contains non-hexadecimal characters, the function returns an error wrapped in a Result object rather than throwing. | #### Returns @@ -776,11 +776,11 @@ error result if the input is invalid. ```ts // Successful decoding -const result = hexToBytes("7A919F2CC9A51B139444F7D8E84A46EE") +const result = hexToBytes("7A919F2CC9A51B139444F7D8E84A46EE"); if (result.isOk()) { - console.log(result.ok) // Uint8Array of bytes + console.log(result.ok); // Uint8Array of bytes } else { - console.error(result.err) // Error + console.error(result.err); // Error } ``` @@ -788,20 +788,20 @@ if (result.isOk()) { ```ts // Error handling for invalid hex string -const result = hexToBytes("7G919F") +const result = hexToBytes("7G919F"); if (result.isOk()) { - console.log(result.ok) + console.log(result.ok); } else { - console.error(result.err.message) + console.error(result.err.message); // "HexError: non-hex characters detected in hex: 7G919F" } ``` #### Defined in -[hash.ts:51](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/hash.ts#L51) +[hash.ts:51](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/hash.ts#L51) ---- +___ ### isMsgAddMarginEncodeObject @@ -809,8 +809,8 @@ if (result.isOk()) { #### Parameters -| Name | Type | -| :------------- | :------------- | +| Name | Type | +| :------ | :------ | | `encodeObject` | `EncodeObject` | #### Returns @@ -819,9 +819,9 @@ if (result.isOk()) { #### Defined in -[msg/perp.ts:41](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### isMsgClosePositionEncodeObject @@ -829,8 +829,8 @@ if (result.isOk()) { #### Parameters -| Name | Type | -| :------------- | :------------- | +| Name | Type | +| :------ | :------ | | `encodeObject` | `EncodeObject` | #### Returns @@ -839,9 +839,9 @@ if (result.isOk()) { #### Defined in -[msg/perp.ts:77](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### isMsgCreatePoolEncodeObject @@ -849,8 +849,8 @@ if (result.isOk()) { #### Parameters -| Name | Type | -| :------------- | :------------- | +| Name | Type | +| :------ | :------ | | `encodeObject` | `EncodeObject` | #### Returns @@ -859,9 +859,9 @@ if (result.isOk()) { #### Defined in -[msg/spot.ts:31](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### isMsgDonateToEcosystemFundEncodeObject @@ -869,8 +869,8 @@ if (result.isOk()) { #### Parameters -| Name | Type | -| :------------- | :------------- | +| Name | Type | +| :------ | :------ | | `encodeObject` | `EncodeObject` | #### Returns @@ -879,9 +879,9 @@ if (result.isOk()) { #### Defined in -[msg/perp.ts:86](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### isMsgExitPoolEncodeObject @@ -889,8 +889,8 @@ if (result.isOk()) { #### Parameters -| Name | Type | -| :------------- | :------------- | +| Name | Type | +| :------ | :------ | | `encodeObject` | `EncodeObject` | #### Returns @@ -899,9 +899,9 @@ if (result.isOk()) { #### Defined in -[msg/spot.ts:47](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### isMsgJoinPoolEncodeObject @@ -909,8 +909,8 @@ if (result.isOk()) { #### Parameters -| Name | Type | -| :------------- | :------------- | +| Name | Type | +| :------ | :------ | | `encodeObject` | `EncodeObject` | #### Returns @@ -919,9 +919,9 @@ if (result.isOk()) { #### Defined in -[msg/spot.ts:39](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### isMsgMultiLiquidateEncodeObject @@ -929,8 +929,8 @@ if (result.isOk()) { #### Parameters -| Name | Type | -| :------------- | :------------- | +| Name | Type | +| :------ | :------ | | `encodeObject` | `EncodeObject` | #### Returns @@ -939,9 +939,9 @@ if (result.isOk()) { #### Defined in -[msg/perp.ts:59](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### isMsgOpenPositionEncodeObject @@ -949,8 +949,8 @@ if (result.isOk()) { #### Parameters -| Name | Type | -| :------------- | :------------- | +| Name | Type | +| :------ | :------ | | `encodeObject` | `EncodeObject` | #### Returns @@ -959,9 +959,9 @@ if (result.isOk()) { #### Defined in -[msg/perp.ts:68](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### isMsgPartialCloseEncodeObject @@ -969,8 +969,8 @@ if (result.isOk()) { #### Parameters -| Name | Type | -| :------------- | :------------- | +| Name | Type | +| :------ | :------ | | `encodeObject` | `EncodeObject` | #### Returns @@ -979,9 +979,9 @@ if (result.isOk()) { #### Defined in -[msg/perp.ts:97](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### isMsgRemoveMarginEncodeObject @@ -989,8 +989,8 @@ if (result.isOk()) { #### Parameters -| Name | Type | -| :------------- | :------------- | +| Name | Type | +| :------ | :------ | | `encodeObject` | `EncodeObject` | #### Returns @@ -999,9 +999,9 @@ if (result.isOk()) { #### Defined in -[msg/perp.ts:50](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### isMsgSwapAssetsEncodeObject @@ -1009,8 +1009,8 @@ if (result.isOk()) { #### Parameters -| Name | Type | -| :------------- | :------------- | +| Name | Type | +| :------ | :------ | | `encodeObject` | `EncodeObject` | #### Returns @@ -1019,9 +1019,9 @@ if (result.isOk()) { #### Defined in -[msg/spot.ts:55](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### isRestEndptLive @@ -1032,8 +1032,8 @@ the network and endpoint are active. #### Parameters -| Name | Type | -| :------ | :----------------------------- | +| Name | Type | +| :------ | :------ | | `chain` | [`Chain`](interfaces/Chain.md) | #### Returns @@ -1042,9 +1042,9 @@ the network and endpoint are active. #### Defined in -[chain/chain.ts:176](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L176) +[chain/chain.ts:176](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L176) ---- +___ ### newCoinMapFromCoins @@ -1052,8 +1052,8 @@ the network and endpoint are active. #### Parameters -| Name | Type | -| :------ | :---------------- | +| Name | Type | +| :------ | :------ | | `coins` | readonly `Coin`[] | #### Returns @@ -1062,9 +1062,9 @@ the network and endpoint are active. #### Defined in -[chain/types.ts:32](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### newRandomWallet @@ -1074,10 +1074,10 @@ Generates a new wallet with a BIP39 mnemonic of length 24. #### Parameters -| Name | Type | Default value | Description | -| :-------- | :---------------------------------------- | :------------------- | :--------------------------------------------------------------------- | -| `length?` | `12` \| `15` \| `18` \| `21` \| `24` | `undefined` | (optional) The number of words in the mnemonic (12, 15, 18, 21 or 24). | -| `prefix` | [`BECH32_PREFIX`](enums/BECH32_PREFIX.md) | `BECH32_PREFIX.ADDR` | (optional) Bech32 address prefix. Defaults to "nibi". | +| Name | Type | Default value | Description | +| :------ | :------ | :------ | :------ | +| `length?` | ``12`` \| ``15`` \| ``18`` \| ``21`` \| ``24`` | `undefined` | (optional) The number of words in the mnemonic (12, 15, 18, 21 or 24). | +| `prefix` | [`BECH32_PREFIX`](enums/BECH32_PREFIX.md) | `BECH32_PREFIX.ADDR` | (optional) Bech32 address prefix. Defaults to "nibi". | #### Returns @@ -1089,9 +1089,9 @@ A wallet for protobuf based signing using SIGN_MODE_DIRECT. #### Defined in -[tx/signer.ts:45](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### newSignerFromMnemonic @@ -1101,10 +1101,10 @@ Creates a wallet from the given BIP39 mnemonic. #### Parameters -| Name | Type | Default value | Description | -| :--------- | :---------------------------------------- | :------------------- | :---------------------------------------------------- | -| `mnemonic` | `string` | `undefined` | | -| `prefix` | [`BECH32_PREFIX`](enums/BECH32_PREFIX.md) | `BECH32_PREFIX.ADDR` | (optional) Bech32 address prefix. Defaults to "nibi". | +| Name | Type | Default value | Description | +| :------ | :------ | :------ | :------ | +| `mnemonic` | `string` | `undefined` | | +| `prefix` | [`BECH32_PREFIX`](enums/BECH32_PREFIX.md) | `BECH32_PREFIX.ADDR` | (optional) Bech32 address prefix. Defaults to "nibi". | #### Returns @@ -1116,9 +1116,9 @@ A wallet for protobuf based signing using SIGN_MODE_DIRECT #### Defined in -[tx/signer.ts:29](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### parseError @@ -1130,8 +1130,8 @@ have type "Error" since it's perfectly valid to throw strings or `undefined`. #### Parameters -| Name | Type | -| :---- | :---- | +| Name | Type | +| :------ | :------ | | `err` | `any` | #### Returns @@ -1140,9 +1140,9 @@ 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/6e650cb/packages/nibijs/src/result.ts#L75) +[result.ts:75](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/result.ts#L75) ---- +___ ### parseEventLogs @@ -1153,8 +1153,8 @@ from a tx response. #### Parameters -| Name | Type | -| :------- | :------------------ | +| Name | Type | +| :------ | :------ | | `txResp` | `DeliverTxResponse` | #### Returns @@ -1170,9 +1170,9 @@ const eventLogs = parseEventLogs(txResp) #### Defined in -[tx/event.ts:67](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### queryChainIdWithRest @@ -1180,8 +1180,8 @@ const eventLogs = parseEventLogs(txResp) #### Parameters -| Name | Type | -| :------ | :----------------------------- | +| Name | Type | +| :------ | :------ | | `chain` | [`Chain`](interfaces/Chain.md) | #### Returns @@ -1190,9 +1190,9 @@ const eventLogs = parseEventLogs(txResp) #### Defined in -[chain/chain.ts:159](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/packages/nibijs/src/chain/chain.ts#L159) +[chain/chain.ts:159](https://github.com/NibiruChain/ts-sdk/blob/cacf9b9/packages/nibijs/src/chain/chain.ts#L159) ---- +___ ### setupEpochsExtension @@ -1200,8 +1200,8 @@ const eventLogs = parseEventLogs(txResp) #### Parameters -| Name | Type | -| :----- | :------------ | +| Name | Type | +| :------ | :------ | | `base` | `QueryClient` | #### Returns @@ -1210,9 +1210,9 @@ const eventLogs = parseEventLogs(txResp) #### Defined in -[query/epochs.ts:19](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### setupInflationExtension @@ -1220,8 +1220,8 @@ const eventLogs = parseEventLogs(txResp) #### Parameters -| Name | Type | -| :----- | :------------ | +| Name | Type | +| :------ | :------ | | `base` | `QueryClient` | #### Returns @@ -1230,9 +1230,9 @@ const eventLogs = parseEventLogs(txResp) #### Defined in -[query/inflation.ts:29](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### setupOracleExtension @@ -1240,8 +1240,8 @@ const eventLogs = parseEventLogs(txResp) #### Parameters -| Name | Type | -| :----- | :------------ | +| Name | Type | +| :------ | :------ | | `base` | `QueryClient` | #### Returns @@ -1250,9 +1250,9 @@ const eventLogs = parseEventLogs(txResp) #### Defined in -[query/oracle.ts:91](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### setupPerpExtension @@ -1260,8 +1260,8 @@ const eventLogs = parseEventLogs(txResp) #### Parameters -| Name | Type | -| :----- | :------------ | +| Name | Type | +| :------ | :------ | | `base` | `QueryClient` | #### Returns @@ -1270,9 +1270,9 @@ const eventLogs = parseEventLogs(txResp) #### Defined in -[query/perp.ts:45](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### setupSpotExtension @@ -1280,8 +1280,8 @@ const eventLogs = parseEventLogs(txResp) #### Parameters -| Name | Type | -| :----- | :------------ | +| Name | Type | +| :------ | :------ | | `base` | `QueryClient` | #### Returns @@ -1290,9 +1290,9 @@ const eventLogs = parseEventLogs(txResp) #### Defined in -[query/spot.ts:102](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### setupSudoExtension @@ -1300,8 +1300,8 @@ const eventLogs = parseEventLogs(txResp) #### Parameters -| Name | Type | -| :----- | :------------ | +| Name | Type | +| :------ | :------ | | `base` | `QueryClient` | #### Returns @@ -1310,9 +1310,9 @@ const eventLogs = parseEventLogs(txResp) #### Defined in -[query/sudo.ts:14](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### toSdkDec @@ -1326,19 +1326,19 @@ provided than the precision, 18. ref: Reimplementation of cosmos-sdk/types/decimal.go Valid inputs must come in the form: -(-) integer digits (.) fractional digits + (-) integer digits (.) fractional digits Examples of acceptable input include: --123.456 -456.7890 -345 --456789 + -123.456 + 456.7890 + 345 + -456789 CONTRACT - This function does not mutate the input str. #### Parameters -| Name | Type | -| :---- | :------- | +| Name | Type | +| :------ | :------ | | `dec` | `string` | #### Returns @@ -1346,7 +1346,7 @@ CONTRACT - This function does not mutate the input str. `string` - Protobuf string for an sdk.Dec, which is - represented by its underlying "big.Int". +represented by its underlying "big.Int". **`See`** @@ -1357,9 +1357,9 @@ sdk.Dec protobuf string into a number. #### Defined in -[chain/parse.ts:30](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### toSdkInt @@ -1367,9 +1367,9 @@ sdk.Dec protobuf string into a number. #### Parameters -| Name | Type | -| :--- | :------- | -| `i` | `number` | +| Name | Type | +| :------ | :------ | +| `i` | `number` | #### Returns @@ -1377,9 +1377,9 @@ sdk.Dec protobuf string into a number. #### Defined in -[chain/parse.ts:164](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### transformPool @@ -1387,8 +1387,8 @@ sdk.Dec protobuf string into a number. #### Parameters -| Name | Type | -| :--- | :----- | +| Name | Type | +| :------ | :------ | | `p?` | `Pool` | #### Returns @@ -1397,9 +1397,9 @@ sdk.Dec protobuf string into a number. #### Defined in -[query/spot.ts:49](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### transformPoolParams @@ -1407,8 +1407,8 @@ sdk.Dec protobuf string into a number. #### Parameters -| Name | Type | -| :---- | :----------- | +| Name | Type | +| :------ | :------ | | `pp?` | `PoolParams` | #### Returns @@ -1417,9 +1417,9 @@ sdk.Dec protobuf string into a number. #### Defined in -[query/spot.ts:41](https://github.com/NibiruChain/ts-sdk/blob/6e650cb/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) ---- +___ ### useFaucet @@ -1429,16 +1429,16 @@ Sends 11 NIBI, 100 NUSD, and 100 USDT to the given address from the testnet fauc #### Parameters -| Name | Type | -| :--------------- | :----------------------------- | -| `«destructured»` | `Object` | -| › `address` | `string` | -| › `amts?` | `Object` | -| › `amts.nibi` | `number` | -| › `amts.nusd` | `number` | -| › `amts.usdt` | `number` | -| › `chain` | [`Chain`](interfaces/Chain.md) | -| › `grecaptcha` | `string` | +| Name | Type | +| :------ | :------ | +| `«destructured»` | `Object` | +| › `address` | `string` | +| › `amts?` | `Object` | +| › `amts.nibi` | `number` | +| › `amts.nusd` | `number` | +| › `amts.usdt` | `number` | +| › `chain` | [`Chain`](interfaces/Chain.md) | +| › `grecaptcha` | `string` | #### Returns @@ -1446,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/6e650cb/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/src/chain/chain.ts b/packages/nibijs/src/chain/chain.ts index f6d5ed4f..80c686c6 100644 --- a/packages/nibijs/src/chain/chain.ts +++ b/packages/nibijs/src/chain/chain.ts @@ -50,7 +50,7 @@ export interface ChainIdParts { * prefix: "nibiru", * shortName: "testnet", * number: 1, - * }) // v0.21.43 + * }) * ``` */ export class CustomChain implements Chain { @@ -147,7 +147,7 @@ export const Devnet = (chainNumber: number) => /** Mainnet: "Chain" configuration for the Nibiru "mainnet". * ❗ Mainnet uses real funds. For more info, see - * Nibiru Netwokrs. + * Nibiru Netwokrs. * */ export const Mainnet = (chainNumber: number = 1) => new CustomChain({ @@ -157,11 +157,11 @@ export const Mainnet = (chainNumber: number = 1) => }) export const queryChainIdWithRest = async ( - chain: Chain + chain: Chain, ): Promise> => { const queryChainId = async (chain: Chain): Promise => { const response = await fetch( - `${chain.endptRest}/cosmos/base/tendermint/v1beta1/node_info` + `${chain.endptRest}/cosmos/base/tendermint/v1beta1/node_info`, ) const nodeInfo: { default_node_info: { network: string } } = await response.json()