@openzeppelin/contracts-mcp 0.5.5 → 0.5.7
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/dist/cairo/tools/account.js +2 -2
- package/dist/cairo/tools/account.js.map +1 -1
- package/dist/cairo/tools/custom.js +2 -2
- package/dist/cairo/tools/custom.js.map +1 -1
- package/dist/cairo/tools/erc1155.js +2 -2
- package/dist/cairo/tools/erc1155.js.map +1 -1
- package/dist/cairo/tools/erc20.js +2 -2
- package/dist/cairo/tools/erc20.js.map +1 -1
- package/dist/cairo/tools/erc721.js +2 -2
- package/dist/cairo/tools/erc721.js.map +1 -1
- package/dist/cairo/tools/governor.js +2 -2
- package/dist/cairo/tools/governor.js.map +1 -1
- package/dist/cairo/tools/multisig.js +2 -2
- package/dist/cairo/tools/multisig.js.map +1 -1
- package/dist/cairo/tools/vesting.js +2 -2
- package/dist/cairo/tools/vesting.js.map +1 -1
- package/dist/confidential/tools/erc7984.js +2 -2
- package/dist/confidential/tools/erc7984.js.map +1 -1
- package/dist/solidity/tools/account.js +2 -2
- package/dist/solidity/tools/account.js.map +1 -1
- package/dist/solidity/tools/custom.js +2 -2
- package/dist/solidity/tools/custom.js.map +1 -1
- package/dist/solidity/tools/erc1155.js +2 -2
- package/dist/solidity/tools/erc1155.js.map +1 -1
- package/dist/solidity/tools/erc20.js +2 -2
- package/dist/solidity/tools/erc20.js.map +1 -1
- package/dist/solidity/tools/erc721.js +2 -2
- package/dist/solidity/tools/erc721.js.map +1 -1
- package/dist/solidity/tools/governor.js +2 -2
- package/dist/solidity/tools/governor.js.map +1 -1
- package/dist/solidity/tools/rwa.js +2 -2
- package/dist/solidity/tools/rwa.js.map +1 -1
- package/dist/solidity/tools/stablecoin.js +2 -2
- package/dist/solidity/tools/stablecoin.js.map +1 -1
- package/dist/stellar/tools/fungible.js +2 -2
- package/dist/stellar/tools/fungible.js.map +1 -1
- package/dist/stellar/tools/non-fungible.js +2 -2
- package/dist/stellar/tools/non-fungible.js.map +1 -1
- package/dist/stellar/tools/stablecoin.js +2 -2
- package/dist/stellar/tools/stablecoin.js.map +1 -1
- package/dist/stylus/tools/erc1155.js +2 -2
- package/dist/stylus/tools/erc1155.js.map +1 -1
- package/dist/stylus/tools/erc20.js +2 -2
- package/dist/stylus/tools/erc20.js.map +1 -1
- package/dist/stylus/tools/erc721.js +2 -2
- package/dist/stylus/tools/erc721.js.map +1 -1
- package/dist/uniswap-hooks/tools/hooks.js +2 -2
- package/dist/uniswap-hooks/tools/hooks.js.map +1 -1
- package/package.json +6 -6
- package/src/cairo/tools/account.ts +2 -2
- package/src/cairo/tools/custom.ts +2 -2
- package/src/cairo/tools/erc1155.ts +2 -2
- package/src/cairo/tools/erc20.ts +2 -2
- package/src/cairo/tools/erc721.ts +2 -2
- package/src/cairo/tools/governor.ts +2 -2
- package/src/cairo/tools/multisig.ts +2 -2
- package/src/cairo/tools/vesting.ts +2 -2
- package/src/confidential/tools/erc7984.ts +2 -2
- package/src/solidity/tools/account.ts +2 -2
- package/src/solidity/tools/custom.ts +2 -2
- package/src/solidity/tools/erc1155.ts +2 -2
- package/src/solidity/tools/erc20.ts +2 -2
- package/src/solidity/tools/erc721.ts +2 -2
- package/src/solidity/tools/governor.ts +2 -2
- package/src/solidity/tools/rwa.ts +2 -2
- package/src/solidity/tools/stablecoin.ts +2 -2
- package/src/stellar/tools/fungible.ts +2 -2
- package/src/stellar/tools/non-fungible.ts +2 -2
- package/src/stellar/tools/stablecoin.ts +2 -2
- package/src/stylus/tools/erc1155.ts +2 -2
- package/src/stylus/tools/erc20.ts +2 -2
- package/src/stylus/tools/erc721.ts +2 -2
- package/src/uniswap-hooks/tools/hooks.ts +2 -2
- package/dist/cairo/schemas.d.ts +0 -342
- package/dist/cairo/schemas.d.ts.map +0 -1
- package/dist/cairo/schemas.js +0 -153
- package/dist/cairo/schemas.js.map +0 -1
- package/dist/confidential/schemas.d.ts +0 -33
- package/dist/confidential/schemas.d.ts.map +0 -1
- package/dist/confidential/schemas.js +0 -33
- package/dist/confidential/schemas.js.map +0 -1
- package/dist/solidity/schemas.d.ts +0 -211
- package/dist/solidity/schemas.d.ts.map +0 -1
- package/dist/solidity/schemas.js +0 -166
- package/dist/solidity/schemas.js.map +0 -1
- package/dist/stellar/schemas.d.ts +0 -84
- package/dist/stellar/schemas.d.ts.map +0 -1
- package/dist/stellar/schemas.js +0 -58
- package/dist/stellar/schemas.js.map +0 -1
- package/dist/stylus/schemas.d.ts +0 -60
- package/dist/stylus/schemas.d.ts.map +0 -1
- package/dist/stylus/schemas.js +0 -44
- package/dist/stylus/schemas.js.map +0 -1
- package/dist/uniswap-hooks/schemas.d.ts +0 -106
- package/dist/uniswap-hooks/schemas.d.ts.map +0 -1
- package/dist/uniswap-hooks/schemas.js +0 -78
- package/dist/uniswap-hooks/schemas.js.map +0 -1
- package/src/cairo/schemas.ts +0 -176
- package/src/confidential/schemas.ts +0 -35
- package/src/solidity/schemas.ts +0 -186
- package/src/stellar/schemas.ts +0 -69
- package/src/stylus/schemas.ts +0 -54
- package/src/uniswap-hooks/schemas.ts +0 -92
package/dist/cairo/schemas.d.ts
DELETED
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const commonSchema: {
|
|
3
|
-
readonly access: z.ZodObject<{
|
|
4
|
-
type: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"ownable">, z.ZodLiteral<"roles">]>, z.ZodLiteral<"roles-dar">]>, z.ZodLiteral<false>]>;
|
|
5
|
-
darInitialDelay: z.ZodString;
|
|
6
|
-
darDefaultDelayIncrease: z.ZodString;
|
|
7
|
-
darMaxTransferDelay: z.ZodString;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
type: false | "ownable" | "roles" | "roles-dar";
|
|
10
|
-
darInitialDelay: string;
|
|
11
|
-
darDefaultDelayIncrease: string;
|
|
12
|
-
darMaxTransferDelay: string;
|
|
13
|
-
}, {
|
|
14
|
-
type: false | "ownable" | "roles" | "roles-dar";
|
|
15
|
-
darInitialDelay: string;
|
|
16
|
-
darDefaultDelayIncrease: string;
|
|
17
|
-
darMaxTransferDelay: string;
|
|
18
|
-
}>;
|
|
19
|
-
readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
-
readonly info: z.ZodOptional<z.ZodObject<{
|
|
21
|
-
securityContact: z.ZodOptional<z.ZodString>;
|
|
22
|
-
license: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
securityContact?: string | undefined;
|
|
25
|
-
license?: string | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
securityContact?: string | undefined;
|
|
28
|
-
license?: string | undefined;
|
|
29
|
-
}>>;
|
|
30
|
-
readonly macros: z.ZodOptional<z.ZodObject<{
|
|
31
|
-
withComponents: z.ZodBoolean;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
withComponents: boolean;
|
|
34
|
-
}, {
|
|
35
|
-
withComponents: boolean;
|
|
36
|
-
}>>;
|
|
37
|
-
};
|
|
38
|
-
export declare const erc20Schema: {
|
|
39
|
-
readonly access: z.ZodObject<{
|
|
40
|
-
type: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"ownable">, z.ZodLiteral<"roles">]>, z.ZodLiteral<"roles-dar">]>, z.ZodLiteral<false>]>;
|
|
41
|
-
darInitialDelay: z.ZodString;
|
|
42
|
-
darDefaultDelayIncrease: z.ZodString;
|
|
43
|
-
darMaxTransferDelay: z.ZodString;
|
|
44
|
-
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
type: false | "ownable" | "roles" | "roles-dar";
|
|
46
|
-
darInitialDelay: string;
|
|
47
|
-
darDefaultDelayIncrease: string;
|
|
48
|
-
darMaxTransferDelay: string;
|
|
49
|
-
}, {
|
|
50
|
-
type: false | "ownable" | "roles" | "roles-dar";
|
|
51
|
-
darInitialDelay: string;
|
|
52
|
-
darDefaultDelayIncrease: string;
|
|
53
|
-
darMaxTransferDelay: string;
|
|
54
|
-
}>;
|
|
55
|
-
readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
-
readonly info: z.ZodOptional<z.ZodObject<{
|
|
57
|
-
securityContact: z.ZodOptional<z.ZodString>;
|
|
58
|
-
license: z.ZodOptional<z.ZodString>;
|
|
59
|
-
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
securityContact?: string | undefined;
|
|
61
|
-
license?: string | undefined;
|
|
62
|
-
}, {
|
|
63
|
-
securityContact?: string | undefined;
|
|
64
|
-
license?: string | undefined;
|
|
65
|
-
}>>;
|
|
66
|
-
readonly macros: z.ZodOptional<z.ZodObject<{
|
|
67
|
-
withComponents: z.ZodBoolean;
|
|
68
|
-
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
withComponents: boolean;
|
|
70
|
-
}, {
|
|
71
|
-
withComponents: boolean;
|
|
72
|
-
}>>;
|
|
73
|
-
readonly name: z.ZodString;
|
|
74
|
-
readonly symbol: z.ZodString;
|
|
75
|
-
readonly decimals: z.ZodOptional<z.ZodString>;
|
|
76
|
-
readonly burnable: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
-
readonly pausable: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
-
readonly premint: z.ZodOptional<z.ZodString>;
|
|
79
|
-
readonly mintable: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
-
readonly votes: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
-
readonly appName: z.ZodOptional<z.ZodString>;
|
|
82
|
-
readonly appVersion: z.ZodOptional<z.ZodString>;
|
|
83
|
-
};
|
|
84
|
-
export declare const erc721Schema: {
|
|
85
|
-
readonly access: z.ZodObject<{
|
|
86
|
-
type: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"ownable">, z.ZodLiteral<"roles">]>, z.ZodLiteral<"roles-dar">]>, z.ZodLiteral<false>]>;
|
|
87
|
-
darInitialDelay: z.ZodString;
|
|
88
|
-
darDefaultDelayIncrease: z.ZodString;
|
|
89
|
-
darMaxTransferDelay: z.ZodString;
|
|
90
|
-
}, "strip", z.ZodTypeAny, {
|
|
91
|
-
type: false | "ownable" | "roles" | "roles-dar";
|
|
92
|
-
darInitialDelay: string;
|
|
93
|
-
darDefaultDelayIncrease: string;
|
|
94
|
-
darMaxTransferDelay: string;
|
|
95
|
-
}, {
|
|
96
|
-
type: false | "ownable" | "roles" | "roles-dar";
|
|
97
|
-
darInitialDelay: string;
|
|
98
|
-
darDefaultDelayIncrease: string;
|
|
99
|
-
darMaxTransferDelay: string;
|
|
100
|
-
}>;
|
|
101
|
-
readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
-
readonly info: z.ZodOptional<z.ZodObject<{
|
|
103
|
-
securityContact: z.ZodOptional<z.ZodString>;
|
|
104
|
-
license: z.ZodOptional<z.ZodString>;
|
|
105
|
-
}, "strip", z.ZodTypeAny, {
|
|
106
|
-
securityContact?: string | undefined;
|
|
107
|
-
license?: string | undefined;
|
|
108
|
-
}, {
|
|
109
|
-
securityContact?: string | undefined;
|
|
110
|
-
license?: string | undefined;
|
|
111
|
-
}>>;
|
|
112
|
-
readonly macros: z.ZodOptional<z.ZodObject<{
|
|
113
|
-
withComponents: z.ZodBoolean;
|
|
114
|
-
}, "strip", z.ZodTypeAny, {
|
|
115
|
-
withComponents: boolean;
|
|
116
|
-
}, {
|
|
117
|
-
withComponents: boolean;
|
|
118
|
-
}>>;
|
|
119
|
-
readonly name: z.ZodString;
|
|
120
|
-
readonly symbol: z.ZodString;
|
|
121
|
-
readonly baseUri: z.ZodOptional<z.ZodString>;
|
|
122
|
-
readonly burnable: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
-
readonly pausable: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
-
readonly mintable: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
-
readonly enumerable: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
-
readonly votes: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
-
readonly royaltyInfo: z.ZodOptional<z.ZodObject<{
|
|
128
|
-
enabled: z.ZodBoolean;
|
|
129
|
-
defaultRoyaltyFraction: z.ZodString;
|
|
130
|
-
feeDenominator: z.ZodString;
|
|
131
|
-
}, "strip", z.ZodTypeAny, {
|
|
132
|
-
enabled: boolean;
|
|
133
|
-
defaultRoyaltyFraction: string;
|
|
134
|
-
feeDenominator: string;
|
|
135
|
-
}, {
|
|
136
|
-
enabled: boolean;
|
|
137
|
-
defaultRoyaltyFraction: string;
|
|
138
|
-
feeDenominator: string;
|
|
139
|
-
}>>;
|
|
140
|
-
readonly appName: z.ZodOptional<z.ZodString>;
|
|
141
|
-
readonly appVersion: z.ZodOptional<z.ZodString>;
|
|
142
|
-
};
|
|
143
|
-
export declare const erc1155Schema: {
|
|
144
|
-
readonly access: z.ZodObject<{
|
|
145
|
-
type: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"ownable">, z.ZodLiteral<"roles">]>, z.ZodLiteral<"roles-dar">]>, z.ZodLiteral<false>]>;
|
|
146
|
-
darInitialDelay: z.ZodString;
|
|
147
|
-
darDefaultDelayIncrease: z.ZodString;
|
|
148
|
-
darMaxTransferDelay: z.ZodString;
|
|
149
|
-
}, "strip", z.ZodTypeAny, {
|
|
150
|
-
type: false | "ownable" | "roles" | "roles-dar";
|
|
151
|
-
darInitialDelay: string;
|
|
152
|
-
darDefaultDelayIncrease: string;
|
|
153
|
-
darMaxTransferDelay: string;
|
|
154
|
-
}, {
|
|
155
|
-
type: false | "ownable" | "roles" | "roles-dar";
|
|
156
|
-
darInitialDelay: string;
|
|
157
|
-
darDefaultDelayIncrease: string;
|
|
158
|
-
darMaxTransferDelay: string;
|
|
159
|
-
}>;
|
|
160
|
-
readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
-
readonly info: z.ZodOptional<z.ZodObject<{
|
|
162
|
-
securityContact: z.ZodOptional<z.ZodString>;
|
|
163
|
-
license: z.ZodOptional<z.ZodString>;
|
|
164
|
-
}, "strip", z.ZodTypeAny, {
|
|
165
|
-
securityContact?: string | undefined;
|
|
166
|
-
license?: string | undefined;
|
|
167
|
-
}, {
|
|
168
|
-
securityContact?: string | undefined;
|
|
169
|
-
license?: string | undefined;
|
|
170
|
-
}>>;
|
|
171
|
-
readonly macros: z.ZodOptional<z.ZodObject<{
|
|
172
|
-
withComponents: z.ZodBoolean;
|
|
173
|
-
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
withComponents: boolean;
|
|
175
|
-
}, {
|
|
176
|
-
withComponents: boolean;
|
|
177
|
-
}>>;
|
|
178
|
-
readonly name: z.ZodString;
|
|
179
|
-
readonly baseUri: z.ZodString;
|
|
180
|
-
readonly burnable: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
-
readonly pausable: z.ZodOptional<z.ZodBoolean>;
|
|
182
|
-
readonly mintable: z.ZodOptional<z.ZodBoolean>;
|
|
183
|
-
readonly updatableUri: z.ZodOptional<z.ZodBoolean>;
|
|
184
|
-
readonly royaltyInfo: z.ZodOptional<z.ZodObject<{
|
|
185
|
-
enabled: z.ZodBoolean;
|
|
186
|
-
defaultRoyaltyFraction: z.ZodString;
|
|
187
|
-
feeDenominator: z.ZodString;
|
|
188
|
-
}, "strip", z.ZodTypeAny, {
|
|
189
|
-
enabled: boolean;
|
|
190
|
-
defaultRoyaltyFraction: string;
|
|
191
|
-
feeDenominator: string;
|
|
192
|
-
}, {
|
|
193
|
-
enabled: boolean;
|
|
194
|
-
defaultRoyaltyFraction: string;
|
|
195
|
-
feeDenominator: string;
|
|
196
|
-
}>>;
|
|
197
|
-
};
|
|
198
|
-
export declare const accountSchema: {
|
|
199
|
-
readonly name: z.ZodString;
|
|
200
|
-
readonly type: z.ZodEnum<["stark", "eth"]>;
|
|
201
|
-
readonly declare: z.ZodOptional<z.ZodBoolean>;
|
|
202
|
-
readonly deploy: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
-
readonly pubkey: z.ZodOptional<z.ZodBoolean>;
|
|
204
|
-
readonly outsideExecution: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
-
readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
|
|
206
|
-
readonly info: z.ZodOptional<z.ZodObject<{
|
|
207
|
-
securityContact: z.ZodOptional<z.ZodString>;
|
|
208
|
-
license: z.ZodOptional<z.ZodString>;
|
|
209
|
-
}, "strip", z.ZodTypeAny, {
|
|
210
|
-
securityContact?: string | undefined;
|
|
211
|
-
license?: string | undefined;
|
|
212
|
-
}, {
|
|
213
|
-
securityContact?: string | undefined;
|
|
214
|
-
license?: string | undefined;
|
|
215
|
-
}>>;
|
|
216
|
-
readonly macros: z.ZodOptional<z.ZodObject<{
|
|
217
|
-
withComponents: z.ZodBoolean;
|
|
218
|
-
}, "strip", z.ZodTypeAny, {
|
|
219
|
-
withComponents: boolean;
|
|
220
|
-
}, {
|
|
221
|
-
withComponents: boolean;
|
|
222
|
-
}>>;
|
|
223
|
-
};
|
|
224
|
-
export declare const multisigSchema: {
|
|
225
|
-
readonly name: z.ZodString;
|
|
226
|
-
readonly quorum: z.ZodString;
|
|
227
|
-
readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
|
|
228
|
-
readonly info: z.ZodOptional<z.ZodObject<{
|
|
229
|
-
securityContact: z.ZodOptional<z.ZodString>;
|
|
230
|
-
license: z.ZodOptional<z.ZodString>;
|
|
231
|
-
}, "strip", z.ZodTypeAny, {
|
|
232
|
-
securityContact?: string | undefined;
|
|
233
|
-
license?: string | undefined;
|
|
234
|
-
}, {
|
|
235
|
-
securityContact?: string | undefined;
|
|
236
|
-
license?: string | undefined;
|
|
237
|
-
}>>;
|
|
238
|
-
readonly macros: z.ZodOptional<z.ZodObject<{
|
|
239
|
-
withComponents: z.ZodBoolean;
|
|
240
|
-
}, "strip", z.ZodTypeAny, {
|
|
241
|
-
withComponents: boolean;
|
|
242
|
-
}, {
|
|
243
|
-
withComponents: boolean;
|
|
244
|
-
}>>;
|
|
245
|
-
};
|
|
246
|
-
export declare const governorSchema: {
|
|
247
|
-
readonly name: z.ZodString;
|
|
248
|
-
readonly delay: z.ZodString;
|
|
249
|
-
readonly period: z.ZodString;
|
|
250
|
-
readonly votes: z.ZodOptional<z.ZodEnum<["erc20votes", "erc721votes"]>>;
|
|
251
|
-
readonly clockMode: z.ZodOptional<z.ZodEnum<["timestamp"]>>;
|
|
252
|
-
readonly timelock: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodLiteral<"openzeppelin">]>>;
|
|
253
|
-
readonly decimals: z.ZodOptional<z.ZodNumber>;
|
|
254
|
-
readonly proposalThreshold: z.ZodOptional<z.ZodString>;
|
|
255
|
-
readonly quorumMode: z.ZodOptional<z.ZodEnum<["percent", "absolute"]>>;
|
|
256
|
-
readonly quorumPercent: z.ZodOptional<z.ZodNumber>;
|
|
257
|
-
readonly quorumAbsolute: z.ZodOptional<z.ZodString>;
|
|
258
|
-
readonly settings: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
-
readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
|
|
260
|
-
readonly appName: z.ZodOptional<z.ZodString>;
|
|
261
|
-
readonly appVersion: z.ZodOptional<z.ZodString>;
|
|
262
|
-
readonly info: z.ZodOptional<z.ZodObject<{
|
|
263
|
-
securityContact: z.ZodOptional<z.ZodString>;
|
|
264
|
-
license: z.ZodOptional<z.ZodString>;
|
|
265
|
-
}, "strip", z.ZodTypeAny, {
|
|
266
|
-
securityContact?: string | undefined;
|
|
267
|
-
license?: string | undefined;
|
|
268
|
-
}, {
|
|
269
|
-
securityContact?: string | undefined;
|
|
270
|
-
license?: string | undefined;
|
|
271
|
-
}>>;
|
|
272
|
-
readonly macros: z.ZodOptional<z.ZodObject<{
|
|
273
|
-
withComponents: z.ZodBoolean;
|
|
274
|
-
}, "strip", z.ZodTypeAny, {
|
|
275
|
-
withComponents: boolean;
|
|
276
|
-
}, {
|
|
277
|
-
withComponents: boolean;
|
|
278
|
-
}>>;
|
|
279
|
-
};
|
|
280
|
-
export declare const vestingSchema: {
|
|
281
|
-
readonly name: z.ZodString;
|
|
282
|
-
readonly startDate: z.ZodString;
|
|
283
|
-
readonly duration: z.ZodString;
|
|
284
|
-
readonly cliffDuration: z.ZodString;
|
|
285
|
-
readonly schedule: z.ZodEnum<["linear", "custom"]>;
|
|
286
|
-
readonly info: z.ZodOptional<z.ZodObject<{
|
|
287
|
-
securityContact: z.ZodOptional<z.ZodString>;
|
|
288
|
-
license: z.ZodOptional<z.ZodString>;
|
|
289
|
-
}, "strip", z.ZodTypeAny, {
|
|
290
|
-
securityContact?: string | undefined;
|
|
291
|
-
license?: string | undefined;
|
|
292
|
-
}, {
|
|
293
|
-
securityContact?: string | undefined;
|
|
294
|
-
license?: string | undefined;
|
|
295
|
-
}>>;
|
|
296
|
-
readonly macros: z.ZodOptional<z.ZodObject<{
|
|
297
|
-
withComponents: z.ZodBoolean;
|
|
298
|
-
}, "strip", z.ZodTypeAny, {
|
|
299
|
-
withComponents: boolean;
|
|
300
|
-
}, {
|
|
301
|
-
withComponents: boolean;
|
|
302
|
-
}>>;
|
|
303
|
-
};
|
|
304
|
-
export declare const customSchema: {
|
|
305
|
-
readonly access: z.ZodObject<{
|
|
306
|
-
type: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"ownable">, z.ZodLiteral<"roles">]>, z.ZodLiteral<"roles-dar">]>, z.ZodLiteral<false>]>;
|
|
307
|
-
darInitialDelay: z.ZodString;
|
|
308
|
-
darDefaultDelayIncrease: z.ZodString;
|
|
309
|
-
darMaxTransferDelay: z.ZodString;
|
|
310
|
-
}, "strip", z.ZodTypeAny, {
|
|
311
|
-
type: false | "ownable" | "roles" | "roles-dar";
|
|
312
|
-
darInitialDelay: string;
|
|
313
|
-
darDefaultDelayIncrease: string;
|
|
314
|
-
darMaxTransferDelay: string;
|
|
315
|
-
}, {
|
|
316
|
-
type: false | "ownable" | "roles" | "roles-dar";
|
|
317
|
-
darInitialDelay: string;
|
|
318
|
-
darDefaultDelayIncrease: string;
|
|
319
|
-
darMaxTransferDelay: string;
|
|
320
|
-
}>;
|
|
321
|
-
readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
|
|
322
|
-
readonly info: z.ZodOptional<z.ZodObject<{
|
|
323
|
-
securityContact: z.ZodOptional<z.ZodString>;
|
|
324
|
-
license: z.ZodOptional<z.ZodString>;
|
|
325
|
-
}, "strip", z.ZodTypeAny, {
|
|
326
|
-
securityContact?: string | undefined;
|
|
327
|
-
license?: string | undefined;
|
|
328
|
-
}, {
|
|
329
|
-
securityContact?: string | undefined;
|
|
330
|
-
license?: string | undefined;
|
|
331
|
-
}>>;
|
|
332
|
-
readonly macros: z.ZodOptional<z.ZodObject<{
|
|
333
|
-
withComponents: z.ZodBoolean;
|
|
334
|
-
}, "strip", z.ZodTypeAny, {
|
|
335
|
-
withComponents: boolean;
|
|
336
|
-
}, {
|
|
337
|
-
withComponents: boolean;
|
|
338
|
-
}>>;
|
|
339
|
-
readonly name: z.ZodString;
|
|
340
|
-
readonly pausable: z.ZodOptional<z.ZodBoolean>;
|
|
341
|
-
};
|
|
342
|
-
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/cairo/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoCxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BS,CAAC;AAEnC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYU,CAAC;AAEnC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBS,CAAC;AAEnC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBQ,CAAC;AAEnC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;CAUQ,CAAC;AAEnC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;CAMO,CAAC;AAEnC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBO,CAAC;AAEnC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;CAQQ,CAAC;AAEnC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIS,CAAC"}
|
package/dist/cairo/schemas.js
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.customSchema = exports.vestingSchema = exports.governorSchema = exports.multisigSchema = exports.accountSchema = exports.erc1155Schema = exports.erc721Schema = exports.erc20Schema = exports.commonSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const wizard_common_1 = require("@openzeppelin/wizard-common");
|
|
6
|
-
/**
|
|
7
|
-
* Static type assertions to ensure schemas satisfy the Wizard API types. Not called at runtime.
|
|
8
|
-
*/
|
|
9
|
-
function _typeAssertions() {
|
|
10
|
-
const _assertions = {
|
|
11
|
-
ERC20: zod_1.z.object(exports.erc20Schema).parse({}),
|
|
12
|
-
ERC721: zod_1.z.object(exports.erc721Schema).parse({}),
|
|
13
|
-
ERC1155: zod_1.z.object(exports.erc1155Schema).parse({}),
|
|
14
|
-
Account: zod_1.z.object(exports.accountSchema).parse({}),
|
|
15
|
-
Multisig: zod_1.z.object(exports.multisigSchema).parse({}),
|
|
16
|
-
Governor: zod_1.z.object(exports.governorSchema).parse({}),
|
|
17
|
-
Vesting: zod_1.z.object(exports.vestingSchema).parse({}),
|
|
18
|
-
Custom: zod_1.z.object(exports.customSchema).parse({}),
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
exports.commonSchema = {
|
|
22
|
-
access: zod_1.z.object({
|
|
23
|
-
type: zod_1.z
|
|
24
|
-
.literal('ownable')
|
|
25
|
-
.or(zod_1.z.literal('roles'))
|
|
26
|
-
.or(zod_1.z.literal('roles-dar'))
|
|
27
|
-
.or(zod_1.z.literal(false))
|
|
28
|
-
.describe(wizard_common_1.cairoAccessDescriptions.accessType),
|
|
29
|
-
darInitialDelay: zod_1.z.string().describe(wizard_common_1.cairoAccessDescriptions.darInitialDelay),
|
|
30
|
-
darDefaultDelayIncrease: zod_1.z.string().describe(wizard_common_1.cairoAccessDescriptions.darDefaultDelayIncrease),
|
|
31
|
-
darMaxTransferDelay: zod_1.z.string().describe(wizard_common_1.cairoAccessDescriptions.darMaxTransferDelay),
|
|
32
|
-
}),
|
|
33
|
-
upgradeable: zod_1.z.boolean().optional().describe(wizard_common_1.cairoCommonDescriptions.upgradeable),
|
|
34
|
-
info: zod_1.z
|
|
35
|
-
.object({
|
|
36
|
-
securityContact: zod_1.z.string().optional().describe(wizard_common_1.infoDescriptions.securityContact),
|
|
37
|
-
license: zod_1.z.string().optional().describe(wizard_common_1.infoDescriptions.license),
|
|
38
|
-
})
|
|
39
|
-
.optional()
|
|
40
|
-
.describe(wizard_common_1.infoDescriptions.info),
|
|
41
|
-
macros: zod_1.z
|
|
42
|
-
.object({
|
|
43
|
-
withComponents: zod_1.z.boolean().describe(wizard_common_1.cairoMacrosDescriptions.withComponents),
|
|
44
|
-
})
|
|
45
|
-
.optional()
|
|
46
|
-
.describe(wizard_common_1.cairoMacrosDescriptions.macros),
|
|
47
|
-
};
|
|
48
|
-
exports.erc20Schema = {
|
|
49
|
-
name: zod_1.z.string().describe(wizard_common_1.commonDescriptions.name),
|
|
50
|
-
symbol: zod_1.z.string().describe(wizard_common_1.commonDescriptions.symbol),
|
|
51
|
-
decimals: zod_1.z.string().optional().describe(wizard_common_1.cairoERC20Descriptions.decimals),
|
|
52
|
-
burnable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.burnable),
|
|
53
|
-
pausable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.pausable),
|
|
54
|
-
premint: zod_1.z.string().optional().describe(wizard_common_1.cairoERC20Descriptions.premint),
|
|
55
|
-
mintable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.mintable),
|
|
56
|
-
votes: zod_1.z.boolean().optional().describe(wizard_common_1.cairoERC20Descriptions.votes),
|
|
57
|
-
appName: zod_1.z.string().optional().describe(wizard_common_1.cairoCommonDescriptions.appName),
|
|
58
|
-
appVersion: zod_1.z.string().optional().describe(wizard_common_1.cairoCommonDescriptions.appVersion),
|
|
59
|
-
...exports.commonSchema,
|
|
60
|
-
};
|
|
61
|
-
exports.erc721Schema = {
|
|
62
|
-
name: zod_1.z.string().describe(wizard_common_1.commonDescriptions.name),
|
|
63
|
-
symbol: zod_1.z.string().describe(wizard_common_1.commonDescriptions.symbol),
|
|
64
|
-
baseUri: zod_1.z.string().optional().describe(wizard_common_1.cairoERC721Descriptions.baseUri),
|
|
65
|
-
burnable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.burnable),
|
|
66
|
-
pausable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.pausable),
|
|
67
|
-
mintable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.mintable),
|
|
68
|
-
enumerable: zod_1.z.boolean().optional().describe(wizard_common_1.cairoERC721Descriptions.enumerable),
|
|
69
|
-
votes: zod_1.z.boolean().optional().describe(wizard_common_1.cairoERC721Descriptions.votes),
|
|
70
|
-
royaltyInfo: zod_1.z
|
|
71
|
-
.object({
|
|
72
|
-
enabled: zod_1.z.boolean().describe(wizard_common_1.cairoRoyaltyInfoDescriptions.enabled),
|
|
73
|
-
defaultRoyaltyFraction: zod_1.z.string().describe(wizard_common_1.cairoRoyaltyInfoDescriptions.defaultRoyaltyFraction),
|
|
74
|
-
feeDenominator: zod_1.z.string().describe(wizard_common_1.cairoRoyaltyInfoDescriptions.feeDenominator),
|
|
75
|
-
})
|
|
76
|
-
.optional()
|
|
77
|
-
.describe(wizard_common_1.cairoCommonDescriptions.royaltyInfo),
|
|
78
|
-
appName: zod_1.z.string().optional().describe(wizard_common_1.cairoCommonDescriptions.appName),
|
|
79
|
-
appVersion: zod_1.z.string().optional().describe(wizard_common_1.cairoCommonDescriptions.appVersion),
|
|
80
|
-
...exports.commonSchema,
|
|
81
|
-
};
|
|
82
|
-
exports.erc1155Schema = {
|
|
83
|
-
name: zod_1.z.string().describe(wizard_common_1.commonDescriptions.name),
|
|
84
|
-
baseUri: zod_1.z.string().describe(wizard_common_1.cairoERC1155Descriptions.baseUri),
|
|
85
|
-
burnable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.burnable),
|
|
86
|
-
pausable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.pausable),
|
|
87
|
-
mintable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.mintable),
|
|
88
|
-
updatableUri: zod_1.z.boolean().optional().describe(wizard_common_1.cairoERC1155Descriptions.updatableUri),
|
|
89
|
-
royaltyInfo: zod_1.z
|
|
90
|
-
.object({
|
|
91
|
-
enabled: zod_1.z.boolean().describe(wizard_common_1.cairoRoyaltyInfoDescriptions.enabled),
|
|
92
|
-
defaultRoyaltyFraction: zod_1.z.string().describe(wizard_common_1.cairoRoyaltyInfoDescriptions.defaultRoyaltyFraction),
|
|
93
|
-
feeDenominator: zod_1.z.string().describe(wizard_common_1.cairoRoyaltyInfoDescriptions.feeDenominator),
|
|
94
|
-
})
|
|
95
|
-
.optional()
|
|
96
|
-
.describe(wizard_common_1.cairoCommonDescriptions.royaltyInfo),
|
|
97
|
-
...exports.commonSchema,
|
|
98
|
-
};
|
|
99
|
-
exports.accountSchema = {
|
|
100
|
-
name: zod_1.z.string().describe(wizard_common_1.commonDescriptions.name),
|
|
101
|
-
type: zod_1.z.enum(['stark', 'eth']).describe(wizard_common_1.cairoAccountDescriptions.type),
|
|
102
|
-
declare: zod_1.z.boolean().optional().describe(wizard_common_1.cairoAccountDescriptions.declare),
|
|
103
|
-
deploy: zod_1.z.boolean().optional().describe(wizard_common_1.cairoAccountDescriptions.deploy),
|
|
104
|
-
pubkey: zod_1.z.boolean().optional().describe(wizard_common_1.cairoAccountDescriptions.pubkey),
|
|
105
|
-
outsideExecution: zod_1.z.boolean().optional().describe(wizard_common_1.cairoAccountDescriptions.outsideExecution),
|
|
106
|
-
upgradeable: exports.commonSchema.upgradeable,
|
|
107
|
-
info: exports.commonSchema.info,
|
|
108
|
-
macros: exports.commonSchema.macros,
|
|
109
|
-
};
|
|
110
|
-
exports.multisigSchema = {
|
|
111
|
-
name: zod_1.z.string().describe(wizard_common_1.commonDescriptions.name),
|
|
112
|
-
quorum: zod_1.z.string().describe(wizard_common_1.cairoMultisigDescriptions.quorum),
|
|
113
|
-
upgradeable: exports.commonSchema.upgradeable,
|
|
114
|
-
info: exports.commonSchema.info,
|
|
115
|
-
macros: exports.commonSchema.macros,
|
|
116
|
-
};
|
|
117
|
-
exports.governorSchema = {
|
|
118
|
-
name: zod_1.z.string().describe(wizard_common_1.commonDescriptions.name),
|
|
119
|
-
delay: zod_1.z.string().describe(wizard_common_1.cairoGovernorDescriptions.delay),
|
|
120
|
-
period: zod_1.z.string().describe(wizard_common_1.cairoGovernorDescriptions.period),
|
|
121
|
-
votes: zod_1.z.enum(['erc20votes', 'erc721votes']).optional().describe(wizard_common_1.cairoGovernorDescriptions.votes),
|
|
122
|
-
clockMode: zod_1.z.enum(['timestamp']).optional().describe(wizard_common_1.cairoGovernorDescriptions.clockMode),
|
|
123
|
-
timelock: zod_1.z
|
|
124
|
-
.union([zod_1.z.literal(false), zod_1.z.literal('openzeppelin')])
|
|
125
|
-
.optional()
|
|
126
|
-
.describe(wizard_common_1.cairoGovernorDescriptions.timelock),
|
|
127
|
-
decimals: zod_1.z.number().optional().describe(wizard_common_1.cairoGovernorDescriptions.decimals),
|
|
128
|
-
proposalThreshold: zod_1.z.string().optional().describe(wizard_common_1.cairoGovernorDescriptions.proposalThreshold),
|
|
129
|
-
quorumMode: zod_1.z.enum(['percent', 'absolute']).optional().describe(wizard_common_1.cairoGovernorDescriptions.quorumMode),
|
|
130
|
-
quorumPercent: zod_1.z.number().optional().describe(wizard_common_1.cairoGovernorDescriptions.quorumPercent),
|
|
131
|
-
quorumAbsolute: zod_1.z.string().optional().describe(wizard_common_1.cairoGovernorDescriptions.quorumAbsolute),
|
|
132
|
-
settings: zod_1.z.boolean().optional().describe(wizard_common_1.cairoGovernorDescriptions.settings),
|
|
133
|
-
upgradeable: exports.commonSchema.upgradeable,
|
|
134
|
-
appName: zod_1.z.string().optional().describe(wizard_common_1.cairoCommonDescriptions.appName),
|
|
135
|
-
appVersion: zod_1.z.string().optional().describe(wizard_common_1.cairoCommonDescriptions.appVersion),
|
|
136
|
-
info: exports.commonSchema.info,
|
|
137
|
-
macros: exports.commonSchema.macros,
|
|
138
|
-
};
|
|
139
|
-
exports.vestingSchema = {
|
|
140
|
-
name: zod_1.z.string().describe(wizard_common_1.commonDescriptions.name),
|
|
141
|
-
startDate: zod_1.z.string().describe(wizard_common_1.cairoVestingDescriptions.startDate),
|
|
142
|
-
duration: zod_1.z.string().describe(wizard_common_1.cairoVestingDescriptions.duration),
|
|
143
|
-
cliffDuration: zod_1.z.string().describe(wizard_common_1.cairoVestingDescriptions.cliffDuration),
|
|
144
|
-
schedule: zod_1.z.enum(['linear', 'custom']).describe(wizard_common_1.cairoVestingDescriptions.schedule),
|
|
145
|
-
info: exports.commonSchema.info,
|
|
146
|
-
macros: exports.commonSchema.macros,
|
|
147
|
-
};
|
|
148
|
-
exports.customSchema = {
|
|
149
|
-
name: zod_1.z.string().describe(wizard_common_1.commonDescriptions.name),
|
|
150
|
-
pausable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.pausable),
|
|
151
|
-
...exports.commonSchema,
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-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
securityContact?: string | undefined;
|
|
8
|
-
license?: string | undefined;
|
|
9
|
-
}, {
|
|
10
|
-
securityContact?: string | undefined;
|
|
11
|
-
license?: string | undefined;
|
|
12
|
-
}>>;
|
|
13
|
-
};
|
|
14
|
-
export declare const erc7984Schema: {
|
|
15
|
-
readonly info: z.ZodOptional<z.ZodObject<{
|
|
16
|
-
securityContact: z.ZodOptional<z.ZodString>;
|
|
17
|
-
license: z.ZodOptional<z.ZodString>;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
securityContact?: string | undefined;
|
|
20
|
-
license?: string | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
securityContact?: string | undefined;
|
|
23
|
-
license?: string | undefined;
|
|
24
|
-
}>>;
|
|
25
|
-
readonly name: z.ZodString;
|
|
26
|
-
readonly symbol: z.ZodString;
|
|
27
|
-
readonly contractURI: z.ZodString;
|
|
28
|
-
readonly premint: z.ZodOptional<z.ZodString>;
|
|
29
|
-
readonly networkConfig: z.ZodLiteral<"zama-ethereum">;
|
|
30
|
-
readonly wrappable: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
-
readonly votes: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"blocknumber">, z.ZodLiteral<"timestamp">]>>;
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/confidential/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,YAAY;;;;;;;;;;;CAQS,CAAC;AAEnC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;CASQ,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.erc7984Schema = exports.commonSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const wizard_common_1 = require("@openzeppelin/wizard-common");
|
|
6
|
-
/**
|
|
7
|
-
* Static type assertions to ensure schemas satisfy the Wizard API types. Not called at runtime.
|
|
8
|
-
*/
|
|
9
|
-
function _typeAssertions() {
|
|
10
|
-
const _assertions = {
|
|
11
|
-
ERC7984: zod_1.z.object(exports.erc7984Schema).parse({}),
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
exports.commonSchema = {
|
|
15
|
-
info: zod_1.z
|
|
16
|
-
.object({
|
|
17
|
-
securityContact: zod_1.z.string().optional().describe(wizard_common_1.infoDescriptions.securityContact),
|
|
18
|
-
license: zod_1.z.string().optional().describe(wizard_common_1.infoDescriptions.license),
|
|
19
|
-
})
|
|
20
|
-
.optional()
|
|
21
|
-
.describe(wizard_common_1.infoDescriptions.info),
|
|
22
|
-
};
|
|
23
|
-
exports.erc7984Schema = {
|
|
24
|
-
name: zod_1.z.string().describe(wizard_common_1.commonDescriptions.name),
|
|
25
|
-
symbol: zod_1.z.string().describe(wizard_common_1.commonDescriptions.symbol),
|
|
26
|
-
contractURI: zod_1.z.string().describe(wizard_common_1.confidentialERC7984Descriptions.contractURI),
|
|
27
|
-
premint: zod_1.z.string().optional().describe(wizard_common_1.confidentialERC7984Descriptions.premint),
|
|
28
|
-
networkConfig: zod_1.z.literal('zama-ethereum').describe(wizard_common_1.confidentialERC7984Descriptions.networkConfig),
|
|
29
|
-
wrappable: zod_1.z.boolean().optional().describe(wizard_common_1.confidentialERC7984Descriptions.wrappable),
|
|
30
|
-
votes: zod_1.z.literal('blocknumber').or(zod_1.z.literal('timestamp')).optional().describe(wizard_common_1.confidentialERC7984Descriptions.votes),
|
|
31
|
-
...exports.commonSchema,
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","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