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 send from vesting contract #104

Merged
merged 1 commit into from
Jun 20, 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.0",
"version": "2.17.1",
"autor": "Kiln <[email protected]> (https://kiln.fi)",
"license": "BUSL-1.1",
"description": "JavaScript sdk for Kiln API",
Expand Down
3 changes: 3 additions & 0 deletions src/services/ton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,21 @@ export class TonService extends Service {

/**
* Craft TON send 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(
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`, {
account_id: accountId,
wallet: walletAddress,
vesting_contract_address: vestingContractAddress,
destination_address: destinationAddress,
Expand Down
Loading