|
8 | 8 |
|
9 | 9 | ### Functions |
10 | 10 |
|
| 11 | +- [accountFromAny](LumUtils.md#accountfromany) |
11 | 12 | - [broadcastTxCommitSuccess](LumUtils.md#broadcasttxcommitsuccess) |
12 | 13 | - [broadcastTxSyncSuccess](LumUtils.md#broadcasttxsyncsuccess) |
13 | 14 | - [convertUnit](LumUtils.md#convertunit) |
| 15 | +- [estimatedVesting](LumUtils.md#estimatedvesting) |
14 | 16 | - [generateAuthInfoBytes](LumUtils.md#generateauthinfobytes) |
15 | 17 | - [generateKeyStore](LumUtils.md#generatekeystore) |
16 | 18 | - [generateMnemonic](LumUtils.md#generatemnemonic) |
|
47 | 49 |
|
48 | 50 | ## Functions |
49 | 51 |
|
| 52 | +### accountFromAny |
| 53 | + |
| 54 | +▸ `Const` **accountFromAny**(`input`): [`Account`](../interfaces/LumTypes.Account.md) |
| 55 | + |
| 56 | +#### Parameters |
| 57 | + |
| 58 | +| Name | Type | |
| 59 | +| :------ | :------ | |
| 60 | +| `input` | `Any` | |
| 61 | + |
| 62 | +#### Returns |
| 63 | + |
| 64 | +[`Account`](../interfaces/LumTypes.Account.md) |
| 65 | + |
| 66 | +___ |
| 67 | + |
50 | 68 | ### broadcastTxCommitSuccess |
51 | 69 |
|
52 | 70 | ▸ `Const` **broadcastTxCommitSuccess**(`response`): `boolean` |
@@ -108,6 +126,37 @@ the amount converted |
108 | 126 |
|
109 | 127 | ___ |
110 | 128 |
|
| 129 | +### estimatedVesting |
| 130 | + |
| 131 | +▸ `Const` **estimatedVesting**(`account`, `t?`, `denom?`): `Object` |
| 132 | + |
| 133 | +#### Parameters |
| 134 | + |
| 135 | +| Name | Type | Default value | |
| 136 | +| :------ | :------ | :------ | |
| 137 | +| `account` | [`Account`](../interfaces/LumTypes.Account.md) | `undefined` | |
| 138 | +| `t?` | `Date` | `undefined` | |
| 139 | +| `denom` | `string` | `LumConstants.MicroLumDenom` | |
| 140 | + |
| 141 | +#### Returns |
| 142 | + |
| 143 | +`Object` |
| 144 | + |
| 145 | +| Name | Type | |
| 146 | +| :------ | :------ | |
| 147 | +| `endsAt` | `Date` | |
| 148 | +| `lockedBankCoins` | [`Coin`](../interfaces/LumTypes.Coin.md) | |
| 149 | +| `lockedCoins` | [`Coin`](../interfaces/LumTypes.Coin.md) | |
| 150 | +| `lockedDelegatedCoins` | [`Coin`](../interfaces/LumTypes.Coin.md) | |
| 151 | +| `lockedPercentage` | `number` | |
| 152 | +| `startsAt` | `Date` | |
| 153 | +| `time` | `Date` | |
| 154 | +| `totalCoins` | [`Coin`](../interfaces/LumTypes.Coin.md) | |
| 155 | +| `unlockedCoins` | [`Coin`](../interfaces/LumTypes.Coin.md) | |
| 156 | +| `unlockedPercentage` | `number` | |
| 157 | + |
| 158 | +___ |
| 159 | + |
111 | 160 | ### generateAuthInfoBytes |
112 | 161 |
|
113 | 162 | ▸ `Const` **generateAuthInfoBytes**(`docSigners`, `fee`, `signMode`): `Uint8Array` |
@@ -263,10 +312,10 @@ Derives a bech32 wallet address from a public key (secp256k1) |
263 | 312 |
|
264 | 313 | #### Parameters |
265 | 314 |
|
266 | | -| Name | Type | Description | |
267 | | -| :------ | :------ | :------ | |
268 | | -| `publicKey` | `Uint8Array` | public key to derive the address from | |
269 | | -| `prefix` | `string` | address prefix to use (ex: lum) | |
| 315 | +| Name | Type | Default value | Description | |
| 316 | +| :------ | :------ | :------ | :------ | |
| 317 | +| `publicKey` | `Uint8Array` | `undefined` | public key to derive the address from | |
| 318 | +| `prefix` | `string` | `LumBech32PrefixAccAddr` | address prefix to use (ex: lum) | |
270 | 319 |
|
271 | 320 | #### Returns |
272 | 321 |
|
@@ -377,10 +426,10 @@ Verify that a wallet address is valid |
377 | 426 |
|
378 | 427 | #### Parameters |
379 | 428 |
|
380 | | -| Name | Type | Description | |
381 | | -| :------ | :------ | :------ | |
382 | | -| `address` | `string` | address to check | |
383 | | -| `prefix` | `undefined` \| `string` | prefix to check (will not be checked if not provided) | |
| 429 | +| Name | Type | Default value | Description | |
| 430 | +| :------ | :------ | :------ | :------ | |
| 431 | +| `address` | `string` | `undefined` | address to check | |
| 432 | +| `prefix` | `undefined` \| `string` | `LumBech32PrefixAccAddr` | prefix to check (will not be checked if not provided) | |
384 | 433 |
|
385 | 434 | #### Returns |
386 | 435 |
|
|
0 commit comments