Comparing version 0.21.0 to 0.22.0
@@ -5,11 +5,13 @@ import { Address } from "../address/Address"; | ||
import { StateInit } from "../messages/StateInit"; | ||
export type SenderArguments = { | ||
amount: bigint; | ||
to: Address; | ||
sendMode?: SendMode; | ||
bounce?: boolean; | ||
init?: StateInit; | ||
body?: Cell; | ||
}; | ||
export interface Sender { | ||
readonly address?: Address; | ||
send(args: { | ||
amount: bigint; | ||
mode: SendMode; | ||
to: Address; | ||
stateInit?: StateInit; | ||
body?: Cell; | ||
}): Promise<void>; | ||
send(args: SenderArguments): Promise<void>; | ||
} |
@@ -34,3 +34,3 @@ export { Address } from './address/Address'; | ||
export { AccountState } from './contract/AccountState'; | ||
export { Sender } from './contract/Sender'; | ||
export { Sender, SenderArguments } from './contract/Sender'; | ||
export { toNano, fromNano } from './utils/convert'; | ||
@@ -37,0 +37,0 @@ export { crc16 } from './utils/crc16'; |
{ | ||
"name": "ton-core", | ||
"version": "0.21.0", | ||
"version": "0.22.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/ton-community/ton-core.git", |
@@ -6,5 +6,14 @@ import { Address } from "../address/Address"; | ||
export type SenderArguments = { | ||
amount: bigint, | ||
to: Address, | ||
sendMode?: SendMode, | ||
bounce?: boolean, | ||
init?: StateInit, | ||
body?: Cell | ||
} | ||
export interface Sender { | ||
readonly address?: Address; | ||
send(args: { amount: bigint, mode: SendMode, to: Address, stateInit?: StateInit, body?: Cell }): Promise<void>; | ||
send(args: SenderArguments): Promise<void>; | ||
} |
@@ -50,3 +50,3 @@ // Address | ||
export { AccountState } from './contract/AccountState'; | ||
export { Sender } from './contract/Sender'; | ||
export { Sender, SenderArguments } from './contract/Sender'; | ||
@@ -53,0 +53,0 @@ // Utility |
796228
12908