Skip to content

Commit 1e7e588

Browse files
authored
Hotfix (#54)
* Upgrade dependencies and add types in Amino types * Remove console.log * Revamp signTx function * Update error message * Bump to 0.7.15 * Update docs * Fix signTx function * Add createDefaultAminoTypes * Bump to v0.7.16
1 parent ad83be8 commit 1e7e588

File tree

3 files changed

+42
-9
lines changed

3 files changed

+42
-9
lines changed

docs/lib/classes/lumclient.md

+39-7
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
- [getTx](LumClient.md#gettx)
2828
- [searchTx](LumClient.md#searchtx)
2929
- [signAndBroadcastTx](LumClient.md#signandbroadcasttx)
30+
- [signAndBroadcastTxForMultiWallet](LumClient.md#signandbroadcasttxformultiwallet)
3031
- [signTx](LumClient.md#signtx)
32+
- [signTxForMultiWallet](LumClient.md#signtxformultiwallet)
3133
- [signTxFromWallet](LumClient.md#signtxfromwallet)
3234
- [status](LumClient.md#status)
3335
- [txsQuery](LumClient.md#txsquery)
@@ -281,7 +283,7 @@ Signs and broadcast the transaction using the specified wallet and messages
281283

282284
| Name | Type | Description |
283285
| :------ | :------ | :------ |
284-
| `wallet` | [`LumWallet`](LumWallet.md) \| [`LumWallet`](LumWallet.md)[] | signing wallet or wallets for multi signature |
286+
| `wallet` | [`LumWallet`](LumWallet.md) | signing wallet or wallets for multi signature |
285287
| `doc` | [`Doc`](../interfaces/LumTypes.Doc.md) | document to sign and broadcast as a transaction |
286288

287289
#### Returns
@@ -290,23 +292,53 @@ Signs and broadcast the transaction using the specified wallet and messages
290292

291293
___
292294

295+
### signAndBroadcastTxForMultiWallet
296+
297+
**signAndBroadcastTxForMultiWallet**(`wallets`, `doc`): `Promise`<`BroadcastTxCommitResponse`\>
298+
299+
#### Parameters
300+
301+
| Name | Type |
302+
| :------ | :------ |
303+
| `wallets` | [`LumWallet`](LumWallet.md)[] |
304+
| `doc` | [`Doc`](../interfaces/LumTypes.Doc.md) |
305+
306+
#### Returns
307+
308+
`Promise`<`BroadcastTxCommitResponse`\>
309+
310+
___
311+
293312
### signTx
294313

295-
**signTx**<`T`\>(`wallets`, `doc`): `Promise`<`Uint8Array`\>
314+
**signTx**(`wallet`, `doc`): `Promise`<`Uint8Array`\>
296315

297316
Signs the messages using the provided wallet and builds the transaction
298317

299-
#### Type parameters
318+
#### Parameters
319+
320+
| Name | Type | Description |
321+
| :------ | :------ | :------ |
322+
| `wallet` | [`LumWallet`](LumWallet.md) | signing wallet for multi signature |
323+
| `doc` | [`Doc`](../interfaces/LumTypes.Doc.md) | document to sign |
324+
325+
#### Returns
326+
327+
`Promise`<`Uint8Array`\>
328+
329+
___
330+
331+
### signTxForMultiWallet
332+
333+
**signTxForMultiWallet**(`wallets`, `doc`): `Promise`<`Uint8Array`\>
300334

301-
| Name |
302-
| :------ |
303-
| `T` |
335+
Signs the messages using the provided wallets and builds the transaction
304336

305337
#### Parameters
306338

307339
| Name | Type | Description |
308340
| :------ | :------ | :------ |
309-
| `wallets` | `T` | signing wallets for multi signature |
341+
| `wallets` | [`LumWallet`](LumWallet.md)[] | signing wallets for multi signature |
310342
| `doc` | [`Doc`](../interfaces/LumTypes.Doc.md) | document to sign |
311343

312344
#### Returns

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lum-network/sdk-javascript",
3-
"version": "0.7.15",
3+
"version": "0.7.16",
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/registry/aminoTypes.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ export const createDefaultAminoTypes = (): { [p: string]: AminoConverter | 'not_
3939

4040
export const createAminoTypes = (): { [p: string]: AminoConverter | 'not_supported_by_chain' } => {
4141
return {
42-
// DFract
42+
...createDefaultAminoTypes(),
4343

44+
// DFract
4445
'/lum.network.dfract.MsgDeposit': {
4546
aminoType: 'lum-network/MsgDeposit',
4647
toAmino: ({ depositorAddress, amount }: MsgDepositDfract): AminoMsgDepositDfract['value'] => ({

0 commit comments

Comments
 (0)