@herd-labs/sdk 0.3.1 → 0.5.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.
- package/dist/index.d.ts +17 -17
- package/dist/index.js +17 -17
- package/dist/src/config.d.ts +11 -11
- package/dist/src/config.js +9 -12
- package/dist/src/errors.d.ts +35 -44
- package/dist/src/errors.js +19 -16
- package/dist/src/live/ActionsServiceLive.d.ts +3 -3
- package/dist/src/live/ActionsServiceLive.js +14 -14
- package/dist/src/live/AdaptersServiceLive.d.ts +3 -3
- package/dist/src/live/AdaptersServiceLive.js +8 -8
- package/dist/src/live/AgentSafesServiceLive.d.ts +3 -3
- package/dist/src/live/AgentSafesServiceLive.js +5 -5
- package/dist/src/live/AgentWalletsServiceLive.d.ts +3 -3
- package/dist/src/live/AgentWalletsServiceLive.js +4 -4
- package/dist/src/live/AgentWorkflowsServiceLive.d.ts +3 -3
- package/dist/src/live/AgentWorkflowsServiceLive.js +14 -14
- package/dist/src/live/AuthServiceLive.d.ts +3 -3
- package/dist/src/live/AuthServiceLive.js +7 -7
- package/dist/src/live/BookmarksServiceLive.d.ts +3 -3
- package/dist/src/live/BookmarksServiceLive.js +20 -20
- package/dist/src/live/CodeBlocksServiceLive.d.ts +3 -3
- package/dist/src/live/CodeBlocksServiceLive.js +11 -11
- package/dist/src/live/CollectionsServiceLive.d.ts +3 -3
- package/dist/src/live/CollectionsServiceLive.js +6 -6
- package/dist/src/live/ContractsServiceLive.d.ts +3 -3
- package/dist/src/live/ContractsServiceLive.js +10 -10
- package/dist/src/live/DocsServiceLive.d.ts +3 -3
- package/dist/src/live/DocsServiceLive.js +4 -4
- package/dist/src/live/GroupsServiceLive.d.ts +3 -3
- package/dist/src/live/GroupsServiceLive.js +9 -9
- package/dist/src/live/HalServiceLive.d.ts +3 -3
- package/dist/src/live/HalServiceLive.js +12 -12
- package/dist/src/live/TransactionsServiceLive.d.ts +3 -3
- package/dist/src/live/TransactionsServiceLive.js +18 -18
- package/dist/src/live/WalletsServiceLive.d.ts +3 -3
- package/dist/src/live/WalletsServiceLive.js +18 -18
- package/dist/src/live/http.d.ts +6 -6
- package/dist/src/live/http.js +15 -15
- package/dist/src/schemas/actions.d.ts +179 -339
- package/dist/src/schemas/actions.js +80 -76
- package/dist/src/schemas/adapters.d.ts +7 -17
- package/dist/src/schemas/adapters.js +5 -5
- package/dist/src/schemas/agent-wallets.d.ts +98 -222
- package/dist/src/schemas/agent-wallets.js +52 -52
- package/dist/src/schemas/agent-workflows.d.ts +104 -104
- package/dist/src/schemas/agent-workflows.js +53 -49
- package/dist/src/schemas/auth.d.ts +35 -64
- package/dist/src/schemas/auth.js +16 -16
- package/dist/src/schemas/bookmarks.d.ts +98 -216
- package/dist/src/schemas/bookmarks.js +55 -51
- package/dist/src/schemas/codeblocks.d.ts +149 -308
- package/dist/src/schemas/codeblocks.js +72 -67
- package/dist/src/schemas/collections.d.ts +120 -232
- package/dist/src/schemas/collections.js +48 -44
- package/dist/src/schemas/common.d.ts +13 -29
- package/dist/src/schemas/common.js +8 -8
- package/dist/src/schemas/contracts.d.ts +256 -447
- package/dist/src/schemas/contracts.js +92 -103
- package/dist/src/schemas/docs.d.ts +12 -29
- package/dist/src/schemas/docs.js +9 -9
- package/dist/src/schemas/groups.d.ts +74 -74
- package/dist/src/schemas/groups.js +32 -32
- package/dist/src/schemas/hal.d.ts +109 -217
- package/dist/src/schemas/hal.js +44 -42
- package/dist/src/schemas/transactions.d.ts +648 -926
- package/dist/src/schemas/transactions.js +158 -162
- package/dist/src/schemas/wallets.d.ts +577 -731
- package/dist/src/schemas/wallets.js +206 -145
- package/dist/src/services/ActionsService.d.ts +3 -3
- package/dist/src/services/ActionsService.js +2 -2
- package/dist/src/services/AdaptersService.d.ts +1 -1
- package/dist/src/services/AdaptersService.js +2 -2
- package/dist/src/services/AgentSafesService.d.ts +5 -5
- package/dist/src/services/AgentSafesService.js +2 -2
- package/dist/src/services/AgentWalletsService.d.ts +3 -3
- package/dist/src/services/AgentWalletsService.js +2 -2
- package/dist/src/services/AgentWorkflowsService.d.ts +11 -11
- package/dist/src/services/AgentWorkflowsService.js +6 -2
- package/dist/src/services/AuthService.d.ts +5 -5
- package/dist/src/services/AuthService.js +2 -2
- package/dist/src/services/BookmarksService.d.ts +3 -3
- package/dist/src/services/BookmarksService.js +2 -2
- package/dist/src/services/CodeBlocksService.d.ts +1 -1
- package/dist/src/services/CodeBlocksService.js +2 -2
- package/dist/src/services/CollectionsService.d.ts +1 -1
- package/dist/src/services/CollectionsService.js +2 -2
- package/dist/src/services/ContractsService.d.ts +6 -6
- package/dist/src/services/ContractsService.js +2 -2
- package/dist/src/services/DocsService.d.ts +2 -2
- package/dist/src/services/DocsService.js +2 -2
- package/dist/src/services/GroupsService.d.ts +13 -13
- package/dist/src/services/GroupsService.js +4 -2
- package/dist/src/services/HalService.d.ts +1 -1
- package/dist/src/services/HalService.js +2 -2
- package/dist/src/services/TransactionsService.d.ts +5 -5
- package/dist/src/services/TransactionsService.js +2 -2
- package/dist/src/services/WalletsService.d.ts +5 -5
- package/dist/src/services/WalletsService.js +2 -2
- package/package.json +13 -18
|
@@ -1,453 +1,262 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import * as effect_Brand13 from "effect/Brand";
|
|
3
2
|
|
|
4
3
|
//#region src/schemas/contracts.d.ts
|
|
5
|
-
declare const
|
|
6
|
-
name:
|
|
7
|
-
signature:
|
|
8
|
-
summary:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
readonly
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
readonly
|
|
29
|
-
|
|
30
|
-
readonly
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
readonly small?: string | undefined;
|
|
45
|
-
} & {
|
|
46
|
-
readonly large?: string | undefined;
|
|
47
|
-
}, {}, {}>;
|
|
48
|
-
declare class TokenImage extends TokenImage_base {}
|
|
49
|
-
declare const TopHolder_base: Schema.Class<TopHolder, {
|
|
50
|
-
rank: typeof Schema.Number;
|
|
51
|
-
address: typeof Schema.String;
|
|
52
|
-
balance: typeof Schema.Number;
|
|
53
|
-
valueUsd: typeof Schema.Number;
|
|
54
|
-
sharePercentage: typeof Schema.Number;
|
|
55
|
-
type: Schema.Literal<["contract", "wallet"]>;
|
|
56
|
-
name: Schema.optional<typeof Schema.String>;
|
|
57
|
-
entityLabel: Schema.optional<typeof Schema.String>;
|
|
58
|
-
coingeckoLabel: Schema.optional<typeof Schema.String>;
|
|
59
|
-
}, Schema.Struct.Encoded<{
|
|
60
|
-
rank: typeof Schema.Number;
|
|
61
|
-
address: typeof Schema.String;
|
|
62
|
-
balance: typeof Schema.Number;
|
|
63
|
-
valueUsd: typeof Schema.Number;
|
|
64
|
-
sharePercentage: typeof Schema.Number;
|
|
65
|
-
type: Schema.Literal<["contract", "wallet"]>;
|
|
66
|
-
name: Schema.optional<typeof Schema.String>;
|
|
67
|
-
entityLabel: Schema.optional<typeof Schema.String>;
|
|
68
|
-
coingeckoLabel: Schema.optional<typeof Schema.String>;
|
|
69
|
-
}>, never, {
|
|
70
|
-
readonly name?: string | undefined;
|
|
71
|
-
} & {
|
|
72
|
-
readonly address: string;
|
|
73
|
-
} & {
|
|
74
|
-
readonly type: "wallet" | "contract";
|
|
75
|
-
} & {
|
|
76
|
-
readonly valueUsd: number;
|
|
77
|
-
} & {
|
|
78
|
-
readonly balance: number;
|
|
79
|
-
} & {
|
|
80
|
-
readonly entityLabel?: string | undefined;
|
|
81
|
-
} & {
|
|
82
|
-
readonly rank: number;
|
|
83
|
-
} & {
|
|
84
|
-
readonly sharePercentage: number;
|
|
85
|
-
} & {
|
|
86
|
-
readonly coingeckoLabel?: string | undefined;
|
|
87
|
-
}, {}, {}>;
|
|
88
|
-
declare class TopHolder extends TopHolder_base {}
|
|
89
|
-
declare const TokenDetails_base: Schema.Class<TokenDetails, {
|
|
90
|
-
tokenType: Schema.Literal<["ERC20", "ERC721", "ERC1155"]>;
|
|
91
|
-
symbol: typeof Schema.String;
|
|
92
|
-
name: typeof Schema.String;
|
|
93
|
-
decimals: Schema.optional<typeof Schema.Number>;
|
|
94
|
-
description: Schema.optional<typeof Schema.String>;
|
|
95
|
-
currentPriceUsd: Schema.optional<typeof Schema.Number>;
|
|
96
|
-
marketCapUsd: Schema.optional<typeof Schema.Number>;
|
|
97
|
-
fullyDilutedValuationUsd: Schema.optional<typeof Schema.Number>;
|
|
98
|
-
totalSupply: Schema.optional<typeof Schema.Number>;
|
|
99
|
-
totalVolumeUsd: Schema.optional<typeof Schema.Number>;
|
|
100
|
-
athUsd: Schema.optional<typeof Schema.Number>;
|
|
101
|
-
marketCapRank: Schema.optional<typeof Schema.Number>;
|
|
102
|
-
image: Schema.optional<typeof TokenImage>;
|
|
103
|
-
topHolders: Schema.optional<Schema.Array$<typeof TopHolder>>;
|
|
104
|
-
}, Schema.Struct.Encoded<{
|
|
105
|
-
tokenType: Schema.Literal<["ERC20", "ERC721", "ERC1155"]>;
|
|
106
|
-
symbol: typeof Schema.String;
|
|
107
|
-
name: typeof Schema.String;
|
|
108
|
-
decimals: Schema.optional<typeof Schema.Number>;
|
|
109
|
-
description: Schema.optional<typeof Schema.String>;
|
|
110
|
-
currentPriceUsd: Schema.optional<typeof Schema.Number>;
|
|
111
|
-
marketCapUsd: Schema.optional<typeof Schema.Number>;
|
|
112
|
-
fullyDilutedValuationUsd: Schema.optional<typeof Schema.Number>;
|
|
113
|
-
totalSupply: Schema.optional<typeof Schema.Number>;
|
|
114
|
-
totalVolumeUsd: Schema.optional<typeof Schema.Number>;
|
|
115
|
-
athUsd: Schema.optional<typeof Schema.Number>;
|
|
116
|
-
marketCapRank: Schema.optional<typeof Schema.Number>;
|
|
117
|
-
image: Schema.optional<typeof TokenImage>;
|
|
118
|
-
topHolders: Schema.optional<Schema.Array$<typeof TopHolder>>;
|
|
119
|
-
}>, never, {
|
|
120
|
-
readonly symbol: string;
|
|
121
|
-
} & {
|
|
122
|
-
readonly name: string;
|
|
123
|
-
} & {
|
|
124
|
-
readonly description?: string | undefined;
|
|
125
|
-
} & {
|
|
126
|
-
readonly tokenType: "ERC20" | "ERC721" | "ERC1155";
|
|
127
|
-
} & {
|
|
128
|
-
readonly decimals?: number | undefined;
|
|
129
|
-
} & {
|
|
130
|
-
readonly currentPriceUsd?: number | undefined;
|
|
131
|
-
} & {
|
|
132
|
-
readonly marketCapUsd?: number | undefined;
|
|
133
|
-
} & {
|
|
134
|
-
readonly fullyDilutedValuationUsd?: number | undefined;
|
|
135
|
-
} & {
|
|
136
|
-
readonly totalSupply?: number | undefined;
|
|
137
|
-
} & {
|
|
138
|
-
readonly totalVolumeUsd?: number | undefined;
|
|
139
|
-
} & {
|
|
140
|
-
readonly athUsd?: number | undefined;
|
|
141
|
-
} & {
|
|
142
|
-
readonly marketCapRank?: number | undefined;
|
|
143
|
-
} & {
|
|
144
|
-
readonly image?: TokenImage | undefined;
|
|
145
|
-
} & {
|
|
146
|
-
readonly topHolders?: readonly TopHolder[] | undefined;
|
|
147
|
-
}, {}, {}>;
|
|
148
|
-
declare class TokenDetails extends TokenDetails_base {}
|
|
149
|
-
declare const AddressDetails_base: Schema.Class<AddressDetails, {
|
|
150
|
-
address: typeof Schema.String;
|
|
151
|
-
deploymentBlockNumber: Schema.optional<typeof Schema.Number>;
|
|
152
|
-
deploymentTimestamp: Schema.optional<typeof Schema.String>;
|
|
153
|
-
deploymentTimestampUtc: Schema.optional<typeof Schema.String>;
|
|
154
|
-
deploymentTxHash: Schema.optional<typeof Schema.String>;
|
|
155
|
-
factory: Schema.optional<Schema.Struct<{
|
|
156
|
-
name: typeof Schema.String;
|
|
157
|
-
address: typeof Schema.String;
|
|
4
|
+
declare const FunctionSummarySchema: Schema.Struct<{
|
|
5
|
+
readonly name: Schema.String;
|
|
6
|
+
readonly signature: Schema.String;
|
|
7
|
+
readonly summary: Schema.String;
|
|
8
|
+
}>;
|
|
9
|
+
type FunctionSummary = typeof FunctionSummarySchema.Type;
|
|
10
|
+
declare const EventSummarySchema: Schema.Struct<{
|
|
11
|
+
readonly name: Schema.String;
|
|
12
|
+
readonly summary: Schema.String;
|
|
13
|
+
}>;
|
|
14
|
+
type EventSummary = typeof EventSummarySchema.Type;
|
|
15
|
+
declare const TokenImageSchema: Schema.Struct<{
|
|
16
|
+
readonly large: Schema.optional<Schema.String>;
|
|
17
|
+
readonly small: Schema.optional<Schema.String>;
|
|
18
|
+
readonly thumb: Schema.optional<Schema.String>;
|
|
19
|
+
}>;
|
|
20
|
+
type TokenImage = typeof TokenImageSchema.Type;
|
|
21
|
+
declare const TopHolderSchema: Schema.Struct<{
|
|
22
|
+
readonly address: Schema.String;
|
|
23
|
+
readonly balance: Schema.Number;
|
|
24
|
+
readonly coingeckoLabel: Schema.optional<Schema.String>;
|
|
25
|
+
readonly entityLabel: Schema.optional<Schema.String>;
|
|
26
|
+
readonly name: Schema.optional<Schema.String>;
|
|
27
|
+
readonly rank: Schema.Number;
|
|
28
|
+
readonly sharePercentage: Schema.Number;
|
|
29
|
+
readonly type: Schema.Literals<readonly ["contract", "wallet"]>;
|
|
30
|
+
readonly valueUsd: Schema.Number;
|
|
31
|
+
}>;
|
|
32
|
+
type TopHolder = typeof TopHolderSchema.Type;
|
|
33
|
+
declare const TokenDetailsSchema: Schema.Struct<{
|
|
34
|
+
readonly athUsd: Schema.optional<Schema.Number>;
|
|
35
|
+
readonly currentPriceUsd: Schema.optional<Schema.Number>;
|
|
36
|
+
readonly decimals: Schema.optional<Schema.Number>;
|
|
37
|
+
readonly description: Schema.optional<Schema.String>;
|
|
38
|
+
readonly fullyDilutedValuationUsd: Schema.optional<Schema.Number>;
|
|
39
|
+
readonly image: Schema.optional<Schema.Struct<{
|
|
40
|
+
readonly large: Schema.optional<Schema.String>;
|
|
41
|
+
readonly small: Schema.optional<Schema.String>;
|
|
42
|
+
readonly thumb: Schema.optional<Schema.String>;
|
|
158
43
|
}>>;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
44
|
+
readonly marketCapRank: Schema.optional<Schema.Number>;
|
|
45
|
+
readonly marketCapUsd: Schema.optional<Schema.Number>;
|
|
46
|
+
readonly name: Schema.String;
|
|
47
|
+
readonly symbol: Schema.String;
|
|
48
|
+
readonly tokenType: Schema.Literals<readonly ["ERC20", "ERC721", "ERC1155"]>;
|
|
49
|
+
readonly topHolders: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
50
|
+
readonly address: Schema.String;
|
|
51
|
+
readonly balance: Schema.Number;
|
|
52
|
+
readonly coingeckoLabel: Schema.optional<Schema.String>;
|
|
53
|
+
readonly entityLabel: Schema.optional<Schema.String>;
|
|
54
|
+
readonly name: Schema.optional<Schema.String>;
|
|
55
|
+
readonly rank: Schema.Number;
|
|
56
|
+
readonly sharePercentage: Schema.Number;
|
|
57
|
+
readonly type: Schema.Literals<readonly ["contract", "wallet"]>;
|
|
58
|
+
readonly valueUsd: Schema.Number;
|
|
59
|
+
}>>>;
|
|
60
|
+
readonly totalSupply: Schema.optional<Schema.Number>;
|
|
61
|
+
readonly totalVolumeUsd: Schema.optional<Schema.Number>;
|
|
62
|
+
}>;
|
|
63
|
+
type TokenDetails = typeof TokenDetailsSchema.Type;
|
|
64
|
+
declare const AddressDetailsSchema: Schema.Struct<{
|
|
65
|
+
readonly address: Schema.String;
|
|
66
|
+
readonly constructorArgs: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
67
|
+
readonly deploymentBlockNumber: Schema.optional<Schema.Number>;
|
|
68
|
+
readonly deploymentTimestamp: Schema.optional<Schema.String>;
|
|
69
|
+
readonly deploymentTimestampUtc: Schema.optional<Schema.String>;
|
|
70
|
+
readonly deploymentTxHash: Schema.optional<Schema.String>;
|
|
71
|
+
readonly factory: Schema.optional<Schema.Struct<{
|
|
72
|
+
readonly name: Schema.String;
|
|
73
|
+
readonly address: Schema.String;
|
|
169
74
|
}>>;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
readonly deploymentBlockNumber
|
|
175
|
-
|
|
176
|
-
readonly
|
|
177
|
-
|
|
178
|
-
readonly
|
|
179
|
-
|
|
180
|
-
readonly
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
readonly
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
readonly
|
|
220
|
-
|
|
221
|
-
readonly
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
readonly
|
|
256
|
-
|
|
257
|
-
readonly
|
|
258
|
-
|
|
259
|
-
readonly
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
readonly
|
|
266
|
-
|
|
267
|
-
readonly
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
readonly
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
declare
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
readonly
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
readonly
|
|
310
|
-
|
|
311
|
-
readonly
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
declare
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
readonly contractAddress:
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
}>, never, {
|
|
357
|
-
readonly query: string;
|
|
358
|
-
} & {
|
|
359
|
-
readonly contractAddresses: readonly (string & effect_Brand13.Brand<"EvmAddress">)[];
|
|
360
|
-
} & {
|
|
361
|
-
readonly includeProxies?: boolean | undefined;
|
|
362
|
-
} & {
|
|
363
|
-
readonly returnAllCode?: boolean | undefined;
|
|
364
|
-
} & {
|
|
365
|
-
readonly patterns?: readonly string[] | undefined;
|
|
366
|
-
}, {}, {}>;
|
|
367
|
-
declare class GetContractCodeParams extends GetContractCodeParams_base {}
|
|
368
|
-
declare const GetContractCodeResponse_base: Schema.Class<GetContractCodeResponse, {
|
|
369
|
-
errorMessage: Schema.optional<typeof Schema.String>;
|
|
370
|
-
query: Schema.optional<typeof Schema.String>;
|
|
371
|
-
allSearchPatterns: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
372
|
-
codeSearchResults: Schema.optional<Schema.Array$<typeof ContractCodeSearchResult>>;
|
|
373
|
-
}, Schema.Struct.Encoded<{
|
|
374
|
-
errorMessage: Schema.optional<typeof Schema.String>;
|
|
375
|
-
query: Schema.optional<typeof Schema.String>;
|
|
376
|
-
allSearchPatterns: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
377
|
-
codeSearchResults: Schema.optional<Schema.Array$<typeof ContractCodeSearchResult>>;
|
|
378
|
-
}>, never, {
|
|
379
|
-
readonly errorMessage?: string | undefined;
|
|
380
|
-
} & {
|
|
381
|
-
readonly query?: string | undefined;
|
|
382
|
-
} & {
|
|
383
|
-
readonly allSearchPatterns?: readonly string[] | undefined;
|
|
384
|
-
} & {
|
|
385
|
-
readonly codeSearchResults?: readonly ContractCodeSearchResult[] | undefined;
|
|
386
|
-
}, {}, {}>;
|
|
387
|
-
declare class GetContractCodeResponse extends GetContractCodeResponse_base {}
|
|
388
|
-
declare const DiffVersionInfo_base: Schema.Class<DiffVersionInfo, {
|
|
389
|
-
versionNumber: typeof Schema.Number;
|
|
390
|
-
implementationAddress: typeof Schema.String;
|
|
391
|
-
blockNumber: typeof Schema.Number;
|
|
392
|
-
contractName: typeof Schema.String;
|
|
393
|
-
}, Schema.Struct.Encoded<{
|
|
394
|
-
versionNumber: typeof Schema.Number;
|
|
395
|
-
implementationAddress: typeof Schema.String;
|
|
396
|
-
blockNumber: typeof Schema.Number;
|
|
397
|
-
contractName: typeof Schema.String;
|
|
398
|
-
}>, never, {
|
|
399
|
-
readonly contractName: string;
|
|
400
|
-
} & {
|
|
401
|
-
readonly blockNumber: number;
|
|
402
|
-
} & {
|
|
403
|
-
readonly implementationAddress: string;
|
|
404
|
-
} & {
|
|
405
|
-
readonly versionNumber: number;
|
|
406
|
-
}, {}, {}>;
|
|
407
|
-
declare class DiffVersionInfo extends DiffVersionInfo_base {}
|
|
408
|
-
declare const DiffEntry_base: Schema.Class<DiffEntry, {
|
|
409
|
-
diff: typeof Schema.String;
|
|
410
|
-
version1Info: typeof DiffVersionInfo;
|
|
411
|
-
version2Info: typeof DiffVersionInfo;
|
|
412
|
-
}, Schema.Struct.Encoded<{
|
|
413
|
-
diff: typeof Schema.String;
|
|
414
|
-
version1Info: typeof DiffVersionInfo;
|
|
415
|
-
version2Info: typeof DiffVersionInfo;
|
|
416
|
-
}>, never, {
|
|
417
|
-
readonly diff: string;
|
|
418
|
-
} & {
|
|
419
|
-
readonly version1Info: DiffVersionInfo;
|
|
420
|
-
} & {
|
|
421
|
-
readonly version2Info: DiffVersionInfo;
|
|
422
|
-
}, {}, {}>;
|
|
423
|
-
declare class DiffEntry extends DiffEntry_base {}
|
|
424
|
-
declare const ContractDiff_base: Schema.Class<ContractDiff, {
|
|
425
|
-
errorMessage: Schema.optional<typeof Schema.String>;
|
|
426
|
-
diffs: Schema.optional<Schema.Array$<typeof DiffEntry>>;
|
|
427
|
-
contractAddress: Schema.optional<typeof Schema.String>;
|
|
428
|
-
blockchain: Schema.optional<typeof Schema.String>;
|
|
429
|
-
}, Schema.Struct.Encoded<{
|
|
430
|
-
errorMessage: Schema.optional<typeof Schema.String>;
|
|
431
|
-
diffs: Schema.optional<Schema.Array$<typeof DiffEntry>>;
|
|
432
|
-
contractAddress: Schema.optional<typeof Schema.String>;
|
|
433
|
-
blockchain: Schema.optional<typeof Schema.String>;
|
|
434
|
-
}>, never, {
|
|
435
|
-
readonly blockchain?: string | undefined;
|
|
436
|
-
} & {
|
|
437
|
-
readonly contractAddress?: string | undefined;
|
|
438
|
-
} & {
|
|
439
|
-
readonly errorMessage?: string | undefined;
|
|
440
|
-
} & {
|
|
441
|
-
readonly diffs?: readonly DiffEntry[] | undefined;
|
|
442
|
-
}, {}, {}>;
|
|
443
|
-
declare class ContractDiff extends ContractDiff_base {}
|
|
444
|
-
declare const DiffVersionsParams_base: Schema.Class<DiffVersionsParams, {
|
|
445
|
-
compareAllVersions: Schema.optional<typeof Schema.Boolean>;
|
|
446
|
-
}, Schema.Struct.Encoded<{
|
|
447
|
-
compareAllVersions: Schema.optional<typeof Schema.Boolean>;
|
|
448
|
-
}>, never, {
|
|
449
|
-
readonly compareAllVersions?: boolean | undefined;
|
|
450
|
-
}, {}, {}>;
|
|
451
|
-
declare class DiffVersionsParams extends DiffVersionsParams_base {}
|
|
75
|
+
}>;
|
|
76
|
+
type AddressDetails = typeof AddressDetailsSchema.Type;
|
|
77
|
+
declare const HistoricalImplementationSchema: Schema.Struct<{
|
|
78
|
+
readonly address: Schema.String;
|
|
79
|
+
readonly deploymentBlockNumber: Schema.optional<Schema.Number>;
|
|
80
|
+
readonly deploymentBlockTimestamp: Schema.optional<Schema.Number>;
|
|
81
|
+
readonly deploymentBlockTimestampUtc: Schema.optional<Schema.String>;
|
|
82
|
+
readonly deploymentTxHash: Schema.optional<Schema.String>;
|
|
83
|
+
readonly newEvents: Schema.optional<Schema.$Array<Schema.String>>;
|
|
84
|
+
readonly newFunctions: Schema.optional<Schema.$Array<Schema.String>>;
|
|
85
|
+
readonly versionNumber: Schema.Number;
|
|
86
|
+
}>;
|
|
87
|
+
type HistoricalImplementation = typeof HistoricalImplementationSchema.Type;
|
|
88
|
+
declare const ContractMetadataSchema: Schema.Struct<{
|
|
89
|
+
readonly abi: Schema.optional<Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
90
|
+
readonly addressDetails: Schema.optional<Schema.Struct<{
|
|
91
|
+
readonly address: Schema.String;
|
|
92
|
+
readonly constructorArgs: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
93
|
+
readonly deploymentBlockNumber: Schema.optional<Schema.Number>;
|
|
94
|
+
readonly deploymentTimestamp: Schema.optional<Schema.String>;
|
|
95
|
+
readonly deploymentTimestampUtc: Schema.optional<Schema.String>;
|
|
96
|
+
readonly deploymentTxHash: Schema.optional<Schema.String>;
|
|
97
|
+
readonly factory: Schema.optional<Schema.Struct<{
|
|
98
|
+
readonly name: Schema.String;
|
|
99
|
+
readonly address: Schema.String;
|
|
100
|
+
}>>;
|
|
101
|
+
}>>;
|
|
102
|
+
readonly contractName: Schema.optional<Schema.String>;
|
|
103
|
+
readonly contractSummary: Schema.optional<Schema.String>;
|
|
104
|
+
readonly errorMessage: Schema.optional<Schema.String>;
|
|
105
|
+
readonly eventSummaries: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
106
|
+
readonly name: Schema.String;
|
|
107
|
+
readonly summary: Schema.String;
|
|
108
|
+
}>>>;
|
|
109
|
+
readonly functionSummaries: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
110
|
+
readonly name: Schema.String;
|
|
111
|
+
readonly signature: Schema.String;
|
|
112
|
+
readonly summary: Schema.String;
|
|
113
|
+
}>>>;
|
|
114
|
+
readonly historicalImplementations: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
115
|
+
readonly address: Schema.String;
|
|
116
|
+
readonly deploymentBlockNumber: Schema.optional<Schema.Number>;
|
|
117
|
+
readonly deploymentBlockTimestamp: Schema.optional<Schema.Number>;
|
|
118
|
+
readonly deploymentBlockTimestampUtc: Schema.optional<Schema.String>;
|
|
119
|
+
readonly deploymentTxHash: Schema.optional<Schema.String>;
|
|
120
|
+
readonly newEvents: Schema.optional<Schema.$Array<Schema.String>>;
|
|
121
|
+
readonly newFunctions: Schema.optional<Schema.$Array<Schema.String>>;
|
|
122
|
+
readonly versionNumber: Schema.Number;
|
|
123
|
+
}>>>;
|
|
124
|
+
readonly proxyAbi: Schema.optional<Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
125
|
+
readonly signatureImplementationNames: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
126
|
+
readonly signatureImplementations: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
127
|
+
readonly tokenDetails: Schema.optional<Schema.Struct<{
|
|
128
|
+
readonly athUsd: Schema.optional<Schema.Number>;
|
|
129
|
+
readonly currentPriceUsd: Schema.optional<Schema.Number>;
|
|
130
|
+
readonly decimals: Schema.optional<Schema.Number>;
|
|
131
|
+
readonly description: Schema.optional<Schema.String>;
|
|
132
|
+
readonly fullyDilutedValuationUsd: Schema.optional<Schema.Number>;
|
|
133
|
+
readonly image: Schema.optional<Schema.Struct<{
|
|
134
|
+
readonly large: Schema.optional<Schema.String>;
|
|
135
|
+
readonly small: Schema.optional<Schema.String>;
|
|
136
|
+
readonly thumb: Schema.optional<Schema.String>;
|
|
137
|
+
}>>;
|
|
138
|
+
readonly marketCapRank: Schema.optional<Schema.Number>;
|
|
139
|
+
readonly marketCapUsd: Schema.optional<Schema.Number>;
|
|
140
|
+
readonly name: Schema.String;
|
|
141
|
+
readonly symbol: Schema.String;
|
|
142
|
+
readonly tokenType: Schema.Literals<readonly ["ERC20", "ERC721", "ERC1155"]>;
|
|
143
|
+
readonly topHolders: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
144
|
+
readonly address: Schema.String;
|
|
145
|
+
readonly balance: Schema.Number;
|
|
146
|
+
readonly coingeckoLabel: Schema.optional<Schema.String>;
|
|
147
|
+
readonly entityLabel: Schema.optional<Schema.String>;
|
|
148
|
+
readonly name: Schema.optional<Schema.String>;
|
|
149
|
+
readonly rank: Schema.Number;
|
|
150
|
+
readonly sharePercentage: Schema.Number;
|
|
151
|
+
readonly type: Schema.Literals<readonly ["contract", "wallet"]>;
|
|
152
|
+
readonly valueUsd: Schema.Number;
|
|
153
|
+
}>>>;
|
|
154
|
+
readonly totalSupply: Schema.optional<Schema.Number>;
|
|
155
|
+
readonly totalVolumeUsd: Schema.optional<Schema.Number>;
|
|
156
|
+
}>>;
|
|
157
|
+
}>;
|
|
158
|
+
type ContractMetadata = typeof ContractMetadataSchema.Type;
|
|
159
|
+
declare const ContractCodeMatchBlockSchema: Schema.Struct<{
|
|
160
|
+
readonly code: Schema.String;
|
|
161
|
+
readonly endLine: Schema.Number;
|
|
162
|
+
readonly fileName: Schema.String;
|
|
163
|
+
readonly numberOfMatches: Schema.Number;
|
|
164
|
+
readonly patterns: Schema.$Array<Schema.String>;
|
|
165
|
+
readonly startLine: Schema.Number;
|
|
166
|
+
}>;
|
|
167
|
+
type ContractCodeMatchBlock = typeof ContractCodeMatchBlockSchema.Type;
|
|
168
|
+
declare const ContractCodeSearchResultSchema: Schema.Struct<{
|
|
169
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
170
|
+
readonly code: Schema.optional<Schema.String>;
|
|
171
|
+
readonly contractAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
172
|
+
readonly contractName: Schema.String;
|
|
173
|
+
readonly matches: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
174
|
+
readonly code: Schema.String;
|
|
175
|
+
readonly endLine: Schema.Number;
|
|
176
|
+
readonly fileName: Schema.String;
|
|
177
|
+
readonly numberOfMatches: Schema.Number;
|
|
178
|
+
readonly patterns: Schema.$Array<Schema.String>;
|
|
179
|
+
readonly startLine: Schema.Number;
|
|
180
|
+
}>>>;
|
|
181
|
+
readonly proxyCode: Schema.optional<Schema.String>;
|
|
182
|
+
}>;
|
|
183
|
+
type ContractCodeSearchResult = typeof ContractCodeSearchResultSchema.Type;
|
|
184
|
+
declare const GetContractCodeParamsSchema: Schema.Struct<{
|
|
185
|
+
readonly contractAddresses: Schema.$Array<Schema.brand<Schema.String, "EvmAddress">>;
|
|
186
|
+
readonly includeProxies: Schema.optional<Schema.Boolean>;
|
|
187
|
+
readonly patterns: Schema.optional<Schema.$Array<Schema.String>>;
|
|
188
|
+
readonly query: Schema.String;
|
|
189
|
+
readonly returnAllCode: Schema.optional<Schema.Boolean>;
|
|
190
|
+
}>;
|
|
191
|
+
type GetContractCodeParams = typeof GetContractCodeParamsSchema.Type;
|
|
192
|
+
declare const GetContractCodeResponseSchema: Schema.Struct<{
|
|
193
|
+
readonly allSearchPatterns: Schema.optional<Schema.$Array<Schema.String>>;
|
|
194
|
+
readonly codeSearchResults: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
195
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
196
|
+
readonly code: Schema.optional<Schema.String>;
|
|
197
|
+
readonly contractAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
198
|
+
readonly contractName: Schema.String;
|
|
199
|
+
readonly matches: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
200
|
+
readonly code: Schema.String;
|
|
201
|
+
readonly endLine: Schema.Number;
|
|
202
|
+
readonly fileName: Schema.String;
|
|
203
|
+
readonly numberOfMatches: Schema.Number;
|
|
204
|
+
readonly patterns: Schema.$Array<Schema.String>;
|
|
205
|
+
readonly startLine: Schema.Number;
|
|
206
|
+
}>>>;
|
|
207
|
+
readonly proxyCode: Schema.optional<Schema.String>;
|
|
208
|
+
}>>>;
|
|
209
|
+
readonly errorMessage: Schema.optional<Schema.String>;
|
|
210
|
+
readonly query: Schema.optional<Schema.String>;
|
|
211
|
+
}>;
|
|
212
|
+
type GetContractCodeResponse = typeof GetContractCodeResponseSchema.Type;
|
|
213
|
+
declare const DiffVersionInfoSchema: Schema.Struct<{
|
|
214
|
+
readonly blockNumber: Schema.Number;
|
|
215
|
+
readonly contractName: Schema.String;
|
|
216
|
+
readonly implementationAddress: Schema.String;
|
|
217
|
+
readonly versionNumber: Schema.Number;
|
|
218
|
+
}>;
|
|
219
|
+
type DiffVersionInfo = typeof DiffVersionInfoSchema.Type;
|
|
220
|
+
declare const DiffEntrySchema: Schema.Struct<{
|
|
221
|
+
readonly diff: Schema.String;
|
|
222
|
+
readonly version1Info: Schema.Struct<{
|
|
223
|
+
readonly blockNumber: Schema.Number;
|
|
224
|
+
readonly contractName: Schema.String;
|
|
225
|
+
readonly implementationAddress: Schema.String;
|
|
226
|
+
readonly versionNumber: Schema.Number;
|
|
227
|
+
}>;
|
|
228
|
+
readonly version2Info: Schema.Struct<{
|
|
229
|
+
readonly blockNumber: Schema.Number;
|
|
230
|
+
readonly contractName: Schema.String;
|
|
231
|
+
readonly implementationAddress: Schema.String;
|
|
232
|
+
readonly versionNumber: Schema.Number;
|
|
233
|
+
}>;
|
|
234
|
+
}>;
|
|
235
|
+
type DiffEntry = typeof DiffEntrySchema.Type;
|
|
236
|
+
declare const ContractDiffSchema: Schema.Struct<{
|
|
237
|
+
readonly blockchain: Schema.optional<Schema.String>;
|
|
238
|
+
readonly contractAddress: Schema.optional<Schema.String>;
|
|
239
|
+
readonly diffs: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
240
|
+
readonly diff: Schema.String;
|
|
241
|
+
readonly version1Info: Schema.Struct<{
|
|
242
|
+
readonly blockNumber: Schema.Number;
|
|
243
|
+
readonly contractName: Schema.String;
|
|
244
|
+
readonly implementationAddress: Schema.String;
|
|
245
|
+
readonly versionNumber: Schema.Number;
|
|
246
|
+
}>;
|
|
247
|
+
readonly version2Info: Schema.Struct<{
|
|
248
|
+
readonly blockNumber: Schema.Number;
|
|
249
|
+
readonly contractName: Schema.String;
|
|
250
|
+
readonly implementationAddress: Schema.String;
|
|
251
|
+
readonly versionNumber: Schema.Number;
|
|
252
|
+
}>;
|
|
253
|
+
}>>>;
|
|
254
|
+
readonly errorMessage: Schema.optional<Schema.String>;
|
|
255
|
+
}>;
|
|
256
|
+
type ContractDiff = typeof ContractDiffSchema.Type;
|
|
257
|
+
declare const DiffVersionsParamsSchema: Schema.Struct<{
|
|
258
|
+
readonly compareAllVersions: Schema.optional<Schema.Boolean>;
|
|
259
|
+
}>;
|
|
260
|
+
type DiffVersionsParams = typeof DiffVersionsParamsSchema.Type;
|
|
452
261
|
//#endregion
|
|
453
|
-
export { AddressDetails, ContractCodeMatchBlock, ContractCodeSearchResult, ContractDiff, ContractMetadata, DiffEntry, DiffVersionInfo, DiffVersionsParams, EventSummary, FunctionSummary, GetContractCodeParams, GetContractCodeResponse, HistoricalImplementation, TokenDetails, TokenImage, TopHolder };
|
|
262
|
+
export { AddressDetails, AddressDetailsSchema, ContractCodeMatchBlock, ContractCodeMatchBlockSchema, ContractCodeSearchResult, ContractCodeSearchResultSchema, ContractDiff, ContractDiffSchema, ContractMetadata, ContractMetadataSchema, DiffEntry, DiffEntrySchema, DiffVersionInfo, DiffVersionInfoSchema, DiffVersionsParams, DiffVersionsParamsSchema, EventSummary, EventSummarySchema, FunctionSummary, FunctionSummarySchema, GetContractCodeParams, GetContractCodeParamsSchema, GetContractCodeResponse, GetContractCodeResponseSchema, HistoricalImplementation, HistoricalImplementationSchema, TokenDetails, TokenDetailsSchema, TokenImage, TokenImageSchema, TopHolder, TopHolderSchema };
|