@layerzerolabs/dw-model 0.2.24 → 0.2.26
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/.turbo/turbo-build.log +54 -54
- package/.turbo/turbo-lint.log +1 -1
- package/dist/{5LI6RWBC.cjs → 2J5DXCMN.cjs} +6 -7
- package/dist/2J5DXCMN.cjs.map +1 -0
- package/dist/{T2RJHADL.js → GLVUEQQF.js} +7 -10
- package/dist/GLVUEQQF.js.map +1 -0
- package/dist/{GEY4XYOS.cjs → GME7XA2P.cjs} +6 -11
- package/dist/GME7XA2P.cjs.map +1 -0
- package/dist/{LNEYHCIG.js → HQUTWELX.js} +4 -5
- package/dist/HQUTWELX.js.map +1 -0
- package/dist/deploy/factoryInterfaces.cjs +5 -5
- package/dist/deploy/factoryInterfaces.d.ts +4 -6
- package/dist/deploy/factoryInterfaces.d.ts.map +1 -1
- package/dist/deploy/factoryInterfaces.js +2 -2
- package/dist/deploy/index.cjs +17 -25
- package/dist/deploy/index.js +2 -2
- package/dist/deploy/workflow.cjs +13 -21
- package/dist/deploy/workflow.d.ts +12 -51
- package/dist/deploy/workflow.d.ts.map +1 -1
- package/dist/deploy/workflow.js +1 -1
- package/dist/index.cjs +17 -25
- package/dist/index.js +2 -2
- package/package.json +9 -9
- package/src/deploy/factoryInterfaces.ts +1 -2
- package/src/deploy/workflow.ts +4 -14
- package/dist/5LI6RWBC.cjs.map +0 -1
- package/dist/GEY4XYOS.cjs.map +0 -1
- package/dist/LNEYHCIG.js.map +0 -1
- package/dist/T2RJHADL.js.map +0 -1
package/dist/deploy/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../NCHH4VK3.cjs');
|
|
4
|
-
var
|
|
4
|
+
var _2J5DXCMN_cjs = require('../2J5DXCMN.cjs');
|
|
5
5
|
var ECJRGALM_cjs = require('../ECJRGALM.cjs');
|
|
6
6
|
var PUY2AOFE_cjs = require('../PUY2AOFE.cjs');
|
|
7
7
|
require('../IN5O3BJZ.cjs');
|
|
8
8
|
require('../S5CHYZ3I.cjs');
|
|
9
|
-
var
|
|
9
|
+
var GME7XA2P_cjs = require('../GME7XA2P.cjs');
|
|
10
10
|
var VZP4VEYJ_cjs = require('../VZP4VEYJ.cjs');
|
|
11
11
|
require('../YJF4D23A.cjs');
|
|
12
12
|
|
|
@@ -14,15 +14,15 @@ require('../YJF4D23A.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "artifactRegistryActivityFactorySchema", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return _2J5DXCMN_cjs.artifactRegistryActivityFactorySchema; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "realIdSchema", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return _2J5DXCMN_cjs.realIdSchema; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "resourceRefSchema", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return _2J5DXCMN_cjs.resourceRefSchema; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "createResourceBuilder", {
|
|
28
28
|
enumerable: true,
|
|
@@ -90,59 +90,51 @@ Object.defineProperty(exports, "withIntrinsicAddress", {
|
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "BaseDeploymentSavingArtifactsSchema", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
94
|
-
});
|
|
95
|
-
Object.defineProperty(exports, "BaseDeploymentSchema", {
|
|
96
|
-
enumerable: true,
|
|
97
|
-
get: function () { return GEY4XYOS_cjs.BaseDeploymentSchema; }
|
|
98
|
-
});
|
|
99
|
-
Object.defineProperty(exports, "DeploymentInfoSchema", {
|
|
100
|
-
enumerable: true,
|
|
101
|
-
get: function () { return GEY4XYOS_cjs.DeploymentInfoSchema; }
|
|
93
|
+
get: function () { return GME7XA2P_cjs.BaseDeploymentSavingArtifactsSchema; }
|
|
102
94
|
});
|
|
103
95
|
Object.defineProperty(exports, "VerificationInfoSchema", {
|
|
104
96
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
97
|
+
get: function () { return GME7XA2P_cjs.VerificationInfoSchema; }
|
|
106
98
|
});
|
|
107
99
|
Object.defineProperty(exports, "deployWorkflowChainResultItemSchema", {
|
|
108
100
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
101
|
+
get: function () { return GME7XA2P_cjs.deployWorkflowChainResultItemSchema; }
|
|
110
102
|
});
|
|
111
103
|
Object.defineProperty(exports, "deployWorkflowChainResultSchema", {
|
|
112
104
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
105
|
+
get: function () { return GME7XA2P_cjs.deployWorkflowChainResultSchema; }
|
|
114
106
|
});
|
|
115
107
|
Object.defineProperty(exports, "deployWorkflowChainStateSchema", {
|
|
116
108
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
109
|
+
get: function () { return GME7XA2P_cjs.deployWorkflowChainStateSchema; }
|
|
118
110
|
});
|
|
119
111
|
Object.defineProperty(exports, "deployWorkflowOrchestratorResultSchema", {
|
|
120
112
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
113
|
+
get: function () { return GME7XA2P_cjs.deployWorkflowOrchestratorResultSchema; }
|
|
122
114
|
});
|
|
123
115
|
Object.defineProperty(exports, "deployWorkflowOrchestratorStateSchema", {
|
|
124
116
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
117
|
+
get: function () { return GME7XA2P_cjs.deployWorkflowOrchestratorStateSchema; }
|
|
126
118
|
});
|
|
127
119
|
Object.defineProperty(exports, "extractVerificationArtifactBaseArgs", {
|
|
128
120
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
121
|
+
get: function () { return GME7XA2P_cjs.extractVerificationArtifactBaseArgs; }
|
|
130
122
|
});
|
|
131
123
|
Object.defineProperty(exports, "getDeploymentBaseArgs", {
|
|
132
124
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
125
|
+
get: function () { return GME7XA2P_cjs.getDeploymentBaseArgs; }
|
|
134
126
|
});
|
|
135
127
|
Object.defineProperty(exports, "getVerificationInfoBaseArgs", {
|
|
136
128
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
129
|
+
get: function () { return GME7XA2P_cjs.getVerificationInfoBaseArgs; }
|
|
138
130
|
});
|
|
139
131
|
Object.defineProperty(exports, "saveDeploymentBaseArgs", {
|
|
140
132
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
133
|
+
get: function () { return GME7XA2P_cjs.saveDeploymentBaseArgs; }
|
|
142
134
|
});
|
|
143
135
|
Object.defineProperty(exports, "saveVerificationInfoBaseArgs", {
|
|
144
136
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
137
|
+
get: function () { return GME7XA2P_cjs.saveVerificationInfoBaseArgs; }
|
|
146
138
|
});
|
|
147
139
|
Object.defineProperty(exports, "ArtifactType", {
|
|
148
140
|
enumerable: true,
|
package/dist/deploy/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '../CA6UC3D3.js';
|
|
2
|
-
export { artifactRegistryActivityFactorySchema, realIdSchema, resourceRefSchema } from '../
|
|
2
|
+
export { artifactRegistryActivityFactorySchema, realIdSchema, resourceRefSchema } from '../HQUTWELX.js';
|
|
3
3
|
export { createResourceBuilder } from '../3BD3OCGS.js';
|
|
4
4
|
export { baseContractResourceSchema, baseMeshResourceSchema, baseResourceSchema, contractResourceReferenceSchema, contractResourceReferenceSchemaFor, createResolvedResourceSchema, extractContractResourceReferences, extractIdFromContractResourceReference, extractIdFromMeshResourceReference, extractMeshResourceReferences, meshResourceReferenceSchema, meshResourceReferenceSchemaFor, resolvedContractResourceReferenceSchema, resolvedMeshResourceReferenceSchema, withIntrinsicAddress } from '../IUFXXZ2R.js';
|
|
5
5
|
import '../ZCFXJFGI.js';
|
|
6
6
|
import '../46VB3YIH.js';
|
|
7
|
-
export { BaseDeploymentSavingArtifactsSchema,
|
|
7
|
+
export { BaseDeploymentSavingArtifactsSchema, VerificationInfoSchema, deployWorkflowChainResultItemSchema, deployWorkflowChainResultSchema, deployWorkflowChainStateSchema, deployWorkflowOrchestratorResultSchema, deployWorkflowOrchestratorStateSchema, extractVerificationArtifactBaseArgs, getDeploymentBaseArgs, getVerificationInfoBaseArgs, saveDeploymentBaseArgs, saveVerificationInfoBaseArgs } from '../GLVUEQQF.js';
|
|
8
8
|
export { ArtifactType, artifactWithTypeSchema, deploymentArtifactSchema, fullDeploymentArtifactSchema, identityOnlyDeploymentArtifactSchema, metadataArtifactSchema, solanaDeploymentArtifactExtraInfoSchema, suiDeploymentArtifactExtraInfoSchema, verificationArtifactSchema } from '../AB7BJRWS.js';
|
|
9
9
|
import '../VUOMXK5T.js';
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/dist/deploy/workflow.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var GME7XA2P_cjs = require('../GME7XA2P.cjs');
|
|
4
4
|
require('../VZP4VEYJ.cjs');
|
|
5
5
|
require('../YJF4D23A.cjs');
|
|
6
6
|
|
|
@@ -8,59 +8,51 @@ require('../YJF4D23A.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "BaseDeploymentSavingArtifactsSchema", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "BaseDeploymentSchema", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () { return GEY4XYOS_cjs.BaseDeploymentSchema; }
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "DeploymentInfoSchema", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return GEY4XYOS_cjs.DeploymentInfoSchema; }
|
|
11
|
+
get: function () { return GME7XA2P_cjs.BaseDeploymentSavingArtifactsSchema; }
|
|
20
12
|
});
|
|
21
13
|
Object.defineProperty(exports, "VerificationInfoSchema", {
|
|
22
14
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
15
|
+
get: function () { return GME7XA2P_cjs.VerificationInfoSchema; }
|
|
24
16
|
});
|
|
25
17
|
Object.defineProperty(exports, "deployWorkflowChainResultItemSchema", {
|
|
26
18
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
19
|
+
get: function () { return GME7XA2P_cjs.deployWorkflowChainResultItemSchema; }
|
|
28
20
|
});
|
|
29
21
|
Object.defineProperty(exports, "deployWorkflowChainResultSchema", {
|
|
30
22
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
23
|
+
get: function () { return GME7XA2P_cjs.deployWorkflowChainResultSchema; }
|
|
32
24
|
});
|
|
33
25
|
Object.defineProperty(exports, "deployWorkflowChainStateSchema", {
|
|
34
26
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
27
|
+
get: function () { return GME7XA2P_cjs.deployWorkflowChainStateSchema; }
|
|
36
28
|
});
|
|
37
29
|
Object.defineProperty(exports, "deployWorkflowOrchestratorResultSchema", {
|
|
38
30
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
31
|
+
get: function () { return GME7XA2P_cjs.deployWorkflowOrchestratorResultSchema; }
|
|
40
32
|
});
|
|
41
33
|
Object.defineProperty(exports, "deployWorkflowOrchestratorStateSchema", {
|
|
42
34
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
35
|
+
get: function () { return GME7XA2P_cjs.deployWorkflowOrchestratorStateSchema; }
|
|
44
36
|
});
|
|
45
37
|
Object.defineProperty(exports, "extractVerificationArtifactBaseArgs", {
|
|
46
38
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
39
|
+
get: function () { return GME7XA2P_cjs.extractVerificationArtifactBaseArgs; }
|
|
48
40
|
});
|
|
49
41
|
Object.defineProperty(exports, "getDeploymentBaseArgs", {
|
|
50
42
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
43
|
+
get: function () { return GME7XA2P_cjs.getDeploymentBaseArgs; }
|
|
52
44
|
});
|
|
53
45
|
Object.defineProperty(exports, "getVerificationInfoBaseArgs", {
|
|
54
46
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
47
|
+
get: function () { return GME7XA2P_cjs.getVerificationInfoBaseArgs; }
|
|
56
48
|
});
|
|
57
49
|
Object.defineProperty(exports, "saveDeploymentBaseArgs", {
|
|
58
50
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
51
|
+
get: function () { return GME7XA2P_cjs.saveDeploymentBaseArgs; }
|
|
60
52
|
});
|
|
61
53
|
Object.defineProperty(exports, "saveVerificationInfoBaseArgs", {
|
|
62
54
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
55
|
+
get: function () { return GME7XA2P_cjs.saveVerificationInfoBaseArgs; }
|
|
64
56
|
});
|
|
65
57
|
//# sourceMappingURL=workflow.cjs.map
|
|
66
58
|
//# sourceMappingURL=workflow.cjs.map
|
|
@@ -3,46 +3,10 @@ import { z } from 'zod';
|
|
|
3
3
|
import { ChainName } from '@layerzerolabs/layerzero-definitions';
|
|
4
4
|
import type { DeploymentArtifact, SolanaDeploymentArtifactExtraInfo } from './artifact';
|
|
5
5
|
export type { SuiObjectChange };
|
|
6
|
-
/** @deprecated use deploymentArtifactSchema */
|
|
7
|
-
export declare const BaseDeploymentSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
8
|
-
contractName: z.ZodString;
|
|
9
|
-
chainName: z.ZodEnum<typeof ChainName>;
|
|
10
|
-
address: z.ZodType<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown, z.core.$ZodTypeInternals<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown>>;
|
|
11
|
-
nativeAddress: z.ZodString;
|
|
12
|
-
bytecodeHash: z.ZodOptional<z.ZodString>;
|
|
13
|
-
deploymentTimestamp: z.ZodNumber;
|
|
14
|
-
deployerAddress: z.ZodType<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown, z.core.$ZodTypeInternals<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown>>;
|
|
15
|
-
txHash: z.ZodString;
|
|
16
|
-
abiEncodedConstructorArguments: z.ZodOptional<z.ZodType<`0x${string}`, unknown, z.core.$ZodTypeInternals<`0x${string}`, unknown>>>;
|
|
17
|
-
extraDeploymentInfo: z.ZodOptional<z.ZodAny>;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
contractName: z.ZodString;
|
|
20
|
-
chainName: z.ZodEnum<typeof ChainName>;
|
|
21
|
-
address: z.ZodType<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown, z.core.$ZodTypeInternals<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown>>;
|
|
22
|
-
}, z.core.$strip>]>;
|
|
23
|
-
/** @deprecated use DeploymentArtifact */
|
|
24
|
-
export type DeploymentInfo = DeploymentArtifact;
|
|
25
6
|
/** @deprecated */
|
|
26
7
|
export type SolanaDeploymentInfo = Omit<DeploymentArtifact, 'extraDeploymentInfo'> & {
|
|
27
8
|
extraDeploymentInfo: SolanaDeploymentArtifactExtraInfo;
|
|
28
9
|
};
|
|
29
|
-
/** @deprecated use deploymentArtifactSchema */
|
|
30
|
-
export declare const DeploymentInfoSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
31
|
-
contractName: z.ZodString;
|
|
32
|
-
chainName: z.ZodEnum<typeof ChainName>;
|
|
33
|
-
address: z.ZodType<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown, z.core.$ZodTypeInternals<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown>>;
|
|
34
|
-
nativeAddress: z.ZodString;
|
|
35
|
-
bytecodeHash: z.ZodOptional<z.ZodString>;
|
|
36
|
-
deploymentTimestamp: z.ZodNumber;
|
|
37
|
-
deployerAddress: z.ZodType<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown, z.core.$ZodTypeInternals<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown>>;
|
|
38
|
-
txHash: z.ZodString;
|
|
39
|
-
abiEncodedConstructorArguments: z.ZodOptional<z.ZodType<`0x${string}`, unknown, z.core.$ZodTypeInternals<`0x${string}`, unknown>>>;
|
|
40
|
-
extraDeploymentInfo: z.ZodOptional<z.ZodAny>;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
contractName: z.ZodString;
|
|
43
|
-
chainName: z.ZodEnum<typeof ChainName>;
|
|
44
|
-
address: z.ZodType<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown, z.core.$ZodTypeInternals<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown>>;
|
|
45
|
-
}, z.core.$strip>]>;
|
|
46
10
|
export declare const VerificationInfoSchema: z.ZodObject<{
|
|
47
11
|
contractName: z.ZodEnum<typeof ChainName>;
|
|
48
12
|
address: z.ZodType<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown, z.core.$ZodTypeInternals<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown>>;
|
|
@@ -55,7 +19,7 @@ export declare const deployWorkflowChainResultItemSchema: z.ZodUnion<readonly [z
|
|
|
55
19
|
}, z.core.$strip>, z.ZodObject<{
|
|
56
20
|
name: z.ZodString;
|
|
57
21
|
success: z.ZodLiteral<true>;
|
|
58
|
-
|
|
22
|
+
deploymentArtifact: z.ZodUnion<readonly [z.ZodObject<{
|
|
59
23
|
contractName: z.ZodString;
|
|
60
24
|
chainName: z.ZodEnum<typeof ChainName>;
|
|
61
25
|
address: z.ZodType<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown, z.core.$ZodTypeInternals<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown>>;
|
|
@@ -80,7 +44,7 @@ export declare const deployWorkflowChainResultSchema: z.ZodObject<{
|
|
|
80
44
|
}, z.core.$strip>, z.ZodObject<{
|
|
81
45
|
name: z.ZodString;
|
|
82
46
|
success: z.ZodLiteral<true>;
|
|
83
|
-
|
|
47
|
+
deploymentArtifact: z.ZodUnion<readonly [z.ZodObject<{
|
|
84
48
|
contractName: z.ZodString;
|
|
85
49
|
chainName: z.ZodEnum<typeof ChainName>;
|
|
86
50
|
address: z.ZodType<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown, z.core.$ZodTypeInternals<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown>>;
|
|
@@ -106,7 +70,7 @@ export declare const deployWorkflowChainStateSchema: z.ZodObject<{
|
|
|
106
70
|
}, z.core.$strip>, z.ZodObject<{
|
|
107
71
|
name: z.ZodString;
|
|
108
72
|
success: z.ZodLiteral<true>;
|
|
109
|
-
|
|
73
|
+
deploymentArtifact: z.ZodUnion<readonly [z.ZodObject<{
|
|
110
74
|
contractName: z.ZodString;
|
|
111
75
|
chainName: z.ZodEnum<typeof ChainName>;
|
|
112
76
|
address: z.ZodType<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown, z.core.$ZodTypeInternals<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown>>;
|
|
@@ -138,7 +102,7 @@ export declare const deployWorkflowOrchestratorResultSchema: z.ZodObject<{
|
|
|
138
102
|
}, z.core.$strip>, z.ZodObject<{
|
|
139
103
|
name: z.ZodString;
|
|
140
104
|
success: z.ZodLiteral<true>;
|
|
141
|
-
|
|
105
|
+
deploymentArtifact: z.ZodUnion<readonly [z.ZodObject<{
|
|
142
106
|
contractName: z.ZodString;
|
|
143
107
|
chainName: z.ZodEnum<typeof ChainName>;
|
|
144
108
|
address: z.ZodType<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown, z.core.$ZodTypeInternals<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown>>;
|
|
@@ -166,7 +130,7 @@ export declare const deployWorkflowOrchestratorStateSchema: z.ZodObject<{
|
|
|
166
130
|
}, z.core.$strip>, z.ZodObject<{
|
|
167
131
|
name: z.ZodString;
|
|
168
132
|
success: z.ZodLiteral<true>;
|
|
169
|
-
|
|
133
|
+
deploymentArtifact: z.ZodUnion<readonly [z.ZodObject<{
|
|
170
134
|
contractName: z.ZodString;
|
|
171
135
|
chainName: z.ZodEnum<typeof ChainName>;
|
|
172
136
|
address: z.ZodType<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown, z.core.$ZodTypeInternals<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown>>;
|
|
@@ -193,8 +157,7 @@ export declare const getDeploymentBaseArgs: z.ZodObject<{
|
|
|
193
157
|
}, z.core.$strip>;
|
|
194
158
|
export type GetDeploymentBaseArgs = z.infer<typeof getDeploymentBaseArgs>;
|
|
195
159
|
export declare const saveDeploymentBaseArgs: z.ZodObject<{
|
|
196
|
-
|
|
197
|
-
deploymentInfo: z.ZodObject<{
|
|
160
|
+
deploymentArtifact: z.ZodObject<{
|
|
198
161
|
contractName: z.ZodString;
|
|
199
162
|
chainName: z.ZodEnum<typeof ChainName>;
|
|
200
163
|
address: z.ZodType<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown, z.core.$ZodTypeInternals<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown>>;
|
|
@@ -235,7 +198,7 @@ export declare const extractVerificationArtifactBaseArgs: z.ZodObject<{
|
|
|
235
198
|
parallelizingKey?: string | undefined;
|
|
236
199
|
}>;
|
|
237
200
|
}, unknown>>;
|
|
238
|
-
|
|
201
|
+
deploymentArtifact: z.ZodObject<{
|
|
239
202
|
contractName: z.ZodString;
|
|
240
203
|
chainName: z.ZodEnum<typeof ChainName>;
|
|
241
204
|
address: z.ZodType<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown, z.core.$ZodTypeInternals<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown>>;
|
|
@@ -251,7 +214,7 @@ export declare const extractVerificationArtifactBaseArgs: z.ZodObject<{
|
|
|
251
214
|
}, z.core.$strip>;
|
|
252
215
|
export type extractVerificationArtifactBaseArgs = z.infer<typeof extractVerificationArtifactBaseArgs>;
|
|
253
216
|
export declare const saveVerificationInfoBaseArgs: z.ZodObject<{
|
|
254
|
-
|
|
217
|
+
deploymentArtifact: z.ZodObject<{
|
|
255
218
|
contractName: z.ZodString;
|
|
256
219
|
chainName: z.ZodEnum<typeof ChainName>;
|
|
257
220
|
address: z.ZodType<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown, z.core.$ZodTypeInternals<import("@layerzerolabs/common-chain-model").NormalizedHexString, unknown>>;
|
|
@@ -303,15 +266,13 @@ export declare const BaseDeploymentSavingArtifactsSchema: z.ZodObject<{
|
|
|
303
266
|
extraDeploymentInfo?: any;
|
|
304
267
|
} | undefined>, unknown>>;
|
|
305
268
|
saveDeployment: z.ZodType<(args_0: {
|
|
306
|
-
|
|
307
|
-
deploymentInfo: {
|
|
269
|
+
deploymentArtifact: {
|
|
308
270
|
contractName: string;
|
|
309
271
|
chainName: ChainName;
|
|
310
272
|
address: import("@layerzerolabs/common-chain-model").NormalizedHexString;
|
|
311
273
|
};
|
|
312
274
|
}) => Promise<void>, unknown, z.core.$ZodTypeInternals<(args_0: {
|
|
313
|
-
|
|
314
|
-
deploymentInfo: {
|
|
275
|
+
deploymentArtifact: {
|
|
315
276
|
contractName: string;
|
|
316
277
|
chainName: ChainName;
|
|
317
278
|
address: import("@layerzerolabs/common-chain-model").NormalizedHexString;
|
|
@@ -323,7 +284,7 @@ export declare const BaseDeploymentSavingArtifactsSchema: z.ZodObject<{
|
|
|
323
284
|
contractName: string;
|
|
324
285
|
}) => Promise<any>, unknown>>;
|
|
325
286
|
saveVerificationInfo: z.ZodType<(args_0: {
|
|
326
|
-
|
|
287
|
+
deploymentArtifact: {
|
|
327
288
|
contractName: string;
|
|
328
289
|
chainName: ChainName;
|
|
329
290
|
address: import("@layerzerolabs/common-chain-model").NormalizedHexString;
|
|
@@ -337,7 +298,7 @@ export declare const BaseDeploymentSavingArtifactsSchema: z.ZodObject<{
|
|
|
337
298
|
};
|
|
338
299
|
verificationInfo: any;
|
|
339
300
|
}) => Promise<void>, unknown, z.core.$ZodTypeInternals<(args_0: {
|
|
340
|
-
|
|
301
|
+
deploymentArtifact: {
|
|
341
302
|
contractName: string;
|
|
342
303
|
chainName: ChainName;
|
|
343
304
|
address: import("@layerzerolabs/common-chain-model").NormalizedHexString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/deploy/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAGjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,iCAAiC,EAAE,MAAM,YAAY,CAAC;AAQxF,YAAY,EAAE,eAAe,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/deploy/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAGjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,iCAAiC,EAAE,MAAM,YAAY,CAAC;AAQxF,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC,kBAAkB;AAClB,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG;IACjF,mBAAmB,EAAE,iCAAiC,CAAC;CAC1D,CAAC;AAGF,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAcH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;mBAG9C,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;iBAE1C,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEjD,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEhD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AACpG,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,sCAAsC,CAChD,CAAC;AAEF,eAAO,MAAM,qBAAqB;;iBAAyC,CAAC;AAC5E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,eAAO,MAAM,sBAAsB;;;;;;iBAEjC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEtF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI9C,CAAC;AACH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,mCAAmC,CAC7C,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;iBAGvC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAExF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiB9C,CAAC"}
|
package/dist/deploy/workflow.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BaseDeploymentSavingArtifactsSchema,
|
|
1
|
+
export { BaseDeploymentSavingArtifactsSchema, VerificationInfoSchema, deployWorkflowChainResultItemSchema, deployWorkflowChainResultSchema, deployWorkflowChainStateSchema, deployWorkflowOrchestratorResultSchema, deployWorkflowOrchestratorStateSchema, extractVerificationArtifactBaseArgs, getDeploymentBaseArgs, getVerificationInfoBaseArgs, saveDeploymentBaseArgs, saveVerificationInfoBaseArgs } from '../GLVUEQQF.js';
|
|
2
2
|
import '../AB7BJRWS.js';
|
|
3
3
|
import '../VUOMXK5T.js';
|
|
4
4
|
//# sourceMappingURL=workflow.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -6,12 +6,12 @@ var X7GZKVDG_cjs = require('./X7GZKVDG.cjs');
|
|
|
6
6
|
require('./X4ZNR5GZ.cjs');
|
|
7
7
|
var QLEJL4UB_cjs = require('./QLEJL4UB.cjs');
|
|
8
8
|
require('./NCHH4VK3.cjs');
|
|
9
|
-
var
|
|
9
|
+
var _2J5DXCMN_cjs = require('./2J5DXCMN.cjs');
|
|
10
10
|
var ECJRGALM_cjs = require('./ECJRGALM.cjs');
|
|
11
11
|
var PUY2AOFE_cjs = require('./PUY2AOFE.cjs');
|
|
12
12
|
require('./IN5O3BJZ.cjs');
|
|
13
13
|
var S5CHYZ3I_cjs = require('./S5CHYZ3I.cjs');
|
|
14
|
-
var
|
|
14
|
+
var GME7XA2P_cjs = require('./GME7XA2P.cjs');
|
|
15
15
|
var VZP4VEYJ_cjs = require('./VZP4VEYJ.cjs');
|
|
16
16
|
var ONIG6I4S_cjs = require('./ONIG6I4S.cjs');
|
|
17
17
|
require('./YJF4D23A.cjs');
|
|
@@ -76,15 +76,15 @@ Object.defineProperty(exports, "wireWorkflowOrchestratorStateSchema", {
|
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "artifactRegistryActivityFactorySchema", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return _2J5DXCMN_cjs.artifactRegistryActivityFactorySchema; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "realIdSchema", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return _2J5DXCMN_cjs.realIdSchema; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "resourceRefSchema", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return _2J5DXCMN_cjs.resourceRefSchema; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "createResourceBuilder", {
|
|
90
90
|
enumerable: true,
|
|
@@ -216,59 +216,51 @@ Object.defineProperty(exports, "upgradeableConfigSchema", {
|
|
|
216
216
|
});
|
|
217
217
|
Object.defineProperty(exports, "BaseDeploymentSavingArtifactsSchema", {
|
|
218
218
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
220
|
-
});
|
|
221
|
-
Object.defineProperty(exports, "BaseDeploymentSchema", {
|
|
222
|
-
enumerable: true,
|
|
223
|
-
get: function () { return GEY4XYOS_cjs.BaseDeploymentSchema; }
|
|
224
|
-
});
|
|
225
|
-
Object.defineProperty(exports, "DeploymentInfoSchema", {
|
|
226
|
-
enumerable: true,
|
|
227
|
-
get: function () { return GEY4XYOS_cjs.DeploymentInfoSchema; }
|
|
219
|
+
get: function () { return GME7XA2P_cjs.BaseDeploymentSavingArtifactsSchema; }
|
|
228
220
|
});
|
|
229
221
|
Object.defineProperty(exports, "VerificationInfoSchema", {
|
|
230
222
|
enumerable: true,
|
|
231
|
-
get: function () { return
|
|
223
|
+
get: function () { return GME7XA2P_cjs.VerificationInfoSchema; }
|
|
232
224
|
});
|
|
233
225
|
Object.defineProperty(exports, "deployWorkflowChainResultItemSchema", {
|
|
234
226
|
enumerable: true,
|
|
235
|
-
get: function () { return
|
|
227
|
+
get: function () { return GME7XA2P_cjs.deployWorkflowChainResultItemSchema; }
|
|
236
228
|
});
|
|
237
229
|
Object.defineProperty(exports, "deployWorkflowChainResultSchema", {
|
|
238
230
|
enumerable: true,
|
|
239
|
-
get: function () { return
|
|
231
|
+
get: function () { return GME7XA2P_cjs.deployWorkflowChainResultSchema; }
|
|
240
232
|
});
|
|
241
233
|
Object.defineProperty(exports, "deployWorkflowChainStateSchema", {
|
|
242
234
|
enumerable: true,
|
|
243
|
-
get: function () { return
|
|
235
|
+
get: function () { return GME7XA2P_cjs.deployWorkflowChainStateSchema; }
|
|
244
236
|
});
|
|
245
237
|
Object.defineProperty(exports, "deployWorkflowOrchestratorResultSchema", {
|
|
246
238
|
enumerable: true,
|
|
247
|
-
get: function () { return
|
|
239
|
+
get: function () { return GME7XA2P_cjs.deployWorkflowOrchestratorResultSchema; }
|
|
248
240
|
});
|
|
249
241
|
Object.defineProperty(exports, "deployWorkflowOrchestratorStateSchema", {
|
|
250
242
|
enumerable: true,
|
|
251
|
-
get: function () { return
|
|
243
|
+
get: function () { return GME7XA2P_cjs.deployWorkflowOrchestratorStateSchema; }
|
|
252
244
|
});
|
|
253
245
|
Object.defineProperty(exports, "extractVerificationArtifactBaseArgs", {
|
|
254
246
|
enumerable: true,
|
|
255
|
-
get: function () { return
|
|
247
|
+
get: function () { return GME7XA2P_cjs.extractVerificationArtifactBaseArgs; }
|
|
256
248
|
});
|
|
257
249
|
Object.defineProperty(exports, "getDeploymentBaseArgs", {
|
|
258
250
|
enumerable: true,
|
|
259
|
-
get: function () { return
|
|
251
|
+
get: function () { return GME7XA2P_cjs.getDeploymentBaseArgs; }
|
|
260
252
|
});
|
|
261
253
|
Object.defineProperty(exports, "getVerificationInfoBaseArgs", {
|
|
262
254
|
enumerable: true,
|
|
263
|
-
get: function () { return
|
|
255
|
+
get: function () { return GME7XA2P_cjs.getVerificationInfoBaseArgs; }
|
|
264
256
|
});
|
|
265
257
|
Object.defineProperty(exports, "saveDeploymentBaseArgs", {
|
|
266
258
|
enumerable: true,
|
|
267
|
-
get: function () { return
|
|
259
|
+
get: function () { return GME7XA2P_cjs.saveDeploymentBaseArgs; }
|
|
268
260
|
});
|
|
269
261
|
Object.defineProperty(exports, "saveVerificationInfoBaseArgs", {
|
|
270
262
|
enumerable: true,
|
|
271
|
-
get: function () { return
|
|
263
|
+
get: function () { return GME7XA2P_cjs.saveVerificationInfoBaseArgs; }
|
|
272
264
|
});
|
|
273
265
|
Object.defineProperty(exports, "ArtifactType", {
|
|
274
266
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -4,12 +4,12 @@ export { BaseContractRole } from './JSK5QSWJ.js';
|
|
|
4
4
|
import './N5VNZXZB.js';
|
|
5
5
|
export { wireWorkflowChainResultSchema, wireWorkflowChainStateSchema, wireWorkflowFilterArgsSchema, wireWorkflowOrchestratorResultSchema, wireWorkflowOrchestratorStateSchema } from './I5L5NLZY.js';
|
|
6
6
|
import './CA6UC3D3.js';
|
|
7
|
-
export { artifactRegistryActivityFactorySchema, realIdSchema, resourceRefSchema } from './
|
|
7
|
+
export { artifactRegistryActivityFactorySchema, realIdSchema, resourceRefSchema } from './HQUTWELX.js';
|
|
8
8
|
export { createResourceBuilder } from './3BD3OCGS.js';
|
|
9
9
|
export { baseContractResourceSchema, baseMeshResourceSchema, baseResourceSchema, contractResourceReferenceSchema, contractResourceReferenceSchemaFor, createResolvedResourceSchema, extractContractResourceReferences, extractIdFromContractResourceReference, extractIdFromMeshResourceReference, extractMeshResourceReferences, meshResourceReferenceSchema, meshResourceReferenceSchemaFor, resolvedContractResourceReferenceSchema, resolvedMeshResourceReferenceSchema, withIntrinsicAddress } from './IUFXXZ2R.js';
|
|
10
10
|
import './ZCFXJFGI.js';
|
|
11
11
|
export { EvmProxyType, ProxyType, SEPARATE_PROXY_ADMIN_TYPES, TUP_PROXY_TYPES, UUPS_PROXY_TYPES, UpgradeType, codeUpgradeableConfigSchema, initializeDataResultSchema, isTupProxy, isUupsProxy, notUpgradeableConfigSchema, proxyConfigSchema, proxyTypeSchema, requiresSeparateProxyAdminDeploy, upgradeTypeSchema, upgradeableConfigSchema } from './46VB3YIH.js';
|
|
12
|
-
export { BaseDeploymentSavingArtifactsSchema,
|
|
12
|
+
export { BaseDeploymentSavingArtifactsSchema, VerificationInfoSchema, deployWorkflowChainResultItemSchema, deployWorkflowChainResultSchema, deployWorkflowChainStateSchema, deployWorkflowOrchestratorResultSchema, deployWorkflowOrchestratorStateSchema, extractVerificationArtifactBaseArgs, getDeploymentBaseArgs, getVerificationInfoBaseArgs, saveDeploymentBaseArgs, saveVerificationInfoBaseArgs } from './GLVUEQQF.js';
|
|
13
13
|
export { ArtifactType, artifactWithTypeSchema, deploymentArtifactSchema, fullDeploymentArtifactSchema, identityOnlyDeploymentArtifactSchema, metadataArtifactSchema, solanaDeploymentArtifactExtraInfoSchema, suiDeploymentArtifactExtraInfoSchema, verificationArtifactSchema } from './AB7BJRWS.js';
|
|
14
14
|
export { generateThrowCreateSetRoleTransactions, generateThrowHasRole, generateThrowRoleManagement } from './45LWGDPP.js';
|
|
15
15
|
import './VUOMXK5T.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/dw-model",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.26",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -15,19 +15,19 @@
|
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"zod": "4.3.5",
|
|
18
|
-
"@layerzerolabs/common-
|
|
19
|
-
"@layerzerolabs/
|
|
20
|
-
"@layerzerolabs/
|
|
21
|
-
"@layerzerolabs/
|
|
22
|
-
"@layerzerolabs/
|
|
23
|
-
"@layerzerolabs/
|
|
18
|
+
"@layerzerolabs/common-chain-model": "0.2.26",
|
|
19
|
+
"@layerzerolabs/common-error-utils": "0.2.26",
|
|
20
|
+
"@layerzerolabs/gated-transaction": "0.2.26",
|
|
21
|
+
"@layerzerolabs/typescript-utils": "0.2.26",
|
|
22
|
+
"@layerzerolabs/layerzero-definitions": "0.2.26",
|
|
23
|
+
"@layerzerolabs/zod-utils": "0.2.26"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@mysten/sui": "^1.35.0",
|
|
27
27
|
"tsup": "^8.4.0",
|
|
28
28
|
"vitest": "^3.2.3",
|
|
29
|
-
"@layerzerolabs/tsup-configuration": "0.2.
|
|
30
|
-
"@layerzerolabs/typescript-configuration": "0.2.
|
|
29
|
+
"@layerzerolabs/tsup-configuration": "0.2.26",
|
|
30
|
+
"@layerzerolabs/typescript-configuration": "0.2.26"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "restricted",
|
|
@@ -69,8 +69,7 @@ export const artifactRegistryActivityFactorySchema = z.object({
|
|
|
69
69
|
resource: customSchema<BaseResource | ResolvedResource<BaseResource>>(),
|
|
70
70
|
}),
|
|
71
71
|
z.object({
|
|
72
|
-
|
|
73
|
-
deploymentInfo: deploymentArtifactSchema,
|
|
72
|
+
deploymentArtifact: deploymentArtifactSchema,
|
|
74
73
|
}),
|
|
75
74
|
]),
|
|
76
75
|
output: z.promise(z.void()),
|
package/src/deploy/workflow.ts
CHANGED
|
@@ -16,20 +16,11 @@ import {
|
|
|
16
16
|
|
|
17
17
|
export type { SuiObjectChange };
|
|
18
18
|
|
|
19
|
-
// exported for backwards compatibility, should use the new schemas
|
|
20
|
-
/** @deprecated use deploymentArtifactSchema */
|
|
21
|
-
export const BaseDeploymentSchema = deploymentArtifactSchema;
|
|
22
|
-
|
|
23
|
-
/** @deprecated use DeploymentArtifact */
|
|
24
|
-
export type DeploymentInfo = DeploymentArtifact;
|
|
25
19
|
/** @deprecated */
|
|
26
20
|
export type SolanaDeploymentInfo = Omit<DeploymentArtifact, 'extraDeploymentInfo'> & {
|
|
27
21
|
extraDeploymentInfo: SolanaDeploymentArtifactExtraInfo;
|
|
28
22
|
};
|
|
29
23
|
|
|
30
|
-
/** @deprecated use deploymentArtifactSchema */
|
|
31
|
-
export const DeploymentInfoSchema = BaseDeploymentSchema;
|
|
32
|
-
|
|
33
24
|
// FIXME clean this up to use the new artifact schema
|
|
34
25
|
export const VerificationInfoSchema = z.object({
|
|
35
26
|
contractName: z.enum(ChainName),
|
|
@@ -46,7 +37,7 @@ const failedDeployment = z.object({
|
|
|
46
37
|
const successfulDeployment = z.object({
|
|
47
38
|
name: z.string(),
|
|
48
39
|
success: z.literal(true),
|
|
49
|
-
|
|
40
|
+
deploymentArtifact: deploymentArtifactSchema,
|
|
50
41
|
});
|
|
51
42
|
|
|
52
43
|
export const deployWorkflowChainResultItemSchema = z.union([
|
|
@@ -84,8 +75,7 @@ export const getDeploymentBaseArgs = z.object({ contractName: z.string() });
|
|
|
84
75
|
export type GetDeploymentBaseArgs = z.infer<typeof getDeploymentBaseArgs>;
|
|
85
76
|
|
|
86
77
|
export const saveDeploymentBaseArgs = z.object({
|
|
87
|
-
|
|
88
|
-
deploymentInfo: identityOnlyDeploymentArtifactSchema,
|
|
78
|
+
deploymentArtifact: identityOnlyDeploymentArtifactSchema,
|
|
89
79
|
});
|
|
90
80
|
export type SaveDeploymentBaseArgs = z.infer<typeof saveDeploymentBaseArgs>;
|
|
91
81
|
|
|
@@ -96,7 +86,7 @@ export type GetVerificationInfoBaseArgs = z.infer<typeof getVerificationInfoBase
|
|
|
96
86
|
|
|
97
87
|
export const extractVerificationArtifactBaseArgs = z.object({
|
|
98
88
|
gtx: successfulGatedTransactionSchema(),
|
|
99
|
-
|
|
89
|
+
deploymentArtifact: fullDeploymentArtifactSchema,
|
|
100
90
|
nonVerifyable: z.boolean().optional(),
|
|
101
91
|
});
|
|
102
92
|
export type extractVerificationArtifactBaseArgs = z.infer<
|
|
@@ -104,7 +94,7 @@ export type extractVerificationArtifactBaseArgs = z.infer<
|
|
|
104
94
|
>;
|
|
105
95
|
|
|
106
96
|
export const saveVerificationInfoBaseArgs = z.object({
|
|
107
|
-
|
|
97
|
+
deploymentArtifact: fullDeploymentArtifactSchema,
|
|
108
98
|
verificationInfo: verificationArtifactSchema,
|
|
109
99
|
});
|
|
110
100
|
|
package/dist/5LI6RWBC.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/deploy/factoryInterfaces.ts"],"names":["resourceRefSchema","z","object","resourceId","string","resourceSubKey","optional","realIdSchema","realIdKey","chainName","enum","ChainName","artifactRegistryActivityFactorySchema","getArtifact","functionSchema","input","tuple","ref","artifactType","ArtifactType","output","promise","artifactWithTypeSchema","saveArtifact","artifact","void","getDeployment","resource","customSchema","contractName","deploymentArtifactSchema","saveDeployment","deploymentInfo","getVerificationInfo","getVerificationInfoBaseArgs","any","saveVerificationInfo","saveVerificationInfoBaseArgs"],"mappings":"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","file":"5LI6RWBC.cjs","sourcesContent":["import z from 'zod';\n\nimport { ChainName } from '@layerzerolabs/layerzero-definitions';\nimport { customSchema, functionSchema } from '@layerzerolabs/zod-utils';\n\nimport type { ArtifactWithType } from './artifact';\nimport { ArtifactType, artifactWithTypeSchema, deploymentArtifactSchema } from './artifact';\nimport type { BaseResource, ResolvedResource } from './resources';\nimport { getVerificationInfoBaseArgs, saveVerificationInfoBaseArgs } from './workflow';\n\nexport const resourceRefSchema = z.object({\n resourceId: z.string(),\n // some resources can have multiple realIDs, leave this undefined for the default\n resourceSubKey: z.string().optional(),\n});\n\n// the real realID that might exist\nexport const realIdSchema = z.object({\n realIdKey: z.string(),\n // some realIDs are scoped to a chain, some aren't\n chainName: z.enum(ChainName).optional(),\n});\n\nexport const artifactRegistryActivityFactorySchema = z.object({\n getArtifact: functionSchema({\n input: z.tuple([\n z.object({\n ref: resourceRefSchema,\n artifactType: z.enum(ArtifactType),\n }),\n ]),\n output: z.promise(artifactWithTypeSchema.optional()),\n // typing to make it generic on artifact type\n }) as z.ZodType<\n <Type extends ArtifactType>(args: {\n artifactType: Type;\n ref: z.infer<typeof resourceRefSchema>;\n }) => Promise<Extract<ArtifactWithType, { artifactType: Type }> | undefined>\n >,\n\n saveArtifact: functionSchema({\n input: z.tuple([\n z.object({\n ref: resourceRefSchema,\n artifact: artifactWithTypeSchema,\n }),\n ]),\n output: z.promise(z.void()),\n }),\n\n // these internally are the same as getArtifact/saveArtifact, just specific argument shapes to match\n // the function pointer expected by the DeployOrchestratorWorkflow\n // we can refactor DeployOrchestratorWorkflow to remove this\n getDeployment: functionSchema({\n input: z.tuple([\n z.object({\n resource: customSchema<BaseResource | ResolvedResource<BaseResource>>(),\n }),\n z.object({\n contractName: z.string(),\n }),\n ]),\n output: z.promise(deploymentArtifactSchema.optional()),\n }),\n\n saveDeployment: functionSchema({\n input: z.tuple([\n z.object({\n resource: customSchema<BaseResource | ResolvedResource<BaseResource>>(),\n }),\n z.object({\n contractName: z.string(),\n deploymentInfo: deploymentArtifactSchema,\n }),\n ]),\n output: z.promise(z.void()),\n }),\n\n getVerificationInfo: functionSchema({\n input: z.tuple([\n z.object({\n resource: customSchema<BaseResource | ResolvedResource<BaseResource>>(),\n }),\n getVerificationInfoBaseArgs,\n ]),\n output: z.promise(z.any()),\n }),\n\n saveVerificationInfo: functionSchema({\n input: z.tuple([\n z.object({\n resource: customSchema<BaseResource | ResolvedResource<BaseResource>>(),\n }),\n saveVerificationInfoBaseArgs,\n ]),\n output: z.promise(z.void()),\n }),\n});\n\nexport interface ArtifactRegistry extends z.infer<typeof artifactRegistryActivityFactorySchema> {}\n"]}
|