@layerzerolabs/lz-ton-sdk-v2 3.0.120 → 3.0.121
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/CHANGELOG.md +6 -0
- package/artifacts/Dvn.compiled.json +1 -1
- package/artifacts/Executor.compiled.json +1 -1
- package/artifacts/Proxy.compiled.json +1 -1
- package/artifacts/UlnConnection.compiled.json +1 -1
- package/artifacts/UlnManager.compiled.json +1 -1
- package/deployments/ton-sandbox-local/AllStorages.json +1 -1
- package/deployments/ton-sandbox-local/Counter.json +1 -1
- package/deployments/ton-sandbox-local/SmlManager.json +1 -1
- package/deployments/ton-sandbox-local/UlnManager.json +1 -1
- package/deployments/ton-testnet/UlnManager.json +1 -1
- package/dist/index.cjs +67 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +48 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.mjs +67 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -481,6 +481,48 @@ declare const tonObjects: {
|
|
|
481
481
|
readonly fieldType: "cl::t::uint32";
|
|
482
482
|
};
|
|
483
483
|
};
|
|
484
|
+
readonly RouterInput: {
|
|
485
|
+
readonly name: "RtIpt";
|
|
486
|
+
readonly 0: {
|
|
487
|
+
readonly fieldName: "RouterInput::dstEid";
|
|
488
|
+
readonly fieldType: "cl::t::uint32";
|
|
489
|
+
};
|
|
490
|
+
readonly 1: {
|
|
491
|
+
readonly fieldName: "RouterInput::msgType";
|
|
492
|
+
readonly fieldType: "cl::t::uint8";
|
|
493
|
+
};
|
|
494
|
+
readonly 2: {
|
|
495
|
+
readonly fieldName: "RouterInput::extraOptions";
|
|
496
|
+
readonly fieldType: "cl::t::objRef";
|
|
497
|
+
};
|
|
498
|
+
readonly 3: {
|
|
499
|
+
readonly fieldName: "RouterInput::nativeFee";
|
|
500
|
+
readonly fieldType: "cl::t::coins";
|
|
501
|
+
};
|
|
502
|
+
readonly 4: {
|
|
503
|
+
readonly fieldName: "RouterInput::zroFee";
|
|
504
|
+
readonly fieldType: "cl::t::coins";
|
|
505
|
+
};
|
|
506
|
+
readonly 5: {
|
|
507
|
+
readonly fieldName: "RouterInput::message";
|
|
508
|
+
readonly fieldType: "cl::t::objRef";
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
readonly Router: {
|
|
512
|
+
readonly name: "router";
|
|
513
|
+
readonly 0: {
|
|
514
|
+
readonly fieldName: "Router::baseStorage";
|
|
515
|
+
readonly fieldType: "cl::t::objRef";
|
|
516
|
+
};
|
|
517
|
+
readonly 1: {
|
|
518
|
+
readonly fieldName: "Router::baseOAppStorage";
|
|
519
|
+
readonly fieldType: "cl::t::objRef";
|
|
520
|
+
};
|
|
521
|
+
readonly 2: {
|
|
522
|
+
readonly fieldName: "Router::id";
|
|
523
|
+
readonly fieldType: "cl::t::uint32";
|
|
524
|
+
};
|
|
525
|
+
};
|
|
484
526
|
readonly 'lz::Config': {
|
|
485
527
|
readonly name: "Config";
|
|
486
528
|
readonly 0: {
|
|
@@ -5075,6 +5117,7 @@ declare class LzGasTracker {
|
|
|
5075
5117
|
|
|
5076
5118
|
declare class appsAllStorages {
|
|
5077
5119
|
static getGetCellBits(contract: ExtendedContract<TonContractWrapper>, input: Cell): Promise<[bigint]>;
|
|
5120
|
+
static getGetForwardFee(contract: ExtendedContract<TonContractWrapper>, workchain: bigint, bits: bigint, cells: bigint): Promise<[bigint]>;
|
|
5078
5121
|
}
|
|
5079
5122
|
declare class appsCounter {
|
|
5080
5123
|
static getGetBaseOAppStorage(contract: ExtendedContract<TonContractWrapper>): Promise<[Cell]>;
|
|
@@ -5084,6 +5127,10 @@ declare class appsCounter {
|
|
|
5084
5127
|
static get_lzReceivePrepare(contract: ExtendedContract<TonContractWrapper>, storage: Cell, actions: Tuple, packet: Cell): Promise<[Tuple]>;
|
|
5085
5128
|
static getFailNextLzReceive(contract: ExtendedContract<TonContractWrapper>): Promise<[Tuple]>;
|
|
5086
5129
|
}
|
|
5130
|
+
declare class appsRouter {
|
|
5131
|
+
static getGetBaseOAppStorage(contract: ExtendedContract<TonContractWrapper>): Promise<[Cell]>;
|
|
5132
|
+
static get_lzReceivePrepare(contract: ExtendedContract<TonContractWrapper>, storage: Cell, actions: Tuple, packet: Cell): Promise<[Tuple]>;
|
|
5133
|
+
}
|
|
5087
5134
|
declare class jettonsZro {
|
|
5088
5135
|
static getGetJettonData(contract: ExtendedContract<TonContractWrapper>): Promise<[bigint, bigint, Address, Cell, Cell]>;
|
|
5089
5136
|
static getGetWalletAddress(contract: ExtendedContract<TonContractWrapper>, owner_address: Address): Promise<[Address]>;
|
|
@@ -15941,4 +15988,4 @@ declare function getCompiledJson(name: string, root: string): {
|
|
|
15941
15988
|
hex: string;
|
|
15942
15989
|
};
|
|
15943
15990
|
|
|
15944
|
-
export { type ActionEvent, type AddressListTypeLike, type AddressTypeLike, type ArbitrumPriceFeedExtension, type BaseOApp, type BaseStorage, 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 FieldTypeToValue, type FieldTypes, type Fields, type GasStructure, type LZFields, type LoadableDict, type LzAttestation, type LzConfig, type LzEpConfig, type LzEpConfigNewWithConnection, type LzEpConfigNewWithDefaults, 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 MdDeployNewWithExtraInfo, type MdExecuteParams, type MdExtendedMd, type MdGetMsglibInfoCallback, type MdInitEndpoint, type MdInitSmlConnection, type MdInitUln, type MdInitUlnConnection, type MdInitUlnConnectionNewOnlyConfig, 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, type PathLike, type PathWayLike, type PriceFeedCache, type PriceFeedFeelib, type Primitive, type Proxy, type Router, type RouterInput, type SmlConnection, type SmlManager, TonContractWrapper, TonObjectUnwrapper, type TonObjects, type TonObjectsKeys, type Uln, type UlnConnection, type UlnEvents, type UlnManager, type UlnReceiveConfig, type UlnReceiveConfigNewWithDefaults, type UlnSendConfig, type UlnSendConfigNewWithDefaults, type UlnWorkerFeelibInfo, type ValueOf, type WorkerCoreStorage, _getTypeWidth, appsAllStorages, appsCounter, asciiStringToBigint, baseBuildClass, baseDecodeClass, bigintToAsciiString, buildClass, buildPathClass, calculateCellConsumption, calculateCellConsumptionFromHex, cellsToHex, cl, clDeclare, clGetCellRef, clGetUint, decodeClass, deconstructorMap, deepDecode, deepDiff, deserializeAddressList, emptyCell, emptyMap, emptyPOOO, fieldTypes, generateBuildClass, generateDecodeClass, getCellName, getCellNameNumber, getClosestByteAlignedBits, getCompiledCode, getCompiledJson, getEndpointInitStorage, getName, getTotalBits, hexToCells, initBaseOApp, initBaseStorage, initWorkerCoreStorage, isClassName, isLoadableDict, jettonsZro, keyMap, nameMap, nullObject, numberTypeLikeToAbsBigInt, opcodeToName, printDeepDecode, printDeepDiff, protocolChannel, protocolController, protocolEndpoint, serializeAddressList, simpleMsglibSmlConnection, simpleMsglibSmlManager, srcMultisig, tonObjects, tonRealNameByCellName, tonResolvedObjects, ultralightnodeUln, ultralightnodeUlnConnection, ultralightnodeUlnManager, ultralightnodeWorkerFeeLibs, workerFeeLibsDvnFeeLib, workerFeeLibsExecutorFeeLib, workerFeeLibsMaliciousFeeLib, workersDvn };
|
|
15991
|
+
export { type ActionEvent, type AddressListTypeLike, type AddressTypeLike, type ArbitrumPriceFeedExtension, type BaseOApp, type BaseStorage, 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 FieldTypeToValue, type FieldTypes, type Fields, type GasStructure, type LZFields, type LoadableDict, type LzAttestation, type LzConfig, type LzEpConfig, type LzEpConfigNewWithConnection, type LzEpConfigNewWithDefaults, 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 MdDeployNewWithExtraInfo, type MdExecuteParams, type MdExtendedMd, type MdGetMsglibInfoCallback, type MdInitEndpoint, type MdInitSmlConnection, type MdInitUln, type MdInitUlnConnection, type MdInitUlnConnectionNewOnlyConfig, 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, type PathLike, type PathWayLike, type PriceFeedCache, type PriceFeedFeelib, type Primitive, type Proxy, type Router, type RouterInput, type SmlConnection, type SmlManager, TonContractWrapper, TonObjectUnwrapper, type TonObjects, type TonObjectsKeys, type Uln, type UlnConnection, type UlnEvents, type UlnManager, type UlnReceiveConfig, type UlnReceiveConfigNewWithDefaults, type UlnSendConfig, type UlnSendConfigNewWithDefaults, type UlnWorkerFeelibInfo, type ValueOf, type WorkerCoreStorage, _getTypeWidth, appsAllStorages, appsCounter, appsRouter, asciiStringToBigint, baseBuildClass, baseDecodeClass, bigintToAsciiString, buildClass, buildPathClass, calculateCellConsumption, calculateCellConsumptionFromHex, cellsToHex, cl, clDeclare, clGetCellRef, clGetUint, decodeClass, deconstructorMap, deepDecode, deepDiff, deserializeAddressList, emptyCell, emptyMap, emptyPOOO, fieldTypes, generateBuildClass, generateDecodeClass, getCellName, getCellNameNumber, getClosestByteAlignedBits, getCompiledCode, getCompiledJson, getEndpointInitStorage, getName, getTotalBits, hexToCells, initBaseOApp, initBaseStorage, initWorkerCoreStorage, isClassName, isLoadableDict, jettonsZro, keyMap, nameMap, nullObject, numberTypeLikeToAbsBigInt, opcodeToName, printDeepDecode, printDeepDiff, protocolChannel, protocolController, protocolEndpoint, serializeAddressList, simpleMsglibSmlConnection, simpleMsglibSmlManager, srcMultisig, tonObjects, tonRealNameByCellName, tonResolvedObjects, ultralightnodeUln, ultralightnodeUlnConnection, ultralightnodeUlnManager, ultralightnodeWorkerFeeLibs, workerFeeLibsDvnFeeLib, workerFeeLibsExecutorFeeLib, workerFeeLibsMaliciousFeeLib, workersDvn };
|
package/dist/index.d.ts
CHANGED
|
@@ -481,6 +481,48 @@ declare const tonObjects: {
|
|
|
481
481
|
readonly fieldType: "cl::t::uint32";
|
|
482
482
|
};
|
|
483
483
|
};
|
|
484
|
+
readonly RouterInput: {
|
|
485
|
+
readonly name: "RtIpt";
|
|
486
|
+
readonly 0: {
|
|
487
|
+
readonly fieldName: "RouterInput::dstEid";
|
|
488
|
+
readonly fieldType: "cl::t::uint32";
|
|
489
|
+
};
|
|
490
|
+
readonly 1: {
|
|
491
|
+
readonly fieldName: "RouterInput::msgType";
|
|
492
|
+
readonly fieldType: "cl::t::uint8";
|
|
493
|
+
};
|
|
494
|
+
readonly 2: {
|
|
495
|
+
readonly fieldName: "RouterInput::extraOptions";
|
|
496
|
+
readonly fieldType: "cl::t::objRef";
|
|
497
|
+
};
|
|
498
|
+
readonly 3: {
|
|
499
|
+
readonly fieldName: "RouterInput::nativeFee";
|
|
500
|
+
readonly fieldType: "cl::t::coins";
|
|
501
|
+
};
|
|
502
|
+
readonly 4: {
|
|
503
|
+
readonly fieldName: "RouterInput::zroFee";
|
|
504
|
+
readonly fieldType: "cl::t::coins";
|
|
505
|
+
};
|
|
506
|
+
readonly 5: {
|
|
507
|
+
readonly fieldName: "RouterInput::message";
|
|
508
|
+
readonly fieldType: "cl::t::objRef";
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
readonly Router: {
|
|
512
|
+
readonly name: "router";
|
|
513
|
+
readonly 0: {
|
|
514
|
+
readonly fieldName: "Router::baseStorage";
|
|
515
|
+
readonly fieldType: "cl::t::objRef";
|
|
516
|
+
};
|
|
517
|
+
readonly 1: {
|
|
518
|
+
readonly fieldName: "Router::baseOAppStorage";
|
|
519
|
+
readonly fieldType: "cl::t::objRef";
|
|
520
|
+
};
|
|
521
|
+
readonly 2: {
|
|
522
|
+
readonly fieldName: "Router::id";
|
|
523
|
+
readonly fieldType: "cl::t::uint32";
|
|
524
|
+
};
|
|
525
|
+
};
|
|
484
526
|
readonly 'lz::Config': {
|
|
485
527
|
readonly name: "Config";
|
|
486
528
|
readonly 0: {
|
|
@@ -5075,6 +5117,7 @@ declare class LzGasTracker {
|
|
|
5075
5117
|
|
|
5076
5118
|
declare class appsAllStorages {
|
|
5077
5119
|
static getGetCellBits(contract: ExtendedContract<TonContractWrapper>, input: Cell): Promise<[bigint]>;
|
|
5120
|
+
static getGetForwardFee(contract: ExtendedContract<TonContractWrapper>, workchain: bigint, bits: bigint, cells: bigint): Promise<[bigint]>;
|
|
5078
5121
|
}
|
|
5079
5122
|
declare class appsCounter {
|
|
5080
5123
|
static getGetBaseOAppStorage(contract: ExtendedContract<TonContractWrapper>): Promise<[Cell]>;
|
|
@@ -5084,6 +5127,10 @@ declare class appsCounter {
|
|
|
5084
5127
|
static get_lzReceivePrepare(contract: ExtendedContract<TonContractWrapper>, storage: Cell, actions: Tuple, packet: Cell): Promise<[Tuple]>;
|
|
5085
5128
|
static getFailNextLzReceive(contract: ExtendedContract<TonContractWrapper>): Promise<[Tuple]>;
|
|
5086
5129
|
}
|
|
5130
|
+
declare class appsRouter {
|
|
5131
|
+
static getGetBaseOAppStorage(contract: ExtendedContract<TonContractWrapper>): Promise<[Cell]>;
|
|
5132
|
+
static get_lzReceivePrepare(contract: ExtendedContract<TonContractWrapper>, storage: Cell, actions: Tuple, packet: Cell): Promise<[Tuple]>;
|
|
5133
|
+
}
|
|
5087
5134
|
declare class jettonsZro {
|
|
5088
5135
|
static getGetJettonData(contract: ExtendedContract<TonContractWrapper>): Promise<[bigint, bigint, Address, Cell, Cell]>;
|
|
5089
5136
|
static getGetWalletAddress(contract: ExtendedContract<TonContractWrapper>, owner_address: Address): Promise<[Address]>;
|
|
@@ -15941,4 +15988,4 @@ declare function getCompiledJson(name: string, root: string): {
|
|
|
15941
15988
|
hex: string;
|
|
15942
15989
|
};
|
|
15943
15990
|
|
|
15944
|
-
export { type ActionEvent, type AddressListTypeLike, type AddressTypeLike, type ArbitrumPriceFeedExtension, type BaseOApp, type BaseStorage, 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 FieldTypeToValue, type FieldTypes, type Fields, type GasStructure, type LZFields, type LoadableDict, type LzAttestation, type LzConfig, type LzEpConfig, type LzEpConfigNewWithConnection, type LzEpConfigNewWithDefaults, 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 MdDeployNewWithExtraInfo, type MdExecuteParams, type MdExtendedMd, type MdGetMsglibInfoCallback, type MdInitEndpoint, type MdInitSmlConnection, type MdInitUln, type MdInitUlnConnection, type MdInitUlnConnectionNewOnlyConfig, 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, type PathLike, type PathWayLike, type PriceFeedCache, type PriceFeedFeelib, type Primitive, type Proxy, type Router, type RouterInput, type SmlConnection, type SmlManager, TonContractWrapper, TonObjectUnwrapper, type TonObjects, type TonObjectsKeys, type Uln, type UlnConnection, type UlnEvents, type UlnManager, type UlnReceiveConfig, type UlnReceiveConfigNewWithDefaults, type UlnSendConfig, type UlnSendConfigNewWithDefaults, type UlnWorkerFeelibInfo, type ValueOf, type WorkerCoreStorage, _getTypeWidth, appsAllStorages, appsCounter, asciiStringToBigint, baseBuildClass, baseDecodeClass, bigintToAsciiString, buildClass, buildPathClass, calculateCellConsumption, calculateCellConsumptionFromHex, cellsToHex, cl, clDeclare, clGetCellRef, clGetUint, decodeClass, deconstructorMap, deepDecode, deepDiff, deserializeAddressList, emptyCell, emptyMap, emptyPOOO, fieldTypes, generateBuildClass, generateDecodeClass, getCellName, getCellNameNumber, getClosestByteAlignedBits, getCompiledCode, getCompiledJson, getEndpointInitStorage, getName, getTotalBits, hexToCells, initBaseOApp, initBaseStorage, initWorkerCoreStorage, isClassName, isLoadableDict, jettonsZro, keyMap, nameMap, nullObject, numberTypeLikeToAbsBigInt, opcodeToName, printDeepDecode, printDeepDiff, protocolChannel, protocolController, protocolEndpoint, serializeAddressList, simpleMsglibSmlConnection, simpleMsglibSmlManager, srcMultisig, tonObjects, tonRealNameByCellName, tonResolvedObjects, ultralightnodeUln, ultralightnodeUlnConnection, ultralightnodeUlnManager, ultralightnodeWorkerFeeLibs, workerFeeLibsDvnFeeLib, workerFeeLibsExecutorFeeLib, workerFeeLibsMaliciousFeeLib, workersDvn };
|
|
15991
|
+
export { type ActionEvent, type AddressListTypeLike, type AddressTypeLike, type ArbitrumPriceFeedExtension, type BaseOApp, type BaseStorage, 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 FieldTypeToValue, type FieldTypes, type Fields, type GasStructure, type LZFields, type LoadableDict, type LzAttestation, type LzConfig, type LzEpConfig, type LzEpConfigNewWithConnection, type LzEpConfigNewWithDefaults, 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 MdDeployNewWithExtraInfo, type MdExecuteParams, type MdExtendedMd, type MdGetMsglibInfoCallback, type MdInitEndpoint, type MdInitSmlConnection, type MdInitUln, type MdInitUlnConnection, type MdInitUlnConnectionNewOnlyConfig, 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, type PathLike, type PathWayLike, type PriceFeedCache, type PriceFeedFeelib, type Primitive, type Proxy, type Router, type RouterInput, type SmlConnection, type SmlManager, TonContractWrapper, TonObjectUnwrapper, type TonObjects, type TonObjectsKeys, type Uln, type UlnConnection, type UlnEvents, type UlnManager, type UlnReceiveConfig, type UlnReceiveConfigNewWithDefaults, type UlnSendConfig, type UlnSendConfigNewWithDefaults, type UlnWorkerFeelibInfo, type ValueOf, type WorkerCoreStorage, _getTypeWidth, appsAllStorages, appsCounter, appsRouter, asciiStringToBigint, baseBuildClass, baseDecodeClass, bigintToAsciiString, buildClass, buildPathClass, calculateCellConsumption, calculateCellConsumptionFromHex, cellsToHex, cl, clDeclare, clGetCellRef, clGetUint, decodeClass, deconstructorMap, deepDecode, deepDiff, deserializeAddressList, emptyCell, emptyMap, emptyPOOO, fieldTypes, generateBuildClass, generateDecodeClass, getCellName, getCellNameNumber, getClosestByteAlignedBits, getCompiledCode, getCompiledJson, getEndpointInitStorage, getName, getTotalBits, hexToCells, initBaseOApp, initBaseStorage, initWorkerCoreStorage, isClassName, isLoadableDict, jettonsZro, keyMap, nameMap, nullObject, numberTypeLikeToAbsBigInt, opcodeToName, printDeepDecode, printDeepDiff, protocolChannel, protocolController, protocolEndpoint, serializeAddressList, simpleMsglibSmlConnection, simpleMsglibSmlManager, srcMultisig, tonObjects, tonRealNameByCellName, tonResolvedObjects, ultralightnodeUln, ultralightnodeUlnConnection, ultralightnodeUlnManager, ultralightnodeWorkerFeeLibs, workerFeeLibsDvnFeeLib, workerFeeLibsExecutorFeeLib, workerFeeLibsMaliciousFeeLib, workersDvn };
|
package/dist/index.mjs
CHANGED
|
@@ -9737,6 +9737,48 @@ var tonObjects = {
|
|
|
9737
9737
|
fieldType: "cl::t::uint32"
|
|
9738
9738
|
}
|
|
9739
9739
|
},
|
|
9740
|
+
RouterInput: {
|
|
9741
|
+
name: "RtIpt",
|
|
9742
|
+
0: {
|
|
9743
|
+
fieldName: "RouterInput::dstEid",
|
|
9744
|
+
fieldType: "cl::t::uint32"
|
|
9745
|
+
},
|
|
9746
|
+
1: {
|
|
9747
|
+
fieldName: "RouterInput::msgType",
|
|
9748
|
+
fieldType: "cl::t::uint8"
|
|
9749
|
+
},
|
|
9750
|
+
2: {
|
|
9751
|
+
fieldName: "RouterInput::extraOptions",
|
|
9752
|
+
fieldType: "cl::t::objRef"
|
|
9753
|
+
},
|
|
9754
|
+
3: {
|
|
9755
|
+
fieldName: "RouterInput::nativeFee",
|
|
9756
|
+
fieldType: "cl::t::coins"
|
|
9757
|
+
},
|
|
9758
|
+
4: {
|
|
9759
|
+
fieldName: "RouterInput::zroFee",
|
|
9760
|
+
fieldType: "cl::t::coins"
|
|
9761
|
+
},
|
|
9762
|
+
5: {
|
|
9763
|
+
fieldName: "RouterInput::message",
|
|
9764
|
+
fieldType: "cl::t::objRef"
|
|
9765
|
+
}
|
|
9766
|
+
},
|
|
9767
|
+
Router: {
|
|
9768
|
+
name: "router",
|
|
9769
|
+
0: {
|
|
9770
|
+
fieldName: "Router::baseStorage",
|
|
9771
|
+
fieldType: "cl::t::objRef"
|
|
9772
|
+
},
|
|
9773
|
+
1: {
|
|
9774
|
+
fieldName: "Router::baseOAppStorage",
|
|
9775
|
+
fieldType: "cl::t::objRef"
|
|
9776
|
+
},
|
|
9777
|
+
2: {
|
|
9778
|
+
fieldName: "Router::id",
|
|
9779
|
+
fieldType: "cl::t::uint32"
|
|
9780
|
+
}
|
|
9781
|
+
},
|
|
9740
9782
|
"lz::Config": {
|
|
9741
9783
|
name: "Config",
|
|
9742
9784
|
0: {
|
|
@@ -13018,6 +13060,15 @@ var appsAllStorages = class {
|
|
|
13018
13060
|
const stack = await contract.getViewFunction("getCellBits", args);
|
|
13019
13061
|
return [stack.readBigNumber()];
|
|
13020
13062
|
}
|
|
13063
|
+
static async getGetForwardFee(contract, workchain, bits, cells) {
|
|
13064
|
+
const args = [
|
|
13065
|
+
{ type: "int", value: workchain },
|
|
13066
|
+
{ type: "int", value: bits },
|
|
13067
|
+
{ type: "int", value: cells }
|
|
13068
|
+
];
|
|
13069
|
+
const stack = await contract.getViewFunction("getForwardFee", args);
|
|
13070
|
+
return [stack.readBigNumber()];
|
|
13071
|
+
}
|
|
13021
13072
|
};
|
|
13022
13073
|
var appsCounter = class {
|
|
13023
13074
|
static async getGetBaseOAppStorage(contract) {
|
|
@@ -13056,6 +13107,21 @@ var appsCounter = class {
|
|
|
13056
13107
|
return [stack.readTuple().pop()];
|
|
13057
13108
|
}
|
|
13058
13109
|
};
|
|
13110
|
+
var appsRouter = class {
|
|
13111
|
+
static async getGetBaseOAppStorage(contract) {
|
|
13112
|
+
const stack = await contract.getViewFunction("getBaseOAppStorage", []);
|
|
13113
|
+
return [stack.readCell()];
|
|
13114
|
+
}
|
|
13115
|
+
static async get_lzReceivePrepare(contract, storage, actions, packet) {
|
|
13116
|
+
const args = [
|
|
13117
|
+
{ type: "cell", cell: storage },
|
|
13118
|
+
{ type: "tuple", items: actions.items },
|
|
13119
|
+
{ type: "cell", cell: packet }
|
|
13120
|
+
];
|
|
13121
|
+
const stack = await contract.getViewFunction("_lzReceivePrepare", args);
|
|
13122
|
+
return [stack.readTuple().pop()];
|
|
13123
|
+
}
|
|
13124
|
+
};
|
|
13059
13125
|
var jettonsZro = class {
|
|
13060
13126
|
static async getGetJettonData(contract) {
|
|
13061
13127
|
const stack = await contract.getViewFunction("get_jetton_data", []);
|
|
@@ -18218,6 +18284,6 @@ var LzGasTracker = class _LzGasTracker {
|
|
|
18218
18284
|
*)
|
|
18219
18285
|
*/
|
|
18220
18286
|
|
|
18221
|
-
export { ERRORS, EVENTS, LzEventHandler, LzGasTracker, MAX_CELL_BITS2 as MAX_CELL_BITS, NAME_WIDTH2 as NAME_WIDTH, OPCODES, TonContractWrapper, TonObjectUnwrapper, _getTypeWidth2 as _getTypeWidth, addressToBigInt, addressToHex, appsAllStorages, appsCounter, asciiStringToBigint, baseBuildClass, baseDecodeClass2 as baseDecodeClass, bigintToAddress, bigintToAsciiString2 as bigintToAsciiString, bigintToSizedBuffer, bufferToBigInt, buildClass, buildPathClass, calculateCellConsumption, calculateCellConsumptionFromHex, cellsToHex2 as cellsToHex, cl2 as cl, clDeclare2 as clDeclare, clGetCellRef2 as clGetCellRef, clGetUint2 as clGetUint, createVerifierDictSet, decodeClass, deconstructorMap, deepDecode, deepDiff, deserializeAddressList2 as deserializeAddressList, emptyCell2 as emptyCell, emptyMap, emptyPOOO2 as emptyPOOO, fieldTypes, generateBuildClass, generateDecodeClass2 as generateDecodeClass, getCellName2 as getCellName, getCellNameNumber2 as getCellNameNumber, getClosestByteAlignedBits2 as getClosestByteAlignedBits, getCompiledCode, getCompiledJson, getEndpointInitStorage, getName, getTotalBits2 as getTotalBits, hexToCells, initBaseOApp, initBaseStorage, initWorkerCoreStorage, isClassName2 as isClassName, isLoadableDict, jettonsZro, keyMap, nameMap, nullObject, numberTypeLikeToAbsBigInt2 as numberTypeLikeToAbsBigInt, opcodeToName, parseTonAddress, printDeepDecode, printDeepDiff, protocolChannel, protocolController, protocolEndpoint, publicKeyToHash, serializeAddressList2 as serializeAddressList, simpleMsglibSmlConnection, simpleMsglibSmlManager, srcMultisig, tonObjects, tonRealNameByCellName, tonResolvedObjects, ultralightnodeUln, ultralightnodeUlnConnection, ultralightnodeUlnManager, ultralightnodeWorkerFeeLibs, workerFeeLibsDvnFeeLib, workerFeeLibsExecutorFeeLib, workerFeeLibsMaliciousFeeLib, workersDvn };
|
|
18287
|
+
export { ERRORS, EVENTS, LzEventHandler, LzGasTracker, MAX_CELL_BITS2 as MAX_CELL_BITS, NAME_WIDTH2 as NAME_WIDTH, OPCODES, TonContractWrapper, TonObjectUnwrapper, _getTypeWidth2 as _getTypeWidth, addressToBigInt, addressToHex, appsAllStorages, appsCounter, appsRouter, asciiStringToBigint, baseBuildClass, baseDecodeClass2 as baseDecodeClass, bigintToAddress, bigintToAsciiString2 as bigintToAsciiString, bigintToSizedBuffer, bufferToBigInt, buildClass, buildPathClass, calculateCellConsumption, calculateCellConsumptionFromHex, cellsToHex2 as cellsToHex, cl2 as cl, clDeclare2 as clDeclare, clGetCellRef2 as clGetCellRef, clGetUint2 as clGetUint, createVerifierDictSet, decodeClass, deconstructorMap, deepDecode, deepDiff, deserializeAddressList2 as deserializeAddressList, emptyCell2 as emptyCell, emptyMap, emptyPOOO2 as emptyPOOO, fieldTypes, generateBuildClass, generateDecodeClass2 as generateDecodeClass, getCellName2 as getCellName, getCellNameNumber2 as getCellNameNumber, getClosestByteAlignedBits2 as getClosestByteAlignedBits, getCompiledCode, getCompiledJson, getEndpointInitStorage, getName, getTotalBits2 as getTotalBits, hexToCells, initBaseOApp, initBaseStorage, initWorkerCoreStorage, isClassName2 as isClassName, isLoadableDict, jettonsZro, keyMap, nameMap, nullObject, numberTypeLikeToAbsBigInt2 as numberTypeLikeToAbsBigInt, opcodeToName, parseTonAddress, printDeepDecode, printDeepDiff, protocolChannel, protocolController, protocolEndpoint, publicKeyToHash, serializeAddressList2 as serializeAddressList, simpleMsglibSmlConnection, simpleMsglibSmlManager, srcMultisig, tonObjects, tonRealNameByCellName, tonResolvedObjects, ultralightnodeUln, ultralightnodeUlnConnection, ultralightnodeUlnManager, ultralightnodeWorkerFeeLibs, workerFeeLibsDvnFeeLib, workerFeeLibsExecutorFeeLib, workerFeeLibsMaliciousFeeLib, workersDvn };
|
|
18222
18288
|
//# sourceMappingURL=index.mjs.map
|
|
18223
18289
|
//# sourceMappingURL=index.mjs.map
|