@layerzerolabs/lz-ton-sdk-v2 3.0.27 → 3.0.28
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/dist/index.cjs +159 -121
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +84 -71
- package/dist/index.d.ts +84 -71
- package/dist/index.mjs +159 -122
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -6
package/dist/index.cjs
CHANGED
|
@@ -6379,7 +6379,7 @@ var tonObjects = {
|
|
|
6379
6379
|
"lz::EpConfig::NewWithConnection": {
|
|
6380
6380
|
name: "EpConfig",
|
|
6381
6381
|
0: {
|
|
6382
|
-
fieldName: "lz::EpConfig::NewWithConnection::
|
|
6382
|
+
fieldName: "lz::EpConfig::NewWithConnection::_timeoutReceiveMsglibConnectionOffset",
|
|
6383
6383
|
fieldType: "cl::t::bool"
|
|
6384
6384
|
},
|
|
6385
6385
|
1: {
|
|
@@ -6476,11 +6476,11 @@ var tonObjects = {
|
|
|
6476
6476
|
"lz::ReceiveEpConfig": {
|
|
6477
6477
|
name: "RcvEpCfg",
|
|
6478
6478
|
0: {
|
|
6479
|
-
fieldName: "lz::ReceiveEpConfig::
|
|
6479
|
+
fieldName: "lz::ReceiveEpConfig::receiveMsglibConnection",
|
|
6480
6480
|
fieldType: "cl::t::address"
|
|
6481
6481
|
},
|
|
6482
6482
|
1: {
|
|
6483
|
-
fieldName: "lz::ReceiveEpConfig::
|
|
6483
|
+
fieldName: "lz::ReceiveEpConfig::timeoutReceiveMsglibConnection",
|
|
6484
6484
|
fieldType: "cl::t::address"
|
|
6485
6485
|
},
|
|
6486
6486
|
2: {
|
|
@@ -6491,11 +6491,11 @@ var tonObjects = {
|
|
|
6491
6491
|
"lz::SendEpConfig": {
|
|
6492
6492
|
name: "SendEpCfg",
|
|
6493
6493
|
0: {
|
|
6494
|
-
fieldName: "lz::SendEpConfig::
|
|
6494
|
+
fieldName: "lz::SendEpConfig::sendMsglib",
|
|
6495
6495
|
fieldType: "cl::t::address"
|
|
6496
6496
|
},
|
|
6497
6497
|
1: {
|
|
6498
|
-
fieldName: "lz::SendEpConfig::
|
|
6498
|
+
fieldName: "lz::SendEpConfig::sendMsglibConnection",
|
|
6499
6499
|
fieldType: "cl::t::address"
|
|
6500
6500
|
}
|
|
6501
6501
|
},
|
|
@@ -6745,7 +6745,7 @@ var tonObjects = {
|
|
|
6745
6745
|
"md::LzSend": {
|
|
6746
6746
|
name: "lzSend",
|
|
6747
6747
|
0: {
|
|
6748
|
-
fieldName: "md::LzSend::
|
|
6748
|
+
fieldName: "md::LzSend::_nativeFeeOffset",
|
|
6749
6749
|
fieldType: "cl::t::uint64"
|
|
6750
6750
|
},
|
|
6751
6751
|
1: {
|
|
@@ -6905,7 +6905,7 @@ var tonObjects = {
|
|
|
6905
6905
|
"md::OptionsV1": {
|
|
6906
6906
|
name: "OptionsV1",
|
|
6907
6907
|
0: {
|
|
6908
|
-
fieldName: "md::OptionsV1::
|
|
6908
|
+
fieldName: "md::OptionsV1::_nativeDropAddressOffset",
|
|
6909
6909
|
fieldType: "cl::t::uint256"
|
|
6910
6910
|
},
|
|
6911
6911
|
1: {
|
|
@@ -7045,17 +7045,6 @@ var tonObjects = {
|
|
|
7045
7045
|
fieldType: "cl::t::cellRef"
|
|
7046
7046
|
}
|
|
7047
7047
|
},
|
|
7048
|
-
"POOO::NewWithBitsSets": {
|
|
7049
|
-
name: "POOO",
|
|
7050
|
-
0: {
|
|
7051
|
-
fieldName: "POOO::NewWithBitsSets::nextEmpty",
|
|
7052
|
-
fieldType: "cl::t::uint64"
|
|
7053
|
-
},
|
|
7054
|
-
1: {
|
|
7055
|
-
fieldName: "POOO::NewWithBitsSets::bitmap",
|
|
7056
|
-
fieldType: "cl::t::cellRef"
|
|
7057
|
-
}
|
|
7058
|
-
},
|
|
7059
7048
|
Channel: {
|
|
7060
7049
|
name: "channel",
|
|
7061
7050
|
0: {
|
|
@@ -7618,7 +7607,7 @@ var tonObjects = {
|
|
|
7618
7607
|
UlnConnection: {
|
|
7619
7608
|
name: "connection",
|
|
7620
7609
|
0: {
|
|
7621
|
-
fieldName: "UlnConnection::
|
|
7610
|
+
fieldName: "UlnConnection::_ulnAddressOffset",
|
|
7622
7611
|
fieldType: "cl::t::objRef"
|
|
7623
7612
|
},
|
|
7624
7613
|
1: {
|
|
@@ -7634,25 +7623,25 @@ var tonObjects = {
|
|
|
7634
7623
|
fieldType: "cl::t::address"
|
|
7635
7624
|
},
|
|
7636
7625
|
4: {
|
|
7626
|
+
fieldName: "UlnConnection::firstUnexecutedNonce",
|
|
7627
|
+
fieldType: "cl::t::uint64"
|
|
7628
|
+
},
|
|
7629
|
+
5: {
|
|
7637
7630
|
fieldName: "UlnConnection::ulnAddress",
|
|
7638
7631
|
fieldType: "cl::t::address"
|
|
7639
7632
|
},
|
|
7640
|
-
|
|
7633
|
+
6: {
|
|
7641
7634
|
fieldName: "UlnConnection::UlnSendConfigOApp",
|
|
7642
7635
|
fieldType: "cl::t::objRef"
|
|
7643
7636
|
},
|
|
7644
|
-
|
|
7637
|
+
7: {
|
|
7645
7638
|
fieldName: "UlnConnection::UlnReceiveConfigOApp",
|
|
7646
7639
|
fieldType: "cl::t::objRef"
|
|
7647
7640
|
},
|
|
7648
|
-
|
|
7641
|
+
8: {
|
|
7649
7642
|
fieldName: "UlnConnection::hashLookups",
|
|
7650
7643
|
fieldType: "cl::t::dict256"
|
|
7651
7644
|
},
|
|
7652
|
-
8: {
|
|
7653
|
-
fieldName: "UlnConnection::firstUnexecutedNonce",
|
|
7654
|
-
fieldType: "cl::t::uint64"
|
|
7655
|
-
},
|
|
7656
7645
|
9: {
|
|
7657
7646
|
fieldName: "UlnConnection::commitPOOO",
|
|
7658
7647
|
fieldType: "cl::t::objRef"
|
|
@@ -7832,6 +7821,10 @@ var tonObjects = {
|
|
|
7832
7821
|
3: {
|
|
7833
7822
|
fieldName: "md::ExecuteParams::opcode",
|
|
7834
7823
|
fieldType: "cl::t::uint32"
|
|
7824
|
+
},
|
|
7825
|
+
4: {
|
|
7826
|
+
fieldName: "md::ExecuteParams::forwardingAddress",
|
|
7827
|
+
fieldType: "cl::t::address"
|
|
7835
7828
|
}
|
|
7836
7829
|
},
|
|
7837
7830
|
"md::NativeDrop": {
|
|
@@ -7854,6 +7847,10 @@ var tonObjects = {
|
|
|
7854
7847
|
2: {
|
|
7855
7848
|
fieldName: "md::SetDict::dict",
|
|
7856
7849
|
fieldType: "cl::t::dict256"
|
|
7850
|
+
},
|
|
7851
|
+
3: {
|
|
7852
|
+
fieldName: "md::SetDict::target",
|
|
7853
|
+
fieldType: "cl::t::uint64"
|
|
7857
7854
|
}
|
|
7858
7855
|
},
|
|
7859
7856
|
"md::SetQuorum": {
|
|
@@ -7869,6 +7866,10 @@ var tonObjects = {
|
|
|
7869
7866
|
2: {
|
|
7870
7867
|
fieldName: "md::SetQuorum::quorum",
|
|
7871
7868
|
fieldType: "cl::t::uint64"
|
|
7869
|
+
},
|
|
7870
|
+
3: {
|
|
7871
|
+
fieldName: "md::SetQuorum::target",
|
|
7872
|
+
fieldType: "cl::t::uint64"
|
|
7872
7873
|
}
|
|
7873
7874
|
},
|
|
7874
7875
|
"md::SignedRequest": {
|
|
@@ -9526,6 +9527,13 @@ var tonResolvedObjects = {
|
|
|
9526
9527
|
name: "setQuorum"
|
|
9527
9528
|
}
|
|
9528
9529
|
};
|
|
9530
|
+
var appsAllStorages = class {
|
|
9531
|
+
static async getGetCellBits(contract, input) {
|
|
9532
|
+
const args = [{ type: "cell", cell: input }];
|
|
9533
|
+
const stack = await contract.getViewFunction("getCellBits", args);
|
|
9534
|
+
return [stack.readBigNumber()];
|
|
9535
|
+
}
|
|
9536
|
+
};
|
|
9529
9537
|
var appsCounter = class {
|
|
9530
9538
|
static async getGetBaseOAppStorage(contract) {
|
|
9531
9539
|
const args = [];
|
|
@@ -9765,8 +9773,11 @@ var protocolEndpoint = class {
|
|
|
9765
9773
|
const stack = await contract.getViewFunction("_msglibManagerToShards", args);
|
|
9766
9774
|
return [stack.readBigNumber(), stack.readBigNumber()];
|
|
9767
9775
|
}
|
|
9768
|
-
static async get_getChannelAddress(contract, path) {
|
|
9769
|
-
const args = [
|
|
9776
|
+
static async get_getChannelAddress(contract, storage, path) {
|
|
9777
|
+
const args = [
|
|
9778
|
+
{ type: "cell", cell: storage },
|
|
9779
|
+
{ type: "cell", cell: path }
|
|
9780
|
+
];
|
|
9770
9781
|
const stack = await contract.getViewFunction("_getChannelAddress", args);
|
|
9771
9782
|
return [stack.readBigNumber()];
|
|
9772
9783
|
}
|
|
@@ -9778,26 +9789,35 @@ var protocolEndpoint = class {
|
|
|
9778
9789
|
const stack = await contract.getViewFunction("_getEpConfigFromManagerAddresses", args);
|
|
9779
9790
|
return [stack.readCell()];
|
|
9780
9791
|
}
|
|
9781
|
-
static async get_getMsglibAndConnectionDefaults(contract,
|
|
9792
|
+
static async get_getMsglibAndConnectionDefaults(contract, msglibInfo, path) {
|
|
9782
9793
|
const args = [
|
|
9783
|
-
{ type: "
|
|
9794
|
+
{ type: "cell", cell: msglibInfo },
|
|
9784
9795
|
{ type: "cell", cell: path }
|
|
9785
9796
|
];
|
|
9786
9797
|
const stack = await contract.getViewFunction("_getMsglibAndConnectionDefaults", args);
|
|
9787
9798
|
return [stack.readBigNumber(), stack.readBigNumber()];
|
|
9788
9799
|
}
|
|
9789
|
-
static async
|
|
9790
|
-
const args = [
|
|
9791
|
-
|
|
9800
|
+
static async getGetSendMsglibAndConnectionDefaults(contract, storage, path) {
|
|
9801
|
+
const args = [
|
|
9802
|
+
{ type: "cell", cell: storage },
|
|
9803
|
+
{ type: "cell", cell: path }
|
|
9804
|
+
];
|
|
9805
|
+
const stack = await contract.getViewFunction("getSendMsglibAndConnectionDefaults", args);
|
|
9792
9806
|
return [stack.readBigNumber(), stack.readBigNumber()];
|
|
9793
9807
|
}
|
|
9794
|
-
static async getGetReceiveMsglibAndConnectionDefaults(contract, path) {
|
|
9795
|
-
const args = [
|
|
9808
|
+
static async getGetReceiveMsglibAndConnectionDefaults(contract, storage, path) {
|
|
9809
|
+
const args = [
|
|
9810
|
+
{ type: "cell", cell: storage },
|
|
9811
|
+
{ type: "cell", cell: path }
|
|
9812
|
+
];
|
|
9796
9813
|
const stack = await contract.getViewFunction("getReceiveMsglibAndConnectionDefaults", args);
|
|
9797
9814
|
return [stack.readBigNumber(), stack.readBigNumber()];
|
|
9798
9815
|
}
|
|
9799
|
-
static async getGetTimeoutReceiveMsglibAndConnectionDefaults(contract, path) {
|
|
9800
|
-
const args = [
|
|
9816
|
+
static async getGetTimeoutReceiveMsglibAndConnectionDefaults(contract, storage, path) {
|
|
9817
|
+
const args = [
|
|
9818
|
+
{ type: "cell", cell: storage },
|
|
9819
|
+
{ type: "cell", cell: path }
|
|
9820
|
+
];
|
|
9801
9821
|
const stack = await contract.getViewFunction("getTimeoutReceiveMsglibAndConnectionDefaults", args);
|
|
9802
9822
|
return [stack.readBigNumber(), stack.readBigNumber()];
|
|
9803
9823
|
}
|
|
@@ -11330,6 +11350,7 @@ var ERRORS = {
|
|
|
11330
11350
|
SmlManager_ERROR_onlyConnection: 528n,
|
|
11331
11351
|
UlnWorkerInterface_ERROR_UNKNOWN_OPTIONS: 52n,
|
|
11332
11352
|
UlnWorkerInterface_ERROR_ZERO_LZ_COMPOSE_GAS_PROVIDED: 53n,
|
|
11353
|
+
UlnWorkerInterface_ERROR_INVALID_OPTIONS: 54n,
|
|
11333
11354
|
UlnReceiveConfig_ERROR_DVN_CONFIG_ERROR: 321n,
|
|
11334
11355
|
UlnReceiveConfig_ERROR_OPTIONAL_THRESHOLD_TOO_LARGE: 385n,
|
|
11335
11356
|
UlnReceiveConfig_ERROR_OPTIONAL_THRESHOLD_TOO_LOW: 386n,
|
|
@@ -11355,10 +11376,11 @@ var ERRORS = {
|
|
|
11355
11376
|
UlnManager_ERROR_invalidAdminWorkerList: 168n,
|
|
11356
11377
|
UlnManager_ERROR_onlyTentativeOwner: 169n,
|
|
11357
11378
|
UlnManager_ERROR_nullTentativeOwner: 170n,
|
|
11379
|
+
Worker_ERROR_invalidForwardingAddress: 2016n,
|
|
11358
11380
|
Worker_ERROR_onlyAdmin: 2015n,
|
|
11359
11381
|
Worker_ERROR_invalidOpcode: 2014n,
|
|
11360
11382
|
Worker_ERROR_invalidSignedOpcode: 2013n,
|
|
11361
|
-
|
|
11383
|
+
Worker_ERROR_invalidTarget: 2012n,
|
|
11362
11384
|
Dvn_ERROR_expired: 1983n,
|
|
11363
11385
|
Dvn_ERROR_quorumNotMet: 1982n,
|
|
11364
11386
|
Dvn_ERROR_notEnoughSignatures: 1981n,
|
|
@@ -11537,6 +11559,10 @@ var EVENTS = {
|
|
|
11537
11559
|
Executor_event_LZ_RECEIVE_ALERT: {
|
|
11538
11560
|
stringValue: "Executor::event::LZ_RCV_ALERT",
|
|
11539
11561
|
intValue: 1872915503847835639517843655130358044835956776372090239617289700069972n
|
|
11562
|
+
},
|
|
11563
|
+
Executor_event_NATIVE_DROP: {
|
|
11564
|
+
stringValue: "Executor::event::NATIVE_DROP",
|
|
11565
|
+
intValue: 7316076186905607966866576777852961112640458457292397282198021099344n
|
|
11540
11566
|
}
|
|
11541
11567
|
};
|
|
11542
11568
|
|
|
@@ -11665,7 +11691,6 @@ var nameMap = {
|
|
|
11665
11691
|
SmlJobAssg: "LzSmlJobAssigned",
|
|
11666
11692
|
Worker: "LzWorker",
|
|
11667
11693
|
addMsgLib: "MdAddMsglib",
|
|
11668
|
-
Amount: "MdAmount",
|
|
11669
11694
|
Bool: "MdBool",
|
|
11670
11695
|
cNonceInfo: "MdChannelNonceInfo",
|
|
11671
11696
|
coinsAmt: "MdCoinsAmount",
|
|
@@ -11728,6 +11753,7 @@ var nameMap = {
|
|
|
11728
11753
|
wrkCorStor: "WorkerCoreStorage",
|
|
11729
11754
|
dvn: "Dvn",
|
|
11730
11755
|
executor: "Executor",
|
|
11756
|
+
DropEvent: "MdDropEvent",
|
|
11731
11757
|
execParams: "MdExecuteParams",
|
|
11732
11758
|
NativeDrop: "MdNativeDrop",
|
|
11733
11759
|
setDct: "MdSetDict",
|
|
@@ -11740,7 +11766,7 @@ var keyMap = {
|
|
|
11740
11766
|
baseOApp: "BaseOApp",
|
|
11741
11767
|
counter: "Counter",
|
|
11742
11768
|
Config: "lz::Config",
|
|
11743
|
-
EpConfig: "lz::EpConfig::
|
|
11769
|
+
EpConfig: "lz::EpConfig::NewWithDefaults",
|
|
11744
11770
|
MsglibInfo: "lz::MsglibInfo",
|
|
11745
11771
|
Packet: "lz::Packet",
|
|
11746
11772
|
path: "lz::Path",
|
|
@@ -11749,7 +11775,6 @@ var keyMap = {
|
|
|
11749
11775
|
SmlJobAssg: "lz::SmlJobAssigned",
|
|
11750
11776
|
Worker: "lz::Worker",
|
|
11751
11777
|
addMsgLib: "md::AddMsglib",
|
|
11752
|
-
Amount: "md::Amount",
|
|
11753
11778
|
Bool: "md::Bool",
|
|
11754
11779
|
cNonceInfo: "md::ChannelNonceInfo",
|
|
11755
11780
|
coinsAmt: "md::CoinsAmount",
|
|
@@ -11777,7 +11802,7 @@ var keyMap = {
|
|
|
11777
11802
|
setPeer: "md::SetPeer",
|
|
11778
11803
|
setSmlCfg: "md::SetSmlManagerConfig",
|
|
11779
11804
|
event: "action::event",
|
|
11780
|
-
POOO: "POOO
|
|
11805
|
+
POOO: "POOO",
|
|
11781
11806
|
channel: "Channel",
|
|
11782
11807
|
controller: "Controller",
|
|
11783
11808
|
baseStore: "BaseStorage",
|
|
@@ -11812,6 +11837,7 @@ var keyMap = {
|
|
|
11812
11837
|
wrkCorStor: "WorkerCoreStorage",
|
|
11813
11838
|
dvn: "Dvn",
|
|
11814
11839
|
executor: "Executor",
|
|
11840
|
+
DropEvent: "md::DropEvent",
|
|
11815
11841
|
execParams: "md::ExecuteParams",
|
|
11816
11842
|
NativeDrop: "md::NativeDrop",
|
|
11817
11843
|
setDct: "md::SetDict",
|
|
@@ -11971,7 +11997,8 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
11971
11997
|
}
|
|
11972
11998
|
async getNewLzEpConfigNewWithConnection(provider, args) {
|
|
11973
11999
|
const getResult = await provider.get("lz::EpConfig::NewWithConnection", [
|
|
11974
|
-
{ type: "int", value: args.
|
|
12000
|
+
{ type: "int", value: args.isNull },
|
|
12001
|
+
{ type: "int", value: args.sendMsglibManager },
|
|
11975
12002
|
{ type: "int", value: args.sendMsglib },
|
|
11976
12003
|
{ type: "int", value: args.sendMsglibConnection },
|
|
11977
12004
|
{ type: "int", value: args.receiveMsglib },
|
|
@@ -11984,7 +12011,8 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
11984
12011
|
}
|
|
11985
12012
|
async getNewLzEpConfig(provider, args) {
|
|
11986
12013
|
const getResult = await provider.get("lz::EpConfig::New", [
|
|
11987
|
-
{ type: "int", value: args.
|
|
12014
|
+
{ type: "int", value: args.isNull },
|
|
12015
|
+
{ type: "int", value: args.sendMsglibManager },
|
|
11988
12016
|
{ type: "int", value: args.sendMsglib },
|
|
11989
12017
|
{ type: "int", value: args.receiveMsglib },
|
|
11990
12018
|
{ type: "int", value: args.timeoutReceiveMsglib },
|
|
@@ -11996,13 +12024,6 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
11996
12024
|
const getResult = await provider.get("lz::EpConfig::NewWithDefaults", []);
|
|
11997
12025
|
return getResult.stack.readCell();
|
|
11998
12026
|
}
|
|
11999
|
-
async getNewLzEpConfigNewFrom(provider, args) {
|
|
12000
|
-
const getResult = await provider.get("lz::EpConfig::NewFrom", [
|
|
12001
|
-
{ type: "int", value: args.sendMsglib },
|
|
12002
|
-
{ type: "int", value: args.receiveMsglib }
|
|
12003
|
-
]);
|
|
12004
|
-
return getResult.stack.readCell();
|
|
12005
|
-
}
|
|
12006
12027
|
async getNewLzMsglibInfo(provider, args) {
|
|
12007
12028
|
const getResult = await provider.get("lz::MsglibInfo::New", [
|
|
12008
12029
|
{ type: "int", value: args.msglibAddress },
|
|
@@ -12038,8 +12059,9 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
12038
12059
|
}
|
|
12039
12060
|
async getNewLzSendEpConfig(provider, args) {
|
|
12040
12061
|
const getResult = await provider.get("lz::SendEpConfig::New", [
|
|
12041
|
-
{ type: "int", value: args.
|
|
12042
|
-
{ type: "int", value: args.
|
|
12062
|
+
{ type: "int", value: args.sendMsglibManager },
|
|
12063
|
+
{ type: "int", value: args.sendMsglib },
|
|
12064
|
+
{ type: "int", value: args.sendMsglibConnection }
|
|
12043
12065
|
]);
|
|
12044
12066
|
return getResult.stack.readCell();
|
|
12045
12067
|
}
|
|
@@ -12063,10 +12085,6 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
12063
12085
|
]);
|
|
12064
12086
|
return getResult.stack.readCell();
|
|
12065
12087
|
}
|
|
12066
|
-
async getNewMdAmount(provider, args) {
|
|
12067
|
-
const getResult = await provider.get("md::Amount::New", [{ type: "int", value: args.amount }]);
|
|
12068
|
-
return getResult.stack.readCell();
|
|
12069
|
-
}
|
|
12070
12088
|
async getNewMdBool(provider, args) {
|
|
12071
12089
|
const getResult = await provider.get("md::Bool::New", [{ type: "int", value: args.boolean }]);
|
|
12072
12090
|
return getResult.stack.readCell();
|
|
@@ -12299,13 +12317,6 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
12299
12317
|
const getResult = await provider.get("POOO::New", []);
|
|
12300
12318
|
return getResult.stack.readCell();
|
|
12301
12319
|
}
|
|
12302
|
-
async getNewPOOONewWithBitsSets(provider, args) {
|
|
12303
|
-
const getResult = await provider.get("POOO::NewWithBitsSets", [
|
|
12304
|
-
{ type: "int", value: args.startingBit },
|
|
12305
|
-
{ type: "int", value: args.endingBit }
|
|
12306
|
-
]);
|
|
12307
|
-
return getResult.stack.readCell();
|
|
12308
|
-
}
|
|
12309
12320
|
async getNewChannel(provider, args) {
|
|
12310
12321
|
const getResult = await provider.get("Channel::New", [
|
|
12311
12322
|
{ type: "int", value: args.owner },
|
|
@@ -12601,12 +12612,20 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
12601
12612
|
]);
|
|
12602
12613
|
return getResult.stack.readCell();
|
|
12603
12614
|
}
|
|
12615
|
+
async getNewMdDropEvent(provider, args) {
|
|
12616
|
+
const getResult = await provider.get("md::DropEvent::New", [
|
|
12617
|
+
{ type: "int", value: args.nativeAmount },
|
|
12618
|
+
{ type: "int", value: args.receiver }
|
|
12619
|
+
]);
|
|
12620
|
+
return getResult.stack.readCell();
|
|
12621
|
+
}
|
|
12604
12622
|
async getNewMdExecuteParams(provider, args) {
|
|
12605
12623
|
const getResult = await provider.get("md::ExecuteParams::New", [
|
|
12606
12624
|
{ type: "int", value: args.target },
|
|
12607
12625
|
{ type: "cell", cell: args.callData },
|
|
12608
12626
|
{ type: "int", value: args.expiration },
|
|
12609
|
-
{ type: "int", value: args.opcode }
|
|
12627
|
+
{ type: "int", value: args.opcode },
|
|
12628
|
+
{ type: "int", value: args.forwardingAddress }
|
|
12610
12629
|
]);
|
|
12611
12630
|
return getResult.stack.readCell();
|
|
12612
12631
|
}
|
|
@@ -12618,7 +12637,8 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
12618
12637
|
const getResult = await provider.get("md::SetDict::New", [
|
|
12619
12638
|
{ type: "int", value: args.nonce },
|
|
12620
12639
|
{ type: "int", value: args.opcode },
|
|
12621
|
-
{ type: "cell", cell: args._dict }
|
|
12640
|
+
{ type: "cell", cell: args._dict },
|
|
12641
|
+
{ type: "int", value: args.target }
|
|
12622
12642
|
]);
|
|
12623
12643
|
return getResult.stack.readCell();
|
|
12624
12644
|
}
|
|
@@ -12626,7 +12646,8 @@ var TonContractWrapper = class _TonContractWrapper extends BaseWrapper {
|
|
|
12626
12646
|
const getResult = await provider.get("md::SetQuorum::New", [
|
|
12627
12647
|
{ type: "int", value: args.nonce },
|
|
12628
12648
|
{ type: "int", value: args.opcode },
|
|
12629
|
-
{ type: "int", value: args.quorum }
|
|
12649
|
+
{ type: "int", value: args.quorum },
|
|
12650
|
+
{ type: "int", value: args.target }
|
|
12630
12651
|
]);
|
|
12631
12652
|
return getResult.stack.readCell();
|
|
12632
12653
|
}
|
|
@@ -15423,7 +15444,7 @@ var TonObjectUnwrapper = class {
|
|
|
15423
15444
|
const inboundCount = await getLzDict(cell, 2n, wrapper);
|
|
15424
15445
|
const outboundCount = await getLzDict(cell, 3n, wrapper);
|
|
15425
15446
|
const failNextLzReceive = await wrapper.getClInt("cl::get<bool>", cell, 4n);
|
|
15426
|
-
const id = await wrapper.getClInt("cl::get<
|
|
15447
|
+
const id = await wrapper.getClInt("cl::get<uint32>", cell, 5n);
|
|
15427
15448
|
return {
|
|
15428
15449
|
baseStorage,
|
|
15429
15450
|
baseOAppStorage,
|
|
@@ -15446,16 +15467,18 @@ var TonObjectUnwrapper = class {
|
|
|
15446
15467
|
};
|
|
15447
15468
|
}
|
|
15448
15469
|
static async getLzEpConfigNewWithConnectionToTS(wrapper, cell) {
|
|
15449
|
-
const
|
|
15450
|
-
const
|
|
15451
|
-
const
|
|
15452
|
-
const
|
|
15453
|
-
const
|
|
15454
|
-
const
|
|
15455
|
-
const
|
|
15456
|
-
const
|
|
15470
|
+
const _timeoutReceiveMsglibOffset = await wrapper.getClInt("cl::get<bool>", cell, 0n);
|
|
15471
|
+
const sendMsglibManager = await wrapper.getClInt("cl::get<address>", cell, 1n);
|
|
15472
|
+
const sendMsglib = await wrapper.getClInt("cl::get<address>", cell, 2n);
|
|
15473
|
+
const sendMsglibConnection = await wrapper.getClInt("cl::get<address>", cell, 3n);
|
|
15474
|
+
const receiveMsglib = await wrapper.getClInt("cl::get<address>", cell, 4n);
|
|
15475
|
+
const receiveMsglibConnection = await wrapper.getClInt("cl::get<address>", cell, 5n);
|
|
15476
|
+
const timeoutReceiveMsglib = await wrapper.getClInt("cl::get<address>", cell, 6n);
|
|
15477
|
+
const timeoutReceiveMsglibConnection = await wrapper.getClInt("cl::get<address>", cell, 7n);
|
|
15478
|
+
const timeoutReceiveMsglibExpiry = await wrapper.getClInt("cl::get<uint64>", cell, 8n);
|
|
15457
15479
|
return {
|
|
15458
|
-
|
|
15480
|
+
_timeoutReceiveMsglibOffset,
|
|
15481
|
+
sendMsglibManager,
|
|
15459
15482
|
sendMsglib,
|
|
15460
15483
|
sendMsglibConnection,
|
|
15461
15484
|
receiveMsglib,
|
|
@@ -15500,21 +15523,23 @@ var TonObjectUnwrapper = class {
|
|
|
15500
15523
|
};
|
|
15501
15524
|
}
|
|
15502
15525
|
static async getLzReceiveEpConfigToTS(wrapper, cell) {
|
|
15503
|
-
const
|
|
15504
|
-
const
|
|
15526
|
+
const receiveMsglibConnection = await wrapper.getClInt("cl::get<address>", cell, 0n);
|
|
15527
|
+
const timeoutReceiveMsglibConnection = await wrapper.getClInt("cl::get<address>", cell, 1n);
|
|
15505
15528
|
const expiry = await wrapper.getClInt("cl::get<uint64>", cell, 2n);
|
|
15506
15529
|
return {
|
|
15507
|
-
|
|
15508
|
-
|
|
15530
|
+
receiveMsglibConnection,
|
|
15531
|
+
timeoutReceiveMsglibConnection,
|
|
15509
15532
|
expiry
|
|
15510
15533
|
};
|
|
15511
15534
|
}
|
|
15512
15535
|
static async getLzSendEpConfigToTS(wrapper, cell) {
|
|
15513
|
-
const
|
|
15514
|
-
const
|
|
15536
|
+
const _sendMsglibConnectionOffset = await wrapper.getClInt("cl::get<address>", cell, 0n);
|
|
15537
|
+
const sendMsglib = await wrapper.getClInt("cl::get<address>", cell, 1n);
|
|
15538
|
+
const sendMsglibConnection = await wrapper.getClInt("cl::get<address>", cell, 2n);
|
|
15515
15539
|
return {
|
|
15516
|
-
|
|
15517
|
-
|
|
15540
|
+
_sendMsglibConnectionOffset,
|
|
15541
|
+
sendMsglib,
|
|
15542
|
+
sendMsglibConnection
|
|
15518
15543
|
};
|
|
15519
15544
|
}
|
|
15520
15545
|
static async getLzSmlJobAssignedToTS(wrapper, cell) {
|
|
@@ -15547,12 +15572,6 @@ var TonObjectUnwrapper = class {
|
|
|
15547
15572
|
dstEid
|
|
15548
15573
|
};
|
|
15549
15574
|
}
|
|
15550
|
-
static async getMdAmountToTS(wrapper, cell) {
|
|
15551
|
-
const amount = await wrapper.getClInt("cl::get<coins>", cell, 0n);
|
|
15552
|
-
return {
|
|
15553
|
-
amount
|
|
15554
|
-
};
|
|
15555
|
-
}
|
|
15556
15575
|
static async getMdBoolToTS(wrapper, cell) {
|
|
15557
15576
|
const bool = await wrapper.getClInt("cl::get<bool>", cell, 0n);
|
|
15558
15577
|
return {
|
|
@@ -15658,17 +15677,19 @@ var TonObjectUnwrapper = class {
|
|
|
15658
15677
|
};
|
|
15659
15678
|
}
|
|
15660
15679
|
static async getMdLzSendToTS(wrapper, cell) {
|
|
15661
|
-
const
|
|
15662
|
-
const
|
|
15663
|
-
const
|
|
15664
|
-
const
|
|
15665
|
-
const
|
|
15666
|
-
const
|
|
15667
|
-
const
|
|
15668
|
-
const
|
|
15669
|
-
const
|
|
15680
|
+
const _sendMsglibConnectionOffset = await wrapper.getClInt("cl::get<uint64>", cell, 0n);
|
|
15681
|
+
const sendMsglibManager = await wrapper.getClInt("cl::get<address>", cell, 1n);
|
|
15682
|
+
const sendMsglib = await wrapper.getClInt("cl::get<address>", cell, 2n);
|
|
15683
|
+
const sendMsglibConnection = await wrapper.getClInt("cl::get<address>", cell, 3n);
|
|
15684
|
+
const packet = await wrapper.getClCell(cell, 4n);
|
|
15685
|
+
const nativeFee = await wrapper.getClInt("cl::get<coins>", cell, 5n);
|
|
15686
|
+
const zroFee = await wrapper.getClInt("cl::get<coins>", cell, 6n);
|
|
15687
|
+
const extraOptions = await wrapper.getClCell(cell, 7n);
|
|
15688
|
+
const enforcedOptions = await wrapper.getClCell(cell, 8n);
|
|
15689
|
+
const callbackData = await wrapper.getClCell(cell, 9n);
|
|
15670
15690
|
return {
|
|
15671
|
-
|
|
15691
|
+
_sendMsglibConnectionOffset,
|
|
15692
|
+
sendMsglibManager,
|
|
15672
15693
|
sendMsglib,
|
|
15673
15694
|
sendMsglibConnection,
|
|
15674
15695
|
packet,
|
|
@@ -15758,12 +15779,12 @@ var TonObjectUnwrapper = class {
|
|
|
15758
15779
|
};
|
|
15759
15780
|
}
|
|
15760
15781
|
static async getMdOptionsV1ToTS(wrapper, cell) {
|
|
15761
|
-
const
|
|
15782
|
+
const _nativeDropAddressOffset = await wrapper.getClInt("cl::get<uint256>", cell, 0n);
|
|
15762
15783
|
const lzReceiveValue = await wrapper.getClInt("cl::get<uint256>", cell, 1n);
|
|
15763
15784
|
const nativeDropAddress = await wrapper.getClInt("cl::get<address>", cell, 2n);
|
|
15764
15785
|
const nativeDropAmount = await wrapper.getClInt("cl::get<uint256>", cell, 3n);
|
|
15765
15786
|
return {
|
|
15766
|
-
|
|
15787
|
+
_nativeDropAddressOffset,
|
|
15767
15788
|
lzReceiveValue,
|
|
15768
15789
|
nativeDropAddress,
|
|
15769
15790
|
nativeDropAmount
|
|
@@ -15843,7 +15864,7 @@ var TonObjectUnwrapper = class {
|
|
|
15843
15864
|
initialStorage
|
|
15844
15865
|
};
|
|
15845
15866
|
}
|
|
15846
|
-
static async
|
|
15867
|
+
static async getPOOOToTS(wrapper, cell) {
|
|
15847
15868
|
const nextEmpty = await wrapper.getClInt("cl::get<uint64>", cell, 0n);
|
|
15848
15869
|
const bitmap = await wrapper.getClCell(cell, 1n);
|
|
15849
15870
|
return {
|
|
@@ -15913,10 +15934,11 @@ var TonObjectUnwrapper = class {
|
|
|
15913
15934
|
const numMsglibs = await wrapper.getClInt("cl::get<uint8>", cell, 4n);
|
|
15914
15935
|
const channelCode = await wrapper.getClCell(cell, 5n);
|
|
15915
15936
|
const channelStorageInit = await wrapper.getClCell(cell, 6n);
|
|
15916
|
-
const
|
|
15917
|
-
const
|
|
15918
|
-
const
|
|
15919
|
-
const
|
|
15937
|
+
const defaultSendMsglibManager = await wrapper.getClInt("cl::get<address>", cell, 7n);
|
|
15938
|
+
const defaultSendLibInfo = await wrapper.getClCell(cell, 8n);
|
|
15939
|
+
const defaultReceiveLibInfo = await wrapper.getClCell(cell, 9n);
|
|
15940
|
+
const defaultTimeoutReceiveLibInfo = await wrapper.getClCell(cell, 10n);
|
|
15941
|
+
const defaultExpiry = await wrapper.getClInt("cl::get<uint64>", cell, 11n);
|
|
15920
15942
|
return {
|
|
15921
15943
|
baseStorage,
|
|
15922
15944
|
eid,
|
|
@@ -15925,6 +15947,7 @@ var TonObjectUnwrapper = class {
|
|
|
15925
15947
|
numMsglibs,
|
|
15926
15948
|
channelCode,
|
|
15927
15949
|
channelStorageInit,
|
|
15950
|
+
defaultSendMsglibManager,
|
|
15928
15951
|
defaultSendLibInfo,
|
|
15929
15952
|
defaultReceiveLibInfo,
|
|
15930
15953
|
defaultTimeoutReceiveLibInfo,
|
|
@@ -16192,26 +16215,26 @@ var TonObjectUnwrapper = class {
|
|
|
16192
16215
|
};
|
|
16193
16216
|
}
|
|
16194
16217
|
static async getUlnConnectionToTS(wrapper, cell) {
|
|
16195
|
-
const
|
|
16218
|
+
const _ulnAddressOffset = await wrapper.getClCell(cell, 0n);
|
|
16196
16219
|
const path = await wrapper.getClCell(cell, 1n);
|
|
16197
16220
|
const endpointAddress = await wrapper.getClInt("cl::get<address>", cell, 2n);
|
|
16198
16221
|
const channelAddress = await wrapper.getClInt("cl::get<address>", cell, 3n);
|
|
16199
|
-
const
|
|
16200
|
-
const
|
|
16201
|
-
const
|
|
16202
|
-
const
|
|
16203
|
-
const
|
|
16222
|
+
const firstUnexecutedNonce = await wrapper.getClInt("cl::get<uint64>", cell, 4n);
|
|
16223
|
+
const ulnAddress = await wrapper.getClInt("cl::get<address>", cell, 5n);
|
|
16224
|
+
const UlnSendConfigOApp = await wrapper.getClCell(cell, 6n);
|
|
16225
|
+
const UlnReceiveConfigOApp = await wrapper.getClCell(cell, 7n);
|
|
16226
|
+
const hashLookups = await getLzDict(cell, 8n, wrapper);
|
|
16204
16227
|
const commitPOOO = await wrapper.getClCell(cell, 9n);
|
|
16205
16228
|
return {
|
|
16206
|
-
|
|
16229
|
+
_ulnAddressOffset,
|
|
16207
16230
|
path,
|
|
16208
16231
|
endpointAddress,
|
|
16209
16232
|
channelAddress,
|
|
16233
|
+
firstUnexecutedNonce,
|
|
16210
16234
|
ulnAddress,
|
|
16211
16235
|
UlnSendConfigOApp,
|
|
16212
16236
|
UlnReceiveConfigOApp,
|
|
16213
16237
|
hashLookups,
|
|
16214
|
-
firstUnexecutedNonce,
|
|
16215
16238
|
commitPOOO
|
|
16216
16239
|
};
|
|
16217
16240
|
}
|
|
@@ -16311,16 +16334,26 @@ var TonObjectUnwrapper = class {
|
|
|
16311
16334
|
nativeDropTotalCap
|
|
16312
16335
|
};
|
|
16313
16336
|
}
|
|
16337
|
+
static async getMdDropEventToTS(wrapper, cell) {
|
|
16338
|
+
const nativeAmount = await wrapper.getClInt("cl::get<coins>", cell, 0n);
|
|
16339
|
+
const receiver = await wrapper.getClInt("cl::get<address>", cell, 1n);
|
|
16340
|
+
return {
|
|
16341
|
+
nativeAmount,
|
|
16342
|
+
receiver
|
|
16343
|
+
};
|
|
16344
|
+
}
|
|
16314
16345
|
static async getMdExecuteParamsToTS(wrapper, cell) {
|
|
16315
16346
|
const target = await wrapper.getClInt("cl::get<address>", cell, 0n);
|
|
16316
16347
|
const callData = await wrapper.getClCell(cell, 1n);
|
|
16317
16348
|
const expiration = await wrapper.getClInt("cl::get<uint64>", cell, 2n);
|
|
16318
16349
|
const opcode = await wrapper.getClInt("cl::get<uint32>", cell, 3n);
|
|
16350
|
+
const forwardingAddress = await wrapper.getClInt("cl::get<address>", cell, 4n);
|
|
16319
16351
|
return {
|
|
16320
16352
|
target,
|
|
16321
16353
|
callData,
|
|
16322
16354
|
expiration,
|
|
16323
|
-
opcode
|
|
16355
|
+
opcode,
|
|
16356
|
+
forwardingAddress
|
|
16324
16357
|
};
|
|
16325
16358
|
}
|
|
16326
16359
|
static async getMdNativeDropToTS(wrapper, cell) {
|
|
@@ -16333,20 +16366,24 @@ var TonObjectUnwrapper = class {
|
|
|
16333
16366
|
const nonce = await wrapper.getClInt("cl::get<uint64>", cell, 0n);
|
|
16334
16367
|
const opcode = await wrapper.getClInt("cl::get<uint64>", cell, 1n);
|
|
16335
16368
|
const dict = await getLzDict(cell, 2n, wrapper);
|
|
16369
|
+
const target = await wrapper.getClInt("cl::get<address>", cell, 3n);
|
|
16336
16370
|
return {
|
|
16337
16371
|
nonce,
|
|
16338
16372
|
opcode,
|
|
16339
|
-
dict
|
|
16373
|
+
dict,
|
|
16374
|
+
target
|
|
16340
16375
|
};
|
|
16341
16376
|
}
|
|
16342
16377
|
static async getMdSetQuorumToTS(wrapper, cell) {
|
|
16343
16378
|
const nonce = await wrapper.getClInt("cl::get<uint64>", cell, 0n);
|
|
16344
16379
|
const opcode = await wrapper.getClInt("cl::get<uint64>", cell, 1n);
|
|
16345
16380
|
const quorum = await wrapper.getClInt("cl::get<uint64>", cell, 2n);
|
|
16381
|
+
const target = await wrapper.getClInt("cl::get<address>", cell, 3n);
|
|
16346
16382
|
return {
|
|
16347
16383
|
nonce,
|
|
16348
16384
|
opcode,
|
|
16349
|
-
quorum
|
|
16385
|
+
quorum,
|
|
16386
|
+
target
|
|
16350
16387
|
};
|
|
16351
16388
|
}
|
|
16352
16389
|
static async getMdSignedRequestToTS(wrapper, cell) {
|
|
@@ -16387,7 +16424,6 @@ var deconstructorMap = {
|
|
|
16387
16424
|
SmlJobAssg: TonObjectUnwrapper.getLzSmlJobAssignedToTS,
|
|
16388
16425
|
Worker: TonObjectUnwrapper.getLzWorkerToTS,
|
|
16389
16426
|
addMsgLib: TonObjectUnwrapper.getMdAddMsglibToTS,
|
|
16390
|
-
Amount: TonObjectUnwrapper.getMdAmountToTS,
|
|
16391
16427
|
Bool: TonObjectUnwrapper.getMdBoolToTS,
|
|
16392
16428
|
cNonceInfo: TonObjectUnwrapper.getMdChannelNonceInfoToTS,
|
|
16393
16429
|
coinsAmt: TonObjectUnwrapper.getMdCoinsAmountToTS,
|
|
@@ -16415,7 +16451,7 @@ var deconstructorMap = {
|
|
|
16415
16451
|
setPeer: TonObjectUnwrapper.getMdSetPeerToTS,
|
|
16416
16452
|
setSmlCfg: TonObjectUnwrapper.getMdSetSmlManagerConfigToTS,
|
|
16417
16453
|
event: TonObjectUnwrapper.getActionEventToTS,
|
|
16418
|
-
POOO: TonObjectUnwrapper.
|
|
16454
|
+
POOO: TonObjectUnwrapper.getPOOOToTS,
|
|
16419
16455
|
channel: TonObjectUnwrapper.getChannelToTS,
|
|
16420
16456
|
controller: TonObjectUnwrapper.getControllerToTS,
|
|
16421
16457
|
baseStore: TonObjectUnwrapper.getBaseStorageToTS,
|
|
@@ -16450,6 +16486,7 @@ var deconstructorMap = {
|
|
|
16450
16486
|
wrkCorStor: TonObjectUnwrapper.getWorkerCoreStorageToTS,
|
|
16451
16487
|
dvn: TonObjectUnwrapper.getDvnToTS,
|
|
16452
16488
|
executor: TonObjectUnwrapper.getExecutorToTS,
|
|
16489
|
+
DropEvent: TonObjectUnwrapper.getMdDropEventToTS,
|
|
16453
16490
|
execParams: TonObjectUnwrapper.getMdExecuteParamsToTS,
|
|
16454
16491
|
NativeDrop: TonObjectUnwrapper.getMdNativeDropToTS,
|
|
16455
16492
|
setDct: TonObjectUnwrapper.getMdSetDictToTS,
|
|
@@ -17071,6 +17108,7 @@ exports.TonObjectUnwrapper = TonObjectUnwrapper;
|
|
|
17071
17108
|
exports._getTypeWidth = _getTypeWidth;
|
|
17072
17109
|
exports.addressToBigInt = addressToBigInt;
|
|
17073
17110
|
exports.addressToHex = addressToHex;
|
|
17111
|
+
exports.appsAllStorages = appsAllStorages;
|
|
17074
17112
|
exports.appsCounter = appsCounter;
|
|
17075
17113
|
exports.asciiStringToBigint = asciiStringToBigint;
|
|
17076
17114
|
exports.beginMessage = beginMessage;
|