@layerzerolabs/dw-model 0.2.26 → 0.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +110 -110
- package/.turbo/turbo-lint.log +1 -1
- package/dist/{HQUTWELX.js → 7CBCJCC6.js} +8 -8
- package/dist/7CBCJCC6.js.map +1 -0
- package/dist/{GME7XA2P.cjs → 7FULMGYU.cjs} +17 -17
- package/dist/7FULMGYU.cjs.map +1 -0
- package/dist/{2J5DXCMN.cjs → BFV5SQ6S.cjs} +13 -13
- package/dist/BFV5SQ6S.cjs.map +1 -0
- package/dist/{GLVUEQQF.js → PHPSOUIK.js} +11 -11
- package/dist/PHPSOUIK.js.map +1 -0
- package/dist/{AB7BJRWS.js → XMLZYDPF.js} +2 -2
- package/dist/{AB7BJRWS.js.map → XMLZYDPF.js.map} +1 -1
- package/dist/{VZP4VEYJ.cjs → YR4VMGBG.cjs} +2 -2
- package/dist/{VZP4VEYJ.cjs.map → YR4VMGBG.cjs.map} +1 -1
- package/dist/deploy/artifact.cjs +10 -10
- package/dist/deploy/artifact.js +1 -1
- package/dist/deploy/factoryInterfaces.cjs +6 -6
- package/dist/deploy/factoryInterfaces.d.ts +4 -4
- package/dist/deploy/factoryInterfaces.js +3 -3
- package/dist/deploy/index.cjs +29 -29
- package/dist/deploy/index.js +3 -3
- package/dist/deploy/workflow.cjs +16 -16
- package/dist/deploy/workflow.d.ts +9 -9
- package/dist/deploy/workflow.d.ts.map +1 -1
- package/dist/deploy/workflow.js +2 -2
- package/dist/index.cjs +137 -137
- package/dist/index.js +9 -9
- package/dist/role-management/index.cjs +13 -13
- package/dist/role-management/index.js +1 -1
- package/package.json +9 -9
- package/src/deploy/artifact.ts +1 -1
- package/src/deploy/factoryInterfaces.ts +5 -5
- package/src/deploy/workflow.ts +9 -9
- package/dist/2J5DXCMN.cjs.map +0 -1
- package/dist/GLVUEQQF.js.map +0 -1
- package/dist/GME7XA2P.cjs.map +0 -1
- package/dist/HQUTWELX.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,90 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('./3QBHS4UZ.cjs');
|
|
4
|
-
var CC5Y3WY7_cjs = require('./CC5Y3WY7.cjs');
|
|
5
|
-
var X7GZKVDG_cjs = require('./X7GZKVDG.cjs');
|
|
6
|
-
require('./X4ZNR5GZ.cjs');
|
|
7
|
-
var QLEJL4UB_cjs = require('./QLEJL4UB.cjs');
|
|
8
3
|
require('./NCHH4VK3.cjs');
|
|
9
|
-
var
|
|
4
|
+
var BFV5SQ6S_cjs = require('./BFV5SQ6S.cjs');
|
|
10
5
|
var ECJRGALM_cjs = require('./ECJRGALM.cjs');
|
|
11
6
|
var PUY2AOFE_cjs = require('./PUY2AOFE.cjs');
|
|
7
|
+
var _7FULMGYU_cjs = require('./7FULMGYU.cjs');
|
|
8
|
+
require('./X4ZNR5GZ.cjs');
|
|
9
|
+
var QLEJL4UB_cjs = require('./QLEJL4UB.cjs');
|
|
10
|
+
require('./3QBHS4UZ.cjs');
|
|
11
|
+
var ONIG6I4S_cjs = require('./ONIG6I4S.cjs');
|
|
12
|
+
var CC5Y3WY7_cjs = require('./CC5Y3WY7.cjs');
|
|
13
|
+
var X7GZKVDG_cjs = require('./X7GZKVDG.cjs');
|
|
12
14
|
require('./IN5O3BJZ.cjs');
|
|
13
15
|
var S5CHYZ3I_cjs = require('./S5CHYZ3I.cjs');
|
|
14
|
-
var
|
|
15
|
-
var VZP4VEYJ_cjs = require('./VZP4VEYJ.cjs');
|
|
16
|
-
var ONIG6I4S_cjs = require('./ONIG6I4S.cjs');
|
|
16
|
+
var YR4VMGBG_cjs = require('./YR4VMGBG.cjs');
|
|
17
17
|
require('./YJF4D23A.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
Object.defineProperty(exports, "createSetRoleTransactionsWithSpecializedInputSchema", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () { return CC5Y3WY7_cjs.createSetRoleTransactionsWithSpecializedInputSchema; }
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "generateCreateSetRoleTransactionsSchema", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () { return CC5Y3WY7_cjs.generateCreateSetRoleTransactionsSchema; }
|
|
28
|
-
});
|
|
29
|
-
Object.defineProperty(exports, "generateEnumerableRoleManagementSchemas", {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: function () { return CC5Y3WY7_cjs.generateEnumerableRoleManagementSchemas; }
|
|
32
|
-
});
|
|
33
|
-
Object.defineProperty(exports, "generateGetRoleMembersSchema", {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
get: function () { return CC5Y3WY7_cjs.generateGetRoleMembersSchema; }
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "generateHasRoleSchema", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function () { return CC5Y3WY7_cjs.generateHasRoleSchema; }
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(exports, "generateRoleManagementSchemas", {
|
|
42
|
-
enumerable: true,
|
|
43
|
-
get: function () { return CC5Y3WY7_cjs.generateRoleManagementSchemas; }
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(exports, "getRoleMembersWithSpecializedInputSchema", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: function () { return CC5Y3WY7_cjs.getRoleMembersWithSpecializedInputSchema; }
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(exports, "hasRoleWithSpecializedInputSchema", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () { return CC5Y3WY7_cjs.hasRoleWithSpecializedInputSchema; }
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(exports, "BaseContractRole", {
|
|
54
|
-
enumerable: true,
|
|
55
|
-
get: function () { return X7GZKVDG_cjs.BaseContractRole; }
|
|
56
|
-
});
|
|
57
|
-
Object.defineProperty(exports, "wireWorkflowChainResultSchema", {
|
|
58
|
-
enumerable: true,
|
|
59
|
-
get: function () { return QLEJL4UB_cjs.wireWorkflowChainResultSchema; }
|
|
60
|
-
});
|
|
61
|
-
Object.defineProperty(exports, "wireWorkflowChainStateSchema", {
|
|
62
|
-
enumerable: true,
|
|
63
|
-
get: function () { return QLEJL4UB_cjs.wireWorkflowChainStateSchema; }
|
|
64
|
-
});
|
|
65
|
-
Object.defineProperty(exports, "wireWorkflowFilterArgsSchema", {
|
|
66
|
-
enumerable: true,
|
|
67
|
-
get: function () { return QLEJL4UB_cjs.wireWorkflowFilterArgsSchema; }
|
|
68
|
-
});
|
|
69
|
-
Object.defineProperty(exports, "wireWorkflowOrchestratorResultSchema", {
|
|
70
|
-
enumerable: true,
|
|
71
|
-
get: function () { return QLEJL4UB_cjs.wireWorkflowOrchestratorResultSchema; }
|
|
72
|
-
});
|
|
73
|
-
Object.defineProperty(exports, "wireWorkflowOrchestratorStateSchema", {
|
|
74
|
-
enumerable: true,
|
|
75
|
-
get: function () { return QLEJL4UB_cjs.wireWorkflowOrchestratorStateSchema; }
|
|
76
|
-
});
|
|
77
21
|
Object.defineProperty(exports, "artifactRegistryActivityFactorySchema", {
|
|
78
22
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
23
|
+
get: function () { return BFV5SQ6S_cjs.artifactRegistryActivityFactorySchema; }
|
|
80
24
|
});
|
|
81
25
|
Object.defineProperty(exports, "realIdSchema", {
|
|
82
26
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
27
|
+
get: function () { return BFV5SQ6S_cjs.realIdSchema; }
|
|
84
28
|
});
|
|
85
29
|
Object.defineProperty(exports, "resourceRefSchema", {
|
|
86
30
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
31
|
+
get: function () { return BFV5SQ6S_cjs.resourceRefSchema; }
|
|
88
32
|
});
|
|
89
33
|
Object.defineProperty(exports, "createResourceBuilder", {
|
|
90
34
|
enumerable: true,
|
|
@@ -150,6 +94,122 @@ Object.defineProperty(exports, "withIntrinsicAddress", {
|
|
|
150
94
|
enumerable: true,
|
|
151
95
|
get: function () { return PUY2AOFE_cjs.withIntrinsicAddress; }
|
|
152
96
|
});
|
|
97
|
+
Object.defineProperty(exports, "BaseDeploymentSavingArtifactsSchema", {
|
|
98
|
+
enumerable: true,
|
|
99
|
+
get: function () { return _7FULMGYU_cjs.BaseDeploymentSavingArtifactsSchema; }
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(exports, "VerificationInfoSchema", {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
get: function () { return _7FULMGYU_cjs.VerificationInfoSchema; }
|
|
104
|
+
});
|
|
105
|
+
Object.defineProperty(exports, "deployWorkflowChainResultItemSchema", {
|
|
106
|
+
enumerable: true,
|
|
107
|
+
get: function () { return _7FULMGYU_cjs.deployWorkflowChainResultItemSchema; }
|
|
108
|
+
});
|
|
109
|
+
Object.defineProperty(exports, "deployWorkflowChainResultSchema", {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
get: function () { return _7FULMGYU_cjs.deployWorkflowChainResultSchema; }
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(exports, "deployWorkflowChainStateSchema", {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
get: function () { return _7FULMGYU_cjs.deployWorkflowChainStateSchema; }
|
|
116
|
+
});
|
|
117
|
+
Object.defineProperty(exports, "deployWorkflowOrchestratorResultSchema", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function () { return _7FULMGYU_cjs.deployWorkflowOrchestratorResultSchema; }
|
|
120
|
+
});
|
|
121
|
+
Object.defineProperty(exports, "deployWorkflowOrchestratorStateSchema", {
|
|
122
|
+
enumerable: true,
|
|
123
|
+
get: function () { return _7FULMGYU_cjs.deployWorkflowOrchestratorStateSchema; }
|
|
124
|
+
});
|
|
125
|
+
Object.defineProperty(exports, "extractVerificationArtifactBaseArgs", {
|
|
126
|
+
enumerable: true,
|
|
127
|
+
get: function () { return _7FULMGYU_cjs.extractVerificationArtifactBaseArgs; }
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(exports, "getDeploymentBaseArgs", {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () { return _7FULMGYU_cjs.getDeploymentBaseArgs; }
|
|
132
|
+
});
|
|
133
|
+
Object.defineProperty(exports, "getVerificationBaseArgs", {
|
|
134
|
+
enumerable: true,
|
|
135
|
+
get: function () { return _7FULMGYU_cjs.getVerificationBaseArgs; }
|
|
136
|
+
});
|
|
137
|
+
Object.defineProperty(exports, "saveDeploymentBaseArgs", {
|
|
138
|
+
enumerable: true,
|
|
139
|
+
get: function () { return _7FULMGYU_cjs.saveDeploymentBaseArgs; }
|
|
140
|
+
});
|
|
141
|
+
Object.defineProperty(exports, "saveVerificationBaseArgs", {
|
|
142
|
+
enumerable: true,
|
|
143
|
+
get: function () { return _7FULMGYU_cjs.saveVerificationBaseArgs; }
|
|
144
|
+
});
|
|
145
|
+
Object.defineProperty(exports, "wireWorkflowChainResultSchema", {
|
|
146
|
+
enumerable: true,
|
|
147
|
+
get: function () { return QLEJL4UB_cjs.wireWorkflowChainResultSchema; }
|
|
148
|
+
});
|
|
149
|
+
Object.defineProperty(exports, "wireWorkflowChainStateSchema", {
|
|
150
|
+
enumerable: true,
|
|
151
|
+
get: function () { return QLEJL4UB_cjs.wireWorkflowChainStateSchema; }
|
|
152
|
+
});
|
|
153
|
+
Object.defineProperty(exports, "wireWorkflowFilterArgsSchema", {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function () { return QLEJL4UB_cjs.wireWorkflowFilterArgsSchema; }
|
|
156
|
+
});
|
|
157
|
+
Object.defineProperty(exports, "wireWorkflowOrchestratorResultSchema", {
|
|
158
|
+
enumerable: true,
|
|
159
|
+
get: function () { return QLEJL4UB_cjs.wireWorkflowOrchestratorResultSchema; }
|
|
160
|
+
});
|
|
161
|
+
Object.defineProperty(exports, "wireWorkflowOrchestratorStateSchema", {
|
|
162
|
+
enumerable: true,
|
|
163
|
+
get: function () { return QLEJL4UB_cjs.wireWorkflowOrchestratorStateSchema; }
|
|
164
|
+
});
|
|
165
|
+
Object.defineProperty(exports, "generateThrowCreateSetRoleTransactions", {
|
|
166
|
+
enumerable: true,
|
|
167
|
+
get: function () { return ONIG6I4S_cjs.generateThrowCreateSetRoleTransactions; }
|
|
168
|
+
});
|
|
169
|
+
Object.defineProperty(exports, "generateThrowHasRole", {
|
|
170
|
+
enumerable: true,
|
|
171
|
+
get: function () { return ONIG6I4S_cjs.generateThrowHasRole; }
|
|
172
|
+
});
|
|
173
|
+
Object.defineProperty(exports, "generateThrowRoleManagement", {
|
|
174
|
+
enumerable: true,
|
|
175
|
+
get: function () { return ONIG6I4S_cjs.generateThrowRoleManagement; }
|
|
176
|
+
});
|
|
177
|
+
Object.defineProperty(exports, "createSetRoleTransactionsWithSpecializedInputSchema", {
|
|
178
|
+
enumerable: true,
|
|
179
|
+
get: function () { return CC5Y3WY7_cjs.createSetRoleTransactionsWithSpecializedInputSchema; }
|
|
180
|
+
});
|
|
181
|
+
Object.defineProperty(exports, "generateCreateSetRoleTransactionsSchema", {
|
|
182
|
+
enumerable: true,
|
|
183
|
+
get: function () { return CC5Y3WY7_cjs.generateCreateSetRoleTransactionsSchema; }
|
|
184
|
+
});
|
|
185
|
+
Object.defineProperty(exports, "generateEnumerableRoleManagementSchemas", {
|
|
186
|
+
enumerable: true,
|
|
187
|
+
get: function () { return CC5Y3WY7_cjs.generateEnumerableRoleManagementSchemas; }
|
|
188
|
+
});
|
|
189
|
+
Object.defineProperty(exports, "generateGetRoleMembersSchema", {
|
|
190
|
+
enumerable: true,
|
|
191
|
+
get: function () { return CC5Y3WY7_cjs.generateGetRoleMembersSchema; }
|
|
192
|
+
});
|
|
193
|
+
Object.defineProperty(exports, "generateHasRoleSchema", {
|
|
194
|
+
enumerable: true,
|
|
195
|
+
get: function () { return CC5Y3WY7_cjs.generateHasRoleSchema; }
|
|
196
|
+
});
|
|
197
|
+
Object.defineProperty(exports, "generateRoleManagementSchemas", {
|
|
198
|
+
enumerable: true,
|
|
199
|
+
get: function () { return CC5Y3WY7_cjs.generateRoleManagementSchemas; }
|
|
200
|
+
});
|
|
201
|
+
Object.defineProperty(exports, "getRoleMembersWithSpecializedInputSchema", {
|
|
202
|
+
enumerable: true,
|
|
203
|
+
get: function () { return CC5Y3WY7_cjs.getRoleMembersWithSpecializedInputSchema; }
|
|
204
|
+
});
|
|
205
|
+
Object.defineProperty(exports, "hasRoleWithSpecializedInputSchema", {
|
|
206
|
+
enumerable: true,
|
|
207
|
+
get: function () { return CC5Y3WY7_cjs.hasRoleWithSpecializedInputSchema; }
|
|
208
|
+
});
|
|
209
|
+
Object.defineProperty(exports, "BaseContractRole", {
|
|
210
|
+
enumerable: true,
|
|
211
|
+
get: function () { return X7GZKVDG_cjs.BaseContractRole; }
|
|
212
|
+
});
|
|
153
213
|
Object.defineProperty(exports, "EvmProxyType", {
|
|
154
214
|
enumerable: true,
|
|
155
215
|
get: function () { return S5CHYZ3I_cjs.EvmProxyType; }
|
|
@@ -214,101 +274,41 @@ Object.defineProperty(exports, "upgradeableConfigSchema", {
|
|
|
214
274
|
enumerable: true,
|
|
215
275
|
get: function () { return S5CHYZ3I_cjs.upgradeableConfigSchema; }
|
|
216
276
|
});
|
|
217
|
-
Object.defineProperty(exports, "BaseDeploymentSavingArtifactsSchema", {
|
|
218
|
-
enumerable: true,
|
|
219
|
-
get: function () { return GME7XA2P_cjs.BaseDeploymentSavingArtifactsSchema; }
|
|
220
|
-
});
|
|
221
|
-
Object.defineProperty(exports, "VerificationInfoSchema", {
|
|
222
|
-
enumerable: true,
|
|
223
|
-
get: function () { return GME7XA2P_cjs.VerificationInfoSchema; }
|
|
224
|
-
});
|
|
225
|
-
Object.defineProperty(exports, "deployWorkflowChainResultItemSchema", {
|
|
226
|
-
enumerable: true,
|
|
227
|
-
get: function () { return GME7XA2P_cjs.deployWorkflowChainResultItemSchema; }
|
|
228
|
-
});
|
|
229
|
-
Object.defineProperty(exports, "deployWorkflowChainResultSchema", {
|
|
230
|
-
enumerable: true,
|
|
231
|
-
get: function () { return GME7XA2P_cjs.deployWorkflowChainResultSchema; }
|
|
232
|
-
});
|
|
233
|
-
Object.defineProperty(exports, "deployWorkflowChainStateSchema", {
|
|
234
|
-
enumerable: true,
|
|
235
|
-
get: function () { return GME7XA2P_cjs.deployWorkflowChainStateSchema; }
|
|
236
|
-
});
|
|
237
|
-
Object.defineProperty(exports, "deployWorkflowOrchestratorResultSchema", {
|
|
238
|
-
enumerable: true,
|
|
239
|
-
get: function () { return GME7XA2P_cjs.deployWorkflowOrchestratorResultSchema; }
|
|
240
|
-
});
|
|
241
|
-
Object.defineProperty(exports, "deployWorkflowOrchestratorStateSchema", {
|
|
242
|
-
enumerable: true,
|
|
243
|
-
get: function () { return GME7XA2P_cjs.deployWorkflowOrchestratorStateSchema; }
|
|
244
|
-
});
|
|
245
|
-
Object.defineProperty(exports, "extractVerificationArtifactBaseArgs", {
|
|
246
|
-
enumerable: true,
|
|
247
|
-
get: function () { return GME7XA2P_cjs.extractVerificationArtifactBaseArgs; }
|
|
248
|
-
});
|
|
249
|
-
Object.defineProperty(exports, "getDeploymentBaseArgs", {
|
|
250
|
-
enumerable: true,
|
|
251
|
-
get: function () { return GME7XA2P_cjs.getDeploymentBaseArgs; }
|
|
252
|
-
});
|
|
253
|
-
Object.defineProperty(exports, "getVerificationInfoBaseArgs", {
|
|
254
|
-
enumerable: true,
|
|
255
|
-
get: function () { return GME7XA2P_cjs.getVerificationInfoBaseArgs; }
|
|
256
|
-
});
|
|
257
|
-
Object.defineProperty(exports, "saveDeploymentBaseArgs", {
|
|
258
|
-
enumerable: true,
|
|
259
|
-
get: function () { return GME7XA2P_cjs.saveDeploymentBaseArgs; }
|
|
260
|
-
});
|
|
261
|
-
Object.defineProperty(exports, "saveVerificationInfoBaseArgs", {
|
|
262
|
-
enumerable: true,
|
|
263
|
-
get: function () { return GME7XA2P_cjs.saveVerificationInfoBaseArgs; }
|
|
264
|
-
});
|
|
265
277
|
Object.defineProperty(exports, "ArtifactType", {
|
|
266
278
|
enumerable: true,
|
|
267
|
-
get: function () { return
|
|
279
|
+
get: function () { return YR4VMGBG_cjs.ArtifactType; }
|
|
268
280
|
});
|
|
269
281
|
Object.defineProperty(exports, "artifactWithTypeSchema", {
|
|
270
282
|
enumerable: true,
|
|
271
|
-
get: function () { return
|
|
283
|
+
get: function () { return YR4VMGBG_cjs.artifactWithTypeSchema; }
|
|
272
284
|
});
|
|
273
285
|
Object.defineProperty(exports, "deploymentArtifactSchema", {
|
|
274
286
|
enumerable: true,
|
|
275
|
-
get: function () { return
|
|
287
|
+
get: function () { return YR4VMGBG_cjs.deploymentArtifactSchema; }
|
|
276
288
|
});
|
|
277
289
|
Object.defineProperty(exports, "fullDeploymentArtifactSchema", {
|
|
278
290
|
enumerable: true,
|
|
279
|
-
get: function () { return
|
|
291
|
+
get: function () { return YR4VMGBG_cjs.fullDeploymentArtifactSchema; }
|
|
280
292
|
});
|
|
281
293
|
Object.defineProperty(exports, "identityOnlyDeploymentArtifactSchema", {
|
|
282
294
|
enumerable: true,
|
|
283
|
-
get: function () { return
|
|
295
|
+
get: function () { return YR4VMGBG_cjs.identityOnlyDeploymentArtifactSchema; }
|
|
284
296
|
});
|
|
285
297
|
Object.defineProperty(exports, "metadataArtifactSchema", {
|
|
286
298
|
enumerable: true,
|
|
287
|
-
get: function () { return
|
|
299
|
+
get: function () { return YR4VMGBG_cjs.metadataArtifactSchema; }
|
|
288
300
|
});
|
|
289
301
|
Object.defineProperty(exports, "solanaDeploymentArtifactExtraInfoSchema", {
|
|
290
302
|
enumerable: true,
|
|
291
|
-
get: function () { return
|
|
303
|
+
get: function () { return YR4VMGBG_cjs.solanaDeploymentArtifactExtraInfoSchema; }
|
|
292
304
|
});
|
|
293
305
|
Object.defineProperty(exports, "suiDeploymentArtifactExtraInfoSchema", {
|
|
294
306
|
enumerable: true,
|
|
295
|
-
get: function () { return
|
|
307
|
+
get: function () { return YR4VMGBG_cjs.suiDeploymentArtifactExtraInfoSchema; }
|
|
296
308
|
});
|
|
297
309
|
Object.defineProperty(exports, "verificationArtifactSchema", {
|
|
298
310
|
enumerable: true,
|
|
299
|
-
get: function () { return
|
|
300
|
-
});
|
|
301
|
-
Object.defineProperty(exports, "generateThrowCreateSetRoleTransactions", {
|
|
302
|
-
enumerable: true,
|
|
303
|
-
get: function () { return ONIG6I4S_cjs.generateThrowCreateSetRoleTransactions; }
|
|
304
|
-
});
|
|
305
|
-
Object.defineProperty(exports, "generateThrowHasRole", {
|
|
306
|
-
enumerable: true,
|
|
307
|
-
get: function () { return ONIG6I4S_cjs.generateThrowHasRole; }
|
|
308
|
-
});
|
|
309
|
-
Object.defineProperty(exports, "generateThrowRoleManagement", {
|
|
310
|
-
enumerable: true,
|
|
311
|
-
get: function () { return ONIG6I4S_cjs.generateThrowRoleManagement; }
|
|
311
|
+
get: function () { return YR4VMGBG_cjs.verificationArtifactSchema; }
|
|
312
312
|
});
|
|
313
313
|
//# sourceMappingURL=index.cjs.map
|
|
314
314
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import './SBZPLPCB.js';
|
|
2
|
-
export { createSetRoleTransactionsWithSpecializedInputSchema, generateCreateSetRoleTransactionsSchema, generateEnumerableRoleManagementSchemas, generateGetRoleMembersSchema, generateHasRoleSchema, generateRoleManagementSchemas, getRoleMembersWithSpecializedInputSchema, hasRoleWithSpecializedInputSchema } from './3XCIUHJG.js';
|
|
3
|
-
export { BaseContractRole } from './JSK5QSWJ.js';
|
|
4
|
-
import './N5VNZXZB.js';
|
|
5
|
-
export { wireWorkflowChainResultSchema, wireWorkflowChainStateSchema, wireWorkflowFilterArgsSchema, wireWorkflowOrchestratorResultSchema, wireWorkflowOrchestratorStateSchema } from './I5L5NLZY.js';
|
|
6
1
|
import './CA6UC3D3.js';
|
|
7
|
-
export { artifactRegistryActivityFactorySchema, realIdSchema, resourceRefSchema } from './
|
|
2
|
+
export { artifactRegistryActivityFactorySchema, realIdSchema, resourceRefSchema } from './7CBCJCC6.js';
|
|
8
3
|
export { createResourceBuilder } from './3BD3OCGS.js';
|
|
9
4
|
export { baseContractResourceSchema, baseMeshResourceSchema, baseResourceSchema, contractResourceReferenceSchema, contractResourceReferenceSchemaFor, createResolvedResourceSchema, extractContractResourceReferences, extractIdFromContractResourceReference, extractIdFromMeshResourceReference, extractMeshResourceReferences, meshResourceReferenceSchema, meshResourceReferenceSchemaFor, resolvedContractResourceReferenceSchema, resolvedMeshResourceReferenceSchema, withIntrinsicAddress } from './IUFXXZ2R.js';
|
|
5
|
+
export { BaseDeploymentSavingArtifactsSchema, VerificationInfoSchema, deployWorkflowChainResultItemSchema, deployWorkflowChainResultSchema, deployWorkflowChainStateSchema, deployWorkflowOrchestratorResultSchema, deployWorkflowOrchestratorStateSchema, extractVerificationArtifactBaseArgs, getDeploymentBaseArgs, getVerificationBaseArgs, saveDeploymentBaseArgs, saveVerificationBaseArgs } from './PHPSOUIK.js';
|
|
6
|
+
import './N5VNZXZB.js';
|
|
7
|
+
export { wireWorkflowChainResultSchema, wireWorkflowChainStateSchema, wireWorkflowFilterArgsSchema, wireWorkflowOrchestratorResultSchema, wireWorkflowOrchestratorStateSchema } from './I5L5NLZY.js';
|
|
8
|
+
import './SBZPLPCB.js';
|
|
9
|
+
export { generateThrowCreateSetRoleTransactions, generateThrowHasRole, generateThrowRoleManagement } from './45LWGDPP.js';
|
|
10
|
+
export { createSetRoleTransactionsWithSpecializedInputSchema, generateCreateSetRoleTransactionsSchema, generateEnumerableRoleManagementSchemas, generateGetRoleMembersSchema, generateHasRoleSchema, generateRoleManagementSchemas, getRoleMembersWithSpecializedInputSchema, hasRoleWithSpecializedInputSchema } from './3XCIUHJG.js';
|
|
11
|
+
export { BaseContractRole } from './JSK5QSWJ.js';
|
|
10
12
|
import './ZCFXJFGI.js';
|
|
11
13
|
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 {
|
|
13
|
-
export { ArtifactType, artifactWithTypeSchema, deploymentArtifactSchema, fullDeploymentArtifactSchema, identityOnlyDeploymentArtifactSchema, metadataArtifactSchema, solanaDeploymentArtifactExtraInfoSchema, suiDeploymentArtifactExtraInfoSchema, verificationArtifactSchema } from './AB7BJRWS.js';
|
|
14
|
-
export { generateThrowCreateSetRoleTransactions, generateThrowHasRole, generateThrowRoleManagement } from './45LWGDPP.js';
|
|
14
|
+
export { ArtifactType, artifactWithTypeSchema, deploymentArtifactSchema, fullDeploymentArtifactSchema, identityOnlyDeploymentArtifactSchema, metadataArtifactSchema, solanaDeploymentArtifactExtraInfoSchema, suiDeploymentArtifactExtraInfoSchema, verificationArtifactSchema } from './XMLZYDPF.js';
|
|
15
15
|
import './VUOMXK5T.js';
|
|
16
16
|
//# sourceMappingURL=index.js.map
|
|
17
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../3QBHS4UZ.cjs');
|
|
4
|
+
var ONIG6I4S_cjs = require('../ONIG6I4S.cjs');
|
|
4
5
|
var CC5Y3WY7_cjs = require('../CC5Y3WY7.cjs');
|
|
5
6
|
var X7GZKVDG_cjs = require('../X7GZKVDG.cjs');
|
|
6
|
-
var ONIG6I4S_cjs = require('../ONIG6I4S.cjs');
|
|
7
7
|
require('../YJF4D23A.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
Object.defineProperty(exports, "generateThrowCreateSetRoleTransactions", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return ONIG6I4S_cjs.generateThrowCreateSetRoleTransactions; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "generateThrowHasRole", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return ONIG6I4S_cjs.generateThrowHasRole; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "generateThrowRoleManagement", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return ONIG6I4S_cjs.generateThrowRoleManagement; }
|
|
22
|
+
});
|
|
11
23
|
Object.defineProperty(exports, "createSetRoleTransactionsWithSpecializedInputSchema", {
|
|
12
24
|
enumerable: true,
|
|
13
25
|
get: function () { return CC5Y3WY7_cjs.createSetRoleTransactionsWithSpecializedInputSchema; }
|
|
@@ -44,17 +56,5 @@ Object.defineProperty(exports, "BaseContractRole", {
|
|
|
44
56
|
enumerable: true,
|
|
45
57
|
get: function () { return X7GZKVDG_cjs.BaseContractRole; }
|
|
46
58
|
});
|
|
47
|
-
Object.defineProperty(exports, "generateThrowCreateSetRoleTransactions", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function () { return ONIG6I4S_cjs.generateThrowCreateSetRoleTransactions; }
|
|
50
|
-
});
|
|
51
|
-
Object.defineProperty(exports, "generateThrowHasRole", {
|
|
52
|
-
enumerable: true,
|
|
53
|
-
get: function () { return ONIG6I4S_cjs.generateThrowHasRole; }
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(exports, "generateThrowRoleManagement", {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: function () { return ONIG6I4S_cjs.generateThrowRoleManagement; }
|
|
58
|
-
});
|
|
59
59
|
//# sourceMappingURL=index.cjs.map
|
|
60
60
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../SBZPLPCB.js';
|
|
2
|
+
export { generateThrowCreateSetRoleTransactions, generateThrowHasRole, generateThrowRoleManagement } from '../45LWGDPP.js';
|
|
2
3
|
export { createSetRoleTransactionsWithSpecializedInputSchema, generateCreateSetRoleTransactionsSchema, generateEnumerableRoleManagementSchemas, generateGetRoleMembersSchema, generateHasRoleSchema, generateRoleManagementSchemas, getRoleMembersWithSpecializedInputSchema, hasRoleWithSpecializedInputSchema } from '../3XCIUHJG.js';
|
|
3
4
|
export { BaseContractRole } from '../JSK5QSWJ.js';
|
|
4
|
-
export { generateThrowCreateSetRoleTransactions, generateThrowHasRole, generateThrowRoleManagement } from '../45LWGDPP.js';
|
|
5
5
|
import '../VUOMXK5T.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/dw-model",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.28",
|
|
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-chain-model": "0.2.
|
|
19
|
-
"@layerzerolabs/common-error-utils": "0.2.
|
|
20
|
-
"@layerzerolabs/
|
|
21
|
-
"@layerzerolabs/
|
|
22
|
-
"@layerzerolabs/
|
|
23
|
-
"@layerzerolabs/zod-utils": "0.2.
|
|
18
|
+
"@layerzerolabs/common-chain-model": "0.2.28",
|
|
19
|
+
"@layerzerolabs/common-error-utils": "0.2.28",
|
|
20
|
+
"@layerzerolabs/layerzero-definitions": "0.2.28",
|
|
21
|
+
"@layerzerolabs/gated-transaction": "0.2.28",
|
|
22
|
+
"@layerzerolabs/typescript-utils": "0.2.28",
|
|
23
|
+
"@layerzerolabs/zod-utils": "0.2.28"
|
|
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/
|
|
30
|
-
"@layerzerolabs/
|
|
29
|
+
"@layerzerolabs/typescript-configuration": "0.2.28",
|
|
30
|
+
"@layerzerolabs/tsup-configuration": "0.2.28"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "restricted",
|
package/src/deploy/artifact.ts
CHANGED
|
@@ -41,7 +41,7 @@ export const identityOnlyDeploymentArtifactSchema = z.object({
|
|
|
41
41
|
});
|
|
42
42
|
export type IdentityOnlyDeploymentArtifact = z.infer<typeof identityOnlyDeploymentArtifactSchema>;
|
|
43
43
|
|
|
44
|
-
// FIXME also include verification
|
|
44
|
+
// FIXME also include verification artifact in this
|
|
45
45
|
export const fullDeploymentArtifactSchema = z.object({
|
|
46
46
|
...identityOnlyDeploymentArtifactSchema.shape,
|
|
47
47
|
contractName: z.string(),
|
|
@@ -6,7 +6,7 @@ import { customSchema, functionSchema } from '@layerzerolabs/zod-utils';
|
|
|
6
6
|
import type { ArtifactWithType } from './artifact';
|
|
7
7
|
import { ArtifactType, artifactWithTypeSchema, deploymentArtifactSchema } from './artifact';
|
|
8
8
|
import type { BaseResource, ResolvedResource } from './resources';
|
|
9
|
-
import {
|
|
9
|
+
import { getVerificationBaseArgs, saveVerificationBaseArgs } from './workflow';
|
|
10
10
|
|
|
11
11
|
export const resourceRefSchema = z.object({
|
|
12
12
|
resourceId: z.string(),
|
|
@@ -75,22 +75,22 @@ export const artifactRegistryActivityFactorySchema = z.object({
|
|
|
75
75
|
output: z.promise(z.void()),
|
|
76
76
|
}),
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
getVerification: functionSchema({
|
|
79
79
|
input: z.tuple([
|
|
80
80
|
z.object({
|
|
81
81
|
resource: customSchema<BaseResource | ResolvedResource<BaseResource>>(),
|
|
82
82
|
}),
|
|
83
|
-
|
|
83
|
+
getVerificationBaseArgs,
|
|
84
84
|
]),
|
|
85
85
|
output: z.promise(z.any()),
|
|
86
86
|
}),
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
saveVerification: functionSchema({
|
|
89
89
|
input: z.tuple([
|
|
90
90
|
z.object({
|
|
91
91
|
resource: customSchema<BaseResource | ResolvedResource<BaseResource>>(),
|
|
92
92
|
}),
|
|
93
|
-
|
|
93
|
+
saveVerificationBaseArgs,
|
|
94
94
|
]),
|
|
95
95
|
output: z.promise(z.void()),
|
|
96
96
|
}),
|
package/src/deploy/workflow.ts
CHANGED
|
@@ -79,10 +79,10 @@ export const saveDeploymentBaseArgs = z.object({
|
|
|
79
79
|
});
|
|
80
80
|
export type SaveDeploymentBaseArgs = z.infer<typeof saveDeploymentBaseArgs>;
|
|
81
81
|
|
|
82
|
-
export const
|
|
82
|
+
export const getVerificationBaseArgs = z.object({
|
|
83
83
|
contractName: z.string(),
|
|
84
84
|
});
|
|
85
|
-
export type
|
|
85
|
+
export type GetVerificationBaseArgs = z.infer<typeof getVerificationBaseArgs>;
|
|
86
86
|
|
|
87
87
|
export const extractVerificationArtifactBaseArgs = z.object({
|
|
88
88
|
gtx: successfulGatedTransactionSchema(),
|
|
@@ -93,12 +93,12 @@ export type extractVerificationArtifactBaseArgs = z.infer<
|
|
|
93
93
|
typeof extractVerificationArtifactBaseArgs
|
|
94
94
|
>;
|
|
95
95
|
|
|
96
|
-
export const
|
|
96
|
+
export const saveVerificationBaseArgs = z.object({
|
|
97
97
|
deploymentArtifact: fullDeploymentArtifactSchema,
|
|
98
|
-
|
|
98
|
+
verificationArtifact: verificationArtifactSchema,
|
|
99
99
|
});
|
|
100
100
|
|
|
101
|
-
export type
|
|
101
|
+
export type SaveVerificationBaseArgs = z.infer<typeof saveVerificationBaseArgs>;
|
|
102
102
|
|
|
103
103
|
export const BaseDeploymentSavingArtifactsSchema = z.object({
|
|
104
104
|
getDeployment: functionSchema({
|
|
@@ -109,12 +109,12 @@ export const BaseDeploymentSavingArtifactsSchema = z.object({
|
|
|
109
109
|
input: z.tuple([saveDeploymentBaseArgs]),
|
|
110
110
|
output: z.promise(z.void()),
|
|
111
111
|
}),
|
|
112
|
-
|
|
113
|
-
input: z.tuple([
|
|
112
|
+
getVerification: functionSchema({
|
|
113
|
+
input: z.tuple([getVerificationBaseArgs]),
|
|
114
114
|
output: z.promise(z.any()),
|
|
115
115
|
}),
|
|
116
|
-
|
|
117
|
-
input: z.tuple([
|
|
116
|
+
saveVerification: functionSchema({
|
|
117
|
+
input: z.tuple([saveVerificationBaseArgs]),
|
|
118
118
|
output: z.promise(z.void()),
|
|
119
119
|
}),
|
|
120
120
|
});
|
package/dist/2J5DXCMN.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","deploymentArtifact","getVerificationInfo","getVerificationInfoBaseArgs","any","saveVerificationInfo","saveVerificationInfoBaseArgs"],"mappings":";;;;;;;;;;;;AAUO,IAAMA,iBAAAA,GAAoBC,mBAAEC,MAAAA,CAAO;AACtCC,EAAAA,UAAAA,EAAYF,mBAAEG,MAAAA,EAAM;;EAEpBC,cAAAA,EAAgBJ,kBAAAA,CAAEG,MAAAA,EAAM,CAAGE,QAAAA;AAC/B,CAAA;AAGO,IAAMC,YAAAA,GAAeN,mBAAEC,MAAAA,CAAO;AACjCM,EAAAA,SAAAA,EAAWP,mBAAEG,MAAAA,EAAM;;AAEnBK,EAAAA,SAAAA,EAAWR,kBAAAA,CAAES,IAAAA,CAAKC,8BAAAA,CAAAA,CAAWL,QAAAA;AACjC,CAAA;AAEO,IAAMM,qCAAAA,GAAwCX,mBAAEC,MA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AAA,QAAAA,EAAUC,qBAAAA;OACd,CAAA;AACA3B,MAAAA,kBAAAA,CAAEC,MAAAA,CAAO;QACL8B,kBAAAA,EAAoBF;OACxB;AACH,KAAA,CAAA;AACDV,IAAAA,MAAAA,EAAQnB,kBAAAA,CAAEoB,OAAAA,CAAQpB,kBAAAA,CAAEwB,IAAAA,EAAI;GAC5B,CAAA;AAEAQ,EAAAA,mBAAAA,EAAqBnB,uBAAAA,CAAe;AAChCC,IAAAA,KAAAA,EAAOd,mBAAEe,KAAAA,CAAM;AACXf,MAAAA,kBAAAA,CAAEC,MAAAA,CAAO;AACLyB,QAAAA,QAAAA,EAAUC,qBAAAA;OACd,CAAA;AACAM,MAAAA;AACH,KAAA,CAAA;AACDd,IAAAA,MAAAA,EAAQnB,kBAAAA,CAAEoB,OAAAA,CAAQpB,kBAAAA,CAAEkC,GAAAA,EAAG;GAC3B,CAAA;AAEAC,EAAAA,oBAAAA,EAAsBtB,uBAAAA,CAAe;AACjCC,IAAAA,KAAAA,EAAOd,mBAAEe,KAAAA,CAAM;AACXf,MAAAA,kBAAAA,CAAEC,MAAAA,CAAO;AACLyB,QAAAA,QAAAA,EAAUC,qBAAAA;OACd,CAAA;AACAS,MAAAA;AACH,KAAA,CAAA;AACDjB,IAAAA,MAAAA,EAAQnB,kBAAAA,CAAEoB,OAAAA,CAAQpB,kBAAAA,CAAEwB,IAAAA,EAAI;GAC5B;AACJ,CAAA","file":"2J5DXCMN.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 deploymentArtifact: 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"]}
|
package/dist/GLVUEQQF.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/deploy/workflow.ts"],"names":["VerificationInfoSchema","z","object","contractName","enum","ChainName","address","normalizedHexSchema","abiEncodedConstructorArguments","failedDeployment","name","string","success","literal","error","successfulDeployment","deploymentArtifact","deploymentArtifactSchema","deployWorkflowChainResultItemSchema","union","deployWorkflowChainResultSchema","results","array","default","deployWorkflowChainStateSchema","extend","srcChain","optional","status","deployWorkflowOrchestratorResultSchema","stateByChain","partialRecord","deployWorkflowOrchestratorStateSchema","getDeploymentBaseArgs","saveDeploymentBaseArgs","identityOnlyDeploymentArtifactSchema","getVerificationInfoBaseArgs","extractVerificationArtifactBaseArgs","gtx","successfulGatedTransactionSchema","fullDeploymentArtifactSchema","nonVerifyable","boolean","saveVerificationInfoBaseArgs","verificationInfo","verificationArtifactSchema","BaseDeploymentSavingArtifactsSchema","getDeployment","functionSchema","input","tuple","output","promise","saveDeployment","void","getVerificationInfo","any","saveVerificationInfo"],"mappings":";;;;;;;AAwBO,IAAMA,sBAAAA,GAAyBC,EAAEC,MAAAA,CAAO;EAC3CC,YAAAA,EAAcF,CAAAA,CAAEG,KAAKC,SAAAA,CAAAA;EACrBC,OAAAA,EAASC,mBAAAA;EACTC,8BAAAA,EAAgC;AACpC,CAAA;AAEA,IAAMC,gBAAAA,GAAmBR,EAAEC,MAAAA,CAAO;AAC9BQ,EAAAA,IAAAA,EAAMT,EAAEU,MAAAA,EAAM;EACdC,OAAAA,EAASX,CAAAA,CAAEY,QAAQ,KAAA,CAAA;AACnBC,EAAAA,KAAAA,EAAOb,EAAEU,MAAAA;AACb,CAAA,CAAA;AAEA,IAAMI,oBAAAA,GAAuBd,EAAEC,MAAAA,CAAO;AAClCQ,EAAAA,IAAAA,EAAMT,EAAEU,MAAAA,EAAM;EACdC,OAAAA,EAASX,CAAAA,CAAEY,QAAQ,IAAA,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CAAQnD,CAAAA,CAAEuD,GAAAA,EAAG;GAC3B,CAAA;AACAC,EAAAA,oBAAAA,EAAsBT,cAAAA,CAAe;AACjCC,IAAAA,KAAAA,EAAOhD,EAAEiD,KAAAA,CAAM;AAACP,MAAAA;AAA6B,KAAA,CAAA;AAC7CQ,IAAAA,MAAAA,EAAQlD,CAAAA,CAAEmD,OAAAA,CAAQnD,CAAAA,CAAEqD,IAAAA,EAAI;GAC5B;AACJ,CAAA","file":"GLVUEQQF.js","sourcesContent":["import type { SuiObjectChange } from '@mysten/sui/client';\nimport { z } from 'zod';\n\nimport { normalizedHexSchema } from '@layerzerolabs/common-chain-model';\nimport { successfulGatedTransactionSchema } from '@layerzerolabs/gated-transaction';\nimport { ChainName } from '@layerzerolabs/layerzero-definitions';\nimport { functionSchema } from '@layerzerolabs/zod-utils';\n\nimport type { DeploymentArtifact, SolanaDeploymentArtifactExtraInfo } from './artifact';\nimport {\n deploymentArtifactSchema,\n fullDeploymentArtifactSchema,\n identityOnlyDeploymentArtifactSchema,\n verificationArtifactSchema,\n} from './artifact';\n\nexport type { SuiObjectChange };\n\n/** @deprecated */\nexport type SolanaDeploymentInfo = Omit<DeploymentArtifact, 'extraDeploymentInfo'> & {\n extraDeploymentInfo: SolanaDeploymentArtifactExtraInfo;\n};\n\n// FIXME clean this up to use the new artifact schema\nexport const VerificationInfoSchema = z.object({\n contractName: z.enum(ChainName),\n address: normalizedHexSchema,\n abiEncodedConstructorArguments: true,\n});\n\nconst failedDeployment = z.object({\n name: z.string(),\n success: z.literal(false),\n error: z.string(),\n});\n\nconst successfulDeployment = z.object({\n name: z.string(),\n success: z.literal(true),\n deploymentArtifact: deploymentArtifactSchema,\n});\n\nexport const deployWorkflowChainResultItemSchema = z.union([\n failedDeployment,\n successfulDeployment,\n]);\n\nexport const deployWorkflowChainResultSchema = z.object({\n results: z.array(deployWorkflowChainResultItemSchema).default([]),\n});\n\nexport const deployWorkflowChainStateSchema = deployWorkflowChainResultSchema.extend({\n srcChain: z.enum(ChainName).optional(),\n status: z.union([z.literal('RUNNING'), z.literal('COMPLETE')]).default('RUNNING'),\n});\n\nexport type DeployWorkflowChainState = z.infer<typeof deployWorkflowChainStateSchema>;\nexport type DeployWorkflowChainResult = z.infer<typeof deployWorkflowChainResultSchema>;\nexport type DeployWorkflowChainResultItem = z.infer<typeof deployWorkflowChainResultItemSchema>;\n\nexport const deployWorkflowOrchestratorResultSchema = z.object({\n stateByChain: z.partialRecord(z.enum(ChainName), deployWorkflowChainResultSchema).default({}),\n});\n\nexport const deployWorkflowOrchestratorStateSchema = deployWorkflowOrchestratorResultSchema.extend({\n status: z.union([z.literal('RUNNING'), z.literal('COMPLETE')]).default('RUNNING'),\n});\n\nexport type DeployWorkflowOrchestratorState = z.infer<typeof deployWorkflowOrchestratorStateSchema>;\nexport type DeployWorkflowOrchestratorResult = z.infer<\n typeof deployWorkflowOrchestratorResultSchema\n>;\n\nexport const getDeploymentBaseArgs = z.object({ contractName: z.string() });\nexport type GetDeploymentBaseArgs = z.infer<typeof getDeploymentBaseArgs>;\n\nexport const saveDeploymentBaseArgs = z.object({\n deploymentArtifact: identityOnlyDeploymentArtifactSchema,\n});\nexport type SaveDeploymentBaseArgs = z.infer<typeof saveDeploymentBaseArgs>;\n\nexport const getVerificationInfoBaseArgs = z.object({\n contractName: z.string(),\n});\nexport type GetVerificationInfoBaseArgs = z.infer<typeof getVerificationInfoBaseArgs>;\n\nexport const extractVerificationArtifactBaseArgs = z.object({\n gtx: successfulGatedTransactionSchema(),\n deploymentArtifact: fullDeploymentArtifactSchema,\n nonVerifyable: z.boolean().optional(),\n});\nexport type extractVerificationArtifactBaseArgs = z.infer<\n typeof extractVerificationArtifactBaseArgs\n>;\n\nexport const saveVerificationInfoBaseArgs = z.object({\n deploymentArtifact: fullDeploymentArtifactSchema,\n verificationInfo: verificationArtifactSchema,\n});\n\nexport type SaveVerificationInfoBaseArgs = z.infer<typeof saveVerificationInfoBaseArgs>;\n\nexport const BaseDeploymentSavingArtifactsSchema = z.object({\n getDeployment: functionSchema({\n input: z.tuple([getDeploymentBaseArgs]),\n output: z.promise(deploymentArtifactSchema.optional()),\n }),\n saveDeployment: functionSchema({\n input: z.tuple([saveDeploymentBaseArgs]),\n output: z.promise(z.void()),\n }),\n getVerificationInfo: functionSchema({\n input: z.tuple([getVerificationInfoBaseArgs]),\n output: z.promise(z.any()),\n }),\n saveVerificationInfo: functionSchema({\n input: z.tuple([saveVerificationInfoBaseArgs]),\n output: z.promise(z.void()),\n }),\n});\n"]}
|
package/dist/GME7XA2P.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/deploy/workflow.ts"],"names":["VerificationInfoSchema","z","object","contractName","enum","ChainName","address","normalizedHexSchema","abiEncodedConstructorArguments","failedDeployment","name","string","success","literal","error","successfulDeployment","deploymentArtifact","deploymentArtifactSchema","deployWorkflowChainResultItemSchema","union","deployWorkflowChainResultSchema","results","array","default","deployWorkflowChainStateSchema","extend","srcChain","optional","status","deployWorkflowOrchestratorResultSchema","stateByChain","partialRecord","deployWorkflowOrchestratorStateSchema","getDeploymentBaseArgs","saveDeploymentBaseArgs","identityOnlyDeploymentArtifactSchema","getVerificationInfoBaseArgs","extractVerificationArtifactBaseArgs","gtx","successfulGatedTransactionSchema","fullDeploymentArtifactSchema","nonVerifyable","boolean","saveVerificationInfoBaseArgs","verificationInfo","verificationArtifactSchema","BaseDeploymentSavingArtifactsSchema","getDeployment","functionSchema","input","tuple","output","promise","saveDeployment","void","getVerificationInfo","any","saveVerificationInfo"],"mappings":";;;;;;;;;AAwBO,IAAMA,sBAAAA,GAAyBC,MAAEC,MAAAA,CAAO;EAC3CC,YAAAA,EAAcF,KAAAA,CAAEG,KAAKC,8BAAAA,CAAAA;EACrBC,OAAAA,EAASC,oCAAAA;EACTC,8BAAAA,EAAgC;AACpC,CAAA;AAEA,IAAMC,gBAAAA,GAAmBR,MAAEC,MAAAA,CAAO;AAC9BQ,EAAAA,IAA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AA,CAAA;AACvCiB,IAAAA,MAAAA,EAAQlD,KAAAA,CAAEmD,OAAAA,CAAQnD,KAAAA,CAAEqD,IAAAA,EAAI;GAC5B,CAAA;AACAC,EAAAA,mBAAAA,EAAqBP,uBAAAA,CAAe;AAChCC,IAAAA,KAAAA,EAAOhD,MAAEiD,KAAAA,CAAM;AAACd,MAAAA;AAA4B,KAAA,CAAA;AAC5Ce,IAAAA,MAAAA,EAAQlD,KAAAA,CAAEmD,OAAAA,CAAQnD,KAAAA,CAAEuD,GAAAA,EAAG;GAC3B,CAAA;AACAC,EAAAA,oBAAAA,EAAsBT,uBAAAA,CAAe;AACjCC,IAAAA,KAAAA,EAAOhD,MAAEiD,KAAAA,CAAM;AAACP,MAAAA;AAA6B,KAAA,CAAA;AAC7CQ,IAAAA,MAAAA,EAAQlD,KAAAA,CAAEmD,OAAAA,CAAQnD,KAAAA,CAAEqD,IAAAA,EAAI;GAC5B;AACJ,CAAA","file":"GME7XA2P.cjs","sourcesContent":["import type { SuiObjectChange } from '@mysten/sui/client';\nimport { z } from 'zod';\n\nimport { normalizedHexSchema } from '@layerzerolabs/common-chain-model';\nimport { successfulGatedTransactionSchema } from '@layerzerolabs/gated-transaction';\nimport { ChainName } from '@layerzerolabs/layerzero-definitions';\nimport { functionSchema } from '@layerzerolabs/zod-utils';\n\nimport type { DeploymentArtifact, SolanaDeploymentArtifactExtraInfo } from './artifact';\nimport {\n deploymentArtifactSchema,\n fullDeploymentArtifactSchema,\n identityOnlyDeploymentArtifactSchema,\n verificationArtifactSchema,\n} from './artifact';\n\nexport type { SuiObjectChange };\n\n/** @deprecated */\nexport type SolanaDeploymentInfo = Omit<DeploymentArtifact, 'extraDeploymentInfo'> & {\n extraDeploymentInfo: SolanaDeploymentArtifactExtraInfo;\n};\n\n// FIXME clean this up to use the new artifact schema\nexport const VerificationInfoSchema = z.object({\n contractName: z.enum(ChainName),\n address: normalizedHexSchema,\n abiEncodedConstructorArguments: true,\n});\n\nconst failedDeployment = z.object({\n name: z.string(),\n success: z.literal(false),\n error: z.string(),\n});\n\nconst successfulDeployment = z.object({\n name: z.string(),\n success: z.literal(true),\n deploymentArtifact: deploymentArtifactSchema,\n});\n\nexport const deployWorkflowChainResultItemSchema = z.union([\n failedDeployment,\n successfulDeployment,\n]);\n\nexport const deployWorkflowChainResultSchema = z.object({\n results: z.array(deployWorkflowChainResultItemSchema).default([]),\n});\n\nexport const deployWorkflowChainStateSchema = deployWorkflowChainResultSchema.extend({\n srcChain: z.enum(ChainName).optional(),\n status: z.union([z.literal('RUNNING'), z.literal('COMPLETE')]).default('RUNNING'),\n});\n\nexport type DeployWorkflowChainState = z.infer<typeof deployWorkflowChainStateSchema>;\nexport type DeployWorkflowChainResult = z.infer<typeof deployWorkflowChainResultSchema>;\nexport type DeployWorkflowChainResultItem = z.infer<typeof deployWorkflowChainResultItemSchema>;\n\nexport const deployWorkflowOrchestratorResultSchema = z.object({\n stateByChain: z.partialRecord(z.enum(ChainName), deployWorkflowChainResultSchema).default({}),\n});\n\nexport const deployWorkflowOrchestratorStateSchema = deployWorkflowOrchestratorResultSchema.extend({\n status: z.union([z.literal('RUNNING'), z.literal('COMPLETE')]).default('RUNNING'),\n});\n\nexport type DeployWorkflowOrchestratorState = z.infer<typeof deployWorkflowOrchestratorStateSchema>;\nexport type DeployWorkflowOrchestratorResult = z.infer<\n typeof deployWorkflowOrchestratorResultSchema\n>;\n\nexport const getDeploymentBaseArgs = z.object({ contractName: z.string() });\nexport type GetDeploymentBaseArgs = z.infer<typeof getDeploymentBaseArgs>;\n\nexport const saveDeploymentBaseArgs = z.object({\n deploymentArtifact: identityOnlyDeploymentArtifactSchema,\n});\nexport type SaveDeploymentBaseArgs = z.infer<typeof saveDeploymentBaseArgs>;\n\nexport const getVerificationInfoBaseArgs = z.object({\n contractName: z.string(),\n});\nexport type GetVerificationInfoBaseArgs = z.infer<typeof getVerificationInfoBaseArgs>;\n\nexport const extractVerificationArtifactBaseArgs = z.object({\n gtx: successfulGatedTransactionSchema(),\n deploymentArtifact: fullDeploymentArtifactSchema,\n nonVerifyable: z.boolean().optional(),\n});\nexport type extractVerificationArtifactBaseArgs = z.infer<\n typeof extractVerificationArtifactBaseArgs\n>;\n\nexport const saveVerificationInfoBaseArgs = z.object({\n deploymentArtifact: fullDeploymentArtifactSchema,\n verificationInfo: verificationArtifactSchema,\n});\n\nexport type SaveVerificationInfoBaseArgs = z.infer<typeof saveVerificationInfoBaseArgs>;\n\nexport const BaseDeploymentSavingArtifactsSchema = z.object({\n getDeployment: functionSchema({\n input: z.tuple([getDeploymentBaseArgs]),\n output: z.promise(deploymentArtifactSchema.optional()),\n }),\n saveDeployment: functionSchema({\n input: z.tuple([saveDeploymentBaseArgs]),\n output: z.promise(z.void()),\n }),\n getVerificationInfo: functionSchema({\n input: z.tuple([getVerificationInfoBaseArgs]),\n output: z.promise(z.any()),\n }),\n saveVerificationInfo: functionSchema({\n input: z.tuple([saveVerificationInfoBaseArgs]),\n output: z.promise(z.void()),\n }),\n});\n"]}
|
package/dist/HQUTWELX.js.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","deploymentArtifact","getVerificationInfo","getVerificationInfoBaseArgs","any","saveVerificationInfo","saveVerificationInfoBaseArgs"],"mappings":";;;;;;AAUO,IAAMA,iBAAAA,GAAoBC,EAAEC,MAAAA,CAAO;AACtCC,EAAAA,UAAAA,EAAYF,EAAEG,MAAAA,EAAM;;EAEpBC,cAAAA,EAAgBJ,CAAAA,CAAEG,MAAAA,EAAM,CAAGE,QAAAA;AAC/B,CAAA;AAGO,IAAMC,YAAAA,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wBAAAA,CAAyBxB,QAAAA,EAAQ;GACvD,CAAA;AAEAyB,EAAAA,cAAAA,EAAgBjB,cAAAA,CAAe;AAC3BC,IAAAA,KAAAA,EAAOd,EAAEe,KAAAA,CAAM;AACXf,MAAAA,CAAAA,CAAEC,MAAAA,CAAO;AACLyB,QAAAA,QAAAA,EAAUC,YAAAA;OACd,CAAA;AACA3B,MAAAA,CAAAA,CAAEC,MAAAA,CAAO;QACL8B,kBAAAA,EAAoBF;OACxB;AACH,KAAA,CAAA;AACDV,IAAAA,MAAAA,EAAQnB,CAAAA,CAAEoB,OAAAA,CAAQpB,CAAAA,CAAEwB,IAAAA,EAAI;GAC5B,CAAA;AAEAQ,EAAAA,mBAAAA,EAAqBnB,cAAAA,CAAe;AAChCC,IAAAA,KAAAA,EAAOd,EAAEe,KAAAA,CAAM;AACXf,MAAAA,CAAAA,CAAEC,MAAAA,CAAO;AACLyB,QAAAA,QAAAA,EAAUC,YAAAA;OACd,CAAA;AACAM,MAAAA;AACH,KAAA,CAAA;AACDd,IAAAA,MAAAA,EAAQnB,CAAAA,CAAEoB,OAAAA,CAAQpB,CAAAA,CAAEkC,GAAAA,EAAG;GAC3B,CAAA;AAEAC,EAAAA,oBAAAA,EAAsBtB,cAAAA,CAAe;AACjCC,IAAAA,KAAAA,EAAOd,EAAEe,KAAAA,CAAM;AACXf,MAAAA,CAAAA,CAAEC,MAAAA,CAAO;AACLyB,QAAAA,QAAAA,EAAUC,YAAAA;OACd,CAAA;AACAS,MAAAA;AACH,KAAA,CAAA;AACDjB,IAAAA,MAAAA,EAAQnB,CAAAA,CAAEoB,OAAAA,CAAQpB,CAAAA,CAAEwB,IAAAA,EAAI;GAC5B;AACJ,CAAA","file":"HQUTWELX.js","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 deploymentArtifact: 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"]}
|