@layerzerolabs/lz-ton-sdk-v2 3.0.41 → 3.0.43
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/artifacts/AllStorages.compiled.json +1 -1
- package/artifacts/Dvn.compiled.json +1 -1
- package/artifacts/DvnFeeLib.compiled.json +1 -1
- package/artifacts/Executor.compiled.json +1 -1
- package/artifacts/ExecutorFeeLib.compiled.json +1 -1
- package/artifacts/PriceFeedFeeLibArbitrum.compiled.json +1 -0
- package/artifacts/PriceFeedFeeLibDefault.compiled.json +1 -0
- package/artifacts/PriceFeedFeeLibOptimism.compiled.json +1 -0
- package/artifacts/Proxy.compiled.json +1 -1
- package/deployments/ton-sandbox-local/AllStorages.json +1 -1
- package/deployments/ton-sandbox-local/Dvn.json +2 -2
- package/deployments/ton-sandbox-local/DvnProxy.json +2 -2
- package/deployments/ton-sandbox-local/Executor.json +2 -2
- package/deployments/ton-sandbox-local/ExecutorProxy.json +2 -2
- package/deployments/ton-testnet/AllStorages.json +1 -1
- package/deployments/ton-testnet/Dvn.json +2 -2
- package/deployments/ton-testnet/DvnProxy.json +2 -2
- package/deployments/ton-testnet/Executor.json +2 -2
- package/deployments/ton-testnet/ExecutorProxy.json +2 -2
- package/dist/index.cjs +125 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +295 -112
- package/dist/index.d.ts +295 -112
- package/dist/index.mjs +125 -55
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/artifacts/PriceFeedCache.compiled.json +0 -1
- package/artifacts/PriceFeedFeeLib.compiled.json +0 -1
- package/deployments/ton-sandbox-local/PriceFeedCache.json +0 -9
- package/deployments/ton-sandbox-local/PriceFeedCacheProxy.json +0 -9
- package/deployments/ton-testnet/PriceFeedCache.json +0 -9
- package/deployments/ton-testnet/PriceFeedCacheProxy.json +0 -9
package/dist/index.mjs
CHANGED
|
@@ -8359,7 +8359,7 @@ var tonObjects = {
|
|
|
8359
8359
|
fieldType: "cl::t::uint64"
|
|
8360
8360
|
},
|
|
8361
8361
|
1: {
|
|
8362
|
-
fieldName: "DvnFeelib::
|
|
8362
|
+
fieldName: "DvnFeelib::remoteGas",
|
|
8363
8363
|
fieldType: "cl::t::uint64"
|
|
8364
8364
|
},
|
|
8365
8365
|
2: {
|
|
@@ -8394,6 +8394,17 @@ var tonObjects = {
|
|
|
8394
8394
|
fieldType: "cl::t::uint64"
|
|
8395
8395
|
}
|
|
8396
8396
|
},
|
|
8397
|
+
ArbitrumPriceFeedExtension: {
|
|
8398
|
+
name: "ArbFeeExt",
|
|
8399
|
+
0: {
|
|
8400
|
+
fieldName: "ArbitrumPriceFeedExtension::gasPerL2Tx",
|
|
8401
|
+
fieldType: "cl::t::uint64"
|
|
8402
|
+
},
|
|
8403
|
+
1: {
|
|
8404
|
+
fieldName: "ArbitrumPriceFeedExtension::gasPerL1CallDataByte",
|
|
8405
|
+
fieldType: "cl::t::uint32"
|
|
8406
|
+
}
|
|
8407
|
+
},
|
|
8397
8408
|
PriceFeedFeelib: {
|
|
8398
8409
|
name: "PFFeelib",
|
|
8399
8410
|
0: {
|
|
@@ -8401,7 +8412,7 @@ var tonObjects = {
|
|
|
8401
8412
|
fieldType: "cl::t::coins"
|
|
8402
8413
|
},
|
|
8403
8414
|
1: {
|
|
8404
|
-
fieldName: "PriceFeedFeelib::
|
|
8415
|
+
fieldName: "PriceFeedFeelib::gasPriceInRemoteUnit",
|
|
8405
8416
|
fieldType: "cl::t::uint64"
|
|
8406
8417
|
},
|
|
8407
8418
|
2: {
|
|
@@ -8411,6 +8422,14 @@ var tonObjects = {
|
|
|
8411
8422
|
3: {
|
|
8412
8423
|
fieldName: "PriceFeedFeelib::nativePriceUsd",
|
|
8413
8424
|
fieldType: "cl::t::coins"
|
|
8425
|
+
},
|
|
8426
|
+
4: {
|
|
8427
|
+
fieldName: "PriceFeedFeelib::arbitrumExtension",
|
|
8428
|
+
fieldType: "cl::t::objRef"
|
|
8429
|
+
},
|
|
8430
|
+
5: {
|
|
8431
|
+
fieldName: "PriceFeedFeelib::optimismExtension",
|
|
8432
|
+
fieldType: "cl::t::objRef"
|
|
8414
8433
|
}
|
|
8415
8434
|
},
|
|
8416
8435
|
WorkerCoreStorage: {
|
|
@@ -8477,17 +8496,6 @@ var tonObjects = {
|
|
|
8477
8496
|
fieldType: "cl::t::address"
|
|
8478
8497
|
}
|
|
8479
8498
|
},
|
|
8480
|
-
"md::DropEvent": {
|
|
8481
|
-
name: "DropEvent",
|
|
8482
|
-
0: {
|
|
8483
|
-
fieldName: "md::DropEvent::nativeAmount",
|
|
8484
|
-
fieldType: "cl::t::coins"
|
|
8485
|
-
},
|
|
8486
|
-
1: {
|
|
8487
|
-
fieldName: "md::DropEvent::receiver",
|
|
8488
|
-
fieldType: "cl::t::address"
|
|
8489
|
-
}
|
|
8490
|
-
},
|
|
8491
8499
|
"md::ExecuteParams": {
|
|
8492
8500
|
name: "execParams",
|
|
8493
8501
|
0: {
|
|
@@ -8516,6 +8524,14 @@ var tonObjects = {
|
|
|
8516
8524
|
0: {
|
|
8517
8525
|
fieldName: "md::NativeDrop::payees",
|
|
8518
8526
|
fieldType: "cl::t::cellRef"
|
|
8527
|
+
},
|
|
8528
|
+
1: {
|
|
8529
|
+
fieldName: "md::NativeDrop::packetId",
|
|
8530
|
+
fieldType: "cl::t::objRef"
|
|
8531
|
+
},
|
|
8532
|
+
2: {
|
|
8533
|
+
fieldName: "md::NativeDrop::msglib",
|
|
8534
|
+
fieldType: "cl::t::address"
|
|
8519
8535
|
}
|
|
8520
8536
|
},
|
|
8521
8537
|
"md::SetDict": {
|
|
@@ -8576,6 +8592,10 @@ var tonObjects = {
|
|
|
8576
8592
|
1: {
|
|
8577
8593
|
fieldName: "PriceFeedCache::priceFeedFeeLibStorage",
|
|
8578
8594
|
fieldType: "cl::t::objRef"
|
|
8595
|
+
},
|
|
8596
|
+
2: {
|
|
8597
|
+
fieldName: "PriceFeedCache::dstEid",
|
|
8598
|
+
fieldType: "cl::t::uint32"
|
|
8579
8599
|
}
|
|
8580
8600
|
},
|
|
8581
8601
|
Proxy: {
|
|
@@ -9010,6 +9030,10 @@ var tonResolvedObjects = {
|
|
|
9010
9030
|
fieldName: "PriceFeedCache::priceFeedFeeLibStorage",
|
|
9011
9031
|
fieldType: "PriceFeedFeelib"
|
|
9012
9032
|
},
|
|
9033
|
+
"2": {
|
|
9034
|
+
fieldName: "PriceFeedCache::dstEid",
|
|
9035
|
+
fieldType: "cl::t::uint32"
|
|
9036
|
+
},
|
|
9013
9037
|
name: "pfCache"
|
|
9014
9038
|
},
|
|
9015
9039
|
PriceFeedFeelib: {
|
|
@@ -9018,7 +9042,7 @@ var tonResolvedObjects = {
|
|
|
9018
9042
|
fieldType: "cl::t::coins"
|
|
9019
9043
|
},
|
|
9020
9044
|
"1": {
|
|
9021
|
-
fieldName: "PriceFeedFeelib::
|
|
9045
|
+
fieldName: "PriceFeedFeelib::gasPriceInRemoteUnit",
|
|
9022
9046
|
fieldType: "cl::t::uint64"
|
|
9023
9047
|
},
|
|
9024
9048
|
"2": {
|
|
@@ -9029,6 +9053,14 @@ var tonResolvedObjects = {
|
|
|
9029
9053
|
fieldName: "PriceFeedFeelib::nativePriceUsd",
|
|
9030
9054
|
fieldType: "cl::t::coins"
|
|
9031
9055
|
},
|
|
9056
|
+
"4": {
|
|
9057
|
+
fieldName: "PriceFeedFeelib::arbitrumExtension",
|
|
9058
|
+
fieldType: "cl::t::cellRef"
|
|
9059
|
+
},
|
|
9060
|
+
"5": {
|
|
9061
|
+
fieldName: "PriceFeedFeelib::optimismExtension",
|
|
9062
|
+
fieldType: "cl::t::cellRef"
|
|
9063
|
+
},
|
|
9032
9064
|
name: "PFFeelib"
|
|
9033
9065
|
},
|
|
9034
9066
|
"md::UlnWorkerFeelibBytecode": {
|
|
@@ -9162,7 +9194,7 @@ var tonResolvedObjects = {
|
|
|
9162
9194
|
fieldType: "cl::t::uint64"
|
|
9163
9195
|
},
|
|
9164
9196
|
"1": {
|
|
9165
|
-
fieldName: "DvnFeelib::
|
|
9197
|
+
fieldName: "DvnFeelib::remoteGas",
|
|
9166
9198
|
fieldType: "cl::t::uint64"
|
|
9167
9199
|
},
|
|
9168
9200
|
"2": {
|
|
@@ -10199,33 +10231,41 @@ var tonResolvedObjects = {
|
|
|
10199
10231
|
},
|
|
10200
10232
|
name: "UlnExecutr"
|
|
10201
10233
|
},
|
|
10202
|
-
|
|
10234
|
+
ArbitrumPriceFeedExtension: {
|
|
10203
10235
|
"0": {
|
|
10204
|
-
fieldName: "
|
|
10205
|
-
fieldType: "cl::t::
|
|
10236
|
+
fieldName: "ArbitrumPriceFeedExtension::gasPerL2Tx",
|
|
10237
|
+
fieldType: "cl::t::uint64"
|
|
10206
10238
|
},
|
|
10207
10239
|
"1": {
|
|
10208
|
-
fieldName: "
|
|
10209
|
-
fieldType: "cl::t::
|
|
10240
|
+
fieldName: "ArbitrumPriceFeedExtension::gasPerL1CallDataByte",
|
|
10241
|
+
fieldType: "cl::t::uint32"
|
|
10210
10242
|
},
|
|
10211
|
-
name: "
|
|
10243
|
+
name: "ArbFeeExt"
|
|
10212
10244
|
},
|
|
10213
|
-
"md::
|
|
10245
|
+
"md::ClaimTon": {
|
|
10214
10246
|
"0": {
|
|
10215
|
-
fieldName: "md::
|
|
10247
|
+
fieldName: "md::ClaimTon::amount",
|
|
10216
10248
|
fieldType: "cl::t::coins"
|
|
10217
10249
|
},
|
|
10218
10250
|
"1": {
|
|
10219
|
-
fieldName: "md::
|
|
10251
|
+
fieldName: "md::ClaimTon::target",
|
|
10220
10252
|
fieldType: "cl::t::address"
|
|
10221
10253
|
},
|
|
10222
|
-
name: "
|
|
10254
|
+
name: "claimTon"
|
|
10223
10255
|
},
|
|
10224
10256
|
"md::NativeDrop": {
|
|
10225
10257
|
"0": {
|
|
10226
10258
|
fieldName: "md::NativeDrop::payees",
|
|
10227
10259
|
fieldType: "cl::t::cellRef"
|
|
10228
10260
|
},
|
|
10261
|
+
"1": {
|
|
10262
|
+
fieldName: "md::NativeDrop::packetId",
|
|
10263
|
+
fieldType: "cl::t::objRef"
|
|
10264
|
+
},
|
|
10265
|
+
"2": {
|
|
10266
|
+
fieldName: "md::NativeDrop::msglib",
|
|
10267
|
+
fieldType: "cl::t::address"
|
|
10268
|
+
},
|
|
10229
10269
|
name: "NativeDrop"
|
|
10230
10270
|
},
|
|
10231
10271
|
"md::SetDict": {
|
|
@@ -11439,7 +11479,11 @@ var OPCODES = {
|
|
|
11439
11479
|
Executor_OP_LZ_RECEIVE_ALERT: 3844476787n,
|
|
11440
11480
|
PriceFeedCache_OP_UPDATE_PRICE: 3356097040n,
|
|
11441
11481
|
PriceFeedCache_OP_UPDATE_NATIVE_PRICE: 2272264441n,
|
|
11482
|
+
PriceFeedCache_OP_UPDATE_OP_PRICES: 68094176n,
|
|
11483
|
+
PriceFeedCache_OP_UPDATE_OP_NATIVE_PRICES: 1736418267n,
|
|
11484
|
+
PriceFeedCache_OP_UPDATE_ARB_EXTENSION: 4188442884n,
|
|
11442
11485
|
Proxy_OP_CALL_CONTRACT: 166741977n,
|
|
11486
|
+
Proxy_OP_EMIT_EVENT: 3445418055n,
|
|
11443
11487
|
Proxy_OP_HANDLE_CALLBACK: 542230303n,
|
|
11444
11488
|
Proxy_OP_TOGGLE_CALLBACK: 441875500n
|
|
11445
11489
|
};
|
|
@@ -11569,6 +11613,7 @@ var ERRORS = {
|
|
|
11569
11613
|
Worker_ERROR_invalidOpcode: 2014n,
|
|
11570
11614
|
Worker_ERROR_invalidSignedOpcode: 2013n,
|
|
11571
11615
|
Worker_ERROR_invalidTarget: 2012n,
|
|
11616
|
+
Worker_ERROR_insufficientBalance: 2011n,
|
|
11572
11617
|
Dvn_ERROR_expired: 1983n,
|
|
11573
11618
|
Dvn_ERROR_quorumNotMet: 1982n,
|
|
11574
11619
|
Dvn_ERROR_notEnoughSignatures: 1981n,
|
|
@@ -11727,6 +11772,14 @@ var EVENTS = {
|
|
|
11727
11772
|
stringValue: "Worker::event::ADMINS_SET",
|
|
11728
11773
|
intValue: 548840522271664353140921748684534232820842422473671553795412n
|
|
11729
11774
|
},
|
|
11775
|
+
Worker_event_CLAIMED_TON: {
|
|
11776
|
+
stringValue: "Worker::event::CLAIMED_TON",
|
|
11777
|
+
intValue: 140503173701546074404075967663240763604591069363126264866819918n
|
|
11778
|
+
},
|
|
11779
|
+
Worker_event_CLAIMED_TON_FROM_PROXY: {
|
|
11780
|
+
stringValue: "Worker::event::CLAIMED_TON_PROXY",
|
|
11781
|
+
intValue: 39548127545415935865827424351890480893511972838984571677679638605365326600281n
|
|
11782
|
+
},
|
|
11730
11783
|
Dvn_event_INVALID_SIGNATURE: {
|
|
11731
11784
|
stringValue: "Dvn::event::INVALID_SIGNATURE",
|
|
11732
11785
|
intValue: 1845748568727425907806402299282562526609276329313036843994008809460293n
|
|
@@ -11922,12 +11975,12 @@ var nameMap = {
|
|
|
11922
11975
|
ulnMgr: "UlnManager",
|
|
11923
11976
|
UlnDvnFl: "DvnFeelib",
|
|
11924
11977
|
UlnExecutr: "ExecutorFeelib",
|
|
11978
|
+
ArbFeeExt: "ArbitrumPriceFeedExtension",
|
|
11925
11979
|
PFFeelib: "PriceFeedFeelib",
|
|
11926
11980
|
wrkCorStor: "WorkerCoreStorage",
|
|
11927
11981
|
dvn: "Dvn",
|
|
11928
11982
|
executor: "Executor",
|
|
11929
11983
|
claimTon: "MdClaimTon",
|
|
11930
|
-
DropEvent: "MdDropEvent",
|
|
11931
11984
|
execParams: "MdExecuteParams",
|
|
11932
11985
|
NativeDrop: "MdNativeDrop",
|
|
11933
11986
|
setDct: "MdSetDict",
|
|
@@ -12008,12 +12061,12 @@ var keyMap = {
|
|
|
12008
12061
|
ulnMgr: "UlnManager",
|
|
12009
12062
|
UlnDvnFl: "DvnFeelib",
|
|
12010
12063
|
UlnExecutr: "ExecutorFeelib",
|
|
12064
|
+
ArbFeeExt: "ArbitrumPriceFeedExtension",
|
|
12011
12065
|
PFFeelib: "PriceFeedFeelib",
|
|
12012
12066
|
wrkCorStor: "WorkerCoreStorage",
|
|
12013
12067
|
dvn: "Dvn",
|
|
12014
12068
|
executor: "Executor",
|
|
12015
12069
|
claimTon: "md::ClaimTon",
|
|
12016
|
-
DropEvent: "md::DropEvent",
|
|
12017
12070
|
execParams: "md::ExecuteParams",
|
|
12018
12071
|
NativeDrop: "md::NativeDrop",
|
|
12019
12072
|
setDct: "md::SetDict",
|
|
@@ -12747,7 +12800,7 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
12747
12800
|
async getNewDvnFeelib(provider, args) {
|
|
12748
12801
|
const getResult = await provider.get("DvnFeelib::New", [
|
|
12749
12802
|
{ type: "int", value: args.quorum },
|
|
12750
|
-
{ type: "int", value: args.
|
|
12803
|
+
{ type: "int", value: args.remoteGas },
|
|
12751
12804
|
{ type: "int", value: args.multiplierBps },
|
|
12752
12805
|
{ type: "int", value: args.floorMarginUSD }
|
|
12753
12806
|
]);
|
|
@@ -12763,12 +12816,21 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
12763
12816
|
]);
|
|
12764
12817
|
return getResult.stack.readCell();
|
|
12765
12818
|
}
|
|
12819
|
+
async getNewArbitrumPriceFeedExtension(provider, args) {
|
|
12820
|
+
const getResult = await provider.get("ArbitrumPriceFeedExtension::New", [
|
|
12821
|
+
{ type: "int", value: args.gasPerL2Tx },
|
|
12822
|
+
{ type: "int", value: args.gasPerL1CallDataByte }
|
|
12823
|
+
]);
|
|
12824
|
+
return getResult.stack.readCell();
|
|
12825
|
+
}
|
|
12766
12826
|
async getNewPriceFeedFeelib(provider, args) {
|
|
12767
12827
|
const getResult = await provider.get("PriceFeedFeelib::New", [
|
|
12768
12828
|
{ type: "int", value: args.priceRatio },
|
|
12769
|
-
{ type: "int", value: args.
|
|
12829
|
+
{ type: "int", value: args.gasPriceInRemoteUnit },
|
|
12770
12830
|
{ type: "int", value: args.gasPerByte },
|
|
12771
|
-
{ type: "int", value: args.nativePriceUsd }
|
|
12831
|
+
{ type: "int", value: args.nativePriceUsd },
|
|
12832
|
+
{ type: "cell", cell: args.arbitrumExtension },
|
|
12833
|
+
{ type: "cell", cell: args.optimismExtension }
|
|
12772
12834
|
]);
|
|
12773
12835
|
return getResult.stack.readCell();
|
|
12774
12836
|
}
|
|
@@ -12804,13 +12866,6 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
12804
12866
|
]);
|
|
12805
12867
|
return getResult.stack.readCell();
|
|
12806
12868
|
}
|
|
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
12869
|
async getNewMdExecuteParams(provider, args) {
|
|
12815
12870
|
const getResult = await provider.get("md::ExecuteParams::New", [
|
|
12816
12871
|
{ type: "int", value: args.target },
|
|
@@ -12822,7 +12877,11 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
12822
12877
|
return getResult.stack.readCell();
|
|
12823
12878
|
}
|
|
12824
12879
|
async getNewMdNativeDrop(provider, args) {
|
|
12825
|
-
const getResult = await provider.get("md::NativeDrop::New", [
|
|
12880
|
+
const getResult = await provider.get("md::NativeDrop::New", [
|
|
12881
|
+
{ type: "cell", cell: args.payees },
|
|
12882
|
+
{ type: "cell", cell: args.packetId },
|
|
12883
|
+
{ type: "int", value: args.msglib }
|
|
12884
|
+
]);
|
|
12826
12885
|
return getResult.stack.readCell();
|
|
12827
12886
|
}
|
|
12828
12887
|
async getNewMdSetDict(provider, args) {
|
|
@@ -12854,7 +12913,8 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
12854
12913
|
const getResult = await provider.get("PriceFeedCache::New", [
|
|
12855
12914
|
{ type: "cell", cell: args.admins },
|
|
12856
12915
|
{ type: "int", value: args.version },
|
|
12857
|
-
{ type: "cell", cell: args.priceFeedFeeLib }
|
|
12916
|
+
{ type: "cell", cell: args.priceFeedFeeLib },
|
|
12917
|
+
{ type: "int", value: args.dstEid }
|
|
12858
12918
|
]);
|
|
12859
12919
|
return getResult.stack.readCell();
|
|
12860
12920
|
}
|
|
@@ -16472,12 +16532,12 @@ var TonObjectUnwrapper = class {
|
|
|
16472
16532
|
}
|
|
16473
16533
|
static async getDvnFeelibToTS(wrapper, cell) {
|
|
16474
16534
|
const quorum = await wrapper.getClInt("cl::get<uint64>", cell, 0n);
|
|
16475
|
-
const
|
|
16535
|
+
const remoteGas = await wrapper.getClInt("cl::get<uint64>", cell, 1n);
|
|
16476
16536
|
const multiplierBps = await wrapper.getClInt("cl::get<uint16>", cell, 2n);
|
|
16477
16537
|
const floorMarginUSD = await wrapper.getClInt("cl::get<coins>", cell, 3n);
|
|
16478
16538
|
return {
|
|
16479
16539
|
quorum,
|
|
16480
|
-
|
|
16540
|
+
remoteGas,
|
|
16481
16541
|
multiplierBps,
|
|
16482
16542
|
floorMarginUSD
|
|
16483
16543
|
};
|
|
@@ -16496,16 +16556,28 @@ var TonObjectUnwrapper = class {
|
|
|
16496
16556
|
lzComposeBaseGas
|
|
16497
16557
|
};
|
|
16498
16558
|
}
|
|
16559
|
+
static async getArbitrumPriceFeedExtensionToTS(wrapper, cell) {
|
|
16560
|
+
const gasPerL2Tx = await wrapper.getClInt("cl::get<uint64>", cell, 0n);
|
|
16561
|
+
const gasPerL1CallDataByte = await wrapper.getClInt("cl::get<uint32>", cell, 1n);
|
|
16562
|
+
return {
|
|
16563
|
+
gasPerL2Tx,
|
|
16564
|
+
gasPerL1CallDataByte
|
|
16565
|
+
};
|
|
16566
|
+
}
|
|
16499
16567
|
static async getPriceFeedFeelibToTS(wrapper, cell) {
|
|
16500
16568
|
const priceRatio = await wrapper.getClInt("cl::get<coins>", cell, 0n);
|
|
16501
|
-
const
|
|
16569
|
+
const gasPriceInRemoteUnit = await wrapper.getClInt("cl::get<uint64>", cell, 1n);
|
|
16502
16570
|
const gasPerByte = await wrapper.getClInt("cl::get<uint32>", cell, 2n);
|
|
16503
16571
|
const nativePriceUsd = await wrapper.getClInt("cl::get<coins>", cell, 3n);
|
|
16572
|
+
const arbitrumExtension = await wrapper.getClCell(cell, 4n);
|
|
16573
|
+
const optimismExtension = await wrapper.getClCell(cell, 5n);
|
|
16504
16574
|
return {
|
|
16505
16575
|
priceRatio,
|
|
16506
|
-
|
|
16576
|
+
gasPriceInRemoteUnit,
|
|
16507
16577
|
gasPerByte,
|
|
16508
|
-
nativePriceUsd
|
|
16578
|
+
nativePriceUsd,
|
|
16579
|
+
arbitrumExtension,
|
|
16580
|
+
optimismExtension
|
|
16509
16581
|
};
|
|
16510
16582
|
}
|
|
16511
16583
|
static async getWorkerCoreStorageToTS(wrapper, cell) {
|
|
@@ -16550,14 +16622,6 @@ var TonObjectUnwrapper = class {
|
|
|
16550
16622
|
target
|
|
16551
16623
|
};
|
|
16552
16624
|
}
|
|
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
16625
|
static async getMdExecuteParamsToTS(wrapper, cell) {
|
|
16562
16626
|
const target = await wrapper.getClInt("cl::get<address>", cell, 0n);
|
|
16563
16627
|
const callData = await wrapper.getClCell(cell, 1n);
|
|
@@ -16574,8 +16638,12 @@ var TonObjectUnwrapper = class {
|
|
|
16574
16638
|
}
|
|
16575
16639
|
static async getMdNativeDropToTS(wrapper, cell) {
|
|
16576
16640
|
const payees = await wrapper.getClCell(cell, 0n);
|
|
16641
|
+
const packetId = await wrapper.getClCell(cell, 1n);
|
|
16642
|
+
const msglib = await wrapper.getClInt("cl::get<address>", cell, 2n);
|
|
16577
16643
|
return {
|
|
16578
|
-
payees
|
|
16644
|
+
payees,
|
|
16645
|
+
packetId,
|
|
16646
|
+
msglib
|
|
16579
16647
|
};
|
|
16580
16648
|
}
|
|
16581
16649
|
static async getMdSetDictToTS(wrapper, cell) {
|
|
@@ -16613,9 +16681,11 @@ var TonObjectUnwrapper = class {
|
|
|
16613
16681
|
static async getPriceFeedCacheToTS(wrapper, cell) {
|
|
16614
16682
|
const workerCoreStorage = await wrapper.getClCell(cell, 0n);
|
|
16615
16683
|
const priceFeedFeeLibStorage = await wrapper.getClCell(cell, 1n);
|
|
16684
|
+
const dstEid = await wrapper.getClInt("cl::get<uint32>", cell, 2n);
|
|
16616
16685
|
return {
|
|
16617
16686
|
workerCoreStorage,
|
|
16618
|
-
priceFeedFeeLibStorage
|
|
16687
|
+
priceFeedFeeLibStorage,
|
|
16688
|
+
dstEid
|
|
16619
16689
|
};
|
|
16620
16690
|
}
|
|
16621
16691
|
static async getProxyToTS(wrapper, cell) {
|
|
@@ -16699,12 +16769,12 @@ var deconstructorMap = {
|
|
|
16699
16769
|
ulnMgr: TonObjectUnwrapper.getUlnManagerToTS,
|
|
16700
16770
|
UlnDvnFl: TonObjectUnwrapper.getDvnFeelibToTS,
|
|
16701
16771
|
UlnExecutr: TonObjectUnwrapper.getExecutorFeelibToTS,
|
|
16772
|
+
ArbFeeExt: TonObjectUnwrapper.getArbitrumPriceFeedExtensionToTS,
|
|
16702
16773
|
PFFeelib: TonObjectUnwrapper.getPriceFeedFeelibToTS,
|
|
16703
16774
|
wrkCorStor: TonObjectUnwrapper.getWorkerCoreStorageToTS,
|
|
16704
16775
|
dvn: TonObjectUnwrapper.getDvnToTS,
|
|
16705
16776
|
executor: TonObjectUnwrapper.getExecutorToTS,
|
|
16706
16777
|
claimTon: TonObjectUnwrapper.getMdClaimTonToTS,
|
|
16707
|
-
DropEvent: TonObjectUnwrapper.getMdDropEventToTS,
|
|
16708
16778
|
execParams: TonObjectUnwrapper.getMdExecuteParamsToTS,
|
|
16709
16779
|
NativeDrop: TonObjectUnwrapper.getMdNativeDropToTS,
|
|
16710
16780
|
setDct: TonObjectUnwrapper.getMdSetDictToTS,
|