Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ton send from vesting contract #108

Merged
merged 2 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kilnfi/sdk",
"version": "2.17.2",
"version": "2.17.3",
"autor": "Kiln <[email protected]> (https://kiln.fi)",
"license": "BUSL-1.1",
"description": "JavaScript sdk for Kiln API",
Expand Down
6 changes: 3 additions & 3 deletions src/services/ton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,21 +106,21 @@ export class TonService extends Service {
}

/**
* Craft TON send from a vesting contract tx
* Craft TON stake from a vesting contract tx
* @param accountId id of the kiln account to use for the stake transaction
* @param walletAddress sender of the transaction
* @param vestingContractAddress vesting contract address
* @param destinationAddress the destination to which the TON will be sent to
* @param amountTon the amount of TON to send
*/
async craftSendFromVestingContractTx(
async craftStakeFromVestingContractTx(
accountId: string,
walletAddress: string,
vestingContractAddress: string,
destinationAddress: string,
amountTon: number,
): Promise<TonTx> {
const { data } = await api.post<TonTx>(`/v1/ton/transaction/send-from-vesting-contract`, {
const { data } = await api.post<TonTx>(`/v1/ton/transaction/stake-from-vesting-contract`, {
account_id: accountId,
wallet: walletAddress,
vesting_contract_address: vestingContractAddress,
Expand Down