televerse-dao-typechain-types 1.0.8-alpha.14 → 1.0.8-alpha.15
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/package.json +2 -2
- package/televerse-utils/helper.d.ts +1 -0
- package/televerse-utils/helper.js +28 -0
- package/televerse-utils/index.d.ts +3 -422
- package/televerse-utils/index.js +16 -209
- package/televerse-utils/types.d.ts +32 -0
- package/televerse-utils/types.js +13 -0
- package/televerse-utils/validators.d.ts +422 -0
- package/televerse-utils/validators.js +212 -0
- package/televerse-utils/zodValidators.d.ts +357 -0
- package/televerse-utils/zodValidators.js +191 -0
- package/typechain-types/contracts/televerse/TeleverseToken.d.ts +14 -0
- package/typechain-types/contracts/televerse/TeleverseToken.ts +12 -0
- package/typechain-types/factories/contracts/televerse/CommitteeElection__factory.d.ts +1 -1
- package/typechain-types/factories/contracts/televerse/CommitteeElection__factory.js +1 -1
- package/typechain-types/factories/contracts/televerse/CommitteeElection__factory.ts +1 -1
- package/typechain-types/factories/contracts/televerse/ContractService__factory.d.ts +1 -1
- package/typechain-types/factories/contracts/televerse/ContractService__factory.js +1 -1
- package/typechain-types/factories/contracts/televerse/ContractService__factory.ts +1 -1
- package/typechain-types/factories/contracts/televerse/Governance__factory.d.ts +1 -1
- package/typechain-types/factories/contracts/televerse/Governance__factory.js +1 -1
- package/typechain-types/factories/contracts/televerse/Governance__factory.ts +1 -1
- package/typechain-types/factories/contracts/televerse/TeleverseToken__factory.d.ts +19 -14
- package/typechain-types/factories/contracts/televerse/TeleverseToken__factory.js +25 -18
- package/typechain-types/factories/contracts/televerse/TeleverseToken__factory.ts +25 -26
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const postMessageSchema: z.ZodIntersection<z.ZodObject<{
|
|
3
|
+
type: z.ZodOptional<z.ZodString>;
|
|
4
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5
|
+
export declare const postMessagePayloadSchema: z.ZodObject<{
|
|
6
|
+
type: z.ZodLiteral<"JWT_TOKEN">;
|
|
7
|
+
token: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type PostMessagePayload = z.infer<typeof postMessagePayloadSchema>;
|
|
10
|
+
export declare const gisPointSchema: z.ZodObject<{
|
|
11
|
+
lat: z.ZodNumber;
|
|
12
|
+
lng: z.ZodNumber;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const DIDCommQuoteMessageSchema: z.ZodObject<{
|
|
15
|
+
rfq_uuid: z.ZodUUID;
|
|
16
|
+
quote_uuid: z.ZodUUID;
|
|
17
|
+
start_point_uuid: z.ZodString;
|
|
18
|
+
start_point_other_uuid: z.ZodOptional<z.ZodString>;
|
|
19
|
+
end_point_uuid: z.ZodString;
|
|
20
|
+
end_point_other_uuid: z.ZodOptional<z.ZodString>;
|
|
21
|
+
validity_time: z.ZodNumber;
|
|
22
|
+
created_at: z.ZodString;
|
|
23
|
+
lead_time: z.ZodNumber;
|
|
24
|
+
initial_charge: z.ZodNumber;
|
|
25
|
+
recurring_charge: z.ZodNumber;
|
|
26
|
+
usage_charge: z.ZodNumber;
|
|
27
|
+
dole_schedule: z.ZodNumber;
|
|
28
|
+
settlement_schedule: z.ZodNumber;
|
|
29
|
+
receiving_address: z.ZodString;
|
|
30
|
+
gis_data: z.ZodArray<z.ZodObject<{
|
|
31
|
+
lat: z.ZodNumber;
|
|
32
|
+
lng: z.ZodNumber;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type DIDCommQuotePayload = z.infer<typeof DIDCommQuoteMessageSchema>;
|
|
36
|
+
export declare const jwtSchema: z.ZodString;
|
|
37
|
+
export type JwtToken = z.infer<typeof jwtSchema>;
|
|
38
|
+
export declare const supportedNetworks: {
|
|
39
|
+
readonly holesky: "holesky";
|
|
40
|
+
readonly sepolia: "sepolia";
|
|
41
|
+
readonly lineaSepolia: "linea-sepolia";
|
|
42
|
+
};
|
|
43
|
+
export declare const supportedNetworkEnumSchema: z.ZodEnum<{
|
|
44
|
+
readonly holesky: "holesky";
|
|
45
|
+
readonly sepolia: "sepolia";
|
|
46
|
+
readonly lineaSepolia: "linea-sepolia";
|
|
47
|
+
}>;
|
|
48
|
+
export type NetworkId = z.infer<typeof supportedNetworkEnumSchema>;
|
|
49
|
+
declare const networkConfigSchema: z.ZodObject<{
|
|
50
|
+
name: z.ZodEnum<{
|
|
51
|
+
readonly holesky: "holesky";
|
|
52
|
+
readonly sepolia: "sepolia";
|
|
53
|
+
readonly lineaSepolia: "linea-sepolia";
|
|
54
|
+
}>;
|
|
55
|
+
registryAddress: z.ZodString;
|
|
56
|
+
intChainId: z.ZodNumber;
|
|
57
|
+
hexChainId: z.ZodString;
|
|
58
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
rpcUrl: z.ZodString;
|
|
61
|
+
apiKeyRequired: z.ZodBoolean;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type NetworkConfig = z.infer<typeof networkConfigSchema>;
|
|
65
|
+
export declare const configJsonSchema: z.ZodObject<{
|
|
66
|
+
networkSelection: z.ZodEnum<{
|
|
67
|
+
readonly holesky: "holesky";
|
|
68
|
+
readonly sepolia: "sepolia";
|
|
69
|
+
readonly lineaSepolia: "linea-sepolia";
|
|
70
|
+
}>;
|
|
71
|
+
selectedNetwork: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
name: z.ZodEnum<{
|
|
73
|
+
readonly holesky: "holesky";
|
|
74
|
+
readonly sepolia: "sepolia";
|
|
75
|
+
readonly lineaSepolia: "linea-sepolia";
|
|
76
|
+
}>;
|
|
77
|
+
registryAddress: z.ZodString;
|
|
78
|
+
intChainId: z.ZodNumber;
|
|
79
|
+
hexChainId: z.ZodString;
|
|
80
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
81
|
+
name: z.ZodString;
|
|
82
|
+
rpcUrl: z.ZodString;
|
|
83
|
+
apiKeyRequired: z.ZodBoolean;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
export declare const networksSchema: z.ZodRecord<z.ZodEnum<{
|
|
88
|
+
readonly holesky: "holesky";
|
|
89
|
+
readonly sepolia: "sepolia";
|
|
90
|
+
readonly lineaSepolia: "linea-sepolia";
|
|
91
|
+
}>, z.ZodObject<{
|
|
92
|
+
name: z.ZodEnum<{
|
|
93
|
+
readonly holesky: "holesky";
|
|
94
|
+
readonly sepolia: "sepolia";
|
|
95
|
+
readonly lineaSepolia: "linea-sepolia";
|
|
96
|
+
}>;
|
|
97
|
+
registryAddress: z.ZodString;
|
|
98
|
+
intChainId: z.ZodNumber;
|
|
99
|
+
hexChainId: z.ZodString;
|
|
100
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
101
|
+
name: z.ZodString;
|
|
102
|
+
rpcUrl: z.ZodString;
|
|
103
|
+
apiKeyRequired: z.ZodBoolean;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
export declare const issuerTypeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
107
|
+
id: z.ZodString;
|
|
108
|
+
}, z.core.$strip>, z.ZodString]>;
|
|
109
|
+
export declare const credentialSubjectSchema: z.ZodObject<{
|
|
110
|
+
id: z.ZodOptional<z.ZodString>;
|
|
111
|
+
message: z.ZodOptional<z.ZodString>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
export declare const contextTypeSchema: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>;
|
|
114
|
+
export declare const credentialStatusReferenceSchema: z.ZodObject<{
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
type: z.ZodString;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
export declare const unsignedCredentialSchema: z.ZodObject<{
|
|
119
|
+
issuer: z.ZodUnion<readonly [z.ZodObject<{
|
|
120
|
+
id: z.ZodString;
|
|
121
|
+
}, z.core.$strip>, z.ZodString]>;
|
|
122
|
+
credentialSubject: z.ZodObject<{
|
|
123
|
+
id: z.ZodOptional<z.ZodString>;
|
|
124
|
+
message: z.ZodOptional<z.ZodString>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
credentialSchema: z.ZodOptional<z.ZodObject<{
|
|
127
|
+
id: z.ZodOptional<z.ZodString>;
|
|
128
|
+
type: z.ZodOptional<z.ZodString>;
|
|
129
|
+
}, z.core.$strip>>;
|
|
130
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>;
|
|
131
|
+
'@context': z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>;
|
|
132
|
+
issuanceDate: z.ZodString;
|
|
133
|
+
expirationDate: z.ZodOptional<z.ZodString>;
|
|
134
|
+
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
id: z.ZodString;
|
|
136
|
+
type: z.ZodString;
|
|
137
|
+
}, z.core.$strip>>;
|
|
138
|
+
id: z.ZodOptional<z.ZodString>;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
export declare const jwtProofTypeSchema: z.ZodObject<{
|
|
141
|
+
type: z.ZodOptional<z.ZodString>;
|
|
142
|
+
jwt: z.ZodOptional<z.ZodString>;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
export declare const eip712ProofTypeSchema: z.ZodObject<{
|
|
145
|
+
type: z.ZodOptional<z.ZodString>;
|
|
146
|
+
verificationMethod: z.ZodOptional<z.ZodString>;
|
|
147
|
+
created: z.ZodOptional<z.ZodString>;
|
|
148
|
+
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
149
|
+
proofValue: z.ZodOptional<z.ZodString>;
|
|
150
|
+
eip712: z.ZodOptional<z.ZodObject<{
|
|
151
|
+
domain: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
chainId: z.ZodNumber;
|
|
153
|
+
name: z.ZodString;
|
|
154
|
+
version: z.ZodString;
|
|
155
|
+
}, z.core.$strip>>;
|
|
156
|
+
types: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
157
|
+
primaryType: z.ZodOptional<z.ZodString>;
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
export declare const proofTypeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
161
|
+
type: z.ZodOptional<z.ZodString>;
|
|
162
|
+
jwt: z.ZodOptional<z.ZodString>;
|
|
163
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
164
|
+
type: z.ZodOptional<z.ZodString>;
|
|
165
|
+
verificationMethod: z.ZodOptional<z.ZodString>;
|
|
166
|
+
created: z.ZodOptional<z.ZodString>;
|
|
167
|
+
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
168
|
+
proofValue: z.ZodOptional<z.ZodString>;
|
|
169
|
+
eip712: z.ZodOptional<z.ZodObject<{
|
|
170
|
+
domain: z.ZodOptional<z.ZodObject<{
|
|
171
|
+
chainId: z.ZodNumber;
|
|
172
|
+
name: z.ZodString;
|
|
173
|
+
version: z.ZodString;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
types: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
176
|
+
primaryType: z.ZodOptional<z.ZodString>;
|
|
177
|
+
}, z.core.$strip>>;
|
|
178
|
+
}, z.core.$strip>]>;
|
|
179
|
+
export declare const VerifiableCredentialSchema: z.ZodIntersection<z.ZodObject<{
|
|
180
|
+
issuer: z.ZodUnion<readonly [z.ZodObject<{
|
|
181
|
+
id: z.ZodString;
|
|
182
|
+
}, z.core.$strip>, z.ZodString]>;
|
|
183
|
+
credentialSubject: z.ZodObject<{
|
|
184
|
+
id: z.ZodOptional<z.ZodString>;
|
|
185
|
+
message: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
credentialSchema: z.ZodOptional<z.ZodObject<{
|
|
188
|
+
id: z.ZodOptional<z.ZodString>;
|
|
189
|
+
type: z.ZodOptional<z.ZodString>;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>;
|
|
192
|
+
'@context': z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>;
|
|
193
|
+
issuanceDate: z.ZodString;
|
|
194
|
+
expirationDate: z.ZodOptional<z.ZodString>;
|
|
195
|
+
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
196
|
+
id: z.ZodString;
|
|
197
|
+
type: z.ZodString;
|
|
198
|
+
}, z.core.$strip>>;
|
|
199
|
+
id: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
201
|
+
proof: z.ZodUnion<readonly [z.ZodObject<{
|
|
202
|
+
type: z.ZodOptional<z.ZodString>;
|
|
203
|
+
jwt: z.ZodOptional<z.ZodString>;
|
|
204
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
205
|
+
type: z.ZodOptional<z.ZodString>;
|
|
206
|
+
verificationMethod: z.ZodOptional<z.ZodString>;
|
|
207
|
+
created: z.ZodOptional<z.ZodString>;
|
|
208
|
+
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
209
|
+
proofValue: z.ZodOptional<z.ZodString>;
|
|
210
|
+
eip712: z.ZodOptional<z.ZodObject<{
|
|
211
|
+
domain: z.ZodOptional<z.ZodObject<{
|
|
212
|
+
chainId: z.ZodNumber;
|
|
213
|
+
name: z.ZodString;
|
|
214
|
+
version: z.ZodString;
|
|
215
|
+
}, z.core.$strip>>;
|
|
216
|
+
types: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
217
|
+
primaryType: z.ZodOptional<z.ZodString>;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
}, z.core.$strip>]>;
|
|
220
|
+
}, z.core.$strip>>;
|
|
221
|
+
export declare const CreateSearchVcSchema: z.ZodTuple<[z.ZodString, z.ZodIntersection<z.ZodObject<{
|
|
222
|
+
issuer: z.ZodUnion<readonly [z.ZodObject<{
|
|
223
|
+
id: z.ZodString;
|
|
224
|
+
}, z.core.$strip>, z.ZodString]>;
|
|
225
|
+
credentialSubject: z.ZodObject<{
|
|
226
|
+
id: z.ZodOptional<z.ZodString>;
|
|
227
|
+
message: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, z.core.$strip>;
|
|
229
|
+
credentialSchema: z.ZodOptional<z.ZodObject<{
|
|
230
|
+
id: z.ZodOptional<z.ZodString>;
|
|
231
|
+
type: z.ZodOptional<z.ZodString>;
|
|
232
|
+
}, z.core.$strip>>;
|
|
233
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>;
|
|
234
|
+
'@context': z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>;
|
|
235
|
+
issuanceDate: z.ZodString;
|
|
236
|
+
expirationDate: z.ZodOptional<z.ZodString>;
|
|
237
|
+
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
238
|
+
id: z.ZodString;
|
|
239
|
+
type: z.ZodString;
|
|
240
|
+
}, z.core.$strip>>;
|
|
241
|
+
id: z.ZodOptional<z.ZodString>;
|
|
242
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
243
|
+
proof: z.ZodUnion<readonly [z.ZodObject<{
|
|
244
|
+
type: z.ZodOptional<z.ZodString>;
|
|
245
|
+
jwt: z.ZodOptional<z.ZodString>;
|
|
246
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
247
|
+
type: z.ZodOptional<z.ZodString>;
|
|
248
|
+
verificationMethod: z.ZodOptional<z.ZodString>;
|
|
249
|
+
created: z.ZodOptional<z.ZodString>;
|
|
250
|
+
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
251
|
+
proofValue: z.ZodOptional<z.ZodString>;
|
|
252
|
+
eip712: z.ZodOptional<z.ZodObject<{
|
|
253
|
+
domain: z.ZodOptional<z.ZodObject<{
|
|
254
|
+
chainId: z.ZodNumber;
|
|
255
|
+
name: z.ZodString;
|
|
256
|
+
version: z.ZodString;
|
|
257
|
+
}, z.core.$strip>>;
|
|
258
|
+
types: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
259
|
+
primaryType: z.ZodOptional<z.ZodString>;
|
|
260
|
+
}, z.core.$strip>>;
|
|
261
|
+
}, z.core.$strip>]>;
|
|
262
|
+
}, z.core.$strip>>], null>;
|
|
263
|
+
export declare const IErrorSchema: z.ZodObject<{
|
|
264
|
+
message: z.ZodOptional<z.ZodString>;
|
|
265
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
266
|
+
}, z.core.$strip>;
|
|
267
|
+
export declare const IVerifyResultSchema: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
|
|
268
|
+
verified: z.ZodBoolean;
|
|
269
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
270
|
+
message: z.ZodOptional<z.ZodString>;
|
|
271
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
272
|
+
}, z.core.$strip>>;
|
|
273
|
+
}, z.core.$strip>>;
|
|
274
|
+
export declare const ResultSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodUnion<readonly [z.ZodTuple<[z.ZodLiteral<true>, T], null>, z.ZodTuple<[z.ZodLiteral<false>, z.ZodString], null>]>;
|
|
275
|
+
export declare const EphemeralPublicKeySchema: z.ZodObject<{
|
|
276
|
+
kty: z.ZodOptional<z.ZodString>;
|
|
277
|
+
crv: z.ZodOptional<z.ZodString>;
|
|
278
|
+
x: z.ZodOptional<z.ZodString>;
|
|
279
|
+
y: z.ZodOptional<z.ZodString>;
|
|
280
|
+
n: z.ZodOptional<z.ZodString>;
|
|
281
|
+
e: z.ZodOptional<z.ZodString>;
|
|
282
|
+
}, z.core.$strip>;
|
|
283
|
+
export declare const RecipientHeaderSchema: z.ZodObject<{
|
|
284
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
285
|
+
iv: z.ZodOptional<z.ZodString>;
|
|
286
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
287
|
+
epk: z.ZodOptional<z.ZodObject<{
|
|
288
|
+
kty: z.ZodOptional<z.ZodString>;
|
|
289
|
+
crv: z.ZodOptional<z.ZodString>;
|
|
290
|
+
x: z.ZodOptional<z.ZodString>;
|
|
291
|
+
y: z.ZodOptional<z.ZodString>;
|
|
292
|
+
n: z.ZodOptional<z.ZodString>;
|
|
293
|
+
e: z.ZodOptional<z.ZodString>;
|
|
294
|
+
}, z.core.$strip>>;
|
|
295
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
296
|
+
apv: z.ZodOptional<z.ZodString>;
|
|
297
|
+
apu: z.ZodOptional<z.ZodString>;
|
|
298
|
+
}, z.core.$strip>;
|
|
299
|
+
export declare const RecipientSchema: z.ZodObject<{
|
|
300
|
+
header: z.ZodObject<{
|
|
301
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
302
|
+
iv: z.ZodOptional<z.ZodString>;
|
|
303
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
304
|
+
epk: z.ZodOptional<z.ZodObject<{
|
|
305
|
+
kty: z.ZodOptional<z.ZodString>;
|
|
306
|
+
crv: z.ZodOptional<z.ZodString>;
|
|
307
|
+
x: z.ZodOptional<z.ZodString>;
|
|
308
|
+
y: z.ZodOptional<z.ZodString>;
|
|
309
|
+
n: z.ZodOptional<z.ZodString>;
|
|
310
|
+
e: z.ZodOptional<z.ZodString>;
|
|
311
|
+
}, z.core.$strip>>;
|
|
312
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
313
|
+
apv: z.ZodOptional<z.ZodString>;
|
|
314
|
+
apu: z.ZodOptional<z.ZodString>;
|
|
315
|
+
}, z.core.$strip>;
|
|
316
|
+
encrypted_key: z.ZodString;
|
|
317
|
+
}, z.core.$strip>;
|
|
318
|
+
export declare const JWESchema: z.ZodObject<{
|
|
319
|
+
protected: z.ZodString;
|
|
320
|
+
iv: z.ZodString;
|
|
321
|
+
ciphertext: z.ZodString;
|
|
322
|
+
tag: z.ZodString;
|
|
323
|
+
add: z.ZodOptional<z.ZodString>;
|
|
324
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
325
|
+
header: z.ZodObject<{
|
|
326
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
327
|
+
iv: z.ZodOptional<z.ZodString>;
|
|
328
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
329
|
+
epk: z.ZodOptional<z.ZodObject<{
|
|
330
|
+
kty: z.ZodOptional<z.ZodString>;
|
|
331
|
+
crv: z.ZodOptional<z.ZodString>;
|
|
332
|
+
x: z.ZodOptional<z.ZodString>;
|
|
333
|
+
y: z.ZodOptional<z.ZodString>;
|
|
334
|
+
n: z.ZodOptional<z.ZodString>;
|
|
335
|
+
e: z.ZodOptional<z.ZodString>;
|
|
336
|
+
}, z.core.$strip>>;
|
|
337
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
338
|
+
apv: z.ZodOptional<z.ZodString>;
|
|
339
|
+
apu: z.ZodOptional<z.ZodString>;
|
|
340
|
+
}, z.core.$strip>;
|
|
341
|
+
encrypted_key: z.ZodString;
|
|
342
|
+
}, z.core.$strip>>>;
|
|
343
|
+
}, z.core.$strip>;
|
|
344
|
+
export declare const DecryptedMessageResultSchema: z.ZodObject<{
|
|
345
|
+
isSuccess: z.ZodBoolean;
|
|
346
|
+
encryptedMessage: z.ZodString;
|
|
347
|
+
message: z.ZodString;
|
|
348
|
+
}, z.core.$strip>;
|
|
349
|
+
export declare const DecryptedMessageListResultSchema: z.ZodArray<z.ZodObject<{
|
|
350
|
+
isSuccess: z.ZodBoolean;
|
|
351
|
+
encryptedMessage: z.ZodString;
|
|
352
|
+
message: z.ZodString;
|
|
353
|
+
}, z.core.$strip>>;
|
|
354
|
+
export declare const DecryptedDidCommMessageBodySchema: z.ZodObject<{
|
|
355
|
+
quote: z.ZodString;
|
|
356
|
+
}, z.core.$strip>;
|
|
357
|
+
export {};
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DecryptedDidCommMessageBodySchema = exports.DecryptedMessageListResultSchema = exports.DecryptedMessageResultSchema = exports.JWESchema = exports.RecipientSchema = exports.RecipientHeaderSchema = exports.EphemeralPublicKeySchema = exports.ResultSchema = exports.IVerifyResultSchema = exports.IErrorSchema = exports.CreateSearchVcSchema = exports.VerifiableCredentialSchema = exports.proofTypeSchema = exports.eip712ProofTypeSchema = exports.jwtProofTypeSchema = exports.unsignedCredentialSchema = exports.credentialStatusReferenceSchema = exports.contextTypeSchema = exports.credentialSubjectSchema = exports.issuerTypeSchema = exports.networksSchema = exports.configJsonSchema = exports.supportedNetworkEnumSchema = exports.supportedNetworks = exports.jwtSchema = exports.DIDCommQuoteMessageSchema = exports.gisPointSchema = exports.postMessagePayloadSchema = exports.postMessageSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zOnChainState = zod_1.z.object({
|
|
6
|
+
ed25519Exists: zod_1.z.boolean(),
|
|
7
|
+
x25519Exists: zod_1.z.boolean(),
|
|
8
|
+
serviceEndpointExists: zod_1.z.boolean(),
|
|
9
|
+
});
|
|
10
|
+
exports.postMessageSchema = zod_1.z.intersection(zod_1.z.object({
|
|
11
|
+
type: zod_1.z.string().optional(),
|
|
12
|
+
}), zod_1.z.record(zod_1.z.string(), zod_1.z.any()));
|
|
13
|
+
exports.postMessagePayloadSchema = zod_1.z.object({
|
|
14
|
+
type: zod_1.z.literal('JWT_TOKEN'),
|
|
15
|
+
token: zod_1.z.string().min(1, 'JWT token cannot be empty.'),
|
|
16
|
+
});
|
|
17
|
+
exports.gisPointSchema = zod_1.z.object({ lat: zod_1.z.number(), lng: zod_1.z.number() });
|
|
18
|
+
exports.DIDCommQuoteMessageSchema = zod_1.z.object({
|
|
19
|
+
rfq_uuid: zod_1.z.uuid(),
|
|
20
|
+
quote_uuid: zod_1.z.uuid(),
|
|
21
|
+
start_point_uuid: zod_1.z.string(),
|
|
22
|
+
start_point_other_uuid: zod_1.z.string().optional(),
|
|
23
|
+
end_point_uuid: zod_1.z.string(),
|
|
24
|
+
end_point_other_uuid: zod_1.z.string().optional(),
|
|
25
|
+
validity_time: zod_1.z.number(),
|
|
26
|
+
created_at: zod_1.z.string(),
|
|
27
|
+
lead_time: zod_1.z.number(),
|
|
28
|
+
initial_charge: zod_1.z.number(),
|
|
29
|
+
recurring_charge: zod_1.z.number(),
|
|
30
|
+
usage_charge: zod_1.z.number(),
|
|
31
|
+
dole_schedule: zod_1.z.number(),
|
|
32
|
+
settlement_schedule: zod_1.z.number(),
|
|
33
|
+
receiving_address: zod_1.z.string(),
|
|
34
|
+
gis_data: zod_1.z.array(exports.gisPointSchema),
|
|
35
|
+
});
|
|
36
|
+
exports.jwtSchema = zod_1.z
|
|
37
|
+
.string()
|
|
38
|
+
.regex(/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+$/, 'Invalid JWT format');
|
|
39
|
+
exports.supportedNetworks = {
|
|
40
|
+
holesky: 'holesky',
|
|
41
|
+
sepolia: 'sepolia',
|
|
42
|
+
lineaSepolia: 'linea-sepolia',
|
|
43
|
+
};
|
|
44
|
+
exports.supportedNetworkEnumSchema = zod_1.z.enum(exports.supportedNetworks);
|
|
45
|
+
const networkProviderSchema = zod_1.z.object({
|
|
46
|
+
name: zod_1.z.string().min(1),
|
|
47
|
+
rpcUrl: zod_1.z.string().min(1),
|
|
48
|
+
apiKeyRequired: zod_1.z.boolean(),
|
|
49
|
+
});
|
|
50
|
+
const networkConfigSchema = zod_1.z
|
|
51
|
+
.object({
|
|
52
|
+
name: exports.supportedNetworkEnumSchema,
|
|
53
|
+
registryAddress: zod_1.z.string().startsWith('0x'),
|
|
54
|
+
intChainId: zod_1.z.number(),
|
|
55
|
+
hexChainId: zod_1.z.string().startsWith('0x'),
|
|
56
|
+
providers: zod_1.z.array(networkProviderSchema),
|
|
57
|
+
})
|
|
58
|
+
.refine((val) => {
|
|
59
|
+
const { intChainId, hexChainId } = val;
|
|
60
|
+
// Convert hex chain id to number
|
|
61
|
+
const hexInInt = parseInt(hexChainId, 16);
|
|
62
|
+
return !isNaN(hexInInt) && hexInInt === intChainId;
|
|
63
|
+
}, {
|
|
64
|
+
message: 'hexChainId does not match intChainId',
|
|
65
|
+
});
|
|
66
|
+
exports.configJsonSchema = zod_1.z.object({
|
|
67
|
+
networkSelection: exports.supportedNetworkEnumSchema,
|
|
68
|
+
selectedNetwork: networkConfigSchema.optional(),
|
|
69
|
+
});
|
|
70
|
+
exports.networksSchema = zod_1.z.record(exports.supportedNetworkEnumSchema, networkConfigSchema);
|
|
71
|
+
exports.issuerTypeSchema = zod_1.z.union([
|
|
72
|
+
zod_1.z.object({
|
|
73
|
+
id: zod_1.z.string(),
|
|
74
|
+
}),
|
|
75
|
+
zod_1.z.string(),
|
|
76
|
+
]);
|
|
77
|
+
exports.credentialSubjectSchema = zod_1.z.object({
|
|
78
|
+
id: zod_1.z.string().optional(),
|
|
79
|
+
message: zod_1.z.string().optional(),
|
|
80
|
+
});
|
|
81
|
+
exports.contextTypeSchema = zod_1.z.union([
|
|
82
|
+
zod_1.z.string(),
|
|
83
|
+
zod_1.z.record(zod_1.z.string(), zod_1.z.any()),
|
|
84
|
+
zod_1.z.array(zod_1.z.union([zod_1.z.string(), zod_1.z.record(zod_1.z.string(), zod_1.z.any())])),
|
|
85
|
+
]);
|
|
86
|
+
exports.credentialStatusReferenceSchema = zod_1.z.object({
|
|
87
|
+
id: zod_1.z.string(),
|
|
88
|
+
type: zod_1.z.string(),
|
|
89
|
+
});
|
|
90
|
+
// Derived from generated VC upon passing to veramo API with the payload
|
|
91
|
+
const credentialSchema = zod_1.z.object({
|
|
92
|
+
id: zod_1.z.string().optional(),
|
|
93
|
+
type: zod_1.z.string().optional(),
|
|
94
|
+
});
|
|
95
|
+
exports.unsignedCredentialSchema = zod_1.z.object({
|
|
96
|
+
issuer: exports.issuerTypeSchema,
|
|
97
|
+
credentialSubject: exports.credentialSubjectSchema,
|
|
98
|
+
credentialSchema: credentialSchema.optional(),
|
|
99
|
+
type: zod_1.z.union([zod_1.z.array(zod_1.z.string()), zod_1.z.string()]).optional(),
|
|
100
|
+
'@context': exports.contextTypeSchema,
|
|
101
|
+
issuanceDate: zod_1.z.string(),
|
|
102
|
+
expirationDate: zod_1.z.string().optional(),
|
|
103
|
+
credentialStatus: exports.credentialStatusReferenceSchema.optional(),
|
|
104
|
+
id: zod_1.z.string().optional(),
|
|
105
|
+
});
|
|
106
|
+
exports.jwtProofTypeSchema = zod_1.z.object({
|
|
107
|
+
type: zod_1.z.string().optional(),
|
|
108
|
+
jwt: zod_1.z.string().optional(),
|
|
109
|
+
});
|
|
110
|
+
exports.eip712ProofTypeSchema = zod_1.z.object({
|
|
111
|
+
type: zod_1.z.string().optional(),
|
|
112
|
+
verificationMethod: zod_1.z.string().optional(),
|
|
113
|
+
created: zod_1.z.string().optional(),
|
|
114
|
+
proofPurpose: zod_1.z.string().optional(),
|
|
115
|
+
proofValue: zod_1.z.string().optional(),
|
|
116
|
+
eip712: zod_1.z
|
|
117
|
+
.object({
|
|
118
|
+
domain: zod_1.z
|
|
119
|
+
.object({
|
|
120
|
+
chainId: zod_1.z.number(),
|
|
121
|
+
name: zod_1.z.string(),
|
|
122
|
+
version: zod_1.z.string(),
|
|
123
|
+
})
|
|
124
|
+
.optional(),
|
|
125
|
+
types: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
|
|
126
|
+
primaryType: zod_1.z.string().optional(),
|
|
127
|
+
})
|
|
128
|
+
.optional(),
|
|
129
|
+
});
|
|
130
|
+
exports.proofTypeSchema = zod_1.z.union([
|
|
131
|
+
exports.jwtProofTypeSchema,
|
|
132
|
+
exports.eip712ProofTypeSchema,
|
|
133
|
+
]);
|
|
134
|
+
exports.VerifiableCredentialSchema = exports.unsignedCredentialSchema.and(zod_1.z.object({
|
|
135
|
+
proof: exports.proofTypeSchema,
|
|
136
|
+
}));
|
|
137
|
+
exports.CreateSearchVcSchema = zod_1.z.tuple([
|
|
138
|
+
zod_1.z.string(),
|
|
139
|
+
exports.VerifiableCredentialSchema,
|
|
140
|
+
]);
|
|
141
|
+
exports.IErrorSchema = zod_1.z.object({
|
|
142
|
+
message: zod_1.z.string().optional(),
|
|
143
|
+
errorCode: zod_1.z.string().optional(),
|
|
144
|
+
});
|
|
145
|
+
exports.IVerifyResultSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.any()).and(zod_1.z.object({
|
|
146
|
+
verified: zod_1.z.boolean(),
|
|
147
|
+
error: exports.IErrorSchema.optional(),
|
|
148
|
+
}));
|
|
149
|
+
const ResultSchema = (dataSchema) => zod_1.z.union([
|
|
150
|
+
zod_1.z.tuple([zod_1.z.literal(true), dataSchema]),
|
|
151
|
+
zod_1.z.tuple([zod_1.z.literal(false), zod_1.z.string()]),
|
|
152
|
+
]);
|
|
153
|
+
exports.ResultSchema = ResultSchema;
|
|
154
|
+
exports.EphemeralPublicKeySchema = zod_1.z.object({
|
|
155
|
+
kty: zod_1.z.string().optional(),
|
|
156
|
+
crv: zod_1.z.string().optional(),
|
|
157
|
+
x: zod_1.z.string().optional(),
|
|
158
|
+
y: zod_1.z.string().optional(),
|
|
159
|
+
n: zod_1.z.string().optional(),
|
|
160
|
+
e: zod_1.z.string().optional(),
|
|
161
|
+
});
|
|
162
|
+
exports.RecipientHeaderSchema = zod_1.z.object({
|
|
163
|
+
alg: zod_1.z.string().optional(),
|
|
164
|
+
iv: zod_1.z.string().optional(),
|
|
165
|
+
tag: zod_1.z.string().optional(),
|
|
166
|
+
epk: exports.EphemeralPublicKeySchema.optional(),
|
|
167
|
+
kid: zod_1.z.string().optional(),
|
|
168
|
+
apv: zod_1.z.string().optional(),
|
|
169
|
+
apu: zod_1.z.string().optional(),
|
|
170
|
+
});
|
|
171
|
+
exports.RecipientSchema = zod_1.z.object({
|
|
172
|
+
header: exports.RecipientHeaderSchema,
|
|
173
|
+
encrypted_key: zod_1.z.string(),
|
|
174
|
+
});
|
|
175
|
+
exports.JWESchema = zod_1.z.object({
|
|
176
|
+
protected: zod_1.z.string(),
|
|
177
|
+
iv: zod_1.z.string(),
|
|
178
|
+
ciphertext: zod_1.z.string(),
|
|
179
|
+
tag: zod_1.z.string(),
|
|
180
|
+
add: zod_1.z.string().optional(),
|
|
181
|
+
recipients: zod_1.z.array(exports.RecipientSchema).optional(),
|
|
182
|
+
});
|
|
183
|
+
exports.DecryptedMessageResultSchema = zod_1.z.object({
|
|
184
|
+
isSuccess: zod_1.z.boolean(),
|
|
185
|
+
encryptedMessage: zod_1.z.string(),
|
|
186
|
+
message: zod_1.z.string(),
|
|
187
|
+
});
|
|
188
|
+
exports.DecryptedMessageListResultSchema = zod_1.z.array(exports.DecryptedMessageResultSchema);
|
|
189
|
+
exports.DecryptedDidCommMessageBodySchema = zod_1.z.object({
|
|
190
|
+
quote: zod_1.z.string(),
|
|
191
|
+
});
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export declare namespace TeleverseToken {
|
|
4
|
+
type InitialServiceProviderStruct = {
|
|
5
|
+
serviceProviderAddress: AddressLike;
|
|
6
|
+
did: string;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
type InitialServiceProviderStructOutput = [
|
|
10
|
+
serviceProviderAddress: string,
|
|
11
|
+
did: string,
|
|
12
|
+
name: string
|
|
13
|
+
] & {
|
|
14
|
+
serviceProviderAddress: string;
|
|
15
|
+
did: string;
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
4
18
|
type AllocationStruct = {
|
|
5
19
|
initialAmount: BigNumberish;
|
|
6
20
|
initialBlockNumber: BigNumberish;
|
|
@@ -24,6 +24,18 @@ import type {
|
|
|
24
24
|
} from "../../common";
|
|
25
25
|
|
|
26
26
|
export declare namespace TeleverseToken {
|
|
27
|
+
export type InitialServiceProviderStruct = {
|
|
28
|
+
serviceProviderAddress: AddressLike;
|
|
29
|
+
did: string;
|
|
30
|
+
name: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type InitialServiceProviderStructOutput = [
|
|
34
|
+
serviceProviderAddress: string,
|
|
35
|
+
did: string,
|
|
36
|
+
name: string
|
|
37
|
+
] & { serviceProviderAddress: string; did: string; name: string };
|
|
38
|
+
|
|
27
39
|
export type AllocationStruct = {
|
|
28
40
|
initialAmount: BigNumberish;
|
|
29
41
|
initialBlockNumber: BigNumberish;
|
|
@@ -14,7 +14,7 @@ export declare class CommitteeElection__factory extends ContractFactory {
|
|
|
14
14
|
deploymentTransaction(): ContractTransactionResponse;
|
|
15
15
|
}>;
|
|
16
16
|
connect(runner: ContractRunner | null): CommitteeElection__factory;
|
|
17
|
-
static readonly bytecode = "0x60803462000216576200176490601f38839003908101601f19168201906001600160401b038211838310176200021b5780839160409586948552833981010312620002165780516001600160a01b03918282169182900362000216576020809101519083821680920362000216573315620001fe5760009081549260018060a01b031993338582161784558751963391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08580a36001946003968688558115620001ef57508460025416176002558015620001de576004938454680100000000000000009081811015620001cb57878101808855811015620001b85786865284862001838382541617905587548552600584528689862001805491821015620001cb57878201808255821015620001b8579083918652848620019182541617905585548352600582528683209160ff199286848254161790558654845260058885200160028482541617905586548452600a888520019184525283868320918254161790558354916000198314620001a5575050019055516115329081620002328239f35b634e487b7160e01b825260119052602490fd5b634e487b7160e01b865260328752602486fd5b634e487b7160e01b865260418752602486fd5b8651630a64406560e11b8152600490fd5b630a64406560e11b8152600490fd5b8451631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe6080604052600436101561001257600080fd5b60003560e01c806309fe53af14611298578063168e398a1461112c5780635aab9a9e14610d225780635c632b3814610cb9578063715018a614610c535780637bd955f3146106935780638155f7361461060e5780638bac7dad146105d35780638da5cb5b146105ac57806390dbe40a146105855780639cf4364b14610567578063ab8f6ffe146104d2578063b17979a6146103fb578063b332180b14610257578063bfe7ed6f146101ff578063db4dff38146101e1578063e636d84b1461016e5763f2fde38b146100e257600080fd5b34610169576020366003190112610169576100fb611364565b6101036113b7565b6001600160a01b0380911690811561015057600054826001600160a01b0319821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b604051631e4fbdf760e01b815260006004820152602490fd5b600080fd5b3461016957602036600319011261016957610187611364565b60035460001981019081116101cb5760005260056020526001600160a01b03600a6040600020019116600052602052602060ff604060002054166040519015158152f35b634e487b7160e01b600052601160045260246000fd5b34610169576000366003190112610169576020600354604051908152f35b346101695761020d366112c7565b90600052600660205260406000209081548110156101695761022e916112f2565b508054600190910154604080516001600160a01b039093168352602083019190915290f35b0390f35b346101695760208060031936011261016957610271611364565b90600354600052600581526040600020906001600160a01b038093169182156103e95760078101913360005282815260ff6040600020541661038c576024818660025416604051928380926340bae5c960e01b82523360048301525afa9081156103dd576000916103b0575b501561039e5760088201928460005283825260ff6040600020541661038c5761030a6004840154426113e3565b60028401541061038c5760019385600052825260406000209160ff19928584825416179055336000525282604060002091825416179055018054600160401b8110156103765761035f916001820181556113f0565b909283549160031b92831b921b1916179055600080f35b634e487b7160e01b600052604160045260246000fd5b6040516311e49d1b60e21b8152600490fd5b604051637222ae5760e11b8152600490fd5b90508181813d83116103d6575b6103c7818361132a565b810103126101695751866102dd565b503d6103bd565b6040513d6000823e3d90fd5b604051630a64406560e11b8152600490fd5b3461016957602080600319360112610169576004356000526006815260406000209081546104288161134c565b90610436604051928361132a565b8082528282018094600052836000206000915b83831061049d5760408051878152865181890181905289928201908960005b8281106104755784840385f35b855180516001600160a01b031685528201518483015294810194604090930192600101610468565b6002866001926040516104af8161130e565b6001600160a01b0386541681528486015483820152815201920192019190610449565b34610169576000366003190112610169576040518060045480825282602080930160046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b9260005b85828210610548575050506105349250038361132a565b61025360405192828493845283019061137a565b85546001600160a01b031684526001958601958895509301920161051d565b34610169576000366003190112610169576020600154604051908152f35b346101695760003660031901126101695760206001600160a01b0360025416604051908152f35b346101695760003660031901126101695760206001600160a01b0360005416604051908152f35b34610169576020366003190112610169576004356105ef6113b7565b600181106105fc57600155005b604051634b2392d960e11b8152600490fd5b346101695760003660031901126101695760035460001981019081116101cb5760005260206005815260019081604060002001916040519081938491848254948581520191600052846000209060005b868682106106745785906105348287038361132a565b83546001600160a01b031685528895509093019291810191810161065e565b34610169576000366003190112610169576106ac6113b7565b6003805460005260056020908082526040600020600683526040600020600784526040600020906106e16004840154426113e3565b6106f360028501548886015490611408565b11610c4157600193848401928354865411610c41576009850186610716866112dd565b96906001600160a01b0397889154908d1b1c16600052828a52604060002054826000905b610b3c575b5050508454815411610b2a575b610a14575b8154151580610a09575b61092d575b5050830180549060ff821660048110156109175788036107ba575050505050507f40329558064c097001b2be2c0497b5fe28b31f5f15c480406d1f3484d6f54956908254604051908152a15b6107b68154611415565b9055005b600260ff198093161790556004546000600455806108d1575b50600093600a01855b610817575b5050505050507fdfe7b5028ce549bee2c9feaa4ed05a57755aa83643fcc4f3560e5bf7bf486eb2908254604051908152a16107ac565b82548510156108cc578361082b86856112f2565b505416600052808752604060002086838254161790558361084c86856112f2565b5054169460045490600160401b82101561037657878201806004558210156108b65787966108b09260046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01906001600160a01b0319825416179055611415565b946107dc565b634e487b7160e01b600052603260045260246000fd5b6107e1565b6004600052857f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b918201915b82811061090b5750506107d3565b600081550186906108fd565b634e487b7160e01b600052602160045260246000fd5b869085610939866112dd565b5054166000528089526040600020549082908654915b8281106109ad57505050816000905b61096a575b5050610760565b83548110156109a85780828461098361099094886112f2565b5001541461099657611415565b8261095e565b888601805460ff19168d179055611415565b610963565b9091929350876109bd82896112f2565b505416600052818b5283604060002054106109e6575b6109dc90611415565b908993929161094f565b9250866109f384886112f2565b5054166000908152818b526040902054926109d3565b50835487541461075b565b835487541015610b255784610a28856112dd565b5054166000528088528660406000205460009082805b610a54575b5050610a4f90866114ac565b61074c565b879391929354811015610b1c5788610a6c828a6112f2565b505416600052848c528260406000205410610af5575b88610a8d828a6112f2565b505416600052848c528260406000205414610ab5575b610aac90611415565b81939291610a3e565b9050610ac181886112f2565b50855491600160401b83101561037657610aee610aac92610ae8858f8097018b558a6112f2565b90611438565b9050610aa3565b809350889250610b069150876112f2565b5054166000528189526040600020548882610a82565b81939250610a43565b610751565b868401805460ff19168b17905561074c565b8254811015610c3c57888d610b5183866113f0565b9054911b1c16600052848c528c6040600020548015600014610b7e575050610b7890611415565b8361073a565b8a8a5492875484101580610c33575b15610b9f5750505050610b7890611415565b909193929650848410610c2a575b610bb783876113f0565b9054911b1c169460405195610bcb8761130e565b86528d8601928352600160401b81101561037657808d610bee92018b558a6112f2565b610c14578c610b78938c829851166001600160a01b031984541617835551910155611415565b634e487b7160e01b600052600060045260246000fd5b93508293610bad565b50858310610b8d565b61073f565b604051631212aae360e21b8152600490fd5b3461016957600036600319011261016957610c6c6113b7565b6000805473ffffffffffffffffffffffffffffffffffffffff19811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610169576020366003190112610169576004356000526005602052604060002060ff815416600282015491600381015460ff600560048401549301541693604051931515845260208401526040830152606082015260048210156109175760a0916080820152f35b3461016957600319602036820112610169576004359067ffffffffffffffff908183116101695760409083360301126101695760405191610d628361130e565b806004013582811161016957810136602382011215610169576004810135610d898161134c565b91610d97604051938461132a565b8183526024602084019260051b8201019036821161016957602401915b81831061110c575050508352602481013591821161016957013660238201121561016957600481013590610de78261134c565b91610df5604051938461132a565b8083526024602084019160051b8301019136831161016957602401905b8282106110fc57505050602082015260035460005260056020526024604060002060206001600160a01b0360025416604051938480926340bae5c960e01b82523360048301525afa9182156103dd576000926110c8575b50811561039e57336000526006810160205260ff60406000205416610fe457825151602084015151808214918215926110bf575b5081156110b6575b50610fe4576004810154610eb981426113e3565b6002830154809110918215611092575b5050610fe457825151600182015410610fe4576000928392835b60208301518051861015610f1557610f0f91610f0287610f0993611424565b5190611408565b94611415565b93610ee3565b5090600084875b85518051841015610ff657610f39846001600160a01b0392611424565b51166000526008820160205260ff6040600020541615610fe457610f61836020880151611424565b5180858102048514811517156101cb578515610fce57610fc891610fc2916001600160a01b03610f92878b51611424565b511660005260098501602052610fb2888860406000209302048254611408565b9055610f028560208a0151611424565b92611415565b91610f1c565b634e487b7160e01b600052601260045260246000fd5b60405163d07abb2b60e01b8152600490fd5b8660068433600052016020526040600020600160ff1982541617905560208151910151906110356040519133835260606020840152606083019061137a565b81810360408301526020808451928381520193019060005b81811061107c577f24e7f08e5a0e41b2aeb0e600f6a14fb714f4f832c7ec2ee675338883940cbf0e84860385a1005b825185526020948501949092019160010161104d565b6110ae9192506110a290426113e3565b91600384015490611408565b108480610ec9565b90501584610ea5565b15915085610e9d565b9091506020813d6020116110f4575b816110e46020938361132a565b8101031261016957519083610e69565b3d91506110d7565b8135815260209182019101610e12565b82356001600160a01b038116810361016957815260209283019201610db4565b346101695760603660031901126101695760043580151580910361016957602435906044356111596113b7565b82158015611290575b61127e576003549260001984018481116101cb57600052600560205260ff6005604060002001541693600485101561091757600180951461126c576000526005602052604060002060ff19908181541660ff8616178155604051602081019080821067ffffffffffffffff831117610376576000916040525285810180546000825580611246575b7f9fa7be2a49ad35e9cccc605cce5b6bfdf0b4d045e5e95e1f241c4bf383cb232e6060888888888d60058a8a600052846002820155856003820155426004820155019182541617905560405192835260208301526040820152a1005b816000526020600020908101905b81811061126157506111ea565b600081558801611254565b6040516304d7d7eb60e01b8152600490fd5b604051632ae4e7db60e21b8152600490fd5b508015611162565b34610169576112a6366112c7565b90600052600760205260406000209081548110156101695761022e916112f2565b6040906003190112610169576004359060243590565b8054156108b657600052602060002090600090565b80548210156108b65760005260206000209060011b0190600090565b6040810190811067ffffffffffffffff82111761037657604052565b90601f8019910116810190811067ffffffffffffffff82111761037657604052565b67ffffffffffffffff81116103765760051b60200190565b600435906001600160a01b038216820361016957565b90815180825260208080930193019160005b82811061139a575050505090565b83516001600160a01b03168552938101939281019260010161138c565b6001600160a01b036000541633036113cb57565b60405163118cdaa760e01b8152336004820152602490fd5b919082039182116101cb57565b80548210156108b65760005260206000200190600090565b919082018092116101cb57565b60001981146101cb5760010190565b80518210156108b65760209160051b010190565b9190610c1457808203611449575050565b6001816001600160a01b03829354166001600160a01b03198554161784550154910155565b8054801561149657600019019061148582826112f2565b610c14576001816000809355015555565b634e487b7160e01b600052603160045260246000fd5b8054600019908181019081116101cb5783146114f15781549081019081116101cb576114ef92610ae86114e26114ea93856112f2565b5091846112f2565b61146e565b565b506114ef915061146e56fea264697066735822122005ab128993b893f92f9527fc4a80d2fe7892a9f8744417ca7052e0c733154d5464736f6c63430008140033";
|
|
17
|
+
static readonly bytecode = "0x60803462000216576200176490601f38839003908101601f19168201906001600160401b038211838310176200021b5780839160409586948552833981010312620002165780516001600160a01b03918282169182900362000216576020809101519083821680920362000216573315620001fe5760009081549260018060a01b031993338582161784558751963391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08580a36001946003968688558115620001ef57508460025416176002558015620001de576004938454680100000000000000009081811015620001cb57878101808855811015620001b85786865284862001838382541617905587548552600584528689862001805491821015620001cb57878201808255821015620001b8579083918652848620019182541617905585548352600582528683209160ff199286848254161790558654845260058885200160028482541617905586548452600a888520019184525283868320918254161790558354916000198314620001a5575050019055516115329081620002328239f35b634e487b7160e01b825260119052602490fd5b634e487b7160e01b865260328752602486fd5b634e487b7160e01b865260418752602486fd5b8651630a64406560e11b8152600490fd5b630a64406560e11b8152600490fd5b8451631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe6080604052600436101561001257600080fd5b60003560e01c806309fe53af14611298578063168e398a1461112c5780635aab9a9e14610d225780635c632b3814610cb9578063715018a614610c535780637bd955f3146106935780638155f7361461060e5780638bac7dad146105d35780638da5cb5b146105ac57806390dbe40a146105855780639cf4364b14610567578063ab8f6ffe146104d2578063b17979a6146103fb578063b332180b14610257578063bfe7ed6f146101ff578063db4dff38146101e1578063e636d84b1461016e5763f2fde38b146100e257600080fd5b34610169576020366003190112610169576100fb611364565b6101036113b7565b6001600160a01b0380911690811561015057600054826001600160a01b0319821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b604051631e4fbdf760e01b815260006004820152602490fd5b600080fd5b3461016957602036600319011261016957610187611364565b60035460001981019081116101cb5760005260056020526001600160a01b03600a6040600020019116600052602052602060ff604060002054166040519015158152f35b634e487b7160e01b600052601160045260246000fd5b34610169576000366003190112610169576020600354604051908152f35b346101695761020d366112c7565b90600052600660205260406000209081548110156101695761022e916112f2565b508054600190910154604080516001600160a01b039093168352602083019190915290f35b0390f35b346101695760208060031936011261016957610271611364565b90600354600052600581526040600020906001600160a01b038093169182156103e95760078101913360005282815260ff6040600020541661038c576024818660025416604051928380926340bae5c960e01b82523360048301525afa9081156103dd576000916103b0575b501561039e5760088201928460005283825260ff6040600020541661038c5761030a6004840154426113e3565b60028401541061038c5760019385600052825260406000209160ff19928584825416179055336000525282604060002091825416179055018054600160401b8110156103765761035f916001820181556113f0565b909283549160031b92831b921b1916179055600080f35b634e487b7160e01b600052604160045260246000fd5b6040516311e49d1b60e21b8152600490fd5b604051637222ae5760e11b8152600490fd5b90508181813d83116103d6575b6103c7818361132a565b810103126101695751866102dd565b503d6103bd565b6040513d6000823e3d90fd5b604051630a64406560e11b8152600490fd5b3461016957602080600319360112610169576004356000526006815260406000209081546104288161134c565b90610436604051928361132a565b8082528282018094600052836000206000915b83831061049d5760408051878152865181890181905289928201908960005b8281106104755784840385f35b855180516001600160a01b031685528201518483015294810194604090930192600101610468565b6002866001926040516104af8161130e565b6001600160a01b0386541681528486015483820152815201920192019190610449565b34610169576000366003190112610169576040518060045480825282602080930160046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b9260005b85828210610548575050506105349250038361132a565b61025360405192828493845283019061137a565b85546001600160a01b031684526001958601958895509301920161051d565b34610169576000366003190112610169576020600154604051908152f35b346101695760003660031901126101695760206001600160a01b0360025416604051908152f35b346101695760003660031901126101695760206001600160a01b0360005416604051908152f35b34610169576020366003190112610169576004356105ef6113b7565b600181106105fc57600155005b604051634b2392d960e11b8152600490fd5b346101695760003660031901126101695760035460001981019081116101cb5760005260206005815260019081604060002001916040519081938491848254948581520191600052846000209060005b868682106106745785906105348287038361132a565b83546001600160a01b031685528895509093019291810191810161065e565b34610169576000366003190112610169576106ac6113b7565b6003805460005260056020908082526040600020600683526040600020600784526040600020906106e16004840154426113e3565b6106f360028501548886015490611408565b11610c4157600193848401928354865411610c41576009850186610716866112dd565b96906001600160a01b0397889154908d1b1c16600052828a52604060002054826000905b610b3c575b5050508454815411610b2a575b610a14575b8154151580610a09575b61092d575b5050830180549060ff821660048110156109175788036107ba575050505050507f40329558064c097001b2be2c0497b5fe28b31f5f15c480406d1f3484d6f54956908254604051908152a15b6107b68154611415565b9055005b600260ff198093161790556004546000600455806108d1575b50600093600a01855b610817575b5050505050507fdfe7b5028ce549bee2c9feaa4ed05a57755aa83643fcc4f3560e5bf7bf486eb2908254604051908152a16107ac565b82548510156108cc578361082b86856112f2565b505416600052808752604060002086838254161790558361084c86856112f2565b5054169460045490600160401b82101561037657878201806004558210156108b65787966108b09260046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01906001600160a01b0319825416179055611415565b946107dc565b634e487b7160e01b600052603260045260246000fd5b6107e1565b6004600052857f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b918201915b82811061090b5750506107d3565b600081550186906108fd565b634e487b7160e01b600052602160045260246000fd5b869085610939866112dd565b5054166000528089526040600020549082908654915b8281106109ad57505050816000905b61096a575b5050610760565b83548110156109a85780828461098361099094886112f2565b5001541461099657611415565b8261095e565b888601805460ff19168d179055611415565b610963565b9091929350876109bd82896112f2565b505416600052818b5283604060002054106109e6575b6109dc90611415565b908993929161094f565b9250866109f384886112f2565b5054166000908152818b526040902054926109d3565b50835487541461075b565b835487541015610b255784610a28856112dd565b5054166000528088528660406000205460009082805b610a54575b5050610a4f90866114ac565b61074c565b879391929354811015610b1c5788610a6c828a6112f2565b505416600052848c528260406000205410610af5575b88610a8d828a6112f2565b505416600052848c528260406000205414610ab5575b610aac90611415565b81939291610a3e565b9050610ac181886112f2565b50855491600160401b83101561037657610aee610aac92610ae8858f8097018b558a6112f2565b90611438565b9050610aa3565b809350889250610b069150876112f2565b5054166000528189526040600020548882610a82565b81939250610a43565b610751565b868401805460ff19168b17905561074c565b8254811015610c3c57888d610b5183866113f0565b9054911b1c16600052848c528c6040600020548015600014610b7e575050610b7890611415565b8361073a565b8a8a5492875484101580610c33575b15610b9f5750505050610b7890611415565b909193929650848410610c2a575b610bb783876113f0565b9054911b1c169460405195610bcb8761130e565b86528d8601928352600160401b81101561037657808d610bee92018b558a6112f2565b610c14578c610b78938c829851166001600160a01b031984541617835551910155611415565b634e487b7160e01b600052600060045260246000fd5b93508293610bad565b50858310610b8d565b61073f565b604051631212aae360e21b8152600490fd5b3461016957600036600319011261016957610c6c6113b7565b6000805473ffffffffffffffffffffffffffffffffffffffff19811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610169576020366003190112610169576004356000526005602052604060002060ff815416600282015491600381015460ff600560048401549301541693604051931515845260208401526040830152606082015260048210156109175760a0916080820152f35b3461016957600319602036820112610169576004359067ffffffffffffffff908183116101695760409083360301126101695760405191610d628361130e565b806004013582811161016957810136602382011215610169576004810135610d898161134c565b91610d97604051938461132a565b8183526024602084019260051b8201019036821161016957602401915b81831061110c575050508352602481013591821161016957013660238201121561016957600481013590610de78261134c565b91610df5604051938461132a565b8083526024602084019160051b8301019136831161016957602401905b8282106110fc57505050602082015260035460005260056020526024604060002060206001600160a01b0360025416604051938480926340bae5c960e01b82523360048301525afa9182156103dd576000926110c8575b50811561039e57336000526006810160205260ff60406000205416610fe457825151602084015151808214918215926110bf575b5081156110b6575b50610fe4576004810154610eb981426113e3565b6002830154809110918215611092575b5050610fe457825151600182015410610fe4576000928392835b60208301518051861015610f1557610f0f91610f0287610f0993611424565b5190611408565b94611415565b93610ee3565b5090600084875b85518051841015610ff657610f39846001600160a01b0392611424565b51166000526008820160205260ff6040600020541615610fe457610f61836020880151611424565b5180858102048514811517156101cb578515610fce57610fc891610fc2916001600160a01b03610f92878b51611424565b511660005260098501602052610fb2888860406000209302048254611408565b9055610f028560208a0151611424565b92611415565b91610f1c565b634e487b7160e01b600052601260045260246000fd5b60405163d07abb2b60e01b8152600490fd5b8660068433600052016020526040600020600160ff1982541617905560208151910151906110356040519133835260606020840152606083019061137a565b81810360408301526020808451928381520193019060005b81811061107c577f24e7f08e5a0e41b2aeb0e600f6a14fb714f4f832c7ec2ee675338883940cbf0e84860385a1005b825185526020948501949092019160010161104d565b6110ae9192506110a290426113e3565b91600384015490611408565b108480610ec9565b90501584610ea5565b15915085610e9d565b9091506020813d6020116110f4575b816110e46020938361132a565b8101031261016957519083610e69565b3d91506110d7565b8135815260209182019101610e12565b82356001600160a01b038116810361016957815260209283019201610db4565b346101695760603660031901126101695760043580151580910361016957602435906044356111596113b7565b82158015611290575b61127e576003549260001984018481116101cb57600052600560205260ff6005604060002001541693600485101561091757600180951461126c576000526005602052604060002060ff19908181541660ff8616178155604051602081019080821067ffffffffffffffff831117610376576000916040525285810180546000825580611246575b7f9fa7be2a49ad35e9cccc605cce5b6bfdf0b4d045e5e95e1f241c4bf383cb232e6060888888888d60058a8a600052846002820155856003820155426004820155019182541617905560405192835260208301526040820152a1005b816000526020600020908101905b81811061126157506111ea565b600081558801611254565b6040516304d7d7eb60e01b8152600490fd5b604051632ae4e7db60e21b8152600490fd5b508015611162565b34610169576112a6366112c7565b90600052600760205260406000209081548110156101695761022e916112f2565b6040906003190112610169576004359060243590565b8054156108b657600052602060002090600090565b80548210156108b65760005260206000209060011b0190600090565b6040810190811067ffffffffffffffff82111761037657604052565b90601f8019910116810190811067ffffffffffffffff82111761037657604052565b67ffffffffffffffff81116103765760051b60200190565b600435906001600160a01b038216820361016957565b90815180825260208080930193019160005b82811061139a575050505090565b83516001600160a01b03168552938101939281019260010161138c565b6001600160a01b036000541633036113cb57565b60405163118cdaa760e01b8152336004820152602490fd5b919082039182116101cb57565b80548210156108b65760005260206000200190600090565b919082018092116101cb57565b60001981146101cb5760010190565b80518210156108b65760209160051b010190565b9190610c1457808203611449575050565b6001816001600160a01b03829354166001600160a01b03198554161784550154910155565b8054801561149657600019019061148582826112f2565b610c14576001816000809355015555565b634e487b7160e01b600052603160045260246000fd5b8054600019908181019081116101cb5783146114f15781549081019081116101cb576114ef92610ae86114e26114ea93856112f2565b5091846112f2565b61146e565b565b506114ef915061146e56fea26469706673582212203351a3c292568dd808091318574537da0b5b18d1a1d6154ebafe0a74357e2cf564736f6c63430008140033";
|
|
18
18
|
static readonly abi: readonly [{
|
|
19
19
|
readonly inputs: readonly [{
|
|
20
20
|
readonly internalType: "contract TeleverseToken";
|