@layerzerolabs/lz-ton-sdk-v2 3.0.40 → 3.0.42
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 +12 -0
- package/dist/index.cjs +56 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +34 -15
- package/dist/index.d.ts +34 -15
- package/dist/index.mjs +56 -30
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -4197,7 +4197,7 @@ declare class TonContractWrapper extends BaseWrapper {
|
|
|
4197
4197
|
}): Promise<Cell>;
|
|
4198
4198
|
getNewDvnFeelib(provider: ContractProvider, args: {
|
|
4199
4199
|
quorum: bigint;
|
|
4200
|
-
|
|
4200
|
+
remoteGas: bigint;
|
|
4201
4201
|
multiplierBps: bigint;
|
|
4202
4202
|
floorMarginUSD: bigint;
|
|
4203
4203
|
}): Promise<Cell>;
|
|
@@ -4208,11 +4208,17 @@ declare class TonContractWrapper extends BaseWrapper {
|
|
|
4208
4208
|
nativeCap: bigint;
|
|
4209
4209
|
lzComposeBaseGas: bigint;
|
|
4210
4210
|
}): Promise<Cell>;
|
|
4211
|
+
getNewArbitrumPriceFeedExtension(provider: ContractProvider, args: {
|
|
4212
|
+
gasPerL2Tx: bigint;
|
|
4213
|
+
gasPerL1CallDataByte: bigint;
|
|
4214
|
+
}): Promise<Cell>;
|
|
4211
4215
|
getNewPriceFeedFeelib(provider: ContractProvider, args: {
|
|
4212
4216
|
priceRatio: bigint;
|
|
4213
|
-
|
|
4217
|
+
gasPriceInRemoteUnit: bigint;
|
|
4214
4218
|
gasPerByte: bigint;
|
|
4215
4219
|
nativePriceUsd: bigint;
|
|
4220
|
+
arbitrumExtension: Cell;
|
|
4221
|
+
optimismExtension: Cell;
|
|
4216
4222
|
}): Promise<Cell>;
|
|
4217
4223
|
getNewWorkerCoreStorage(provider: ContractProvider, args: {
|
|
4218
4224
|
admins: Cell;
|
|
@@ -4234,10 +4240,6 @@ declare class TonContractWrapper extends BaseWrapper {
|
|
|
4234
4240
|
amount: bigint;
|
|
4235
4241
|
target: bigint;
|
|
4236
4242
|
}): Promise<Cell>;
|
|
4237
|
-
getNewMdDropEvent(provider: ContractProvider, args: {
|
|
4238
|
-
nativeAmount: bigint;
|
|
4239
|
-
receiver: bigint;
|
|
4240
|
-
}): Promise<Cell>;
|
|
4241
4243
|
getNewMdExecuteParams(provider: ContractProvider, args: {
|
|
4242
4244
|
target: bigint;
|
|
4243
4245
|
callData: Cell;
|
|
@@ -4247,6 +4249,8 @@ declare class TonContractWrapper extends BaseWrapper {
|
|
|
4247
4249
|
}): Promise<Cell>;
|
|
4248
4250
|
getNewMdNativeDrop(provider: ContractProvider, args: {
|
|
4249
4251
|
payees: Cell;
|
|
4252
|
+
packetId: Cell;
|
|
4253
|
+
msglib: bigint;
|
|
4250
4254
|
}): Promise<Cell>;
|
|
4251
4255
|
getNewMdSetDict(provider: ContractProvider, args: {
|
|
4252
4256
|
nonce: bigint;
|
|
@@ -4268,6 +4272,7 @@ declare class TonContractWrapper extends BaseWrapper {
|
|
|
4268
4272
|
admins: Cell;
|
|
4269
4273
|
version: bigint;
|
|
4270
4274
|
priceFeedFeeLib: Cell;
|
|
4275
|
+
dstEid: bigint;
|
|
4271
4276
|
}): Promise<Cell>;
|
|
4272
4277
|
getNewProxy(provider: ContractProvider, args: {
|
|
4273
4278
|
admins: Cell;
|
|
@@ -4731,7 +4736,7 @@ interface UlnManager {
|
|
|
4731
4736
|
}
|
|
4732
4737
|
interface DvnFeelib {
|
|
4733
4738
|
quorum: bigint;
|
|
4734
|
-
|
|
4739
|
+
remoteGas: bigint;
|
|
4735
4740
|
multiplierBps: bigint;
|
|
4736
4741
|
floorMarginUSD: bigint;
|
|
4737
4742
|
}
|
|
@@ -4742,11 +4747,17 @@ interface ExecutorFeelib {
|
|
|
4742
4747
|
nativeCap: bigint;
|
|
4743
4748
|
lzComposeBaseGas: bigint;
|
|
4744
4749
|
}
|
|
4750
|
+
interface ArbitrumPriceFeedExtension {
|
|
4751
|
+
gasPerL2Tx: bigint;
|
|
4752
|
+
gasPerL1CallDataByte: bigint;
|
|
4753
|
+
}
|
|
4745
4754
|
interface PriceFeedFeelib {
|
|
4746
4755
|
priceRatio: bigint;
|
|
4747
|
-
|
|
4756
|
+
gasPriceInRemoteUnit: bigint;
|
|
4748
4757
|
gasPerByte: bigint;
|
|
4749
4758
|
nativePriceUsd: bigint;
|
|
4759
|
+
arbitrumExtension: Cell;
|
|
4760
|
+
optimismExtension: Cell;
|
|
4750
4761
|
}
|
|
4751
4762
|
interface WorkerCoreStorage {
|
|
4752
4763
|
admins: Cell;
|
|
@@ -4769,10 +4780,6 @@ interface MdClaimTon extends Md {
|
|
|
4769
4780
|
amount: bigint;
|
|
4770
4781
|
target: bigint;
|
|
4771
4782
|
}
|
|
4772
|
-
interface MdDropEvent extends Md {
|
|
4773
|
-
nativeAmount: bigint;
|
|
4774
|
-
receiver: bigint;
|
|
4775
|
-
}
|
|
4776
4783
|
interface MdExecuteParams extends Md {
|
|
4777
4784
|
target: bigint;
|
|
4778
4785
|
callData: Cell;
|
|
@@ -4782,6 +4789,8 @@ interface MdExecuteParams extends Md {
|
|
|
4782
4789
|
}
|
|
4783
4790
|
interface MdNativeDrop extends Md {
|
|
4784
4791
|
payees: Cell;
|
|
4792
|
+
packetId: Cell;
|
|
4793
|
+
msglib: bigint;
|
|
4785
4794
|
}
|
|
4786
4795
|
interface MdSetDict extends Md {
|
|
4787
4796
|
nonce: bigint;
|
|
@@ -4802,6 +4811,7 @@ interface MdSignedRequest extends Md {
|
|
|
4802
4811
|
interface PriceFeedCache {
|
|
4803
4812
|
workerCoreStorage: Cell;
|
|
4804
4813
|
priceFeedFeeLibStorage: Cell;
|
|
4814
|
+
dstEid: bigint;
|
|
4805
4815
|
}
|
|
4806
4816
|
interface Proxy {
|
|
4807
4817
|
workerCoreStorage: Cell;
|
|
@@ -4929,12 +4939,12 @@ declare class TonObjectUnwrapper {
|
|
|
4929
4939
|
static getUlnManagerToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<UlnManager>;
|
|
4930
4940
|
static getDvnFeelibToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<DvnFeelib>;
|
|
4931
4941
|
static getExecutorFeelibToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<ExecutorFeelib>;
|
|
4942
|
+
static getArbitrumPriceFeedExtensionToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<ArbitrumPriceFeedExtension>;
|
|
4932
4943
|
static getPriceFeedFeelibToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<PriceFeedFeelib>;
|
|
4933
4944
|
static getWorkerCoreStorageToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<WorkerCoreStorage>;
|
|
4934
4945
|
static getDvnToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<Dvn>;
|
|
4935
4946
|
static getExecutorToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<Executor>;
|
|
4936
4947
|
static getMdClaimTonToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<MdClaimTon>;
|
|
4937
|
-
static getMdDropEventToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<MdDropEvent>;
|
|
4938
4948
|
static getMdExecuteParamsToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<MdExecuteParams>;
|
|
4939
4949
|
static getMdNativeDropToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<MdNativeDrop>;
|
|
4940
4950
|
static getMdSetDictToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<MdSetDict>;
|
|
@@ -5015,12 +5025,12 @@ declare const deconstructorMap: {
|
|
|
5015
5025
|
ulnMgr: typeof TonObjectUnwrapper.getUlnManagerToTS;
|
|
5016
5026
|
UlnDvnFl: typeof TonObjectUnwrapper.getDvnFeelibToTS;
|
|
5017
5027
|
UlnExecutr: typeof TonObjectUnwrapper.getExecutorFeelibToTS;
|
|
5028
|
+
ArbFeeExt: typeof TonObjectUnwrapper.getArbitrumPriceFeedExtensionToTS;
|
|
5018
5029
|
PFFeelib: typeof TonObjectUnwrapper.getPriceFeedFeelibToTS;
|
|
5019
5030
|
wrkCorStor: typeof TonObjectUnwrapper.getWorkerCoreStorageToTS;
|
|
5020
5031
|
dvn: typeof TonObjectUnwrapper.getDvnToTS;
|
|
5021
5032
|
executor: typeof TonObjectUnwrapper.getExecutorToTS;
|
|
5022
5033
|
claimTon: typeof TonObjectUnwrapper.getMdClaimTonToTS;
|
|
5023
|
-
DropEvent: typeof TonObjectUnwrapper.getMdDropEventToTS;
|
|
5024
5034
|
execParams: typeof TonObjectUnwrapper.getMdExecuteParamsToTS;
|
|
5025
5035
|
NativeDrop: typeof TonObjectUnwrapper.getMdNativeDropToTS;
|
|
5026
5036
|
setDct: typeof TonObjectUnwrapper.getMdSetDictToTS;
|
|
@@ -5490,7 +5500,12 @@ declare const OPCODES: {
|
|
|
5490
5500
|
readonly Executor_OP_LZ_RECEIVE_ALERT: 3844476787n;
|
|
5491
5501
|
readonly PriceFeedCache_OP_UPDATE_PRICE: 3356097040n;
|
|
5492
5502
|
readonly PriceFeedCache_OP_UPDATE_NATIVE_PRICE: 2272264441n;
|
|
5503
|
+
readonly PriceFeedCache_OP_UPDATE_OP_PRICES: 68094176n;
|
|
5504
|
+
readonly PriceFeedCache_OP_UPDATE_OP_NATIVE_PRICES: 1736418267n;
|
|
5505
|
+
readonly PriceFeedCache_OP_UPDATE_ARB_EXTENSION: 4188442884n;
|
|
5493
5506
|
readonly Proxy_OP_CALL_CONTRACT: 166741977n;
|
|
5507
|
+
readonly Proxy_OP_EMIT_EVENT: 3445418055n;
|
|
5508
|
+
readonly Proxy_OP_SEND_TON: 3496427869n;
|
|
5494
5509
|
readonly Proxy_OP_HANDLE_CALLBACK: 542230303n;
|
|
5495
5510
|
readonly Proxy_OP_TOGGLE_CALLBACK: 441875500n;
|
|
5496
5511
|
};
|
|
@@ -5791,6 +5806,10 @@ declare const EVENTS: {
|
|
|
5791
5806
|
readonly stringValue: "Worker::event::ADMINS_SET";
|
|
5792
5807
|
readonly intValue: 548840522271664353140921748684534232820842422473671553795412n;
|
|
5793
5808
|
};
|
|
5809
|
+
readonly Worker_event_CLAIMED_TON: {
|
|
5810
|
+
readonly stringValue: "Worker::event::CLAIMED_TON";
|
|
5811
|
+
readonly intValue: 140503173701546074404075967663240763604591069363126264866819918n;
|
|
5812
|
+
};
|
|
5794
5813
|
readonly Dvn_event_INVALID_SIGNATURE: {
|
|
5795
5814
|
readonly stringValue: "Dvn::event::INVALID_SIGNATURE";
|
|
5796
5815
|
readonly intValue: 1845748568727425907806402299282562526609276329313036843994008809460293n;
|
|
@@ -15904,4 +15923,4 @@ declare function getCompiledJson(name: string, root: string): {
|
|
|
15904
15923
|
hex: string;
|
|
15905
15924
|
};
|
|
15906
15925
|
|
|
15907
|
-
export { type ActionEvent, type AddressListTypeLike, type AddressTypeLike, 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, type LzWorker, MAX_CELL_BITS, type Md, type MdAddMsglib, type MdBool, type MdChannelNonceInfo, type MdClaimTon, type MdCoinsAmount, type MdCounterIncrement, type MdDeploy, type
|
|
15926
|
+
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, type LzWorker, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -4197,7 +4197,7 @@ declare class TonContractWrapper extends BaseWrapper {
|
|
|
4197
4197
|
}): Promise<Cell>;
|
|
4198
4198
|
getNewDvnFeelib(provider: ContractProvider, args: {
|
|
4199
4199
|
quorum: bigint;
|
|
4200
|
-
|
|
4200
|
+
remoteGas: bigint;
|
|
4201
4201
|
multiplierBps: bigint;
|
|
4202
4202
|
floorMarginUSD: bigint;
|
|
4203
4203
|
}): Promise<Cell>;
|
|
@@ -4208,11 +4208,17 @@ declare class TonContractWrapper extends BaseWrapper {
|
|
|
4208
4208
|
nativeCap: bigint;
|
|
4209
4209
|
lzComposeBaseGas: bigint;
|
|
4210
4210
|
}): Promise<Cell>;
|
|
4211
|
+
getNewArbitrumPriceFeedExtension(provider: ContractProvider, args: {
|
|
4212
|
+
gasPerL2Tx: bigint;
|
|
4213
|
+
gasPerL1CallDataByte: bigint;
|
|
4214
|
+
}): Promise<Cell>;
|
|
4211
4215
|
getNewPriceFeedFeelib(provider: ContractProvider, args: {
|
|
4212
4216
|
priceRatio: bigint;
|
|
4213
|
-
|
|
4217
|
+
gasPriceInRemoteUnit: bigint;
|
|
4214
4218
|
gasPerByte: bigint;
|
|
4215
4219
|
nativePriceUsd: bigint;
|
|
4220
|
+
arbitrumExtension: Cell;
|
|
4221
|
+
optimismExtension: Cell;
|
|
4216
4222
|
}): Promise<Cell>;
|
|
4217
4223
|
getNewWorkerCoreStorage(provider: ContractProvider, args: {
|
|
4218
4224
|
admins: Cell;
|
|
@@ -4234,10 +4240,6 @@ declare class TonContractWrapper extends BaseWrapper {
|
|
|
4234
4240
|
amount: bigint;
|
|
4235
4241
|
target: bigint;
|
|
4236
4242
|
}): Promise<Cell>;
|
|
4237
|
-
getNewMdDropEvent(provider: ContractProvider, args: {
|
|
4238
|
-
nativeAmount: bigint;
|
|
4239
|
-
receiver: bigint;
|
|
4240
|
-
}): Promise<Cell>;
|
|
4241
4243
|
getNewMdExecuteParams(provider: ContractProvider, args: {
|
|
4242
4244
|
target: bigint;
|
|
4243
4245
|
callData: Cell;
|
|
@@ -4247,6 +4249,8 @@ declare class TonContractWrapper extends BaseWrapper {
|
|
|
4247
4249
|
}): Promise<Cell>;
|
|
4248
4250
|
getNewMdNativeDrop(provider: ContractProvider, args: {
|
|
4249
4251
|
payees: Cell;
|
|
4252
|
+
packetId: Cell;
|
|
4253
|
+
msglib: bigint;
|
|
4250
4254
|
}): Promise<Cell>;
|
|
4251
4255
|
getNewMdSetDict(provider: ContractProvider, args: {
|
|
4252
4256
|
nonce: bigint;
|
|
@@ -4268,6 +4272,7 @@ declare class TonContractWrapper extends BaseWrapper {
|
|
|
4268
4272
|
admins: Cell;
|
|
4269
4273
|
version: bigint;
|
|
4270
4274
|
priceFeedFeeLib: Cell;
|
|
4275
|
+
dstEid: bigint;
|
|
4271
4276
|
}): Promise<Cell>;
|
|
4272
4277
|
getNewProxy(provider: ContractProvider, args: {
|
|
4273
4278
|
admins: Cell;
|
|
@@ -4731,7 +4736,7 @@ interface UlnManager {
|
|
|
4731
4736
|
}
|
|
4732
4737
|
interface DvnFeelib {
|
|
4733
4738
|
quorum: bigint;
|
|
4734
|
-
|
|
4739
|
+
remoteGas: bigint;
|
|
4735
4740
|
multiplierBps: bigint;
|
|
4736
4741
|
floorMarginUSD: bigint;
|
|
4737
4742
|
}
|
|
@@ -4742,11 +4747,17 @@ interface ExecutorFeelib {
|
|
|
4742
4747
|
nativeCap: bigint;
|
|
4743
4748
|
lzComposeBaseGas: bigint;
|
|
4744
4749
|
}
|
|
4750
|
+
interface ArbitrumPriceFeedExtension {
|
|
4751
|
+
gasPerL2Tx: bigint;
|
|
4752
|
+
gasPerL1CallDataByte: bigint;
|
|
4753
|
+
}
|
|
4745
4754
|
interface PriceFeedFeelib {
|
|
4746
4755
|
priceRatio: bigint;
|
|
4747
|
-
|
|
4756
|
+
gasPriceInRemoteUnit: bigint;
|
|
4748
4757
|
gasPerByte: bigint;
|
|
4749
4758
|
nativePriceUsd: bigint;
|
|
4759
|
+
arbitrumExtension: Cell;
|
|
4760
|
+
optimismExtension: Cell;
|
|
4750
4761
|
}
|
|
4751
4762
|
interface WorkerCoreStorage {
|
|
4752
4763
|
admins: Cell;
|
|
@@ -4769,10 +4780,6 @@ interface MdClaimTon extends Md {
|
|
|
4769
4780
|
amount: bigint;
|
|
4770
4781
|
target: bigint;
|
|
4771
4782
|
}
|
|
4772
|
-
interface MdDropEvent extends Md {
|
|
4773
|
-
nativeAmount: bigint;
|
|
4774
|
-
receiver: bigint;
|
|
4775
|
-
}
|
|
4776
4783
|
interface MdExecuteParams extends Md {
|
|
4777
4784
|
target: bigint;
|
|
4778
4785
|
callData: Cell;
|
|
@@ -4782,6 +4789,8 @@ interface MdExecuteParams extends Md {
|
|
|
4782
4789
|
}
|
|
4783
4790
|
interface MdNativeDrop extends Md {
|
|
4784
4791
|
payees: Cell;
|
|
4792
|
+
packetId: Cell;
|
|
4793
|
+
msglib: bigint;
|
|
4785
4794
|
}
|
|
4786
4795
|
interface MdSetDict extends Md {
|
|
4787
4796
|
nonce: bigint;
|
|
@@ -4802,6 +4811,7 @@ interface MdSignedRequest extends Md {
|
|
|
4802
4811
|
interface PriceFeedCache {
|
|
4803
4812
|
workerCoreStorage: Cell;
|
|
4804
4813
|
priceFeedFeeLibStorage: Cell;
|
|
4814
|
+
dstEid: bigint;
|
|
4805
4815
|
}
|
|
4806
4816
|
interface Proxy {
|
|
4807
4817
|
workerCoreStorage: Cell;
|
|
@@ -4929,12 +4939,12 @@ declare class TonObjectUnwrapper {
|
|
|
4929
4939
|
static getUlnManagerToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<UlnManager>;
|
|
4930
4940
|
static getDvnFeelibToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<DvnFeelib>;
|
|
4931
4941
|
static getExecutorFeelibToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<ExecutorFeelib>;
|
|
4942
|
+
static getArbitrumPriceFeedExtensionToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<ArbitrumPriceFeedExtension>;
|
|
4932
4943
|
static getPriceFeedFeelibToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<PriceFeedFeelib>;
|
|
4933
4944
|
static getWorkerCoreStorageToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<WorkerCoreStorage>;
|
|
4934
4945
|
static getDvnToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<Dvn>;
|
|
4935
4946
|
static getExecutorToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<Executor>;
|
|
4936
4947
|
static getMdClaimTonToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<MdClaimTon>;
|
|
4937
|
-
static getMdDropEventToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<MdDropEvent>;
|
|
4938
4948
|
static getMdExecuteParamsToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<MdExecuteParams>;
|
|
4939
4949
|
static getMdNativeDropToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<MdNativeDrop>;
|
|
4940
4950
|
static getMdSetDictToTS(wrapper: ExtendedContract<TonContractWrapper>, cell: Cell): Promise<MdSetDict>;
|
|
@@ -5015,12 +5025,12 @@ declare const deconstructorMap: {
|
|
|
5015
5025
|
ulnMgr: typeof TonObjectUnwrapper.getUlnManagerToTS;
|
|
5016
5026
|
UlnDvnFl: typeof TonObjectUnwrapper.getDvnFeelibToTS;
|
|
5017
5027
|
UlnExecutr: typeof TonObjectUnwrapper.getExecutorFeelibToTS;
|
|
5028
|
+
ArbFeeExt: typeof TonObjectUnwrapper.getArbitrumPriceFeedExtensionToTS;
|
|
5018
5029
|
PFFeelib: typeof TonObjectUnwrapper.getPriceFeedFeelibToTS;
|
|
5019
5030
|
wrkCorStor: typeof TonObjectUnwrapper.getWorkerCoreStorageToTS;
|
|
5020
5031
|
dvn: typeof TonObjectUnwrapper.getDvnToTS;
|
|
5021
5032
|
executor: typeof TonObjectUnwrapper.getExecutorToTS;
|
|
5022
5033
|
claimTon: typeof TonObjectUnwrapper.getMdClaimTonToTS;
|
|
5023
|
-
DropEvent: typeof TonObjectUnwrapper.getMdDropEventToTS;
|
|
5024
5034
|
execParams: typeof TonObjectUnwrapper.getMdExecuteParamsToTS;
|
|
5025
5035
|
NativeDrop: typeof TonObjectUnwrapper.getMdNativeDropToTS;
|
|
5026
5036
|
setDct: typeof TonObjectUnwrapper.getMdSetDictToTS;
|
|
@@ -5490,7 +5500,12 @@ declare const OPCODES: {
|
|
|
5490
5500
|
readonly Executor_OP_LZ_RECEIVE_ALERT: 3844476787n;
|
|
5491
5501
|
readonly PriceFeedCache_OP_UPDATE_PRICE: 3356097040n;
|
|
5492
5502
|
readonly PriceFeedCache_OP_UPDATE_NATIVE_PRICE: 2272264441n;
|
|
5503
|
+
readonly PriceFeedCache_OP_UPDATE_OP_PRICES: 68094176n;
|
|
5504
|
+
readonly PriceFeedCache_OP_UPDATE_OP_NATIVE_PRICES: 1736418267n;
|
|
5505
|
+
readonly PriceFeedCache_OP_UPDATE_ARB_EXTENSION: 4188442884n;
|
|
5493
5506
|
readonly Proxy_OP_CALL_CONTRACT: 166741977n;
|
|
5507
|
+
readonly Proxy_OP_EMIT_EVENT: 3445418055n;
|
|
5508
|
+
readonly Proxy_OP_SEND_TON: 3496427869n;
|
|
5494
5509
|
readonly Proxy_OP_HANDLE_CALLBACK: 542230303n;
|
|
5495
5510
|
readonly Proxy_OP_TOGGLE_CALLBACK: 441875500n;
|
|
5496
5511
|
};
|
|
@@ -5791,6 +5806,10 @@ declare const EVENTS: {
|
|
|
5791
5806
|
readonly stringValue: "Worker::event::ADMINS_SET";
|
|
5792
5807
|
readonly intValue: 548840522271664353140921748684534232820842422473671553795412n;
|
|
5793
5808
|
};
|
|
5809
|
+
readonly Worker_event_CLAIMED_TON: {
|
|
5810
|
+
readonly stringValue: "Worker::event::CLAIMED_TON";
|
|
5811
|
+
readonly intValue: 140503173701546074404075967663240763604591069363126264866819918n;
|
|
5812
|
+
};
|
|
5794
5813
|
readonly Dvn_event_INVALID_SIGNATURE: {
|
|
5795
5814
|
readonly stringValue: "Dvn::event::INVALID_SIGNATURE";
|
|
5796
5815
|
readonly intValue: 1845748568727425907806402299282562526609276329313036843994008809460293n;
|
|
@@ -15904,4 +15923,4 @@ declare function getCompiledJson(name: string, root: string): {
|
|
|
15904
15923
|
hex: string;
|
|
15905
15924
|
};
|
|
15906
15925
|
|
|
15907
|
-
export { type ActionEvent, type AddressListTypeLike, type AddressTypeLike, 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, type LzWorker, MAX_CELL_BITS, type Md, type MdAddMsglib, type MdBool, type MdChannelNonceInfo, type MdClaimTon, type MdCoinsAmount, type MdCounterIncrement, type MdDeploy, type
|
|
15926
|
+
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, type LzWorker, 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 };
|
package/dist/index.mjs
CHANGED
|
@@ -11439,7 +11439,12 @@ var OPCODES = {
|
|
|
11439
11439
|
Executor_OP_LZ_RECEIVE_ALERT: 3844476787n,
|
|
11440
11440
|
PriceFeedCache_OP_UPDATE_PRICE: 3356097040n,
|
|
11441
11441
|
PriceFeedCache_OP_UPDATE_NATIVE_PRICE: 2272264441n,
|
|
11442
|
+
PriceFeedCache_OP_UPDATE_OP_PRICES: 68094176n,
|
|
11443
|
+
PriceFeedCache_OP_UPDATE_OP_NATIVE_PRICES: 1736418267n,
|
|
11444
|
+
PriceFeedCache_OP_UPDATE_ARB_EXTENSION: 4188442884n,
|
|
11442
11445
|
Proxy_OP_CALL_CONTRACT: 166741977n,
|
|
11446
|
+
Proxy_OP_EMIT_EVENT: 3445418055n,
|
|
11447
|
+
Proxy_OP_SEND_TON: 3496427869n,
|
|
11443
11448
|
Proxy_OP_HANDLE_CALLBACK: 542230303n,
|
|
11444
11449
|
Proxy_OP_TOGGLE_CALLBACK: 441875500n
|
|
11445
11450
|
};
|
|
@@ -11727,6 +11732,10 @@ var EVENTS = {
|
|
|
11727
11732
|
stringValue: "Worker::event::ADMINS_SET",
|
|
11728
11733
|
intValue: 548840522271664353140921748684534232820842422473671553795412n
|
|
11729
11734
|
},
|
|
11735
|
+
Worker_event_CLAIMED_TON: {
|
|
11736
|
+
stringValue: "Worker::event::CLAIMED_TON",
|
|
11737
|
+
intValue: 140503173701546074404075967663240763604591069363126264866819918n
|
|
11738
|
+
},
|
|
11730
11739
|
Dvn_event_INVALID_SIGNATURE: {
|
|
11731
11740
|
stringValue: "Dvn::event::INVALID_SIGNATURE",
|
|
11732
11741
|
intValue: 1845748568727425907806402299282562526609276329313036843994008809460293n
|
|
@@ -11922,12 +11931,12 @@ var nameMap = {
|
|
|
11922
11931
|
ulnMgr: "UlnManager",
|
|
11923
11932
|
UlnDvnFl: "DvnFeelib",
|
|
11924
11933
|
UlnExecutr: "ExecutorFeelib",
|
|
11934
|
+
ArbFeeExt: "ArbitrumPriceFeedExtension",
|
|
11925
11935
|
PFFeelib: "PriceFeedFeelib",
|
|
11926
11936
|
wrkCorStor: "WorkerCoreStorage",
|
|
11927
11937
|
dvn: "Dvn",
|
|
11928
11938
|
executor: "Executor",
|
|
11929
11939
|
claimTon: "MdClaimTon",
|
|
11930
|
-
DropEvent: "MdDropEvent",
|
|
11931
11940
|
execParams: "MdExecuteParams",
|
|
11932
11941
|
NativeDrop: "MdNativeDrop",
|
|
11933
11942
|
setDct: "MdSetDict",
|
|
@@ -12008,12 +12017,12 @@ var keyMap = {
|
|
|
12008
12017
|
ulnMgr: "UlnManager",
|
|
12009
12018
|
UlnDvnFl: "DvnFeelib",
|
|
12010
12019
|
UlnExecutr: "ExecutorFeelib",
|
|
12020
|
+
ArbFeeExt: "ArbitrumPriceFeedExtension",
|
|
12011
12021
|
PFFeelib: "PriceFeedFeelib",
|
|
12012
12022
|
wrkCorStor: "WorkerCoreStorage",
|
|
12013
12023
|
dvn: "Dvn",
|
|
12014
12024
|
executor: "Executor",
|
|
12015
12025
|
claimTon: "md::ClaimTon",
|
|
12016
|
-
DropEvent: "md::DropEvent",
|
|
12017
12026
|
execParams: "md::ExecuteParams",
|
|
12018
12027
|
NativeDrop: "md::NativeDrop",
|
|
12019
12028
|
setDct: "md::SetDict",
|
|
@@ -12747,7 +12756,7 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
12747
12756
|
async getNewDvnFeelib(provider, args) {
|
|
12748
12757
|
const getResult = await provider.get("DvnFeelib::New", [
|
|
12749
12758
|
{ type: "int", value: args.quorum },
|
|
12750
|
-
{ type: "int", value: args.
|
|
12759
|
+
{ type: "int", value: args.remoteGas },
|
|
12751
12760
|
{ type: "int", value: args.multiplierBps },
|
|
12752
12761
|
{ type: "int", value: args.floorMarginUSD }
|
|
12753
12762
|
]);
|
|
@@ -12763,12 +12772,21 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
12763
12772
|
]);
|
|
12764
12773
|
return getResult.stack.readCell();
|
|
12765
12774
|
}
|
|
12775
|
+
async getNewArbitrumPriceFeedExtension(provider, args) {
|
|
12776
|
+
const getResult = await provider.get("ArbitrumPriceFeedExtension::New", [
|
|
12777
|
+
{ type: "int", value: args.gasPerL2Tx },
|
|
12778
|
+
{ type: "int", value: args.gasPerL1CallDataByte }
|
|
12779
|
+
]);
|
|
12780
|
+
return getResult.stack.readCell();
|
|
12781
|
+
}
|
|
12766
12782
|
async getNewPriceFeedFeelib(provider, args) {
|
|
12767
12783
|
const getResult = await provider.get("PriceFeedFeelib::New", [
|
|
12768
12784
|
{ type: "int", value: args.priceRatio },
|
|
12769
|
-
{ type: "int", value: args.
|
|
12785
|
+
{ type: "int", value: args.gasPriceInRemoteUnit },
|
|
12770
12786
|
{ type: "int", value: args.gasPerByte },
|
|
12771
|
-
{ type: "int", value: args.nativePriceUsd }
|
|
12787
|
+
{ type: "int", value: args.nativePriceUsd },
|
|
12788
|
+
{ type: "cell", cell: args.arbitrumExtension },
|
|
12789
|
+
{ type: "cell", cell: args.optimismExtension }
|
|
12772
12790
|
]);
|
|
12773
12791
|
return getResult.stack.readCell();
|
|
12774
12792
|
}
|
|
@@ -12804,13 +12822,6 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
12804
12822
|
]);
|
|
12805
12823
|
return getResult.stack.readCell();
|
|
12806
12824
|
}
|
|
12807
|
-
async getNewMdDropEvent(provider, args) {
|
|
12808
|
-
const getResult = await provider.get("md::DropEvent::New", [
|
|
12809
|
-
{ type: "int", value: args.nativeAmount },
|
|
12810
|
-
{ type: "int", value: args.receiver }
|
|
12811
|
-
]);
|
|
12812
|
-
return getResult.stack.readCell();
|
|
12813
|
-
}
|
|
12814
12825
|
async getNewMdExecuteParams(provider, args) {
|
|
12815
12826
|
const getResult = await provider.get("md::ExecuteParams::New", [
|
|
12816
12827
|
{ type: "int", value: args.target },
|
|
@@ -12822,7 +12833,11 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
12822
12833
|
return getResult.stack.readCell();
|
|
12823
12834
|
}
|
|
12824
12835
|
async getNewMdNativeDrop(provider, args) {
|
|
12825
|
-
const getResult = await provider.get("md::NativeDrop::New", [
|
|
12836
|
+
const getResult = await provider.get("md::NativeDrop::New", [
|
|
12837
|
+
{ type: "cell", cell: args.payees },
|
|
12838
|
+
{ type: "cell", cell: args.packetId },
|
|
12839
|
+
{ type: "int", value: args.msglib }
|
|
12840
|
+
]);
|
|
12826
12841
|
return getResult.stack.readCell();
|
|
12827
12842
|
}
|
|
12828
12843
|
async getNewMdSetDict(provider, args) {
|
|
@@ -12854,7 +12869,8 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
12854
12869
|
const getResult = await provider.get("PriceFeedCache::New", [
|
|
12855
12870
|
{ type: "cell", cell: args.admins },
|
|
12856
12871
|
{ type: "int", value: args.version },
|
|
12857
|
-
{ type: "cell", cell: args.priceFeedFeeLib }
|
|
12872
|
+
{ type: "cell", cell: args.priceFeedFeeLib },
|
|
12873
|
+
{ type: "int", value: args.dstEid }
|
|
12858
12874
|
]);
|
|
12859
12875
|
return getResult.stack.readCell();
|
|
12860
12876
|
}
|
|
@@ -16472,12 +16488,12 @@ var TonObjectUnwrapper = class {
|
|
|
16472
16488
|
}
|
|
16473
16489
|
static async getDvnFeelibToTS(wrapper, cell) {
|
|
16474
16490
|
const quorum = await wrapper.getClInt("cl::get<uint64>", cell, 0n);
|
|
16475
|
-
const
|
|
16491
|
+
const remoteGas = await wrapper.getClInt("cl::get<uint64>", cell, 1n);
|
|
16476
16492
|
const multiplierBps = await wrapper.getClInt("cl::get<uint16>", cell, 2n);
|
|
16477
16493
|
const floorMarginUSD = await wrapper.getClInt("cl::get<coins>", cell, 3n);
|
|
16478
16494
|
return {
|
|
16479
16495
|
quorum,
|
|
16480
|
-
|
|
16496
|
+
remoteGas,
|
|
16481
16497
|
multiplierBps,
|
|
16482
16498
|
floorMarginUSD
|
|
16483
16499
|
};
|
|
@@ -16496,16 +16512,28 @@ var TonObjectUnwrapper = class {
|
|
|
16496
16512
|
lzComposeBaseGas
|
|
16497
16513
|
};
|
|
16498
16514
|
}
|
|
16515
|
+
static async getArbitrumPriceFeedExtensionToTS(wrapper, cell) {
|
|
16516
|
+
const gasPerL2Tx = await wrapper.getClInt("cl::get<uint64>", cell, 0n);
|
|
16517
|
+
const gasPerL1CallDataByte = await wrapper.getClInt("cl::get<uint32>", cell, 1n);
|
|
16518
|
+
return {
|
|
16519
|
+
gasPerL2Tx,
|
|
16520
|
+
gasPerL1CallDataByte
|
|
16521
|
+
};
|
|
16522
|
+
}
|
|
16499
16523
|
static async getPriceFeedFeelibToTS(wrapper, cell) {
|
|
16500
16524
|
const priceRatio = await wrapper.getClInt("cl::get<coins>", cell, 0n);
|
|
16501
|
-
const
|
|
16525
|
+
const gasPriceInRemoteUnit = await wrapper.getClInt("cl::get<uint64>", cell, 1n);
|
|
16502
16526
|
const gasPerByte = await wrapper.getClInt("cl::get<uint32>", cell, 2n);
|
|
16503
16527
|
const nativePriceUsd = await wrapper.getClInt("cl::get<coins>", cell, 3n);
|
|
16528
|
+
const arbitrumExtension = await wrapper.getClCell(cell, 4n);
|
|
16529
|
+
const optimismExtension = await wrapper.getClCell(cell, 5n);
|
|
16504
16530
|
return {
|
|
16505
16531
|
priceRatio,
|
|
16506
|
-
|
|
16532
|
+
gasPriceInRemoteUnit,
|
|
16507
16533
|
gasPerByte,
|
|
16508
|
-
nativePriceUsd
|
|
16534
|
+
nativePriceUsd,
|
|
16535
|
+
arbitrumExtension,
|
|
16536
|
+
optimismExtension
|
|
16509
16537
|
};
|
|
16510
16538
|
}
|
|
16511
16539
|
static async getWorkerCoreStorageToTS(wrapper, cell) {
|
|
@@ -16550,14 +16578,6 @@ var TonObjectUnwrapper = class {
|
|
|
16550
16578
|
target
|
|
16551
16579
|
};
|
|
16552
16580
|
}
|
|
16553
|
-
static async getMdDropEventToTS(wrapper, cell) {
|
|
16554
|
-
const nativeAmount = await wrapper.getClInt("cl::get<coins>", cell, 0n);
|
|
16555
|
-
const receiver = await wrapper.getClInt("cl::get<address>", cell, 1n);
|
|
16556
|
-
return {
|
|
16557
|
-
nativeAmount,
|
|
16558
|
-
receiver
|
|
16559
|
-
};
|
|
16560
|
-
}
|
|
16561
16581
|
static async getMdExecuteParamsToTS(wrapper, cell) {
|
|
16562
16582
|
const target = await wrapper.getClInt("cl::get<address>", cell, 0n);
|
|
16563
16583
|
const callData = await wrapper.getClCell(cell, 1n);
|
|
@@ -16574,8 +16594,12 @@ var TonObjectUnwrapper = class {
|
|
|
16574
16594
|
}
|
|
16575
16595
|
static async getMdNativeDropToTS(wrapper, cell) {
|
|
16576
16596
|
const payees = await wrapper.getClCell(cell, 0n);
|
|
16597
|
+
const packetId = await wrapper.getClCell(cell, 1n);
|
|
16598
|
+
const msglib = await wrapper.getClInt("cl::get<address>", cell, 2n);
|
|
16577
16599
|
return {
|
|
16578
|
-
payees
|
|
16600
|
+
payees,
|
|
16601
|
+
packetId,
|
|
16602
|
+
msglib
|
|
16579
16603
|
};
|
|
16580
16604
|
}
|
|
16581
16605
|
static async getMdSetDictToTS(wrapper, cell) {
|
|
@@ -16613,9 +16637,11 @@ var TonObjectUnwrapper = class {
|
|
|
16613
16637
|
static async getPriceFeedCacheToTS(wrapper, cell) {
|
|
16614
16638
|
const workerCoreStorage = await wrapper.getClCell(cell, 0n);
|
|
16615
16639
|
const priceFeedFeeLibStorage = await wrapper.getClCell(cell, 1n);
|
|
16640
|
+
const dstEid = await wrapper.getClInt("cl::get<uint32>", cell, 2n);
|
|
16616
16641
|
return {
|
|
16617
16642
|
workerCoreStorage,
|
|
16618
|
-
priceFeedFeeLibStorage
|
|
16643
|
+
priceFeedFeeLibStorage,
|
|
16644
|
+
dstEid
|
|
16619
16645
|
};
|
|
16620
16646
|
}
|
|
16621
16647
|
static async getProxyToTS(wrapper, cell) {
|
|
@@ -16699,12 +16725,12 @@ var deconstructorMap = {
|
|
|
16699
16725
|
ulnMgr: TonObjectUnwrapper.getUlnManagerToTS,
|
|
16700
16726
|
UlnDvnFl: TonObjectUnwrapper.getDvnFeelibToTS,
|
|
16701
16727
|
UlnExecutr: TonObjectUnwrapper.getExecutorFeelibToTS,
|
|
16728
|
+
ArbFeeExt: TonObjectUnwrapper.getArbitrumPriceFeedExtensionToTS,
|
|
16702
16729
|
PFFeelib: TonObjectUnwrapper.getPriceFeedFeelibToTS,
|
|
16703
16730
|
wrkCorStor: TonObjectUnwrapper.getWorkerCoreStorageToTS,
|
|
16704
16731
|
dvn: TonObjectUnwrapper.getDvnToTS,
|
|
16705
16732
|
executor: TonObjectUnwrapper.getExecutorToTS,
|
|
16706
16733
|
claimTon: TonObjectUnwrapper.getMdClaimTonToTS,
|
|
16707
|
-
DropEvent: TonObjectUnwrapper.getMdDropEventToTS,
|
|
16708
16734
|
execParams: TonObjectUnwrapper.getMdExecuteParamsToTS,
|
|
16709
16735
|
NativeDrop: TonObjectUnwrapper.getMdNativeDropToTS,
|
|
16710
16736
|
setDct: TonObjectUnwrapper.getMdSetDictToTS,
|