@layerzerolabs/lz-sui-sdk-v2 3.0.133 → 3.0.134-sui.0
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 +8 -0
- package/deployments/sui-sandbox-local/blocked_message_lib.json +24 -24
- package/deployments/sui-sandbox-local/blocked_msglib_ptb_builder.json +26 -26
- package/deployments/sui-sandbox-local/counter.json +69 -34
- package/deployments/sui-sandbox-local/dvn.json +15 -14
- package/deployments/sui-sandbox-local/dvn_call_type.json +28 -28
- package/deployments/sui-sandbox-local/dvn_fee_lib.json +27 -27
- package/deployments/sui-sandbox-local/dvn_layerzero.json +24 -24
- package/deployments/sui-sandbox-local/dvn_ptb_builder.json +21 -21
- package/deployments/sui-sandbox-local/endpoint_ptb_builder.json +30 -30
- package/deployments/sui-sandbox-local/executor.json +21 -20
- package/deployments/sui-sandbox-local/executor_call_type.json +21 -21
- package/deployments/sui-sandbox-local/executor_fee_lib.json +32 -32
- package/deployments/sui-sandbox-local/executor_layerzero.json +20 -20
- package/deployments/sui-sandbox-local/executor_ptb_builder.json +21 -21
- package/deployments/sui-sandbox-local/layerzero_views.json +13 -13
- package/deployments/sui-sandbox-local/message_lib_common.json +20 -20
- package/deployments/sui-sandbox-local/msglib_ptb_builder_call_types.json +20 -20
- package/deployments/sui-sandbox-local/oapp.json +23 -21
- package/deployments/sui-sandbox-local/object-BlockedMessageLib.json +5 -5
- package/deployments/sui-sandbox-local/object-BlockedMsglibPtbBuilder.json +5 -5
- package/deployments/sui-sandbox-local/object-Counter.json +5 -5
- package/deployments/sui-sandbox-local/object-CounterAdminCap.json +5 -5
- package/deployments/sui-sandbox-local/object-CounterOApp.json +5 -5
- package/deployments/sui-sandbox-local/object-DVN.json +2 -2
- package/deployments/sui-sandbox-local/object-DVNCap.json +4 -4
- package/deployments/sui-sandbox-local/object-DVNFeeLib.json +5 -5
- package/deployments/sui-sandbox-local/object-EndpointPtbBuilder.json +5 -5
- package/deployments/sui-sandbox-local/object-EndpointPtbBuilderAdminCap.json +5 -5
- package/deployments/sui-sandbox-local/object-Executor.json +2 -2
- package/deployments/sui-sandbox-local/object-ExecutorCap.json +3 -3
- package/deployments/sui-sandbox-local/object-ExecutorFeeLib.json +5 -5
- package/deployments/sui-sandbox-local/object-ExecutorOwnerCap.json +2 -2
- package/deployments/sui-sandbox-local/object-PackageWhitelistValidator.json +5 -5
- package/deployments/sui-sandbox-local/object-PriceFeed.json +5 -5
- package/deployments/sui-sandbox-local/object-PriceFeedOwnerCap.json +5 -5
- package/deployments/sui-sandbox-local/object-SimpleMessageLib.json +5 -5
- package/deployments/sui-sandbox-local/object-SimpleMessageLibAdminCap.json +5 -5
- package/deployments/sui-sandbox-local/object-SmlPtbBuilder.json +5 -5
- package/deployments/sui-sandbox-local/object-Treasury.json +5 -5
- package/deployments/sui-sandbox-local/object-TreasuryAdminCap.json +5 -5
- package/deployments/sui-sandbox-local/object-ULN302.json +5 -5
- package/deployments/sui-sandbox-local/object-ULN302AdminCap.json +5 -5
- package/deployments/sui-sandbox-local/object-Uln302PtbBuilder.json +5 -5
- package/deployments/sui-sandbox-local/object-Uln302Verification.json +5 -5
- package/deployments/sui-sandbox-local/object-WorkerRegistry.json +9 -0
- package/deployments/sui-sandbox-local/package_whitelist_validator.json +48 -48
- package/deployments/sui-sandbox-local/price_feed.json +40 -40
- package/deployments/sui-sandbox-local/price_feed_call_types.json +12 -12
- package/deployments/sui-sandbox-local/ptb_move_call.json +12 -12
- package/deployments/sui-sandbox-local/simple_message_lib.json +29 -29
- package/deployments/sui-sandbox-local/simple_msglib_ptb_builder.json +18 -18
- package/deployments/sui-sandbox-local/treasury.json +40 -40
- package/deployments/sui-sandbox-local/uln_302.json +50 -50
- package/deployments/sui-sandbox-local/uln_302_ptb_builder.json +22 -22
- package/deployments/sui-sandbox-local/worker_common.json +15 -14
- package/deployments/sui-sandbox-local/worker_registry.json +58 -0
- package/dist/index.cjs +834 -294
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +541 -316
- package/dist/index.d.ts +541 -316
- package/dist/index.mjs +828 -295
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/bcs/index.ts +2 -1
- package/src/bcs/oapp.ts +14 -0
- package/src/generated/addresses.ts +66 -48
- package/src/module-manager.ts +15 -3
- package/src/modules/endpoint.ts +2 -3
- package/src/modules/oapps/counter.ts +30 -47
- package/src/modules/oapps/oapp.ts +468 -62
- package/src/modules/ptb-builders/ptb-builder.ts +10 -4
- package/src/modules/workers/dvn-layerzero.ts +1 -0
- package/src/modules/workers/dvn.ts +59 -0
- package/src/modules/workers/executor-layerzero.ts +1 -0
- package/src/modules/workers/executor.ts +59 -0
- package/src/modules/workers/index.ts +1 -0
- package/src/modules/workers/worker-registry.ts +109 -0
- package/src/resource.ts +3 -0
- package/src/sdk.ts +7 -2
- package/src/types/endpoint.ts +2 -1
- package/src/types/modules.ts +1 -0
- package/src/types/oapp.ts +6 -0
- package/src/types/options.ts +15 -0
- package/src/utils/transaction.ts +3 -3
package/dist/index.mjs
CHANGED
|
@@ -17,6 +17,10 @@ var DvnDstConfigBcs = bcs.struct("DstConfig", {
|
|
|
17
17
|
multiplier_bps: bcs.U16,
|
|
18
18
|
floor_margin_usd: bcs.U128
|
|
19
19
|
});
|
|
20
|
+
var TimeoutBcs = bcs.struct("Timeout", {
|
|
21
|
+
expiry: bcs.U64,
|
|
22
|
+
fallback_lib: bcs.Address
|
|
23
|
+
});
|
|
20
24
|
var Bytes32Bcs = bcs.struct("Bytes32", {
|
|
21
25
|
bytes: bcs.vector(bcs.u8())
|
|
22
26
|
});
|
|
@@ -62,6 +66,16 @@ var MoveCallBCS = bcs.struct("MoveCall", {
|
|
|
62
66
|
result_ids: bcs.vector(bcs.vector(bcs.u8()))
|
|
63
67
|
});
|
|
64
68
|
var VectorMoveCallBCS = bcs.vector(MoveCallBCS);
|
|
69
|
+
var OAppInfoV1Bcs = bcs.struct("OAppInfoV1", {
|
|
70
|
+
// Object ID address of the OApp instance
|
|
71
|
+
oapp_object: bcs.Address,
|
|
72
|
+
// Used to populate the MoveCalls to fetch the next nonce that can be executed by an executor
|
|
73
|
+
next_nonce_info: bcs.vector(bcs.u8()),
|
|
74
|
+
// Used to populate the MoveCalls to execute lz_receive by executor
|
|
75
|
+
lz_receive_info: bcs.vector(bcs.u8()),
|
|
76
|
+
// Additional configuration data for custom OApp functionality
|
|
77
|
+
extra_info: bcs.vector(bcs.u8())
|
|
78
|
+
});
|
|
65
79
|
var PriceBcs = bcs.struct("Price", {
|
|
66
80
|
price_ratio: bcs.U128,
|
|
67
81
|
gas_price_in_unit: bcs.U64,
|
|
@@ -88,10 +102,6 @@ var OAppUlnConfigBcs = bcs.struct("OAppUlnConfig", {
|
|
|
88
102
|
use_default_optional_dvns: bcs.Bool,
|
|
89
103
|
uln_config: UlnConfigBcs
|
|
90
104
|
});
|
|
91
|
-
var TimeoutBcs = bcs.struct("Timeout", {
|
|
92
|
-
expiry: bcs.U64,
|
|
93
|
-
fallback_lib: bcs.Address
|
|
94
|
-
});
|
|
95
105
|
|
|
96
106
|
// src/types/modules.ts
|
|
97
107
|
var Modules = /* @__PURE__ */ ((Modules2) => {
|
|
@@ -121,6 +131,7 @@ var Modules = /* @__PURE__ */ ((Modules2) => {
|
|
|
121
131
|
Modules2["Counter"] = "counter";
|
|
122
132
|
Modules2["DvnPtbBuilder"] = "dvnPtbBuilder";
|
|
123
133
|
Modules2["ExecutorPtbBuilder"] = "executorPtbBuilder";
|
|
134
|
+
Modules2["WorkerRegistry"] = "workerRegistry";
|
|
124
135
|
return Modules2;
|
|
125
136
|
})(Modules || {});
|
|
126
137
|
|
|
@@ -210,6 +221,7 @@ var UlnVerificationState = {
|
|
|
210
221
|
};
|
|
211
222
|
|
|
212
223
|
// src/types/endpoint.ts
|
|
224
|
+
var OAppInfoVersion = { VERSION_1: 1, VERSION_2: 2 };
|
|
213
225
|
var LzReceiveVersion = { VERSION_1: 1 };
|
|
214
226
|
var LzComposeVersion = { VERSION_1: 1 };
|
|
215
227
|
function isTransactionArgument(value) {
|
|
@@ -351,7 +363,7 @@ async function validateTransaction(client, signer, tx) {
|
|
|
351
363
|
}
|
|
352
364
|
async function executeSimulate(client, moveCallFn, parser) {
|
|
353
365
|
const tx = new Transaction();
|
|
354
|
-
moveCallFn(tx);
|
|
366
|
+
await moveCallFn(tx);
|
|
355
367
|
const result = await simulateTransaction(client, tx);
|
|
356
368
|
return parser(result);
|
|
357
369
|
}
|
|
@@ -751,9 +763,8 @@ var EndpointErrorCode = {
|
|
|
751
763
|
MessagingChannel_EUninitializedChannel: 11,
|
|
752
764
|
// OAppRegistry related errors (with OAppRegistry_ prefix)
|
|
753
765
|
OAppRegistry_EInvalidLZReceiveInfo: 1,
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
OAppRegistry_EOAppRegistered: 4,
|
|
766
|
+
OAppRegistry_EOAppNotRegistered: 2,
|
|
767
|
+
OAppRegistry_EOAppRegistered: 3,
|
|
757
768
|
// Endpoint related errors (with Endpoint_ prefix)
|
|
758
769
|
Endpoint_EAlreadyInitialized: 1,
|
|
759
770
|
Endpoint_EInvalidEid: 2,
|
|
@@ -4558,6 +4569,49 @@ var DVN = class {
|
|
|
4558
4569
|
(result) => bcs.Bool.parse(result[0].value)
|
|
4559
4570
|
);
|
|
4560
4571
|
}
|
|
4572
|
+
/**
|
|
4573
|
+
* Get DVN object address from worker registry using this DVN's worker capability (as a move call)
|
|
4574
|
+
* This function chains Move calls to decode worker info and extract the DVN object address
|
|
4575
|
+
* @param tx - The transaction to add the move call to
|
|
4576
|
+
* @returns Transaction result containing the DVN object address
|
|
4577
|
+
*/
|
|
4578
|
+
getDvnObjectAddressMoveCall(tx) {
|
|
4579
|
+
const workerCapAddress = this.workerCapAddressMoveCall(tx);
|
|
4580
|
+
const workerInfoBytes = this.moduleManager.getWorkerRegistry(this.client).getWorkerInfoMoveCall(tx, workerCapAddress);
|
|
4581
|
+
const workerInfo = tx.moveCall({
|
|
4582
|
+
target: `${this.moduleManager.packages.workerCommon}::worker_info_v1::decode`,
|
|
4583
|
+
arguments: [workerInfoBytes]
|
|
4584
|
+
});
|
|
4585
|
+
const dvnInfoBytes = tx.moveCall({
|
|
4586
|
+
target: `${this.moduleManager.packages.workerCommon}::worker_info_v1::worker_info`,
|
|
4587
|
+
arguments: [workerInfo]
|
|
4588
|
+
});
|
|
4589
|
+
const dvnInfo = tx.moveCall({
|
|
4590
|
+
target: `${this.packageId}::dvn_info_v1::decode`,
|
|
4591
|
+
arguments: [dvnInfoBytes]
|
|
4592
|
+
});
|
|
4593
|
+
return tx.moveCall({
|
|
4594
|
+
target: `${this.packageId}::dvn_info_v1::dvn_object`,
|
|
4595
|
+
arguments: [dvnInfo]
|
|
4596
|
+
});
|
|
4597
|
+
}
|
|
4598
|
+
/**
|
|
4599
|
+
* Get DVN object address from worker registry using this DVN's worker capability
|
|
4600
|
+
* This function uses Move calls to decode worker info and extract the DVN object address
|
|
4601
|
+
* @returns Promise<string> - The DVN object address
|
|
4602
|
+
* @throws Will throw an error if worker info is not found or if decoding fails
|
|
4603
|
+
*/
|
|
4604
|
+
async getDvnObjectAddress() {
|
|
4605
|
+
return executeSimulate(
|
|
4606
|
+
this.client,
|
|
4607
|
+
(tx) => {
|
|
4608
|
+
this.getDvnObjectAddressMoveCall(tx);
|
|
4609
|
+
},
|
|
4610
|
+
(result) => {
|
|
4611
|
+
return bcs.Address.parse(result[0].value);
|
|
4612
|
+
}
|
|
4613
|
+
);
|
|
4614
|
+
}
|
|
4561
4615
|
// === Witness Functions ===
|
|
4562
4616
|
/**
|
|
4563
4617
|
* Create a LayerZero witness for DVN package whitelist registration
|
|
@@ -4966,7 +5020,8 @@ var DvnLayerZero = class {
|
|
|
4966
5020
|
asU16(tx, defaultMultiplierBps),
|
|
4967
5021
|
asAddressVector(tx, admins),
|
|
4968
5022
|
asBytesVector(tx, signers),
|
|
4969
|
-
asU64(tx, quorum)
|
|
5023
|
+
asU64(tx, quorum),
|
|
5024
|
+
tx.object(this.moduleManager.objects.workerRegistry)
|
|
4970
5025
|
]
|
|
4971
5026
|
});
|
|
4972
5027
|
}
|
|
@@ -5813,6 +5868,49 @@ var Executor = class {
|
|
|
5813
5868
|
(result) => bcs.Address.parse(result[0].value)
|
|
5814
5869
|
);
|
|
5815
5870
|
}
|
|
5871
|
+
/**
|
|
5872
|
+
* Get Executor object address from worker registry using this Executor's worker capability (as a move call)
|
|
5873
|
+
* This function chains Move calls to decode worker info and extract the Executor object address
|
|
5874
|
+
* @param tx - The transaction to add the move call to
|
|
5875
|
+
* @returns Transaction result containing the Executor object address
|
|
5876
|
+
*/
|
|
5877
|
+
getExecutorObjectAddressMoveCall(tx) {
|
|
5878
|
+
const workerCapAddress = this.workerCapAddressMoveCall(tx);
|
|
5879
|
+
const workerInfoBytes = this.moduleManager.getWorkerRegistry(this.client).getWorkerInfoMoveCall(tx, workerCapAddress);
|
|
5880
|
+
const workerInfo = tx.moveCall({
|
|
5881
|
+
target: `${this.moduleManager.packages.workerCommon}::worker_info_v1::decode`,
|
|
5882
|
+
arguments: [workerInfoBytes]
|
|
5883
|
+
});
|
|
5884
|
+
const executorInfoBytes = tx.moveCall({
|
|
5885
|
+
target: `${this.moduleManager.packages.workerCommon}::worker_info_v1::worker_info`,
|
|
5886
|
+
arguments: [workerInfo]
|
|
5887
|
+
});
|
|
5888
|
+
const executorInfo = tx.moveCall({
|
|
5889
|
+
target: `${this.packageId}::executor_info_v1::decode`,
|
|
5890
|
+
arguments: [executorInfoBytes]
|
|
5891
|
+
});
|
|
5892
|
+
return tx.moveCall({
|
|
5893
|
+
target: `${this.packageId}::executor_info_v1::executor_object`,
|
|
5894
|
+
arguments: [executorInfo]
|
|
5895
|
+
});
|
|
5896
|
+
}
|
|
5897
|
+
/**
|
|
5898
|
+
* Get Executor object address from worker registry using this Executor's worker capability
|
|
5899
|
+
* This function uses Move calls to decode worker info and extract the Executor object address
|
|
5900
|
+
* @returns Promise<string> - The Executor object address
|
|
5901
|
+
* @throws Will throw an error if worker info is not found or if decoding fails
|
|
5902
|
+
*/
|
|
5903
|
+
async getExecutorObjectAddress() {
|
|
5904
|
+
return executeSimulate(
|
|
5905
|
+
this.client,
|
|
5906
|
+
(tx) => {
|
|
5907
|
+
this.getExecutorObjectAddressMoveCall(tx);
|
|
5908
|
+
},
|
|
5909
|
+
(result) => {
|
|
5910
|
+
return bcs.Address.parse(result[0].value);
|
|
5911
|
+
}
|
|
5912
|
+
);
|
|
5913
|
+
}
|
|
5816
5914
|
// === Private Helper Functions ===
|
|
5817
5915
|
parseDstConfig(data) {
|
|
5818
5916
|
const config = DstConfigBcs.parse(data);
|
|
@@ -5939,7 +6037,8 @@ var ExecutorLayerZero = class {
|
|
|
5939
6037
|
asAddress(tx, workerFeeLib),
|
|
5940
6038
|
asU16(tx, defaultMultiplierBps),
|
|
5941
6039
|
asAddress(tx, owner),
|
|
5942
|
-
asAddressVector(tx, admins)
|
|
6040
|
+
asAddressVector(tx, admins),
|
|
6041
|
+
tx.object(this.moduleManager.objects.workerRegistry)
|
|
5943
6042
|
]
|
|
5944
6043
|
});
|
|
5945
6044
|
}
|
|
@@ -6689,9 +6788,94 @@ target_fn12 = function(name, module_name = MODULE_NAME12) {
|
|
|
6689
6788
|
return `${this.packageId}::${module_name}::${name}`;
|
|
6690
6789
|
};
|
|
6691
6790
|
|
|
6791
|
+
// src/modules/workers/worker-registry.ts
|
|
6792
|
+
var MODULE_NAME13 = "worker_registry";
|
|
6793
|
+
var WorkerRegistryErrorCode = {
|
|
6794
|
+
EWorkerInfoInvalid: 1,
|
|
6795
|
+
EWorkerInfoNotFound: 2
|
|
6796
|
+
};
|
|
6797
|
+
var _WorkerRegistry_instances, target_fn13;
|
|
6798
|
+
var WorkerRegistry = class {
|
|
6799
|
+
/**
|
|
6800
|
+
* Create a new WorkerRegistry instance
|
|
6801
|
+
* @param packageId - The package ID of the worker registry contract
|
|
6802
|
+
* @param client - The Sui client instance
|
|
6803
|
+
* @param objects - Object options containing contract object IDs
|
|
6804
|
+
* @param moduleManager - Module manager for handling dependencies
|
|
6805
|
+
*/
|
|
6806
|
+
constructor(packageId, client, objects, moduleManager) {
|
|
6807
|
+
this.moduleManager = moduleManager;
|
|
6808
|
+
__privateAdd(this, _WorkerRegistry_instances);
|
|
6809
|
+
this.packageId = packageId;
|
|
6810
|
+
this.client = client;
|
|
6811
|
+
this.objects = objects;
|
|
6812
|
+
}
|
|
6813
|
+
// === View Functions ===
|
|
6814
|
+
/**
|
|
6815
|
+
* Get worker info for a specific worker address (as a move call)
|
|
6816
|
+
* This creates a move call that can be used in a PTB (Programmable Transaction Block)
|
|
6817
|
+
* @param tx - The transaction to add the move call to
|
|
6818
|
+
* @param worker - The worker address or transaction argument
|
|
6819
|
+
* @returns TransactionResult - The move call result containing worker info bytes
|
|
6820
|
+
* @throws Will throw an error if worker info is not found (EWorkerInfoNotFound)
|
|
6821
|
+
*/
|
|
6822
|
+
getWorkerInfoMoveCall(tx, worker) {
|
|
6823
|
+
return tx.moveCall({
|
|
6824
|
+
target: __privateMethod(this, _WorkerRegistry_instances, target_fn13).call(this, "get_worker_info"),
|
|
6825
|
+
arguments: [tx.object(this.objects.workerRegistry), asAddress(tx, worker)]
|
|
6826
|
+
});
|
|
6827
|
+
}
|
|
6828
|
+
/**
|
|
6829
|
+
* Get worker info for a specific worker address
|
|
6830
|
+
* Executes the get_worker_info function and returns the worker information bytes
|
|
6831
|
+
* @param worker - The worker address to get info for
|
|
6832
|
+
* @returns Promise<Uint8Array> - The worker information bytes containing encoded worker data
|
|
6833
|
+
* @throws Will throw an error if worker info is not found (EWorkerInfoNotFound)
|
|
6834
|
+
*/
|
|
6835
|
+
async getWorkerInfo(worker) {
|
|
6836
|
+
return executeSimulate(
|
|
6837
|
+
this.client,
|
|
6838
|
+
(tx) => {
|
|
6839
|
+
this.getWorkerInfoMoveCall(tx, worker);
|
|
6840
|
+
},
|
|
6841
|
+
(result) => {
|
|
6842
|
+
return result[0].value;
|
|
6843
|
+
}
|
|
6844
|
+
);
|
|
6845
|
+
}
|
|
6846
|
+
/**
|
|
6847
|
+
* Check if worker info exists for a specific worker address
|
|
6848
|
+
* This is a convenience method that catches EWorkerInfoNotFound errors
|
|
6849
|
+
* @param worker - The worker address to check
|
|
6850
|
+
* @returns Promise<boolean> - True if worker info exists, false if not found
|
|
6851
|
+
* @throws Will re-throw any errors other than EWorkerInfoNotFound
|
|
6852
|
+
*/
|
|
6853
|
+
async hasWorkerInfo(worker) {
|
|
6854
|
+
try {
|
|
6855
|
+
await this.getWorkerInfo(worker);
|
|
6856
|
+
return true;
|
|
6857
|
+
} catch (error) {
|
|
6858
|
+
if (error instanceof Error && error.message.includes("EWorkerInfoNotFound")) {
|
|
6859
|
+
return false;
|
|
6860
|
+
}
|
|
6861
|
+
throw error;
|
|
6862
|
+
}
|
|
6863
|
+
}
|
|
6864
|
+
};
|
|
6865
|
+
_WorkerRegistry_instances = new WeakSet();
|
|
6866
|
+
// === Private Functions ===
|
|
6867
|
+
/**
|
|
6868
|
+
* Generate the target string for move calls
|
|
6869
|
+
* @param functionName - The function name to call
|
|
6870
|
+
* @returns The fully qualified target string for the move call
|
|
6871
|
+
*/
|
|
6872
|
+
target_fn13 = function(functionName) {
|
|
6873
|
+
return `${this.packageId}::${MODULE_NAME13}::${functionName}`;
|
|
6874
|
+
};
|
|
6875
|
+
|
|
6692
6876
|
// src/modules/ptb-builders/dvn-ptb-builder.ts
|
|
6693
|
-
var
|
|
6694
|
-
var _DvnPtbBuilder_instances,
|
|
6877
|
+
var MODULE_NAME14 = "dvn_ptb_builder";
|
|
6878
|
+
var _DvnPtbBuilder_instances, target_fn14;
|
|
6695
6879
|
var DvnPtbBuilder = class {
|
|
6696
6880
|
constructor(packageId, client, objects, moduleManager) {
|
|
6697
6881
|
this.moduleManager = moduleManager;
|
|
@@ -6711,7 +6895,7 @@ var DvnPtbBuilder = class {
|
|
|
6711
6895
|
*/
|
|
6712
6896
|
buildDvnPtbMoveCall(tx, dvnAddress, feelibAddress, priceFeedAddress) {
|
|
6713
6897
|
return tx.moveCall({
|
|
6714
|
-
target: __privateMethod(this, _DvnPtbBuilder_instances,
|
|
6898
|
+
target: __privateMethod(this, _DvnPtbBuilder_instances, target_fn14).call(this, "build_dvn_ptb"),
|
|
6715
6899
|
arguments: [asObject(tx, dvnAddress), asObject(tx, feelibAddress), asObject(tx, priceFeedAddress)]
|
|
6716
6900
|
});
|
|
6717
6901
|
}
|
|
@@ -6724,7 +6908,7 @@ _DvnPtbBuilder_instances = new WeakSet();
|
|
|
6724
6908
|
* @returns The full module path for the move call
|
|
6725
6909
|
* @private
|
|
6726
6910
|
*/
|
|
6727
|
-
|
|
6911
|
+
target_fn14 = function(name, module_name = MODULE_NAME14) {
|
|
6728
6912
|
return `${this.packageId}::${module_name}::${name}`;
|
|
6729
6913
|
};
|
|
6730
6914
|
var LibBuilderManagerErrorCode = {
|
|
@@ -6732,7 +6916,7 @@ var LibBuilderManagerErrorCode = {
|
|
|
6732
6916
|
LibBuilderManager_EBuilderNotFound: 1
|
|
6733
6917
|
};
|
|
6734
6918
|
var ModuleName = "endpoint_ptb_builder";
|
|
6735
|
-
var _EndpointPtbBuilder_instances,
|
|
6919
|
+
var _EndpointPtbBuilder_instances, target_fn15;
|
|
6736
6920
|
var EndpointPtbBuilder = class {
|
|
6737
6921
|
constructor(packageId, client, objects, moduleManager) {
|
|
6738
6922
|
this.moduleManager = moduleManager;
|
|
@@ -6749,7 +6933,7 @@ var EndpointPtbBuilder = class {
|
|
|
6749
6933
|
*/
|
|
6750
6934
|
registerMsglibPtbBuilderMoveCall(tx, builderInfo) {
|
|
6751
6935
|
tx.moveCall({
|
|
6752
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
6936
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "register_msglib_ptb_builder"),
|
|
6753
6937
|
arguments: [
|
|
6754
6938
|
tx.object(this.objects.endpointPtbBuilder),
|
|
6755
6939
|
tx.object(this.objects.endpointPtbBuilderAdminCap),
|
|
@@ -6766,7 +6950,7 @@ var EndpointPtbBuilder = class {
|
|
|
6766
6950
|
*/
|
|
6767
6951
|
setDefaultMsglibPtbBuilderMoveCall(tx, messageLib, ptbBuilder) {
|
|
6768
6952
|
tx.moveCall({
|
|
6769
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
6953
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "set_default_msglib_ptb_builder"),
|
|
6770
6954
|
arguments: [
|
|
6771
6955
|
tx.object(this.objects.endpointPtbBuilder),
|
|
6772
6956
|
tx.object(this.objects.endpointPtbBuilderAdminCap),
|
|
@@ -6782,7 +6966,7 @@ var EndpointPtbBuilder = class {
|
|
|
6782
6966
|
*/
|
|
6783
6967
|
setMsglibPtbBuilderMoveCall(tx, call) {
|
|
6784
6968
|
tx.moveCall({
|
|
6785
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
6969
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "set_msglib_ptb_builder"),
|
|
6786
6970
|
arguments: [tx.object(this.objects.endpointPtbBuilder), call]
|
|
6787
6971
|
});
|
|
6788
6972
|
}
|
|
@@ -6795,7 +6979,7 @@ var EndpointPtbBuilder = class {
|
|
|
6795
6979
|
*/
|
|
6796
6980
|
buildQuotePtbByCallMoveCall(tx, endpointQuoteCall) {
|
|
6797
6981
|
return tx.moveCall({
|
|
6798
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
6982
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_quote_ptb_by_call"),
|
|
6799
6983
|
arguments: [
|
|
6800
6984
|
tx.object(this.objects.endpointPtbBuilder),
|
|
6801
6985
|
tx.object(this.objects.endpointV2),
|
|
@@ -6811,7 +6995,7 @@ var EndpointPtbBuilder = class {
|
|
|
6811
6995
|
*/
|
|
6812
6996
|
buildSendPtbByCallMoveCall(tx, endpointSendCall) {
|
|
6813
6997
|
return tx.moveCall({
|
|
6814
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
6998
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_send_ptb_by_call"),
|
|
6815
6999
|
arguments: [
|
|
6816
7000
|
tx.object(this.objects.endpointPtbBuilder),
|
|
6817
7001
|
tx.object(this.objects.endpointV2),
|
|
@@ -6827,7 +7011,7 @@ var EndpointPtbBuilder = class {
|
|
|
6827
7011
|
*/
|
|
6828
7012
|
buildSetConfigPtbByCallMoveCall(tx, messageLibSetConfigCall) {
|
|
6829
7013
|
return tx.moveCall({
|
|
6830
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
7014
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_set_config_ptb_by_call"),
|
|
6831
7015
|
arguments: [tx.object(this.objects.endpointPtbBuilder), messageLibSetConfigCall]
|
|
6832
7016
|
});
|
|
6833
7017
|
}
|
|
@@ -6840,7 +7024,7 @@ var EndpointPtbBuilder = class {
|
|
|
6840
7024
|
*/
|
|
6841
7025
|
buildQuotePtbMoveCall(tx, sender, dstEid) {
|
|
6842
7026
|
return tx.moveCall({
|
|
6843
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
7027
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_quote_ptb"),
|
|
6844
7028
|
arguments: [
|
|
6845
7029
|
tx.object(this.objects.endpointPtbBuilder),
|
|
6846
7030
|
tx.object(this.objects.endpointV2),
|
|
@@ -6859,7 +7043,7 @@ var EndpointPtbBuilder = class {
|
|
|
6859
7043
|
*/
|
|
6860
7044
|
buildSendPtbMoveCall(tx, sender, dstEid, refund) {
|
|
6861
7045
|
return tx.moveCall({
|
|
6862
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
7046
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_send_ptb"),
|
|
6863
7047
|
arguments: [
|
|
6864
7048
|
tx.object(this.objects.endpointPtbBuilder),
|
|
6865
7049
|
tx.object(this.objects.endpointV2),
|
|
@@ -6878,7 +7062,7 @@ var EndpointPtbBuilder = class {
|
|
|
6878
7062
|
*/
|
|
6879
7063
|
buildSetConfigPtbMoveCall(tx, sender, lib) {
|
|
6880
7064
|
return tx.moveCall({
|
|
6881
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
7065
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_set_config_ptb"),
|
|
6882
7066
|
arguments: [
|
|
6883
7067
|
tx.object(this.objects.endpointPtbBuilder),
|
|
6884
7068
|
tx.object(this.objects.endpointV2),
|
|
@@ -6895,7 +7079,7 @@ var EndpointPtbBuilder = class {
|
|
|
6895
7079
|
*/
|
|
6896
7080
|
endpointQuoteCallIdMoveCall(tx) {
|
|
6897
7081
|
return tx.moveCall({
|
|
6898
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
7082
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "endpoint_quote_call_id"),
|
|
6899
7083
|
arguments: []
|
|
6900
7084
|
});
|
|
6901
7085
|
}
|
|
@@ -6919,7 +7103,7 @@ var EndpointPtbBuilder = class {
|
|
|
6919
7103
|
*/
|
|
6920
7104
|
endpointSendCallIdMoveCall(tx) {
|
|
6921
7105
|
return tx.moveCall({
|
|
6922
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
7106
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "endpoint_send_call_id"),
|
|
6923
7107
|
arguments: []
|
|
6924
7108
|
});
|
|
6925
7109
|
}
|
|
@@ -6943,7 +7127,7 @@ var EndpointPtbBuilder = class {
|
|
|
6943
7127
|
*/
|
|
6944
7128
|
messageLibQuoteCallIdMoveCall(tx) {
|
|
6945
7129
|
return tx.moveCall({
|
|
6946
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
7130
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "message_lib_quote_call_id"),
|
|
6947
7131
|
arguments: []
|
|
6948
7132
|
});
|
|
6949
7133
|
}
|
|
@@ -6967,7 +7151,7 @@ var EndpointPtbBuilder = class {
|
|
|
6967
7151
|
*/
|
|
6968
7152
|
messageLibSendCallIdMoveCall(tx) {
|
|
6969
7153
|
return tx.moveCall({
|
|
6970
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
7154
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "message_lib_send_call_id"),
|
|
6971
7155
|
arguments: []
|
|
6972
7156
|
});
|
|
6973
7157
|
}
|
|
@@ -6991,7 +7175,7 @@ var EndpointPtbBuilder = class {
|
|
|
6991
7175
|
*/
|
|
6992
7176
|
messageLibSetConfigCallIdMoveCall(tx) {
|
|
6993
7177
|
return tx.moveCall({
|
|
6994
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
7178
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "message_lib_set_config_call_id"),
|
|
6995
7179
|
arguments: []
|
|
6996
7180
|
});
|
|
6997
7181
|
}
|
|
@@ -7017,7 +7201,7 @@ var EndpointPtbBuilder = class {
|
|
|
7017
7201
|
*/
|
|
7018
7202
|
getDefaultMsglibPtbBuilderMoveCall(tx, lib) {
|
|
7019
7203
|
return tx.moveCall({
|
|
7020
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
7204
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "get_default_msglib_ptb_builder"),
|
|
7021
7205
|
arguments: [tx.object(this.objects.endpointPtbBuilder), asAddress(tx, lib)]
|
|
7022
7206
|
});
|
|
7023
7207
|
}
|
|
@@ -7044,7 +7228,7 @@ var EndpointPtbBuilder = class {
|
|
|
7044
7228
|
*/
|
|
7045
7229
|
getOappMsglibPtbBuilderMoveCall(tx, oapp, lib) {
|
|
7046
7230
|
return tx.moveCall({
|
|
7047
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
7231
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "get_oapp_msglib_ptb_builder"),
|
|
7048
7232
|
arguments: [tx.object(this.objects.endpointPtbBuilder), asAddress(tx, oapp), asAddress(tx, lib)]
|
|
7049
7233
|
});
|
|
7050
7234
|
}
|
|
@@ -7072,7 +7256,7 @@ var EndpointPtbBuilder = class {
|
|
|
7072
7256
|
*/
|
|
7073
7257
|
getEffectiveMsglibPtbBuilderMoveCall(tx, oapp, lib) {
|
|
7074
7258
|
return tx.moveCall({
|
|
7075
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
7259
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "get_effective_msglib_ptb_builder"),
|
|
7076
7260
|
arguments: [tx.object(this.objects.endpointPtbBuilder), asAddress(tx, oapp), asAddress(tx, lib)]
|
|
7077
7261
|
});
|
|
7078
7262
|
}
|
|
@@ -7099,7 +7283,7 @@ var EndpointPtbBuilder = class {
|
|
|
7099
7283
|
*/
|
|
7100
7284
|
getMsglibPtbBuilderInfoMoveCall(tx, builder) {
|
|
7101
7285
|
return tx.moveCall({
|
|
7102
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
7286
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "get_msglib_ptb_builder_info"),
|
|
7103
7287
|
arguments: [tx.object(this.objects.endpointPtbBuilder), asAddress(tx, builder)]
|
|
7104
7288
|
});
|
|
7105
7289
|
}
|
|
@@ -7111,7 +7295,7 @@ var EndpointPtbBuilder = class {
|
|
|
7111
7295
|
*/
|
|
7112
7296
|
isMsglibPtbBuilderRegisteredMoveCall(tx, builder) {
|
|
7113
7297
|
return tx.moveCall({
|
|
7114
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
7298
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "is_msglib_ptb_builder_registered"),
|
|
7115
7299
|
arguments: [tx.object(this.objects.endpointPtbBuilder), asAddress(tx, builder)]
|
|
7116
7300
|
});
|
|
7117
7301
|
}
|
|
@@ -7136,7 +7320,7 @@ var EndpointPtbBuilder = class {
|
|
|
7136
7320
|
*/
|
|
7137
7321
|
registeredMsglibPtbBuildersCountMoveCall(tx) {
|
|
7138
7322
|
return tx.moveCall({
|
|
7139
|
-
target: __privateMethod(this, _EndpointPtbBuilder_instances,
|
|
7323
|
+
target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "registered_msglib_ptb_builders_count"),
|
|
7140
7324
|
arguments: [tx.object(this.objects.endpointPtbBuilder)]
|
|
7141
7325
|
});
|
|
7142
7326
|
}
|
|
@@ -7162,13 +7346,13 @@ _EndpointPtbBuilder_instances = new WeakSet();
|
|
|
7162
7346
|
* @returns The full module path for the move call
|
|
7163
7347
|
* @private
|
|
7164
7348
|
*/
|
|
7165
|
-
|
|
7349
|
+
target_fn15 = function(name) {
|
|
7166
7350
|
return `${this.packageId}::${ModuleName}::${name}`;
|
|
7167
7351
|
};
|
|
7168
7352
|
|
|
7169
7353
|
// src/modules/ptb-builders/executor-ptb-builder.ts
|
|
7170
|
-
var
|
|
7171
|
-
var _ExecutorPtbBuilder_instances,
|
|
7354
|
+
var MODULE_NAME15 = "executor_ptb_builder";
|
|
7355
|
+
var _ExecutorPtbBuilder_instances, target_fn16;
|
|
7172
7356
|
var ExecutorPtbBuilder = class {
|
|
7173
7357
|
constructor(packageId, client, objects, moduleManager) {
|
|
7174
7358
|
this.moduleManager = moduleManager;
|
|
@@ -7188,7 +7372,7 @@ var ExecutorPtbBuilder = class {
|
|
|
7188
7372
|
*/
|
|
7189
7373
|
buildExecutorPtbMoveCall(tx, executorAddress, feelibAddress, priceFeedAddress) {
|
|
7190
7374
|
return tx.moveCall({
|
|
7191
|
-
target: __privateMethod(this, _ExecutorPtbBuilder_instances,
|
|
7375
|
+
target: __privateMethod(this, _ExecutorPtbBuilder_instances, target_fn16).call(this, "build_executor_ptb"),
|
|
7192
7376
|
arguments: [asObject(tx, executorAddress), asObject(tx, feelibAddress), asObject(tx, priceFeedAddress)]
|
|
7193
7377
|
});
|
|
7194
7378
|
}
|
|
@@ -7201,15 +7385,15 @@ _ExecutorPtbBuilder_instances = new WeakSet();
|
|
|
7201
7385
|
* @returns The full module path for the move call
|
|
7202
7386
|
* @private
|
|
7203
7387
|
*/
|
|
7204
|
-
|
|
7388
|
+
target_fn16 = function(name, module_name = MODULE_NAME15) {
|
|
7205
7389
|
return `${this.packageId}::${module_name}::${name}`;
|
|
7206
7390
|
};
|
|
7207
|
-
var
|
|
7391
|
+
var MODULE_NAME16 = "package_whitelist_validator";
|
|
7208
7392
|
var ValidatorErrorCode = {
|
|
7209
7393
|
// PTB Whitelist related errors
|
|
7210
7394
|
EInvalidWitness: 1
|
|
7211
7395
|
};
|
|
7212
|
-
var _PackageWhitelistValidator_instances,
|
|
7396
|
+
var _PackageWhitelistValidator_instances, target_fn17;
|
|
7213
7397
|
var PackageWhitelistValidator = class {
|
|
7214
7398
|
constructor(packageId, client, objects, moduleManager) {
|
|
7215
7399
|
this.moduleManager = moduleManager;
|
|
@@ -7229,7 +7413,7 @@ var PackageWhitelistValidator = class {
|
|
|
7229
7413
|
*/
|
|
7230
7414
|
addWhitelistMoveCall(tx, witness, witnessType) {
|
|
7231
7415
|
tx.moveCall({
|
|
7232
|
-
target: __privateMethod(this, _PackageWhitelistValidator_instances,
|
|
7416
|
+
target: __privateMethod(this, _PackageWhitelistValidator_instances, target_fn17).call(this, "add_whitelist"),
|
|
7233
7417
|
typeArguments: [witnessType],
|
|
7234
7418
|
arguments: [tx.object(this.objects.packageWhitelistValidator), witness]
|
|
7235
7419
|
});
|
|
@@ -7243,7 +7427,7 @@ var PackageWhitelistValidator = class {
|
|
|
7243
7427
|
*/
|
|
7244
7428
|
isWhitelistedMoveCall(tx, packageAddress) {
|
|
7245
7429
|
return tx.moveCall({
|
|
7246
|
-
target: __privateMethod(this, _PackageWhitelistValidator_instances,
|
|
7430
|
+
target: __privateMethod(this, _PackageWhitelistValidator_instances, target_fn17).call(this, "is_whitelisted"),
|
|
7247
7431
|
arguments: [tx.object(this.objects.packageWhitelistValidator), asAddress(tx, packageAddress)]
|
|
7248
7432
|
});
|
|
7249
7433
|
}
|
|
@@ -7255,7 +7439,7 @@ var PackageWhitelistValidator = class {
|
|
|
7255
7439
|
*/
|
|
7256
7440
|
validateMoveCall(tx, packageAddresses) {
|
|
7257
7441
|
return tx.moveCall({
|
|
7258
|
-
target: __privateMethod(this, _PackageWhitelistValidator_instances,
|
|
7442
|
+
target: __privateMethod(this, _PackageWhitelistValidator_instances, target_fn17).call(this, "validate"),
|
|
7259
7443
|
arguments: [
|
|
7260
7444
|
tx.object(this.objects.packageWhitelistValidator),
|
|
7261
7445
|
tx.pure(bcs.vector(bcs.Address).serialize(packageAddresses))
|
|
@@ -7316,11 +7500,11 @@ _PackageWhitelistValidator_instances = new WeakSet();
|
|
|
7316
7500
|
* @returns The full module path for the move call
|
|
7317
7501
|
* @private
|
|
7318
7502
|
*/
|
|
7319
|
-
|
|
7503
|
+
target_fn17 = function(name, module_name = MODULE_NAME16) {
|
|
7320
7504
|
return `${this.packageId}::${module_name}::${name}`;
|
|
7321
7505
|
};
|
|
7322
7506
|
var MOVE_CALL_MODULE_NAME = "move_call";
|
|
7323
|
-
var _PtbBuilder_instances, buildMoveCalls_fn, appendMoveCall_fn, decodeMoveCalls_fn, decodeMoveCallsBytes_fn, calculateOffset_fn;
|
|
7507
|
+
var _PtbBuilder_instances, buildMoveCalls_fn, appendMoveCall_fn, decodeMoveCalls_fn, decodeMoveCallsFromOAppInfoV1_fn, decodeMoveCallsBytes_fn, calculateOffset_fn;
|
|
7324
7508
|
var PtbBuilder = class {
|
|
7325
7509
|
constructor(packageId, client) {
|
|
7326
7510
|
__privateAdd(this, _PtbBuilder_instances);
|
|
@@ -7349,8 +7533,8 @@ var PtbBuilder = class {
|
|
|
7349
7533
|
const ptbCallsResult = await simulateTransaction(this.client, tx, sender);
|
|
7350
7534
|
const buffer = Buffer.from(bcs.vector(bcs.u8()).parse(ptbCallsResult[0].value));
|
|
7351
7535
|
const version = buffer.readInt16BE();
|
|
7352
|
-
if (version ===
|
|
7353
|
-
return __privateMethod(this, _PtbBuilder_instances,
|
|
7536
|
+
if (version === OAppInfoVersion.VERSION_1) {
|
|
7537
|
+
return __privateMethod(this, _PtbBuilder_instances, decodeMoveCallsFromOAppInfoV1_fn).call(this, new Uint8Array(buffer.subarray(2)));
|
|
7354
7538
|
}
|
|
7355
7539
|
throw new Error(`Unknown version: ${version}`);
|
|
7356
7540
|
}
|
|
@@ -7509,6 +7693,10 @@ decodeMoveCalls_fn = function(viewResult) {
|
|
|
7509
7693
|
}
|
|
7510
7694
|
return __privateMethod(this, _PtbBuilder_instances, decodeMoveCallsBytes_fn).call(this, value);
|
|
7511
7695
|
};
|
|
7696
|
+
decodeMoveCallsFromOAppInfoV1_fn = function(bytes) {
|
|
7697
|
+
const oappInfo = OAppInfoV1Bcs.parse(bytes);
|
|
7698
|
+
return __privateMethod(this, _PtbBuilder_instances, decodeMoveCallsBytes_fn).call(this, new Uint8Array(oappInfo.lz_receive_info).subarray(2));
|
|
7699
|
+
};
|
|
7512
7700
|
/**
|
|
7513
7701
|
* Decode move calls from raw bytes
|
|
7514
7702
|
* @param bytes - The raw bytes containing encoded move calls
|
|
@@ -7562,8 +7750,8 @@ calculateOffset_fn = function(index, baseOffset, placeholderInfos) {
|
|
|
7562
7750
|
};
|
|
7563
7751
|
|
|
7564
7752
|
// src/modules/ptb-builders/simple-message-lib-ptb-builder.ts
|
|
7565
|
-
var
|
|
7566
|
-
var _SimpleMessageLibPtbBuilder_instances,
|
|
7753
|
+
var MODULE_NAME17 = "simple_msglib_ptb_builder";
|
|
7754
|
+
var _SimpleMessageLibPtbBuilder_instances, target_fn18;
|
|
7567
7755
|
var SimpleMessageLibPtbBuilder = class {
|
|
7568
7756
|
constructor(packageId, client, objects, moduleManager) {
|
|
7569
7757
|
this.moduleManager = moduleManager;
|
|
@@ -7580,7 +7768,7 @@ var SimpleMessageLibPtbBuilder = class {
|
|
|
7580
7768
|
*/
|
|
7581
7769
|
getPtbBuilderInfoMoveCall(tx) {
|
|
7582
7770
|
return tx.moveCall({
|
|
7583
|
-
target: __privateMethod(this, _SimpleMessageLibPtbBuilder_instances,
|
|
7771
|
+
target: __privateMethod(this, _SimpleMessageLibPtbBuilder_instances, target_fn18).call(this, "get_ptb_builder_info"),
|
|
7584
7772
|
arguments: [
|
|
7585
7773
|
tx.object(this.objects.simpleMessageLibPtbBuilder),
|
|
7586
7774
|
tx.object(this.objects.endpointV2),
|
|
@@ -7597,11 +7785,11 @@ _SimpleMessageLibPtbBuilder_instances = new WeakSet();
|
|
|
7597
7785
|
* @returns The full module path for the move call
|
|
7598
7786
|
* @private
|
|
7599
7787
|
*/
|
|
7600
|
-
|
|
7788
|
+
target_fn18 = function(name, module_name = MODULE_NAME17) {
|
|
7601
7789
|
return `${this.packageId}::${module_name}::${name}`;
|
|
7602
7790
|
};
|
|
7603
|
-
var
|
|
7604
|
-
var _Uln302PtbBuilder_instances,
|
|
7791
|
+
var MODULE_NAME18 = "uln_302_ptb_builder";
|
|
7792
|
+
var _Uln302PtbBuilder_instances, target_fn19;
|
|
7605
7793
|
var Uln302PtbBuilder = class {
|
|
7606
7794
|
constructor(packageId, client, objects, moduleManager) {
|
|
7607
7795
|
this.moduleManager = moduleManager;
|
|
@@ -7618,7 +7806,7 @@ var Uln302PtbBuilder = class {
|
|
|
7618
7806
|
*/
|
|
7619
7807
|
setWorkerPtbsMoveCall(tx, call) {
|
|
7620
7808
|
tx.moveCall({
|
|
7621
|
-
target: __privateMethod(this, _Uln302PtbBuilder_instances,
|
|
7809
|
+
target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "set_worker_ptbs"),
|
|
7622
7810
|
arguments: [tx.object(this.objects.uln302PtbBuilder), call]
|
|
7623
7811
|
});
|
|
7624
7812
|
}
|
|
@@ -7630,7 +7818,7 @@ var Uln302PtbBuilder = class {
|
|
|
7630
7818
|
*/
|
|
7631
7819
|
getPtbBuilderInfoMoveCall(tx) {
|
|
7632
7820
|
return tx.moveCall({
|
|
7633
|
-
target: __privateMethod(this, _Uln302PtbBuilder_instances,
|
|
7821
|
+
target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "get_ptb_builder_info"),
|
|
7634
7822
|
arguments: [
|
|
7635
7823
|
tx.object(this.objects.uln302PtbBuilder),
|
|
7636
7824
|
tx.object(this.objects.uln302),
|
|
@@ -7647,7 +7835,7 @@ var Uln302PtbBuilder = class {
|
|
|
7647
7835
|
*/
|
|
7648
7836
|
isWorkerPtbsSetMoveCall(tx, workerCap) {
|
|
7649
7837
|
return tx.moveCall({
|
|
7650
|
-
target: __privateMethod(this, _Uln302PtbBuilder_instances,
|
|
7838
|
+
target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "is_worker_ptbs_set"),
|
|
7651
7839
|
arguments: [tx.object(this.objects.uln302PtbBuilder), asAddress(tx, workerCap)]
|
|
7652
7840
|
});
|
|
7653
7841
|
}
|
|
@@ -7673,7 +7861,7 @@ var Uln302PtbBuilder = class {
|
|
|
7673
7861
|
*/
|
|
7674
7862
|
getWorkerPtbsMoveCall(tx, workerCap) {
|
|
7675
7863
|
return tx.moveCall({
|
|
7676
|
-
target: __privateMethod(this, _Uln302PtbBuilder_instances,
|
|
7864
|
+
target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "get_worker_ptbs"),
|
|
7677
7865
|
arguments: [tx.object(this.objects.uln302PtbBuilder), asAddress(tx, workerCap)]
|
|
7678
7866
|
});
|
|
7679
7867
|
}
|
|
@@ -7685,7 +7873,7 @@ var Uln302PtbBuilder = class {
|
|
|
7685
7873
|
*/
|
|
7686
7874
|
executorGetFeeCallIdMoveCall(tx) {
|
|
7687
7875
|
return tx.moveCall({
|
|
7688
|
-
target: __privateMethod(this, _Uln302PtbBuilder_instances,
|
|
7876
|
+
target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "executor_get_fee_call_id"),
|
|
7689
7877
|
arguments: []
|
|
7690
7878
|
});
|
|
7691
7879
|
}
|
|
@@ -7709,7 +7897,7 @@ var Uln302PtbBuilder = class {
|
|
|
7709
7897
|
*/
|
|
7710
7898
|
dvnGetFeeMultiCallIdMoveCall(tx) {
|
|
7711
7899
|
return tx.moveCall({
|
|
7712
|
-
target: __privateMethod(this, _Uln302PtbBuilder_instances,
|
|
7900
|
+
target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "dvn_get_fee_multi_call_id"),
|
|
7713
7901
|
arguments: []
|
|
7714
7902
|
});
|
|
7715
7903
|
}
|
|
@@ -7733,7 +7921,7 @@ var Uln302PtbBuilder = class {
|
|
|
7733
7921
|
*/
|
|
7734
7922
|
executorAssignJobCallIdMoveCall(tx) {
|
|
7735
7923
|
return tx.moveCall({
|
|
7736
|
-
target: __privateMethod(this, _Uln302PtbBuilder_instances,
|
|
7924
|
+
target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "executor_assign_job_call_id"),
|
|
7737
7925
|
arguments: []
|
|
7738
7926
|
});
|
|
7739
7927
|
}
|
|
@@ -7757,7 +7945,7 @@ var Uln302PtbBuilder = class {
|
|
|
7757
7945
|
*/
|
|
7758
7946
|
dvnAssignJobMultiCallIdMoveCall(tx) {
|
|
7759
7947
|
return tx.moveCall({
|
|
7760
|
-
target: __privateMethod(this, _Uln302PtbBuilder_instances,
|
|
7948
|
+
target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "dvn_assign_job_multi_call_id"),
|
|
7761
7949
|
arguments: []
|
|
7762
7950
|
});
|
|
7763
7951
|
}
|
|
@@ -7783,13 +7971,13 @@ _Uln302PtbBuilder_instances = new WeakSet();
|
|
|
7783
7971
|
* @returns The full module path for the move call
|
|
7784
7972
|
* @private
|
|
7785
7973
|
*/
|
|
7786
|
-
|
|
7974
|
+
target_fn19 = function(name, module_name = MODULE_NAME18) {
|
|
7787
7975
|
return `${this.packageId}::${module_name}::${name}`;
|
|
7788
7976
|
};
|
|
7789
7977
|
|
|
7790
7978
|
// src/modules/ptb-builders/blocked-message-lib-ptb-builder.ts
|
|
7791
|
-
var
|
|
7792
|
-
var _BlockedMessageLibPtbBuilder_instances,
|
|
7979
|
+
var MODULE_NAME19 = "blocked_msglib_ptb_builder";
|
|
7980
|
+
var _BlockedMessageLibPtbBuilder_instances, target_fn20;
|
|
7793
7981
|
var BlockedMessageLibPtbBuilder = class {
|
|
7794
7982
|
constructor(packageId, client, objects, moduleManager) {
|
|
7795
7983
|
this.moduleManager = moduleManager;
|
|
@@ -7806,7 +7994,7 @@ var BlockedMessageLibPtbBuilder = class {
|
|
|
7806
7994
|
*/
|
|
7807
7995
|
getPtbBuilderInfoMoveCall(tx) {
|
|
7808
7996
|
return tx.moveCall({
|
|
7809
|
-
target: __privateMethod(this, _BlockedMessageLibPtbBuilder_instances,
|
|
7997
|
+
target: __privateMethod(this, _BlockedMessageLibPtbBuilder_instances, target_fn20).call(this, "get_ptb_builder_info"),
|
|
7810
7998
|
arguments: [tx.object(this.objects.blockedMessageLibPtbBuilder), tx.object(this.objects.blockedMessageLib)]
|
|
7811
7999
|
});
|
|
7812
8000
|
}
|
|
@@ -7819,10 +8007,10 @@ _BlockedMessageLibPtbBuilder_instances = new WeakSet();
|
|
|
7819
8007
|
* @returns The full module path for the move call
|
|
7820
8008
|
* @private
|
|
7821
8009
|
*/
|
|
7822
|
-
|
|
8010
|
+
target_fn20 = function(name, module_name = MODULE_NAME19) {
|
|
7823
8011
|
return `${this.packageId}::${module_name}::${name}`;
|
|
7824
8012
|
};
|
|
7825
|
-
var
|
|
8013
|
+
var MODULE_NAME20 = "counter";
|
|
7826
8014
|
var CounterErrorCode = {
|
|
7827
8015
|
// Counter related errors
|
|
7828
8016
|
Counter_EInvalidMsgType: 0,
|
|
@@ -7834,7 +8022,7 @@ var CounterErrorCode = {
|
|
|
7834
8022
|
Counter_EInvalidAdminCap: 6,
|
|
7835
8023
|
Counter_EAlreadyInitialized: 7
|
|
7836
8024
|
};
|
|
7837
|
-
var _Counter_instances,
|
|
8025
|
+
var _Counter_instances, target_fn21;
|
|
7838
8026
|
var Counter = class {
|
|
7839
8027
|
constructor(packageId, client, objects, moduleManager) {
|
|
7840
8028
|
this.moduleManager = moduleManager;
|
|
@@ -7852,7 +8040,7 @@ var Counter = class {
|
|
|
7852
8040
|
*/
|
|
7853
8041
|
initCounterMoveCall(tx, lzReceiveInfo, lzComposeInfo) {
|
|
7854
8042
|
tx.moveCall({
|
|
7855
|
-
target: __privateMethod(this, _Counter_instances,
|
|
8043
|
+
target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "init_counter"),
|
|
7856
8044
|
arguments: [
|
|
7857
8045
|
tx.object(this.objects.counter),
|
|
7858
8046
|
tx.object(this.objects.counterOapp),
|
|
@@ -7871,10 +8059,10 @@ var Counter = class {
|
|
|
7871
8059
|
* @param payInZero - Whether to pay in ZRO tokens
|
|
7872
8060
|
* @returns Promise<MessagingFee> - The calculated messaging fees
|
|
7873
8061
|
*/
|
|
7874
|
-
async quote(dstEid, msgType, options, payInZero) {
|
|
8062
|
+
async quote(dstEid, msgType, options, payInZero, validators) {
|
|
7875
8063
|
const tx = new Transaction();
|
|
7876
8064
|
const quoteCall = tx.moveCall({
|
|
7877
|
-
target: __privateMethod(this, _Counter_instances,
|
|
8065
|
+
target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "quote"),
|
|
7878
8066
|
arguments: [
|
|
7879
8067
|
tx.object(this.objects.counter),
|
|
7880
8068
|
tx.object(this.objects.counterOapp),
|
|
@@ -7884,7 +8072,7 @@ var Counter = class {
|
|
|
7884
8072
|
asBool(tx, payInZero)
|
|
7885
8073
|
]
|
|
7886
8074
|
});
|
|
7887
|
-
return this.moduleManager.getEndpoint().quote(tx, quoteCall);
|
|
8075
|
+
return this.moduleManager.getEndpoint().quote(tx, quoteCall, void 0, validators);
|
|
7888
8076
|
}
|
|
7889
8077
|
/**
|
|
7890
8078
|
* Increment counter on destination chain
|
|
@@ -7898,11 +8086,11 @@ var Counter = class {
|
|
|
7898
8086
|
* @param zroFee - ZRO token fee amount
|
|
7899
8087
|
* @param refundAddress - Address for fee refunds
|
|
7900
8088
|
*/
|
|
7901
|
-
async incrementMoveCall(tx, sender, dstEid, msgType, options, sendValue, nativeFee, zroFee, refundAddress) {
|
|
8089
|
+
async incrementMoveCall(tx, sender, dstEid, msgType, options, sendValue, nativeFee, zroFee, refundAddress, validators) {
|
|
7902
8090
|
const [nativeToken] = tx.splitCoins(tx.gas, [asU64(tx, nativeFee)]);
|
|
7903
8091
|
const zroToken = isTransactionArgument(zroFee) ? zroFee : await this.moduleManager.getZro().splitOptionZroTokenMoveCall(tx, sender, zroFee);
|
|
7904
8092
|
const incrementCall = tx.moveCall({
|
|
7905
|
-
target: __privateMethod(this, _Counter_instances,
|
|
8093
|
+
target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "increment"),
|
|
7906
8094
|
arguments: [
|
|
7907
8095
|
tx.object(this.objects.counter),
|
|
7908
8096
|
tx.object(this.objects.counterOapp),
|
|
@@ -7915,64 +8103,50 @@ var Counter = class {
|
|
|
7915
8103
|
asAddress(tx, refundAddress)
|
|
7916
8104
|
]
|
|
7917
8105
|
});
|
|
7918
|
-
await this.moduleManager.getEndpoint().populateSendTransaction(tx, incrementCall, sender);
|
|
8106
|
+
await this.moduleManager.getEndpoint().populateSendTransaction(tx, incrementCall, sender, validators);
|
|
7919
8107
|
}
|
|
7920
8108
|
/**
|
|
7921
|
-
* Set
|
|
8109
|
+
* Set LayerZero compose information for counter
|
|
7922
8110
|
* @param tx - The transaction to add the move call to
|
|
7923
|
-
* @param
|
|
7924
|
-
* @param eid - The peer endpoint ID or transaction argument
|
|
7925
|
-
* @param peer - The peer counter address as bytes or transaction argument
|
|
8111
|
+
* @param lzComposeInfo - LayerZero compose information as bytes
|
|
7926
8112
|
*/
|
|
7927
|
-
|
|
8113
|
+
setLzComposeInfoMoveCall(tx, lzComposeInfo) {
|
|
7928
8114
|
tx.moveCall({
|
|
7929
|
-
target: __privateMethod(this, _Counter_instances,
|
|
8115
|
+
target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "set_lz_compose_info"),
|
|
7930
8116
|
arguments: [
|
|
7931
8117
|
tx.object(this.objects.counter),
|
|
7932
8118
|
tx.object(this.objects.counterOapp),
|
|
7933
8119
|
tx.object(this.objects.counterAdminCap),
|
|
7934
8120
|
tx.object(this.objects.endpointV2),
|
|
7935
|
-
|
|
7936
|
-
asU32(tx, eid),
|
|
7937
|
-
asBytes32(tx, peer, this.moduleManager.getUtils())
|
|
8121
|
+
asBytes(tx, lzComposeInfo)
|
|
7938
8122
|
]
|
|
7939
8123
|
});
|
|
7940
8124
|
}
|
|
8125
|
+
// === View Functions ===
|
|
7941
8126
|
/**
|
|
7942
|
-
*
|
|
8127
|
+
* Get counter EID
|
|
7943
8128
|
* @param tx - The transaction to add the move call to
|
|
7944
|
-
* @
|
|
8129
|
+
* @returns Transaction result containing the counter EID
|
|
7945
8130
|
*/
|
|
7946
|
-
|
|
7947
|
-
tx.moveCall({
|
|
7948
|
-
target: __privateMethod(this, _Counter_instances,
|
|
7949
|
-
arguments: [
|
|
7950
|
-
tx.object(this.objects.counter),
|
|
7951
|
-
tx.object(this.objects.counterOapp),
|
|
7952
|
-
tx.object(this.objects.counterAdminCap),
|
|
7953
|
-
tx.object(this.objects.endpointV2),
|
|
7954
|
-
asAddress(tx, newDelegate)
|
|
7955
|
-
]
|
|
8131
|
+
getEidMoveCall(tx) {
|
|
8132
|
+
return tx.moveCall({
|
|
8133
|
+
target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "eid"),
|
|
8134
|
+
arguments: [tx.object(this.objects.counter)]
|
|
7956
8135
|
});
|
|
7957
8136
|
}
|
|
7958
8137
|
/**
|
|
7959
|
-
*
|
|
7960
|
-
* @
|
|
7961
|
-
* @param lzComposeInfo - LayerZero compose information as bytes
|
|
8138
|
+
* Get counter EID
|
|
8139
|
+
* @returns Promise<number> - The counter EID
|
|
7962
8140
|
*/
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
asBytes(tx, lzComposeInfo)
|
|
7972
|
-
]
|
|
7973
|
-
});
|
|
8141
|
+
async getEid() {
|
|
8142
|
+
return executeSimulate(
|
|
8143
|
+
this.client,
|
|
8144
|
+
(tx) => {
|
|
8145
|
+
this.getEidMoveCall(tx);
|
|
8146
|
+
},
|
|
8147
|
+
(result) => bcs.U32.parse(result[0].value)
|
|
8148
|
+
);
|
|
7974
8149
|
}
|
|
7975
|
-
// === View Functions ===
|
|
7976
8150
|
/**
|
|
7977
8151
|
* Get call capability address for counter
|
|
7978
8152
|
* @param tx - The transaction to add the move call to
|
|
@@ -7980,7 +8154,7 @@ var Counter = class {
|
|
|
7980
8154
|
*/
|
|
7981
8155
|
getCallCapAddressMoveCall(tx) {
|
|
7982
8156
|
return tx.moveCall({
|
|
7983
|
-
target: __privateMethod(this, _Counter_instances,
|
|
8157
|
+
target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "call_cap_address"),
|
|
7984
8158
|
arguments: [tx.object(this.objects.counter)]
|
|
7985
8159
|
});
|
|
7986
8160
|
}
|
|
@@ -8004,7 +8178,7 @@ var Counter = class {
|
|
|
8004
8178
|
*/
|
|
8005
8179
|
getComposerAddressMoveCall(tx) {
|
|
8006
8180
|
return tx.moveCall({
|
|
8007
|
-
target: __privateMethod(this, _Counter_instances,
|
|
8181
|
+
target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "composer_address"),
|
|
8008
8182
|
arguments: [tx.object(this.objects.counter)]
|
|
8009
8183
|
});
|
|
8010
8184
|
}
|
|
@@ -8028,7 +8202,7 @@ var Counter = class {
|
|
|
8028
8202
|
*/
|
|
8029
8203
|
getCountMoveCall(tx) {
|
|
8030
8204
|
return tx.moveCall({
|
|
8031
|
-
target: __privateMethod(this, _Counter_instances,
|
|
8205
|
+
target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "get_count"),
|
|
8032
8206
|
arguments: [tx.object(this.objects.counter)]
|
|
8033
8207
|
});
|
|
8034
8208
|
}
|
|
@@ -8052,7 +8226,7 @@ var Counter = class {
|
|
|
8052
8226
|
*/
|
|
8053
8227
|
getComposedCountMoveCall(tx) {
|
|
8054
8228
|
return tx.moveCall({
|
|
8055
|
-
target: __privateMethod(this, _Counter_instances,
|
|
8229
|
+
target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "get_composed_count"),
|
|
8056
8230
|
arguments: [tx.object(this.objects.counter)]
|
|
8057
8231
|
});
|
|
8058
8232
|
}
|
|
@@ -8077,7 +8251,7 @@ var Counter = class {
|
|
|
8077
8251
|
*/
|
|
8078
8252
|
getOutboundCountMoveCall(tx, dstEid) {
|
|
8079
8253
|
return tx.moveCall({
|
|
8080
|
-
target: __privateMethod(this, _Counter_instances,
|
|
8254
|
+
target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "get_outbound_count"),
|
|
8081
8255
|
arguments: [tx.object(this.objects.counter), asU32(tx, dstEid)]
|
|
8082
8256
|
});
|
|
8083
8257
|
}
|
|
@@ -8103,7 +8277,7 @@ var Counter = class {
|
|
|
8103
8277
|
*/
|
|
8104
8278
|
getInboundCountMoveCall(tx, srcEid) {
|
|
8105
8279
|
return tx.moveCall({
|
|
8106
|
-
target: __privateMethod(this, _Counter_instances,
|
|
8280
|
+
target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "get_inbound_count"),
|
|
8107
8281
|
arguments: [tx.object(this.objects.counter), asU32(tx, srcEid)]
|
|
8108
8282
|
});
|
|
8109
8283
|
}
|
|
@@ -8123,7 +8297,7 @@ var Counter = class {
|
|
|
8123
8297
|
}
|
|
8124
8298
|
nextNonceMoveCall(tx, srcEid, sender) {
|
|
8125
8299
|
return tx.moveCall({
|
|
8126
|
-
target: __privateMethod(this, _Counter_instances,
|
|
8300
|
+
target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "next_nonce"),
|
|
8127
8301
|
arguments: [
|
|
8128
8302
|
tx.object(this.objects.counter),
|
|
8129
8303
|
asU32(tx, srcEid),
|
|
@@ -8142,7 +8316,7 @@ var Counter = class {
|
|
|
8142
8316
|
}
|
|
8143
8317
|
getMaxReceivedNonceMoveCall(tx, srcEid, sender) {
|
|
8144
8318
|
return tx.moveCall({
|
|
8145
|
-
target: __privateMethod(this, _Counter_instances,
|
|
8319
|
+
target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "get_max_received_nonce"),
|
|
8146
8320
|
arguments: [
|
|
8147
8321
|
tx.object(this.objects.counter),
|
|
8148
8322
|
asU32(tx, srcEid),
|
|
@@ -8161,7 +8335,7 @@ var Counter = class {
|
|
|
8161
8335
|
}
|
|
8162
8336
|
isOrderedNonceMoveCall(tx) {
|
|
8163
8337
|
return tx.moveCall({
|
|
8164
|
-
target: __privateMethod(this, _Counter_instances,
|
|
8338
|
+
target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "is_ordered_nonce"),
|
|
8165
8339
|
arguments: [tx.object(this.objects.counter)]
|
|
8166
8340
|
});
|
|
8167
8341
|
}
|
|
@@ -8177,7 +8351,7 @@ var Counter = class {
|
|
|
8177
8351
|
// === PTB Builder Functions ===
|
|
8178
8352
|
lzReceiveInfoMoveCall(tx) {
|
|
8179
8353
|
return tx.moveCall({
|
|
8180
|
-
target: __privateMethod(this, _Counter_instances,
|
|
8354
|
+
target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "lz_receive_info", "counter_ptb_builder"),
|
|
8181
8355
|
arguments: [
|
|
8182
8356
|
tx.object(this.objects.counter),
|
|
8183
8357
|
tx.object(this.objects.counterOapp),
|
|
@@ -8188,7 +8362,7 @@ var Counter = class {
|
|
|
8188
8362
|
}
|
|
8189
8363
|
lzComposeInfoMoveCall(tx) {
|
|
8190
8364
|
return tx.moveCall({
|
|
8191
|
-
target: __privateMethod(this, _Counter_instances,
|
|
8365
|
+
target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "lz_compose_info", "counter_ptb_builder"),
|
|
8192
8366
|
arguments: [
|
|
8193
8367
|
tx.object(this.objects.counter),
|
|
8194
8368
|
tx.object(this.objects.counterOapp),
|
|
@@ -8207,10 +8381,10 @@ _Counter_instances = new WeakSet();
|
|
|
8207
8381
|
* @returns The full module path for the move call
|
|
8208
8382
|
* @private
|
|
8209
8383
|
*/
|
|
8210
|
-
|
|
8384
|
+
target_fn21 = function(name, module_name = MODULE_NAME20) {
|
|
8211
8385
|
return `${this.packageId}::${module_name}::${name}`;
|
|
8212
8386
|
};
|
|
8213
|
-
var
|
|
8387
|
+
var MODULE_NAME21 = "oapp";
|
|
8214
8388
|
var OAppErrorCode = {
|
|
8215
8389
|
// OApp related errors
|
|
8216
8390
|
OApp_EAlreadyInited: 1,
|
|
@@ -8225,15 +8399,20 @@ var OAppErrorCode = {
|
|
|
8225
8399
|
EndpointConfig_EInvalidIntentType: 2,
|
|
8226
8400
|
EndpointConfig_EInvalidOAppCallCap: 3
|
|
8227
8401
|
};
|
|
8228
|
-
var _OApp_instances,
|
|
8402
|
+
var _OApp_instances, oappInfo_fn, target_fn22;
|
|
8229
8403
|
var OApp = class {
|
|
8230
|
-
constructor(packageId, client, objects, moduleManager) {
|
|
8404
|
+
constructor(packageId, oappCallCapId, client, objects, moduleManager) {
|
|
8231
8405
|
this.moduleManager = moduleManager;
|
|
8232
8406
|
__privateAdd(this, _OApp_instances);
|
|
8407
|
+
this.oappInfo = null;
|
|
8233
8408
|
this.packageId = packageId;
|
|
8409
|
+
this.oappCallCapId = oappCallCapId;
|
|
8234
8410
|
this.client = client;
|
|
8235
8411
|
this.objects = objects;
|
|
8236
8412
|
}
|
|
8413
|
+
// setOAppInfo(oappInfo: OAppInfoV1): void {
|
|
8414
|
+
// this.oappInfo = oappInfo
|
|
8415
|
+
// }
|
|
8237
8416
|
// === Set Functions ===
|
|
8238
8417
|
/**
|
|
8239
8418
|
* Set enforced options for OApp messaging
|
|
@@ -8244,11 +8423,13 @@ var OApp = class {
|
|
|
8244
8423
|
* @param msgType - Message type or transaction argument
|
|
8245
8424
|
* @param options - Enforced options as bytes or transaction argument
|
|
8246
8425
|
*/
|
|
8247
|
-
setEnforcedOptionsMoveCall(tx,
|
|
8426
|
+
async setEnforcedOptionsMoveCall(tx, eid, msgType, options) {
|
|
8427
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8428
|
+
const adminCap = await this.getAdminCap(oappInfo.oapp_object);
|
|
8248
8429
|
tx.moveCall({
|
|
8249
|
-
target: __privateMethod(this, _OApp_instances,
|
|
8430
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_enforced_options"),
|
|
8250
8431
|
arguments: [
|
|
8251
|
-
asObject(tx,
|
|
8432
|
+
asObject(tx, oappInfo.oapp_object),
|
|
8252
8433
|
asObject(tx, adminCap),
|
|
8253
8434
|
asU32(tx, eid),
|
|
8254
8435
|
asU16(tx, msgType),
|
|
@@ -8264,12 +8445,17 @@ var OApp = class {
|
|
|
8264
8445
|
* @param eid - Peer endpoint ID or transaction argument
|
|
8265
8446
|
* @param peer - Peer OApp address as bytes or transaction argument
|
|
8266
8447
|
*/
|
|
8267
|
-
setPeerMoveCall(tx,
|
|
8448
|
+
async setPeerMoveCall(tx, eid, peer) {
|
|
8449
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8450
|
+
const adminCap = await this.getAdminCap(oappInfo.oapp_object);
|
|
8451
|
+
const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
|
|
8268
8452
|
tx.moveCall({
|
|
8269
|
-
target: __privateMethod(this, _OApp_instances,
|
|
8453
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_peer"),
|
|
8270
8454
|
arguments: [
|
|
8271
|
-
asObject(tx,
|
|
8455
|
+
asObject(tx, oappInfo.oapp_object),
|
|
8272
8456
|
asObject(tx, adminCap),
|
|
8457
|
+
asObject(tx, this.objects.endpointV2),
|
|
8458
|
+
asObject(tx, messagingChannel),
|
|
8273
8459
|
asU32(tx, eid),
|
|
8274
8460
|
asBytes32(tx, peer, this.moduleManager.getUtils())
|
|
8275
8461
|
]
|
|
@@ -8277,53 +8463,54 @@ var OApp = class {
|
|
|
8277
8463
|
}
|
|
8278
8464
|
// === View Functions ===
|
|
8279
8465
|
/**
|
|
8280
|
-
* Get admin address for OApp
|
|
8466
|
+
* Get admin capability address for OApp
|
|
8281
8467
|
* @param tx - The transaction to add the move call to
|
|
8282
8468
|
* @param oapp - The OApp object ID or transaction argument
|
|
8283
|
-
* @returns Transaction result containing the admin address
|
|
8469
|
+
* @returns Transaction result containing the admin capability address
|
|
8284
8470
|
*/
|
|
8285
|
-
|
|
8471
|
+
getAdminCapMoveCall(tx, oapp) {
|
|
8286
8472
|
return tx.moveCall({
|
|
8287
|
-
target: __privateMethod(this, _OApp_instances,
|
|
8473
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "admin_cap"),
|
|
8288
8474
|
arguments: [asObject(tx, oapp)]
|
|
8289
8475
|
});
|
|
8290
8476
|
}
|
|
8291
8477
|
/**
|
|
8292
|
-
* Get admin address for OApp
|
|
8478
|
+
* Get admin capability address for OApp
|
|
8293
8479
|
* @param oapp - The OApp object ID
|
|
8294
|
-
* @returns Promise<string> - The admin address
|
|
8480
|
+
* @returns Promise<string> - The admin capability address
|
|
8295
8481
|
*/
|
|
8296
|
-
async
|
|
8482
|
+
async getAdminCap(oapp) {
|
|
8297
8483
|
return executeSimulate(
|
|
8298
8484
|
this.client,
|
|
8299
8485
|
(tx) => {
|
|
8300
|
-
this.
|
|
8486
|
+
this.getAdminCapMoveCall(tx, oapp);
|
|
8301
8487
|
},
|
|
8302
8488
|
(result) => bcs.Address.parse(result[0].value)
|
|
8303
8489
|
);
|
|
8304
8490
|
}
|
|
8305
8491
|
/**
|
|
8306
|
-
* Get OApp
|
|
8492
|
+
* Get OApp CallCap identifier
|
|
8307
8493
|
* @param tx - The transaction to add the move call to
|
|
8308
8494
|
* @param oapp - The OApp object ID or transaction argument
|
|
8309
|
-
* @returns Transaction result containing the OApp
|
|
8495
|
+
* @returns Transaction result containing the OApp CallCap identifier
|
|
8310
8496
|
*/
|
|
8311
|
-
|
|
8497
|
+
async getOAppCapIdMoveCall(tx) {
|
|
8498
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8312
8499
|
return tx.moveCall({
|
|
8313
|
-
target: __privateMethod(this, _OApp_instances,
|
|
8314
|
-
arguments: [asObject(tx,
|
|
8500
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "oapp_cap_id"),
|
|
8501
|
+
arguments: [asObject(tx, oappInfo.oapp_object)]
|
|
8315
8502
|
});
|
|
8316
8503
|
}
|
|
8317
8504
|
/**
|
|
8318
|
-
* Get OApp
|
|
8319
|
-
* @param oapp - The OApp object ID
|
|
8320
|
-
* @returns Promise<string> - The OApp
|
|
8505
|
+
* Get OApp CallCap identifier
|
|
8506
|
+
* @param oapp - The OApp object ID (optional, uses configured oapp if not provided)
|
|
8507
|
+
* @returns Promise<string> - The OApp CallCap identifier
|
|
8321
8508
|
*/
|
|
8322
|
-
async
|
|
8509
|
+
async getOAppCapId() {
|
|
8323
8510
|
return executeSimulate(
|
|
8324
8511
|
this.client,
|
|
8325
|
-
(tx) => {
|
|
8326
|
-
this.
|
|
8512
|
+
async (tx) => {
|
|
8513
|
+
await this.getOAppCapIdMoveCall(tx);
|
|
8327
8514
|
},
|
|
8328
8515
|
(result) => bcs.Address.parse(result[0].value)
|
|
8329
8516
|
);
|
|
@@ -8337,10 +8524,16 @@ var OApp = class {
|
|
|
8337
8524
|
* @param extraOptions - Extra options to combine with enforced options or transaction argument
|
|
8338
8525
|
* @returns Transaction result containing combined options
|
|
8339
8526
|
*/
|
|
8340
|
-
combineOptionsMoveCall(tx,
|
|
8527
|
+
async combineOptionsMoveCall(tx, eid, msgType, extraOptions) {
|
|
8528
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8341
8529
|
return tx.moveCall({
|
|
8342
|
-
target: __privateMethod(this, _OApp_instances,
|
|
8343
|
-
arguments: [
|
|
8530
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "combine_options"),
|
|
8531
|
+
arguments: [
|
|
8532
|
+
asObject(tx, oappInfo.oapp_object),
|
|
8533
|
+
asU32(tx, eid),
|
|
8534
|
+
asU16(tx, msgType),
|
|
8535
|
+
asBytes(tx, extraOptions)
|
|
8536
|
+
]
|
|
8344
8537
|
});
|
|
8345
8538
|
}
|
|
8346
8539
|
/**
|
|
@@ -8351,11 +8544,11 @@ var OApp = class {
|
|
|
8351
8544
|
* @param extraOptions - Extra options to combine with enforced options
|
|
8352
8545
|
* @returns Promise<Uint8Array> - Combined options as bytes
|
|
8353
8546
|
*/
|
|
8354
|
-
async combineOptions(
|
|
8547
|
+
async combineOptions(eid, msgType, extraOptions) {
|
|
8355
8548
|
return executeSimulate(
|
|
8356
8549
|
this.client,
|
|
8357
|
-
(tx) => {
|
|
8358
|
-
this.combineOptionsMoveCall(tx,
|
|
8550
|
+
async (tx) => {
|
|
8551
|
+
await this.combineOptionsMoveCall(tx, eid, msgType, extraOptions);
|
|
8359
8552
|
},
|
|
8360
8553
|
(result) => new Uint8Array(bcs.vector(bcs.u8()).parse(result[0].value))
|
|
8361
8554
|
);
|
|
@@ -8368,10 +8561,11 @@ var OApp = class {
|
|
|
8368
8561
|
* @param msgType - Message type or transaction argument
|
|
8369
8562
|
* @returns Transaction result containing enforced options
|
|
8370
8563
|
*/
|
|
8371
|
-
getEnforcedOptionsMoveCall(tx,
|
|
8564
|
+
async getEnforcedOptionsMoveCall(tx, eid, msgType) {
|
|
8565
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8372
8566
|
return tx.moveCall({
|
|
8373
|
-
target: __privateMethod(this, _OApp_instances,
|
|
8374
|
-
arguments: [asObject(tx,
|
|
8567
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "get_enforced_options"),
|
|
8568
|
+
arguments: [asObject(tx, oappInfo.oapp_object), asU32(tx, eid), asU16(tx, msgType)]
|
|
8375
8569
|
});
|
|
8376
8570
|
}
|
|
8377
8571
|
/**
|
|
@@ -8381,11 +8575,11 @@ var OApp = class {
|
|
|
8381
8575
|
* @param msgType - Message type
|
|
8382
8576
|
* @returns Promise<Uint8Array> - Enforced options as bytes
|
|
8383
8577
|
*/
|
|
8384
|
-
async getEnforcedOptions(
|
|
8578
|
+
async getEnforcedOptions(eid, msgType) {
|
|
8385
8579
|
return executeSimulate(
|
|
8386
8580
|
this.client,
|
|
8387
|
-
(tx) => {
|
|
8388
|
-
this.getEnforcedOptionsMoveCall(tx,
|
|
8581
|
+
async (tx) => {
|
|
8582
|
+
await this.getEnforcedOptionsMoveCall(tx, eid, msgType);
|
|
8389
8583
|
},
|
|
8390
8584
|
(result) => new Uint8Array(bcs.vector(bcs.u8()).parse(result[0].value))
|
|
8391
8585
|
);
|
|
@@ -8397,10 +8591,11 @@ var OApp = class {
|
|
|
8397
8591
|
* @param dstEid - Destination endpoint ID or transaction argument
|
|
8398
8592
|
* @returns Transaction result containing boolean result
|
|
8399
8593
|
*/
|
|
8400
|
-
hasPeerMoveCall(tx,
|
|
8594
|
+
async hasPeerMoveCall(tx, dstEid) {
|
|
8595
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8401
8596
|
return tx.moveCall({
|
|
8402
|
-
target: __privateMethod(this, _OApp_instances,
|
|
8403
|
-
arguments: [asObject(tx,
|
|
8597
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "has_peer"),
|
|
8598
|
+
arguments: [asObject(tx, oappInfo.oapp_object), asU32(tx, dstEid)]
|
|
8404
8599
|
});
|
|
8405
8600
|
}
|
|
8406
8601
|
/**
|
|
@@ -8409,11 +8604,11 @@ var OApp = class {
|
|
|
8409
8604
|
* @param dstEid - Destination endpoint ID
|
|
8410
8605
|
* @returns Promise<boolean> - True if peer is configured, false otherwise
|
|
8411
8606
|
*/
|
|
8412
|
-
async hasPeer(
|
|
8607
|
+
async hasPeer(dstEid) {
|
|
8413
8608
|
return executeSimulate(
|
|
8414
8609
|
this.client,
|
|
8415
|
-
(tx) => {
|
|
8416
|
-
this.hasPeerMoveCall(tx,
|
|
8610
|
+
async (tx) => {
|
|
8611
|
+
await this.hasPeerMoveCall(tx, dstEid);
|
|
8417
8612
|
},
|
|
8418
8613
|
(result) => bcs.Bool.parse(result[0].value)
|
|
8419
8614
|
);
|
|
@@ -8425,10 +8620,11 @@ var OApp = class {
|
|
|
8425
8620
|
* @param dstEid - Destination endpoint ID or transaction argument
|
|
8426
8621
|
* @returns Transaction result containing peer address
|
|
8427
8622
|
*/
|
|
8428
|
-
getPeerMoveCall(tx,
|
|
8623
|
+
async getPeerMoveCall(tx, dstEid) {
|
|
8624
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8429
8625
|
return tx.moveCall({
|
|
8430
|
-
target: __privateMethod(this, _OApp_instances,
|
|
8431
|
-
arguments: [asObject(tx,
|
|
8626
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "get_peer"),
|
|
8627
|
+
arguments: [asObject(tx, oappInfo.oapp_object), asU32(tx, dstEid)]
|
|
8432
8628
|
});
|
|
8433
8629
|
}
|
|
8434
8630
|
/**
|
|
@@ -8437,27 +8633,333 @@ var OApp = class {
|
|
|
8437
8633
|
* @param dstEid - Destination endpoint ID
|
|
8438
8634
|
* @returns Promise<Uint8Array> - Peer address as bytes32
|
|
8439
8635
|
*/
|
|
8440
|
-
async getPeer(
|
|
8636
|
+
async getPeer(dstEid) {
|
|
8441
8637
|
return executeSimulate(
|
|
8442
8638
|
this.client,
|
|
8443
|
-
(tx) => {
|
|
8444
|
-
this.getPeerMoveCall(tx,
|
|
8639
|
+
async (tx) => {
|
|
8640
|
+
await this.getPeerMoveCall(tx, dstEid);
|
|
8445
8641
|
},
|
|
8446
8642
|
(result) => {
|
|
8447
8643
|
return new Uint8Array(bcs.vector(bcs.u8()).parse(result[0].value));
|
|
8448
8644
|
}
|
|
8449
8645
|
);
|
|
8450
8646
|
}
|
|
8647
|
+
getOAppInfoV1MoveCall(tx) {
|
|
8648
|
+
const endpoint = this.moduleManager.getEndpoint();
|
|
8649
|
+
const oappInfoRaw = endpoint.getLzReceiveInfoMoveCall(tx, this.oappCallCapId);
|
|
8650
|
+
return tx.moveCall({
|
|
8651
|
+
target: `${this.packageId}::oapp_info_v1::decode`,
|
|
8652
|
+
arguments: [oappInfoRaw]
|
|
8653
|
+
});
|
|
8654
|
+
}
|
|
8655
|
+
async getOAppInfoV1() {
|
|
8656
|
+
return executeSimulate(
|
|
8657
|
+
this.client,
|
|
8658
|
+
(tx) => {
|
|
8659
|
+
this.getOAppInfoV1MoveCall(tx);
|
|
8660
|
+
},
|
|
8661
|
+
(result) => {
|
|
8662
|
+
return OAppInfoV1Bcs.parse(result[0].value);
|
|
8663
|
+
}
|
|
8664
|
+
);
|
|
8665
|
+
}
|
|
8666
|
+
// === Endpoint Call Functions ===
|
|
8667
|
+
/**
|
|
8668
|
+
* Register OApp with the endpoint
|
|
8669
|
+
* @param tx - The transaction to add the move call to
|
|
8670
|
+
* @param oappInfo - OApp information as bytes (optional)
|
|
8671
|
+
* @returns Transaction result containing the messaging channel address
|
|
8672
|
+
*/
|
|
8673
|
+
async registerOAppMoveCall(tx, oappInfo) {
|
|
8674
|
+
let oappInfoArg;
|
|
8675
|
+
if (isTransactionArgument(oappInfo)) {
|
|
8676
|
+
oappInfoArg = oappInfo;
|
|
8677
|
+
} else if (oappInfo) {
|
|
8678
|
+
oappInfoArg = tx.pure.option("vector<u8>", Array.from(oappInfo));
|
|
8679
|
+
} else {
|
|
8680
|
+
oappInfoArg = tx.pure.option("vector<u8>", null);
|
|
8681
|
+
}
|
|
8682
|
+
const oappInfoObj = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8683
|
+
const adminCap = await this.getAdminCap(oappInfoObj.oapp_object);
|
|
8684
|
+
return tx.moveCall({
|
|
8685
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "register_oapp", "endpoint_calls"),
|
|
8686
|
+
arguments: [
|
|
8687
|
+
asObject(tx, oappInfoObj.oapp_object),
|
|
8688
|
+
asObject(tx, adminCap),
|
|
8689
|
+
asObject(tx, this.objects.endpointV2),
|
|
8690
|
+
oappInfoArg
|
|
8691
|
+
]
|
|
8692
|
+
});
|
|
8693
|
+
}
|
|
8694
|
+
/**
|
|
8695
|
+
* Set delegate for OApp
|
|
8696
|
+
* @param tx - The transaction to add the move call to
|
|
8697
|
+
* @param newDelegate - New delegate address
|
|
8698
|
+
*/
|
|
8699
|
+
async setDelegateMoveCall(tx, newDelegate) {
|
|
8700
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8701
|
+
const adminCap = await this.getAdminCap(oappInfo.oapp_object);
|
|
8702
|
+
tx.moveCall({
|
|
8703
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_delegate", "endpoint_calls"),
|
|
8704
|
+
arguments: [
|
|
8705
|
+
asObject(tx, oappInfo.oapp_object),
|
|
8706
|
+
asObject(tx, adminCap),
|
|
8707
|
+
asObject(tx, this.objects.endpointV2),
|
|
8708
|
+
asAddress(tx, newDelegate)
|
|
8709
|
+
]
|
|
8710
|
+
});
|
|
8711
|
+
}
|
|
8712
|
+
/**
|
|
8713
|
+
* Set OApp information in the endpoint
|
|
8714
|
+
* @param tx - The transaction to add the move call to
|
|
8715
|
+
* @param oappInfo - OApp information as bytes
|
|
8716
|
+
*/
|
|
8717
|
+
async setOAppInfoMoveCall(tx, oappInfo) {
|
|
8718
|
+
const oappInfoObj = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8719
|
+
const adminCap = await this.getAdminCap(oappInfoObj.oapp_object);
|
|
8720
|
+
tx.moveCall({
|
|
8721
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_oapp_info", "endpoint_calls"),
|
|
8722
|
+
arguments: [
|
|
8723
|
+
asObject(tx, oappInfoObj.oapp_object),
|
|
8724
|
+
asObject(tx, adminCap),
|
|
8725
|
+
asObject(tx, this.objects.endpointV2),
|
|
8726
|
+
asBytes(tx, oappInfo)
|
|
8727
|
+
]
|
|
8728
|
+
});
|
|
8729
|
+
}
|
|
8730
|
+
/**
|
|
8731
|
+
* Initialize channel with remote OApp
|
|
8732
|
+
* @param tx - The transaction to add the move call to
|
|
8733
|
+
* @param remoteEid - Remote endpoint ID
|
|
8734
|
+
* @param remoteOApp - Remote OApp address as bytes32
|
|
8735
|
+
*/
|
|
8736
|
+
async initChannelMoveCall(tx, remoteEid, remoteOApp) {
|
|
8737
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8738
|
+
const adminCap = await this.getAdminCap(oappInfo.oapp_object);
|
|
8739
|
+
const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
|
|
8740
|
+
tx.moveCall({
|
|
8741
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "init_channel", "endpoint_calls"),
|
|
8742
|
+
arguments: [
|
|
8743
|
+
asObject(tx, oappInfo.oapp_object),
|
|
8744
|
+
asObject(tx, adminCap),
|
|
8745
|
+
asObject(tx, this.objects.endpointV2),
|
|
8746
|
+
asObject(tx, messagingChannel),
|
|
8747
|
+
asU32(tx, remoteEid),
|
|
8748
|
+
asBytes32(tx, remoteOApp, this.moduleManager.getUtils())
|
|
8749
|
+
]
|
|
8750
|
+
});
|
|
8751
|
+
}
|
|
8752
|
+
/**
|
|
8753
|
+
* Clear a message from the messaging channel
|
|
8754
|
+
* @param tx - The transaction to add the move call to
|
|
8755
|
+
* @param srcEid - Source endpoint ID
|
|
8756
|
+
* @param sender - Sender address as bytes32
|
|
8757
|
+
* @param nonce - Message nonce
|
|
8758
|
+
* @param guid - Message GUID as bytes32
|
|
8759
|
+
* @param message - Message payload
|
|
8760
|
+
*/
|
|
8761
|
+
async clearMoveCall(tx, srcEid, sender, nonce, guid, message) {
|
|
8762
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8763
|
+
const adminCap = await this.getAdminCap(oappInfo.oapp_object);
|
|
8764
|
+
const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
|
|
8765
|
+
tx.moveCall({
|
|
8766
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "clear", "endpoint_calls"),
|
|
8767
|
+
arguments: [
|
|
8768
|
+
asObject(tx, oappInfo.oapp_object),
|
|
8769
|
+
asObject(tx, adminCap),
|
|
8770
|
+
asObject(tx, this.objects.endpointV2),
|
|
8771
|
+
asObject(tx, messagingChannel),
|
|
8772
|
+
asU32(tx, srcEid),
|
|
8773
|
+
asBytes32(tx, sender, this.moduleManager.getUtils()),
|
|
8774
|
+
asU64(tx, nonce),
|
|
8775
|
+
asBytes32(tx, guid, this.moduleManager.getUtils()),
|
|
8776
|
+
asBytes(tx, message)
|
|
8777
|
+
]
|
|
8778
|
+
});
|
|
8779
|
+
}
|
|
8780
|
+
/**
|
|
8781
|
+
* Skip a message in the messaging channel
|
|
8782
|
+
* @param tx - The transaction to add the move call to
|
|
8783
|
+
* @param srcEid - Source endpoint ID
|
|
8784
|
+
* @param sender - Sender address as bytes32
|
|
8785
|
+
* @param nonce - Message nonce
|
|
8786
|
+
*/
|
|
8787
|
+
async skipMoveCall(tx, srcEid, sender, nonce) {
|
|
8788
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8789
|
+
const adminCap = await this.getAdminCap(oappInfo.oapp_object);
|
|
8790
|
+
const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
|
|
8791
|
+
tx.moveCall({
|
|
8792
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "skip", "endpoint_calls"),
|
|
8793
|
+
arguments: [
|
|
8794
|
+
asObject(tx, oappInfo.oapp_object),
|
|
8795
|
+
asObject(tx, adminCap),
|
|
8796
|
+
asObject(tx, this.objects.endpointV2),
|
|
8797
|
+
asObject(tx, messagingChannel),
|
|
8798
|
+
asU32(tx, srcEid),
|
|
8799
|
+
asBytes32(tx, sender, this.moduleManager.getUtils()),
|
|
8800
|
+
asU64(tx, nonce)
|
|
8801
|
+
]
|
|
8802
|
+
});
|
|
8803
|
+
}
|
|
8804
|
+
/**
|
|
8805
|
+
* Nilify a message in the messaging channel
|
|
8806
|
+
* @param tx - The transaction to add the move call to
|
|
8807
|
+
* @param srcEid - Source endpoint ID
|
|
8808
|
+
* @param sender - Sender address as bytes32
|
|
8809
|
+
* @param nonce - Message nonce
|
|
8810
|
+
* @param payloadHash - Payload hash as bytes32
|
|
8811
|
+
*/
|
|
8812
|
+
async nilifyMoveCall(tx, srcEid, sender, nonce, payloadHash) {
|
|
8813
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8814
|
+
const adminCap = await this.getAdminCap(oappInfo.oapp_object);
|
|
8815
|
+
const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
|
|
8816
|
+
tx.moveCall({
|
|
8817
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "nilify", "endpoint_calls"),
|
|
8818
|
+
arguments: [
|
|
8819
|
+
asObject(tx, oappInfo.oapp_object),
|
|
8820
|
+
asObject(tx, adminCap),
|
|
8821
|
+
asObject(tx, this.objects.endpointV2),
|
|
8822
|
+
asObject(tx, messagingChannel),
|
|
8823
|
+
asU32(tx, srcEid),
|
|
8824
|
+
asBytes32(tx, sender, this.moduleManager.getUtils()),
|
|
8825
|
+
asU64(tx, nonce),
|
|
8826
|
+
asBytes32(tx, payloadHash, this.moduleManager.getUtils())
|
|
8827
|
+
]
|
|
8828
|
+
});
|
|
8829
|
+
}
|
|
8830
|
+
/**
|
|
8831
|
+
* Burn a message in the messaging channel
|
|
8832
|
+
* @param tx - The transaction to add the move call to
|
|
8833
|
+
* @param srcEid - Source endpoint ID
|
|
8834
|
+
* @param sender - Sender address as bytes32
|
|
8835
|
+
* @param nonce - Message nonce
|
|
8836
|
+
* @param payloadHash - Payload hash as bytes32
|
|
8837
|
+
*/
|
|
8838
|
+
async burnMoveCall(tx, srcEid, sender, nonce, payloadHash) {
|
|
8839
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8840
|
+
const adminCap = await this.getAdminCap(oappInfo.oapp_object);
|
|
8841
|
+
const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
|
|
8842
|
+
tx.moveCall({
|
|
8843
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "burn", "endpoint_calls"),
|
|
8844
|
+
arguments: [
|
|
8845
|
+
asObject(tx, oappInfo.oapp_object),
|
|
8846
|
+
asObject(tx, adminCap),
|
|
8847
|
+
asObject(tx, this.objects.endpointV2),
|
|
8848
|
+
asObject(tx, messagingChannel),
|
|
8849
|
+
asU32(tx, srcEid),
|
|
8850
|
+
asBytes32(tx, sender, this.moduleManager.getUtils()),
|
|
8851
|
+
asU64(tx, nonce),
|
|
8852
|
+
asBytes32(tx, payloadHash, this.moduleManager.getUtils())
|
|
8853
|
+
]
|
|
8854
|
+
});
|
|
8855
|
+
}
|
|
8856
|
+
/**
|
|
8857
|
+
* Set send library for a destination chain
|
|
8858
|
+
* @param tx - The transaction to add the move call to
|
|
8859
|
+
* @param dstEid - Destination endpoint ID
|
|
8860
|
+
* @param sendLibrary - Send library address
|
|
8861
|
+
*/
|
|
8862
|
+
async setSendLibraryMoveCall(tx, dstEid, sendLibrary) {
|
|
8863
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8864
|
+
const adminCap = await this.getAdminCap(oappInfo.oapp_object);
|
|
8865
|
+
tx.moveCall({
|
|
8866
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_send_library", "endpoint_calls"),
|
|
8867
|
+
arguments: [
|
|
8868
|
+
asObject(tx, oappInfo.oapp_object),
|
|
8869
|
+
asObject(tx, adminCap),
|
|
8870
|
+
asObject(tx, this.objects.endpointV2),
|
|
8871
|
+
asU32(tx, dstEid),
|
|
8872
|
+
asAddress(tx, sendLibrary)
|
|
8873
|
+
]
|
|
8874
|
+
});
|
|
8875
|
+
}
|
|
8876
|
+
/**
|
|
8877
|
+
* Set receive library for a source chain
|
|
8878
|
+
* @param tx - The transaction to add the move call to
|
|
8879
|
+
* @param srcEid - Source endpoint ID
|
|
8880
|
+
* @param receiveLibrary - Receive library address
|
|
8881
|
+
* @param gracePeriod - Grace period in seconds
|
|
8882
|
+
*/
|
|
8883
|
+
async setReceiveLibraryMoveCall(tx, srcEid, receiveLibrary, gracePeriod) {
|
|
8884
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8885
|
+
const adminCap = await this.getAdminCap(oappInfo.oapp_object);
|
|
8886
|
+
tx.moveCall({
|
|
8887
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_receive_library", "endpoint_calls"),
|
|
8888
|
+
arguments: [
|
|
8889
|
+
asObject(tx, oappInfo.oapp_object),
|
|
8890
|
+
asObject(tx, adminCap),
|
|
8891
|
+
asObject(tx, this.objects.endpointV2),
|
|
8892
|
+
asU32(tx, srcEid),
|
|
8893
|
+
asAddress(tx, receiveLibrary),
|
|
8894
|
+
asU64(tx, gracePeriod),
|
|
8895
|
+
tx.object.clock()
|
|
8896
|
+
]
|
|
8897
|
+
});
|
|
8898
|
+
}
|
|
8899
|
+
/**
|
|
8900
|
+
* Set receive library timeout for a source chain
|
|
8901
|
+
* @param tx - The transaction to add the move call to
|
|
8902
|
+
* @param srcEid - Source endpoint ID
|
|
8903
|
+
* @param receiveLibrary - Receive library address
|
|
8904
|
+
* @param expiry - Expiry timestamp in seconds
|
|
8905
|
+
*/
|
|
8906
|
+
async setReceiveLibraryTimeoutMoveCall(tx, srcEid, receiveLibrary, expiry) {
|
|
8907
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8908
|
+
const adminCap = await this.getAdminCap(oappInfo.oapp_object);
|
|
8909
|
+
tx.moveCall({
|
|
8910
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_receive_library_timeout", "endpoint_calls"),
|
|
8911
|
+
arguments: [
|
|
8912
|
+
asObject(tx, oappInfo.oapp_object),
|
|
8913
|
+
asObject(tx, adminCap),
|
|
8914
|
+
asObject(tx, this.objects.endpointV2),
|
|
8915
|
+
asU32(tx, srcEid),
|
|
8916
|
+
asAddress(tx, receiveLibrary),
|
|
8917
|
+
asU64(tx, expiry),
|
|
8918
|
+
tx.object.clock()
|
|
8919
|
+
]
|
|
8920
|
+
});
|
|
8921
|
+
}
|
|
8922
|
+
/**
|
|
8923
|
+
* Set configuration for a message library
|
|
8924
|
+
* @param tx - The transaction to add the move call to
|
|
8925
|
+
* @param lib - Library address
|
|
8926
|
+
* @param eid - Endpoint ID
|
|
8927
|
+
* @param configType - Configuration type
|
|
8928
|
+
* @param config - Configuration data as bytes
|
|
8929
|
+
* @returns Transaction result containing Call<MessageLibSetConfigParam, Void>
|
|
8930
|
+
*/
|
|
8931
|
+
async setConfigMoveCall(tx, lib, eid, configType, config) {
|
|
8932
|
+
const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
|
|
8933
|
+
const adminCap = await this.getAdminCap(oappInfo.oapp_object);
|
|
8934
|
+
return tx.moveCall({
|
|
8935
|
+
target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_config", "endpoint_calls"),
|
|
8936
|
+
typeArguments: [],
|
|
8937
|
+
arguments: [
|
|
8938
|
+
asObject(tx, oappInfo.oapp_object),
|
|
8939
|
+
asObject(tx, adminCap),
|
|
8940
|
+
asObject(tx, this.objects.endpointV2),
|
|
8941
|
+
asAddress(tx, lib),
|
|
8942
|
+
asU32(tx, eid),
|
|
8943
|
+
asU32(tx, configType),
|
|
8944
|
+
asBytes(tx, config)
|
|
8945
|
+
]
|
|
8946
|
+
});
|
|
8947
|
+
}
|
|
8451
8948
|
};
|
|
8452
8949
|
_OApp_instances = new WeakSet();
|
|
8453
|
-
|
|
8950
|
+
oappInfo_fn = async function() {
|
|
8951
|
+
if (!this.oappInfo) {
|
|
8952
|
+
this.oappInfo = await this.getOAppInfoV1();
|
|
8953
|
+
}
|
|
8954
|
+
return this.oappInfo;
|
|
8955
|
+
};
|
|
8454
8956
|
/**
|
|
8455
8957
|
* Generate the full target path for move calls
|
|
8456
8958
|
* @param name - The function name to call
|
|
8457
8959
|
* @returns The full module path for the move call
|
|
8458
8960
|
* @private
|
|
8459
8961
|
*/
|
|
8460
|
-
|
|
8962
|
+
target_fn22 = function(name, module_name = MODULE_NAME21) {
|
|
8461
8963
|
return `${this.packageId}::${module_name}::${name}`;
|
|
8462
8964
|
};
|
|
8463
8965
|
var MODULE_NAME_ENDPOINT_VIEWS = "endpoint_views";
|
|
@@ -8635,7 +9137,7 @@ var CallErrorCode = {
|
|
|
8635
9137
|
Call_EInvalidParent: 6,
|
|
8636
9138
|
Call_EUnauthorized: 7
|
|
8637
9139
|
};
|
|
8638
|
-
var _Call_instances,
|
|
9140
|
+
var _Call_instances, target_fn23;
|
|
8639
9141
|
var Call = class {
|
|
8640
9142
|
constructor(packageId, client) {
|
|
8641
9143
|
__privateAdd(this, _Call_instances);
|
|
@@ -8651,7 +9153,7 @@ var Call = class {
|
|
|
8651
9153
|
*/
|
|
8652
9154
|
newIndividualCapMoveCall(tx) {
|
|
8653
9155
|
return tx.moveCall({
|
|
8654
|
-
target: __privateMethod(this, _Call_instances,
|
|
9156
|
+
target: __privateMethod(this, _Call_instances, target_fn23).call(this, "new_individual_cap", "call_cap"),
|
|
8655
9157
|
arguments: []
|
|
8656
9158
|
});
|
|
8657
9159
|
}
|
|
@@ -8662,7 +9164,7 @@ var Call = class {
|
|
|
8662
9164
|
*/
|
|
8663
9165
|
voidMoveCall(tx) {
|
|
8664
9166
|
return tx.moveCall({
|
|
8665
|
-
target: __privateMethod(this, _Call_instances,
|
|
9167
|
+
target: __privateMethod(this, _Call_instances, target_fn23).call(this, "void"),
|
|
8666
9168
|
arguments: []
|
|
8667
9169
|
});
|
|
8668
9170
|
}
|
|
@@ -8677,7 +9179,7 @@ var Call = class {
|
|
|
8677
9179
|
*/
|
|
8678
9180
|
resultMoveCall(tx, paramType, resultType, call) {
|
|
8679
9181
|
return tx.moveCall({
|
|
8680
|
-
target: __privateMethod(this, _Call_instances,
|
|
9182
|
+
target: __privateMethod(this, _Call_instances, target_fn23).call(this, "result"),
|
|
8681
9183
|
typeArguments: [paramType, resultType],
|
|
8682
9184
|
arguments: [call]
|
|
8683
9185
|
});
|
|
@@ -8692,7 +9194,7 @@ var Call = class {
|
|
|
8692
9194
|
*/
|
|
8693
9195
|
recipientMoveCall(tx, paramType, resultType, call) {
|
|
8694
9196
|
return tx.moveCall({
|
|
8695
|
-
target: __privateMethod(this, _Call_instances,
|
|
9197
|
+
target: __privateMethod(this, _Call_instances, target_fn23).call(this, "recipient"),
|
|
8696
9198
|
typeArguments: [paramType, resultType],
|
|
8697
9199
|
arguments: [call]
|
|
8698
9200
|
});
|
|
@@ -8706,7 +9208,7 @@ var Call = class {
|
|
|
8706
9208
|
*/
|
|
8707
9209
|
callCapIdMoveCall(tx, callCap) {
|
|
8708
9210
|
return tx.moveCall({
|
|
8709
|
-
target: __privateMethod(this, _Call_instances,
|
|
9211
|
+
target: __privateMethod(this, _Call_instances, target_fn23).call(this, "id", "call_cap"),
|
|
8710
9212
|
arguments: [asObject(tx, callCap)]
|
|
8711
9213
|
});
|
|
8712
9214
|
}
|
|
@@ -8733,7 +9235,7 @@ var Call = class {
|
|
|
8733
9235
|
*/
|
|
8734
9236
|
isIndividualCapMoveCall(tx, callCap) {
|
|
8735
9237
|
return tx.moveCall({
|
|
8736
|
-
target: __privateMethod(this, _Call_instances,
|
|
9238
|
+
target: __privateMethod(this, _Call_instances, target_fn23).call(this, "is_individual", "call_cap"),
|
|
8737
9239
|
arguments: [asObject(tx, callCap)]
|
|
8738
9240
|
});
|
|
8739
9241
|
}
|
|
@@ -8759,7 +9261,7 @@ var Call = class {
|
|
|
8759
9261
|
*/
|
|
8760
9262
|
isPackageCapMoveCall(tx, callCap) {
|
|
8761
9263
|
return tx.moveCall({
|
|
8762
|
-
target: __privateMethod(this, _Call_instances,
|
|
9264
|
+
target: __privateMethod(this, _Call_instances, target_fn23).call(this, "is_package", "call_cap"),
|
|
8763
9265
|
arguments: [asObject(tx, callCap)]
|
|
8764
9266
|
});
|
|
8765
9267
|
}
|
|
@@ -8786,7 +9288,7 @@ var Call = class {
|
|
|
8786
9288
|
*/
|
|
8787
9289
|
packageAddressMoveCall(tx, callCap) {
|
|
8788
9290
|
return tx.moveCall({
|
|
8789
|
-
target: __privateMethod(this, _Call_instances,
|
|
9291
|
+
target: __privateMethod(this, _Call_instances, target_fn23).call(this, "package_address", "call_cap"),
|
|
8790
9292
|
arguments: [asObject(tx, callCap)]
|
|
8791
9293
|
});
|
|
8792
9294
|
}
|
|
@@ -8821,7 +9323,7 @@ _Call_instances = new WeakSet();
|
|
|
8821
9323
|
* @returns The full module path for the move call
|
|
8822
9324
|
* @private
|
|
8823
9325
|
*/
|
|
8824
|
-
|
|
9326
|
+
target_fn23 = function(name, module_name = DEFAULT_MODULE_NAME) {
|
|
8825
9327
|
return `${this.packageId}::${module_name}::${name}`;
|
|
8826
9328
|
};
|
|
8827
9329
|
|
|
@@ -8834,7 +9336,7 @@ var UtilsErrorCode = {
|
|
|
8834
9336
|
// Utils related errors (with Utils_ prefix)
|
|
8835
9337
|
Utils_EInvalidLength: 1
|
|
8836
9338
|
};
|
|
8837
|
-
var _Utils_instances,
|
|
9339
|
+
var _Utils_instances, target_fn24, destroyZeroCoin_fn, fetchSufficientCoins_fn;
|
|
8838
9340
|
var Utils = class {
|
|
8839
9341
|
constructor(packageId, client) {
|
|
8840
9342
|
__privateAdd(this, _Utils_instances);
|
|
@@ -8850,7 +9352,7 @@ var Utils = class {
|
|
|
8850
9352
|
*/
|
|
8851
9353
|
fromBytesMoveCall(tx, peer) {
|
|
8852
9354
|
return tx.moveCall({
|
|
8853
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9355
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "from_bytes"),
|
|
8854
9356
|
arguments: [asBytes(tx, peer)]
|
|
8855
9357
|
});
|
|
8856
9358
|
}
|
|
@@ -8862,7 +9364,7 @@ var Utils = class {
|
|
|
8862
9364
|
*/
|
|
8863
9365
|
fromBytesLeftPaddedMoveCall(tx, bytes) {
|
|
8864
9366
|
return tx.moveCall({
|
|
8865
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9367
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "from_bytes_left_padded"),
|
|
8866
9368
|
arguments: [asBytes(tx, bytes)]
|
|
8867
9369
|
});
|
|
8868
9370
|
}
|
|
@@ -8874,7 +9376,7 @@ var Utils = class {
|
|
|
8874
9376
|
*/
|
|
8875
9377
|
fromBytesRightPaddedMoveCall(tx, bytes) {
|
|
8876
9378
|
return tx.moveCall({
|
|
8877
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9379
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "from_bytes_right_padded"),
|
|
8878
9380
|
arguments: [asBytes(tx, bytes)]
|
|
8879
9381
|
});
|
|
8880
9382
|
}
|
|
@@ -8886,7 +9388,7 @@ var Utils = class {
|
|
|
8886
9388
|
*/
|
|
8887
9389
|
fromAddressMoveCall(tx, address) {
|
|
8888
9390
|
return tx.moveCall({
|
|
8889
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9391
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "from_address"),
|
|
8890
9392
|
arguments: [asAddress(tx, address)]
|
|
8891
9393
|
});
|
|
8892
9394
|
}
|
|
@@ -8898,7 +9400,7 @@ var Utils = class {
|
|
|
8898
9400
|
*/
|
|
8899
9401
|
fromIdMoveCall(tx, id) {
|
|
8900
9402
|
return tx.moveCall({
|
|
8901
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9403
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "from_id"),
|
|
8902
9404
|
arguments: [asObject(tx, id)]
|
|
8903
9405
|
});
|
|
8904
9406
|
}
|
|
@@ -8909,7 +9411,7 @@ var Utils = class {
|
|
|
8909
9411
|
*/
|
|
8910
9412
|
zeroBytes32MoveCall(tx) {
|
|
8911
9413
|
return tx.moveCall({
|
|
8912
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9414
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "zero_bytes32")
|
|
8913
9415
|
});
|
|
8914
9416
|
}
|
|
8915
9417
|
/**
|
|
@@ -8919,7 +9421,7 @@ var Utils = class {
|
|
|
8919
9421
|
*/
|
|
8920
9422
|
ffBytes32MoveCall(tx) {
|
|
8921
9423
|
return tx.moveCall({
|
|
8922
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9424
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "ff_bytes32")
|
|
8923
9425
|
});
|
|
8924
9426
|
}
|
|
8925
9427
|
/**
|
|
@@ -8930,7 +9432,7 @@ var Utils = class {
|
|
|
8930
9432
|
*/
|
|
8931
9433
|
isZeroMoveCall(tx, bytes32) {
|
|
8932
9434
|
return tx.moveCall({
|
|
8933
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9435
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "is_zero"),
|
|
8934
9436
|
arguments: [bytes32]
|
|
8935
9437
|
});
|
|
8936
9438
|
}
|
|
@@ -8942,7 +9444,7 @@ var Utils = class {
|
|
|
8942
9444
|
*/
|
|
8943
9445
|
isFfMoveCall(tx, bytes32) {
|
|
8944
9446
|
return tx.moveCall({
|
|
8945
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9447
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "is_ff"),
|
|
8946
9448
|
arguments: [bytes32]
|
|
8947
9449
|
});
|
|
8948
9450
|
}
|
|
@@ -8954,7 +9456,7 @@ var Utils = class {
|
|
|
8954
9456
|
*/
|
|
8955
9457
|
toBytesMoveCall(tx, bytes32) {
|
|
8956
9458
|
return tx.moveCall({
|
|
8957
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9459
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "to_bytes"),
|
|
8958
9460
|
arguments: [bytes32]
|
|
8959
9461
|
});
|
|
8960
9462
|
}
|
|
@@ -8966,7 +9468,7 @@ var Utils = class {
|
|
|
8966
9468
|
*/
|
|
8967
9469
|
toAddressMoveCall(tx, bytes32) {
|
|
8968
9470
|
return tx.moveCall({
|
|
8969
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9471
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "to_address"),
|
|
8970
9472
|
arguments: [bytes32]
|
|
8971
9473
|
});
|
|
8972
9474
|
}
|
|
@@ -8978,7 +9480,7 @@ var Utils = class {
|
|
|
8978
9480
|
*/
|
|
8979
9481
|
toIdMoveCall(tx, bytes32) {
|
|
8980
9482
|
return tx.moveCall({
|
|
8981
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9483
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "to_id"),
|
|
8982
9484
|
arguments: [bytes32]
|
|
8983
9485
|
});
|
|
8984
9486
|
}
|
|
@@ -8991,7 +9493,7 @@ var Utils = class {
|
|
|
8991
9493
|
*/
|
|
8992
9494
|
newReaderMoveCall(tx, buffer) {
|
|
8993
9495
|
return tx.moveCall({
|
|
8994
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9496
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "create", BUFFER_READER_MODULE_NAME),
|
|
8995
9497
|
arguments: [asBytes(tx, buffer)]
|
|
8996
9498
|
});
|
|
8997
9499
|
}
|
|
@@ -9003,7 +9505,7 @@ var Utils = class {
|
|
|
9003
9505
|
*/
|
|
9004
9506
|
positionMoveCall(tx, reader) {
|
|
9005
9507
|
return tx.moveCall({
|
|
9006
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9508
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "position", BUFFER_READER_MODULE_NAME),
|
|
9007
9509
|
arguments: [reader]
|
|
9008
9510
|
});
|
|
9009
9511
|
}
|
|
@@ -9015,7 +9517,7 @@ var Utils = class {
|
|
|
9015
9517
|
*/
|
|
9016
9518
|
remainingLengthMoveCall(tx, reader) {
|
|
9017
9519
|
return tx.moveCall({
|
|
9018
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9520
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "remaining_length", BUFFER_READER_MODULE_NAME),
|
|
9019
9521
|
arguments: [reader]
|
|
9020
9522
|
});
|
|
9021
9523
|
}
|
|
@@ -9028,7 +9530,7 @@ var Utils = class {
|
|
|
9028
9530
|
*/
|
|
9029
9531
|
skipMoveCall(tx, reader, len) {
|
|
9030
9532
|
return tx.moveCall({
|
|
9031
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9533
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "skip", BUFFER_READER_MODULE_NAME),
|
|
9032
9534
|
arguments: [reader, asU64(tx, len)]
|
|
9033
9535
|
});
|
|
9034
9536
|
}
|
|
@@ -9041,7 +9543,7 @@ var Utils = class {
|
|
|
9041
9543
|
*/
|
|
9042
9544
|
setPositionMoveCall(tx, reader, position) {
|
|
9043
9545
|
return tx.moveCall({
|
|
9044
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9546
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "set_position", BUFFER_READER_MODULE_NAME),
|
|
9045
9547
|
arguments: [reader, asU64(tx, position)]
|
|
9046
9548
|
});
|
|
9047
9549
|
}
|
|
@@ -9054,7 +9556,7 @@ var Utils = class {
|
|
|
9054
9556
|
*/
|
|
9055
9557
|
rewindMoveCall(tx, reader, len) {
|
|
9056
9558
|
return tx.moveCall({
|
|
9057
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9559
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "rewind", BUFFER_READER_MODULE_NAME),
|
|
9058
9560
|
arguments: [reader, asU64(tx, len)]
|
|
9059
9561
|
});
|
|
9060
9562
|
}
|
|
@@ -9066,7 +9568,7 @@ var Utils = class {
|
|
|
9066
9568
|
*/
|
|
9067
9569
|
readBoolMoveCall(tx, reader) {
|
|
9068
9570
|
return tx.moveCall({
|
|
9069
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9571
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_bool", BUFFER_READER_MODULE_NAME),
|
|
9070
9572
|
arguments: [reader]
|
|
9071
9573
|
});
|
|
9072
9574
|
}
|
|
@@ -9078,7 +9580,7 @@ var Utils = class {
|
|
|
9078
9580
|
*/
|
|
9079
9581
|
readU8MoveCall(tx, reader) {
|
|
9080
9582
|
return tx.moveCall({
|
|
9081
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9583
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u8", BUFFER_READER_MODULE_NAME),
|
|
9082
9584
|
arguments: [reader]
|
|
9083
9585
|
});
|
|
9084
9586
|
}
|
|
@@ -9090,7 +9592,7 @@ var Utils = class {
|
|
|
9090
9592
|
*/
|
|
9091
9593
|
readU16MoveCall(tx, reader) {
|
|
9092
9594
|
return tx.moveCall({
|
|
9093
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9595
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u16", BUFFER_READER_MODULE_NAME),
|
|
9094
9596
|
arguments: [reader]
|
|
9095
9597
|
});
|
|
9096
9598
|
}
|
|
@@ -9102,7 +9604,7 @@ var Utils = class {
|
|
|
9102
9604
|
*/
|
|
9103
9605
|
readU32MoveCall(tx, reader) {
|
|
9104
9606
|
return tx.moveCall({
|
|
9105
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9607
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u32", BUFFER_READER_MODULE_NAME),
|
|
9106
9608
|
arguments: [reader]
|
|
9107
9609
|
});
|
|
9108
9610
|
}
|
|
@@ -9114,7 +9616,7 @@ var Utils = class {
|
|
|
9114
9616
|
*/
|
|
9115
9617
|
readU64MoveCall(tx, reader) {
|
|
9116
9618
|
return tx.moveCall({
|
|
9117
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9619
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u64", BUFFER_READER_MODULE_NAME),
|
|
9118
9620
|
arguments: [reader]
|
|
9119
9621
|
});
|
|
9120
9622
|
}
|
|
@@ -9126,7 +9628,7 @@ var Utils = class {
|
|
|
9126
9628
|
*/
|
|
9127
9629
|
readU128MoveCall(tx, reader) {
|
|
9128
9630
|
return tx.moveCall({
|
|
9129
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9631
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u128", BUFFER_READER_MODULE_NAME),
|
|
9130
9632
|
arguments: [reader]
|
|
9131
9633
|
});
|
|
9132
9634
|
}
|
|
@@ -9138,7 +9640,7 @@ var Utils = class {
|
|
|
9138
9640
|
*/
|
|
9139
9641
|
readU256MoveCall(tx, reader) {
|
|
9140
9642
|
return tx.moveCall({
|
|
9141
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9643
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u256", BUFFER_READER_MODULE_NAME),
|
|
9142
9644
|
arguments: [reader]
|
|
9143
9645
|
});
|
|
9144
9646
|
}
|
|
@@ -9150,7 +9652,7 @@ var Utils = class {
|
|
|
9150
9652
|
*/
|
|
9151
9653
|
readBytes32MoveCall(tx, reader) {
|
|
9152
9654
|
return tx.moveCall({
|
|
9153
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9655
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_bytes32", BUFFER_READER_MODULE_NAME),
|
|
9154
9656
|
arguments: [reader]
|
|
9155
9657
|
});
|
|
9156
9658
|
}
|
|
@@ -9162,7 +9664,7 @@ var Utils = class {
|
|
|
9162
9664
|
*/
|
|
9163
9665
|
readAddressMoveCall(tx, reader) {
|
|
9164
9666
|
return tx.moveCall({
|
|
9165
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9667
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_address", BUFFER_READER_MODULE_NAME),
|
|
9166
9668
|
arguments: [reader]
|
|
9167
9669
|
});
|
|
9168
9670
|
}
|
|
@@ -9175,7 +9677,7 @@ var Utils = class {
|
|
|
9175
9677
|
*/
|
|
9176
9678
|
readFixedLenBytesMoveCall(tx, reader, len) {
|
|
9177
9679
|
return tx.moveCall({
|
|
9178
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9680
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_fixed_len_bytes", BUFFER_READER_MODULE_NAME),
|
|
9179
9681
|
arguments: [reader, asU64(tx, len)]
|
|
9180
9682
|
});
|
|
9181
9683
|
}
|
|
@@ -9187,7 +9689,7 @@ var Utils = class {
|
|
|
9187
9689
|
*/
|
|
9188
9690
|
readBytesUntilEndMoveCall(tx, reader) {
|
|
9189
9691
|
return tx.moveCall({
|
|
9190
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9692
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_bytes_until_end", BUFFER_READER_MODULE_NAME),
|
|
9191
9693
|
arguments: [reader]
|
|
9192
9694
|
});
|
|
9193
9695
|
}
|
|
@@ -9199,7 +9701,7 @@ var Utils = class {
|
|
|
9199
9701
|
*/
|
|
9200
9702
|
readerBufferLengthMoveCall(tx, reader) {
|
|
9201
9703
|
return tx.moveCall({
|
|
9202
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9704
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "length", BUFFER_READER_MODULE_NAME),
|
|
9203
9705
|
arguments: [reader]
|
|
9204
9706
|
});
|
|
9205
9707
|
}
|
|
@@ -9211,7 +9713,7 @@ var Utils = class {
|
|
|
9211
9713
|
*/
|
|
9212
9714
|
readerToBytesMoveCall(tx, reader) {
|
|
9213
9715
|
return tx.moveCall({
|
|
9214
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9716
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "to_bytes", BUFFER_READER_MODULE_NAME),
|
|
9215
9717
|
arguments: [reader]
|
|
9216
9718
|
});
|
|
9217
9719
|
}
|
|
@@ -9223,7 +9725,7 @@ var Utils = class {
|
|
|
9223
9725
|
*/
|
|
9224
9726
|
newWriterMoveCall(tx) {
|
|
9225
9727
|
return tx.moveCall({
|
|
9226
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9728
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "new", BUFFER_WRITER_MODULE_NAME)
|
|
9227
9729
|
});
|
|
9228
9730
|
}
|
|
9229
9731
|
/**
|
|
@@ -9234,7 +9736,7 @@ var Utils = class {
|
|
|
9234
9736
|
*/
|
|
9235
9737
|
createWriterMoveCall(tx, buffer) {
|
|
9236
9738
|
return tx.moveCall({
|
|
9237
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9739
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "create", BUFFER_WRITER_MODULE_NAME),
|
|
9238
9740
|
arguments: [asBytes(tx, buffer)]
|
|
9239
9741
|
});
|
|
9240
9742
|
}
|
|
@@ -9246,7 +9748,7 @@ var Utils = class {
|
|
|
9246
9748
|
*/
|
|
9247
9749
|
writerBufferLengthMoveCall(tx, writer) {
|
|
9248
9750
|
return tx.moveCall({
|
|
9249
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9751
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "length", BUFFER_WRITER_MODULE_NAME),
|
|
9250
9752
|
arguments: [writer]
|
|
9251
9753
|
});
|
|
9252
9754
|
}
|
|
@@ -9258,7 +9760,7 @@ var Utils = class {
|
|
|
9258
9760
|
*/
|
|
9259
9761
|
writerToBytesMoveCall(tx, writer) {
|
|
9260
9762
|
return tx.moveCall({
|
|
9261
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9763
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "to_bytes", BUFFER_WRITER_MODULE_NAME),
|
|
9262
9764
|
arguments: [writer]
|
|
9263
9765
|
});
|
|
9264
9766
|
}
|
|
@@ -9271,7 +9773,7 @@ var Utils = class {
|
|
|
9271
9773
|
*/
|
|
9272
9774
|
writeBoolMoveCall(tx, writer, value) {
|
|
9273
9775
|
return tx.moveCall({
|
|
9274
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9776
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_bool", BUFFER_WRITER_MODULE_NAME),
|
|
9275
9777
|
arguments: [writer, asBool(tx, value)]
|
|
9276
9778
|
});
|
|
9277
9779
|
}
|
|
@@ -9284,7 +9786,7 @@ var Utils = class {
|
|
|
9284
9786
|
*/
|
|
9285
9787
|
writeU8MoveCall(tx, writer, value) {
|
|
9286
9788
|
return tx.moveCall({
|
|
9287
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9789
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u8", BUFFER_WRITER_MODULE_NAME),
|
|
9288
9790
|
arguments: [writer, asU8(tx, value)]
|
|
9289
9791
|
});
|
|
9290
9792
|
}
|
|
@@ -9297,7 +9799,7 @@ var Utils = class {
|
|
|
9297
9799
|
*/
|
|
9298
9800
|
writeU16MoveCall(tx, writer, value) {
|
|
9299
9801
|
return tx.moveCall({
|
|
9300
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9802
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u16", BUFFER_WRITER_MODULE_NAME),
|
|
9301
9803
|
arguments: [writer, asU16(tx, value)]
|
|
9302
9804
|
});
|
|
9303
9805
|
}
|
|
@@ -9310,7 +9812,7 @@ var Utils = class {
|
|
|
9310
9812
|
*/
|
|
9311
9813
|
writeU32MoveCall(tx, writer, value) {
|
|
9312
9814
|
return tx.moveCall({
|
|
9313
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9815
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u32", BUFFER_WRITER_MODULE_NAME),
|
|
9314
9816
|
arguments: [writer, asU32(tx, value)]
|
|
9315
9817
|
});
|
|
9316
9818
|
}
|
|
@@ -9323,7 +9825,7 @@ var Utils = class {
|
|
|
9323
9825
|
*/
|
|
9324
9826
|
writeU64MoveCall(tx, writer, value) {
|
|
9325
9827
|
return tx.moveCall({
|
|
9326
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9828
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u64", BUFFER_WRITER_MODULE_NAME),
|
|
9327
9829
|
arguments: [writer, asU64(tx, value)]
|
|
9328
9830
|
});
|
|
9329
9831
|
}
|
|
@@ -9336,7 +9838,7 @@ var Utils = class {
|
|
|
9336
9838
|
*/
|
|
9337
9839
|
writeU128MoveCall(tx, writer, value) {
|
|
9338
9840
|
return tx.moveCall({
|
|
9339
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9841
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u128", BUFFER_WRITER_MODULE_NAME),
|
|
9340
9842
|
arguments: [writer, asU128(tx, value)]
|
|
9341
9843
|
});
|
|
9342
9844
|
}
|
|
@@ -9349,7 +9851,7 @@ var Utils = class {
|
|
|
9349
9851
|
*/
|
|
9350
9852
|
writeU256MoveCall(tx, writer, value) {
|
|
9351
9853
|
return tx.moveCall({
|
|
9352
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9854
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u256", BUFFER_WRITER_MODULE_NAME),
|
|
9353
9855
|
arguments: [writer, asU256(tx, value)]
|
|
9354
9856
|
});
|
|
9355
9857
|
}
|
|
@@ -9362,7 +9864,7 @@ var Utils = class {
|
|
|
9362
9864
|
*/
|
|
9363
9865
|
writeBytesMoveCall(tx, writer, bytes) {
|
|
9364
9866
|
return tx.moveCall({
|
|
9365
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9867
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_bytes", BUFFER_WRITER_MODULE_NAME),
|
|
9366
9868
|
arguments: [writer, asBytes(tx, bytes)]
|
|
9367
9869
|
});
|
|
9368
9870
|
}
|
|
@@ -9375,7 +9877,7 @@ var Utils = class {
|
|
|
9375
9877
|
*/
|
|
9376
9878
|
writeAddressMoveCall(tx, writer, address) {
|
|
9377
9879
|
return tx.moveCall({
|
|
9378
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9880
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_address", BUFFER_WRITER_MODULE_NAME),
|
|
9379
9881
|
arguments: [writer, asAddress(tx, address)]
|
|
9380
9882
|
});
|
|
9381
9883
|
}
|
|
@@ -9388,7 +9890,7 @@ var Utils = class {
|
|
|
9388
9890
|
*/
|
|
9389
9891
|
writeBytes32MoveCall(tx, writer, bytes32) {
|
|
9390
9892
|
return tx.moveCall({
|
|
9391
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9893
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_bytes32", BUFFER_WRITER_MODULE_NAME),
|
|
9392
9894
|
arguments: [writer, asBytes32(tx, bytes32, this)]
|
|
9393
9895
|
});
|
|
9394
9896
|
}
|
|
@@ -9401,7 +9903,7 @@ var Utils = class {
|
|
|
9401
9903
|
*/
|
|
9402
9904
|
originalPackageOfTypeMoveCall(tx, typeArgument) {
|
|
9403
9905
|
return tx.moveCall({
|
|
9404
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9906
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "original_package_of_type", PACKAGE_MODULE_NAME),
|
|
9405
9907
|
typeArguments: [typeArgument]
|
|
9406
9908
|
});
|
|
9407
9909
|
}
|
|
@@ -9413,7 +9915,7 @@ var Utils = class {
|
|
|
9413
9915
|
*/
|
|
9414
9916
|
packageOfTypeMoveCall(tx, typeArgument) {
|
|
9415
9917
|
return tx.moveCall({
|
|
9416
|
-
target: __privateMethod(this, _Utils_instances,
|
|
9918
|
+
target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "package_of_type", PACKAGE_MODULE_NAME),
|
|
9417
9919
|
typeArguments: [typeArgument]
|
|
9418
9920
|
});
|
|
9419
9921
|
}
|
|
@@ -9514,7 +10016,7 @@ _Utils_instances = new WeakSet();
|
|
|
9514
10016
|
* @returns The full module path for the move call
|
|
9515
10017
|
* @private
|
|
9516
10018
|
*/
|
|
9517
|
-
|
|
10019
|
+
target_fn24 = function(name, module_name = BYTES32_MODULE_NAME) {
|
|
9518
10020
|
return `${this.packageId}::${module_name}::${name}`;
|
|
9519
10021
|
};
|
|
9520
10022
|
/**
|
|
@@ -9730,8 +10232,7 @@ var ModuleManager = class {
|
|
|
9730
10232
|
["call" /* Call */]: new Call(packages.call, client),
|
|
9731
10233
|
["treasury" /* Treasury */]: new Treasury(packages.treasury, client, objects, this),
|
|
9732
10234
|
["layerZeroViews" /* LayerZeroViews */]: new LayerZeroViews(packages.layerzeroViews, client, objects, this),
|
|
9733
|
-
["ptbBuilder" /* PtbBuilder */]: new PtbBuilder(packages.ptbMoveCall, client)
|
|
9734
|
-
["oapp" /* Oapp */]: new OApp(packages.oapp, client, objects, this)
|
|
10235
|
+
["ptbBuilder" /* PtbBuilder */]: new PtbBuilder(packages.ptbMoveCall, client)
|
|
9735
10236
|
});
|
|
9736
10237
|
}
|
|
9737
10238
|
// === Core Module Getters ===
|
|
@@ -9765,8 +10266,12 @@ var ModuleManager = class {
|
|
|
9765
10266
|
getPtbBuilder() {
|
|
9766
10267
|
return this.getModule("ptbBuilder" /* PtbBuilder */);
|
|
9767
10268
|
}
|
|
9768
|
-
getOApp() {
|
|
9769
|
-
return this.
|
|
10269
|
+
getOApp(client, callCapId, options) {
|
|
10270
|
+
return this.getOrCreateModule("oapp" /* Oapp */ + callCapId, options, () => {
|
|
10271
|
+
const packageId = options?.packageId ?? this.packages.oapp;
|
|
10272
|
+
const objects = this.mergeObjectsOptions(options);
|
|
10273
|
+
return new OApp(packageId, callCapId, client, objects, this);
|
|
10274
|
+
});
|
|
9770
10275
|
}
|
|
9771
10276
|
// === Non-core Module Getters (created on-demand with caching) ===
|
|
9772
10277
|
getCounter(client, options) {
|
|
@@ -9872,6 +10377,13 @@ var ModuleManager = class {
|
|
|
9872
10377
|
return new BlockedMessageLibPtbBuilder(packageId, client, objects, this);
|
|
9873
10378
|
});
|
|
9874
10379
|
}
|
|
10380
|
+
getWorkerRegistry(client, options) {
|
|
10381
|
+
return this.getOrCreateModule("workerRegistry" /* WorkerRegistry */, options, () => {
|
|
10382
|
+
const packageId = options?.packageId ?? this.packages.workerRegistry;
|
|
10383
|
+
const objects = this.mergeObjectsOptions(options);
|
|
10384
|
+
return new WorkerRegistry(packageId, client, objects, this);
|
|
10385
|
+
});
|
|
10386
|
+
}
|
|
9875
10387
|
// === Private Utility Methods ===
|
|
9876
10388
|
/**
|
|
9877
10389
|
* Merge objects configuration with options, avoiding unnecessary object spreading
|
|
@@ -9896,37 +10408,37 @@ var PACKAGE_ENDPOINT_V2_ADDRESS = {
|
|
|
9896
10408
|
var PACKAGE_COUNTER_V2_ADDRESS = {
|
|
9897
10409
|
[Stage.MAINNET]: "0xfe1e336fdb42fa5ef85ab9a9c932b58c43e0bb58273cecea9d00cb5d05159914",
|
|
9898
10410
|
[Stage.TESTNET]: "0xa6a19e84c7df2014e384cdd56f5674e5a0c06b92cc5d33fca89633680a9ebcd7",
|
|
9899
|
-
[Stage.SANDBOX]: "
|
|
10411
|
+
[Stage.SANDBOX]: "0x03bb39118fd4ab6fce5fe4905c65eb464c1b7bb42616ac44ba7b63237fd359e1"
|
|
9900
10412
|
};
|
|
9901
10413
|
var PACKAGE_SIMPLE_MESSAGE_LIB_ADDRESS = {
|
|
9902
10414
|
[Stage.MAINNET]: "0x83651370065f70112b20007137c7235a2a243055d9f59cb5e162c00c4a1680a7",
|
|
9903
10415
|
[Stage.TESTNET]: "0xd1fbc2529b4c581c5105031b495866cece446f2123319f6d82a76151b999717e",
|
|
9904
|
-
[Stage.SANDBOX]: "
|
|
10416
|
+
[Stage.SANDBOX]: "0xf94d5251498735754cbdca2c0468a462e280de2264809c679296de0122482ba1"
|
|
9905
10417
|
};
|
|
9906
10418
|
var PACKAGE_ULN_302_ADDRESS = {
|
|
9907
10419
|
[Stage.MAINNET]: "0xd73c9d588717c32fa327335d9beaf59b983b808577a382e013d8c7161a323d8e",
|
|
9908
10420
|
[Stage.TESTNET]: "0x556bd8fba10ba9e8be88a3ed54b8cbeb8b512b95e5c107cde7d7b10b754069c2",
|
|
9909
|
-
[Stage.SANDBOX]: "
|
|
10421
|
+
[Stage.SANDBOX]: "0x25fe851c70c5ad882eac45e7bb8f73445ea3e278a2ce858100b9f85ce98ead73"
|
|
9910
10422
|
};
|
|
9911
10423
|
var PACKAGE_ULN_302_PTB_BUILDER_ADDRESS = {
|
|
9912
10424
|
[Stage.MAINNET]: "0x67b3a43a3aa962e1a6012b04f68e6f358803f5970858f4de22684d6d13fcd747",
|
|
9913
10425
|
[Stage.TESTNET]: "0x71a23cdd1cb88b52a40cd2862c4ca607bd27e0f02f136e18f95351050fec9a89",
|
|
9914
|
-
[Stage.SANDBOX]: "
|
|
10426
|
+
[Stage.SANDBOX]: "0x495eda5d0217a2b0ea75526b6fa4e426f8f6573c8bd03abca6e488795f17bc1b"
|
|
9915
10427
|
};
|
|
9916
10428
|
var PACKAGE_DVN_PTB_BUILDER_ADDRESS = {
|
|
9917
10429
|
[Stage.MAINNET]: "0xb3f3a6d39a441a0f41a621d27427cedf624d500b3da5cd7051bc5835b21ac3ba",
|
|
9918
10430
|
[Stage.TESTNET]: "0xe7723903288eb1a38fb7166edce4307dfce985c7a9771af579f4f3d003dda2ec",
|
|
9919
|
-
[Stage.SANDBOX]: "
|
|
10431
|
+
[Stage.SANDBOX]: "0xccd0536e9ecd58feda2497cdfa8c5a535d13782b125dc3345fa2d61ffd2a514d"
|
|
9920
10432
|
};
|
|
9921
10433
|
var PACKAGE_EXECUTOR_PTB_BUILDER_ADDRESS = {
|
|
9922
10434
|
[Stage.MAINNET]: "0x9d26806bb023ccd5b79d8ad50bf503e0e91c07b5bbfeb5b20a79e073571a5196",
|
|
9923
10435
|
[Stage.TESTNET]: "0xafed5368176963fa0474724a019e4fae6643d31c06b653fa1364b2282d5049dd",
|
|
9924
|
-
[Stage.SANDBOX]: "
|
|
10436
|
+
[Stage.SANDBOX]: "0x95cb0c629555b19839bb028868e4a8d78d9649b04e975fc9526325120609d84b"
|
|
9925
10437
|
};
|
|
9926
10438
|
var PACKAGE_EXECUTOR_ADDRESS = {
|
|
9927
10439
|
[Stage.MAINNET]: "0x749420cc42b47d3db83fe316eb8accd8126bed9a779c0b7e06fa084c7fa1d76d",
|
|
9928
10440
|
[Stage.TESTNET]: "0x5bcded2dfa21094d5ffdd6256a2a73984e901201e84a6783aa8233b187ffdb51",
|
|
9929
|
-
[Stage.SANDBOX]: "
|
|
10441
|
+
[Stage.SANDBOX]: "0x11be423b43baf779cd8797d5a173d57b3d4c0a575690e0602b9dc21c6e9fb910"
|
|
9930
10442
|
};
|
|
9931
10443
|
var PACKAGE_ZRO_ADDRESS = {
|
|
9932
10444
|
[Stage.MAINNET]: "0xcdf19828a455468c4e4ffbd74ad641dddb58b49cd7d043da4cfa12f76c599d0a",
|
|
@@ -9941,77 +10453,87 @@ var PACKAGE_CALL_ADDRESS = {
|
|
|
9941
10453
|
var PACKAGE_ENDPOINT_PTB_BUILDER_ADDRESS = {
|
|
9942
10454
|
[Stage.MAINNET]: "0x387af0542c79874a52c3e8812390c0fd02a8e947ce54aea8d80481ac2b5b3acb",
|
|
9943
10455
|
[Stage.TESTNET]: "0xe0a904685954e5dc73a720f6dd29c8b5a22d2d4ca0864536b7befaf4cec44676",
|
|
9944
|
-
[Stage.SANDBOX]: "
|
|
10456
|
+
[Stage.SANDBOX]: "0x70de4b2f246f3fcb3ca10c25b5e0c47f76743eaf70c5ab1ab0702e9259d55079"
|
|
9945
10457
|
};
|
|
9946
10458
|
var PACKAGE_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS = {
|
|
9947
10459
|
[Stage.MAINNET]: "0xba557037446a5b114205c868db114957945dd21df9770796fea2b558fc4a20fd",
|
|
9948
10460
|
[Stage.TESTNET]: "0x4badf1bba6f630905bc413b89f1c22669593b0e7aea60012a14fd42f44e2a7fe",
|
|
9949
|
-
[Stage.SANDBOX]: "
|
|
10461
|
+
[Stage.SANDBOX]: "0x264f6017d64797b74e1000ff3a9c6d408d0db7841c5b625eee845ecf3ef182fb"
|
|
9950
10462
|
};
|
|
9951
10463
|
var PACKAGE_PTB_MOVE_CALL_ADDRESS = {
|
|
9952
10464
|
[Stage.MAINNET]: "0x0dd38c96b282271279247c26dba1f51d6e45209396a9e548154881e04549db66",
|
|
9953
10465
|
[Stage.TESTNET]: "0x8bdf374fe8576f28d71eecd219601cebafa38e2c79387eea92e2f27a71359197",
|
|
9954
|
-
[Stage.SANDBOX]: "
|
|
10466
|
+
[Stage.SANDBOX]: "0xb6b876f3bf08afd1c3d1278eece29184a42a0ed0e6bcbfd245773f047da60fce"
|
|
9955
10467
|
};
|
|
9956
10468
|
var PACKAGE_DVN_ADDRESS = {
|
|
9957
10469
|
[Stage.MAINNET]: "0x6810f5568936a9a2b5fcb043f59a3cbf681e06f0db61c90bf3ff5530d4f470c0",
|
|
9958
10470
|
[Stage.TESTNET]: "0x7c04479b475305685ad24fd3e91437aa3f6e0df95d1417fad1b4640d8363be9b",
|
|
9959
|
-
[Stage.SANDBOX]: "
|
|
10471
|
+
[Stage.SANDBOX]: "0xfd7eb85864e2bbb92d7c0b647febc4cef621ad68767ca6a29184ffadae9af66f"
|
|
9960
10472
|
};
|
|
9961
10473
|
var PACKAGE_DVN_FEE_LIB_ADDRESS = {
|
|
9962
10474
|
[Stage.MAINNET]: "0xb94f476ccd37034f4f5fb9c541320b85f86e61ae7f654fa66f3b987e8fb3f825",
|
|
9963
10475
|
[Stage.TESTNET]: "0x7f6a8ca6e6f136605be10b502d4e03fda2ee9983f57c10c6199a63744977d951",
|
|
9964
|
-
[Stage.SANDBOX]: "
|
|
10476
|
+
[Stage.SANDBOX]: "0x23c6868a1e69fe7a968f11d5af5cefe6c72a44285ad8493992d706b16d669dc2"
|
|
9965
10477
|
};
|
|
9966
10478
|
var PACKAGE_EXECUTOR_FEE_LIB_ADDRESS = {
|
|
9967
10479
|
[Stage.MAINNET]: "0x4cdd97cf2dee8387b004915c293d0565577e0194fff4894e604a09db54ac62c7",
|
|
9968
10480
|
[Stage.TESTNET]: "0x36a441e73ed70e9fc900d021381a3d833c8b15305b7a116dbd7a2d1a156432e1",
|
|
9969
|
-
[Stage.SANDBOX]: "
|
|
10481
|
+
[Stage.SANDBOX]: "0x16af1b65c0af5533ad82973fdc3b2caeec16123e2154f08ab3c96f03c8bae327"
|
|
9970
10482
|
};
|
|
9971
10483
|
var PACKAGE_PRICE_FEED_ADDRESS = {
|
|
9972
10484
|
[Stage.MAINNET]: "0x9f12f79a355fca76492bc1908fc7a9a8518d2a83e65cffc93f134144dfa4e5bb",
|
|
9973
10485
|
[Stage.TESTNET]: "0x703efe3215e8249a490b4889d20bff10f09838d200835d53d056bbf30a80fe37",
|
|
9974
|
-
[Stage.SANDBOX]: "
|
|
10486
|
+
[Stage.SANDBOX]: "0x2dde456fdbdf2a72232388de4872dda51b2bb070ae3b0ffe64d42cfae39ad31f"
|
|
9975
10487
|
};
|
|
9976
10488
|
var PACKAGE_TREASURY_ADDRESS = {
|
|
9977
10489
|
[Stage.MAINNET]: "0xcb8bc76ad2dde43cb83fe4f27a702df0874e99c047317251ee878893c17c83c5",
|
|
9978
10490
|
[Stage.TESTNET]: "0x5589cb216e702c9d18c8864b75a233a8f8b4591156fff871c129519e95d5aa3e",
|
|
9979
|
-
[Stage.SANDBOX]: "
|
|
10491
|
+
[Stage.SANDBOX]: "0xdbb6f0479e33f8f32e9e4b4f6bde0dc1d8cad6789789aa78276e012f41a480d4"
|
|
9980
10492
|
};
|
|
9981
10493
|
var PACKAGE_OAPP_ADDRESS = {
|
|
9982
10494
|
[Stage.MAINNET]: "0x7c93d6d8288fa0f8df5a595dcde2413b849d8c839fc59fc09243fd5bf44c96ab",
|
|
9983
10495
|
[Stage.TESTNET]: "0x50d5a0038394ddff138900335e56315b2aed79475cad3fe3737a50dc12c884d6",
|
|
9984
|
-
[Stage.SANDBOX]: "
|
|
10496
|
+
[Stage.SANDBOX]: "0x5a0546761498df269c5cf84268db3258e04f2b88a258c2c29d9964e0760715bb"
|
|
9985
10497
|
};
|
|
9986
10498
|
var PACKAGE_LAYERZERO_VIEWS_ADDRESS = {
|
|
9987
10499
|
[Stage.MAINNET]: "0x74803ac88036cbd57bf1a46347e22143a47081f7159efb01419f1ed14a17ad67",
|
|
9988
10500
|
[Stage.TESTNET]: "0xa4a72308ec518a2103f9f31435d07df740736bc03b778ca1200071805c5414da",
|
|
9989
|
-
[Stage.SANDBOX]: "
|
|
10501
|
+
[Stage.SANDBOX]: "0x0f5efe78da0d3bae509c45ef677b112f8723e2f40941fe69c0bfa6bb429548e0"
|
|
9990
10502
|
};
|
|
9991
10503
|
var PACKAGE_DVN_LAYERZERO_ADDRESS = {
|
|
9992
10504
|
[Stage.MAINNET]: "0xc3f25fb140745ca0d4cde0ec382fd76e2f20d5a76a7fd9264340b4af949fd38b",
|
|
9993
10505
|
[Stage.TESTNET]: "0x725e5c54d11578942f4b45ebdce1cc91244dae658a667c2186c277b6a5673f9c",
|
|
9994
|
-
[Stage.SANDBOX]: "
|
|
10506
|
+
[Stage.SANDBOX]: "0xcd7d12783f35486422e4cf3c56cbf46fdd26ca5e3ec0da536ea5baaceadb9adb"
|
|
9995
10507
|
};
|
|
9996
10508
|
var PACKAGE_EXECUTOR_LAYERZERO_ADDRESS = {
|
|
9997
10509
|
[Stage.MAINNET]: "0x2111256b15f5d0a20f6352084dac268c737b47c113b4da5eacb316f8a536f9bf",
|
|
9998
10510
|
[Stage.TESTNET]: "0xb8db282fff4358b67915bb76eb18bde3406e4e30a1d219c852c7ccf5a121a3ff",
|
|
9999
|
-
[Stage.SANDBOX]: "
|
|
10511
|
+
[Stage.SANDBOX]: "0xe6ee1ecfa811c75d386287dcf25308109c4f872e7680b89857b6ef8c30956391"
|
|
10000
10512
|
};
|
|
10001
10513
|
var PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS = {
|
|
10002
10514
|
[Stage.MAINNET]: "0xbdce35f2801192bb218e47bb6e9cf08e136037b271157e8db8fdc9acf0bd225e",
|
|
10003
10515
|
[Stage.TESTNET]: "0x5ad1acba7eb1b381ab3f08da17938ffa930375c0904e78ccd6e634957f6b3ef6",
|
|
10004
|
-
[Stage.SANDBOX]: "
|
|
10516
|
+
[Stage.SANDBOX]: "0x235c6c8076597311d736fb929ee322792a3da24b4348834d8add4a6204e24bfc"
|
|
10005
10517
|
};
|
|
10006
10518
|
var PACKAGE_BLOCKED_MESSAGE_LIB_ADDRESS = {
|
|
10007
10519
|
[Stage.MAINNET]: "0x9f6107b708d7650b1484ae10cb98340af343f46bd63793ea91c2379bab9a7abb",
|
|
10008
10520
|
[Stage.TESTNET]: "0xd3f0cab5eca2cfb870e5390b572e67ce1d0d96bc89d097d089914014bf581e5d",
|
|
10009
|
-
[Stage.SANDBOX]: "
|
|
10521
|
+
[Stage.SANDBOX]: "0x296cdb6f55b1c0dbc90bc161cd311e99d400cc74931d2d191d2afe1d4553e0b5"
|
|
10010
10522
|
};
|
|
10011
10523
|
var PACKAGE_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS = {
|
|
10012
10524
|
[Stage.MAINNET]: "0xd90430a0b1b5bf932586d7d52e67e2242b1276ad7944b41c21acd4f950671335",
|
|
10013
10525
|
[Stage.TESTNET]: "0xf2c5b342b99544fbd225ed45a76096f7ed6199624d2f2f4d04b76e2afb84654e",
|
|
10014
|
-
[Stage.SANDBOX]: "
|
|
10526
|
+
[Stage.SANDBOX]: "0x2159c22966983d2d804d2f4af47010cbdbc18c035ac2a4b858ffb3c87e1b0ad2"
|
|
10527
|
+
};
|
|
10528
|
+
var PACKAGE_WORKER_REGISTRY_ADDRESS = {
|
|
10529
|
+
[Stage.MAINNET]: "",
|
|
10530
|
+
[Stage.TESTNET]: "",
|
|
10531
|
+
[Stage.SANDBOX]: "0x64b860fa15369ce57c4f25e4128be18b1844df88d0ac3ca4729730bfb0160c04"
|
|
10532
|
+
};
|
|
10533
|
+
var PACKAGE_WORKER_COMMON_ADDRESS = {
|
|
10534
|
+
[Stage.MAINNET]: "0x6b29b0abf9da88be53a9ea1dfab8f600930b9ab6961eee65d67c1eecdd8cb695",
|
|
10535
|
+
[Stage.TESTNET]: "0xbd1b4591ff06b36113c28ec2f5ce10151b6a2998699e3d8364ec9f77efe950c8",
|
|
10536
|
+
[Stage.SANDBOX]: "0x8db3d8beb1a399c22e89c33e5c1161f358ba784c975d0da708fd50f793596b1b"
|
|
10015
10537
|
};
|
|
10016
10538
|
var OBJECT_ENDPOINT_V2_ADDRESS = {
|
|
10017
10539
|
[Stage.MAINNET]: "0xd84dfbd6b21f2a6e2d9ecfd8204d20a420f2528746381c2db29c2f4caae67fcd",
|
|
@@ -10021,57 +10543,57 @@ var OBJECT_ENDPOINT_V2_ADDRESS = {
|
|
|
10021
10543
|
var OBJECT_SIMPLE_MESSAGE_LIB_ADDRESS = {
|
|
10022
10544
|
[Stage.MAINNET]: "0xd18907d32aa9e95fc2eed2d02fec562442877bec8680620c05fa5b3c110ccd81",
|
|
10023
10545
|
[Stage.TESTNET]: "0xe893810a3399bf50ec4fd7affa931bcb66dbab21e37aff80b7ce73f25e78ac4f",
|
|
10024
|
-
[Stage.SANDBOX]: "
|
|
10546
|
+
[Stage.SANDBOX]: "0x864826f7adeea86fe8ea106fc84ce1fdead6ac95fc61571b23050693fb265ce0"
|
|
10025
10547
|
};
|
|
10026
10548
|
var OBJECT_SIMPLE_MESSAGE_LIB_ADMIN_CAP_ADDRESS = {
|
|
10027
10549
|
[Stage.MAINNET]: "0x617aceffed0b17cc5b5f5ad4cd1e8b9d965a9ef73a923b474e4763dec7c175f6",
|
|
10028
10550
|
[Stage.TESTNET]: "0x3115ca5bf047a17629099b1845db595a42b4e7d5c5916439036c18d0afd7181b",
|
|
10029
|
-
[Stage.SANDBOX]: "
|
|
10551
|
+
[Stage.SANDBOX]: "0xcba6bc54cb111599b88422261428b558d2ac841928121b05d88b79e25e25ea34"
|
|
10030
10552
|
};
|
|
10031
10553
|
var OBJECT_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS = {
|
|
10032
10554
|
[Stage.MAINNET]: "0x2a0c8a426823cc7fcb89dd849810b42643fda344286d493d0ce8593d9b2be280",
|
|
10033
10555
|
[Stage.TESTNET]: "0xacaa1b7ed87084cea9c593d1df4a76bfa0bce1b214559d79de8a9167705292a3",
|
|
10034
|
-
[Stage.SANDBOX]: "
|
|
10556
|
+
[Stage.SANDBOX]: "0x144da379fa9f0ac5345acc44c2f21d7352d16cbd3dc79245f864ef4225fd4c93"
|
|
10035
10557
|
};
|
|
10036
10558
|
var OBJECT_ULN_302_ADDRESS = {
|
|
10037
10559
|
[Stage.MAINNET]: "0x7d140391ed97fcdb3f87aa13a7727b7354cb0a6ca2a3e7156f8b3767dd634266",
|
|
10038
10560
|
[Stage.TESTNET]: "0xea27cd132fe6e4cad973f642f1450b0da2490b5350e6104365a7a48a3d97fb1e",
|
|
10039
|
-
[Stage.SANDBOX]: "
|
|
10561
|
+
[Stage.SANDBOX]: "0x63d6e1bb1295d99f7b1fbe464ad4ba63d782b1c64e7c34e410f0eda9340489f7"
|
|
10040
10562
|
};
|
|
10041
10563
|
var OBJECT_ULN_302_ADMIN_CAP_ADDRESS = {
|
|
10042
10564
|
[Stage.MAINNET]: "0xece25d7e8aad8a6295a7821bd4b7f29896714c3fc8472a5e7dbb19d67ff77e00",
|
|
10043
10565
|
[Stage.TESTNET]: "0x791622d24d7ec1c33beea371f7d2e1d8cffaaa6596a785f61684227ccd379270",
|
|
10044
|
-
[Stage.SANDBOX]: "
|
|
10566
|
+
[Stage.SANDBOX]: "0xd904df9bfe01c30011efd96ccfefcb3abed2945435df1cfc49c4bfa1c4f95adc"
|
|
10045
10567
|
};
|
|
10046
10568
|
var OBJECT_ULN_302_VERIFICATION_ADDRESS = {
|
|
10047
10569
|
[Stage.MAINNET]: "0x2e672e3cb4f4992b3e790ce50c7b3e464a60633ca5f68de3039cc5f20116f6e7",
|
|
10048
10570
|
[Stage.TESTNET]: "0xf308d39e3bab9ec37019d955c31abac6b3e7444f915a77be203f92c1d6a9a67e",
|
|
10049
|
-
[Stage.SANDBOX]: "
|
|
10571
|
+
[Stage.SANDBOX]: "0x3c6b556cec3fda76eabf995e557b752934bda07ddbac3b5060bb9aadb1adf992"
|
|
10050
10572
|
};
|
|
10051
10573
|
var OBJECT_ULN_302_PTB_BUILDER_ADDRESS = {
|
|
10052
10574
|
[Stage.MAINNET]: "0xb41c8c88899debceb5982ff0333a0026bb68159758af8557ee1b12433f539ec8",
|
|
10053
10575
|
[Stage.TESTNET]: "0x44c82a3a33294c1ac36f1baf931f57ec0a60bb183b5474211b8397465e3dffac",
|
|
10054
|
-
[Stage.SANDBOX]: "
|
|
10576
|
+
[Stage.SANDBOX]: "0x459700f707abc1b7b60676fa2382cef6dcfc574ff43262286fbed5697c6b3d24"
|
|
10055
10577
|
};
|
|
10056
10578
|
var OBJECT_TREASURY_ADDRESS = {
|
|
10057
10579
|
[Stage.MAINNET]: "0xa6fd139692050fb7fea2a5d924d5cc637b2b617982b1537b98ab51f6074a6335",
|
|
10058
10580
|
[Stage.TESTNET]: "0xa082a4eac93a7525738511f7a00816f982545296175e54be355f813eebe20691",
|
|
10059
|
-
[Stage.SANDBOX]: "
|
|
10581
|
+
[Stage.SANDBOX]: "0xe99cf16874135917f82fd1efe1a56d1adcfaed260458476717e5f2237b19d653"
|
|
10060
10582
|
};
|
|
10061
10583
|
var OBJECT_TREASURY_ADMIN_CAP_ADDRESS = {
|
|
10062
10584
|
[Stage.MAINNET]: "0x6fafabbb6f8dd963fb926b2075de90ed86e550bc67c900768e6b4c6002bc2b7d",
|
|
10063
10585
|
[Stage.TESTNET]: "0x3ec6669b54589abb6d12aa338c4f2962a5d1ab835e6385242698f3efd9ae2582",
|
|
10064
|
-
[Stage.SANDBOX]: "
|
|
10586
|
+
[Stage.SANDBOX]: "0xeb957d7143a15ed7d919f4b81a1784b886a8f5f6f9a4c82b78c82532aafa460d"
|
|
10065
10587
|
};
|
|
10066
10588
|
var OBJECT_BLOCKED_MESSAGE_LIB_ADDRESS = {
|
|
10067
10589
|
[Stage.MAINNET]: "0x48761f1a6591f4ad761f8ef9ec85ad6d5255805c35d4c9a90c97c40e7820aa85",
|
|
10068
10590
|
[Stage.TESTNET]: "0xcc83422f225aef3300596dae1119510cf56d620a686dc1e73c9db15c49d70e31",
|
|
10069
|
-
[Stage.SANDBOX]: "
|
|
10591
|
+
[Stage.SANDBOX]: "0xee5785033a64ec145d7a276a6cc5e1edd3f1ea198e9b64f3cc50390d8ba0e81e"
|
|
10070
10592
|
};
|
|
10071
10593
|
var OBJECT_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS = {
|
|
10072
10594
|
[Stage.MAINNET]: "0xba9a66cdc77ae59264b7481e6d0d04426f380169b9afbb5176aaf58718fad6d1",
|
|
10073
10595
|
[Stage.TESTNET]: "0x28d0ec1e88734b94e38d2a8305cb89b9e81bdee41f71f4159166e99f058758c5",
|
|
10074
|
-
[Stage.SANDBOX]: "
|
|
10596
|
+
[Stage.SANDBOX]: "0x6e1999cb4c9d18f9421dc61368cf0dd4209b4339e05453ab64f56686b4428c37"
|
|
10075
10597
|
};
|
|
10076
10598
|
var OBJECT_DISCOVERY_ADDRESS = {
|
|
10077
10599
|
[Stage.MAINNET]: "",
|
|
@@ -10081,17 +10603,17 @@ var OBJECT_DISCOVERY_ADDRESS = {
|
|
|
10081
10603
|
var OBJECT_COUNTER_ADDRESS = {
|
|
10082
10604
|
[Stage.MAINNET]: "0xe44f7b2ff80b8450e0d09ec84198dd22d9e2ad6e9c9688d2db605736b99ae965",
|
|
10083
10605
|
[Stage.TESTNET]: "0x85e63925789db09ee8021dfa66cb61a31913861b4abf7d97689061cf113ca61a",
|
|
10084
|
-
[Stage.SANDBOX]: "
|
|
10606
|
+
[Stage.SANDBOX]: "0xb03d5554da058538f2f1a7dead5bb8ecb0802335b8be4679a5d1cecb62795dcb"
|
|
10085
10607
|
};
|
|
10086
10608
|
var OBJECT_COUNTER_OAPP_ADDRESS = {
|
|
10087
10609
|
[Stage.MAINNET]: "0x84e16eed83a2e9787860bd0324a3a69adc9ec181e5f7f2bfcca11222c113414c",
|
|
10088
10610
|
[Stage.TESTNET]: "0xf96322c7067fb9dbd77c7cc62bd35490dc86db507837b4310eacaef3b327ce75",
|
|
10089
|
-
[Stage.SANDBOX]: "
|
|
10611
|
+
[Stage.SANDBOX]: "0xe2c538b0b8b821959a72c527079e007916d1c9682c7c978566db598e72ddfaed"
|
|
10090
10612
|
};
|
|
10091
10613
|
var OBJECT_COUNTER_ADMIN_CAP_ADDRESS = {
|
|
10092
10614
|
[Stage.MAINNET]: "0x7c1250bbfb0e72ff58985112746d361ad729ac6f47a404c76d4e447b93b49984",
|
|
10093
10615
|
[Stage.TESTNET]: "0x63350eccf073e3b86ab7dd04566e8b62d4fa184f633ef383998b3230f66cc1de",
|
|
10094
|
-
[Stage.SANDBOX]: "
|
|
10616
|
+
[Stage.SANDBOX]: "0x34645a0e765373545d2f219a64c01b34bc9b55b6f2d725719943a493dc8bd3ce"
|
|
10095
10617
|
};
|
|
10096
10618
|
var OBJECT_ENDPOINT_ADMIN_CAP_ADDRESS = {
|
|
10097
10619
|
[Stage.MAINNET]: "0x78d0ef45ccf4e6247162c09aa73ea0bb59467057960c23fe41a976ca67e916ab",
|
|
@@ -10101,27 +10623,27 @@ var OBJECT_ENDPOINT_ADMIN_CAP_ADDRESS = {
|
|
|
10101
10623
|
var OBJECT_ENDPOINT_PTB_BUILDER_ADDRESS = {
|
|
10102
10624
|
[Stage.MAINNET]: "0x2954f9997631409cf067785477b800ced4a2a9ccc75032076f8129ee07ca2caa",
|
|
10103
10625
|
[Stage.TESTNET]: "0x060ba8cc7a0e858c138ff00391bfec71dc863ac7d35cb36b14f4e52987cb9542",
|
|
10104
|
-
[Stage.SANDBOX]: "
|
|
10626
|
+
[Stage.SANDBOX]: "0xddd0c803ff273b7179c7d7889006cb202fb44fc09ccbc21188892cb90493f2da"
|
|
10105
10627
|
};
|
|
10106
10628
|
var OBJECT_ENDPOINT_PTB_BUILDER_ADMIN_CAP_ADDRESS = {
|
|
10107
10629
|
[Stage.MAINNET]: "0x2a705654d837e75ee88e1f03003cccf3faa9a683cf0434468745532cc55e148f",
|
|
10108
10630
|
[Stage.TESTNET]: "0xd5da31144a1a30e4fea6ad9074b04fc732d95ee4f84575ade95ec524ee351abf",
|
|
10109
|
-
[Stage.SANDBOX]: "
|
|
10631
|
+
[Stage.SANDBOX]: "0xd86364d1e4370017b9ab7473c3a4fea87b182c75fafac4175fe463ce9c07b29f"
|
|
10110
10632
|
};
|
|
10111
10633
|
var OBJECT_DVN_ADDRESS = {
|
|
10112
10634
|
[Stage.MAINNET]: "0x607471cac2ed025cbb2874cd5a175e6000939747097bbd0ea89664c1fbe9672c",
|
|
10113
10635
|
[Stage.TESTNET]: "0xd97457fdd827f0b9d9c35cb9b6a8560364822c57545a10be53106dfc7c26f2b4",
|
|
10114
|
-
[Stage.SANDBOX]: "
|
|
10636
|
+
[Stage.SANDBOX]: "0x51ce5f5fd016844276d19118b87d06ee06eb478d4b09732cdedeb6058de222e3"
|
|
10115
10637
|
};
|
|
10116
10638
|
var OBJECT_DVN_CAP_ADDRESS = {
|
|
10117
10639
|
[Stage.MAINNET]: "0x67d3d9e3537fc8ad2efd674bdce3b7f98ba2892971ab91a6f3bb611844dcc2e1",
|
|
10118
10640
|
[Stage.TESTNET]: "0x6b29694aaf32600eba62f0f91aed2c31a7c34540a513403f23351a8cd1372d3c",
|
|
10119
|
-
[Stage.SANDBOX]: "
|
|
10641
|
+
[Stage.SANDBOX]: "0x688d97f7e0c4d6ff3f9155f70cad96ece1c0e74fc9ac0090fa90ce3ef413792c"
|
|
10120
10642
|
};
|
|
10121
10643
|
var OBJECT_DVN_FEE_LIB_ADDRESS = {
|
|
10122
10644
|
[Stage.MAINNET]: "0x5ff9119265b39b59260a7f1df2b7af5390f39fb33aeaf8b099e1ddc6673da1f0",
|
|
10123
10645
|
[Stage.TESTNET]: "0xc0f5802549ca974579ff193affff53a1566fffc1586f83584fc3432f85dc4859",
|
|
10124
|
-
[Stage.SANDBOX]: "
|
|
10646
|
+
[Stage.SANDBOX]: "0xae4114801fffb48fa6292941abe408abf96fbff5a57c7dba94a156400413da6c"
|
|
10125
10647
|
};
|
|
10126
10648
|
var OBJECT_DVN_FEE_LIB_ADMIN_CAP_ADDRESS = {
|
|
10127
10649
|
[Stage.MAINNET]: "",
|
|
@@ -10131,22 +10653,22 @@ var OBJECT_DVN_FEE_LIB_ADMIN_CAP_ADDRESS = {
|
|
|
10131
10653
|
var OBJECT_EXECUTOR_ADDRESS = {
|
|
10132
10654
|
[Stage.MAINNET]: "0xf5848ad4863f3594a96b4af26ab8d47414e5d17a9da76db1ab1489f1db3a75ae",
|
|
10133
10655
|
[Stage.TESTNET]: "0x69c3cd711b6730e699e2423a15f75c0fc9d96b3f6596bca140452184381a4abe",
|
|
10134
|
-
[Stage.SANDBOX]: "
|
|
10656
|
+
[Stage.SANDBOX]: "0x5ceaf50a5cd0b9770ba8f78a1374d22043ad3bd00f60a06a5f2d0f34265da3c0"
|
|
10135
10657
|
};
|
|
10136
10658
|
var OBJECT_EXECUTOR_CAP_ADDRESS = {
|
|
10137
10659
|
[Stage.MAINNET]: "0x4f86b866513949acb7728b33dc9334c9b0439c5f368f527b99db3cbf69a0282f",
|
|
10138
10660
|
[Stage.TESTNET]: "0x19bf02f900658874be5cb12af901008420c8e09fce73bfd9359dd78914a33eda",
|
|
10139
|
-
[Stage.SANDBOX]: "
|
|
10661
|
+
[Stage.SANDBOX]: "0x2afea3cb8704594b3074b9b63b13f119f6548932b308cbd6e47d5847ef172d1d"
|
|
10140
10662
|
};
|
|
10141
10663
|
var OBJECT_EXECUTOR_OWNER_CAP_ADDRESS = {
|
|
10142
10664
|
[Stage.MAINNET]: "0x26082897ee964836468287f28e091078257d4fa27a6b309321b3d171cef3850d",
|
|
10143
10665
|
[Stage.TESTNET]: "0x6bbd9c69eaa8e52245a7c248c04847b0e1d31ed6945f5e2ada2e4d83c2f4c655",
|
|
10144
|
-
[Stage.SANDBOX]: "
|
|
10666
|
+
[Stage.SANDBOX]: "0xce0c4802ffccae464de8611a364e3f2fa22fe767ee2ce5c3b62eecea4d8ee34b"
|
|
10145
10667
|
};
|
|
10146
10668
|
var OBJECT_EXECUTOR_FEE_LIB_ADDRESS = {
|
|
10147
10669
|
[Stage.MAINNET]: "0x1d505d1cfdd0ac8938826269b93c35cec0cd97ba783e073fa3b0206b35ca0378",
|
|
10148
10670
|
[Stage.TESTNET]: "0x8826aad865a485ec779b5f08c74c07dbad3063f58f7b66c5f099137af7024519",
|
|
10149
|
-
[Stage.SANDBOX]: "
|
|
10671
|
+
[Stage.SANDBOX]: "0x2c673198b2703cb2676896a97a2332c229487ea2e94ee254a095e2d0524ae376"
|
|
10150
10672
|
};
|
|
10151
10673
|
var OBJECT_EXECUTOR_FEE_LIB_ADMIN_CAP_ADDRESS = {
|
|
10152
10674
|
[Stage.MAINNET]: "",
|
|
@@ -10156,17 +10678,22 @@ var OBJECT_EXECUTOR_FEE_LIB_ADMIN_CAP_ADDRESS = {
|
|
|
10156
10678
|
var OBJECT_PRICE_FEED_ADDRESS = {
|
|
10157
10679
|
[Stage.MAINNET]: "0x17a24b91f720a8f170386d920df3c605fe7a0b96e43424283b30b11ced0f0156",
|
|
10158
10680
|
[Stage.TESTNET]: "0x10e0e26966b7eee36e0009e67c0deeb8f7e5ea1a42ecefca53bf2d5d22031ba4",
|
|
10159
|
-
[Stage.SANDBOX]: "
|
|
10681
|
+
[Stage.SANDBOX]: "0x840c8c2aa1277d062ed6c10b4a787f13d18e624d4885baa63e7e5c2f4dba8dac"
|
|
10160
10682
|
};
|
|
10161
10683
|
var OBJECT_PRICE_FEED_OWNER_CAP_ADDRESS = {
|
|
10162
10684
|
[Stage.MAINNET]: "0x809d4b17a59a2b832b9222b09d4d6d805b6b2aaf340b6a52babea814ef5637a4",
|
|
10163
10685
|
[Stage.TESTNET]: "0x6d42367426b654045c2c9eccf622caf43e552b3f983bbd293b1ef362e82504bd",
|
|
10164
|
-
[Stage.SANDBOX]: "
|
|
10686
|
+
[Stage.SANDBOX]: "0xb916acae71a9a586042cb1a9209e31d3e3c3508e8471e4744dc2de0df18ceaf8"
|
|
10165
10687
|
};
|
|
10166
10688
|
var OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS = {
|
|
10167
10689
|
[Stage.MAINNET]: "0x9d29be17482e050324db3a4b10755e4adc5a1aa062ed80528e0fbe94654055b5",
|
|
10168
10690
|
[Stage.TESTNET]: "0xcdbefbceffe2d9f0c0d46733ef4be0145e7af60241962738e98f136bff1557e2",
|
|
10169
|
-
[Stage.SANDBOX]: "
|
|
10691
|
+
[Stage.SANDBOX]: "0x57da7adb5778eddf6547d29e80c29fb046f64e4854e06788af9ad3ba4810552b"
|
|
10692
|
+
};
|
|
10693
|
+
var OBJECT_WORKER_REGISTRY_ADDRESS = {
|
|
10694
|
+
[Stage.MAINNET]: "",
|
|
10695
|
+
[Stage.TESTNET]: "",
|
|
10696
|
+
[Stage.SANDBOX]: "0xfcc518cee8d68bf9872223a1b06359f41b78f94092c0c97cd21bde154ae170db"
|
|
10170
10697
|
};
|
|
10171
10698
|
|
|
10172
10699
|
// src/resource.ts
|
|
@@ -10196,7 +10723,9 @@ var PACKAGE_ADDRESS_MAP = {
|
|
|
10196
10723
|
treasury: PACKAGE_TREASURY_ADDRESS,
|
|
10197
10724
|
oapp: PACKAGE_OAPP_ADDRESS,
|
|
10198
10725
|
layerzeroViews: PACKAGE_LAYERZERO_VIEWS_ADDRESS,
|
|
10199
|
-
packageWhitelistValidator: PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS
|
|
10726
|
+
packageWhitelistValidator: PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS,
|
|
10727
|
+
workerRegistry: PACKAGE_WORKER_REGISTRY_ADDRESS,
|
|
10728
|
+
workerCommon: PACKAGE_WORKER_COMMON_ADDRESS
|
|
10200
10729
|
};
|
|
10201
10730
|
var OBJECT_ADDRESS_MAP = {
|
|
10202
10731
|
endpointV2: OBJECT_ENDPOINT_V2_ADDRESS,
|
|
@@ -10226,7 +10755,8 @@ var OBJECT_ADDRESS_MAP = {
|
|
|
10226
10755
|
executorFeeLib: OBJECT_EXECUTOR_FEE_LIB_ADDRESS,
|
|
10227
10756
|
priceFeed: OBJECT_PRICE_FEED_ADDRESS,
|
|
10228
10757
|
priceFeedOwnerCap: OBJECT_PRICE_FEED_OWNER_CAP_ADDRESS,
|
|
10229
|
-
packageWhitelistValidator: OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS
|
|
10758
|
+
packageWhitelistValidator: OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS,
|
|
10759
|
+
workerRegistry: OBJECT_WORKER_REGISTRY_ADDRESS
|
|
10230
10760
|
};
|
|
10231
10761
|
var ResourceManager = class {
|
|
10232
10762
|
/**
|
|
@@ -10298,8 +10828,8 @@ var SDK = class {
|
|
|
10298
10828
|
getLayerZeroViews() {
|
|
10299
10829
|
return this.moduleManager.getLayerZeroViews();
|
|
10300
10830
|
}
|
|
10301
|
-
getOApp() {
|
|
10302
|
-
return this.moduleManager.getOApp();
|
|
10831
|
+
getOApp(callCapId, options) {
|
|
10832
|
+
return this.moduleManager.getOApp(this.client, callCapId, options);
|
|
10303
10833
|
}
|
|
10304
10834
|
// === Non-Core Module Getters (created on-demand with caching) ===
|
|
10305
10835
|
getCounter(options) {
|
|
@@ -10347,11 +10877,14 @@ var SDK = class {
|
|
|
10347
10877
|
getBlockedMessageLibPtbBuilder(options) {
|
|
10348
10878
|
return this.moduleManager.getBlockedMessageLibPtbBuilder(this.client, options);
|
|
10349
10879
|
}
|
|
10880
|
+
getWorkerRegistry(options) {
|
|
10881
|
+
return this.moduleManager.getWorkerRegistry(this.client, options);
|
|
10882
|
+
}
|
|
10350
10883
|
getOrCreateModule(moduleName, options, factory) {
|
|
10351
10884
|
return this.moduleManager.getOrCreateModule(moduleName, options, factory);
|
|
10352
10885
|
}
|
|
10353
10886
|
};
|
|
10354
10887
|
|
|
10355
|
-
export { ALL_EXECUTOR_OPTION_TYPES, ArbitrumPriceExtBcs, ArgumentBCS, BlockedMessageLib, BlockedMessageLibErrorCode, BlockedMessageLibPtbBuilder, Bytes32Bcs, CONFIG_TYPE, Call, CallErrorCode, CallTypeName, Counter, CounterErrorCode, DEFAULT_SIMULATION_TIMES, DVN, DVNErrorCode, DVNFeeLib, DVNFeeLibErrorCode, DstConfigBcs, DvnDstConfigBcs, DvnLayerZero, DvnPtbBuilder, Endpoint, EndpointErrorCode, EndpointExecutionState, EndpointPtbBuilder, Executor, ExecutorConfigBcs, ExecutorErrorCode, ExecutorFeeLib, ExecutorFeeLibErrorCode, ExecutorLayerZero, ExecutorOptionType, ExecutorPtbBuilder, FunctionBCS, LayerZeroViews, LibBuilderManagerErrorCode, LzComposeVersion, LzReceiveVersion, LzTypeName, MAX_BATCH_SIZE, MessageLibType, MessagingFeeBcs, ModelType, ModelTypeBcs, Modules, MoveAbortError, MoveCallBCS, NativeDropParamsBcs, NonSenderObjectValidator, OApp, OAppErrorCode, OAppUlnConfigBcs, OBJECT_BLOCKED_MESSAGE_LIB_ADDRESS, OBJECT_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS, OBJECT_COUNTER_ADDRESS, OBJECT_COUNTER_ADMIN_CAP_ADDRESS, OBJECT_COUNTER_OAPP_ADDRESS, OBJECT_DISCOVERY_ADDRESS, OBJECT_DVN_ADDRESS, OBJECT_DVN_CAP_ADDRESS, OBJECT_DVN_FEE_LIB_ADDRESS, OBJECT_DVN_FEE_LIB_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_PTB_BUILDER_ADDRESS, OBJECT_ENDPOINT_PTB_BUILDER_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_V2_ADDRESS, OBJECT_EXECUTOR_ADDRESS, OBJECT_EXECUTOR_CAP_ADDRESS, OBJECT_EXECUTOR_FEE_LIB_ADDRESS, OBJECT_EXECUTOR_FEE_LIB_ADMIN_CAP_ADDRESS, OBJECT_EXECUTOR_OWNER_CAP_ADDRESS, OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS, OBJECT_PRICE_FEED_ADDRESS, OBJECT_PRICE_FEED_OWNER_CAP_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_ADMIN_CAP_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS, OBJECT_TREASURY_ADDRESS, OBJECT_TREASURY_ADMIN_CAP_ADDRESS, OBJECT_ULN_302_ADDRESS, OBJECT_ULN_302_ADMIN_CAP_ADDRESS, OBJECT_ULN_302_PTB_BUILDER_ADDRESS, OBJECT_ULN_302_VERIFICATION_ADDRESS, PACKAGE_BLOCKED_MESSAGE_LIB_ADDRESS, PACKAGE_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS, PACKAGE_CALL_ADDRESS, PACKAGE_COUNTER_V2_ADDRESS, PACKAGE_DVN_ADDRESS, PACKAGE_DVN_FEE_LIB_ADDRESS, PACKAGE_DVN_LAYERZERO_ADDRESS, PACKAGE_DVN_PTB_BUILDER_ADDRESS, PACKAGE_ENDPOINT_PTB_BUILDER_ADDRESS, PACKAGE_ENDPOINT_V2_ADDRESS, PACKAGE_EXECUTOR_ADDRESS, PACKAGE_EXECUTOR_FEE_LIB_ADDRESS, PACKAGE_EXECUTOR_LAYERZERO_ADDRESS, PACKAGE_EXECUTOR_PTB_BUILDER_ADDRESS, PACKAGE_LAYERZERO_VIEWS_ADDRESS, PACKAGE_OAPP_ADDRESS, PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS, PACKAGE_PRICE_FEED_ADDRESS, PACKAGE_PTB_MOVE_CALL_ADDRESS, PACKAGE_SIMPLE_MESSAGE_LIB_ADDRESS, PACKAGE_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS, PACKAGE_TREASURY_ADDRESS, PACKAGE_ULN_302_ADDRESS, PACKAGE_ULN_302_PTB_BUILDER_ADDRESS, PACKAGE_UTILS_ADDRESS, PACKAGE_ZRO_ADDRESS, PackageAllowlistValidator, PackageWhitelistValidator, PriceBcs, PriceFeed, PriceFeedErrorCode, PtbBuilder, SDK, ShareObjectValidator, SimpleMessageLib, SimpleMessageLibErrorCode, SimpleMessageLibPtbBuilder, TimeoutBcs, Treasury, TreasuryErrorCode, Uln302, Uln302ErrorCode, Uln302PtbBuilder, UlnConfigBcs, UlnVerificationState, UnclassifiedError, Utils, UtilsErrorCode, ValidatorErrorCode, VectorMoveCallBCS, Zro, asAddress, asAddressVector, asArg, asArgWithTx, asArgWithTxAsync, asBool, asBytes, asBytes32, asBytesVector, asObject, asString, asU128, asU16, asU256, asU32, asU64, asU8, executeSimulate, handleError, isTransactionArgument, simulateTransaction, simulateTransactionMultiResult, validateTransaction, validateWithDetails };
|
|
10888
|
+
export { ALL_EXECUTOR_OPTION_TYPES, ArbitrumPriceExtBcs, ArgumentBCS, BlockedMessageLib, BlockedMessageLibErrorCode, BlockedMessageLibPtbBuilder, Bytes32Bcs, CONFIG_TYPE, Call, CallErrorCode, CallTypeName, Counter, CounterErrorCode, DEFAULT_SIMULATION_TIMES, DVN, DVNErrorCode, DVNFeeLib, DVNFeeLibErrorCode, DstConfigBcs, DvnDstConfigBcs, DvnLayerZero, DvnPtbBuilder, Endpoint, EndpointErrorCode, EndpointExecutionState, EndpointPtbBuilder, Executor, ExecutorConfigBcs, ExecutorErrorCode, ExecutorFeeLib, ExecutorFeeLibErrorCode, ExecutorLayerZero, ExecutorOptionType, ExecutorPtbBuilder, FunctionBCS, LayerZeroViews, LibBuilderManagerErrorCode, LzComposeVersion, LzReceiveVersion, LzTypeName, MAX_BATCH_SIZE, MessageLibType, MessagingFeeBcs, ModelType, ModelTypeBcs, Modules, MoveAbortError, MoveCallBCS, NativeDropParamsBcs, NonSenderObjectValidator, OApp, OAppErrorCode, OAppInfoV1Bcs, OAppInfoVersion, OAppUlnConfigBcs, OBJECT_BLOCKED_MESSAGE_LIB_ADDRESS, OBJECT_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS, OBJECT_COUNTER_ADDRESS, OBJECT_COUNTER_ADMIN_CAP_ADDRESS, OBJECT_COUNTER_OAPP_ADDRESS, OBJECT_DISCOVERY_ADDRESS, OBJECT_DVN_ADDRESS, OBJECT_DVN_CAP_ADDRESS, OBJECT_DVN_FEE_LIB_ADDRESS, OBJECT_DVN_FEE_LIB_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_PTB_BUILDER_ADDRESS, OBJECT_ENDPOINT_PTB_BUILDER_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_V2_ADDRESS, OBJECT_EXECUTOR_ADDRESS, OBJECT_EXECUTOR_CAP_ADDRESS, OBJECT_EXECUTOR_FEE_LIB_ADDRESS, OBJECT_EXECUTOR_FEE_LIB_ADMIN_CAP_ADDRESS, OBJECT_EXECUTOR_OWNER_CAP_ADDRESS, OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS, OBJECT_PRICE_FEED_ADDRESS, OBJECT_PRICE_FEED_OWNER_CAP_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_ADMIN_CAP_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS, OBJECT_TREASURY_ADDRESS, OBJECT_TREASURY_ADMIN_CAP_ADDRESS, OBJECT_ULN_302_ADDRESS, OBJECT_ULN_302_ADMIN_CAP_ADDRESS, OBJECT_ULN_302_PTB_BUILDER_ADDRESS, OBJECT_ULN_302_VERIFICATION_ADDRESS, OBJECT_WORKER_REGISTRY_ADDRESS, PACKAGE_BLOCKED_MESSAGE_LIB_ADDRESS, PACKAGE_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS, PACKAGE_CALL_ADDRESS, PACKAGE_COUNTER_V2_ADDRESS, PACKAGE_DVN_ADDRESS, PACKAGE_DVN_FEE_LIB_ADDRESS, PACKAGE_DVN_LAYERZERO_ADDRESS, PACKAGE_DVN_PTB_BUILDER_ADDRESS, PACKAGE_ENDPOINT_PTB_BUILDER_ADDRESS, PACKAGE_ENDPOINT_V2_ADDRESS, PACKAGE_EXECUTOR_ADDRESS, PACKAGE_EXECUTOR_FEE_LIB_ADDRESS, PACKAGE_EXECUTOR_LAYERZERO_ADDRESS, PACKAGE_EXECUTOR_PTB_BUILDER_ADDRESS, PACKAGE_LAYERZERO_VIEWS_ADDRESS, PACKAGE_OAPP_ADDRESS, PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS, PACKAGE_PRICE_FEED_ADDRESS, PACKAGE_PTB_MOVE_CALL_ADDRESS, PACKAGE_SIMPLE_MESSAGE_LIB_ADDRESS, PACKAGE_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS, PACKAGE_TREASURY_ADDRESS, PACKAGE_ULN_302_ADDRESS, PACKAGE_ULN_302_PTB_BUILDER_ADDRESS, PACKAGE_UTILS_ADDRESS, PACKAGE_WORKER_COMMON_ADDRESS, PACKAGE_WORKER_REGISTRY_ADDRESS, PACKAGE_ZRO_ADDRESS, PackageAllowlistValidator, PackageWhitelistValidator, PriceBcs, PriceFeed, PriceFeedErrorCode, PtbBuilder, SDK, ShareObjectValidator, SimpleMessageLib, SimpleMessageLibErrorCode, SimpleMessageLibPtbBuilder, TimeoutBcs, Treasury, TreasuryErrorCode, Uln302, Uln302ErrorCode, Uln302PtbBuilder, UlnConfigBcs, UlnVerificationState, UnclassifiedError, Utils, UtilsErrorCode, ValidatorErrorCode, VectorMoveCallBCS, WorkerRegistry, WorkerRegistryErrorCode, Zro, asAddress, asAddressVector, asArg, asArgWithTx, asArgWithTxAsync, asBool, asBytes, asBytes32, asBytesVector, asObject, asString, asU128, asU16, asU256, asU32, asU64, asU8, executeSimulate, handleError, isTransactionArgument, simulateTransaction, simulateTransactionMultiResult, validateTransaction, validateWithDetails };
|
|
10356
10889
|
//# sourceMappingURL=index.mjs.map
|
|
10357
10890
|
//# sourceMappingURL=index.mjs.map
|