Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
welldan97 committed Dec 3, 2024
1 parent e96853e commit e00b6ba
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion book/build-your-staking-dapp/ton/nominator/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const { signedTx } = await staker.sign({
})
```

For more information please refer to the [Signing with Fireblocks](../../signers-explained/fireblocks.md)
For more information please refer to the [Signing with Fireblocks](../../../signers-explained/fireblocks.md)
{% endtab %}
{% endtabs %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const signedTx = await yourWallet.signTransaction(tx)

Additionally, you can use the Chorus One SDK to sign transactions using Fireblocks, mnemonic or other methods.

- For detailed information on setting up and configuring these options, please refer to the [What is a Signer?](../../signers-explained/what-is-a-signer.md) section.
- For detailed information on setting up and configuring these options, please refer to the [What is a Signer?](../../../signers-explained/what-is-a-signer.md) section.

{% tabs %}
{% tab title="Using Fireblocks for Signing" %}
Expand Down
2 changes: 1 addition & 1 deletion book/build-your-staking-dapp/ton/ton-pool/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const { signedTx } = await staker.sign({
})
```

For more information please refer to the [Signing with Fireblocks](../../signers-explained/fireblocks.md)
For more information please refer to the [Signing with Fireblocks](../../../signers-explained/fireblocks.md)
{% endtab %}
{% endtabs %}

Expand Down
6 changes: 4 additions & 2 deletions packages/ton/src/TonPoolStaker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ export class TonPoolStaker extends TonBaseStaker {
)
}

// https://github.com/tonwhales/ton-nominators/blob/0553e1b6ddfc5c0b60505957505ce58d01bec3e7/compiled/nominators.fc#L18
const payload = beginCell()
.storeUint(2077040623, 32)
.storeUint(2077040623, 32) // stake_deposit method const
.storeUint(getRandomQueryId(), 64) // Query ID
.storeCoins(getDefaultGas()) // Gas
.endCell()
Expand Down Expand Up @@ -84,8 +85,9 @@ export class TonPoolStaker extends TonBaseStaker {

const data = await this.getPoolParamsUnformatted({ validatorAddress })

// https://github.com/tonwhales/ton-nominators/blob/0553e1b6ddfc5c0b60505957505ce58d01bec3e7/compiled/nominators.fc#L20
const payload = beginCell()
.storeUint(3665837821, 32)
.storeUint(3665837821, 32) // stake_withdraw method const
.storeUint(getRandomQueryId(), 64) // Query ID
.storeCoins(getDefaultGas()) // Gas
.storeCoins(toNano(amount)) // Amount
Expand Down

0 comments on commit e00b6ba

Please sign in to comment.