@layerzerolabs/dw-model 0.2.50 → 0.2.52
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 +103 -103
- package/.turbo/turbo-lint.log +1 -1
- package/dist/{R4HLXLGU.cjs → ANV2PZC4.cjs} +4 -2
- package/dist/ANV2PZC4.cjs.map +1 -0
- package/dist/{5OKHFG46.js → CXG3MXVW.js} +4 -2
- package/dist/CXG3MXVW.js.map +1 -0
- package/dist/{XE5ATSYV.js → LSBBADZ7.js} +4 -4
- package/dist/{XE5ATSYV.js.map → LSBBADZ7.js.map} +1 -1
- package/dist/{T6BMFWCI.cjs → OTZULT5C.cjs} +15 -15
- package/dist/{T6BMFWCI.cjs.map → OTZULT5C.cjs.map} +1 -1
- package/dist/{3JL3PUIU.js → PY5K2COL.js} +3 -3
- package/dist/{3JL3PUIU.js.map → PY5K2COL.js.map} +1 -1
- package/dist/{7DA753OB.cjs → YDRSCRZL.cjs} +9 -9
- package/dist/{7DA753OB.cjs.map → YDRSCRZL.cjs.map} +1 -1
- package/dist/deploy/artifact.cjs +10 -10
- package/dist/deploy/artifact.d.ts +2 -0
- package/dist/deploy/artifact.d.ts.map +1 -1
- 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 +29 -29
- package/dist/deploy/index.js +3 -3
- package/dist/deploy/workflow.cjs +13 -13
- package/dist/deploy/workflow.js +2 -2
- package/dist/index.cjs +29 -29
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/deploy/artifact.ts +2 -0
- package/dist/5OKHFG46.js.map +0 -1
- package/dist/R4HLXLGU.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -6,13 +6,13 @@ 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 OTZULT5C_cjs = require('./OTZULT5C.cjs');
|
|
10
10
|
var DE7P6XTU_cjs = require('./DE7P6XTU.cjs');
|
|
11
11
|
var IJZQPF4A_cjs = require('./IJZQPF4A.cjs');
|
|
12
12
|
require('./IN5O3BJZ.cjs');
|
|
13
13
|
var HH5WI3G5_cjs = require('./HH5WI3G5.cjs');
|
|
14
|
-
var
|
|
15
|
-
var
|
|
14
|
+
var YDRSCRZL_cjs = require('./YDRSCRZL.cjs');
|
|
15
|
+
var ANV2PZC4_cjs = require('./ANV2PZC4.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 OTZULT5C_cjs.artifactRegistryActivityFactorySchema; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "createMockArtifactRegistry", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return OTZULT5C_cjs.createMockArtifactRegistry; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "realIdSchema", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return OTZULT5C_cjs.realIdSchema; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "resourceRefSchema", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return OTZULT5C_cjs.resourceRefSchema; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "resourceRegistryActivityFactorySchema", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return OTZULT5C_cjs.resourceRegistryActivityFactorySchema; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "upsertResourceRealIdArgsSchema", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return OTZULT5C_cjs.upsertResourceRealIdArgsSchema; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "createResourceBuilder", {
|
|
130
130
|
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 YDRSCRZL_cjs.baseDeploymentSavingArtifactsSchema; }
|
|
268
268
|
});
|
|
269
269
|
Object.defineProperty(exports, "deployWorkflowChainResultItemSchema", {
|
|
270
270
|
enumerable: true,
|
|
271
|
-
get: function () { return
|
|
271
|
+
get: function () { return YDRSCRZL_cjs.deployWorkflowChainResultItemSchema; }
|
|
272
272
|
});
|
|
273
273
|
Object.defineProperty(exports, "deployWorkflowChainResultSchema", {
|
|
274
274
|
enumerable: true,
|
|
275
|
-
get: function () { return
|
|
275
|
+
get: function () { return YDRSCRZL_cjs.deployWorkflowChainResultSchema; }
|
|
276
276
|
});
|
|
277
277
|
Object.defineProperty(exports, "deployWorkflowChainStateSchema", {
|
|
278
278
|
enumerable: true,
|
|
279
|
-
get: function () { return
|
|
279
|
+
get: function () { return YDRSCRZL_cjs.deployWorkflowChainStateSchema; }
|
|
280
280
|
});
|
|
281
281
|
Object.defineProperty(exports, "deployWorkflowOrchestratorResultSchema", {
|
|
282
282
|
enumerable: true,
|
|
283
|
-
get: function () { return
|
|
283
|
+
get: function () { return YDRSCRZL_cjs.deployWorkflowOrchestratorResultSchema; }
|
|
284
284
|
});
|
|
285
285
|
Object.defineProperty(exports, "deployWorkflowOrchestratorStateSchema", {
|
|
286
286
|
enumerable: true,
|
|
287
|
-
get: function () { return
|
|
287
|
+
get: function () { return YDRSCRZL_cjs.deployWorkflowOrchestratorStateSchema; }
|
|
288
288
|
});
|
|
289
289
|
Object.defineProperty(exports, "extractVerificationArtifactBaseArgsSchema", {
|
|
290
290
|
enumerable: true,
|
|
291
|
-
get: function () { return
|
|
291
|
+
get: function () { return YDRSCRZL_cjs.extractVerificationArtifactBaseArgsSchema; }
|
|
292
292
|
});
|
|
293
293
|
Object.defineProperty(exports, "getDeploymentBaseArgsSchema", {
|
|
294
294
|
enumerable: true,
|
|
295
|
-
get: function () { return
|
|
295
|
+
get: function () { return YDRSCRZL_cjs.getDeploymentBaseArgsSchema; }
|
|
296
296
|
});
|
|
297
297
|
Object.defineProperty(exports, "getVerificationBaseArgsSchema", {
|
|
298
298
|
enumerable: true,
|
|
299
|
-
get: function () { return
|
|
299
|
+
get: function () { return YDRSCRZL_cjs.getVerificationBaseArgsSchema; }
|
|
300
300
|
});
|
|
301
301
|
Object.defineProperty(exports, "saveDeploymentBaseArgsSchema", {
|
|
302
302
|
enumerable: true,
|
|
303
|
-
get: function () { return
|
|
303
|
+
get: function () { return YDRSCRZL_cjs.saveDeploymentBaseArgsSchema; }
|
|
304
304
|
});
|
|
305
305
|
Object.defineProperty(exports, "saveVerificationBaseArgsSchema", {
|
|
306
306
|
enumerable: true,
|
|
307
|
-
get: function () { return
|
|
307
|
+
get: function () { return YDRSCRZL_cjs.saveVerificationBaseArgsSchema; }
|
|
308
308
|
});
|
|
309
309
|
Object.defineProperty(exports, "ArtifactType", {
|
|
310
310
|
enumerable: true,
|
|
311
|
-
get: function () { return
|
|
311
|
+
get: function () { return ANV2PZC4_cjs.ArtifactType; }
|
|
312
312
|
});
|
|
313
313
|
Object.defineProperty(exports, "artifactWithTypeSchema", {
|
|
314
314
|
enumerable: true,
|
|
315
|
-
get: function () { return
|
|
315
|
+
get: function () { return ANV2PZC4_cjs.artifactWithTypeSchema; }
|
|
316
316
|
});
|
|
317
317
|
Object.defineProperty(exports, "deploymentArtifactSchema", {
|
|
318
318
|
enumerable: true,
|
|
319
|
-
get: function () { return
|
|
319
|
+
get: function () { return ANV2PZC4_cjs.deploymentArtifactSchema; }
|
|
320
320
|
});
|
|
321
321
|
Object.defineProperty(exports, "fullDeploymentArtifactSchema", {
|
|
322
322
|
enumerable: true,
|
|
323
|
-
get: function () { return
|
|
323
|
+
get: function () { return ANV2PZC4_cjs.fullDeploymentArtifactSchema; }
|
|
324
324
|
});
|
|
325
325
|
Object.defineProperty(exports, "identityOnlyDeploymentArtifactSchema", {
|
|
326
326
|
enumerable: true,
|
|
327
|
-
get: function () { return
|
|
327
|
+
get: function () { return ANV2PZC4_cjs.identityOnlyDeploymentArtifactSchema; }
|
|
328
328
|
});
|
|
329
329
|
Object.defineProperty(exports, "metadataArtifactSchema", {
|
|
330
330
|
enumerable: true,
|
|
331
|
-
get: function () { return
|
|
331
|
+
get: function () { return ANV2PZC4_cjs.metadataArtifactSchema; }
|
|
332
332
|
});
|
|
333
333
|
Object.defineProperty(exports, "solanaDeploymentArtifactExtraInfoSchema", {
|
|
334
334
|
enumerable: true,
|
|
335
|
-
get: function () { return
|
|
335
|
+
get: function () { return ANV2PZC4_cjs.solanaDeploymentArtifactExtraInfoSchema; }
|
|
336
336
|
});
|
|
337
337
|
Object.defineProperty(exports, "suiDeploymentArtifactExtraInfoSchema", {
|
|
338
338
|
enumerable: true,
|
|
339
|
-
get: function () { return
|
|
339
|
+
get: function () { return ANV2PZC4_cjs.suiDeploymentArtifactExtraInfoSchema; }
|
|
340
340
|
});
|
|
341
341
|
Object.defineProperty(exports, "verificationArtifactSchema", {
|
|
342
342
|
enumerable: true,
|
|
343
|
-
get: function () { return
|
|
343
|
+
get: function () { return ANV2PZC4_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 './I5L5NLZY.js';
|
|
6
6
|
import './CA6UC3D3.js';
|
|
7
|
-
export { artifactRegistryActivityFactorySchema, createMockArtifactRegistry, realIdSchema, resourceRefSchema, resourceRegistryActivityFactorySchema, upsertResourceRealIdArgsSchema } from './
|
|
7
|
+
export { artifactRegistryActivityFactorySchema, createMockArtifactRegistry, realIdSchema, resourceRefSchema, resourceRegistryActivityFactorySchema, upsertResourceRealIdArgsSchema } from './LSBBADZ7.js';
|
|
8
8
|
export { createResourceBuilder } from './3GB3YEFM.js';
|
|
9
9
|
export { baseContractResourceSchema, baseMeshResourceSchema, baseResourceSchema, contractResourceReferenceSchema, contractResourceReferenceSchemaFor, createResolvedResourceSchema, extractContractResourceReferences, extractIdFromContractResourceReference, extractIdFromMeshResourceReference, extractMeshResourceReferences, meshResourceReferenceSchema, meshResourceReferenceSchemaFor, resolvedContractResourceReferenceSchema, resolvedMeshResourceReferenceSchema, withIntrinsicAddress } from './YQCUJB6A.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 './PY5K2COL.js';
|
|
13
|
+
export { ArtifactType, artifactWithTypeSchema, deploymentArtifactSchema, fullDeploymentArtifactSchema, identityOnlyDeploymentArtifactSchema, metadataArtifactSchema, solanaDeploymentArtifactExtraInfoSchema, suiDeploymentArtifactExtraInfoSchema, verificationArtifactSchema } from './CXG3MXVW.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.52",
|
|
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/typescript-utils": "0.2.
|
|
23
|
-
"@layerzerolabs/zod-utils": "0.2.
|
|
18
|
+
"@layerzerolabs/common-chain-model": "0.2.52",
|
|
19
|
+
"@layerzerolabs/common-error-utils": "0.2.52",
|
|
20
|
+
"@layerzerolabs/gated-transaction": "0.2.52",
|
|
21
|
+
"@layerzerolabs/layerzero-definitions": "0.2.52",
|
|
22
|
+
"@layerzerolabs/typescript-utils": "0.2.52",
|
|
23
|
+
"@layerzerolabs/zod-utils": "0.2.52"
|
|
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.52",
|
|
30
|
+
"@layerzerolabs/typescript-configuration": "0.2.52"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "restricted",
|
package/src/deploy/artifact.ts
CHANGED
|
@@ -29,6 +29,8 @@ export type SolanaDeploymentArtifactExtraInfo = z.infer<
|
|
|
29
29
|
|
|
30
30
|
export const suiDeploymentArtifactExtraInfoSchema = z.object({
|
|
31
31
|
digest: z.string(),
|
|
32
|
+
packageId: z.string(),
|
|
33
|
+
objectIds: z.record(z.string(), z.string()),
|
|
32
34
|
objectChanges: z.array(z.custom<SuiObjectChange>()),
|
|
33
35
|
});
|
|
34
36
|
|
package/dist/5OKHFG46.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/deploy/artifact.ts"],"names":["ArtifactType","solanaDeploymentArtifactExtraInfoSchema","z","object","accounts","record","string","normalizedHexSchema","suiDeploymentArtifactExtraInfoSchema","digest","objectChanges","array","custom","identityOnlyDeploymentArtifactSchema","contractName","chainName","enum","ChainName","address","fullDeploymentArtifactSchema","shape","nativeAddress","bytecodeHash","optional","deploymentTimestamp","number","deployerAddress","txHash","extraDeploymentInfo","any","deploymentArtifactSchema","union","verificationArtifactSchema","metadataArtifactSchema","jobId","pushedAt","metadataResources","artifactWithTypeSchema","discriminatedUnion","artifactType","literal","artifact"],"mappings":";;;;;AASO,IAAKA,YAAAA,6BAAAA,aAAAA,EAAAA;;;;AAAAA,EAAAA,OAAAA,aAAAA;;AAYL,IAAMC,uCAAAA,GAA0CC,EAAEC,MAAAA,CAAO;AAC5DC,EAAAA,QAAAA,EAAUF,CAAAA,CAAEG,MAAAA,CAAOH,CAAAA,CAAEI,MAAAA,IAAUC,mBAAAA;AACnC,CAAA;AAMO,IAAMC,oCAAAA,GAAuCN,EAAEC,MAAAA,CAAO;AACzDM,EAAAA,MAAAA,EAAQP,EAAEI,MAAAA,EAAM;AAChBI,EAAAA,aAAAA,EAAeR,CAAAA,CAAES,KAAAA,CAAMT,CAAAA,CAAEU,MAAAA,EAAM;AACnC,CAAA;AAIO,IAAMC,oCAAAA,GAAuCX,EAAEC,MAAAA,CAAO;AACzDW,EAAAA,YAAAA,EAAcZ,EAAEI,MAAAA,EAAM;EACtBS,SAAAA,EAAWb,CAAAA,CAAEc,KAAKC,SAAAA,CAAAA;EAClBC,OAAAA,EAASX;AACb,CAAA;AAIO,IAAMY,4BAAAA,GAA+BjB,EAAEC,MAAAA,CAAO;AACjD,EAAA,GAAGU,oCAAAA,CAAqCO,KAAAA;AACxCN,EAAAA,YAAAA,EAAcZ,EAAEI,MAAAA,EAAM;EACtBS,SAAAA,EAAWb,CAAAA,CAAEc,KAAKC,SAAAA,CAAAA;EAClBC,OAAAA,EAASX,mBAAAA;AACTc,EAA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GACd;AACH,CAAA","file":"5OKHFG46.js","sourcesContent":["import type { SuiObjectChange } from '@mysten/sui/client';\nimport { z } from 'zod';\n\nimport { normalizedHexSchema } from '@layerzerolabs/common-chain-model';\nimport { ChainName } from '@layerzerolabs/layerzero-definitions';\nexport type { ChainName };\n\nexport type { SuiObjectChange };\n\nexport enum ArtifactType {\n // Should merge deployment, verification artifacts\n\n // Full record from deployment on-chain\n DEPLOYMENT = 'deployment',\n // Information to verify contracts\n VERIFICATION = 'verification',\n // Record of a successful push to lz metadata\n METADATA = 'metadata',\n}\n\n// Chain-specific extra deployment info schemas\nexport const solanaDeploymentArtifactExtraInfoSchema = z.object({\n accounts: z.record(z.string(), normalizedHexSchema),\n});\n\nexport type SolanaDeploymentArtifactExtraInfo = z.infer<\n typeof solanaDeploymentArtifactExtraInfoSchema\n>;\n\nexport const suiDeploymentArtifactExtraInfoSchema = z.object({\n digest: z.string(),\n objectChanges: z.array(z.custom<SuiObjectChange>()),\n});\n\nexport type SuiDeploymentArtifactExtraInfo = z.infer<typeof suiDeploymentArtifactExtraInfoSchema>;\n\nexport const identityOnlyDeploymentArtifactSchema = z.object({\n contractName: z.string(),\n chainName: z.enum(ChainName),\n address: normalizedHexSchema,\n});\nexport type IdentityOnlyDeploymentArtifact = z.infer<typeof identityOnlyDeploymentArtifactSchema>;\n\n// FIXME also include verification artifact in this\nexport const fullDeploymentArtifactSchema = z.object({\n ...identityOnlyDeploymentArtifactSchema.shape,\n contractName: z.string(),\n chainName: z.enum(ChainName),\n address: normalizedHexSchema,\n nativeAddress: z.string(),\n bytecodeHash: z.string().optional(),\n deploymentTimestamp: z.number(),\n deployerAddress: normalizedHexSchema,\n txHash: z.string(),\n extraDeploymentInfo: z.any().optional(),\n});\nexport type FullDeploymentArtifact = z.infer<typeof fullDeploymentArtifactSchema>;\n\n// TODO: riley — decide whether to migrate stored identity-only artifacts to full artifacts and collapse this union into fullDeploymentArtifactSchema\nexport const deploymentArtifactSchema = z.union([\n // Check this first since it's a superset\n fullDeploymentArtifactSchema,\n identityOnlyDeploymentArtifactSchema,\n]);\n\nexport type DeploymentArtifact = z.infer<typeof deploymentArtifactSchema>;\n\nexport const verificationArtifactSchema = z.any();\n\nexport type VerificationArtifact = z.infer<typeof verificationArtifactSchema>;\n\nexport const metadataArtifactSchema = z.object({\n jobId: z.string(),\n pushedAt: z.number(),\n // We can type this fully but probably needs to happen later\n metadataResources: z.array(z.any()),\n});\n\nexport type MetadataArtifact = z.infer<typeof metadataArtifactSchema>;\n\nexport const artifactWithTypeSchema = z.discriminatedUnion('artifactType', [\n z.object({\n artifactType: z.literal(ArtifactType.DEPLOYMENT),\n artifact: deploymentArtifactSchema,\n }),\n z.object({\n artifactType: z.literal(ArtifactType.VERIFICATION),\n artifact: z.any(),\n }),\n z.object({\n artifactType: z.literal(ArtifactType.METADATA),\n artifact: metadataArtifactSchema,\n }),\n]);\n\nexport type ArtifactWithType = z.infer<typeof artifactWithTypeSchema>;\n"]}
|
package/dist/R4HLXLGU.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/deploy/artifact.ts"],"names":["ArtifactType","solanaDeploymentArtifactExtraInfoSchema","z","object","accounts","record","string","normalizedHexSchema","suiDeploymentArtifactExtraInfoSchema","digest","objectChanges","array","custom","identityOnlyDeploymentArtifactSchema","contractName","chainName","enum","ChainName","address","fullDeploymentArtifactSchema","shape","nativeAddress","bytecodeHash","optional","deploymentTimestamp","number","deployerAddress","txHash","extraDeploymentInfo","any","deploymentArtifactSchema","union","verificationArtifactSchema","metadataArtifactSchema","jobId","pushedAt","metadataResources","artifactWithTypeSchema","discriminatedUnion","artifactType","literal","artifact"],"mappings":";;;;;;;AASO,IAAKA,YAAAA,6BAAAA,aAAAA,EAAAA;;;;AAAAA,EAAAA,OAAAA,aAAAA;;AAYL,IAAMC,uCAAAA,GAA0CC,MAAEC,MAAAA,CAAO;AAC5DC,EAAAA,QAAAA,EAAUF,KAAAA,CAAEG,MAAA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3C+B,EAAAA,KAAAA,EAAOhC,MAAEI,MAAAA,EAAM;AACf6B,EAAAA,QAAAA,EAAUjC,MAAEuB,MAAAA,EAAM;;AAElBW,EAAAA,iBAAAA,EAAmBlC,KAAAA,CAAES,KAAAA,CAAMT,KAAAA,CAAE2B,GAAAA,EAAG;AACpC,CAAA;AAIO,IAAMQ,sBAAAA,GAAyBnC,KAAAA,CAAEoC,kBAAAA,CAAmB,cAAA,EAAgB;AACvEpC,EAAAA,KAAAA,CAAEC,MAAAA,CAAO;IACLoC,YAAAA,EAAcrC,KAAAA,CAAEsC,QAAO,YAAA,CAAA;IACvBC,QAAAA,EAAUX;GACd,CAAA;AACA5B,EAAAA,KAAAA,CAAEC,MAAAA,CAAO;IACLoC,YAAAA,EAAcrC,KAAAA,CAAEsC,QAAO,cAAA,CAAA;AACvBC,IAAAA,QAAAA,EAAUvC,MAAE2B,GAAAA;GAChB,CAAA;AACA3B,EAAAA,KAAAA,CAAEC,MAAAA,CAAO;IACLoC,YAAAA,EAAcrC,KAAAA,CAAEsC,QAAO,UAAA,CAAA;IACvBC,QAAAA,EAAUR;GACd;AACH,CAAA","file":"R4HLXLGU.cjs","sourcesContent":["import type { SuiObjectChange } from '@mysten/sui/client';\nimport { z } from 'zod';\n\nimport { normalizedHexSchema } from '@layerzerolabs/common-chain-model';\nimport { ChainName } from '@layerzerolabs/layerzero-definitions';\nexport type { ChainName };\n\nexport type { SuiObjectChange };\n\nexport enum ArtifactType {\n // Should merge deployment, verification artifacts\n\n // Full record from deployment on-chain\n DEPLOYMENT = 'deployment',\n // Information to verify contracts\n VERIFICATION = 'verification',\n // Record of a successful push to lz metadata\n METADATA = 'metadata',\n}\n\n// Chain-specific extra deployment info schemas\nexport const solanaDeploymentArtifactExtraInfoSchema = z.object({\n accounts: z.record(z.string(), normalizedHexSchema),\n});\n\nexport type SolanaDeploymentArtifactExtraInfo = z.infer<\n typeof solanaDeploymentArtifactExtraInfoSchema\n>;\n\nexport const suiDeploymentArtifactExtraInfoSchema = z.object({\n digest: z.string(),\n objectChanges: z.array(z.custom<SuiObjectChange>()),\n});\n\nexport type SuiDeploymentArtifactExtraInfo = z.infer<typeof suiDeploymentArtifactExtraInfoSchema>;\n\nexport const identityOnlyDeploymentArtifactSchema = z.object({\n contractName: z.string(),\n chainName: z.enum(ChainName),\n address: normalizedHexSchema,\n});\nexport type IdentityOnlyDeploymentArtifact = z.infer<typeof identityOnlyDeploymentArtifactSchema>;\n\n// FIXME also include verification artifact in this\nexport const fullDeploymentArtifactSchema = z.object({\n ...identityOnlyDeploymentArtifactSchema.shape,\n contractName: z.string(),\n chainName: z.enum(ChainName),\n address: normalizedHexSchema,\n nativeAddress: z.string(),\n bytecodeHash: z.string().optional(),\n deploymentTimestamp: z.number(),\n deployerAddress: normalizedHexSchema,\n txHash: z.string(),\n extraDeploymentInfo: z.any().optional(),\n});\nexport type FullDeploymentArtifact = z.infer<typeof fullDeploymentArtifactSchema>;\n\n// TODO: riley — decide whether to migrate stored identity-only artifacts to full artifacts and collapse this union into fullDeploymentArtifactSchema\nexport const deploymentArtifactSchema = z.union([\n // Check this first since it's a superset\n fullDeploymentArtifactSchema,\n identityOnlyDeploymentArtifactSchema,\n]);\n\nexport type DeploymentArtifact = z.infer<typeof deploymentArtifactSchema>;\n\nexport const verificationArtifactSchema = z.any();\n\nexport type VerificationArtifact = z.infer<typeof verificationArtifactSchema>;\n\nexport const metadataArtifactSchema = z.object({\n jobId: z.string(),\n pushedAt: z.number(),\n // We can type this fully but probably needs to happen later\n metadataResources: z.array(z.any()),\n});\n\nexport type MetadataArtifact = z.infer<typeof metadataArtifactSchema>;\n\nexport const artifactWithTypeSchema = z.discriminatedUnion('artifactType', [\n z.object({\n artifactType: z.literal(ArtifactType.DEPLOYMENT),\n artifact: deploymentArtifactSchema,\n }),\n z.object({\n artifactType: z.literal(ArtifactType.VERIFICATION),\n artifact: z.any(),\n }),\n z.object({\n artifactType: z.literal(ArtifactType.METADATA),\n artifact: metadataArtifactSchema,\n }),\n]);\n\nexport type ArtifactWithType = z.infer<typeof artifactWithTypeSchema>;\n"]}
|