@layerzerolabs/dw-model 0.2.65 → 0.2.67
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 +55 -55
- package/.turbo/turbo-lint.log +1 -1
- package/LICENSE +23 -0
- package/dist/{7JTES6TF.cjs → 2XSWEWFA.cjs} +16 -16
- package/dist/{7JTES6TF.cjs.map → 2XSWEWFA.cjs.map} +1 -1
- package/dist/{2DT7LZI4.js → DRX4MXDW.js} +3 -3
- package/dist/{2DT7LZI4.js.map → DRX4MXDW.js.map} +1 -1
- package/dist/{XSA36DJT.cjs → FVBHJFVE.cjs} +9 -9
- package/dist/{XSA36DJT.cjs.map → FVBHJFVE.cjs.map} +1 -1
- package/dist/{F7TUIACU.cjs → JZZWB7DM.cjs} +3 -3
- package/dist/{F7TUIACU.cjs.map → JZZWB7DM.cjs.map} +1 -1
- package/dist/{N5VD7HZG.js → KK5K3STO.js} +5 -5
- package/dist/{N5VD7HZG.js.map → KK5K3STO.js.map} +1 -1
- package/dist/{7RWWUTWE.js → MHBV7XHL.js} +2 -2
- package/dist/{7RWWUTWE.js.map → MHBV7XHL.js.map} +1 -1
- package/dist/{Z7DYRUSB.js → MHORRJPP.js} +3 -3
- package/dist/{Z7DYRUSB.js.map → MHORRJPP.js.map} +1 -1
- package/dist/{F6ZSMNRQ.cjs → NJ2LWIGZ.cjs} +2 -2
- package/dist/{F6ZSMNRQ.cjs.map → NJ2LWIGZ.cjs.map} +1 -1
- package/dist/deploy/artifact.cjs +10 -10
- package/dist/deploy/artifact.js +1 -1
- package/dist/deploy/factoryInterfaces.cjs +9 -9
- package/dist/deploy/factoryInterfaces.js +3 -3
- package/dist/deploy/index.cjs +45 -45
- package/dist/deploy/index.js +4 -4
- package/dist/deploy/resources.cjs +16 -16
- package/dist/deploy/resources.js +1 -1
- package/dist/deploy/workflow.cjs +13 -13
- package/dist/deploy/workflow.js +2 -2
- package/dist/index.cjs +45 -45
- package/dist/index.js +4 -4
- package/package.json +10 -10
- package/src/deploy/artifact.ts +2 -2
- package/src/deploy/factoryInterfaces.ts +2 -2
- package/src/deploy/resources.ts +5 -5
package/dist/index.cjs
CHANGED
|
@@ -6,13 +6,13 @@ var X7GZKVDG_cjs = require('./X7GZKVDG.cjs');
|
|
|
6
6
|
require('./X4ZNR5GZ.cjs');
|
|
7
7
|
var KUGCZOFR_cjs = require('./KUGCZOFR.cjs');
|
|
8
8
|
require('./NCHH4VK3.cjs');
|
|
9
|
-
var
|
|
9
|
+
var _2XSWEWFA_cjs = require('./2XSWEWFA.cjs');
|
|
10
10
|
var DE7P6XTU_cjs = require('./DE7P6XTU.cjs');
|
|
11
|
-
var
|
|
11
|
+
var JZZWB7DM_cjs = require('./JZZWB7DM.cjs');
|
|
12
12
|
require('./IN5O3BJZ.cjs');
|
|
13
13
|
var HH5WI3G5_cjs = require('./HH5WI3G5.cjs');
|
|
14
|
-
var
|
|
15
|
-
var
|
|
14
|
+
var FVBHJFVE_cjs = require('./FVBHJFVE.cjs');
|
|
15
|
+
var NJ2LWIGZ_cjs = require('./NJ2LWIGZ.cjs');
|
|
16
16
|
var ONIG6I4S_cjs = require('./ONIG6I4S.cjs');
|
|
17
17
|
require('./YJF4D23A.cjs');
|
|
18
18
|
|
|
@@ -104,27 +104,27 @@ Object.defineProperty(exports, "wireWorkflowOrchestratorStateSchema", {
|
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "artifactRegistryActivityFactorySchema", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return _2XSWEWFA_cjs.artifactRegistryActivityFactorySchema; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "createMockArtifactRegistry", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return _2XSWEWFA_cjs.createMockArtifactRegistry; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "realIdSchema", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return _2XSWEWFA_cjs.realIdSchema; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "resourceRefSchema", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return _2XSWEWFA_cjs.resourceRefSchema; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "resourceRegistryActivityFactorySchema", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return _2XSWEWFA_cjs.resourceRegistryActivityFactorySchema; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "upsertResourceRealIdArgsSchema", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return _2XSWEWFA_cjs.upsertResourceRealIdArgsSchema; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "createResourceBuilder", {
|
|
130
130
|
enumerable: true,
|
|
@@ -132,63 +132,63 @@ Object.defineProperty(exports, "createResourceBuilder", {
|
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "baseContractResourceSchema", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return JZZWB7DM_cjs.baseContractResourceSchema; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "baseMeshResourceSchema", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return JZZWB7DM_cjs.baseMeshResourceSchema; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "baseResourceSchema", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return JZZWB7DM_cjs.baseResourceSchema; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "contractResourceReferenceSchema", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return JZZWB7DM_cjs.contractResourceReferenceSchema; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "contractResourceReferenceSchemaFor", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return JZZWB7DM_cjs.contractResourceReferenceSchemaFor; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "createResolvedResourceSchema", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return JZZWB7DM_cjs.createResolvedResourceSchema; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "extractContractResourceReferences", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return JZZWB7DM_cjs.extractContractResourceReferences; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "extractIdFromContractResourceReference", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return JZZWB7DM_cjs.extractIdFromContractResourceReference; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "extractIdFromMeshResourceReference", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return JZZWB7DM_cjs.extractIdFromMeshResourceReference; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "extractMeshResourceReferences", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return JZZWB7DM_cjs.extractMeshResourceReferences; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "meshResourceReferenceSchema", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return JZZWB7DM_cjs.meshResourceReferenceSchema; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "meshResourceReferenceSchemaFor", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return JZZWB7DM_cjs.meshResourceReferenceSchemaFor; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "resolvedContractResourceReferenceSchema", {
|
|
182
182
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
183
|
+
get: function () { return JZZWB7DM_cjs.resolvedContractResourceReferenceSchema; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "resolvedMeshResourceReferenceSchema", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return JZZWB7DM_cjs.resolvedMeshResourceReferenceSchema; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "withIntrinsicAddress", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return JZZWB7DM_cjs.withIntrinsicAddress; }
|
|
192
192
|
});
|
|
193
193
|
Object.defineProperty(exports, "EvmProxyType", {
|
|
194
194
|
enumerable: true,
|
|
@@ -264,83 +264,83 @@ Object.defineProperty(exports, "weakAssertUpgradability", {
|
|
|
264
264
|
});
|
|
265
265
|
Object.defineProperty(exports, "baseDeploymentSavingArtifactsSchema", {
|
|
266
266
|
enumerable: true,
|
|
267
|
-
get: function () { return
|
|
267
|
+
get: function () { return FVBHJFVE_cjs.baseDeploymentSavingArtifactsSchema; }
|
|
268
268
|
});
|
|
269
269
|
Object.defineProperty(exports, "deployWorkflowChainResultItemSchema", {
|
|
270
270
|
enumerable: true,
|
|
271
|
-
get: function () { return
|
|
271
|
+
get: function () { return FVBHJFVE_cjs.deployWorkflowChainResultItemSchema; }
|
|
272
272
|
});
|
|
273
273
|
Object.defineProperty(exports, "deployWorkflowChainResultSchema", {
|
|
274
274
|
enumerable: true,
|
|
275
|
-
get: function () { return
|
|
275
|
+
get: function () { return FVBHJFVE_cjs.deployWorkflowChainResultSchema; }
|
|
276
276
|
});
|
|
277
277
|
Object.defineProperty(exports, "deployWorkflowChainStateSchema", {
|
|
278
278
|
enumerable: true,
|
|
279
|
-
get: function () { return
|
|
279
|
+
get: function () { return FVBHJFVE_cjs.deployWorkflowChainStateSchema; }
|
|
280
280
|
});
|
|
281
281
|
Object.defineProperty(exports, "deployWorkflowOrchestratorResultSchema", {
|
|
282
282
|
enumerable: true,
|
|
283
|
-
get: function () { return
|
|
283
|
+
get: function () { return FVBHJFVE_cjs.deployWorkflowOrchestratorResultSchema; }
|
|
284
284
|
});
|
|
285
285
|
Object.defineProperty(exports, "deployWorkflowOrchestratorStateSchema", {
|
|
286
286
|
enumerable: true,
|
|
287
|
-
get: function () { return
|
|
287
|
+
get: function () { return FVBHJFVE_cjs.deployWorkflowOrchestratorStateSchema; }
|
|
288
288
|
});
|
|
289
289
|
Object.defineProperty(exports, "extractVerificationArtifactBaseArgsSchema", {
|
|
290
290
|
enumerable: true,
|
|
291
|
-
get: function () { return
|
|
291
|
+
get: function () { return FVBHJFVE_cjs.extractVerificationArtifactBaseArgsSchema; }
|
|
292
292
|
});
|
|
293
293
|
Object.defineProperty(exports, "getDeploymentBaseArgsSchema", {
|
|
294
294
|
enumerable: true,
|
|
295
|
-
get: function () { return
|
|
295
|
+
get: function () { return FVBHJFVE_cjs.getDeploymentBaseArgsSchema; }
|
|
296
296
|
});
|
|
297
297
|
Object.defineProperty(exports, "getVerificationBaseArgsSchema", {
|
|
298
298
|
enumerable: true,
|
|
299
|
-
get: function () { return
|
|
299
|
+
get: function () { return FVBHJFVE_cjs.getVerificationBaseArgsSchema; }
|
|
300
300
|
});
|
|
301
301
|
Object.defineProperty(exports, "saveDeploymentBaseArgsSchema", {
|
|
302
302
|
enumerable: true,
|
|
303
|
-
get: function () { return
|
|
303
|
+
get: function () { return FVBHJFVE_cjs.saveDeploymentBaseArgsSchema; }
|
|
304
304
|
});
|
|
305
305
|
Object.defineProperty(exports, "saveVerificationBaseArgsSchema", {
|
|
306
306
|
enumerable: true,
|
|
307
|
-
get: function () { return
|
|
307
|
+
get: function () { return FVBHJFVE_cjs.saveVerificationBaseArgsSchema; }
|
|
308
308
|
});
|
|
309
309
|
Object.defineProperty(exports, "ArtifactType", {
|
|
310
310
|
enumerable: true,
|
|
311
|
-
get: function () { return
|
|
311
|
+
get: function () { return NJ2LWIGZ_cjs.ArtifactType; }
|
|
312
312
|
});
|
|
313
313
|
Object.defineProperty(exports, "artifactWithTypeSchema", {
|
|
314
314
|
enumerable: true,
|
|
315
|
-
get: function () { return
|
|
315
|
+
get: function () { return NJ2LWIGZ_cjs.artifactWithTypeSchema; }
|
|
316
316
|
});
|
|
317
317
|
Object.defineProperty(exports, "deploymentArtifactSchema", {
|
|
318
318
|
enumerable: true,
|
|
319
|
-
get: function () { return
|
|
319
|
+
get: function () { return NJ2LWIGZ_cjs.deploymentArtifactSchema; }
|
|
320
320
|
});
|
|
321
321
|
Object.defineProperty(exports, "fullDeploymentArtifactSchema", {
|
|
322
322
|
enumerable: true,
|
|
323
|
-
get: function () { return
|
|
323
|
+
get: function () { return NJ2LWIGZ_cjs.fullDeploymentArtifactSchema; }
|
|
324
324
|
});
|
|
325
325
|
Object.defineProperty(exports, "identityOnlyDeploymentArtifactSchema", {
|
|
326
326
|
enumerable: true,
|
|
327
|
-
get: function () { return
|
|
327
|
+
get: function () { return NJ2LWIGZ_cjs.identityOnlyDeploymentArtifactSchema; }
|
|
328
328
|
});
|
|
329
329
|
Object.defineProperty(exports, "metadataArtifactSchema", {
|
|
330
330
|
enumerable: true,
|
|
331
|
-
get: function () { return
|
|
331
|
+
get: function () { return NJ2LWIGZ_cjs.metadataArtifactSchema; }
|
|
332
332
|
});
|
|
333
333
|
Object.defineProperty(exports, "solanaDeploymentArtifactExtraInfoSchema", {
|
|
334
334
|
enumerable: true,
|
|
335
|
-
get: function () { return
|
|
335
|
+
get: function () { return NJ2LWIGZ_cjs.solanaDeploymentArtifactExtraInfoSchema; }
|
|
336
336
|
});
|
|
337
337
|
Object.defineProperty(exports, "suiDeploymentArtifactExtraInfoSchema", {
|
|
338
338
|
enumerable: true,
|
|
339
|
-
get: function () { return
|
|
339
|
+
get: function () { return NJ2LWIGZ_cjs.suiDeploymentArtifactExtraInfoSchema; }
|
|
340
340
|
});
|
|
341
341
|
Object.defineProperty(exports, "verificationArtifactSchema", {
|
|
342
342
|
enumerable: true,
|
|
343
|
-
get: function () { return
|
|
343
|
+
get: function () { return NJ2LWIGZ_cjs.verificationArtifactSchema; }
|
|
344
344
|
});
|
|
345
345
|
Object.defineProperty(exports, "generateThrowCreateSetRoleTransactions", {
|
|
346
346
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -4,13 +4,13 @@ export { BaseContractRole } from './JSK5QSWJ.js';
|
|
|
4
4
|
import './N5VNZXZB.js';
|
|
5
5
|
export { wireWorkflowChainResultSchema, wireWorkflowChainStateSchema, wireWorkflowFilterArgsSchema, wireWorkflowOrchestratorResultSchema, wireWorkflowOrchestratorStateSchema } from './JRKJED2G.js';
|
|
6
6
|
import './CA6UC3D3.js';
|
|
7
|
-
export { artifactRegistryActivityFactorySchema, createMockArtifactRegistry, realIdSchema, resourceRefSchema, resourceRegistryActivityFactorySchema, upsertResourceRealIdArgsSchema } from './
|
|
7
|
+
export { artifactRegistryActivityFactorySchema, createMockArtifactRegistry, realIdSchema, resourceRefSchema, resourceRegistryActivityFactorySchema, upsertResourceRealIdArgsSchema } from './KK5K3STO.js';
|
|
8
8
|
export { createResourceBuilder } from './3GB3YEFM.js';
|
|
9
|
-
export { baseContractResourceSchema, baseMeshResourceSchema, baseResourceSchema, contractResourceReferenceSchema, contractResourceReferenceSchemaFor, createResolvedResourceSchema, extractContractResourceReferences, extractIdFromContractResourceReference, extractIdFromMeshResourceReference, extractMeshResourceReferences, meshResourceReferenceSchema, meshResourceReferenceSchemaFor, resolvedContractResourceReferenceSchema, resolvedMeshResourceReferenceSchema, withIntrinsicAddress } from './
|
|
9
|
+
export { baseContractResourceSchema, baseMeshResourceSchema, baseResourceSchema, contractResourceReferenceSchema, contractResourceReferenceSchemaFor, createResolvedResourceSchema, extractContractResourceReferences, extractIdFromContractResourceReference, extractIdFromMeshResourceReference, extractMeshResourceReferences, meshResourceReferenceSchema, meshResourceReferenceSchemaFor, resolvedContractResourceReferenceSchema, resolvedMeshResourceReferenceSchema, withIntrinsicAddress } from './MHORRJPP.js';
|
|
10
10
|
import './ZCFXJFGI.js';
|
|
11
11
|
export { EvmProxyType, ProxyType, SEPARATE_PROXY_ADMIN_TYPES, TUP_PROXY_TYPES, UUPS_PROXY_TYPES, UpgradeType, assertUpgradability, codeUpgradeableConfigSchema, initializeDataResultSchema, isTupProxy, isUupsProxy, notUpgradeableConfigSchema, proxyConfigSchema, proxyTypeSchema, requiresSeparateProxyAdminDeploy, upgradeTypeSchema, upgradeableConfigSchema, weakAssertUpgradability } from './YAEJZ74R.js';
|
|
12
|
-
export { baseDeploymentSavingArtifactsSchema, deployWorkflowChainResultItemSchema, deployWorkflowChainResultSchema, deployWorkflowChainStateSchema, deployWorkflowOrchestratorResultSchema, deployWorkflowOrchestratorStateSchema, extractVerificationArtifactBaseArgsSchema, getDeploymentBaseArgsSchema, getVerificationBaseArgsSchema, saveDeploymentBaseArgsSchema, saveVerificationBaseArgsSchema } from './
|
|
13
|
-
export { ArtifactType, artifactWithTypeSchema, deploymentArtifactSchema, fullDeploymentArtifactSchema, identityOnlyDeploymentArtifactSchema, metadataArtifactSchema, solanaDeploymentArtifactExtraInfoSchema, suiDeploymentArtifactExtraInfoSchema, verificationArtifactSchema } from './
|
|
12
|
+
export { baseDeploymentSavingArtifactsSchema, deployWorkflowChainResultItemSchema, deployWorkflowChainResultSchema, deployWorkflowChainStateSchema, deployWorkflowOrchestratorResultSchema, deployWorkflowOrchestratorStateSchema, extractVerificationArtifactBaseArgsSchema, getDeploymentBaseArgsSchema, getVerificationBaseArgsSchema, saveDeploymentBaseArgsSchema, saveVerificationBaseArgsSchema } from './DRX4MXDW.js';
|
|
13
|
+
export { ArtifactType, artifactWithTypeSchema, deploymentArtifactSchema, fullDeploymentArtifactSchema, identityOnlyDeploymentArtifactSchema, metadataArtifactSchema, solanaDeploymentArtifactExtraInfoSchema, suiDeploymentArtifactExtraInfoSchema, verificationArtifactSchema } from './MHBV7XHL.js';
|
|
14
14
|
export { generateThrowCreateSetRoleTransactions, generateThrowHasRole, generateThrowRoleManagement } from './45LWGDPP.js';
|
|
15
15
|
import './VUOMXK5T.js';
|
|
16
16
|
//# 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.67",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -15,22 +15,22 @@
|
|
|
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/
|
|
20
|
-
"@layerzerolabs/gated-transaction": "0.2.
|
|
21
|
-
"@layerzerolabs/
|
|
22
|
-
"@layerzerolabs/typescript-utils": "0.2.
|
|
23
|
-
"@layerzerolabs/zod-utils": "0.2.
|
|
18
|
+
"@layerzerolabs/common-chain-model": "0.2.67",
|
|
19
|
+
"@layerzerolabs/layerzero-definitions": "0.2.67",
|
|
20
|
+
"@layerzerolabs/gated-transaction": "0.2.67",
|
|
21
|
+
"@layerzerolabs/common-error-utils": "0.2.67",
|
|
22
|
+
"@layerzerolabs/typescript-utils": "0.2.67",
|
|
23
|
+
"@layerzerolabs/zod-utils": "0.2.67"
|
|
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.67",
|
|
30
|
+
"@layerzerolabs/typescript-configuration": "0.2.67"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
|
-
"access": "
|
|
33
|
+
"access": "public",
|
|
34
34
|
"registry": "https://registry.npmjs.org/"
|
|
35
35
|
},
|
|
36
36
|
"implicitDependencies": {
|
package/src/deploy/artifact.ts
CHANGED
|
@@ -44,7 +44,7 @@ export const identityOnlyDeploymentArtifactSchema = z.object({
|
|
|
44
44
|
});
|
|
45
45
|
export type IdentityOnlyDeploymentArtifact = z.infer<typeof identityOnlyDeploymentArtifactSchema>;
|
|
46
46
|
|
|
47
|
-
//
|
|
47
|
+
// TODO: include verification artifact in this schema
|
|
48
48
|
export const fullDeploymentArtifactSchema = z.object({
|
|
49
49
|
...identityOnlyDeploymentArtifactSchema.shape,
|
|
50
50
|
contractName: z.string(),
|
|
@@ -59,7 +59,7 @@ export const fullDeploymentArtifactSchema = z.object({
|
|
|
59
59
|
});
|
|
60
60
|
export type FullDeploymentArtifact = z.infer<typeof fullDeploymentArtifactSchema>;
|
|
61
61
|
|
|
62
|
-
// TODO:
|
|
62
|
+
// TODO: decide whether to migrate stored identity-only artifacts to full artifacts and collapse this union into fullDeploymentArtifactSchema
|
|
63
63
|
export const deploymentArtifactSchema = z.union([
|
|
64
64
|
// Check this first since it's a superset
|
|
65
65
|
fullDeploymentArtifactSchema,
|
|
@@ -102,7 +102,7 @@ export interface MockArtifactRegistry extends ArtifactRegistry {
|
|
|
102
102
|
getAllArtifacts: () => ArtifactWithType[];
|
|
103
103
|
}
|
|
104
104
|
export const createMockArtifactRegistry = (
|
|
105
|
-
//
|
|
105
|
+
// TODO: simplify when resources are wired through deployment orchestrator
|
|
106
106
|
getResourceSubKey: (resource: BaseResource, contractName: string) => string | undefined,
|
|
107
107
|
): MockArtifactRegistry => {
|
|
108
108
|
const getArtifactKey = (args: Parameters<ArtifactRegistry['getArtifact']>[0]) =>
|
|
@@ -186,7 +186,7 @@ export const resourceRegistryActivityFactorySchema = z.object({
|
|
|
186
186
|
output: z.promise(z.void()),
|
|
187
187
|
}),
|
|
188
188
|
|
|
189
|
-
//
|
|
189
|
+
// TODO: add pagination for large resource sets
|
|
190
190
|
listResourceRealIds: functionSchema({
|
|
191
191
|
input: z.tuple([]),
|
|
192
192
|
output: z.promise(
|
package/src/deploy/resources.ts
CHANGED
|
@@ -71,7 +71,7 @@ export const contractResourceReferenceSchema: ContractResourceReferenceSchema<
|
|
|
71
71
|
|
|
72
72
|
let contractResourceDependencyForSchemaZodMetaIdIdx = 0;
|
|
73
73
|
export const contractResourceReferenceSchemaFor = <T extends z.ZodType<BaseContractResource>>(
|
|
74
|
-
//
|
|
74
|
+
// TODO: use resource parameter to generate a concrete schema
|
|
75
75
|
_resource: T,
|
|
76
76
|
): ContractResourceReferenceSchema<T> =>
|
|
77
77
|
z.string().meta({
|
|
@@ -92,7 +92,7 @@ export type ResolvedContractResourceReferenceSchema<T extends z.ZodType<BaseCont
|
|
|
92
92
|
z.ZodType<ResolvedContractResourceReference<z.infer<T>>>;
|
|
93
93
|
|
|
94
94
|
export const resolvedContractResourceReferenceSchema: ResolvedContractResourceReferenceSchema<any> =
|
|
95
|
-
//
|
|
95
|
+
// TODO: replace with a concrete zod schema
|
|
96
96
|
z.custom<ResolvedContractResourceReference<any>>();
|
|
97
97
|
|
|
98
98
|
// The actual expected runtime value for this type is #M_REF:${id}
|
|
@@ -116,7 +116,7 @@ export const meshResourceReferenceSchema: MeshResourceReferenceSchema<
|
|
|
116
116
|
|
|
117
117
|
let meshResourceDependencyForSchemaZodMetaIdIdx = 0;
|
|
118
118
|
export const meshResourceReferenceSchemaFor = <T extends typeof baseMeshResourceSchema>(
|
|
119
|
-
//
|
|
119
|
+
// TODO: use resource parameter to generate a concrete schema
|
|
120
120
|
_resource: T,
|
|
121
121
|
): MeshResourceReferenceSchema<T> =>
|
|
122
122
|
z.string().meta({
|
|
@@ -137,7 +137,7 @@ export const extractIdFromMeshResourceReference = (ref: MeshResourceReference) =
|
|
|
137
137
|
throwError(`Ref ${JSON.stringify(ref)} is not a mesh resource ref`);
|
|
138
138
|
|
|
139
139
|
export type ResolvedMeshResourceReferenceSchema<T extends typeof baseMeshResourceSchema> =
|
|
140
|
-
//
|
|
140
|
+
// TODO: replace with a concrete zod schema
|
|
141
141
|
z.ZodType<ResolvedMeshResourceReference<z.infer<T>>>;
|
|
142
142
|
|
|
143
143
|
export const resolvedMeshResourceReferenceSchema: ResolvedMeshResourceReferenceSchema<any> =
|
|
@@ -199,7 +199,7 @@ export const extractMeshResourceReferences = <Resource extends BaseResource>(res
|
|
|
199
199
|
([, id]) => typeof id === 'string' && id.startsWith('#M_REF:'),
|
|
200
200
|
) as unknown as [prop: string, id: MeshResourceReference][];
|
|
201
201
|
|
|
202
|
-
//
|
|
202
|
+
// TODO: implement runtime resolution — currently returns input schema as-is
|
|
203
203
|
export const createResolvedResourceSchema = <Resource extends typeof baseResourceSchema>(
|
|
204
204
|
resource: Resource,
|
|
205
205
|
) => resource as ResolvedResourceSchema<Resource>;
|