@herd-labs/sdk 0.0.4 → 0.0.5
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 +14 -3
- package/dist/index.js +14 -3
- package/dist/src/live/AgentSafesServiceLive.d.ts +9 -0
- package/dist/src/live/AgentSafesServiceLive.js +19 -0
- package/dist/src/live/AgentWalletsServiceLive.d.ts +9 -0
- package/dist/src/live/AgentWalletsServiceLive.js +18 -0
- package/dist/src/live/AgentWorkflowsServiceLive.d.ts +9 -0
- package/dist/src/live/AgentWorkflowsServiceLive.js +33 -0
- package/dist/src/live/AuthServiceLive.d.ts +2 -2
- package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
- package/dist/src/live/CodeBlocksServiceLive.d.ts +2 -2
- package/dist/src/live/ContractsServiceLive.d.ts +2 -2
- package/dist/src/live/ContractsServiceLive.js +1 -6
- package/dist/src/live/DocsServiceLive.d.ts +2 -2
- package/dist/src/live/GroupsServiceLive.d.ts +9 -0
- package/dist/src/live/GroupsServiceLive.js +26 -0
- package/dist/src/live/HalServiceLive.d.ts +2 -2
- package/dist/src/live/TransactionsServiceLive.d.ts +2 -2
- package/dist/src/live/WalletsServiceLive.d.ts +2 -2
- package/dist/src/schemas/actions.d.ts +9 -9
- package/dist/src/schemas/agent-wallets.d.ts +226 -0
- package/dist/src/schemas/agent-wallets.js +68 -0
- package/dist/src/schemas/agent-workflows.d.ts +245 -0
- package/dist/src/schemas/agent-workflows.js +72 -0
- package/dist/src/schemas/auth.d.ts +15 -1
- package/dist/src/schemas/auth.js +4 -2
- package/dist/src/schemas/bookmarks.d.ts +5 -5
- package/dist/src/schemas/codeblocks.d.ts +5 -5
- package/dist/src/schemas/collections.d.ts +1 -1
- package/dist/src/schemas/contracts.d.ts +19 -232
- package/dist/src/schemas/contracts.js +1 -62
- package/dist/src/schemas/groups.d.ts +94 -0
- package/dist/src/schemas/groups.js +62 -0
- package/dist/src/schemas/hal.d.ts +9 -9
- package/dist/src/schemas/transactions.d.ts +86 -86
- package/dist/src/schemas/wallets.d.ts +50 -50
- package/dist/src/services/AgentSafesService.d.ts +14 -0
- package/dist/src/services/AgentSafesService.js +7 -0
- package/dist/src/services/AgentWalletsService.d.ts +13 -0
- package/dist/src/services/AgentWalletsService.js +7 -0
- package/dist/src/services/AgentWorkflowsService.d.ts +26 -0
- package/dist/src/services/AgentWorkflowsService.js +21 -0
- package/dist/src/services/ContractsService.d.ts +1 -2
- package/dist/src/services/GroupsService.d.ts +34 -0
- package/dist/src/services/GroupsService.js +14 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import * as
|
|
2
|
+
import * as effect_Brand13 from "effect/Brand";
|
|
3
3
|
|
|
4
4
|
//#region src/schemas/bookmarks.d.ts
|
|
5
5
|
declare const BookmarkObjectType: Schema.Literal<["contract", "transaction", "wallet"]>;
|
|
@@ -140,7 +140,7 @@ declare const AddContractBookmarkParams_base: Schema.Class<AddContractBookmarkPa
|
|
|
140
140
|
}>, never, {
|
|
141
141
|
readonly blockchain: "ethereum" | "base";
|
|
142
142
|
} & {
|
|
143
|
-
readonly address: string &
|
|
143
|
+
readonly address: string & effect_Brand13.Brand<"EvmAddress">;
|
|
144
144
|
} & {
|
|
145
145
|
readonly label?: string | undefined;
|
|
146
146
|
}, {}, {}>;
|
|
@@ -168,7 +168,7 @@ 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 &
|
|
171
|
+
readonly address: string & effect_Brand13.Brand<"EvmAddress">;
|
|
172
172
|
} & {
|
|
173
173
|
readonly label?: string | undefined;
|
|
174
174
|
}, {}, {}>;
|
|
@@ -194,7 +194,7 @@ declare const UpdateBookmarkLabelParams_base: Schema.Class<UpdateBookmarkLabelPa
|
|
|
194
194
|
} & {
|
|
195
195
|
readonly label: string | null;
|
|
196
196
|
} & {
|
|
197
|
-
readonly objectType: "contract" | "
|
|
197
|
+
readonly objectType: "contract" | "wallet" | "transaction";
|
|
198
198
|
}, {}, {}>;
|
|
199
199
|
declare class UpdateBookmarkLabelParams extends UpdateBookmarkLabelParams_base {}
|
|
200
200
|
declare const DeleteBookmarkParams_base: Schema.Class<DeleteBookmarkParams, {
|
|
@@ -214,7 +214,7 @@ declare const DeleteBookmarkParams_base: Schema.Class<DeleteBookmarkParams, {
|
|
|
214
214
|
} & {
|
|
215
215
|
readonly address?: string | undefined;
|
|
216
216
|
} & {
|
|
217
|
-
readonly objectType: "contract" | "
|
|
217
|
+
readonly objectType: "contract" | "wallet" | "transaction";
|
|
218
218
|
}, {}, {}>;
|
|
219
219
|
declare class DeleteBookmarkParams extends DeleteBookmarkParams_base {}
|
|
220
220
|
//#endregion
|
|
@@ -23,14 +23,14 @@ declare const CodeBlockCode_base: Schema.Class<CodeBlockCode, {
|
|
|
23
23
|
readonly name: string;
|
|
24
24
|
} & {
|
|
25
25
|
readonly intent: string;
|
|
26
|
-
} & {
|
|
27
|
-
readonly publishedAt: string | null;
|
|
28
26
|
} & {
|
|
29
27
|
readonly code: string;
|
|
30
28
|
} & {
|
|
31
29
|
readonly valTownFileUrl: string;
|
|
32
30
|
} & {
|
|
33
31
|
readonly arguments?: unknown;
|
|
32
|
+
} & {
|
|
33
|
+
readonly publishedAt: string | null;
|
|
34
34
|
}, {}, {}>;
|
|
35
35
|
declare class CodeBlockCode extends CodeBlockCode_base {}
|
|
36
36
|
declare const CodeBlockVersion_base: Schema.Class<CodeBlockVersion, {
|
|
@@ -204,8 +204,8 @@ declare const CodeBlockExecuteResponse_base: Schema.Class<CodeBlockExecuteRespon
|
|
|
204
204
|
} & {
|
|
205
205
|
readonly error?: {
|
|
206
206
|
readonly message: string;
|
|
207
|
-
readonly body?: unknown;
|
|
208
207
|
readonly status?: number | undefined;
|
|
208
|
+
readonly body?: unknown;
|
|
209
209
|
} | undefined;
|
|
210
210
|
} & {
|
|
211
211
|
readonly logs?: readonly CodeBlockLogEntry[] | undefined;
|
|
@@ -263,12 +263,12 @@ declare const CreateCodeVersionResponse_base: Schema.Class<CreateCodeVersionResp
|
|
|
263
263
|
readonly name: string;
|
|
264
264
|
} & {
|
|
265
265
|
readonly intent: string;
|
|
266
|
-
} & {
|
|
267
|
-
readonly publishedAt: string | null;
|
|
268
266
|
} & {
|
|
269
267
|
readonly code: string;
|
|
270
268
|
} & {
|
|
271
269
|
readonly valTownFileUrl: string;
|
|
270
|
+
} & {
|
|
271
|
+
readonly publishedAt: string | null;
|
|
272
272
|
}, {}, {}>;
|
|
273
273
|
declare class CreateCodeVersionResponse extends CreateCodeVersionResponse_base {}
|
|
274
274
|
declare const UpdateCodeBlockMetadataParams_base: Schema.Class<UpdateCodeBlockMetadataParams, {
|
|
@@ -94,7 +94,7 @@ declare const CollectionsSearchParams_base: Schema.Class<CollectionsSearchParams
|
|
|
94
94
|
}>, never, {
|
|
95
95
|
readonly limit: number;
|
|
96
96
|
} & {
|
|
97
|
-
readonly scope?: readonly ("yours" | "
|
|
97
|
+
readonly scope?: readonly ("yours" | "all" | "verified")[] | undefined;
|
|
98
98
|
} & {
|
|
99
99
|
readonly filters?: {
|
|
100
100
|
readonly name?: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import * as
|
|
2
|
+
import * as effect_Brand0 from "effect/Brand";
|
|
3
3
|
|
|
4
4
|
//#region src/schemas/contracts.d.ts
|
|
5
5
|
declare const FunctionSummary_base: Schema.Class<FunctionSummary, {
|
|
@@ -70,18 +70,18 @@ declare const TopHolder_base: Schema.Class<TopHolder, {
|
|
|
70
70
|
readonly name?: string | undefined;
|
|
71
71
|
} & {
|
|
72
72
|
readonly address: string;
|
|
73
|
-
} & {
|
|
74
|
-
readonly valueUsd: number;
|
|
75
|
-
} & {
|
|
76
|
-
readonly balance: number;
|
|
77
|
-
} & {
|
|
78
|
-
readonly entityLabel?: string | undefined;
|
|
79
73
|
} & {
|
|
80
74
|
readonly type: "contract" | "wallet";
|
|
81
75
|
} & {
|
|
82
76
|
readonly rank: number;
|
|
77
|
+
} & {
|
|
78
|
+
readonly balance: number;
|
|
79
|
+
} & {
|
|
80
|
+
readonly valueUsd: number;
|
|
83
81
|
} & {
|
|
84
82
|
readonly sharePercentage: number;
|
|
83
|
+
} & {
|
|
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
|
} & {
|
|
@@ -252,11 +252,11 @@ declare const ContractMetadata_base: Schema.Class<ContractMetadata, {
|
|
|
252
252
|
signatureImplementations: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
253
253
|
signatureImplementationNames: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
254
254
|
}>, never, {
|
|
255
|
-
readonly contractName?: string | undefined;
|
|
256
|
-
} & {
|
|
257
255
|
readonly errorMessage?: string | undefined;
|
|
258
256
|
} & {
|
|
259
257
|
readonly addressDetails?: AddressDetails | undefined;
|
|
258
|
+
} & {
|
|
259
|
+
readonly contractName?: string | undefined;
|
|
260
260
|
} & {
|
|
261
261
|
readonly abi?: readonly {
|
|
262
262
|
readonly [x: string]: unknown;
|
|
@@ -329,10 +329,10 @@ declare const ContractCodeSearchResult_base: Schema.Class<ContractCodeSearchResu
|
|
|
329
329
|
matches: Schema.optional<Schema.Array$<typeof ContractCodeMatchBlock>>;
|
|
330
330
|
}>, never, {
|
|
331
331
|
readonly blockchain: "ethereum" | "base";
|
|
332
|
-
} & {
|
|
333
|
-
readonly contractAddress: string & effect_Brand2.Brand<"EvmAddress">;
|
|
334
332
|
} & {
|
|
335
333
|
readonly code?: string | undefined;
|
|
334
|
+
} & {
|
|
335
|
+
readonly contractAddress: string & effect_Brand0.Brand<"EvmAddress">;
|
|
336
336
|
} & {
|
|
337
337
|
readonly contractName: string;
|
|
338
338
|
} & {
|
|
@@ -358,7 +358,7 @@ declare const GetContractCodeParams_base: Schema.Class<GetContractCodeParams, {
|
|
|
358
358
|
} & {
|
|
359
359
|
readonly query: string;
|
|
360
360
|
} & {
|
|
361
|
-
readonly contractAddresses: readonly (string &
|
|
361
|
+
readonly contractAddresses: readonly (string & effect_Brand0.Brand<"EvmAddress">)[];
|
|
362
362
|
} & {
|
|
363
363
|
readonly includeProxies?: boolean | undefined;
|
|
364
364
|
} & {
|
|
@@ -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
|
|
613
|
-
} & {
|
|
614
|
-
readonly implementationAddress: string;
|
|
399
|
+
readonly versionNumber: number;
|
|
615
400
|
} & {
|
|
616
401
|
readonly contractName: string;
|
|
617
402
|
} & {
|
|
618
|
-
readonly
|
|
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, {
|
|
@@ -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,
|
|
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,
|
|
146
|
+
export { AddressDetails, ContractCodeMatchBlock, ContractCodeSearchResult, ContractDiff, ContractMetadata, DiffEntry, DiffVersionInfo, DiffVersionsParams, EventSummary, FunctionSummary, GetContractCodeParams, GetContractCodeResponse, HistoricalImplementation, TokenDetails, TokenImage, TopHolder };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
|
|
3
|
+
//#region src/schemas/groups.d.ts
|
|
4
|
+
declare const GroupSummary: Schema.Struct<{
|
|
5
|
+
id: typeof Schema.String;
|
|
6
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
7
|
+
intent: Schema.NullOr<typeof Schema.String>;
|
|
8
|
+
quorum: typeof Schema.Number;
|
|
9
|
+
memberCount: typeof Schema.Number;
|
|
10
|
+
createdAt: typeof Schema.String;
|
|
11
|
+
}>;
|
|
12
|
+
type GroupSummaryType = typeof GroupSummary.Type;
|
|
13
|
+
declare const GroupMember: Schema.Struct<{
|
|
14
|
+
userId: typeof Schema.String;
|
|
15
|
+
email: Schema.NullOr<typeof Schema.String>;
|
|
16
|
+
joinedAt: typeof Schema.String;
|
|
17
|
+
}>;
|
|
18
|
+
type GroupMemberType = typeof GroupMember.Type;
|
|
19
|
+
declare const GroupWallet: Schema.Struct<{
|
|
20
|
+
address: typeof Schema.String;
|
|
21
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
22
|
+
}>;
|
|
23
|
+
type GroupWalletType = typeof GroupWallet.Type;
|
|
24
|
+
declare const GroupDetails: Schema.Struct<{
|
|
25
|
+
id: typeof Schema.String;
|
|
26
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
27
|
+
intent: Schema.NullOr<typeof Schema.String>;
|
|
28
|
+
quorum: typeof Schema.Number;
|
|
29
|
+
members: Schema.Array$<Schema.Struct<{
|
|
30
|
+
userId: typeof Schema.String;
|
|
31
|
+
email: Schema.NullOr<typeof Schema.String>;
|
|
32
|
+
joinedAt: typeof Schema.String;
|
|
33
|
+
}>>;
|
|
34
|
+
wallet: Schema.NullOr<Schema.Struct<{
|
|
35
|
+
address: typeof Schema.String;
|
|
36
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
37
|
+
}>>;
|
|
38
|
+
createdAt: typeof Schema.String;
|
|
39
|
+
}>;
|
|
40
|
+
type GroupDetailsType = typeof GroupDetails.Type;
|
|
41
|
+
declare const CreateGroupParams: Schema.Struct<{
|
|
42
|
+
name: typeof Schema.String;
|
|
43
|
+
members: Schema.Array$<typeof Schema.String>;
|
|
44
|
+
quorum: typeof Schema.Number;
|
|
45
|
+
intent: Schema.optional<typeof Schema.String>;
|
|
46
|
+
}>;
|
|
47
|
+
type CreateGroupParamsType = typeof CreateGroupParams.Type;
|
|
48
|
+
declare const CreateGroupResponse: Schema.Struct<{
|
|
49
|
+
groupId: typeof Schema.String;
|
|
50
|
+
walletAddress: typeof Schema.String;
|
|
51
|
+
}>;
|
|
52
|
+
type CreateGroupResponseType = typeof CreateGroupResponse.Type;
|
|
53
|
+
declare const ListGroupsResponse: Schema.Struct<{
|
|
54
|
+
groups: Schema.Array$<Schema.Struct<{
|
|
55
|
+
id: typeof Schema.String;
|
|
56
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
57
|
+
intent: Schema.NullOr<typeof Schema.String>;
|
|
58
|
+
quorum: typeof Schema.Number;
|
|
59
|
+
memberCount: typeof Schema.Number;
|
|
60
|
+
createdAt: typeof Schema.String;
|
|
61
|
+
}>>;
|
|
62
|
+
}>;
|
|
63
|
+
type ListGroupsResponseType = typeof ListGroupsResponse.Type;
|
|
64
|
+
declare const GroupIdParams: Schema.Struct<{
|
|
65
|
+
groupId: typeof Schema.String;
|
|
66
|
+
}>;
|
|
67
|
+
type GroupIdParamsType = typeof GroupIdParams.Type;
|
|
68
|
+
declare const ProposeMemberChangeParams: Schema.Struct<{
|
|
69
|
+
type: Schema.Literal<["add", "remove"]>;
|
|
70
|
+
email: typeof Schema.String;
|
|
71
|
+
}>;
|
|
72
|
+
type ProposeMemberChangeParamsType = typeof ProposeMemberChangeParams.Type;
|
|
73
|
+
declare const ProposeQuorumChangeParams: Schema.Struct<{
|
|
74
|
+
quorum: typeof Schema.Number;
|
|
75
|
+
}>;
|
|
76
|
+
type ProposeQuorumChangeParamsType = typeof ProposeQuorumChangeParams.Type;
|
|
77
|
+
declare const ProposalResponse: Schema.Struct<{
|
|
78
|
+
workflowId: typeof Schema.String;
|
|
79
|
+
workflowRunId: typeof Schema.String;
|
|
80
|
+
}>;
|
|
81
|
+
type ProposalResponseType = typeof ProposalResponse.Type;
|
|
82
|
+
declare const EditGroupMetadataParams: Schema.Struct<{
|
|
83
|
+
name: Schema.optional<typeof Schema.String>;
|
|
84
|
+
description: Schema.optional<typeof Schema.String>;
|
|
85
|
+
}>;
|
|
86
|
+
type EditGroupMetadataParamsType = typeof EditGroupMetadataParams.Type;
|
|
87
|
+
declare const EditGroupMetadataResponse: Schema.Struct<{
|
|
88
|
+
id: typeof Schema.String;
|
|
89
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
90
|
+
intent: Schema.NullOr<typeof Schema.String>;
|
|
91
|
+
}>;
|
|
92
|
+
type EditGroupMetadataResponseType = typeof EditGroupMetadataResponse.Type;
|
|
93
|
+
//#endregion
|
|
94
|
+
export { CreateGroupParams, CreateGroupParamsType, CreateGroupResponse, CreateGroupResponseType, EditGroupMetadataParams, EditGroupMetadataParamsType, EditGroupMetadataResponse, EditGroupMetadataResponseType, GroupDetails, GroupDetailsType, GroupIdParams, GroupIdParamsType, GroupMember, GroupMemberType, GroupSummary, GroupSummaryType, GroupWallet, GroupWalletType, ListGroupsResponse, ListGroupsResponseType, ProposalResponse, ProposalResponseType, ProposeMemberChangeParams, ProposeMemberChangeParamsType, ProposeQuorumChangeParams, ProposeQuorumChangeParamsType };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
|
|
3
|
+
//#region src/schemas/groups.ts
|
|
4
|
+
const GroupSummary = Schema.Struct({
|
|
5
|
+
id: Schema.String,
|
|
6
|
+
name: Schema.NullOr(Schema.String),
|
|
7
|
+
intent: Schema.NullOr(Schema.String),
|
|
8
|
+
quorum: Schema.Number,
|
|
9
|
+
memberCount: Schema.Number,
|
|
10
|
+
createdAt: Schema.String
|
|
11
|
+
});
|
|
12
|
+
const GroupMember = Schema.Struct({
|
|
13
|
+
userId: Schema.String,
|
|
14
|
+
email: Schema.NullOr(Schema.String),
|
|
15
|
+
joinedAt: Schema.String
|
|
16
|
+
});
|
|
17
|
+
const GroupWallet = Schema.Struct({
|
|
18
|
+
address: Schema.String,
|
|
19
|
+
name: Schema.NullOr(Schema.String)
|
|
20
|
+
});
|
|
21
|
+
const GroupDetails = Schema.Struct({
|
|
22
|
+
id: Schema.String,
|
|
23
|
+
name: Schema.NullOr(Schema.String),
|
|
24
|
+
intent: Schema.NullOr(Schema.String),
|
|
25
|
+
quorum: Schema.Number,
|
|
26
|
+
members: Schema.Array(GroupMember),
|
|
27
|
+
wallet: Schema.NullOr(GroupWallet),
|
|
28
|
+
createdAt: Schema.String
|
|
29
|
+
});
|
|
30
|
+
const CreateGroupParams = Schema.Struct({
|
|
31
|
+
name: Schema.String,
|
|
32
|
+
members: Schema.Array(Schema.String),
|
|
33
|
+
quorum: Schema.Number,
|
|
34
|
+
intent: Schema.optional(Schema.String)
|
|
35
|
+
});
|
|
36
|
+
const CreateGroupResponse = Schema.Struct({
|
|
37
|
+
groupId: Schema.String,
|
|
38
|
+
walletAddress: Schema.String
|
|
39
|
+
});
|
|
40
|
+
const ListGroupsResponse = Schema.Struct({ groups: Schema.Array(GroupSummary) });
|
|
41
|
+
const GroupIdParams = Schema.Struct({ groupId: Schema.String });
|
|
42
|
+
const ProposeMemberChangeParams = Schema.Struct({
|
|
43
|
+
type: Schema.Literal("add", "remove"),
|
|
44
|
+
email: Schema.String
|
|
45
|
+
});
|
|
46
|
+
const ProposeQuorumChangeParams = Schema.Struct({ quorum: Schema.Number });
|
|
47
|
+
const ProposalResponse = Schema.Struct({
|
|
48
|
+
workflowId: Schema.String,
|
|
49
|
+
workflowRunId: Schema.String
|
|
50
|
+
});
|
|
51
|
+
const EditGroupMetadataParams = Schema.Struct({
|
|
52
|
+
name: Schema.optional(Schema.String),
|
|
53
|
+
description: Schema.optional(Schema.String)
|
|
54
|
+
});
|
|
55
|
+
const EditGroupMetadataResponse = Schema.Struct({
|
|
56
|
+
id: Schema.String,
|
|
57
|
+
name: Schema.NullOr(Schema.String),
|
|
58
|
+
intent: Schema.NullOr(Schema.String)
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
export { CreateGroupParams, CreateGroupResponse, EditGroupMetadataParams, EditGroupMetadataResponse, GroupDetails, GroupIdParams, GroupMember, GroupSummary, GroupWallet, ListGroupsResponse, ProposalResponse, ProposeMemberChangeParams, ProposeQuorumChangeParams };
|