|
19 | 19 | - [buildUnstakeTx](ton_src.TonPoolStaker.md#buildunstaketx)
|
20 | 20 | - [getStake](ton_src.TonPoolStaker.md#getstake)
|
21 | 21 | - [getPoolParams](ton_src.TonPoolStaker.md#getpoolparams)
|
| 22 | +- [getMinStake](ton_src.TonPoolStaker.md#getminstake) |
| 23 | +- [getPoolStatus](ton_src.TonPoolStaker.md#getpoolstatus) |
| 24 | +- [getPastElections](ton_src.TonPoolStaker.md#getpastelections) |
22 | 25 | - [init](ton_src.TonPoolStaker.md#init)
|
23 | 26 | - [buildDeployWalletTx](ton_src.TonPoolStaker.md#builddeploywallettx)
|
24 | 27 | - [sign](ton_src.TonPoolStaker.md#sign)
|
|
98 | 101 |
|
99 | 102 | ## getMnemonicToSeedFn
|
100 | 103 |
|
101 |
| -▸ **getMnemonicToSeedFn**(): (`mnemonic`: `string`, `password?`: `string`) => `Promise`\<`Uint8Array`\> |
| 104 | +▸ **getMnemonicToSeedFn**(`params?`): (`mnemonic`: `string`, `password?`: `string`) => `Promise`\<`Uint8Array`\> |
102 | 105 |
|
103 | 106 | This **static** method is used to convert BIP39 mnemonic to seed. In TON
|
104 | 107 | network the seed is used as a private key.
|
105 | 108 |
|
106 | 109 | It can be used for signer initialization, e.g. `FireblocksSigner` or `LocalSigner`.
|
107 | 110 |
|
| 111 | +### Parameters |
| 112 | + |
| 113 | +| Name | Type | Description | |
| 114 | +| :------ | :------ | :------ | |
| 115 | +| `params?` | `Object` | - | |
| 116 | +| `params.addressDerivationConfig` | [`AddressDerivationConfig`](../interfaces/ton_src.AddressDerivationConfig.md) | TON address derivation configuration | |
| 117 | + |
108 | 118 | ### Returns
|
109 | 119 |
|
110 | 120 | `fn`
|
@@ -132,13 +142,20 @@ ___
|
132 | 142 |
|
133 | 143 | ## getSeedToKeypairFn
|
134 | 144 |
|
135 |
| -▸ **getSeedToKeypairFn**(): (`seed`: `Uint8Array`, `hdPath?`: `string`) => `Promise`\<\{ `publicKey`: `Uint8Array` ; `privateKey`: `Uint8Array` }\> |
| 145 | +▸ **getSeedToKeypairFn**(`params?`): (`seed`: `Uint8Array`, `hdPath?`: `string`) => `Promise`\<\{ `publicKey`: `Uint8Array` ; `privateKey`: `Uint8Array` }\> |
136 | 146 |
|
137 | 147 | This **static** method is used to convert a seed to a keypair. Note that
|
138 | 148 | TON network doesn't use BIP44 HD Path for address derivation.
|
139 | 149 |
|
140 | 150 | It can be used for signer initialization, e.g. `FireblocksSigner` or `LocalSigner`.
|
141 | 151 |
|
| 152 | +### Parameters |
| 153 | + |
| 154 | +| Name | Type | Description | |
| 155 | +| :------ | :------ | :------ | |
| 156 | +| `params?` | `Object` | - | |
| 157 | +| `params.addressDerivationConfig` | [`AddressDerivationConfig`](../interfaces/ton_src.AddressDerivationConfig.md) | TON address derivation configuration | |
| 158 | + |
142 | 159 | ### Returns
|
143 | 160 |
|
144 | 161 | `fn`
|
@@ -200,8 +217,10 @@ Builds an unstaking transaction for TON Pool contract.
|
200 | 217 | | Name | Type | Description |
|
201 | 218 | | :------ | :------ | :------ |
|
202 | 219 | | `params` | `Object` | Parameters for building the transaction |
|
203 |
| -| `params.validatorAddress` | `string` | The validator address to unstake from | |
| 220 | +| `params.delegatorAddress` | `string` | - | |
| 221 | +| `params.validatorAddressPair` | [`string`, `string`] | The validator address pair to unstake from | |
204 | 222 | | `params.amount` | `string` | The amount to stake, specified in `TON` |
|
| 223 | +| `params.disableStatefulCalculation?` | `boolean` | (Optional) Disables stateful calculation where validator and user stake is taken into account | |
205 | 224 | | `params.validUntil?` | `number` | (Optional) The Unix timestamp when the transaction expires |
|
206 | 225 |
|
207 | 226 | ### Returns
|
@@ -255,6 +274,48 @@ Returns a promise that resolves to the staking information for the specified poo
|
255 | 274 |
|
256 | 275 | ___
|
257 | 276 |
|
| 277 | +## getMinStake |
| 278 | + |
| 279 | +▸ **getMinStake**(): `Promise`\<`bigint`\> |
| 280 | + |
| 281 | +### Returns |
| 282 | + |
| 283 | +`Promise`\<`bigint`\> |
| 284 | + |
| 285 | +___ |
| 286 | + |
| 287 | +## getPoolStatus |
| 288 | + |
| 289 | +▸ **getPoolStatus**(`validatorAddress`): `Promise`\<`PoolStatus`\> |
| 290 | + |
| 291 | +### Parameters |
| 292 | + |
| 293 | +| Name | Type | |
| 294 | +| :------ | :------ | |
| 295 | +| `validatorAddress` | `string` | |
| 296 | + |
| 297 | +### Returns |
| 298 | + |
| 299 | +`Promise`\<`PoolStatus`\> |
| 300 | + |
| 301 | +___ |
| 302 | + |
| 303 | +## getPastElections |
| 304 | + |
| 305 | +▸ **getPastElections**(`electorContractAddress`): `Promise`\<`Election`[]\> |
| 306 | + |
| 307 | +### Parameters |
| 308 | + |
| 309 | +| Name | Type | |
| 310 | +| :------ | :------ | |
| 311 | +| `electorContractAddress` | `string` | |
| 312 | + |
| 313 | +### Returns |
| 314 | + |
| 315 | +`Promise`\<`Election`[]\> |
| 316 | + |
| 317 | +___ |
| 318 | + |
258 | 319 | ## init
|
259 | 320 |
|
260 | 321 | ▸ **init**(): `Promise`\<`void`\>
|
|
0 commit comments