@layerzerolabs/lz-evm-oapp-v1 1.5.59 → 1.5.61-tron

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/dist/index.d.mts CHANGED
@@ -15,6 +15,11 @@ interface OnEvent<TRes> {
15
15
  <TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>, listener: TypedListener<TEvent>): TRes;
16
16
  (eventName: string, listener: Listener): TRes;
17
17
  }
18
+ type MinEthersFactory<C, ARGS> = {
19
+ deploy(...a: ARGS[]): Promise<C>;
20
+ };
21
+ type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never;
22
+ type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never;
18
23
  type PromiseOrValue<T> = T | Promise<T>;
19
24
 
20
25
  interface LzAppInterface extends utils.Interface {
@@ -3154,4 +3159,4 @@ declare namespace index {
3154
3159
  };
3155
3160
  }
3156
3161
 
3157
- export { LZEndpointMock, LZEndpointMock__factory, LzApp, LzApp__factory, NonblockingLzApp, NonblockingLzApp__factory, index as factories, index$4 as lzApp, index$3 as mocks };
3162
+ export { GetARGsTypeFromFactory, GetContractTypeFromFactory, LZEndpointMock, LZEndpointMock__factory, LzApp, LzApp__factory, MinEthersFactory, NonblockingLzApp, NonblockingLzApp__factory, OnEvent, PromiseOrValue, TypedEvent, TypedEventFilter, TypedListener, index as factories, index$4 as lzApp, index$3 as mocks };
package/dist/index.d.ts CHANGED
@@ -15,6 +15,11 @@ interface OnEvent<TRes> {
15
15
  <TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>, listener: TypedListener<TEvent>): TRes;
16
16
  (eventName: string, listener: Listener): TRes;
17
17
  }
18
+ type MinEthersFactory<C, ARGS> = {
19
+ deploy(...a: ARGS[]): Promise<C>;
20
+ };
21
+ type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never;
22
+ type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never;
18
23
  type PromiseOrValue<T> = T | Promise<T>;
19
24
 
20
25
  interface LzAppInterface extends utils.Interface {
@@ -3154,4 +3159,4 @@ declare namespace index {
3154
3159
  };
3155
3160
  }
3156
3161
 
3157
- export { LZEndpointMock, LZEndpointMock__factory, LzApp, LzApp__factory, NonblockingLzApp, NonblockingLzApp__factory, index as factories, index$4 as lzApp, index$3 as mocks };
3162
+ export { GetARGsTypeFromFactory, GetContractTypeFromFactory, LZEndpointMock, LZEndpointMock__factory, LzApp, LzApp__factory, MinEthersFactory, NonblockingLzApp, NonblockingLzApp__factory, OnEvent, PromiseOrValue, TypedEvent, TypedEventFilter, TypedListener, index as factories, index$4 as lzApp, index$3 as mocks };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/lz-evm-oapp-v1",
3
- "version": "1.5.59",
3
+ "version": "1.5.61-tron",
4
4
  "license": "BUSL-1.1",
5
5
  "exports": {
6
6
  ".": {
@@ -28,15 +28,15 @@
28
28
  "test": "forge test"
29
29
  },
30
30
  "dependencies": {
31
- "@layerzerolabs/lz-evm-v1-0.7": "^1.5.59",
31
+ "@layerzerolabs/lz-evm-v1-0.7": "^1.5.61-tron",
32
32
  "solidity-bytes-utils": "^0.8.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@ethersproject/abi": "^5.7.0",
36
36
  "@ethersproject/providers": "^5.7.2",
37
- "@layerzerolabs-internal/tsup-config": "^1.5.59",
38
- "@layerzerolabs-internal/typescript-config": "^1.5.59",
39
- "@layerzerolabs/hardhat-config": "^1.5.59",
37
+ "@layerzerolabs-internal/tsup-config": "^1.5.61-tron",
38
+ "@layerzerolabs-internal/typescript-config": "^1.5.61-tron",
39
+ "@layerzerolabs/hardhat-config": "^1.5.61-tron",
40
40
  "@nomicfoundation/hardhat-chai-matchers": "^1.0.6",
41
41
  "@nomicfoundation/hardhat-network-helpers": "^1.0.8",
42
42
  "@nomicfoundation/hardhat-toolbox": "^2.0.1",
@@ -64,5 +64,6 @@
64
64
  },
65
65
  "publishConfig": {
66
66
  "access": "restricted"
67
- }
67
+ },
68
+ "stableVersion": "1.5.62"
68
69
  }