Skip to content

Commit 5ddfb49

Browse files
author
Fabrice Bascoulergue
committed
Hotfix build issues due to undetected missing params
1 parent 62e3f0e commit 5ddfb49

File tree

5 files changed

+14
-45
lines changed

5 files changed

+14
-45
lines changed

docs/lib/classes/lumclient.md

Lines changed: 5 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717
- [broadcastTx](lumclient.md#broadcasttx)
1818
- [disconnect](lumclient.md#disconnect)
1919
- [getAccount](lumclient.md#getaccount)
20-
- [getAccountUnverified](lumclient.md#getaccountunverified)
21-
- [getAllBalancesUnverified](lumclient.md#getallbalancesunverified)
20+
- [getAllBalances](lumclient.md#getallbalances)
2221
- [getAllSupplies](lumclient.md#getallsupplies)
2322
- [getBalance](lumclient.md#getbalance)
24-
- [getBalanceUnverified](lumclient.md#getbalanceunverified)
2523
- [getBlock](lumclient.md#getblock)
2624
- [getBlockHeight](lumclient.md#getblockheight)
2725
- [getChainId](lumclient.md#getchainid)
@@ -60,7 +58,7 @@ ___
6058

6159
### queryClient
6260

63-
`Readonly` **queryClient**: *QueryClient* & AuthExtension & BankExtension & DistributionExtension & StakingExtension & GovExtension & BeamExtension
61+
`Readonly` **queryClient**: *QueryClient* & AuthExtension & BankExtension & BeamExtension & DistributionExtension & GovExtension & IbcExtension & MintExtension & StakingExtension
6462

6563
___
6664

@@ -113,27 +111,11 @@ Name | Type | Description |
113111

114112
___
115113

116-
### getAccountUnverified
114+
### getAllBalances
117115

118-
**getAccountUnverified**(`address`: *string*): *Promise*<*null* \| [*Account*](../interfaces/lumtypes.account.md)\>
116+
**getAllBalances**(`address`: *string*): *Promise*<[*Coin*](../interfaces/lumtypes.coin.md)[]\>
119117

120-
Get account information without verifying its existence
121-
122-
#### Parameters:
123-
124-
Name | Type | Description |
125-
:------ | :------ | :------ |
126-
`address` | *string* | wallet address |
127-
128-
**Returns:** *Promise*<*null* \| [*Account*](../interfaces/lumtypes.account.md)\>
129-
130-
___
131-
132-
### getAllBalancesUnverified
133-
134-
**getAllBalancesUnverified**(`address`: *string*): *Promise*<[*Coin*](../interfaces/lumtypes.coin.md)[]\>
135-
136-
Get all account balances without verifying their existence
118+
Get all account balances
137119

138120
#### Parameters:
139121

@@ -172,23 +154,6 @@ Name | Type | Description |
172154

173155
___
174156

175-
### getBalanceUnverified
176-
177-
**getBalanceUnverified**(`address`: *string*, `searchDenom`: *string*): *Promise*<*null* \| [*Coin*](../interfaces/lumtypes.coin.md)\>
178-
179-
Get an account balance without verifying their existence
180-
181-
#### Parameters:
182-
183-
Name | Type | Description |
184-
:------ | :------ | :------ |
185-
`address` | *string* | wallet address |
186-
`searchDenom` | *string* | Coin denomination (ex: lum) |
187-
188-
**Returns:** *Promise*<*null* \| [*Coin*](../interfaces/lumtypes.coin.md)\>
189-
190-
___
191-
192157
### getBlock
193158

194159
**getBlock**(`height?`: *number*): *Promise*<BlockResponse\>

docs/lib/classes/lumledgerwallet.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@
3535

3636
### constructor
3737

38-
\+ **new LumLedgerWallet**(`transport`: *Transport*<string\>): [*LumLedgerWallet*](lumledgerwallet.md)
38+
\+ **new LumLedgerWallet**(`transport`: *Transport*<string\>, `scrambleKey?`: *string*): [*LumLedgerWallet*](lumledgerwallet.md)
3939

4040
#### Parameters:
4141

42-
Name | Type |
43-
:------ | :------ |
44-
`transport` | *Transport*<string\> |
42+
Name | Type | Default value |
43+
:------ | :------ | :------ |
44+
`transport` | *Transport*<string\> | - |
45+
`scrambleKey` | *string* | 'CSM' |
4546

4647
**Returns:** [*LumLedgerWallet*](lumledgerwallet.md)
4748

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lum-network/sdk-javascript",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"license": "Apache-2.0",
55
"description": "Javascript SDK library for NodeJS and Web browsers to interact with the Lum Network.",
66
"homepage": "https://github.com/lum-network/sdk-javascript#readme",

src/extensions/ibc.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ export function setupIbcExtension(base: QueryClient): IbcExtension {
235235
portId: portId,
236236
channelId: channelId,
237237
pagination: createPagination(paginationKey),
238+
packetCommitmentSequences: [],
238239
}),
239240
allPacketAcknowledgements: async (portId: string, channelId: string) => {
240241
const acknowledgements = [];
@@ -245,6 +246,7 @@ export function setupIbcExtension(base: QueryClient): IbcExtension {
245246
channelId: channelId,
246247
portId: portId,
247248
pagination: createPagination(key),
249+
packetCommitmentSequences: [],
248250
});
249251
acknowledgements.push(...response.acknowledgements);
250252
key = response.pagination?.nextKey;

src/extensions/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export function createPagination(paginationKey?: Uint8Array): PageRequest | unde
2424
offset: Long.fromNumber(0, true),
2525
limit: Long.fromNumber(0, true),
2626
countTotal: false,
27+
reverse: false,
2728
}
2829
: undefined;
2930
}

0 commit comments

Comments
 (0)