@layerzerolabs/lz-movevm-sdk-v2 3.0.14 → 3.0.16
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 +26 -0
- package/README.md +1 -1
- package/dist/index.cjs +3 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +39 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -15
package/dist/index.d.mts
CHANGED
|
@@ -307,18 +307,57 @@ declare namespace index {
|
|
|
307
307
|
export { type index_ArbitrumPriceTraits as ArbitrumPriceTraits, index_ConfigType as ConfigType, type index_DVNDstConfig as DVNDstConfig, type index_ExecutorConfig as ExecutorConfig, type index_ExecutorConfigResponse as ExecutorConfigResponse, type index_ExecutorDstConfig as ExecutorDstConfig, type index_Metadata as Metadata, type index_OftFeeDetail as OftFeeDetail, type index_OftLimit as OftLimit, type index_OftTokenInfo as OftTokenInfo, type index_Price as Price, type index_Timeout as Timeout, type index_UlnConfig as UlnConfig, type index_UlnConfigResponse as UlnConfigResponse, type index_UpdatePrice as UpdatePrice, index_VERIFICATION_STATE as VERIFICATION_STATE, type index_WorkerPriceFeedConfig as WorkerPriceFeedConfig, index_deserializeUlnConfig as deserializeUlnConfig, index_serializeUpdatePrices as serializeUpdatePrices, index_verificationStateValueOf as verificationStateValueOf };
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
+
/**
|
|
311
|
+
* Type representing the options for accounts.
|
|
312
|
+
*/
|
|
310
313
|
type AccountsOption = {
|
|
314
|
+
/**
|
|
315
|
+
* The endpoint V2 address.
|
|
316
|
+
*/
|
|
311
317
|
endpoint_v2?: string;
|
|
318
|
+
/**
|
|
319
|
+
* The counter V2 address.
|
|
320
|
+
*/
|
|
312
321
|
counter_v2?: string;
|
|
322
|
+
/**
|
|
323
|
+
* The OFT address.
|
|
324
|
+
*/
|
|
313
325
|
oft?: string;
|
|
326
|
+
/**
|
|
327
|
+
* The LayerZero views address.
|
|
328
|
+
*/
|
|
314
329
|
layerzero_views?: string;
|
|
330
|
+
/**
|
|
331
|
+
* The simple message library address.
|
|
332
|
+
*/
|
|
315
333
|
simple_message_lib?: string;
|
|
334
|
+
/**
|
|
335
|
+
* The ULN message library address.
|
|
336
|
+
*/
|
|
316
337
|
uln_message_lib?: string;
|
|
338
|
+
/**
|
|
339
|
+
* The executor address.
|
|
340
|
+
*/
|
|
317
341
|
executor?: string;
|
|
342
|
+
/**
|
|
343
|
+
* The DVN address.
|
|
344
|
+
*/
|
|
318
345
|
dvn?: string;
|
|
346
|
+
/**
|
|
347
|
+
* The worker common address.
|
|
348
|
+
*/
|
|
319
349
|
worker_common?: string;
|
|
350
|
+
/**
|
|
351
|
+
* The price feed address.
|
|
352
|
+
*/
|
|
320
353
|
price_feed?: string;
|
|
354
|
+
/**
|
|
355
|
+
* The treasury address.
|
|
356
|
+
*/
|
|
321
357
|
treasury?: string;
|
|
358
|
+
/**
|
|
359
|
+
* The endpoint V2 common address.
|
|
360
|
+
*/
|
|
322
361
|
endpoint_v2_common?: string;
|
|
323
362
|
} & {
|
|
324
363
|
[key: string]: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -307,18 +307,57 @@ declare namespace index {
|
|
|
307
307
|
export { type index_ArbitrumPriceTraits as ArbitrumPriceTraits, index_ConfigType as ConfigType, type index_DVNDstConfig as DVNDstConfig, type index_ExecutorConfig as ExecutorConfig, type index_ExecutorConfigResponse as ExecutorConfigResponse, type index_ExecutorDstConfig as ExecutorDstConfig, type index_Metadata as Metadata, type index_OftFeeDetail as OftFeeDetail, type index_OftLimit as OftLimit, type index_OftTokenInfo as OftTokenInfo, type index_Price as Price, type index_Timeout as Timeout, type index_UlnConfig as UlnConfig, type index_UlnConfigResponse as UlnConfigResponse, type index_UpdatePrice as UpdatePrice, index_VERIFICATION_STATE as VERIFICATION_STATE, type index_WorkerPriceFeedConfig as WorkerPriceFeedConfig, index_deserializeUlnConfig as deserializeUlnConfig, index_serializeUpdatePrices as serializeUpdatePrices, index_verificationStateValueOf as verificationStateValueOf };
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
+
/**
|
|
311
|
+
* Type representing the options for accounts.
|
|
312
|
+
*/
|
|
310
313
|
type AccountsOption = {
|
|
314
|
+
/**
|
|
315
|
+
* The endpoint V2 address.
|
|
316
|
+
*/
|
|
311
317
|
endpoint_v2?: string;
|
|
318
|
+
/**
|
|
319
|
+
* The counter V2 address.
|
|
320
|
+
*/
|
|
312
321
|
counter_v2?: string;
|
|
322
|
+
/**
|
|
323
|
+
* The OFT address.
|
|
324
|
+
*/
|
|
313
325
|
oft?: string;
|
|
326
|
+
/**
|
|
327
|
+
* The LayerZero views address.
|
|
328
|
+
*/
|
|
314
329
|
layerzero_views?: string;
|
|
330
|
+
/**
|
|
331
|
+
* The simple message library address.
|
|
332
|
+
*/
|
|
315
333
|
simple_message_lib?: string;
|
|
334
|
+
/**
|
|
335
|
+
* The ULN message library address.
|
|
336
|
+
*/
|
|
316
337
|
uln_message_lib?: string;
|
|
338
|
+
/**
|
|
339
|
+
* The executor address.
|
|
340
|
+
*/
|
|
317
341
|
executor?: string;
|
|
342
|
+
/**
|
|
343
|
+
* The DVN address.
|
|
344
|
+
*/
|
|
318
345
|
dvn?: string;
|
|
346
|
+
/**
|
|
347
|
+
* The worker common address.
|
|
348
|
+
*/
|
|
319
349
|
worker_common?: string;
|
|
350
|
+
/**
|
|
351
|
+
* The price feed address.
|
|
352
|
+
*/
|
|
320
353
|
price_feed?: string;
|
|
354
|
+
/**
|
|
355
|
+
* The treasury address.
|
|
356
|
+
*/
|
|
321
357
|
treasury?: string;
|
|
358
|
+
/**
|
|
359
|
+
* The endpoint V2 common address.
|
|
360
|
+
*/
|
|
322
361
|
endpoint_v2_common?: string;
|
|
323
362
|
} & {
|
|
324
363
|
[key: string]: string;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Deserializer, Serializer } from '@layerzerolabs/lz-serdes';
|
|
2
|
-
import { trim0x, ensure0x } from '@layerzerolabs/lz-utilities';
|
|
3
|
-
import { arrayify } from '@ethersproject/bytes';
|
|
2
|
+
import { trim0x, arrayify, ensure0x } from '@layerzerolabs/lz-utilities';
|
|
4
3
|
import { addressToBytes32 } from '@layerzerolabs/lz-v2-utilities';
|
|
5
4
|
import { MoveResourceNotFoundError, MoveAbortError } from '@layerzerolabs/move-definitions';
|
|
6
5
|
import * as assert from 'assert';
|