@layerzerolabs/lz-ton-sdk-v2 3.0.71 → 3.0.72

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.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { Cell, Address, DictionaryValue, Dictionary, SendMode, Contract, ContractProvider, Sender, SenderArguments, Builder, TupleReader, ContractState, TupleItem, OpenedContract, Tuple, MessageRelaxed } from '@ton/core';
1
+ import { Cell, Address, DictionaryValue, Dictionary, SendMode, Contract, ContractProvider, Sender, SenderArguments, Builder, TupleReader, ContractState, TupleItem, OpenedContract, Transaction, Tuple, MessageRelaxed } from '@ton/core';
2
2
  import { SandboxContract, BlockchainTransaction, EventMessageSent, SendMessageResult } from '@ton/sandbox';
3
3
 
4
4
  declare const hexToCells: (hex: string) => Cell;
@@ -3779,8 +3779,8 @@ declare abstract class BaseWrapper implements Contract {
3779
3779
  }
3780
3780
 
3781
3781
  type GetIntFnNames = 'cl::get<uint8>' | 'cl::get<uint16>' | 'cl::get<uint32>' | 'cl::get<uint64>' | 'cl::get<uint256>' | 'cl::get<coins>' | 'cl::get<bool>' | 'cl::get<address>';
3782
- declare class TonContractWrapper extends BaseWrapper {
3783
- static create(code: Cell, data: Cell, workchain?: number): TonContractWrapper;
3782
+ declare class ClasslibWrapper extends BaseWrapper {
3783
+ static create(code: Cell, data: Cell, workchain?: number): ClasslibWrapper;
3784
3784
  buildRequest(opCode: bigint, data: Cell, opts: SendRequestOptions, balanceRefill?: bigint, queryId?: number | bigint): SenderArguments;
3785
3785
  sendTonPayment(provider: ContractProvider, via: Sender, opts: SendRequestOptions): Promise<void>;
3786
3786
  sendInternalMessage(provider: ContractProvider, via: Sender, opCode: bigint, md: Cell, opts: SendRequestOptions, balanceRefill?: bigint, queryId?: number | bigint): Promise<void>;
@@ -3798,6 +3798,11 @@ declare class TonContractWrapper extends BaseWrapper {
3798
3798
  getDictCellItem(provider: ContractProvider, dict_cell: Cell, key: bigint): Promise<Cell>;
3799
3799
  getDictUint256Item(provider: ContractProvider, dict_cell: Cell, key: bigint): Promise<bigint>;
3800
3800
  getSetDictItem(provider: ContractProvider, dict_cell: Cell, key: bigint, value: Cell): Promise<Cell>;
3801
+ }
3802
+
3803
+ declare class TonContractWrapper extends ClasslibWrapper {
3804
+ static create(code: Cell, data: Cell, workchain?: number): TonContractWrapper;
3805
+ static bigintToAsciiString(num: bigint): string;
3801
3806
  getNewBaseOApp(provider: ContractProvider, args: {
3802
3807
  controllerAddress: bigint;
3803
3808
  eid: bigint;
@@ -4281,6 +4286,7 @@ declare class LzDict {
4281
4286
  set(key: bigint, value: Cell, wrapper: ExtendedContract<TonContractWrapper>): Promise<void>;
4282
4287
  asCell(): Cell;
4283
4288
  }
4289
+ declare function getLzDict(obj: Cell, fieldName: bigint, wrapper: ExtendedContract<TonContractWrapper>): Promise<LzDict>;
4284
4290
  interface Md {
4285
4291
  }
4286
4292
  interface BaseOApp {
@@ -4808,48 +4814,6 @@ declare const keyMap: {
4808
4814
  [key: string]: string;
4809
4815
  };
4810
4816
 
4811
- declare class LzEvent {
4812
- private _eventPromise;
4813
- private _event;
4814
- topic: string;
4815
- body: Md;
4816
- bodyName: string;
4817
- initialStorage: Cell;
4818
- initialized: boolean;
4819
- constructor(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell);
4820
- load(wrapper: ExtendedContract<TonContractWrapper>): Promise<boolean>;
4821
- }
4822
- declare class LzEventHandler {
4823
- allFailures: {
4824
- txList: BlockchainTransaction[];
4825
- events: EventMessageSent[];
4826
- };
4827
- allVictories: {
4828
- txList: BlockchainTransaction[];
4829
- eventObjects: LzEvent[];
4830
- packetsSent: MdPacketSent[];
4831
- };
4832
- addCurrentEventsToAllEvents(results: SendMessageResult, contract: ExtendedContract<TonContractWrapper>): Promise<void>;
4833
- isMdPacketSent(md: Md): md is MdPacketSent;
4834
- }
4835
- interface GasStructure {
4836
- actionFee: bigint;
4837
- forwardFee: bigint;
4838
- computeFee: bigint;
4839
- storageFee: bigint;
4840
- messageSizeCells: bigint;
4841
- messageSizeBits: bigint;
4842
- }
4843
- declare class LzGasTracker {
4844
- private codeOp;
4845
- gasCosts: Map<string, GasStructure[]>;
4846
- constructor();
4847
- static invertMapping(obj: {
4848
- [key: string]: bigint;
4849
- }): Map<bigint, string>;
4850
- calculateGas(results: SendMessageResult): void;
4851
- asTable(): string;
4852
- }
4853
4817
  declare class TonObjectUnwrapper {
4854
4818
  static getTypeOf(provider: ExtendedContract<TonContractWrapper>, obj_cell: Cell): Promise<string>;
4855
4819
  static getBaseOAppToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<BaseOApp>;
@@ -5022,6 +4986,60 @@ declare const deconstructorMap: {
5022
4986
  pfProxy: typeof TonObjectUnwrapper.getProxyToTS;
5023
4987
  };
5024
4988
 
4989
+ declare class LzEvent {
4990
+ private _eventPromise;
4991
+ private _event;
4992
+ topic: string;
4993
+ body: Md;
4994
+ bodyName: string;
4995
+ initialStorage: Cell;
4996
+ initialized: boolean;
4997
+ constructor(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell);
4998
+ load(wrapper: ExtendedContract<TonContractWrapper>): Promise<boolean>;
4999
+ }
5000
+ declare class BaseEventHandler {
5001
+ allFailures: {
5002
+ txList: BlockchainTransaction[];
5003
+ events: EventMessageSent[];
5004
+ };
5005
+ allVictories: {
5006
+ txList: BlockchainTransaction[];
5007
+ eventObjects: LzEvent[];
5008
+ };
5009
+ postProcessSuccess(event: LzEvent, tx: BlockchainTransaction & Transaction): Promise<void>;
5010
+ postProcessFailure(event: EventMessageSent, tx: BlockchainTransaction & Transaction): Promise<void>;
5011
+ addCurrentEventsToAllEvents(results: SendMessageResult, contract: ExtendedContract<TonContractWrapper>): Promise<void>;
5012
+ }
5013
+
5014
+ declare class LzEventHandler extends BaseEventHandler {
5015
+ allVictories: {
5016
+ txList: BlockchainTransaction[];
5017
+ eventObjects: LzEvent[];
5018
+ packetsSent: MdPacketSent[];
5019
+ };
5020
+ postProcessSuccess(event: LzEvent, tx: BlockchainTransaction & Transaction): Promise<void>;
5021
+ isMdPacketSent(md: Md): md is MdPacketSent;
5022
+ }
5023
+
5024
+ interface GasStructure {
5025
+ actionFee: bigint;
5026
+ forwardFee: bigint;
5027
+ computeFee: bigint;
5028
+ storageFee: bigint;
5029
+ messageSizeCells: bigint;
5030
+ messageSizeBits: bigint;
5031
+ }
5032
+ declare class LzGasTracker {
5033
+ private codeOp;
5034
+ gasCosts: Map<string, GasStructure[]>;
5035
+ constructor();
5036
+ static invertMapping(obj: {
5037
+ [key: string]: bigint;
5038
+ }): Map<bigint, string>;
5039
+ calculateGas(results: SendMessageResult): void;
5040
+ asTable(): string;
5041
+ }
5042
+
5025
5043
  declare class appsAllStorages {
5026
5044
  static getGetCellBits(contract: ExtendedContract<TonContractWrapper>, input: Cell): Promise<[bigint]>;
5027
5045
  }
@@ -5587,6 +5605,7 @@ declare const ERRORS: {
5587
5605
  readonly UlnWorkerInterface_ERROR_UNKNOWN_OPTIONS: 52n;
5588
5606
  readonly UlnWorkerInterface_ERROR_ZERO_LZ_COMPOSE_GAS_PROVIDED: 53n;
5589
5607
  readonly UlnWorkerInterface_ERROR_INVALID_OPTIONS: 54n;
5608
+ readonly UlnWorkerInterface_ERROR_NATIVE_CAP_EXCEEDED: 55n;
5590
5609
  readonly UlnReceiveConfig_ERROR_DVN_CONFIG_ERROR: 321n;
5591
5610
  readonly UlnReceiveConfig_ERROR_OPTIONAL_THRESHOLD_TOO_LARGE: 385n;
5592
5611
  readonly UlnReceiveConfig_ERROR_OPTIONAL_THRESHOLD_TOO_LOW: 386n;
@@ -15897,4 +15916,4 @@ declare function getCompiledJson(name: string, root: string): {
15897
15916
  hex: string;
15898
15917
  };
15899
15918
 
15900
- export { type ActionEvent, type AddressListTypeLike, type AddressTypeLike, type ArbitrumPriceFeedExtension, type BaseOApp, type BaseStorage, BaseWrapper, type BoolTypeLike, type Channel, type ClDeclareCellField, type ClDeclareField, type ClDeclareNumericField, type ClassDefinition, type ClassNames, type ClassTypeLike, type ComputeSizeGasTest, type Controller, type Counter, type DecodedAndRaw, type DictionaryTypeLike, type Dvn, type DvnFeelib, type DvnFeesPaidEvent, ERRORS, EVENTS, type Endpoint, type EnhancedAddress, type EnhancedAddressList, type EnhancedCell, type Executor, type ExecutorFeePaidEvent, type ExecutorFeelib, type ExtendedContract, type FieldTypeToValue, type FieldTypes, type Fields, type GetIntFnNames, type LZFields, type LoadableDict, type LzAttestation, type LzConfig, LzDict, type LzEpConfigNewWithConnection, LzEvent, LzEventHandler, LzGasTracker, type LzMsglibInfo, type LzPacket, type LzPath, type LzReceiveEpConfig, type LzSendEpConfig, type LzSmlJobAssigned, MAX_CELL_BITS, type Md, type MdAddMsglib, type MdBool, type MdChannelNonceInfo, type MdClaimTon, type MdCoinsAmount, type MdCounterIncrement, type MdDeploy, type MdExecuteParams, type MdExtendedMd, type MdGetMsglibInfoCallback, type MdInitEndpoint, type MdInitSmlConnection, type MdInitUln, type MdInitUlnConnection, type MdInitUlnManager, type MdLzReceivePrepare, type MdLzReceiveStatus, type MdLzReceiveStatusNewFull, type MdLzSend, type MdMdAddress, type MdMdEid, type MdMdObj, type MdMessagingReceipt, type MdMsglibSendCallback, type MdNativeDrop, type MdNonce, type MdOptionsExtended, type MdOptionsV1, type MdOptionsV2, type MdPacketId, type MdPacketSent, type MdRentRefill, type MdSetAddress, type MdSetAdminWorkerAddresses, type MdSetDict, type MdSetEpConfig, type MdSetPeer, type MdSetQuorum, type MdSetSmlManagerConfig, type MdSignedRequest, type MdTreasuryFeeBps, type MdUlnSend, type MdUlnVerification, type MdUlnWorkerFeelibBytecode, type MdUlnWorkerFeelibEvents, type MdVerificationStatus, NAME_WIDTH, type NumberTypeLike, OPCODES, type POOO, PUBLIC_KEY_BYTE_LENGTH, type PathLike, type PathWayLike, type PriceFeedCache, type PriceFeedFeelib, type Primitive, type Proxy, type SendRequestOptions, type SmlConnection, type SmlManager, TonContractWrapper, TonObjectUnwrapper, type TonObjects, type TonObjectsKeys, type Uln, type UlnConnection, type UlnEvents, type UlnManager, type UlnReceiveConfig, type UlnSendConfig, type UlnWorkerFeelibInfo, type ValueOf, type WorkerCoreStorage, _getTypeWidth, addressToBigInt, addressToHex, appsAllStorages, appsCounter, asciiStringToBigint, baseBuildClass, baseDecodeClass, bigIntToHex, bigintToAddress, bigintToAsciiString, buildClass, buildPathClass, calculateCellConsumption, calculateCellConsumptionFromHex, cellsToHex, cl, clDeclare, clGetCellRef, clGetUint, compareAddresses, createVerifierDictSet, decodeClass, deconstructorMap, deepDecode, deepDiff, deserializeAddressList, emptyCell, emptyMap, emptyPOOO, fieldTypes, generateBuildClass, generateDecodeClass, getBocStringFromMessage, getCellName, getCellNameNumber, getClosestByteAlignedBits, getCompiledCode, getCompiledJson, getEndpointInitStorage, getMessageFromBocString, getName, getTotalBits, hexToCells, initBaseOApp, initBaseStorage, initWorkerCoreStorage, isClassName, isLoadableDict, jettonsZro, keyMap, nameMap, nullObject, numberTypeLikeToAbsBigInt, opcodeToName, parseTonAddress, printDeepDecode, printDeepDiff, protocolChannel, protocolController, protocolEndpoint, publicKeyToHash, serializeAddressList, simpleMsglibSmlConnection, simpleMsglibSmlManager, srcMultisig, to32ByteBuffer, tonObjects, tonRealNameByCellName, tonResolvedObjects, ultralightnodeUln, ultralightnodeUlnConnection, ultralightnodeUlnManager, ultralightnodeWorkerFeeLibs, workerFeeLibsDvnFeeLib, workerFeeLibsExecutorFeeLib, workersDvn };
15919
+ export { type ActionEvent, type AddressListTypeLike, type AddressTypeLike, type ArbitrumPriceFeedExtension, type BaseOApp, type BaseStorage, BaseWrapper, type BoolTypeLike, type Channel, type ClDeclareCellField, type ClDeclareField, type ClDeclareNumericField, type ClassDefinition, type ClassNames, type ClassTypeLike, type ComputeSizeGasTest, type Controller, type Counter, type DecodedAndRaw, type DictionaryTypeLike, type Dvn, type DvnFeelib, type DvnFeesPaidEvent, ERRORS, EVENTS, type Endpoint, type EnhancedAddress, type EnhancedAddressList, type EnhancedCell, type Executor, type ExecutorFeePaidEvent, type ExecutorFeelib, type ExtendedContract, type FieldTypeToValue, type FieldTypes, type Fields, type GasStructure, type LZFields, type LoadableDict, type LzAttestation, type LzConfig, LzDict, type LzEpConfigNewWithConnection, LzEventHandler, LzGasTracker, type LzMsglibInfo, type LzPacket, type LzPath, type LzReceiveEpConfig, type LzSendEpConfig, type LzSmlJobAssigned, MAX_CELL_BITS, type Md, type MdAddMsglib, type MdBool, type MdChannelNonceInfo, type MdClaimTon, type MdCoinsAmount, type MdCounterIncrement, type MdDeploy, type MdExecuteParams, type MdExtendedMd, type MdGetMsglibInfoCallback, type MdInitEndpoint, type MdInitSmlConnection, type MdInitUln, type MdInitUlnConnection, type MdInitUlnManager, type MdLzReceivePrepare, type MdLzReceiveStatus, type MdLzReceiveStatusNewFull, type MdLzSend, type MdMdAddress, type MdMdEid, type MdMdObj, type MdMessagingReceipt, type MdMsglibSendCallback, type MdNativeDrop, type MdNonce, type MdOptionsExtended, type MdOptionsV1, type MdOptionsV2, type MdPacketId, type MdPacketSent, type MdRentRefill, type MdSetAddress, type MdSetAdminWorkerAddresses, type MdSetDict, type MdSetEpConfig, type MdSetPeer, type MdSetQuorum, type MdSetSmlManagerConfig, type MdSignedRequest, type MdTreasuryFeeBps, type MdUlnSend, type MdUlnVerification, type MdUlnWorkerFeelibBytecode, type MdUlnWorkerFeelibEvents, type MdVerificationStatus, NAME_WIDTH, type NumberTypeLike, OPCODES, type POOO, PUBLIC_KEY_BYTE_LENGTH, type PathLike, type PathWayLike, type PriceFeedCache, type PriceFeedFeelib, type Primitive, type Proxy, type SendRequestOptions, type SmlConnection, type SmlManager, TonContractWrapper, TonObjectUnwrapper, type TonObjects, type TonObjectsKeys, type Uln, type UlnConnection, type UlnEvents, type UlnManager, type UlnReceiveConfig, type UlnSendConfig, type UlnWorkerFeelibInfo, type ValueOf, type WorkerCoreStorage, _getTypeWidth, addressToBigInt, addressToHex, appsAllStorages, appsCounter, asciiStringToBigint, baseBuildClass, baseDecodeClass, bigIntToHex, bigintToAddress, bigintToAsciiString, buildClass, buildPathClass, calculateCellConsumption, calculateCellConsumptionFromHex, cellsToHex, cl, clDeclare, clGetCellRef, clGetUint, compareAddresses, createVerifierDictSet, decodeClass, deconstructorMap, deepDecode, deepDiff, deserializeAddressList, emptyCell, emptyMap, emptyPOOO, fieldTypes, generateBuildClass, generateDecodeClass, getBocStringFromMessage, getCellName, getCellNameNumber, getClosestByteAlignedBits, getCompiledCode, getCompiledJson, getEndpointInitStorage, getLzDict, getMessageFromBocString, getName, getTotalBits, hexToCells, initBaseOApp, initBaseStorage, initWorkerCoreStorage, isClassName, isLoadableDict, jettonsZro, keyMap, nameMap, nullObject, numberTypeLikeToAbsBigInt, opcodeToName, parseTonAddress, printDeepDecode, printDeepDiff, protocolChannel, protocolController, protocolEndpoint, publicKeyToHash, serializeAddressList, simpleMsglibSmlConnection, simpleMsglibSmlManager, srcMultisig, to32ByteBuffer, tonObjects, tonRealNameByCellName, tonResolvedObjects, ultralightnodeUln, ultralightnodeUlnConnection, ultralightnodeUlnManager, ultralightnodeWorkerFeeLibs, workerFeeLibsDvnFeeLib, workerFeeLibsExecutorFeeLib, workersDvn };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Cell, Address, DictionaryValue, Dictionary, SendMode, Contract, ContractProvider, Sender, SenderArguments, Builder, TupleReader, ContractState, TupleItem, OpenedContract, Tuple, MessageRelaxed } from '@ton/core';
1
+ import { Cell, Address, DictionaryValue, Dictionary, SendMode, Contract, ContractProvider, Sender, SenderArguments, Builder, TupleReader, ContractState, TupleItem, OpenedContract, Transaction, Tuple, MessageRelaxed } from '@ton/core';
2
2
  import { SandboxContract, BlockchainTransaction, EventMessageSent, SendMessageResult } from '@ton/sandbox';
3
3
 
4
4
  declare const hexToCells: (hex: string) => Cell;
@@ -3779,8 +3779,8 @@ declare abstract class BaseWrapper implements Contract {
3779
3779
  }
3780
3780
 
3781
3781
  type GetIntFnNames = 'cl::get<uint8>' | 'cl::get<uint16>' | 'cl::get<uint32>' | 'cl::get<uint64>' | 'cl::get<uint256>' | 'cl::get<coins>' | 'cl::get<bool>' | 'cl::get<address>';
3782
- declare class TonContractWrapper extends BaseWrapper {
3783
- static create(code: Cell, data: Cell, workchain?: number): TonContractWrapper;
3782
+ declare class ClasslibWrapper extends BaseWrapper {
3783
+ static create(code: Cell, data: Cell, workchain?: number): ClasslibWrapper;
3784
3784
  buildRequest(opCode: bigint, data: Cell, opts: SendRequestOptions, balanceRefill?: bigint, queryId?: number | bigint): SenderArguments;
3785
3785
  sendTonPayment(provider: ContractProvider, via: Sender, opts: SendRequestOptions): Promise<void>;
3786
3786
  sendInternalMessage(provider: ContractProvider, via: Sender, opCode: bigint, md: Cell, opts: SendRequestOptions, balanceRefill?: bigint, queryId?: number | bigint): Promise<void>;
@@ -3798,6 +3798,11 @@ declare class TonContractWrapper extends BaseWrapper {
3798
3798
  getDictCellItem(provider: ContractProvider, dict_cell: Cell, key: bigint): Promise<Cell>;
3799
3799
  getDictUint256Item(provider: ContractProvider, dict_cell: Cell, key: bigint): Promise<bigint>;
3800
3800
  getSetDictItem(provider: ContractProvider, dict_cell: Cell, key: bigint, value: Cell): Promise<Cell>;
3801
+ }
3802
+
3803
+ declare class TonContractWrapper extends ClasslibWrapper {
3804
+ static create(code: Cell, data: Cell, workchain?: number): TonContractWrapper;
3805
+ static bigintToAsciiString(num: bigint): string;
3801
3806
  getNewBaseOApp(provider: ContractProvider, args: {
3802
3807
  controllerAddress: bigint;
3803
3808
  eid: bigint;
@@ -4281,6 +4286,7 @@ declare class LzDict {
4281
4286
  set(key: bigint, value: Cell, wrapper: ExtendedContract<TonContractWrapper>): Promise<void>;
4282
4287
  asCell(): Cell;
4283
4288
  }
4289
+ declare function getLzDict(obj: Cell, fieldName: bigint, wrapper: ExtendedContract<TonContractWrapper>): Promise<LzDict>;
4284
4290
  interface Md {
4285
4291
  }
4286
4292
  interface BaseOApp {
@@ -4808,48 +4814,6 @@ declare const keyMap: {
4808
4814
  [key: string]: string;
4809
4815
  };
4810
4816
 
4811
- declare class LzEvent {
4812
- private _eventPromise;
4813
- private _event;
4814
- topic: string;
4815
- body: Md;
4816
- bodyName: string;
4817
- initialStorage: Cell;
4818
- initialized: boolean;
4819
- constructor(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell);
4820
- load(wrapper: ExtendedContract<TonContractWrapper>): Promise<boolean>;
4821
- }
4822
- declare class LzEventHandler {
4823
- allFailures: {
4824
- txList: BlockchainTransaction[];
4825
- events: EventMessageSent[];
4826
- };
4827
- allVictories: {
4828
- txList: BlockchainTransaction[];
4829
- eventObjects: LzEvent[];
4830
- packetsSent: MdPacketSent[];
4831
- };
4832
- addCurrentEventsToAllEvents(results: SendMessageResult, contract: ExtendedContract<TonContractWrapper>): Promise<void>;
4833
- isMdPacketSent(md: Md): md is MdPacketSent;
4834
- }
4835
- interface GasStructure {
4836
- actionFee: bigint;
4837
- forwardFee: bigint;
4838
- computeFee: bigint;
4839
- storageFee: bigint;
4840
- messageSizeCells: bigint;
4841
- messageSizeBits: bigint;
4842
- }
4843
- declare class LzGasTracker {
4844
- private codeOp;
4845
- gasCosts: Map<string, GasStructure[]>;
4846
- constructor();
4847
- static invertMapping(obj: {
4848
- [key: string]: bigint;
4849
- }): Map<bigint, string>;
4850
- calculateGas(results: SendMessageResult): void;
4851
- asTable(): string;
4852
- }
4853
4817
  declare class TonObjectUnwrapper {
4854
4818
  static getTypeOf(provider: ExtendedContract<TonContractWrapper>, obj_cell: Cell): Promise<string>;
4855
4819
  static getBaseOAppToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<BaseOApp>;
@@ -5022,6 +4986,60 @@ declare const deconstructorMap: {
5022
4986
  pfProxy: typeof TonObjectUnwrapper.getProxyToTS;
5023
4987
  };
5024
4988
 
4989
+ declare class LzEvent {
4990
+ private _eventPromise;
4991
+ private _event;
4992
+ topic: string;
4993
+ body: Md;
4994
+ bodyName: string;
4995
+ initialStorage: Cell;
4996
+ initialized: boolean;
4997
+ constructor(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell);
4998
+ load(wrapper: ExtendedContract<TonContractWrapper>): Promise<boolean>;
4999
+ }
5000
+ declare class BaseEventHandler {
5001
+ allFailures: {
5002
+ txList: BlockchainTransaction[];
5003
+ events: EventMessageSent[];
5004
+ };
5005
+ allVictories: {
5006
+ txList: BlockchainTransaction[];
5007
+ eventObjects: LzEvent[];
5008
+ };
5009
+ postProcessSuccess(event: LzEvent, tx: BlockchainTransaction & Transaction): Promise<void>;
5010
+ postProcessFailure(event: EventMessageSent, tx: BlockchainTransaction & Transaction): Promise<void>;
5011
+ addCurrentEventsToAllEvents(results: SendMessageResult, contract: ExtendedContract<TonContractWrapper>): Promise<void>;
5012
+ }
5013
+
5014
+ declare class LzEventHandler extends BaseEventHandler {
5015
+ allVictories: {
5016
+ txList: BlockchainTransaction[];
5017
+ eventObjects: LzEvent[];
5018
+ packetsSent: MdPacketSent[];
5019
+ };
5020
+ postProcessSuccess(event: LzEvent, tx: BlockchainTransaction & Transaction): Promise<void>;
5021
+ isMdPacketSent(md: Md): md is MdPacketSent;
5022
+ }
5023
+
5024
+ interface GasStructure {
5025
+ actionFee: bigint;
5026
+ forwardFee: bigint;
5027
+ computeFee: bigint;
5028
+ storageFee: bigint;
5029
+ messageSizeCells: bigint;
5030
+ messageSizeBits: bigint;
5031
+ }
5032
+ declare class LzGasTracker {
5033
+ private codeOp;
5034
+ gasCosts: Map<string, GasStructure[]>;
5035
+ constructor();
5036
+ static invertMapping(obj: {
5037
+ [key: string]: bigint;
5038
+ }): Map<bigint, string>;
5039
+ calculateGas(results: SendMessageResult): void;
5040
+ asTable(): string;
5041
+ }
5042
+
5025
5043
  declare class appsAllStorages {
5026
5044
  static getGetCellBits(contract: ExtendedContract<TonContractWrapper>, input: Cell): Promise<[bigint]>;
5027
5045
  }
@@ -5587,6 +5605,7 @@ declare const ERRORS: {
5587
5605
  readonly UlnWorkerInterface_ERROR_UNKNOWN_OPTIONS: 52n;
5588
5606
  readonly UlnWorkerInterface_ERROR_ZERO_LZ_COMPOSE_GAS_PROVIDED: 53n;
5589
5607
  readonly UlnWorkerInterface_ERROR_INVALID_OPTIONS: 54n;
5608
+ readonly UlnWorkerInterface_ERROR_NATIVE_CAP_EXCEEDED: 55n;
5590
5609
  readonly UlnReceiveConfig_ERROR_DVN_CONFIG_ERROR: 321n;
5591
5610
  readonly UlnReceiveConfig_ERROR_OPTIONAL_THRESHOLD_TOO_LARGE: 385n;
5592
5611
  readonly UlnReceiveConfig_ERROR_OPTIONAL_THRESHOLD_TOO_LOW: 386n;
@@ -15897,4 +15916,4 @@ declare function getCompiledJson(name: string, root: string): {
15897
15916
  hex: string;
15898
15917
  };
15899
15918
 
15900
- export { type ActionEvent, type AddressListTypeLike, type AddressTypeLike, type ArbitrumPriceFeedExtension, type BaseOApp, type BaseStorage, BaseWrapper, type BoolTypeLike, type Channel, type ClDeclareCellField, type ClDeclareField, type ClDeclareNumericField, type ClassDefinition, type ClassNames, type ClassTypeLike, type ComputeSizeGasTest, type Controller, type Counter, type DecodedAndRaw, type DictionaryTypeLike, type Dvn, type DvnFeelib, type DvnFeesPaidEvent, ERRORS, EVENTS, type Endpoint, type EnhancedAddress, type EnhancedAddressList, type EnhancedCell, type Executor, type ExecutorFeePaidEvent, type ExecutorFeelib, type ExtendedContract, type FieldTypeToValue, type FieldTypes, type Fields, type GetIntFnNames, type LZFields, type LoadableDict, type LzAttestation, type LzConfig, LzDict, type LzEpConfigNewWithConnection, LzEvent, LzEventHandler, LzGasTracker, type LzMsglibInfo, type LzPacket, type LzPath, type LzReceiveEpConfig, type LzSendEpConfig, type LzSmlJobAssigned, MAX_CELL_BITS, type Md, type MdAddMsglib, type MdBool, type MdChannelNonceInfo, type MdClaimTon, type MdCoinsAmount, type MdCounterIncrement, type MdDeploy, type MdExecuteParams, type MdExtendedMd, type MdGetMsglibInfoCallback, type MdInitEndpoint, type MdInitSmlConnection, type MdInitUln, type MdInitUlnConnection, type MdInitUlnManager, type MdLzReceivePrepare, type MdLzReceiveStatus, type MdLzReceiveStatusNewFull, type MdLzSend, type MdMdAddress, type MdMdEid, type MdMdObj, type MdMessagingReceipt, type MdMsglibSendCallback, type MdNativeDrop, type MdNonce, type MdOptionsExtended, type MdOptionsV1, type MdOptionsV2, type MdPacketId, type MdPacketSent, type MdRentRefill, type MdSetAddress, type MdSetAdminWorkerAddresses, type MdSetDict, type MdSetEpConfig, type MdSetPeer, type MdSetQuorum, type MdSetSmlManagerConfig, type MdSignedRequest, type MdTreasuryFeeBps, type MdUlnSend, type MdUlnVerification, type MdUlnWorkerFeelibBytecode, type MdUlnWorkerFeelibEvents, type MdVerificationStatus, NAME_WIDTH, type NumberTypeLike, OPCODES, type POOO, PUBLIC_KEY_BYTE_LENGTH, type PathLike, type PathWayLike, type PriceFeedCache, type PriceFeedFeelib, type Primitive, type Proxy, type SendRequestOptions, type SmlConnection, type SmlManager, TonContractWrapper, TonObjectUnwrapper, type TonObjects, type TonObjectsKeys, type Uln, type UlnConnection, type UlnEvents, type UlnManager, type UlnReceiveConfig, type UlnSendConfig, type UlnWorkerFeelibInfo, type ValueOf, type WorkerCoreStorage, _getTypeWidth, addressToBigInt, addressToHex, appsAllStorages, appsCounter, asciiStringToBigint, baseBuildClass, baseDecodeClass, bigIntToHex, bigintToAddress, bigintToAsciiString, buildClass, buildPathClass, calculateCellConsumption, calculateCellConsumptionFromHex, cellsToHex, cl, clDeclare, clGetCellRef, clGetUint, compareAddresses, createVerifierDictSet, decodeClass, deconstructorMap, deepDecode, deepDiff, deserializeAddressList, emptyCell, emptyMap, emptyPOOO, fieldTypes, generateBuildClass, generateDecodeClass, getBocStringFromMessage, getCellName, getCellNameNumber, getClosestByteAlignedBits, getCompiledCode, getCompiledJson, getEndpointInitStorage, getMessageFromBocString, getName, getTotalBits, hexToCells, initBaseOApp, initBaseStorage, initWorkerCoreStorage, isClassName, isLoadableDict, jettonsZro, keyMap, nameMap, nullObject, numberTypeLikeToAbsBigInt, opcodeToName, parseTonAddress, printDeepDecode, printDeepDiff, protocolChannel, protocolController, protocolEndpoint, publicKeyToHash, serializeAddressList, simpleMsglibSmlConnection, simpleMsglibSmlManager, srcMultisig, to32ByteBuffer, tonObjects, tonRealNameByCellName, tonResolvedObjects, ultralightnodeUln, ultralightnodeUlnConnection, ultralightnodeUlnManager, ultralightnodeWorkerFeeLibs, workerFeeLibsDvnFeeLib, workerFeeLibsExecutorFeeLib, workersDvn };
15919
+ export { type ActionEvent, type AddressListTypeLike, type AddressTypeLike, type ArbitrumPriceFeedExtension, type BaseOApp, type BaseStorage, BaseWrapper, type BoolTypeLike, type Channel, type ClDeclareCellField, type ClDeclareField, type ClDeclareNumericField, type ClassDefinition, type ClassNames, type ClassTypeLike, type ComputeSizeGasTest, type Controller, type Counter, type DecodedAndRaw, type DictionaryTypeLike, type Dvn, type DvnFeelib, type DvnFeesPaidEvent, ERRORS, EVENTS, type Endpoint, type EnhancedAddress, type EnhancedAddressList, type EnhancedCell, type Executor, type ExecutorFeePaidEvent, type ExecutorFeelib, type ExtendedContract, type FieldTypeToValue, type FieldTypes, type Fields, type GasStructure, type LZFields, type LoadableDict, type LzAttestation, type LzConfig, LzDict, type LzEpConfigNewWithConnection, LzEventHandler, LzGasTracker, type LzMsglibInfo, type LzPacket, type LzPath, type LzReceiveEpConfig, type LzSendEpConfig, type LzSmlJobAssigned, MAX_CELL_BITS, type Md, type MdAddMsglib, type MdBool, type MdChannelNonceInfo, type MdClaimTon, type MdCoinsAmount, type MdCounterIncrement, type MdDeploy, type MdExecuteParams, type MdExtendedMd, type MdGetMsglibInfoCallback, type MdInitEndpoint, type MdInitSmlConnection, type MdInitUln, type MdInitUlnConnection, type MdInitUlnManager, type MdLzReceivePrepare, type MdLzReceiveStatus, type MdLzReceiveStatusNewFull, type MdLzSend, type MdMdAddress, type MdMdEid, type MdMdObj, type MdMessagingReceipt, type MdMsglibSendCallback, type MdNativeDrop, type MdNonce, type MdOptionsExtended, type MdOptionsV1, type MdOptionsV2, type MdPacketId, type MdPacketSent, type MdRentRefill, type MdSetAddress, type MdSetAdminWorkerAddresses, type MdSetDict, type MdSetEpConfig, type MdSetPeer, type MdSetQuorum, type MdSetSmlManagerConfig, type MdSignedRequest, type MdTreasuryFeeBps, type MdUlnSend, type MdUlnVerification, type MdUlnWorkerFeelibBytecode, type MdUlnWorkerFeelibEvents, type MdVerificationStatus, NAME_WIDTH, type NumberTypeLike, OPCODES, type POOO, PUBLIC_KEY_BYTE_LENGTH, type PathLike, type PathWayLike, type PriceFeedCache, type PriceFeedFeelib, type Primitive, type Proxy, type SendRequestOptions, type SmlConnection, type SmlManager, TonContractWrapper, TonObjectUnwrapper, type TonObjects, type TonObjectsKeys, type Uln, type UlnConnection, type UlnEvents, type UlnManager, type UlnReceiveConfig, type UlnSendConfig, type UlnWorkerFeelibInfo, type ValueOf, type WorkerCoreStorage, _getTypeWidth, addressToBigInt, addressToHex, appsAllStorages, appsCounter, asciiStringToBigint, baseBuildClass, baseDecodeClass, bigIntToHex, bigintToAddress, bigintToAsciiString, buildClass, buildPathClass, calculateCellConsumption, calculateCellConsumptionFromHex, cellsToHex, cl, clDeclare, clGetCellRef, clGetUint, compareAddresses, createVerifierDictSet, decodeClass, deconstructorMap, deepDecode, deepDiff, deserializeAddressList, emptyCell, emptyMap, emptyPOOO, fieldTypes, generateBuildClass, generateDecodeClass, getBocStringFromMessage, getCellName, getCellNameNumber, getClosestByteAlignedBits, getCompiledCode, getCompiledJson, getEndpointInitStorage, getLzDict, getMessageFromBocString, getName, getTotalBits, hexToCells, initBaseOApp, initBaseStorage, initWorkerCoreStorage, isClassName, isLoadableDict, jettonsZro, keyMap, nameMap, nullObject, numberTypeLikeToAbsBigInt, opcodeToName, parseTonAddress, printDeepDecode, printDeepDiff, protocolChannel, protocolController, protocolEndpoint, publicKeyToHash, serializeAddressList, simpleMsglibSmlConnection, simpleMsglibSmlManager, srcMultisig, to32ByteBuffer, tonObjects, tonRealNameByCellName, tonResolvedObjects, ultralightnodeUln, ultralightnodeUlnConnection, ultralightnodeUlnManager, ultralightnodeWorkerFeeLibs, workerFeeLibsDvnFeeLib, workerFeeLibsExecutorFeeLib, workersDvn };