@tonappchain/sdk 0.7.0-rc10 → 0.7.0-rc11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/adapters/contractOpener.d.ts +5 -5
  2. package/dist/adapters/retryableContractOpener.d.ts +4 -4
  3. package/dist/assets/AssetCache.d.ts +3 -3
  4. package/dist/assets/AssetFactory.d.ts +4 -4
  5. package/dist/assets/FT.d.ts +3 -3
  6. package/dist/assets/NFT.d.ts +5 -5
  7. package/dist/assets/TON.d.ts +4 -4
  8. package/dist/interfaces/{IAsset.d.ts → Asset.d.ts} +4 -4
  9. package/dist/interfaces/{IContractOpener.d.ts → ContractOpener.d.ts} +1 -1
  10. package/dist/interfaces/ISimulator.d.ts +6 -6
  11. package/dist/interfaces/ITacSDK.d.ts +9 -9
  12. package/dist/interfaces/ITransactionManager.d.ts +5 -5
  13. package/dist/interfaces/{ISender.d.ts → SenderAbstraction.d.ts} +6 -6
  14. package/dist/interfaces/{IWallet.d.ts → WalletInstanse.d.ts} +1 -1
  15. package/dist/interfaces/index.d.ts +4 -4
  16. package/dist/interfaces/index.js +4 -4
  17. package/dist/sdk/Simulator.d.ts +6 -6
  18. package/dist/sdk/TacSdk.d.ts +8 -8
  19. package/dist/sdk/TransactionManager.d.ts +5 -5
  20. package/dist/sdk/Utils.d.ts +2 -2
  21. package/dist/sender/BatchSender.d.ts +6 -6
  22. package/dist/sender/RawSender.d.ts +8 -8
  23. package/dist/sender/SenderFactory.d.ts +2 -2
  24. package/dist/sender/TonConnectSender.d.ts +5 -5
  25. package/dist/sender/index.d.ts +1 -1
  26. package/dist/sender/index.js +1 -1
  27. package/dist/structs/InternalStruct.d.ts +2 -2
  28. package/dist/structs/Struct.d.ts +10 -10
  29. package/dist/wrappers/HighloadWalletV3.d.ts +2 -2
  30. package/package.json +1 -1
  31. /package/dist/interfaces/{IAsset.js → Asset.js} +0 -0
  32. /package/dist/interfaces/{IContractOpener.js → ContractOpener.js} +0 -0
  33. /package/dist/interfaces/{ISender.js → SenderAbstraction.js} +0 -0
  34. /package/dist/interfaces/{IWallet.js → WalletInstanse.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { Blockchain } from '@ton/sandbox';
2
2
  import { Network } from '../structs/Struct';
3
- import { IContractOpener } from '../interfaces';
3
+ import { ContractOpener } from '../interfaces';
4
4
  type LiteServer = {
5
5
  ip: number;
6
6
  port: number;
@@ -13,8 +13,8 @@ export declare function liteClientOpener(options: {
13
13
  liteservers: LiteServer[];
14
14
  } | {
15
15
  network: Network;
16
- }): Promise<IContractOpener>;
17
- export declare function sandboxOpener(blockchain: Blockchain): IContractOpener;
18
- export declare function orbsOpener(network: Network): Promise<IContractOpener>;
19
- export declare function orbsOpener4(network: Network, timeout?: number): Promise<IContractOpener>;
16
+ }): Promise<ContractOpener>;
17
+ export declare function sandboxOpener(blockchain: Blockchain): ContractOpener;
18
+ export declare function orbsOpener(network: Network): Promise<ContractOpener>;
19
+ export declare function orbsOpener4(network: Network, timeout?: number): Promise<ContractOpener>;
20
20
  export {};
@@ -2,16 +2,16 @@ import { SandboxContract } from '@ton/sandbox';
2
2
  import { Address, Contract, OpenedContract } from '@ton/ton';
3
3
  import { mainnet, testnet } from '@tonappchain/artifacts';
4
4
  import { ContractState } from '../structs/Struct';
5
- import { IContractOpener } from '../interfaces';
5
+ import { ContractOpener } from '../interfaces';
6
6
  export interface OpenerConfig {
7
7
  /** Underlying opener implementation to use for this slot. */
8
- opener: IContractOpener;
8
+ opener: ContractOpener;
9
9
  /** Number of retry attempts before falling back to the next opener. */
10
10
  retries: number;
11
11
  /** Delay in milliseconds between retries for this opener. */
12
12
  retryDelay: number;
13
13
  }
14
- export declare class RetryableContractOpener implements IContractOpener {
14
+ export declare class RetryableContractOpener implements ContractOpener {
15
15
  private readonly openerConfigs;
16
16
  constructor(openerConfigs: OpenerConfig[]);
17
17
  open<T extends Contract>(src: T): OpenedContract<T> | SandboxContract<T>;
@@ -22,4 +22,4 @@ export declare class RetryableContractOpener implements IContractOpener {
22
22
  private createRetryableContract;
23
23
  private callMethodAcrossOpeners;
24
24
  }
25
- export declare function createDefaultRetryableOpener(artifacts: typeof testnet | typeof mainnet, maxRetries?: number, retryDelay?: number): Promise<IContractOpener>;
25
+ export declare function createDefaultRetryableOpener(artifacts: typeof testnet | typeof mainnet, maxRetries?: number, retryDelay?: number): Promise<ContractOpener>;
@@ -1,4 +1,4 @@
1
- import { IAsset } from '../interfaces';
1
+ import { Asset } from '../interfaces';
2
2
  export declare class AssetCache {
3
3
  private static readonly cache;
4
4
  /**
@@ -7,14 +7,14 @@ export declare class AssetCache {
7
7
  static get(token: {
8
8
  address: string;
9
9
  index?: bigint;
10
- }): IAsset | undefined;
10
+ }): Asset | undefined;
11
11
  /**
12
12
  * Set asset in cache
13
13
  */
14
14
  static set(token: {
15
15
  address: string;
16
16
  index?: bigint;
17
- }, asset: IAsset): void;
17
+ }, asset: Asset): void;
18
18
  /**
19
19
  * Clear the cache
20
20
  */
@@ -1,7 +1,7 @@
1
- import { IConfiguration, IAsset } from '../interfaces';
1
+ import { IConfiguration, Asset } from '../interfaces';
2
2
  import { AssetFromFTArg, AssetFromNFTCollectionArg, AssetFromNFTItemArg, EVMAddress, NFTAddressType, TVMAddress } from '../structs/Struct';
3
3
  export declare class AssetFactory {
4
- static from(configuration: IConfiguration, token: AssetFromFTArg | AssetFromNFTCollectionArg | AssetFromNFTItemArg): Promise<IAsset>;
5
- static createFTAsset(configuration: IConfiguration, address: TVMAddress | EVMAddress): Promise<IAsset>;
6
- static createNFTAsset(configuration: IConfiguration, address: TVMAddress | EVMAddress, addressType: NFTAddressType, index?: bigint): Promise<IAsset>;
4
+ static from(configuration: IConfiguration, token: AssetFromFTArg | AssetFromNFTCollectionArg | AssetFromNFTItemArg): Promise<Asset>;
5
+ static createFTAsset(configuration: IConfiguration, address: TVMAddress | EVMAddress): Promise<Asset>;
6
+ static createNFTAsset(configuration: IConfiguration, address: TVMAddress | EVMAddress, addressType: NFTAddressType, index?: bigint): Promise<Asset>;
7
7
  }
@@ -1,12 +1,12 @@
1
1
  import { SandboxContract } from '@ton/sandbox';
2
2
  import { Cell, OpenedContract } from '@ton/ton';
3
3
  import { AssetOpType } from '../structs/InternalStruct';
4
- import { IAsset, IConfiguration, IContractOpener } from '../interfaces';
4
+ import { Asset, IConfiguration, ContractOpener } from '../interfaces';
5
5
  import { AssetType, EVMAddress, FeeParams, TVMAddress, UserWalletBalanceExtended } from '../structs/Struct';
6
6
  import { Origin } from '../structs/Struct';
7
7
  import { JettonMasterData } from '../wrappers/JettonMaster';
8
8
  import { JettonWallet } from '../wrappers/JettonWallet';
9
- export declare class FT implements IAsset {
9
+ export declare class FT implements Asset {
10
10
  private _tvmAddress;
11
11
  readonly type: AssetType;
12
12
  readonly origin: Origin;
@@ -16,7 +16,7 @@ export declare class FT implements IAsset {
16
16
  private _transferAmount;
17
17
  private _evmAddress?;
18
18
  get address(): string;
19
- static getJettonData(contractOpener: IContractOpener, address: TVMAddress): Promise<JettonMasterData>;
19
+ static getJettonData(contractOpener: ContractOpener, address: TVMAddress): Promise<JettonMasterData>;
20
20
  getJettonData(): Promise<JettonMasterData>;
21
21
  static getOrigin(configuration: IConfiguration, address: TVMAddress): Promise<Origin>;
22
22
  static getTVMAddress(configuration: IConfiguration, address: EVMAddress): Promise<string>;
@@ -1,7 +1,7 @@
1
1
  import { Cell } from '@ton/ton';
2
- import { IAsset, IConfiguration, IContractOpener } from '../interfaces';
2
+ import { Asset, IConfiguration, ContractOpener } from '../interfaces';
3
3
  import { AssetType, EVMAddress, FeeParams, NFTCollectionData, NFTItemData, Origin, TVMAddress } from '../structs/Struct';
4
- export declare class NFT implements IAsset {
4
+ export declare class NFT implements Asset {
5
5
  private _addresses;
6
6
  readonly origin: Origin;
7
7
  readonly type: AssetType;
@@ -24,12 +24,12 @@ export declare class NFT implements IAsset {
24
24
  collection: TVMAddress | EVMAddress;
25
25
  index: bigint;
26
26
  }): Promise<NFT>;
27
- static getItemData(contractOpener: IContractOpener, itemAddress: TVMAddress): Promise<NFTItemData>;
27
+ static getItemData(contractOpener: ContractOpener, itemAddress: TVMAddress): Promise<NFTItemData>;
28
28
  getItemData(): Promise<NFTItemData>;
29
- static getCollectionData(contractOpener: IContractOpener, collectionAddress: TVMAddress): Promise<NFTCollectionData>;
29
+ static getCollectionData(contractOpener: ContractOpener, collectionAddress: TVMAddress): Promise<NFTCollectionData>;
30
30
  getCollectionData(): Promise<NFTCollectionData>;
31
31
  static getOrigin(configuration: IConfiguration, itemOrCollection: TVMAddress): Promise<Origin>;
32
- static getItemAddress(contractOpener: IContractOpener, collectionAddress: TVMAddress, index: bigint): Promise<string>;
32
+ static getItemAddress(contractOpener: ContractOpener, collectionAddress: TVMAddress, index: bigint): Promise<string>;
33
33
  static getTVMAddress(configuration: IConfiguration, collectionAddress: EVMAddress, tokenId?: bigint): Promise<string>;
34
34
  constructor(nftAddress: {
35
35
  item: TVMAddress;
@@ -1,9 +1,9 @@
1
1
  import { Cell } from '@ton/ton';
2
- import type { ISender } from '../sender';
2
+ import type { SenderAbstraction } from '../sender';
3
3
  import type { ShardTransaction } from '../structs/InternalStruct';
4
- import { IAsset, IConfiguration } from '../interfaces';
4
+ import { Asset, IConfiguration } from '../interfaces';
5
5
  import { AssetType, FeeParams } from '../structs/Struct';
6
- export declare class TON implements IAsset {
6
+ export declare class TON implements Asset {
7
7
  readonly address: string;
8
8
  readonly type: AssetType;
9
9
  private _rawAmount;
@@ -32,7 +32,7 @@ export declare class TON implements IAsset {
32
32
  feeParams?: FeeParams;
33
33
  }): Promise<Cell>;
34
34
  getUserBalance(userAddress: string): Promise<bigint>;
35
- static checkBalance(sender: ISender, config: IConfiguration, transactions: ShardTransaction[]): Promise<void>;
35
+ static checkBalance(sender: SenderAbstraction, config: IConfiguration, transactions: ShardTransaction[]): Promise<void>;
36
36
  checkCanBeTransferredBy(userAddress: string): Promise<void>;
37
37
  getBalanceOf(userAddress: string): Promise<bigint>;
38
38
  }
@@ -1,10 +1,10 @@
1
1
  import type { Cell } from '@ton/ton';
2
2
  import { AssetType, FeeParams } from '../structs/Struct';
3
- export interface IAsset {
3
+ export interface Asset {
4
4
  address: string;
5
5
  type: AssetType;
6
6
  rawAmount: bigint;
7
- clone: IAsset;
7
+ clone: Asset;
8
8
  /**
9
9
  * Returns a new asset instance with the specified transfer amount.
10
10
  * Use { rawAmount } for base units (e.g., nano units), or { amount } for human-readable units if supported by the implementation.
@@ -16,7 +16,7 @@ export interface IAsset {
16
16
  rawAmount: bigint;
17
17
  } | {
18
18
  amount: number;
19
- }): Promise<IAsset>;
19
+ }): Promise<Asset>;
20
20
  /**
21
21
  * Increases the transfer amount by the specified value and returns a new asset instance.
22
22
  * Does not mutate the current asset instance.
@@ -27,7 +27,7 @@ export interface IAsset {
27
27
  rawAmount: bigint;
28
28
  } | {
29
29
  amount: number;
30
- }): Promise<IAsset>;
30
+ }): Promise<Asset>;
31
31
  /**
32
32
  * Resolves the corresponding EVM token address for this asset.
33
33
  * Useful when bridging or interacting with EVM-compatible networks.
@@ -1,7 +1,7 @@
1
1
  import type { Address, Contract, OpenedContract } from '@ton/ton';
2
2
  import { SandboxContract } from '@ton/sandbox';
3
3
  import { ContractState } from '../structs/Struct';
4
- export interface IContractOpener {
4
+ export interface ContractOpener {
5
5
  /**
6
6
  * Opens a contract for interaction using the underlying client (lite client, sandbox, etc.).
7
7
  * @param src Contract source instance to open.
@@ -1,6 +1,6 @@
1
- import type { ISender } from '../sender';
1
+ import type { SenderAbstraction } from '../sender';
2
2
  import { CrosschainTx, EvmProxyMsg, ExecutionFeeEstimationResult, SuggestedTONExecutorFee, TACSimulationRequest, TACSimulationResult, TransactionLinker } from '../structs/Struct';
3
- import { IAsset } from './IAsset';
3
+ import { Asset } from './Asset';
4
4
  export interface ISimulator {
5
5
  /**
6
6
  * Simulates a TAC message execution without sending it to the chain.
@@ -14,7 +14,7 @@ export interface ISimulator {
14
14
  * @param txs Cross-chain transactions to simulate.
15
15
  * @returns Promise with results, one for each input transaction.
16
16
  */
17
- simulateTransactions(sender: ISender, txs: CrosschainTx[]): Promise<TACSimulationResult[]>;
17
+ simulateTransactions(sender: SenderAbstraction, txs: CrosschainTx[]): Promise<TACSimulationResult[]>;
18
18
  /**
19
19
  * Suggests the TON executor fee for a given set of assets and target fee symbol.
20
20
  * @param assets Assets involved in execution.
@@ -22,7 +22,7 @@ export interface ISimulator {
22
22
  * @param tvmValidExecutors Whitelist of permitted TVM executors (optional).
23
23
  * @returns Promise with suggested fee information.
24
24
  */
25
- getTVMExecutorFeeInfo(assets: IAsset[], feeSymbol: string, tvmValidExecutors?: string[]): Promise<SuggestedTONExecutorFee>;
25
+ getTVMExecutorFeeInfo(assets: Asset[], feeSymbol: string, tvmValidExecutors?: string[]): Promise<SuggestedTONExecutorFee>;
26
26
  /**
27
27
  * Computes simulation info and fees for a single transaction, using the provided sender context.
28
28
  * @param evmProxyMsg Encoded EVM proxy message.
@@ -30,7 +30,7 @@ export interface ISimulator {
30
30
  * @param assets Optional list of assets to attach to the transaction.
31
31
  * @returns Promise with execution fee estimation details.
32
32
  */
33
- getTransactionSimulationInfo(evmProxyMsg: EvmProxyMsg, sender: ISender, assets?: IAsset[]): Promise<ExecutionFeeEstimationResult>;
33
+ getTransactionSimulationInfo(evmProxyMsg: EvmProxyMsg, sender: SenderAbstraction, assets?: Asset[]): Promise<ExecutionFeeEstimationResult>;
34
34
  /**
35
35
  * Computes simulation info for a transaction tied to an existing TransactionLinker.
36
36
  * @param evmProxyMsg Encoded EVM proxy message.
@@ -43,5 +43,5 @@ export interface ISimulator {
43
43
  * @param calculateRollbackFee If true, includes rollback fee in estimation.
44
44
  * @returns Promise with fee estimation and execution info.
45
45
  */
46
- getSimulationInfoForTransaction(evmProxyMsg: EvmProxyMsg, transactionLinker: TransactionLinker, assets: IAsset[], allowSimulationError?: boolean, isRoundTrip?: boolean, evmValidExecutors?: string[], tvmValidExecutors?: string[], calculateRollbackFee?: boolean): Promise<ExecutionFeeEstimationResult>;
46
+ getSimulationInfoForTransaction(evmProxyMsg: EvmProxyMsg, transactionLinker: TransactionLinker, assets: Asset[], allowSimulationError?: boolean, isRoundTrip?: boolean, evmValidExecutors?: string[], tvmValidExecutors?: string[], calculateRollbackFee?: boolean): Promise<ExecutionFeeEstimationResult>;
47
47
  }
@@ -1,8 +1,8 @@
1
1
  import { Wallet } from 'ethers';
2
- import type { ISender } from '../sender';
2
+ import type { SenderAbstraction } from '../sender';
3
3
  import { AssetFromFTArg, AssetFromNFTCollectionArg, AssetFromNFTItemArg, CrossChainTransactionOptions, CrosschainTx, EVMAddress, EvmProxyMsg, ExecutionFeeEstimationResult, NFTAddressType, NFTItemData, OperationIdsByShardsKey, SuggestedTONExecutorFee, TACSimulationRequest, TACSimulationResult, TransactionLinkerWithOperationId, TVMAddress, UserWalletBalanceExtended, WaitOptions } from '../structs/Struct';
4
4
  import { IConfiguration } from './IConfiguration';
5
- import { IAsset } from './IAsset';
5
+ import { Asset } from './Asset';
6
6
  import { FT, NFT } from '../assets';
7
7
  import { JettonMasterData } from '../wrappers/JettonMaster';
8
8
  export interface ITacSDK {
@@ -36,7 +36,7 @@ export interface ITacSDK {
36
36
  * @param args Parameters that describe the asset to wrap (FT/NFT collection/NFT item).
37
37
  * @returns Promise resolving to a generic IAsset. Use overloads for stronger typing.
38
38
  */
39
- getAsset(args: AssetFromFTArg | AssetFromNFTCollectionArg | AssetFromNFTItemArg): Promise<IAsset>;
39
+ getAsset(args: AssetFromFTArg | AssetFromNFTCollectionArg | AssetFromNFTItemArg): Promise<Asset>;
40
40
  getAsset(args: AssetFromFTArg): Promise<FT>;
41
41
  getAsset(args: AssetFromNFTCollectionArg): Promise<NFT>;
42
42
  getAsset(args: AssetFromNFTItemArg): Promise<NFT>;
@@ -65,7 +65,7 @@ export interface ITacSDK {
65
65
  * @param txs Array of cross-chain transactions to simulate.
66
66
  * @returns Promise with an array of results matching the input order.
67
67
  */
68
- simulateTransactions(sender: ISender, txs: CrosschainTx[]): Promise<TACSimulationResult[]>;
68
+ simulateTransactions(sender: SenderAbstraction, txs: CrosschainTx[]): Promise<TACSimulationResult[]>;
69
69
  /**
70
70
  * Computes fee and execution information for a prospective transaction.
71
71
  * @param evmProxyMsg Encoded EVM proxy message.
@@ -73,7 +73,7 @@ export interface ITacSDK {
73
73
  * @param assets Optional list of assets attached to the transaction.
74
74
  * @returns Promise with the fee estimation and execution breakdown.
75
75
  */
76
- getTransactionSimulationInfo(evmProxyMsg: EvmProxyMsg, sender: ISender, assets?: IAsset[]): Promise<ExecutionFeeEstimationResult>;
76
+ getTransactionSimulationInfo(evmProxyMsg: EvmProxyMsg, sender: SenderAbstraction, assets?: Asset[]): Promise<ExecutionFeeEstimationResult>;
77
77
  /**
78
78
  * Suggests optimal TON-side executor fee for a given asset set and fee symbol.
79
79
  * @param assets Assets to be processed on TON side.
@@ -81,7 +81,7 @@ export interface ITacSDK {
81
81
  * @param tvmValidExecutors Optional whitelist of allowed TVM executors.
82
82
  * @returns Promise with suggested fee details.
83
83
  */
84
- getTVMExecutorFeeInfo(assets: IAsset[], feeSymbol: string, tvmValidExecutors?: string[]): Promise<SuggestedTONExecutorFee>;
84
+ getTVMExecutorFeeInfo(assets: Asset[], feeSymbol: string, tvmValidExecutors?: string[]): Promise<SuggestedTONExecutorFee>;
85
85
  /**
86
86
  * Sends a single cross-chain transaction and optionally waits for tracking information.
87
87
  * @param evmProxyMsg Encoded EVM proxy message to be bridged.
@@ -91,7 +91,7 @@ export interface ITacSDK {
91
91
  * @param waitOptions Optional waiting policy for operation id resolution.
92
92
  * @returns Promise with a TransactionLinkerWithOperationId to track the operation across chains.
93
93
  */
94
- sendCrossChainTransaction(evmProxyMsg: EvmProxyMsg, sender: ISender, assets?: IAsset[], options?: CrossChainTransactionOptions, waitOptions?: WaitOptions<string>): Promise<TransactionLinkerWithOperationId>;
94
+ sendCrossChainTransaction(evmProxyMsg: EvmProxyMsg, sender: SenderAbstraction, assets?: Asset[], options?: CrossChainTransactionOptions, waitOptions?: WaitOptions<string>): Promise<TransactionLinkerWithOperationId>;
95
95
  /**
96
96
  * Sends multiple cross-chain transactions in one batch and optionally waits for tracking info.
97
97
  * @param sender Sender abstraction for signing/sending TVM messages.
@@ -99,7 +99,7 @@ export interface ITacSDK {
99
99
  * @param waitOptions Optional waiting policy for operation ids by shard keys.
100
100
  * @returns Promise with an array of TransactionLinkerWithOperationId for each submitted transaction.
101
101
  */
102
- sendCrossChainTransactions(sender: ISender, txs: CrosschainTx[], waitOptions?: WaitOptions<OperationIdsByShardsKey>): Promise<TransactionLinkerWithOperationId[]>;
102
+ sendCrossChainTransactions(sender: SenderAbstraction, txs: CrosschainTx[], waitOptions?: WaitOptions<OperationIdsByShardsKey>): Promise<TransactionLinkerWithOperationId[]>;
103
103
  /**
104
104
  * Bridges tokens/value from EVM to TON chain via the executor.
105
105
  * @param signer Ethers Wallet used to sign the EVM-side transaction.
@@ -110,7 +110,7 @@ export interface ITacSDK {
110
110
  * @param tvmValidExecutors Optional whitelist of allowed TVM executors.
111
111
  * @returns Promise resolving to the EVM transaction hash or bridge identifier.
112
112
  */
113
- bridgeTokensToTON(signer: Wallet, value: bigint, tonTarget: string, assets?: IAsset[], tvmExecutorFee?: bigint, tvmValidExecutors?: string[]): Promise<string>;
113
+ bridgeTokensToTON(signer: Wallet, value: bigint, tonTarget: string, assets?: Asset[], tvmExecutorFee?: bigint, tvmValidExecutors?: string[]): Promise<string>;
114
114
  /**
115
115
  * Returns the user's Jetton wallet address for a given Jetton master (token) address.
116
116
  * @param userAddress TVM user address.
@@ -1,7 +1,7 @@
1
1
  import { Wallet } from 'ethers';
2
- import type { ISender } from '../sender';
2
+ import type { SenderAbstraction } from '../sender';
3
3
  import { CrossChainTransactionOptions, CrosschainTx, EvmProxyMsg, OperationIdsByShardsKey, TransactionLinkerWithOperationId, WaitOptions } from '../structs/Struct';
4
- import { IAsset } from './IAsset';
4
+ import { Asset } from './Asset';
5
5
  export interface ITransactionManager {
6
6
  /**
7
7
  * Sends a single cross-chain transaction.
@@ -12,7 +12,7 @@ export interface ITransactionManager {
12
12
  * @param waitOptions Optional policy to wait for operation id resolution.
13
13
  * @returns Transaction linker with operation id for tracking.
14
14
  */
15
- sendCrossChainTransaction(evmProxyMsg: EvmProxyMsg, sender: ISender, assets?: IAsset[], options?: CrossChainTransactionOptions, waitOptions?: WaitOptions<string>): Promise<TransactionLinkerWithOperationId>;
15
+ sendCrossChainTransaction(evmProxyMsg: EvmProxyMsg, sender: SenderAbstraction, assets?: Asset[], options?: CrossChainTransactionOptions, waitOptions?: WaitOptions<string>): Promise<TransactionLinkerWithOperationId>;
16
16
  /**
17
17
  * Sends multiple cross-chain transactions in a batch.
18
18
  * @param sender Sender abstraction for TVM message sending.
@@ -20,7 +20,7 @@ export interface ITransactionManager {
20
20
  * @param waitOptions Optional policy for waiting on operation ids by shard keys.
21
21
  * @returns Array of transaction linkers, one per submitted transaction.
22
22
  */
23
- sendCrossChainTransactions(sender: ISender, txs: CrosschainTx[], waitOptions?: WaitOptions<OperationIdsByShardsKey>): Promise<TransactionLinkerWithOperationId[]>;
23
+ sendCrossChainTransactions(sender: SenderAbstraction, txs: CrosschainTx[], waitOptions?: WaitOptions<OperationIdsByShardsKey>): Promise<TransactionLinkerWithOperationId[]>;
24
24
  /**
25
25
  * Bridges native EVM value and optional assets to TON chain via executor.
26
26
  * @param signer Ethers Wallet used to sign EVM transaction.
@@ -31,5 +31,5 @@ export interface ITransactionManager {
31
31
  * @param tvmValidExecutors Optional whitelist of allowed TVM executors.
32
32
  * @returns EVM transaction hash or bridge identifier.
33
33
  */
34
- bridgeTokensToTON(signer: Wallet, value: bigint, tonTarget: string, assets?: IAsset[], tvmExecutorFee?: bigint, tvmValidExecutors?: string[]): Promise<string>;
34
+ bridgeTokensToTON(signer: Wallet, value: bigint, tonTarget: string, assets?: Asset[], tvmExecutorFee?: bigint, tvmValidExecutors?: string[]): Promise<string>;
35
35
  }
@@ -1,7 +1,7 @@
1
1
  import type { SendResult, ShardTransaction } from '../structs/InternalStruct';
2
- import type { IAsset, IContractOpener } from './index';
2
+ import type { Asset, ContractOpener } from './index';
3
3
  import { Network } from '../structs/Struct';
4
- export interface ISender {
4
+ export interface SenderAbstraction {
5
5
  /**
6
6
  * Sends a single shard transaction on the specified chain.
7
7
  * @param shardTransaction Prepared transaction payload to send.
@@ -9,7 +9,7 @@ export interface ISender {
9
9
  * @param contractOpener Optional contract opener to use for sending.
10
10
  * @returns Promise with low-level send result.
11
11
  */
12
- sendShardTransaction(shardTransaction: ShardTransaction, chain?: Network, contractOpener?: IContractOpener): Promise<SendResult>;
12
+ sendShardTransaction(shardTransaction: ShardTransaction, chain?: Network, contractOpener?: ContractOpener): Promise<SendResult>;
13
13
  /**
14
14
  * Sends multiple shard transactions as a batch.
15
15
  * @param shardTransactions Array of prepared shard transactions to send.
@@ -17,7 +17,7 @@ export interface ISender {
17
17
  * @param contractOpener Optional contract opener to use for sending.
18
18
  * @returns Promise with an array of low-level send results in the same order.
19
19
  */
20
- sendShardTransactions(shardTransactions: ShardTransaction[], chain?: Network, contractOpener?: IContractOpener): Promise<SendResult[]>;
20
+ sendShardTransactions(shardTransactions: ShardTransaction[], chain?: Network, contractOpener?: ContractOpener): Promise<SendResult[]>;
21
21
  /**
22
22
  * Returns the TVM address of the underlying sender wallet.
23
23
  */
@@ -26,10 +26,10 @@ export interface ISender {
26
26
  * Returns the TON balance of the sender wallet using the provided opener.
27
27
  * @param contractOpener Contract opener used for on-chain queries.
28
28
  */
29
- getBalance(contractOpener: IContractOpener): Promise<bigint>;
29
+ getBalance(contractOpener: ContractOpener): Promise<bigint>;
30
30
  /**
31
31
  * Returns the balance of a given asset for the sender wallet.
32
32
  * @param asset Asset wrapper instance to query balance for.
33
33
  */
34
- getBalanceOf(asset: IAsset): Promise<bigint>;
34
+ getBalanceOf(asset: Asset): Promise<bigint>;
35
35
  }
@@ -1,5 +1,5 @@
1
1
  import type { Contract, ContractProvider, MessageRelaxed, SendMode } from '@ton/ton';
2
- export interface IWallet extends Contract {
2
+ export interface WalletInstanse extends Contract {
3
3
  /**
4
4
  * Returns current wallet seqno, used for nonce/ordering.
5
5
  * @param provider Contract provider to query the wallet.
@@ -1,13 +1,13 @@
1
- export * from './IAsset';
1
+ export * from './Asset';
2
2
  export * from './IConfiguration';
3
- export * from './IContractOpener';
3
+ export * from './ContractOpener';
4
4
  export * from './IHttpClient';
5
5
  export * from './ILiteSequencerClient';
6
6
  export * from './ILiteSequencerClientFactory';
7
7
  export * from './ILogger';
8
8
  export * from './IOperationTracker';
9
- export * from './ISender';
9
+ export * from './SenderAbstraction';
10
10
  export * from './ISimulator';
11
11
  export * from './ITacSDK';
12
12
  export * from './ITransactionManager';
13
- export * from './IWallet';
13
+ export * from './WalletInstanse';
@@ -14,16 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./IAsset"), exports);
17
+ __exportStar(require("./Asset"), exports);
18
18
  __exportStar(require("./IConfiguration"), exports);
19
- __exportStar(require("./IContractOpener"), exports);
19
+ __exportStar(require("./ContractOpener"), exports);
20
20
  __exportStar(require("./IHttpClient"), exports);
21
21
  __exportStar(require("./ILiteSequencerClient"), exports);
22
22
  __exportStar(require("./ILiteSequencerClientFactory"), exports);
23
23
  __exportStar(require("./ILogger"), exports);
24
24
  __exportStar(require("./IOperationTracker"), exports);
25
- __exportStar(require("./ISender"), exports);
25
+ __exportStar(require("./SenderAbstraction"), exports);
26
26
  __exportStar(require("./ISimulator"), exports);
27
27
  __exportStar(require("./ITacSDK"), exports);
28
28
  __exportStar(require("./ITransactionManager"), exports);
29
- __exportStar(require("./IWallet"), exports);
29
+ __exportStar(require("./WalletInstanse"), exports);
@@ -1,6 +1,6 @@
1
- import type { ISender } from '../sender';
1
+ import type { SenderAbstraction } from '../sender';
2
2
  import { IConfiguration, ILogger, ISimulator } from '../interfaces';
3
- import { IAsset, CrosschainTx, EvmProxyMsg, ExecutionFeeEstimationResult, SuggestedTONExecutorFee, TACSimulationRequest, TACSimulationResult, TransactionLinker } from '../structs/Struct';
3
+ import { Asset, CrosschainTx, EvmProxyMsg, ExecutionFeeEstimationResult, SuggestedTONExecutorFee, TACSimulationRequest, TACSimulationResult, TransactionLinker } from '../structs/Struct';
4
4
  import { IHttpClient } from '../interfaces';
5
5
  export declare class Simulator implements ISimulator {
6
6
  private readonly config;
@@ -8,10 +8,10 @@ export declare class Simulator implements ISimulator {
8
8
  private readonly httpClient;
9
9
  constructor(config: IConfiguration, logger?: ILogger, httpClient?: IHttpClient);
10
10
  simulateTACMessage(req: TACSimulationRequest): Promise<TACSimulationResult>;
11
- simulateTransactions(sender: ISender, txs: CrosschainTx[]): Promise<TACSimulationResult[]>;
11
+ simulateTransactions(sender: SenderAbstraction, txs: CrosschainTx[]): Promise<TACSimulationResult[]>;
12
12
  private buildTACSimulationRequest;
13
- getTVMExecutorFeeInfo(assets: IAsset[], feeSymbol: string, tvmValidExecutors?: string[]): Promise<SuggestedTONExecutorFee>;
13
+ getTVMExecutorFeeInfo(assets: Asset[], feeSymbol: string, tvmValidExecutors?: string[]): Promise<SuggestedTONExecutorFee>;
14
14
  private getFeeInfo;
15
- getTransactionSimulationInfo(evmProxyMsg: EvmProxyMsg, sender: ISender, assets?: IAsset[]): Promise<ExecutionFeeEstimationResult>;
16
- getSimulationInfoForTransaction(evmProxyMsg: EvmProxyMsg, transactionLinker: TransactionLinker, assets: IAsset[], allowSimulationError?: boolean, isRoundTrip?: boolean, evmValidExecutors?: string[], tvmValidExecutors?: string[], calculateRollbackFee?: boolean): Promise<ExecutionFeeEstimationResult>;
15
+ getTransactionSimulationInfo(evmProxyMsg: EvmProxyMsg, sender: SenderAbstraction, assets?: Asset[]): Promise<ExecutionFeeEstimationResult>;
16
+ getSimulationInfoForTransaction(evmProxyMsg: EvmProxyMsg, transactionLinker: TransactionLinker, assets: Asset[], allowSimulationError?: boolean, isRoundTrip?: boolean, evmValidExecutors?: string[], tvmValidExecutors?: string[], calculateRollbackFee?: boolean): Promise<ExecutionFeeEstimationResult>;
17
17
  }
@@ -1,7 +1,7 @@
1
1
  import { Wallet } from 'ethers';
2
2
  import { FT, NFT } from '../assets';
3
- import type { ISender } from '../sender';
4
- import { IAsset, CrossChainTransactionOptions, CrosschainTx, EVMAddress, EvmProxyMsg, ExecutionFeeEstimationResult, NFTAddressType, NFTItemData, OperationIdsByShardsKey, SDKParams, SuggestedTONExecutorFee, TACSimulationRequest, TACSimulationResult, TransactionLinkerWithOperationId, TVMAddress, UserWalletBalanceExtended, WaitOptions, AssetFromFTArg, AssetFromNFTCollectionArg, AssetFromNFTItemArg } from '../structs/Struct';
3
+ import type { SenderAbstraction } from '../sender';
4
+ import { Asset, CrossChainTransactionOptions, CrosschainTx, EVMAddress, EvmProxyMsg, ExecutionFeeEstimationResult, NFTAddressType, NFTItemData, OperationIdsByShardsKey, SDKParams, SuggestedTONExecutorFee, TACSimulationRequest, TACSimulationResult, TransactionLinkerWithOperationId, TVMAddress, UserWalletBalanceExtended, WaitOptions, AssetFromFTArg, AssetFromNFTCollectionArg, AssetFromNFTItemArg } from '../structs/Struct';
5
5
  import { IConfiguration, ILogger, ITacSDK } from '../interfaces';
6
6
  import { JettonMasterData } from '../wrappers/JettonMaster';
7
7
  export declare class TacSdk implements ITacSDK {
@@ -15,14 +15,14 @@ export declare class TacSdk implements ITacSDK {
15
15
  nativeTACAddress(): Promise<string>;
16
16
  get getTrustedTACExecutors(): string[];
17
17
  get getTrustedTONExecutors(): string[];
18
- getTransactionSimulationInfo(evmProxyMsg: EvmProxyMsg, sender: ISender, assets?: IAsset[]): Promise<ExecutionFeeEstimationResult>;
19
- getTVMExecutorFeeInfo(assets: IAsset[], feeSymbol: string, tvmValidExecutors?: string[]): Promise<SuggestedTONExecutorFee>;
20
- sendCrossChainTransaction(evmProxyMsg: EvmProxyMsg, sender: ISender, assets?: IAsset[], options?: CrossChainTransactionOptions, waitOptions?: WaitOptions<string>): Promise<TransactionLinkerWithOperationId>;
21
- sendCrossChainTransactions(sender: ISender, txs: CrosschainTx[], waitOptions?: WaitOptions<OperationIdsByShardsKey>): Promise<TransactionLinkerWithOperationId[]>;
22
- bridgeTokensToTON(signer: Wallet, value: bigint, tonTarget: string, assets?: IAsset[], tvmExecutorFee?: bigint, tvmValidExecutors?: string[]): Promise<string>;
18
+ getTransactionSimulationInfo(evmProxyMsg: EvmProxyMsg, sender: SenderAbstraction, assets?: Asset[]): Promise<ExecutionFeeEstimationResult>;
19
+ getTVMExecutorFeeInfo(assets: Asset[], feeSymbol: string, tvmValidExecutors?: string[]): Promise<SuggestedTONExecutorFee>;
20
+ sendCrossChainTransaction(evmProxyMsg: EvmProxyMsg, sender: SenderAbstraction, assets?: Asset[], options?: CrossChainTransactionOptions, waitOptions?: WaitOptions<string>): Promise<TransactionLinkerWithOperationId>;
21
+ sendCrossChainTransactions(sender: SenderAbstraction, txs: CrosschainTx[], waitOptions?: WaitOptions<OperationIdsByShardsKey>): Promise<TransactionLinkerWithOperationId[]>;
22
+ bridgeTokensToTON(signer: Wallet, value: bigint, tonTarget: string, assets?: Asset[], tvmExecutorFee?: bigint, tvmValidExecutors?: string[]): Promise<string>;
23
23
  isContractDeployedOnTVM(address: string): Promise<boolean>;
24
24
  simulateTACMessage(req: TACSimulationRequest): Promise<TACSimulationResult>;
25
- simulateTransactions(sender: ISender, txs: CrosschainTx[]): Promise<TACSimulationResult[]>;
25
+ simulateTransactions(sender: SenderAbstraction, txs: CrosschainTx[]): Promise<TACSimulationResult[]>;
26
26
  getAsset(args: AssetFromFTArg): Promise<FT>;
27
27
  getAsset(args: AssetFromNFTCollectionArg): Promise<NFT>;
28
28
  getAsset(args: AssetFromNFTItemArg): Promise<NFT>;
@@ -1,8 +1,8 @@
1
1
  import { Cell } from '@ton/ton';
2
2
  import { Wallet } from 'ethers';
3
- import type { ISender } from '../sender';
3
+ import type { SenderAbstraction } from '../sender';
4
4
  import { IConfiguration, ILogger, IOperationTracker, ISimulator, ITransactionManager } from '../interfaces';
5
- import { IAsset, CrossChainTransactionOptions, CrosschainTx, EvmProxyMsg, OperationIdsByShardsKey, TransactionLinker, TransactionLinkerWithOperationId, ValidExecutors, WaitOptions } from '../structs/Struct';
5
+ import { Asset, CrossChainTransactionOptions, CrosschainTx, EvmProxyMsg, OperationIdsByShardsKey, TransactionLinker, TransactionLinkerWithOperationId, ValidExecutors, WaitOptions } from '../structs/Struct';
6
6
  export declare class TransactionManager implements ITransactionManager {
7
7
  private readonly config;
8
8
  private readonly simulator;
@@ -14,9 +14,9 @@ export declare class TransactionManager implements ITransactionManager {
14
14
  });
15
15
  private prepareCrossChainTransaction;
16
16
  private generateCrossChainMessages;
17
- sendCrossChainTransaction(evmProxyMsg: EvmProxyMsg, sender: ISender, assets?: IAsset[], options?: CrossChainTransactionOptions, waitOptions?: WaitOptions<string>): Promise<TransactionLinkerWithOperationId>;
18
- sendCrossChainTransactions(sender: ISender, txs: CrosschainTx[], waitOptions?: WaitOptions<OperationIdsByShardsKey>): Promise<TransactionLinkerWithOperationId[]>;
17
+ sendCrossChainTransaction(evmProxyMsg: EvmProxyMsg, sender: SenderAbstraction, assets?: Asset[], options?: CrossChainTransactionOptions, waitOptions?: WaitOptions<string>): Promise<TransactionLinkerWithOperationId>;
18
+ sendCrossChainTransactions(sender: SenderAbstraction, txs: CrosschainTx[], waitOptions?: WaitOptions<OperationIdsByShardsKey>): Promise<TransactionLinkerWithOperationId[]>;
19
19
  private prepareCrossChainTransactions;
20
20
  private waitForOperationIds;
21
- bridgeTokensToTON(signer: Wallet, value: bigint, tonTarget: string, assets?: IAsset[], tvmExecutorFee?: bigint, tvmValidExecutors?: string[]): Promise<string>;
21
+ bridgeTokensToTON(signer: Wallet, value: bigint, tonTarget: string, assets?: Asset[], tvmExecutorFee?: bigint, tvmValidExecutors?: string[]): Promise<string>;
22
22
  }
@@ -2,7 +2,7 @@ import { Address, Cell } from '@ton/ton';
2
2
  import { AbiCoder } from 'ethers';
3
3
  import { FT, NFT, TON } from '../assets';
4
4
  import { RandomNumberByTimestamp } from '../structs/InternalStruct';
5
- import { IAsset } from '../interfaces';
5
+ import { Asset } from '../interfaces';
6
6
  import { EvmProxyMsg, FeeParams, TransactionLinker, ValidExecutors, WaitOptions } from '../structs/Struct';
7
7
  export declare const sleep: (ms: number) => Promise<unknown>;
8
8
  export declare function generateRandomNumber(interval: number): number;
@@ -19,7 +19,7 @@ export declare const toCamelCaseTransformer: (data: string) => any;
19
19
  export declare const generateFeeData: (feeParams?: FeeParams) => Cell | undefined;
20
20
  export declare function waitUntilSuccess<T, A extends unknown[]>(options: WaitOptions<T> | undefined, operation: (...args: A) => Promise<T>, ...args: A): Promise<T>;
21
21
  export declare function formatObjectForLogging(obj: unknown): string;
22
- export declare function aggregateTokens(assets?: IAsset[]): Promise<{
22
+ export declare function aggregateTokens(assets?: Asset[]): Promise<{
23
23
  jettons: FT[];
24
24
  nfts: NFT[];
25
25
  ton?: TON;
@@ -1,17 +1,17 @@
1
1
  import type { SendResult, ShardTransaction } from '../structs/InternalStruct';
2
- import type { IAsset, IContractOpener, ISender } from '../interfaces';
2
+ import type { Asset, ContractOpener, SenderAbstraction } from '../interfaces';
3
3
  import { Network } from '../structs/Struct';
4
4
  import { HighloadWalletV3 } from '../wrappers/HighloadWalletV3';
5
- export declare class BatchSender implements ISender {
5
+ export declare class BatchSender implements SenderAbstraction {
6
6
  private wallet;
7
7
  private secretKey;
8
8
  private lastCreatedAt;
9
9
  constructor(wallet: HighloadWalletV3, secretKey: Buffer);
10
- getBalanceOf(asset: IAsset): Promise<bigint>;
11
- getBalance(contractOpener: IContractOpener): Promise<bigint>;
12
- sendShardTransactions(shardTransactions: ShardTransaction[], _chain: Network, contractOpener: IContractOpener): Promise<SendResult[]>;
10
+ getBalanceOf(asset: Asset): Promise<bigint>;
11
+ getBalance(contractOpener: ContractOpener): Promise<bigint>;
12
+ sendShardTransactions(shardTransactions: ShardTransaction[], _chain: Network, contractOpener: ContractOpener): Promise<SendResult[]>;
13
13
  private prepareGroups;
14
14
  private sendGroup;
15
15
  getSenderAddress(): string;
16
- sendShardTransaction(shardTransaction: ShardTransaction, _chain: Network, contractOpener: IContractOpener): Promise<SendResult>;
16
+ sendShardTransaction(shardTransaction: ShardTransaction, _chain: Network, contractOpener: ContractOpener): Promise<SendResult>;
17
17
  }
@@ -1,17 +1,17 @@
1
1
  import type { SendResult, ShardTransaction } from '../structs/InternalStruct';
2
- import type { IAsset, IContractOpener } from '../interfaces';
2
+ import type { Asset, ContractOpener } from '../interfaces';
3
3
  import { Network } from '../structs/Struct';
4
- import { ISender, IWallet } from '../interfaces';
5
- export declare class RawSender implements ISender {
4
+ import { SenderAbstraction, WalletInstanse } from '../interfaces';
5
+ export declare class RawSender implements SenderAbstraction {
6
6
  private wallet;
7
7
  private secretKey;
8
8
  private maxBatchSize;
9
- constructor(wallet: IWallet, secretKey: Buffer, maxBatchSize?: number);
10
- getBalanceOf(asset: IAsset): Promise<bigint>;
11
- getBalance(contractOpener: IContractOpener): Promise<bigint>;
12
- sendShardTransactions(shardTransactions: ShardTransaction[], _chain: Network, contractOpener: IContractOpener): Promise<SendResult[]>;
9
+ constructor(wallet: WalletInstanse, secretKey: Buffer, maxBatchSize?: number);
10
+ getBalanceOf(asset: Asset): Promise<bigint>;
11
+ getBalance(contractOpener: ContractOpener): Promise<bigint>;
12
+ sendShardTransactions(shardTransactions: ShardTransaction[], _chain: Network, contractOpener: ContractOpener): Promise<SendResult[]>;
13
13
  private prepareBatches;
14
14
  private sendBatch;
15
15
  getSenderAddress(): string;
16
- sendShardTransaction(shardTransaction: ShardTransaction, _chain: Network, contractOpener: IContractOpener): Promise<SendResult>;
16
+ sendShardTransaction(shardTransaction: ShardTransaction, _chain: Network, contractOpener: ContractOpener): Promise<SendResult>;
17
17
  }
@@ -2,7 +2,7 @@ import { WalletContractV2R1, WalletContractV2R2, WalletContractV3R1, WalletContr
2
2
  import { TonConnectUI } from '@tonconnect/ui';
3
3
  import { Network } from '../structs/Struct';
4
4
  import { HighloadWalletV3 } from '../wrappers/HighloadWalletV3';
5
- import { ISender } from '../interfaces';
5
+ import { SenderAbstraction } from '../interfaces';
6
6
  export type WalletVersion = 'V2R1' | 'V2R2' | 'V3R1' | 'V3R2' | 'V4' | 'V5R1' | 'HIGHLOAD_V3';
7
7
  export declare const wallets: {
8
8
  V2R1: typeof WalletContractV2R1;
@@ -29,5 +29,5 @@ export declare class SenderFactory {
29
29
  };
30
30
  } | {
31
31
  tonConnect: TonConnectUI;
32
- }): Promise<ISender>;
32
+ }): Promise<SenderAbstraction>;
33
33
  }
@@ -1,12 +1,12 @@
1
1
  import { TonConnectUI } from '@tonconnect/ui';
2
2
  import type { SendResult, ShardTransaction } from '../structs/InternalStruct';
3
- import { IAsset, IContractOpener, Network } from '../structs/Struct';
4
- import { ISender } from '../interfaces';
5
- export declare class TonConnectSender implements ISender {
3
+ import { Asset, ContractOpener, Network } from '../structs/Struct';
4
+ import { SenderAbstraction } from '../interfaces';
5
+ export declare class TonConnectSender implements SenderAbstraction {
6
6
  readonly tonConnect: TonConnectUI;
7
7
  constructor(tonConnect: TonConnectUI);
8
- getBalanceOf(asset: IAsset): Promise<bigint>;
9
- getBalance(contractOpener: IContractOpener): Promise<bigint>;
8
+ getBalanceOf(asset: Asset): Promise<bigint>;
9
+ getBalance(contractOpener: ContractOpener): Promise<bigint>;
10
10
  private sendChunkedMessages;
11
11
  sendShardTransactions(shardTransactions: ShardTransaction[], chain: Network): Promise<SendResult[]>;
12
12
  getSenderAddress(): string;
@@ -1,3 +1,3 @@
1
1
  export * from './BatchSender';
2
- export * from '../interfaces/ISender';
2
+ export * from '../interfaces/SenderAbstraction';
3
3
  export * from './SenderFactory';
@@ -15,5 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BatchSender"), exports);
18
- __exportStar(require("../interfaces/ISender"), exports);
18
+ __exportStar(require("../interfaces/SenderAbstraction"), exports);
19
19
  __exportStar(require("./SenderFactory"), exports);
@@ -1,7 +1,7 @@
1
1
  import { Cell } from '@ton/ton';
2
2
  import { mainnet, testnet } from '@tonappchain/artifacts';
3
3
  import { AbstractProvider, ethers } from 'ethers';
4
- import { IContractOpener, ExecutionStagesByOperationId, Network, OperationIdsByShardsKey, OperationType, StatusInfosByOperationId, SuggestedTONExecutorFee, TACSimulationResult, CurrencyType } from './Struct';
4
+ import { ContractOpener, ExecutionStagesByOperationId, Network, OperationIdsByShardsKey, OperationType, StatusInfosByOperationId, SuggestedTONExecutorFee, TACSimulationResult, CurrencyType } from './Struct';
5
5
  export type ShardMessage = {
6
6
  address: string;
7
7
  value: bigint;
@@ -23,7 +23,7 @@ export type RandomNumberByTimestamp = {
23
23
  randomNumber: number;
24
24
  };
25
25
  export type InternalTONParams = {
26
- contractOpener: IContractOpener;
26
+ contractOpener: ContractOpener;
27
27
  jettonProxyAddress: string;
28
28
  nftProxyAddress: string;
29
29
  crossChainLayerAddress: string;
@@ -1,7 +1,7 @@
1
1
  import type { Address, Cell } from '@ton/ton';
2
2
  import { AbstractProvider, Addressable } from 'ethers';
3
- import type { ILogger, IContractOpener, IAsset } from '../interfaces';
4
- export type { IContractOpener, IAsset } from '../interfaces';
3
+ import type { ILogger, ContractOpener, Asset } from '../interfaces';
4
+ export type { ContractOpener, Asset } from '../interfaces';
5
5
  export type ContractState = {
6
6
  balance: bigint;
7
7
  state: 'active' | 'uninitialized' | 'frozen';
@@ -47,7 +47,7 @@ export type TONParams = {
47
47
  /**
48
48
  * Provider for TON side. Use your own provider for tests or to increase ratelimit
49
49
  */
50
- contractOpener?: IContractOpener;
50
+ contractOpener?: ContractOpener;
51
51
  /**
52
52
  * Address of TON settings contract. Use only for tests.
53
53
  */
@@ -179,9 +179,9 @@ export type AdditionalFeeInfo = {
179
179
  tokenFeeSymbol: TokenSymbol;
180
180
  };
181
181
  export type FeeInfo = {
182
- additionalFeeInfo: AdditionalFeeInfo | null;
183
- tac: GeneralFeeInfo | null;
184
- ton: GeneralFeeInfo | null;
182
+ additionalFeeInfo: AdditionalFeeInfo;
183
+ tac: GeneralFeeInfo;
184
+ ton: GeneralFeeInfo;
185
185
  };
186
186
  export type AssetMovement = {
187
187
  assetType: AssetType;
@@ -197,8 +197,8 @@ export type TransactionHash = {
197
197
  export type AssetMovementInfo = {
198
198
  caller: InitialCallerInfo;
199
199
  target: InitialCallerInfo;
200
- transactionHash: TransactionHash | null;
201
- assetMovements: AssetMovement[] | null;
200
+ transactionHash: TransactionHash;
201
+ assetMovements: AssetMovement[];
202
202
  };
203
203
  export type MetaInfo = {
204
204
  initialCaller: InitialCallerInfo;
@@ -209,7 +209,7 @@ export type MetaInfo = {
209
209
  };
210
210
  export type ExecutionStages = {
211
211
  operationType: OperationType;
212
- metaInfo: MetaInfo | null;
212
+ metaInfo: MetaInfo;
213
213
  } & Record<StageName, ProfilingStageData>;
214
214
  export type ExecutionStagesByOperationId = Record<string, ExecutionStages>;
215
215
  export type StatusInfosByOperationId = Record<string, StatusInfo>;
@@ -287,7 +287,7 @@ export type ExecutionFeeEstimationResult = {
287
287
  };
288
288
  export type CrosschainTx = {
289
289
  evmProxyMsg: EvmProxyMsg;
290
- assets?: IAsset[];
290
+ assets?: Asset[];
291
291
  options?: CrossChainTransactionOptions;
292
292
  };
293
293
  export type NFTItemData = {
@@ -1,6 +1,6 @@
1
1
  import { Address, Cell, ContractProvider, MessageRelaxed, OutAction, OutActionSendMsg, SendMode } from '@ton/ton';
2
2
  import { HighloadQueryId } from './HighloadQueryId';
3
- import { IWallet } from '../interfaces';
3
+ import { WalletInstanse } from '../interfaces';
4
4
  export declare enum OP {
5
5
  InternalTransfer = 2923619748
6
6
  }
@@ -14,7 +14,7 @@ export declare const DEFAULT_TIMEOUT: number;
14
14
  export declare const TIMESTAMP_SIZE = 64;
15
15
  export declare const TIMEOUT_SIZE = 22;
16
16
  export declare function highloadWalletV3ConfigToCell(config: HighloadWalletV3Config): Cell;
17
- export declare class HighloadWalletV3 implements IWallet {
17
+ export declare class HighloadWalletV3 implements WalletInstanse {
18
18
  readonly address: Address;
19
19
  readonly init?: {
20
20
  code: Cell;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonappchain/sdk",
3
- "version": "0.7.0-rc10",
3
+ "version": "0.7.0-rc11",
4
4
  "repository": "https://github.com/TacBuild/tac-sdk.git",
5
5
  "author": "TAC. <developers@tac>",
6
6
  "license": "MIT",
File without changes