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