@caatinga/core 3.2.0 → 3.3.0

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.
@@ -50,6 +50,8 @@ var CaatingaErrorCode = {
50
50
  STELLAR_CLI_NOT_FOUND: "CAATINGA_STELLAR_CLI_NOT_FOUND",
51
51
  STELLAR_CLI_VERSION_PARSE_FAILED: "CAATINGA_STELLAR_CLI_VERSION_PARSE_FAILED",
52
52
  UNSUPPORTED_CLI_VERSION: "CAATINGA_UNSUPPORTED_CLI_VERSION",
53
+ STELLAR_SDK_VERSION_PARSE_FAILED: "CAATINGA_STELLAR_SDK_VERSION_PARSE_FAILED",
54
+ UNSUPPORTED_SDK_VERSION: "CAATINGA_UNSUPPORTED_SDK_VERSION",
53
55
  RUST_NOT_FOUND: "CAATINGA_RUST_NOT_FOUND",
54
56
  RUST_TARGET_NOT_FOUND: "CAATINGA_RUST_TARGET_NOT_FOUND",
55
57
  DEPLOY_FAILED: "CAATINGA_DEPLOY_FAILED",
@@ -92,6 +94,8 @@ var CaatingaErrorCode = {
92
94
  ZK_VERIFICATION_FAILED: "CAATINGA_ZK_VERIFICATION_FAILED",
93
95
  ZK_DEV_CEREMONY_BLOCKED: "CAATINGA_ZK_DEV_CEREMONY_BLOCKED",
94
96
  DOCTOR_PARTIAL_DEPLOY: "CAATINGA_DOCTOR_PARTIAL_DEPLOY",
97
+ ROLLBACK_TARGET_NOT_FOUND: "CAATINGA_ROLLBACK_TARGET_NOT_FOUND",
98
+ ESTIMATE_FAILED: "CAATINGA_ESTIMATE_FAILED",
95
99
  MULTI_AUTH_REQUIRED: "CAATINGA_MULTI_AUTH_REQUIRED"
96
100
  };
97
101
 
@@ -13,6 +13,8 @@ var CaatingaErrorCode = {
13
13
  STELLAR_CLI_NOT_FOUND: "CAATINGA_STELLAR_CLI_NOT_FOUND",
14
14
  STELLAR_CLI_VERSION_PARSE_FAILED: "CAATINGA_STELLAR_CLI_VERSION_PARSE_FAILED",
15
15
  UNSUPPORTED_CLI_VERSION: "CAATINGA_UNSUPPORTED_CLI_VERSION",
16
+ STELLAR_SDK_VERSION_PARSE_FAILED: "CAATINGA_STELLAR_SDK_VERSION_PARSE_FAILED",
17
+ UNSUPPORTED_SDK_VERSION: "CAATINGA_UNSUPPORTED_SDK_VERSION",
16
18
  RUST_NOT_FOUND: "CAATINGA_RUST_NOT_FOUND",
17
19
  RUST_TARGET_NOT_FOUND: "CAATINGA_RUST_TARGET_NOT_FOUND",
18
20
  DEPLOY_FAILED: "CAATINGA_DEPLOY_FAILED",
@@ -55,6 +57,8 @@ var CaatingaErrorCode = {
55
57
  ZK_VERIFICATION_FAILED: "CAATINGA_ZK_VERIFICATION_FAILED",
56
58
  ZK_DEV_CEREMONY_BLOCKED: "CAATINGA_ZK_DEV_CEREMONY_BLOCKED",
57
59
  DOCTOR_PARTIAL_DEPLOY: "CAATINGA_DOCTOR_PARTIAL_DEPLOY",
60
+ ROLLBACK_TARGET_NOT_FOUND: "CAATINGA_ROLLBACK_TARGET_NOT_FOUND",
61
+ ESTIMATE_FAILED: "CAATINGA_ESTIMATE_FAILED",
58
62
  MULTI_AUTH_REQUIRED: "CAATINGA_MULTI_AUTH_REQUIRED"
59
63
  };
60
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caatinga/core",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Core config, artifacts, command orchestration, and error primitives for Caatinga/Soroban toolkit",
5
5
  "keywords": [
6
6
  "stellar",
@@ -1,186 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const CaatingaErrorCode: {
4
- readonly CONFIG_NOT_FOUND: "CAATINGA_CONFIG_NOT_FOUND";
5
- readonly DEPENDENCIES_NOT_INSTALLED: "CAATINGA_DEPENDENCIES_NOT_INSTALLED";
6
- readonly INVALID_CONFIG: "CAATINGA_INVALID_CONFIG";
7
- readonly COMMAND_FAILED: "CAATINGA_COMMAND_FAILED";
8
- readonly UNEXPECTED_ERROR: "CAATINGA_UNEXPECTED_ERROR";
9
- readonly STELLAR_CLI_NOT_FOUND: "CAATINGA_STELLAR_CLI_NOT_FOUND";
10
- readonly STELLAR_CLI_VERSION_PARSE_FAILED: "CAATINGA_STELLAR_CLI_VERSION_PARSE_FAILED";
11
- readonly UNSUPPORTED_CLI_VERSION: "CAATINGA_UNSUPPORTED_CLI_VERSION";
12
- readonly RUST_NOT_FOUND: "CAATINGA_RUST_NOT_FOUND";
13
- readonly RUST_TARGET_NOT_FOUND: "CAATINGA_RUST_TARGET_NOT_FOUND";
14
- readonly DEPLOY_FAILED: "CAATINGA_DEPLOY_FAILED";
15
- readonly BUILD_FAILED: "CAATINGA_BUILD_FAILED";
16
- readonly BINDINGS_FAILED: "CAATINGA_BINDINGS_FAILED";
17
- readonly INVOKE_FAILED: "CAATINGA_INVOKE_FAILED";
18
- readonly CONTRACT_NOT_FOUND: "CAATINGA_CONTRACT_NOT_FOUND";
19
- readonly NETWORK_NOT_FOUND: "CAATINGA_NETWORK_NOT_FOUND";
20
- readonly ARTIFACT_NOT_FOUND: "CAATINGA_ARTIFACT_NOT_FOUND";
21
- readonly ARTIFACT_INVALID: "CAATINGA_ARTIFACT_INVALID";
22
- readonly CONTRACT_ID_NOT_FOUND: "CAATINGA_CONTRACT_ID_NOT_FOUND";
23
- readonly CONTRACT_ARTIFACT_NOT_FOUND: "CAATINGA_CONTRACT_ARTIFACT_NOT_FOUND";
24
- readonly CONTRACT_DEPENDENCY_NOT_FOUND: "CAATINGA_CONTRACT_DEPENDENCY_NOT_FOUND";
25
- readonly CONTRACT_DEPENDENCY_CYCLE: "CAATINGA_CONTRACT_DEPENDENCY_CYCLE";
26
- readonly CONTRACT_DEPENDENCY_ARTIFACT_NOT_FOUND: "CAATINGA_CONTRACT_DEPENDENCY_ARTIFACT_NOT_FOUND";
27
- readonly DEPENDENCY_CONTRACT_NOT_FOUND: "CAATINGA_DEPENDENCY_CONTRACT_NOT_FOUND";
28
- readonly DEPLOY_ARG_PLACEHOLDER_INVALID: "CAATINGA_DEPLOY_ARG_PLACEHOLDER_INVALID";
29
- readonly DEPLOY_ARG_PLACEHOLDER_UNRESOLVED: "CAATINGA_DEPLOY_ARG_PLACEHOLDER_UNRESOLVED";
30
- readonly BINDING_CLIENT_NOT_FOUND: "CAATINGA_BINDING_CLIENT_NOT_FOUND";
31
- readonly BINDING_METHOD_NOT_FOUND: "CAATINGA_BINDING_METHOD_NOT_FOUND";
32
- readonly PLACEHOLDER_BINDING: "CAATINGA_PLACEHOLDER_BINDING";
33
- readonly XDR_BUILD_FAILED: "CAATINGA_XDR_BUILD_FAILED";
34
- readonly XDR_PREPARE_FAILED: "CAATINGA_XDR_PREPARE_FAILED";
35
- readonly XDR_SIGN_FAILED: "CAATINGA_XDR_SIGN_FAILED";
36
- readonly XDR_SUBMIT_FAILED: "CAATINGA_XDR_SUBMIT_FAILED";
37
- readonly XDR_RESULT_FAILED: "CAATINGA_XDR_RESULT_FAILED";
38
- readonly READ_RESULT_MISSING: "CAATINGA_READ_RESULT_MISSING";
39
- readonly WALLET_NOT_CONNECTED: "CAATINGA_WALLET_NOT_CONNECTED";
40
- readonly WALLET_TIMEOUT: "CAATINGA_WALLET_TIMEOUT";
41
- readonly SOURCE_ACCOUNT_REQUIRED: "CAATINGA_SOURCE_ACCOUNT_REQUIRED";
42
- readonly SOURCE_IS_SECRET_KEY: "CAATINGA_SOURCE_IS_SECRET_KEY";
43
- readonly SOURCE_IS_SEED_PHRASE: "CAATINGA_SOURCE_IS_SEED_PHRASE";
44
- readonly SOURCE_IS_PUBLIC_KEY: "CAATINGA_SOURCE_IS_PUBLIC_KEY";
45
- readonly UNSAFE_SOURCE_ACCOUNT: "CAATINGA_UNSAFE_SOURCE_ACCOUNT";
46
- readonly INVOKE_TARGET_INVALID: "CAATINGA_INVOKE_TARGET_INVALID";
47
- readonly TEMPLATE_NOT_FOUND: "CAATINGA_TEMPLATE_NOT_FOUND";
48
- readonly INVALID_TEMPLATE_MANIFEST: "CAATINGA_INVALID_TEMPLATE_MANIFEST";
49
- readonly TEMPLATE_MANIFEST_NOT_FOUND: "CAATINGA_TEMPLATE_MANIFEST_NOT_FOUND";
50
- readonly TEMPLATE_INCOMPATIBLE: "CAATINGA_TEMPLATE_INCOMPATIBLE";
51
- readonly ZK_VERIFICATION_FAILED: "CAATINGA_ZK_VERIFICATION_FAILED";
52
- readonly ZK_DEV_CEREMONY_BLOCKED: "CAATINGA_ZK_DEV_CEREMONY_BLOCKED";
53
- readonly DOCTOR_PARTIAL_DEPLOY: "CAATINGA_DOCTOR_PARTIAL_DEPLOY";
54
- readonly MULTI_AUTH_REQUIRED: "CAATINGA_MULTI_AUTH_REQUIRED";
55
- };
56
- type CaatingaErrorCodeValue = (typeof CaatingaErrorCode)[keyof typeof CaatingaErrorCode];
57
-
58
- declare class CaatingaError extends Error {
59
- readonly code: CaatingaErrorCodeValue;
60
- readonly hint?: string | undefined;
61
- readonly cause?: unknown | undefined;
62
- constructor(message: string, code: CaatingaErrorCodeValue, hint?: string | undefined, cause?: unknown | undefined);
63
- }
64
- declare function toCaatingaError(error: unknown): CaatingaError;
65
-
66
- /**
67
- * Render an error for display. For a {@link CaatingaError} this surfaces the
68
- * code, message, and hint, plus the underlying `cause` (when present) so the
69
- * real reason — e.g. a wallet rejection or an XDR parse error — is never hidden
70
- * behind a generic hint. Falls back to the plain message for other errors.
71
- */
72
- declare function formatCaatingaError(error: unknown): string;
73
-
74
- declare const ContractArtifactSchema: z.ZodObject<{
75
- contractId: z.ZodString;
76
- wasmHash: z.ZodString;
77
- deployedAt: z.ZodString;
78
- sourcePath: z.ZodString;
79
- wasmPath: z.ZodString;
80
- dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
81
- resolvedDeployArgs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
82
- }, "strip", z.ZodTypeAny, {
83
- contractId: string;
84
- wasmHash: string;
85
- deployedAt: string;
86
- sourcePath: string;
87
- wasmPath: string;
88
- dependencies: string[];
89
- resolvedDeployArgs: Record<string, string | number | boolean>;
90
- }, {
91
- contractId: string;
92
- wasmHash: string;
93
- deployedAt: string;
94
- sourcePath: string;
95
- wasmPath: string;
96
- dependencies?: string[] | undefined;
97
- resolvedDeployArgs?: Record<string, string | number | boolean> | undefined;
98
- }>;
99
- declare const CaatingaArtifactsSchema: z.ZodObject<{
100
- project: z.ZodString;
101
- version: z.ZodLiteral<1>;
102
- networks: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
103
- contracts: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
104
- contractId: z.ZodString;
105
- wasmHash: z.ZodString;
106
- deployedAt: z.ZodString;
107
- sourcePath: z.ZodString;
108
- wasmPath: z.ZodString;
109
- dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
110
- resolvedDeployArgs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
111
- }, "strip", z.ZodTypeAny, {
112
- contractId: string;
113
- wasmHash: string;
114
- deployedAt: string;
115
- sourcePath: string;
116
- wasmPath: string;
117
- dependencies: string[];
118
- resolvedDeployArgs: Record<string, string | number | boolean>;
119
- }, {
120
- contractId: string;
121
- wasmHash: string;
122
- deployedAt: string;
123
- sourcePath: string;
124
- wasmPath: string;
125
- dependencies?: string[] | undefined;
126
- resolvedDeployArgs?: Record<string, string | number | boolean> | undefined;
127
- }>>>;
128
- dependencyGraph: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
129
- }, "strip", z.ZodTypeAny, {
130
- contracts: Record<string, {
131
- contractId: string;
132
- wasmHash: string;
133
- deployedAt: string;
134
- sourcePath: string;
135
- wasmPath: string;
136
- dependencies: string[];
137
- resolvedDeployArgs: Record<string, string | number | boolean>;
138
- }>;
139
- dependencyGraph: Record<string, string[]>;
140
- }, {
141
- contracts?: Record<string, {
142
- contractId: string;
143
- wasmHash: string;
144
- deployedAt: string;
145
- sourcePath: string;
146
- wasmPath: string;
147
- dependencies?: string[] | undefined;
148
- resolvedDeployArgs?: Record<string, string | number | boolean> | undefined;
149
- }> | undefined;
150
- dependencyGraph?: Record<string, string[]> | undefined;
151
- }>>>;
152
- }, "strip", z.ZodTypeAny, {
153
- project: string;
154
- version: 1;
155
- networks: Record<string, {
156
- contracts: Record<string, {
157
- contractId: string;
158
- wasmHash: string;
159
- deployedAt: string;
160
- sourcePath: string;
161
- wasmPath: string;
162
- dependencies: string[];
163
- resolvedDeployArgs: Record<string, string | number | boolean>;
164
- }>;
165
- dependencyGraph: Record<string, string[]>;
166
- }>;
167
- }, {
168
- project: string;
169
- version: 1;
170
- networks?: Record<string, {
171
- contracts?: Record<string, {
172
- contractId: string;
173
- wasmHash: string;
174
- deployedAt: string;
175
- sourcePath: string;
176
- wasmPath: string;
177
- dependencies?: string[] | undefined;
178
- resolvedDeployArgs?: Record<string, string | number | boolean> | undefined;
179
- }> | undefined;
180
- dependencyGraph?: Record<string, string[]> | undefined;
181
- }> | undefined;
182
- }>;
183
- type ContractArtifact = z.infer<typeof ContractArtifactSchema>;
184
- type CaatingaArtifacts = z.infer<typeof CaatingaArtifactsSchema>;
185
-
186
- export { type CaatingaArtifacts as C, CaatingaError as a, CaatingaErrorCode as b, type ContractArtifact as c, type CaatingaErrorCodeValue as d, CaatingaArtifactsSchema as e, formatCaatingaError as f, toCaatingaError as t };
@@ -1,186 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const CaatingaErrorCode: {
4
- readonly CONFIG_NOT_FOUND: "CAATINGA_CONFIG_NOT_FOUND";
5
- readonly DEPENDENCIES_NOT_INSTALLED: "CAATINGA_DEPENDENCIES_NOT_INSTALLED";
6
- readonly INVALID_CONFIG: "CAATINGA_INVALID_CONFIG";
7
- readonly COMMAND_FAILED: "CAATINGA_COMMAND_FAILED";
8
- readonly UNEXPECTED_ERROR: "CAATINGA_UNEXPECTED_ERROR";
9
- readonly STELLAR_CLI_NOT_FOUND: "CAATINGA_STELLAR_CLI_NOT_FOUND";
10
- readonly STELLAR_CLI_VERSION_PARSE_FAILED: "CAATINGA_STELLAR_CLI_VERSION_PARSE_FAILED";
11
- readonly UNSUPPORTED_CLI_VERSION: "CAATINGA_UNSUPPORTED_CLI_VERSION";
12
- readonly RUST_NOT_FOUND: "CAATINGA_RUST_NOT_FOUND";
13
- readonly RUST_TARGET_NOT_FOUND: "CAATINGA_RUST_TARGET_NOT_FOUND";
14
- readonly DEPLOY_FAILED: "CAATINGA_DEPLOY_FAILED";
15
- readonly BUILD_FAILED: "CAATINGA_BUILD_FAILED";
16
- readonly BINDINGS_FAILED: "CAATINGA_BINDINGS_FAILED";
17
- readonly INVOKE_FAILED: "CAATINGA_INVOKE_FAILED";
18
- readonly CONTRACT_NOT_FOUND: "CAATINGA_CONTRACT_NOT_FOUND";
19
- readonly NETWORK_NOT_FOUND: "CAATINGA_NETWORK_NOT_FOUND";
20
- readonly ARTIFACT_NOT_FOUND: "CAATINGA_ARTIFACT_NOT_FOUND";
21
- readonly ARTIFACT_INVALID: "CAATINGA_ARTIFACT_INVALID";
22
- readonly CONTRACT_ID_NOT_FOUND: "CAATINGA_CONTRACT_ID_NOT_FOUND";
23
- readonly CONTRACT_ARTIFACT_NOT_FOUND: "CAATINGA_CONTRACT_ARTIFACT_NOT_FOUND";
24
- readonly CONTRACT_DEPENDENCY_NOT_FOUND: "CAATINGA_CONTRACT_DEPENDENCY_NOT_FOUND";
25
- readonly CONTRACT_DEPENDENCY_CYCLE: "CAATINGA_CONTRACT_DEPENDENCY_CYCLE";
26
- readonly CONTRACT_DEPENDENCY_ARTIFACT_NOT_FOUND: "CAATINGA_CONTRACT_DEPENDENCY_ARTIFACT_NOT_FOUND";
27
- readonly DEPENDENCY_CONTRACT_NOT_FOUND: "CAATINGA_DEPENDENCY_CONTRACT_NOT_FOUND";
28
- readonly DEPLOY_ARG_PLACEHOLDER_INVALID: "CAATINGA_DEPLOY_ARG_PLACEHOLDER_INVALID";
29
- readonly DEPLOY_ARG_PLACEHOLDER_UNRESOLVED: "CAATINGA_DEPLOY_ARG_PLACEHOLDER_UNRESOLVED";
30
- readonly BINDING_CLIENT_NOT_FOUND: "CAATINGA_BINDING_CLIENT_NOT_FOUND";
31
- readonly BINDING_METHOD_NOT_FOUND: "CAATINGA_BINDING_METHOD_NOT_FOUND";
32
- readonly PLACEHOLDER_BINDING: "CAATINGA_PLACEHOLDER_BINDING";
33
- readonly XDR_BUILD_FAILED: "CAATINGA_XDR_BUILD_FAILED";
34
- readonly XDR_PREPARE_FAILED: "CAATINGA_XDR_PREPARE_FAILED";
35
- readonly XDR_SIGN_FAILED: "CAATINGA_XDR_SIGN_FAILED";
36
- readonly XDR_SUBMIT_FAILED: "CAATINGA_XDR_SUBMIT_FAILED";
37
- readonly XDR_RESULT_FAILED: "CAATINGA_XDR_RESULT_FAILED";
38
- readonly READ_RESULT_MISSING: "CAATINGA_READ_RESULT_MISSING";
39
- readonly WALLET_NOT_CONNECTED: "CAATINGA_WALLET_NOT_CONNECTED";
40
- readonly WALLET_TIMEOUT: "CAATINGA_WALLET_TIMEOUT";
41
- readonly SOURCE_ACCOUNT_REQUIRED: "CAATINGA_SOURCE_ACCOUNT_REQUIRED";
42
- readonly SOURCE_IS_SECRET_KEY: "CAATINGA_SOURCE_IS_SECRET_KEY";
43
- readonly SOURCE_IS_SEED_PHRASE: "CAATINGA_SOURCE_IS_SEED_PHRASE";
44
- readonly SOURCE_IS_PUBLIC_KEY: "CAATINGA_SOURCE_IS_PUBLIC_KEY";
45
- readonly UNSAFE_SOURCE_ACCOUNT: "CAATINGA_UNSAFE_SOURCE_ACCOUNT";
46
- readonly INVOKE_TARGET_INVALID: "CAATINGA_INVOKE_TARGET_INVALID";
47
- readonly TEMPLATE_NOT_FOUND: "CAATINGA_TEMPLATE_NOT_FOUND";
48
- readonly INVALID_TEMPLATE_MANIFEST: "CAATINGA_INVALID_TEMPLATE_MANIFEST";
49
- readonly TEMPLATE_MANIFEST_NOT_FOUND: "CAATINGA_TEMPLATE_MANIFEST_NOT_FOUND";
50
- readonly TEMPLATE_INCOMPATIBLE: "CAATINGA_TEMPLATE_INCOMPATIBLE";
51
- readonly ZK_VERIFICATION_FAILED: "CAATINGA_ZK_VERIFICATION_FAILED";
52
- readonly ZK_DEV_CEREMONY_BLOCKED: "CAATINGA_ZK_DEV_CEREMONY_BLOCKED";
53
- readonly DOCTOR_PARTIAL_DEPLOY: "CAATINGA_DOCTOR_PARTIAL_DEPLOY";
54
- readonly MULTI_AUTH_REQUIRED: "CAATINGA_MULTI_AUTH_REQUIRED";
55
- };
56
- type CaatingaErrorCodeValue = (typeof CaatingaErrorCode)[keyof typeof CaatingaErrorCode];
57
-
58
- declare class CaatingaError extends Error {
59
- readonly code: CaatingaErrorCodeValue;
60
- readonly hint?: string | undefined;
61
- readonly cause?: unknown | undefined;
62
- constructor(message: string, code: CaatingaErrorCodeValue, hint?: string | undefined, cause?: unknown | undefined);
63
- }
64
- declare function toCaatingaError(error: unknown): CaatingaError;
65
-
66
- /**
67
- * Render an error for display. For a {@link CaatingaError} this surfaces the
68
- * code, message, and hint, plus the underlying `cause` (when present) so the
69
- * real reason — e.g. a wallet rejection or an XDR parse error — is never hidden
70
- * behind a generic hint. Falls back to the plain message for other errors.
71
- */
72
- declare function formatCaatingaError(error: unknown): string;
73
-
74
- declare const ContractArtifactSchema: z.ZodObject<{
75
- contractId: z.ZodString;
76
- wasmHash: z.ZodString;
77
- deployedAt: z.ZodString;
78
- sourcePath: z.ZodString;
79
- wasmPath: z.ZodString;
80
- dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
81
- resolvedDeployArgs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
82
- }, "strip", z.ZodTypeAny, {
83
- contractId: string;
84
- wasmHash: string;
85
- deployedAt: string;
86
- sourcePath: string;
87
- wasmPath: string;
88
- dependencies: string[];
89
- resolvedDeployArgs: Record<string, string | number | boolean>;
90
- }, {
91
- contractId: string;
92
- wasmHash: string;
93
- deployedAt: string;
94
- sourcePath: string;
95
- wasmPath: string;
96
- dependencies?: string[] | undefined;
97
- resolvedDeployArgs?: Record<string, string | number | boolean> | undefined;
98
- }>;
99
- declare const CaatingaArtifactsSchema: z.ZodObject<{
100
- project: z.ZodString;
101
- version: z.ZodLiteral<1>;
102
- networks: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
103
- contracts: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
104
- contractId: z.ZodString;
105
- wasmHash: z.ZodString;
106
- deployedAt: z.ZodString;
107
- sourcePath: z.ZodString;
108
- wasmPath: z.ZodString;
109
- dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
110
- resolvedDeployArgs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
111
- }, "strip", z.ZodTypeAny, {
112
- contractId: string;
113
- wasmHash: string;
114
- deployedAt: string;
115
- sourcePath: string;
116
- wasmPath: string;
117
- dependencies: string[];
118
- resolvedDeployArgs: Record<string, string | number | boolean>;
119
- }, {
120
- contractId: string;
121
- wasmHash: string;
122
- deployedAt: string;
123
- sourcePath: string;
124
- wasmPath: string;
125
- dependencies?: string[] | undefined;
126
- resolvedDeployArgs?: Record<string, string | number | boolean> | undefined;
127
- }>>>;
128
- dependencyGraph: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
129
- }, "strip", z.ZodTypeAny, {
130
- contracts: Record<string, {
131
- contractId: string;
132
- wasmHash: string;
133
- deployedAt: string;
134
- sourcePath: string;
135
- wasmPath: string;
136
- dependencies: string[];
137
- resolvedDeployArgs: Record<string, string | number | boolean>;
138
- }>;
139
- dependencyGraph: Record<string, string[]>;
140
- }, {
141
- contracts?: Record<string, {
142
- contractId: string;
143
- wasmHash: string;
144
- deployedAt: string;
145
- sourcePath: string;
146
- wasmPath: string;
147
- dependencies?: string[] | undefined;
148
- resolvedDeployArgs?: Record<string, string | number | boolean> | undefined;
149
- }> | undefined;
150
- dependencyGraph?: Record<string, string[]> | undefined;
151
- }>>>;
152
- }, "strip", z.ZodTypeAny, {
153
- project: string;
154
- version: 1;
155
- networks: Record<string, {
156
- contracts: Record<string, {
157
- contractId: string;
158
- wasmHash: string;
159
- deployedAt: string;
160
- sourcePath: string;
161
- wasmPath: string;
162
- dependencies: string[];
163
- resolvedDeployArgs: Record<string, string | number | boolean>;
164
- }>;
165
- dependencyGraph: Record<string, string[]>;
166
- }>;
167
- }, {
168
- project: string;
169
- version: 1;
170
- networks?: Record<string, {
171
- contracts?: Record<string, {
172
- contractId: string;
173
- wasmHash: string;
174
- deployedAt: string;
175
- sourcePath: string;
176
- wasmPath: string;
177
- dependencies?: string[] | undefined;
178
- resolvedDeployArgs?: Record<string, string | number | boolean> | undefined;
179
- }> | undefined;
180
- dependencyGraph?: Record<string, string[]> | undefined;
181
- }> | undefined;
182
- }>;
183
- type ContractArtifact = z.infer<typeof ContractArtifactSchema>;
184
- type CaatingaArtifacts = z.infer<typeof CaatingaArtifactsSchema>;
185
-
186
- export { type CaatingaArtifacts as C, CaatingaError as a, CaatingaErrorCode as b, type ContractArtifact as c, type CaatingaErrorCodeValue as d, CaatingaArtifactsSchema as e, formatCaatingaError as f, toCaatingaError as t };