@herd-labs/sdk 0.0.4 → 0.1.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.
Files changed (48) hide show
  1. package/dist/index.d.ts +14 -3
  2. package/dist/index.js +14 -3
  3. package/dist/src/live/AdaptersServiceLive.d.ts +2 -2
  4. package/dist/src/live/AgentSafesServiceLive.d.ts +9 -0
  5. package/dist/src/live/AgentSafesServiceLive.js +19 -0
  6. package/dist/src/live/AgentWalletsServiceLive.d.ts +9 -0
  7. package/dist/src/live/AgentWalletsServiceLive.js +18 -0
  8. package/dist/src/live/AgentWorkflowsServiceLive.d.ts +9 -0
  9. package/dist/src/live/AgentWorkflowsServiceLive.js +37 -0
  10. package/dist/src/live/AuthServiceLive.d.ts +2 -2
  11. package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
  12. package/dist/src/live/CodeBlocksServiceLive.d.ts +2 -2
  13. package/dist/src/live/CollectionsServiceLive.d.ts +2 -2
  14. package/dist/src/live/ContractsServiceLive.d.ts +2 -2
  15. package/dist/src/live/ContractsServiceLive.js +1 -6
  16. package/dist/src/live/DocsServiceLive.d.ts +2 -2
  17. package/dist/src/live/GroupsServiceLive.d.ts +9 -0
  18. package/dist/src/live/GroupsServiceLive.js +26 -0
  19. package/dist/src/live/HalServiceLive.d.ts +2 -2
  20. package/dist/src/live/TransactionsServiceLive.d.ts +2 -2
  21. package/dist/src/live/WalletsServiceLive.d.ts +2 -2
  22. package/dist/src/schemas/actions.d.ts +8 -8
  23. package/dist/src/schemas/agent-wallets.d.ts +226 -0
  24. package/dist/src/schemas/agent-wallets.js +68 -0
  25. package/dist/src/schemas/agent-workflows.d.ts +120 -0
  26. package/dist/src/schemas/agent-workflows.js +79 -0
  27. package/dist/src/schemas/auth.d.ts +15 -1
  28. package/dist/src/schemas/auth.js +4 -2
  29. package/dist/src/schemas/bookmarks.d.ts +23 -23
  30. package/dist/src/schemas/codeblocks.d.ts +2 -2
  31. package/dist/src/schemas/collections.d.ts +6 -6
  32. package/dist/src/schemas/contracts.d.ts +26 -239
  33. package/dist/src/schemas/contracts.js +1 -62
  34. package/dist/src/schemas/groups.d.ts +94 -0
  35. package/dist/src/schemas/groups.js +62 -0
  36. package/dist/src/schemas/hal.d.ts +23 -23
  37. package/dist/src/schemas/transactions.d.ts +85 -85
  38. package/dist/src/schemas/wallets.d.ts +60 -60
  39. package/dist/src/services/AgentSafesService.d.ts +14 -0
  40. package/dist/src/services/AgentSafesService.js +7 -0
  41. package/dist/src/services/AgentWalletsService.d.ts +13 -0
  42. package/dist/src/services/AgentWalletsService.js +7 -0
  43. package/dist/src/services/AgentWorkflowsService.d.ts +27 -0
  44. package/dist/src/services/AgentWorkflowsService.js +21 -0
  45. package/dist/src/services/ContractsService.d.ts +1 -2
  46. package/dist/src/services/GroupsService.d.ts +34 -0
  47. package/dist/src/services/GroupsService.js +14 -0
  48. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import * as effect_Brand4 from "effect/Brand";
2
+ import * as effect_Brand0 from "effect/Brand";
3
3
 
4
4
  //#region src/schemas/bookmarks.d.ts
5
5
  declare const BookmarkObjectType: Schema.Literal<["contract", "transaction", "wallet"]>;
@@ -24,18 +24,18 @@ declare const ContractBookmark_base: Schema.Class<ContractBookmark, {
24
24
  updatedAt: typeof Schema.String;
25
25
  }>, never, {
26
26
  readonly id: string;
27
- } & {
28
- readonly blockchain: string;
29
27
  } & {
30
28
  readonly contractAddress: string;
31
29
  } & {
32
- readonly contractName: string | null;
30
+ readonly blockchain: string;
33
31
  } & {
34
32
  readonly createdAt: string;
35
33
  } & {
36
34
  readonly updatedAt: string;
37
35
  } & {
38
36
  readonly userLabel: string | null;
37
+ } & {
38
+ readonly contractName: string | null;
39
39
  } & {
40
40
  readonly label: string | null;
41
41
  }, {}, {}>;
@@ -58,14 +58,14 @@ declare const TransactionBookmark_base: Schema.Class<TransactionBookmark, {
58
58
  readonly id: string;
59
59
  } & {
60
60
  readonly blockchain: string;
61
- } & {
62
- readonly transactionHash: string;
63
61
  } & {
64
62
  readonly createdAt: string;
65
63
  } & {
66
64
  readonly updatedAt: string;
67
65
  } & {
68
66
  readonly userLabel: string | null;
67
+ } & {
68
+ readonly transactionHash: string;
69
69
  }, {}, {}>;
70
70
  declare class TransactionBookmark extends TransactionBookmark_base {}
71
71
  declare const WalletBookmark_base: Schema.Class<WalletBookmark, {
@@ -82,14 +82,14 @@ declare const WalletBookmark_base: Schema.Class<WalletBookmark, {
82
82
  updatedAt: typeof Schema.String;
83
83
  }>, never, {
84
84
  readonly id: string;
85
- } & {
86
- readonly walletAddress: string;
87
85
  } & {
88
86
  readonly createdAt: string;
89
87
  } & {
90
88
  readonly updatedAt: string;
91
89
  } & {
92
90
  readonly userLabel: string | null;
91
+ } & {
92
+ readonly walletAddress: string;
93
93
  }, {}, {}>;
94
94
  declare class WalletBookmark extends WalletBookmark_base {}
95
95
  declare const BookmarksList_base: Schema.Class<BookmarksList, {
@@ -101,9 +101,9 @@ declare const BookmarksList_base: Schema.Class<BookmarksList, {
101
101
  transactions: Schema.Array$<typeof TransactionBookmark>;
102
102
  wallets: Schema.Array$<typeof WalletBookmark>;
103
103
  }>, never, {
104
- readonly transactions: readonly TransactionBookmark[];
105
- } & {
106
104
  readonly contracts: readonly ContractBookmark[];
105
+ } & {
106
+ readonly transactions: readonly TransactionBookmark[];
107
107
  } & {
108
108
  readonly wallets: readonly WalletBookmark[];
109
109
  }, {}, {}>;
@@ -139,10 +139,10 @@ declare const AddContractBookmarkParams_base: Schema.Class<AddContractBookmarkPa
139
139
  label: Schema.optional<typeof Schema.String>;
140
140
  }>, never, {
141
141
  readonly blockchain: "ethereum" | "base";
142
- } & {
143
- readonly address: string & effect_Brand4.Brand<"EvmAddress">;
144
142
  } & {
145
143
  readonly label?: string | undefined;
144
+ } & {
145
+ readonly address: string & effect_Brand0.Brand<"EvmAddress">;
146
146
  }, {}, {}>;
147
147
  declare class AddContractBookmarkParams extends AddContractBookmarkParams_base {}
148
148
  declare const AddTransactionBookmarkParams_base: Schema.Class<AddTransactionBookmarkParams, {
@@ -154,11 +154,11 @@ declare const AddTransactionBookmarkParams_base: Schema.Class<AddTransactionBook
154
154
  blockchain: Schema.Literal<["ethereum", "base"]>;
155
155
  label: Schema.optional<typeof Schema.String>;
156
156
  }>, never, {
157
- readonly txHash: string;
158
- } & {
159
157
  readonly blockchain: "ethereum" | "base";
160
158
  } & {
161
159
  readonly label?: string | undefined;
160
+ } & {
161
+ readonly txHash: string;
162
162
  }, {}, {}>;
163
163
  declare class AddTransactionBookmarkParams extends AddTransactionBookmarkParams_base {}
164
164
  declare const AddWalletBookmarkParams_base: Schema.Class<AddWalletBookmarkParams, {
@@ -168,9 +168,9 @@ declare const AddWalletBookmarkParams_base: Schema.Class<AddWalletBookmarkParams
168
168
  address: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
169
169
  label: Schema.optional<typeof Schema.String>;
170
170
  }>, never, {
171
- readonly address: string & effect_Brand4.Brand<"EvmAddress">;
172
- } & {
173
171
  readonly label?: string | undefined;
172
+ } & {
173
+ readonly address: string & effect_Brand0.Brand<"EvmAddress">;
174
174
  }, {}, {}>;
175
175
  declare class AddWalletBookmarkParams extends AddWalletBookmarkParams_base {}
176
176
  declare const UpdateBookmarkLabelParams_base: Schema.Class<UpdateBookmarkLabelParams, {
@@ -186,15 +186,15 @@ declare const UpdateBookmarkLabelParams_base: Schema.Class<UpdateBookmarkLabelPa
186
186
  blockchain: Schema.optional<Schema.Literal<["ethereum", "base"]>>;
187
187
  label: Schema.NullOr<typeof Schema.String>;
188
188
  }>, never, {
189
- readonly txHash?: string | undefined;
190
- } & {
191
189
  readonly blockchain?: "ethereum" | "base" | undefined;
192
- } & {
193
- readonly address?: string | undefined;
194
190
  } & {
195
191
  readonly label: string | null;
196
192
  } & {
197
193
  readonly objectType: "contract" | "transaction" | "wallet";
194
+ } & {
195
+ readonly address?: string | undefined;
196
+ } & {
197
+ readonly txHash?: string | undefined;
198
198
  }, {}, {}>;
199
199
  declare class UpdateBookmarkLabelParams extends UpdateBookmarkLabelParams_base {}
200
200
  declare const DeleteBookmarkParams_base: Schema.Class<DeleteBookmarkParams, {
@@ -208,13 +208,13 @@ declare const DeleteBookmarkParams_base: Schema.Class<DeleteBookmarkParams, {
208
208
  txHash: Schema.optional<typeof Schema.String>;
209
209
  blockchain: Schema.optional<Schema.Literal<["ethereum", "base"]>>;
210
210
  }>, never, {
211
- readonly txHash?: string | undefined;
212
- } & {
213
211
  readonly blockchain?: "ethereum" | "base" | undefined;
212
+ } & {
213
+ readonly objectType: "contract" | "transaction" | "wallet";
214
214
  } & {
215
215
  readonly address?: string | undefined;
216
216
  } & {
217
- readonly objectType: "contract" | "transaction" | "wallet";
217
+ readonly txHash?: string | undefined;
218
218
  }, {}, {}>;
219
219
  declare class DeleteBookmarkParams extends DeleteBookmarkParams_base {}
220
220
  //#endregion
@@ -99,12 +99,12 @@ declare const CodeBlocksSearchParams_base: Schema.Class<CodeBlocksSearchParams,
99
99
  readonly limit: number;
100
100
  } & {
101
101
  readonly scope: "user" | "public";
102
- } & {
103
- readonly cursor?: string | undefined;
104
102
  } & {
105
103
  readonly filters?: {
106
104
  readonly name?: string | undefined;
107
105
  } | undefined;
106
+ } & {
107
+ readonly cursor?: string | undefined;
108
108
  }, {}, {}>;
109
109
  declare class CodeBlocksSearchParams extends CodeBlocksSearchParams_base {}
110
110
  declare const CodeBlocksSearchResponse_base: Schema.Class<CodeBlocksSearchResponse, {
@@ -11,10 +11,10 @@ declare const CollectionSpecItem_base: Schema.Class<CollectionSpecItem, {
11
11
  expressionRef: typeof Schema.String;
12
12
  }>, never, {
13
13
  readonly id: string;
14
- } & {
15
- readonly expressionRef: string;
16
14
  } & {
17
15
  readonly type: "action" | "adapter";
16
+ } & {
17
+ readonly expressionRef: string;
18
18
  }, {}, {}>;
19
19
  declare class CollectionSpecItem extends CollectionSpecItem_base {}
20
20
  declare const CollectionSpec_base: Schema.Class<CollectionSpec, {
@@ -93,14 +93,14 @@ declare const CollectionsSearchParams_base: Schema.Class<CollectionsSearchParams
93
93
  }>>;
94
94
  }>, never, {
95
95
  readonly limit: number;
96
+ } & {
97
+ readonly offset: number;
96
98
  } & {
97
99
  readonly scope?: readonly ("yours" | "verified" | "all")[] | undefined;
98
100
  } & {
99
101
  readonly filters?: {
100
102
  readonly name?: string | undefined;
101
103
  } | undefined;
102
- } & {
103
- readonly offset: number;
104
104
  }, {}, {}>;
105
105
  declare class CollectionsSearchParams extends CollectionsSearchParams_base {}
106
106
  declare const CollectionsSearchResponse_base: Schema.Class<CollectionsSearchResponse, {
@@ -149,8 +149,8 @@ declare const CreateCollectionParams_base: Schema.Class<CreateCollectionParams,
149
149
  readonly spec: {
150
150
  readonly items: readonly {
151
151
  readonly id: string;
152
- readonly expressionRef: string;
153
152
  readonly type: "action" | "adapter";
153
+ readonly expressionRef: string;
154
154
  }[];
155
155
  readonly version: "1.0";
156
156
  };
@@ -230,8 +230,8 @@ declare const UpdateCollectionParams_base: Schema.Class<UpdateCollectionParams,
230
230
  readonly spec?: {
231
231
  readonly items: readonly {
232
232
  readonly id: string;
233
- readonly expressionRef: string;
234
233
  readonly type: "action" | "adapter";
234
+ readonly expressionRef: string;
235
235
  }[];
236
236
  readonly version: "1.0";
237
237
  } | undefined;
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import * as effect_Brand2 from "effect/Brand";
2
+ import * as effect_Brand1 from "effect/Brand";
3
3
 
4
4
  //#region src/schemas/contracts.d.ts
5
5
  declare const FunctionSummary_base: Schema.Class<FunctionSummary, {
@@ -67,21 +67,21 @@ declare const TopHolder_base: Schema.Class<TopHolder, {
67
67
  entityLabel: Schema.optional<typeof Schema.String>;
68
68
  coingeckoLabel: Schema.optional<typeof Schema.String>;
69
69
  }>, never, {
70
- readonly name?: string | undefined;
71
- } & {
72
70
  readonly address: string;
73
71
  } & {
74
- readonly valueUsd: number;
72
+ readonly name?: string | undefined;
73
+ } & {
74
+ readonly rank: number;
75
75
  } & {
76
76
  readonly balance: number;
77
77
  } & {
78
- readonly entityLabel?: string | undefined;
78
+ readonly valueUsd: number;
79
79
  } & {
80
- readonly type: "contract" | "wallet";
80
+ readonly sharePercentage: number;
81
81
  } & {
82
- readonly rank: number;
82
+ readonly type: "contract" | "wallet";
83
83
  } & {
84
- readonly sharePercentage: number;
84
+ readonly entityLabel?: string | undefined;
85
85
  } & {
86
86
  readonly coingeckoLabel?: string | undefined;
87
87
  }, {}, {}>;
@@ -122,10 +122,10 @@ declare const TokenDetails_base: Schema.Class<TokenDetails, {
122
122
  readonly name: string;
123
123
  } & {
124
124
  readonly description?: string | undefined;
125
- } & {
126
- readonly decimals?: number | undefined;
127
125
  } & {
128
126
  readonly tokenType: "ERC20" | "ERC721" | "ERC1155";
127
+ } & {
128
+ readonly decimals?: number | undefined;
129
129
  } & {
130
130
  readonly currentPriceUsd?: number | undefined;
131
131
  } & {
@@ -180,8 +180,8 @@ declare const AddressDetails_base: Schema.Class<AddressDetails, {
180
180
  readonly deploymentTxHash?: string | undefined;
181
181
  } & {
182
182
  readonly factory?: {
183
- readonly name: string;
184
183
  readonly address: string;
184
+ readonly name: string;
185
185
  } | undefined;
186
186
  } & {
187
187
  readonly constructorArgs?: {
@@ -301,6 +301,8 @@ declare const ContractCodeMatchBlock_base: Schema.Class<ContractCodeMatchBlock,
301
301
  patterns: Schema.Array$<typeof Schema.String>;
302
302
  }>, never, {
303
303
  readonly code: string;
304
+ } & {
305
+ readonly patterns: readonly string[];
304
306
  } & {
305
307
  readonly fileName: string;
306
308
  } & {
@@ -309,8 +311,6 @@ declare const ContractCodeMatchBlock_base: Schema.Class<ContractCodeMatchBlock,
309
311
  readonly endLine: number;
310
312
  } & {
311
313
  readonly numberOfMatches: number;
312
- } & {
313
- readonly patterns: readonly string[];
314
314
  }, {}, {}>;
315
315
  declare class ContractCodeMatchBlock extends ContractCodeMatchBlock_base {}
316
316
  declare const ContractCodeSearchResult_base: Schema.Class<ContractCodeSearchResult, {
@@ -328,13 +328,13 @@ declare const ContractCodeSearchResult_base: Schema.Class<ContractCodeSearchResu
328
328
  proxyCode: Schema.optional<typeof Schema.String>;
329
329
  matches: Schema.optional<Schema.Array$<typeof ContractCodeMatchBlock>>;
330
330
  }>, never, {
331
+ readonly contractAddress: string & effect_Brand1.Brand<"EvmAddress">;
332
+ } & {
331
333
  readonly blockchain: "ethereum" | "base";
332
334
  } & {
333
- readonly contractAddress: string & effect_Brand2.Brand<"EvmAddress">;
335
+ readonly contractName: string;
334
336
  } & {
335
337
  readonly code?: string | undefined;
336
- } & {
337
- readonly contractName: string;
338
338
  } & {
339
339
  readonly proxyCode?: string | undefined;
340
340
  } & {
@@ -354,15 +354,15 @@ declare const GetContractCodeParams_base: Schema.Class<GetContractCodeParams, {
354
354
  returnAllCode: Schema.optional<typeof Schema.Boolean>;
355
355
  patterns: Schema.optional<Schema.Array$<typeof Schema.String>>;
356
356
  }>, never, {
357
- readonly patterns?: readonly string[] | undefined;
358
- } & {
359
357
  readonly query: string;
360
358
  } & {
361
- readonly contractAddresses: readonly (string & effect_Brand2.Brand<"EvmAddress">)[];
359
+ readonly contractAddresses: readonly (string & effect_Brand1.Brand<"EvmAddress">)[];
362
360
  } & {
363
361
  readonly includeProxies?: boolean | undefined;
364
362
  } & {
365
363
  readonly returnAllCode?: boolean | undefined;
364
+ } & {
365
+ readonly patterns?: readonly string[] | undefined;
366
366
  }, {}, {}>;
367
367
  declare class GetContractCodeParams extends GetContractCodeParams_base {}
368
368
  declare const GetContractCodeResponse_base: Schema.Class<GetContractCodeResponse, {
@@ -385,219 +385,6 @@ declare const GetContractCodeResponse_base: Schema.Class<GetContractCodeResponse
385
385
  readonly codeSearchResults?: readonly ContractCodeSearchResult[] | undefined;
386
386
  }, {}, {}>;
387
387
  declare class GetContractCodeResponse extends GetContractCodeResponse_base {}
388
- declare const RoleTimelock_base: Schema.Class<RoleTimelock, {
389
- submittedByRole: typeof Schema.String;
390
- executableBy: Schema.Literal<["role", "anyone"]>;
391
- submitFunctionName: typeof Schema.String;
392
- duration: Schema.optional<Schema.Struct<{
393
- value: typeof Schema.Number;
394
- unit: Schema.Literal<["seconds", "blocks"]>;
395
- }>>;
396
- }, Schema.Struct.Encoded<{
397
- submittedByRole: typeof Schema.String;
398
- executableBy: Schema.Literal<["role", "anyone"]>;
399
- submitFunctionName: typeof Schema.String;
400
- duration: Schema.optional<Schema.Struct<{
401
- value: typeof Schema.Number;
402
- unit: Schema.Literal<["seconds", "blocks"]>;
403
- }>>;
404
- }>, never, {
405
- readonly submittedByRole: string;
406
- } & {
407
- readonly submitFunctionName: string;
408
- } & {
409
- readonly executableBy: "role" | "anyone";
410
- } & {
411
- readonly duration?: {
412
- readonly value: number;
413
- readonly unit: "seconds" | "blocks";
414
- } | undefined;
415
- }, {}, {}>;
416
- declare class RoleTimelock extends RoleTimelock_base {}
417
- declare const RoleFunction_base: Schema.Class<RoleFunction, {
418
- name: typeof Schema.String;
419
- isTimelockSubmitter: Schema.optional<typeof Schema.Boolean>;
420
- timelock: Schema.optional<typeof RoleTimelock>;
421
- }, Schema.Struct.Encoded<{
422
- name: typeof Schema.String;
423
- isTimelockSubmitter: Schema.optional<typeof Schema.Boolean>;
424
- timelock: Schema.optional<typeof RoleTimelock>;
425
- }>, never, {
426
- readonly name: string;
427
- } & {
428
- readonly isTimelockSubmitter?: boolean | undefined;
429
- } & {
430
- readonly timelock?: RoleTimelock | undefined;
431
- }, {}, {}>;
432
- declare class RoleFunction extends RoleFunction_base {}
433
- declare const TokenBalance_base: Schema.Class<TokenBalance, {
434
- tokenAddress: typeof Schema.String;
435
- tokenStandard: Schema.Literal<["erc20", "erc721", "erc1155"]>;
436
- symbol: typeof Schema.String;
437
- name: typeof Schema.String;
438
- }, Schema.Struct.Encoded<{
439
- tokenAddress: typeof Schema.String;
440
- tokenStandard: Schema.Literal<["erc20", "erc721", "erc1155"]>;
441
- symbol: typeof Schema.String;
442
- name: typeof Schema.String;
443
- }>, never, {
444
- readonly symbol: string;
445
- } & {
446
- readonly name: string;
447
- } & {
448
- readonly tokenAddress: string;
449
- } & {
450
- readonly tokenStandard: "erc20" | "erc721" | "erc1155";
451
- }, {}, {}>;
452
- declare class TokenBalance extends TokenBalance_base {}
453
- declare const Role_base: Schema.Class<Role, {
454
- name: typeof Schema.String;
455
- modifier: Schema.optional<typeof Schema.String>;
456
- roleType: Schema.optional<Schema.Literal<["access-control", "gate"]>>;
457
- valueStorageType: Schema.optional<Schema.Literal<["constant", "immutable", "variable", "mapping", "unknown"]>>;
458
- administeredBy: Schema.optional<Schema.Array$<typeof Schema.String>>;
459
- functions: Schema.Array$<typeof RoleFunction>;
460
- holderVerificationFunctionSignatures: Schema.optional<Schema.Array$<typeof Schema.String>>;
461
- anyAddress: Schema.optional<typeof Schema.Boolean>;
462
- onOtherContract: Schema.optional<typeof Schema.String>;
463
- tokenBalance: Schema.optional<typeof TokenBalance>;
464
- holders: Schema.optional<Schema.Array$<typeof Schema.String>>;
465
- totalHistoricalHolderCount: Schema.optional<typeof Schema.Number>;
466
- }, Schema.Struct.Encoded<{
467
- name: typeof Schema.String;
468
- modifier: Schema.optional<typeof Schema.String>;
469
- roleType: Schema.optional<Schema.Literal<["access-control", "gate"]>>;
470
- valueStorageType: Schema.optional<Schema.Literal<["constant", "immutable", "variable", "mapping", "unknown"]>>;
471
- administeredBy: Schema.optional<Schema.Array$<typeof Schema.String>>;
472
- functions: Schema.Array$<typeof RoleFunction>;
473
- holderVerificationFunctionSignatures: Schema.optional<Schema.Array$<typeof Schema.String>>;
474
- anyAddress: Schema.optional<typeof Schema.Boolean>;
475
- onOtherContract: Schema.optional<typeof Schema.String>;
476
- tokenBalance: Schema.optional<typeof TokenBalance>;
477
- holders: Schema.optional<Schema.Array$<typeof Schema.String>>;
478
- totalHistoricalHolderCount: Schema.optional<typeof Schema.Number>;
479
- }>, never, {
480
- readonly name: string;
481
- } & {
482
- readonly functions: readonly RoleFunction[];
483
- } & {
484
- readonly modifier?: string | undefined;
485
- } & {
486
- readonly roleType?: "access-control" | "gate" | undefined;
487
- } & {
488
- readonly valueStorageType?: "constant" | "immutable" | "variable" | "mapping" | "unknown" | undefined;
489
- } & {
490
- readonly administeredBy?: readonly string[] | undefined;
491
- } & {
492
- readonly holderVerificationFunctionSignatures?: readonly string[] | undefined;
493
- } & {
494
- readonly anyAddress?: boolean | undefined;
495
- } & {
496
- readonly onOtherContract?: string | undefined;
497
- } & {
498
- readonly tokenBalance?: TokenBalance | undefined;
499
- } & {
500
- readonly holders?: readonly string[] | undefined;
501
- } & {
502
- readonly totalHistoricalHolderCount?: number | undefined;
503
- }, {}, {}>;
504
- declare class Role extends Role_base {}
505
- declare const RolesNodeMultisigDetails_base: Schema.Class<RolesNodeMultisigDetails, {
506
- type: Schema.Literal<["multisig", "aragon-multisig"]>;
507
- dao: Schema.optional<typeof Schema.String>;
508
- onlyListed: Schema.optional<typeof Schema.Boolean>;
509
- threshold: typeof Schema.Number;
510
- signerCount: typeof Schema.Number;
511
- }, Schema.Struct.Encoded<{
512
- type: Schema.Literal<["multisig", "aragon-multisig"]>;
513
- dao: Schema.optional<typeof Schema.String>;
514
- onlyListed: Schema.optional<typeof Schema.Boolean>;
515
- threshold: typeof Schema.Number;
516
- signerCount: typeof Schema.Number;
517
- }>, never, {
518
- readonly threshold: number;
519
- } & {
520
- readonly type: "multisig" | "aragon-multisig";
521
- } & {
522
- readonly signerCount: number;
523
- } & {
524
- readonly dao?: string | undefined;
525
- } & {
526
- readonly onlyListed?: boolean | undefined;
527
- }, {}, {}>;
528
- declare class RolesNodeMultisigDetails extends RolesNodeMultisigDetails_base {}
529
- declare const RolesNode_base: Schema.Class<RolesNode, {
530
- address: typeof Schema.String;
531
- label: Schema.optional<typeof Schema.String>;
532
- contractName: Schema.optional<typeof Schema.String>;
533
- tokenSymbol: Schema.optional<typeof Schema.String>;
534
- nodeType: Schema.Literal<["contract", "wallet", "safe", "unknown", "tokenBalance"]>;
535
- isVerified: Schema.optional<Schema.NullOr<typeof Schema.Boolean>>;
536
- isPausable: Schema.optional<Schema.NullOr<typeof Schema.Boolean>>;
537
- isUpgradeable: Schema.optional<Schema.NullOr<typeof Schema.Boolean>>;
538
- tokenBalance: Schema.optional<typeof TokenBalance>;
539
- roles: Schema.optional<Schema.Array$<typeof Role>>;
540
- multisigDetails: Schema.optional<typeof RolesNodeMultisigDetails>;
541
- processState: Schema.optional<Schema.Literal<["processed", "skipped", "failed", "max_depth"]>>;
542
- nodeDepth: Schema.optional<typeof Schema.Number>;
543
- }, Schema.Struct.Encoded<{
544
- address: typeof Schema.String;
545
- label: Schema.optional<typeof Schema.String>;
546
- contractName: Schema.optional<typeof Schema.String>;
547
- tokenSymbol: Schema.optional<typeof Schema.String>;
548
- nodeType: Schema.Literal<["contract", "wallet", "safe", "unknown", "tokenBalance"]>;
549
- isVerified: Schema.optional<Schema.NullOr<typeof Schema.Boolean>>;
550
- isPausable: Schema.optional<Schema.NullOr<typeof Schema.Boolean>>;
551
- isUpgradeable: Schema.optional<Schema.NullOr<typeof Schema.Boolean>>;
552
- tokenBalance: Schema.optional<typeof TokenBalance>;
553
- roles: Schema.optional<Schema.Array$<typeof Role>>;
554
- multisigDetails: Schema.optional<typeof RolesNodeMultisigDetails>;
555
- processState: Schema.optional<Schema.Literal<["processed", "skipped", "failed", "max_depth"]>>;
556
- nodeDepth: Schema.optional<typeof Schema.Number>;
557
- }>, never, {
558
- readonly address: string;
559
- } & {
560
- readonly contractName?: string | undefined;
561
- } & {
562
- readonly multisigDetails?: RolesNodeMultisigDetails | undefined;
563
- } & {
564
- readonly tokenSymbol?: string | undefined;
565
- } & {
566
- readonly label?: string | undefined;
567
- } & {
568
- readonly tokenBalance?: TokenBalance | undefined;
569
- } & {
570
- readonly nodeType: "contract" | "wallet" | "unknown" | "tokenBalance" | "safe";
571
- } & {
572
- readonly isVerified?: boolean | null | undefined;
573
- } & {
574
- readonly isPausable?: boolean | null | undefined;
575
- } & {
576
- readonly isUpgradeable?: boolean | null | undefined;
577
- } & {
578
- readonly roles?: readonly Role[] | undefined;
579
- } & {
580
- readonly processState?: "failed" | "processed" | "skipped" | "max_depth" | undefined;
581
- } & {
582
- readonly nodeDepth?: number | undefined;
583
- }, {}, {}>;
584
- declare class RolesNode extends RolesNode_base {}
585
- declare const RolesTopology_base: Schema.Class<RolesTopology, {
586
- roots: Schema.Array$<typeof Schema.String>;
587
- resolvedAt: typeof Schema.String;
588
- nodes: Schema.Array$<typeof RolesNode>;
589
- }, Schema.Struct.Encoded<{
590
- roots: Schema.Array$<typeof Schema.String>;
591
- resolvedAt: typeof Schema.String;
592
- nodes: Schema.Array$<typeof RolesNode>;
593
- }>, never, {
594
- readonly resolvedAt: string;
595
- } & {
596
- readonly roots: readonly string[];
597
- } & {
598
- readonly nodes: readonly RolesNode[];
599
- }, {}, {}>;
600
- declare class RolesTopology extends RolesTopology_base {}
601
388
  declare const DiffVersionInfo_base: Schema.Class<DiffVersionInfo, {
602
389
  versionNumber: typeof Schema.Number;
603
390
  implementationAddress: typeof Schema.String;
@@ -609,13 +396,13 @@ declare const DiffVersionInfo_base: Schema.Class<DiffVersionInfo, {
609
396
  blockNumber: typeof Schema.Number;
610
397
  contractName: typeof Schema.String;
611
398
  }>, never, {
612
- readonly blockNumber: number;
613
- } & {
614
- readonly implementationAddress: string;
615
- } & {
616
399
  readonly contractName: string;
617
400
  } & {
618
401
  readonly versionNumber: number;
402
+ } & {
403
+ readonly implementationAddress: string;
404
+ } & {
405
+ readonly blockNumber: number;
619
406
  }, {}, {}>;
620
407
  declare class DiffVersionInfo extends DiffVersionInfo_base {}
621
408
  declare const DiffEntry_base: Schema.Class<DiffEntry, {
@@ -645,9 +432,9 @@ declare const ContractDiff_base: Schema.Class<ContractDiff, {
645
432
  contractAddress: Schema.optional<typeof Schema.String>;
646
433
  blockchain: Schema.optional<typeof Schema.String>;
647
434
  }>, never, {
648
- readonly blockchain?: string | undefined;
649
- } & {
650
435
  readonly contractAddress?: string | undefined;
436
+ } & {
437
+ readonly blockchain?: string | undefined;
651
438
  } & {
652
439
  readonly errorMessage?: string | undefined;
653
440
  } & {
@@ -663,4 +450,4 @@ declare const DiffVersionsParams_base: Schema.Class<DiffVersionsParams, {
663
450
  }, {}, {}>;
664
451
  declare class DiffVersionsParams extends DiffVersionsParams_base {}
665
452
  //#endregion
666
- export { AddressDetails, ContractCodeMatchBlock, ContractCodeSearchResult, ContractDiff, ContractMetadata, DiffEntry, DiffVersionInfo, DiffVersionsParams, EventSummary, FunctionSummary, GetContractCodeParams, GetContractCodeResponse, HistoricalImplementation, Role, RoleFunction, RoleTimelock, RolesNode, RolesNodeMultisigDetails, RolesTopology, TokenBalance, TokenDetails, TokenImage, TopHolder };
453
+ export { AddressDetails, ContractCodeMatchBlock, ContractCodeSearchResult, ContractDiff, ContractMetadata, DiffEntry, DiffVersionInfo, DiffVersionsParams, EventSummary, FunctionSummary, GetContractCodeParams, GetContractCodeResponse, HistoricalImplementation, TokenDetails, TokenImage, TopHolder };
@@ -123,67 +123,6 @@ var GetContractCodeResponse = class extends Schema.Class("GetContractCodeRespons
123
123
  allSearchPatterns: Schema.optional(Schema.Array(Schema.String)),
124
124
  codeSearchResults: Schema.optional(Schema.Array(ContractCodeSearchResult))
125
125
  }) {};
126
- var RoleTimelock = class extends Schema.Class("RoleTimelock")({
127
- submittedByRole: Schema.String,
128
- executableBy: Schema.Literal("role", "anyone"),
129
- submitFunctionName: Schema.String,
130
- duration: Schema.optional(Schema.Struct({
131
- value: Schema.Number,
132
- unit: Schema.Literal("seconds", "blocks")
133
- }))
134
- }) {};
135
- var RoleFunction = class extends Schema.Class("RoleFunction")({
136
- name: Schema.String,
137
- isTimelockSubmitter: Schema.optional(Schema.Boolean),
138
- timelock: Schema.optional(RoleTimelock)
139
- }) {};
140
- var TokenBalance = class extends Schema.Class("TokenBalance")({
141
- tokenAddress: Schema.String,
142
- tokenStandard: Schema.Literal("erc20", "erc721", "erc1155"),
143
- symbol: Schema.String,
144
- name: Schema.String
145
- }) {};
146
- var Role = class extends Schema.Class("Role")({
147
- name: Schema.String,
148
- modifier: Schema.optional(Schema.String),
149
- roleType: Schema.optional(Schema.Literal("access-control", "gate")),
150
- valueStorageType: Schema.optional(Schema.Literal("constant", "immutable", "variable", "mapping", "unknown")),
151
- administeredBy: Schema.optional(Schema.Array(Schema.String)),
152
- functions: Schema.Array(RoleFunction),
153
- holderVerificationFunctionSignatures: Schema.optional(Schema.Array(Schema.String)),
154
- anyAddress: Schema.optional(Schema.Boolean),
155
- onOtherContract: Schema.optional(Schema.String),
156
- tokenBalance: Schema.optional(TokenBalance),
157
- holders: Schema.optional(Schema.Array(Schema.String)),
158
- totalHistoricalHolderCount: Schema.optional(Schema.Number)
159
- }) {};
160
- var RolesNodeMultisigDetails = class extends Schema.Class("RolesNodeMultisigDetails")({
161
- type: Schema.Literal("multisig", "aragon-multisig"),
162
- dao: Schema.optional(Schema.String),
163
- onlyListed: Schema.optional(Schema.Boolean),
164
- threshold: Schema.Number,
165
- signerCount: Schema.Number
166
- }) {};
167
- var RolesNode = class extends Schema.Class("RolesNode")({
168
- address: Schema.String,
169
- label: Schema.optional(Schema.String),
170
- contractName: Schema.optional(Schema.String),
171
- tokenSymbol: Schema.optional(Schema.String),
172
- nodeType: Schema.Literal("contract", "wallet", "safe", "unknown", "tokenBalance"),
173
- isVerified: Schema.optional(Schema.NullOr(Schema.Boolean)),
174
- isPausable: Schema.optional(Schema.NullOr(Schema.Boolean)),
175
- isUpgradeable: Schema.optional(Schema.NullOr(Schema.Boolean)),
176
- tokenBalance: Schema.optional(TokenBalance),
177
- roles: Schema.optional(Schema.Array(Role)),
178
- multisigDetails: Schema.optional(RolesNodeMultisigDetails),
179
- processState: Schema.optional(Schema.Literal("processed", "skipped", "failed", "max_depth")),
180
- nodeDepth: Schema.optional(Schema.Number)
181
- }) {};
182
- var RolesTopology = class extends Schema.Class("RolesTopology")({
183
- roots: Schema.Array(Schema.String),
184
- resolvedAt: Schema.String,
185
- nodes: Schema.Array(RolesNode)
186
- }) {};
187
126
  var DiffVersionInfo = class extends Schema.Class("DiffVersionInfo")({
188
127
  versionNumber: Schema.Number,
189
128
  implementationAddress: Schema.String,
@@ -204,4 +143,4 @@ var ContractDiff = class extends Schema.Class("ContractDiff")({
204
143
  var DiffVersionsParams = class extends Schema.Class("DiffVersionsParams")({ compareAllVersions: Schema.optional(Schema.Boolean) }) {};
205
144
 
206
145
  //#endregion
207
- export { AddressDetails, ContractCodeMatchBlock, ContractCodeSearchResult, ContractDiff, ContractMetadata, DiffEntry, DiffVersionInfo, DiffVersionsParams, EventSummary, FunctionSummary, GetContractCodeParams, GetContractCodeResponse, HistoricalImplementation, Role, RoleFunction, RoleTimelock, RolesNode, RolesNodeMultisigDetails, RolesTopology, TokenBalance, TokenDetails, TokenImage, TopHolder };
146
+ export { AddressDetails, ContractCodeMatchBlock, ContractCodeSearchResult, ContractDiff, ContractMetadata, DiffEntry, DiffVersionInfo, DiffVersionsParams, EventSummary, FunctionSummary, GetContractCodeParams, GetContractCodeResponse, HistoricalImplementation, TokenDetails, TokenImage, TopHolder };