@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_Brand1 from "effect/Brand";
|
|
3
3
|
|
|
4
4
|
//#region src/schemas/hal.d.ts
|
|
5
5
|
declare const EvaluateParams_base: Schema.Class<EvaluateParams, {
|
|
@@ -27,7 +27,7 @@ declare const EvaluateParams_base: Schema.Class<EvaluateParams, {
|
|
|
27
27
|
}>, never, {
|
|
28
28
|
readonly expression: unknown;
|
|
29
29
|
} & {
|
|
30
|
-
readonly walletAddress: string &
|
|
30
|
+
readonly walletAddress: string & effect_Brand1.Brand<"EvmAddress">;
|
|
31
31
|
} & {
|
|
32
32
|
readonly inputValues?: {
|
|
33
33
|
readonly [x: string]: unknown;
|
|
@@ -68,7 +68,9 @@ declare const EvaluateExistingParams_base: Schema.Class<EvaluateExistingParams,
|
|
|
68
68
|
}>, never, {
|
|
69
69
|
readonly actionId: string;
|
|
70
70
|
} & {
|
|
71
|
-
readonly
|
|
71
|
+
readonly version?: string | undefined;
|
|
72
|
+
} & {
|
|
73
|
+
readonly walletAddress: string & effect_Brand1.Brand<"EvmAddress">;
|
|
72
74
|
} & {
|
|
73
75
|
readonly inputValues?: {
|
|
74
76
|
readonly [x: string]: unknown;
|
|
@@ -82,8 +84,6 @@ declare const EvaluateExistingParams_base: Schema.Class<EvaluateExistingParams,
|
|
|
82
84
|
readonly tevmForkId?: string | undefined;
|
|
83
85
|
} & {
|
|
84
86
|
readonly simulationBlockNumber?: number | undefined;
|
|
85
|
-
} & {
|
|
86
|
-
readonly version?: string | undefined;
|
|
87
87
|
}, {}, {}>;
|
|
88
88
|
declare class EvaluateExistingParams extends EvaluateExistingParams_base {}
|
|
89
89
|
declare const TransactionStatus_base: Schema.Class<TransactionStatus, {
|
|
@@ -125,7 +125,9 @@ declare const TransactionStatus_base: Schema.Class<TransactionStatus, {
|
|
|
125
125
|
} & {
|
|
126
126
|
readonly blockchain?: "ethereum" | "base" | undefined;
|
|
127
127
|
} & {
|
|
128
|
-
readonly status: "
|
|
128
|
+
readonly status: "success" | "failed" | "pending";
|
|
129
|
+
} & {
|
|
130
|
+
readonly blockNumber: number | null;
|
|
129
131
|
} & {
|
|
130
132
|
readonly batchName: string | null;
|
|
131
133
|
} & {
|
|
@@ -136,8 +138,6 @@ declare const TransactionStatus_base: Schema.Class<TransactionStatus, {
|
|
|
136
138
|
readonly transactionHash: string | null;
|
|
137
139
|
} & {
|
|
138
140
|
readonly transactionErrorMessage: string | null;
|
|
139
|
-
} & {
|
|
140
|
-
readonly blockNumber: number | null;
|
|
141
141
|
} & {
|
|
142
142
|
readonly blockTimestamp: number | null;
|
|
143
143
|
} & {
|
|
@@ -184,7 +184,7 @@ declare const EvaluateResponse_base: Schema.Class<EvaluateResponse, {
|
|
|
184
184
|
readonly name: string;
|
|
185
185
|
} | undefined;
|
|
186
186
|
} & {
|
|
187
|
-
readonly status: "
|
|
187
|
+
readonly status: "failed" | "completed" | "suspended";
|
|
188
188
|
} & {
|
|
189
189
|
readonly tevmForkId?: string | undefined;
|
|
190
190
|
} & {
|
|
@@ -453,103 +453,56 @@ declare const Transaction_base: Schema.Class<Transaction, {
|
|
|
453
453
|
readonly txHash: string;
|
|
454
454
|
} & {
|
|
455
455
|
readonly blockchain: "ethereum" | "base";
|
|
456
|
+
} & {
|
|
457
|
+
readonly error?: string | null | undefined;
|
|
456
458
|
} & {
|
|
457
459
|
readonly functionSignature?: string | null | undefined;
|
|
458
460
|
} & {
|
|
459
|
-
readonly
|
|
461
|
+
readonly blockNumber: number;
|
|
460
462
|
} & {
|
|
461
463
|
readonly tevmForkId?: string | null | undefined;
|
|
462
464
|
} & {
|
|
463
465
|
readonly success: boolean;
|
|
464
|
-
} & {
|
|
465
|
-
readonly blockNumber: number;
|
|
466
466
|
} & {
|
|
467
467
|
readonly fromAddress: string;
|
|
468
468
|
} & {
|
|
469
469
|
readonly toAddress: string;
|
|
470
|
-
} & {
|
|
471
|
-
readonly transfers: readonly {
|
|
472
|
-
readonly txHash: string;
|
|
473
|
-
readonly tokenAddress: string;
|
|
474
|
-
readonly blockNumber: number;
|
|
475
|
-
readonly blockTimestamp: number;
|
|
476
|
-
readonly amount: number;
|
|
477
|
-
readonly fromAddress: string;
|
|
478
|
-
readonly toAddress: string;
|
|
479
|
-
readonly logIndex?: number | undefined;
|
|
480
|
-
readonly chainId: number;
|
|
481
|
-
readonly tokenId: number;
|
|
482
|
-
readonly tokenDecimals: number;
|
|
483
|
-
readonly tokenName: string;
|
|
484
|
-
readonly tokenSymbol: string;
|
|
485
|
-
readonly tokenPriceUsd: number;
|
|
486
|
-
readonly tokenLogoUrl: string;
|
|
487
|
-
readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
|
|
488
|
-
readonly fromAddressIsContract: boolean;
|
|
489
|
-
readonly toAddressIsContract: boolean;
|
|
490
|
-
readonly fromEntityLabel?: string | null | undefined;
|
|
491
|
-
readonly toEntityLabel?: string | null | undefined;
|
|
492
|
-
readonly traceAddress?: string | undefined;
|
|
493
|
-
readonly callerFunction?: {
|
|
494
|
-
readonly tokenAddress: string;
|
|
495
|
-
readonly callerAddress: string;
|
|
496
|
-
readonly callerFunctionSignature: string;
|
|
497
|
-
readonly callerTraceAddress: string;
|
|
498
|
-
readonly callerContractName?: string | undefined;
|
|
499
|
-
readonly callerFunctionName?: string | undefined;
|
|
500
|
-
} | null | undefined;
|
|
501
|
-
readonly tokenFunction?: {
|
|
502
|
-
readonly tokenFunctionSignature: string;
|
|
503
|
-
readonly tokenTraceAddress: string;
|
|
504
|
-
readonly tokenContractName?: string | undefined;
|
|
505
|
-
readonly tokenFunctionName?: string | undefined;
|
|
506
|
-
} | undefined;
|
|
507
|
-
}[];
|
|
508
470
|
} & {
|
|
509
471
|
readonly timestamp: number;
|
|
510
|
-
} & {
|
|
511
|
-
readonly createdContracts: readonly string[];
|
|
512
|
-
} & {
|
|
513
|
-
readonly actionExecution?: {
|
|
514
|
-
readonly actionId: string;
|
|
515
|
-
readonly actionName: string;
|
|
516
|
-
readonly versionId: string;
|
|
517
|
-
readonly executionId: string;
|
|
518
|
-
} | undefined;
|
|
519
472
|
} & {
|
|
520
473
|
readonly decodedTraces: DecodedTrace;
|
|
521
474
|
} & {
|
|
522
475
|
readonly transactionMetadata: {
|
|
523
476
|
readonly value: number;
|
|
477
|
+
readonly status: number;
|
|
524
478
|
readonly from: string;
|
|
525
479
|
readonly hash: string;
|
|
526
|
-
readonly
|
|
480
|
+
readonly type: string;
|
|
527
481
|
readonly blockNumber: number;
|
|
528
482
|
readonly to: string | null;
|
|
529
|
-
readonly nonce: number;
|
|
530
|
-
readonly r: string;
|
|
531
|
-
readonly timestamp: number;
|
|
532
|
-
readonly s: string;
|
|
533
|
-
readonly chainId: number;
|
|
534
|
-
readonly type: string;
|
|
535
483
|
readonly blockHash: string;
|
|
536
484
|
readonly transactionIndex: number;
|
|
485
|
+
readonly chainId: number;
|
|
537
486
|
readonly gas: number;
|
|
538
487
|
readonly gasPrice: number;
|
|
488
|
+
readonly nonce: number;
|
|
539
489
|
readonly input: string;
|
|
490
|
+
readonly r: string;
|
|
491
|
+
readonly s: string;
|
|
540
492
|
readonly v: string;
|
|
493
|
+
readonly timestamp: number;
|
|
541
494
|
readonly gasUsed: number;
|
|
542
495
|
readonly effectiveGasPrice: number;
|
|
543
496
|
};
|
|
544
497
|
} & {
|
|
545
498
|
readonly decodedLogs: readonly {
|
|
546
|
-
readonly
|
|
499
|
+
readonly address: string;
|
|
547
500
|
readonly blockNumber: number;
|
|
501
|
+
readonly transactionHash: string;
|
|
548
502
|
readonly data: string;
|
|
549
|
-
readonly address: string;
|
|
550
|
-
readonly logIndex: number;
|
|
551
503
|
readonly blockHash: string;
|
|
552
504
|
readonly topics: readonly string[];
|
|
505
|
+
readonly logIndex: number;
|
|
553
506
|
readonly transactionIndex: number;
|
|
554
507
|
readonly removed: boolean;
|
|
555
508
|
readonly emittedAfterTraceAddress: readonly number[];
|
|
@@ -581,8 +534,9 @@ declare const Transaction_base: Schema.Class<Transaction, {
|
|
|
581
534
|
} & {
|
|
582
535
|
readonly balanceChanges: readonly {
|
|
583
536
|
readonly txHash?: string | undefined;
|
|
584
|
-
readonly
|
|
537
|
+
readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
|
|
585
538
|
readonly blockNumber: number;
|
|
539
|
+
readonly tokenAddress: string;
|
|
586
540
|
readonly blockTimestamp: number;
|
|
587
541
|
readonly holderAddress: string;
|
|
588
542
|
readonly holderIsContract: boolean;
|
|
@@ -594,16 +548,62 @@ declare const Transaction_base: Schema.Class<Transaction, {
|
|
|
594
548
|
readonly tokenSymbol: string;
|
|
595
549
|
readonly tokenPriceUsd: number;
|
|
596
550
|
readonly tokenLogoUrl: string;
|
|
597
|
-
readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
|
|
598
551
|
readonly holderEntityLabel?: string | null | undefined;
|
|
599
552
|
readonly tokenEntityLabel?: string | null | undefined;
|
|
600
553
|
}[];
|
|
554
|
+
} & {
|
|
555
|
+
readonly transfers: readonly {
|
|
556
|
+
readonly txHash: string;
|
|
557
|
+
readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
|
|
558
|
+
readonly blockNumber: number;
|
|
559
|
+
readonly tokenAddress: string;
|
|
560
|
+
readonly blockTimestamp: number;
|
|
561
|
+
readonly toEntityLabel?: string | null | undefined;
|
|
562
|
+
readonly fromEntityLabel?: string | null | undefined;
|
|
563
|
+
readonly traceAddress?: string | undefined;
|
|
564
|
+
readonly logIndex?: number | undefined;
|
|
565
|
+
readonly chainId: number;
|
|
566
|
+
readonly tokenId: number;
|
|
567
|
+
readonly tokenDecimals: number;
|
|
568
|
+
readonly tokenName: string;
|
|
569
|
+
readonly tokenSymbol: string;
|
|
570
|
+
readonly tokenPriceUsd: number;
|
|
571
|
+
readonly tokenLogoUrl: string;
|
|
572
|
+
readonly fromAddress: string;
|
|
573
|
+
readonly toAddress: string;
|
|
574
|
+
readonly amount: number;
|
|
575
|
+
readonly fromAddressIsContract: boolean;
|
|
576
|
+
readonly toAddressIsContract: boolean;
|
|
577
|
+
readonly callerFunction?: {
|
|
578
|
+
readonly tokenAddress: string;
|
|
579
|
+
readonly callerAddress: string;
|
|
580
|
+
readonly callerFunctionSignature: string;
|
|
581
|
+
readonly callerTraceAddress: string;
|
|
582
|
+
readonly callerContractName?: string | undefined;
|
|
583
|
+
readonly callerFunctionName?: string | undefined;
|
|
584
|
+
} | null | undefined;
|
|
585
|
+
readonly tokenFunction?: {
|
|
586
|
+
readonly tokenFunctionSignature: string;
|
|
587
|
+
readonly tokenTraceAddress: string;
|
|
588
|
+
readonly tokenContractName?: string | undefined;
|
|
589
|
+
readonly tokenFunctionName?: string | undefined;
|
|
590
|
+
} | undefined;
|
|
591
|
+
}[];
|
|
592
|
+
} & {
|
|
593
|
+
readonly createdContracts: readonly string[];
|
|
601
594
|
} & {
|
|
602
595
|
readonly outputs?: {
|
|
603
596
|
readonly value: string;
|
|
604
597
|
readonly from: string;
|
|
605
598
|
readonly summary: string;
|
|
606
599
|
} | undefined;
|
|
600
|
+
} & {
|
|
601
|
+
readonly actionExecution?: {
|
|
602
|
+
readonly actionId: string;
|
|
603
|
+
readonly actionName: string;
|
|
604
|
+
readonly versionId: string;
|
|
605
|
+
readonly executionId: string;
|
|
606
|
+
} | undefined;
|
|
607
607
|
}, {}, {}>;
|
|
608
608
|
declare class Transaction extends Transaction_base {}
|
|
609
609
|
declare const TransactionQueryResponse_base: Schema.Class<TransactionQueryResponse, {
|
|
@@ -766,16 +766,26 @@ declare const LatestFunctionTransactions_base: Schema.Class<LatestFunctionTransa
|
|
|
766
766
|
readonly blockchain?: "ethereum" | "base" | undefined;
|
|
767
767
|
} & {
|
|
768
768
|
readonly contractAddress?: string | undefined;
|
|
769
|
+
} & {
|
|
770
|
+
readonly signature?: string | undefined;
|
|
771
|
+
} & {
|
|
772
|
+
readonly errorMessage?: string | undefined;
|
|
773
|
+
} & {
|
|
774
|
+
readonly availableSignatures?: readonly {
|
|
775
|
+
readonly name: string;
|
|
776
|
+
readonly signature: string;
|
|
777
|
+
}[] | undefined;
|
|
769
778
|
} & {
|
|
770
779
|
readonly transactions?: readonly {
|
|
771
780
|
readonly txHash: string;
|
|
772
781
|
readonly from: string;
|
|
773
|
-
readonly success: boolean;
|
|
774
782
|
readonly blockNumber: number;
|
|
783
|
+
readonly success: boolean;
|
|
775
784
|
readonly blockTimestamp: number;
|
|
776
785
|
readonly blockTimestampUtc: string;
|
|
777
786
|
readonly functionCalls: readonly {
|
|
778
787
|
readonly value: number;
|
|
788
|
+
readonly signature: string;
|
|
779
789
|
readonly functionName: string;
|
|
780
790
|
readonly inputArgs: {
|
|
781
791
|
readonly [x: string]: unknown;
|
|
@@ -783,7 +793,6 @@ declare const LatestFunctionTransactions_base: Schema.Class<LatestFunctionTransa
|
|
|
783
793
|
readonly outputArgs: {
|
|
784
794
|
readonly [x: string]: unknown;
|
|
785
795
|
} | null;
|
|
786
|
-
readonly signature: string;
|
|
787
796
|
readonly traceInput: string;
|
|
788
797
|
readonly callerFunctionDetails: {
|
|
789
798
|
readonly functionSignature: string | null;
|
|
@@ -794,15 +803,6 @@ declare const LatestFunctionTransactions_base: Schema.Class<LatestFunctionTransa
|
|
|
794
803
|
} | null;
|
|
795
804
|
}[];
|
|
796
805
|
}[] | undefined;
|
|
797
|
-
} & {
|
|
798
|
-
readonly errorMessage?: string | undefined;
|
|
799
|
-
} & {
|
|
800
|
-
readonly signature?: string | undefined;
|
|
801
|
-
} & {
|
|
802
|
-
readonly availableSignatures?: readonly {
|
|
803
|
-
readonly name: string;
|
|
804
|
-
readonly signature: string;
|
|
805
|
-
}[] | undefined;
|
|
806
806
|
}, {}, {}>;
|
|
807
807
|
declare class LatestFunctionTransactions extends LatestFunctionTransactions_base {}
|
|
808
808
|
declare const LatestEventTransactions_base: Schema.Class<LatestEventTransactions, {
|
|
@@ -877,10 +877,18 @@ declare const LatestEventTransactions_base: Schema.Class<LatestEventTransactions
|
|
|
877
877
|
readonly blockchain?: "ethereum" | "base" | undefined;
|
|
878
878
|
} & {
|
|
879
879
|
readonly contractAddress?: string | undefined;
|
|
880
|
+
} & {
|
|
881
|
+
readonly signature?: string | undefined;
|
|
882
|
+
} & {
|
|
883
|
+
readonly errorMessage?: string | undefined;
|
|
884
|
+
} & {
|
|
885
|
+
readonly availableSignatures?: readonly {
|
|
886
|
+
readonly name: string;
|
|
887
|
+
readonly signature: string;
|
|
888
|
+
}[] | undefined;
|
|
880
889
|
} & {
|
|
881
890
|
readonly transactions?: readonly {
|
|
882
891
|
readonly txHash: string;
|
|
883
|
-
readonly from: string;
|
|
884
892
|
readonly logs: readonly {
|
|
885
893
|
readonly contractAddress: string;
|
|
886
894
|
readonly contractName: string;
|
|
@@ -900,20 +908,12 @@ declare const LatestEventTransactions_base: Schema.Class<LatestEventTransactions
|
|
|
900
908
|
readonly rawTopics: readonly string[];
|
|
901
909
|
readonly rawData: string;
|
|
902
910
|
}[];
|
|
903
|
-
readonly
|
|
911
|
+
readonly from: string;
|
|
904
912
|
readonly blockNumber: number;
|
|
913
|
+
readonly success: boolean;
|
|
905
914
|
readonly blockTimestamp: number;
|
|
906
915
|
readonly blockTimestampUtc: string;
|
|
907
916
|
}[] | undefined;
|
|
908
|
-
} & {
|
|
909
|
-
readonly errorMessage?: string | undefined;
|
|
910
|
-
} & {
|
|
911
|
-
readonly signature?: string | undefined;
|
|
912
|
-
} & {
|
|
913
|
-
readonly availableSignatures?: readonly {
|
|
914
|
-
readonly name: string;
|
|
915
|
-
readonly signature: string;
|
|
916
|
-
}[] | undefined;
|
|
917
917
|
}, {}, {}>;
|
|
918
918
|
declare class LatestEventTransactions extends LatestEventTransactions_base {}
|
|
919
919
|
declare const LatestTxParams_base: Schema.Class<LatestTxParams, {
|
|
@@ -957,11 +957,11 @@ declare const LatestTxParams_base: Schema.Class<LatestTxParams, {
|
|
|
957
957
|
} & {
|
|
958
958
|
readonly afterBlocknumber?: number | undefined;
|
|
959
959
|
} & {
|
|
960
|
-
readonly
|
|
960
|
+
readonly offset?: number | undefined;
|
|
961
961
|
} & {
|
|
962
962
|
readonly successOnly?: boolean | undefined;
|
|
963
963
|
} & {
|
|
964
|
-
readonly
|
|
964
|
+
readonly direction?: "direct" | "indirect" | "both" | undefined;
|
|
965
965
|
} & {
|
|
966
966
|
readonly topic1?: string | undefined;
|
|
967
967
|
} & {
|
|
@@ -20,11 +20,11 @@ declare const WalletBalance_base: Schema.Class<WalletBalance, {
|
|
|
20
20
|
} & {
|
|
21
21
|
readonly address: string;
|
|
22
22
|
} & {
|
|
23
|
-
readonly
|
|
23
|
+
readonly valueUsd: number | null;
|
|
24
24
|
} & {
|
|
25
25
|
readonly decimals: number | null;
|
|
26
26
|
} & {
|
|
27
|
-
readonly
|
|
27
|
+
readonly amount: string | number;
|
|
28
28
|
} & {
|
|
29
29
|
readonly logoUrl: string | null;
|
|
30
30
|
}, {}, {}>;
|
|
@@ -87,10 +87,10 @@ declare const PendingTransaction_base: Schema.Class<PendingTransaction, {
|
|
|
87
87
|
readonly to: string;
|
|
88
88
|
} & {
|
|
89
89
|
readonly data: string | null;
|
|
90
|
-
} & {
|
|
91
|
-
readonly safeTxHash: string;
|
|
92
90
|
} & {
|
|
93
91
|
readonly nonce: number;
|
|
92
|
+
} & {
|
|
93
|
+
readonly safeTxHash: string;
|
|
94
94
|
} & {
|
|
95
95
|
readonly submissionDate?: string | undefined;
|
|
96
96
|
} & {
|
|
@@ -141,6 +141,8 @@ declare const WalletOverview_base: Schema.Class<WalletOverview, {
|
|
|
141
141
|
balances: Schema.Array$<typeof WalletBalance>;
|
|
142
142
|
}>, never, {
|
|
143
143
|
readonly blockchain: "ethereum" | "base";
|
|
144
|
+
} & {
|
|
145
|
+
readonly implementationAddress?: string | undefined;
|
|
144
146
|
} & {
|
|
145
147
|
readonly walletAddress: string;
|
|
146
148
|
} & {
|
|
@@ -148,9 +150,7 @@ declare const WalletOverview_base: Schema.Class<WalletOverview, {
|
|
|
148
150
|
} & {
|
|
149
151
|
readonly totalDeployedContractsCount: number;
|
|
150
152
|
} & {
|
|
151
|
-
readonly walletType: "
|
|
152
|
-
} & {
|
|
153
|
-
readonly implementationAddress?: string | undefined;
|
|
153
|
+
readonly walletType: "contract" | "eoa" | "erc7702" | "erc4337" | "multisig";
|
|
154
154
|
} & {
|
|
155
155
|
readonly erc7702Delegation?: Erc7702Delegation | undefined;
|
|
156
156
|
} & {
|
|
@@ -210,19 +210,19 @@ declare const TokenTransfer_base: Schema.Class<TokenTransfer, {
|
|
|
210
210
|
} & {
|
|
211
211
|
readonly blockTimestamp: number;
|
|
212
212
|
} & {
|
|
213
|
-
readonly
|
|
213
|
+
readonly logIndex: number;
|
|
214
214
|
} & {
|
|
215
215
|
readonly fromAddress: string;
|
|
216
216
|
} & {
|
|
217
217
|
readonly toAddress: string;
|
|
218
|
+
} & {
|
|
219
|
+
readonly amount: string;
|
|
218
220
|
} & {
|
|
219
221
|
readonly blockTimestampUtc: string;
|
|
220
222
|
} & {
|
|
221
|
-
readonly
|
|
223
|
+
readonly direction: "in" | "out";
|
|
222
224
|
} & {
|
|
223
225
|
readonly formattedAmount: string;
|
|
224
|
-
} & {
|
|
225
|
-
readonly direction: "in" | "out";
|
|
226
226
|
}, {}, {}>;
|
|
227
227
|
declare class TokenTransfer extends TokenTransfer_base {}
|
|
228
228
|
declare const TokenActivityPagination_base: Schema.Class<TokenActivityPagination, {
|
|
@@ -257,16 +257,16 @@ declare const TokenActivity_base: Schema.Class<TokenActivity, {
|
|
|
257
257
|
pagination: typeof TokenActivityPagination;
|
|
258
258
|
}>, never, {
|
|
259
259
|
readonly blockchain: "ethereum" | "base";
|
|
260
|
+
} & {
|
|
261
|
+
readonly balance: TokenBalanceInfo;
|
|
260
262
|
} & {
|
|
261
263
|
readonly tokenAddress: string;
|
|
262
264
|
} & {
|
|
263
265
|
readonly holderAddress: string;
|
|
264
266
|
} & {
|
|
265
|
-
readonly
|
|
267
|
+
readonly transfers: readonly TokenTransfer[];
|
|
266
268
|
} & {
|
|
267
269
|
readonly pagination: TokenActivityPagination;
|
|
268
|
-
} & {
|
|
269
|
-
readonly transfers: readonly TokenTransfer[];
|
|
270
270
|
}, {}, {}>;
|
|
271
271
|
declare class TokenActivity extends TokenActivity_base {}
|
|
272
272
|
declare const WalletTxCall_base: Schema.Class<WalletTxCall, {
|
|
@@ -284,13 +284,13 @@ declare const WalletTxCall_base: Schema.Class<WalletTxCall, {
|
|
|
284
284
|
}>, never, {
|
|
285
285
|
readonly functionSignature: string;
|
|
286
286
|
} & {
|
|
287
|
-
readonly
|
|
287
|
+
readonly entityLabel: string | null;
|
|
288
288
|
} & {
|
|
289
|
-
readonly
|
|
289
|
+
readonly contractName: string | null;
|
|
290
290
|
} & {
|
|
291
291
|
readonly functionName: string;
|
|
292
292
|
} & {
|
|
293
|
-
readonly
|
|
293
|
+
readonly callee: string;
|
|
294
294
|
}, {}, {}>;
|
|
295
295
|
declare class WalletTxCall extends WalletTxCall_base {}
|
|
296
296
|
declare const WalletTxActionExecution_base: Schema.Class<WalletTxActionExecution, {
|
|
@@ -356,17 +356,17 @@ declare const WalletTxTransfer_base: Schema.Class<WalletTxTransfer, {
|
|
|
356
356
|
}>, never, {
|
|
357
357
|
readonly txHash: string;
|
|
358
358
|
} & {
|
|
359
|
-
readonly
|
|
359
|
+
readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
|
|
360
360
|
} & {
|
|
361
361
|
readonly blockNumber: number;
|
|
362
362
|
} & {
|
|
363
|
-
readonly
|
|
363
|
+
readonly tokenAddress: string;
|
|
364
364
|
} & {
|
|
365
|
-
readonly
|
|
365
|
+
readonly blockTimestamp: number;
|
|
366
366
|
} & {
|
|
367
|
-
readonly
|
|
367
|
+
readonly toEntityLabel?: string | null | undefined;
|
|
368
368
|
} & {
|
|
369
|
-
readonly
|
|
369
|
+
readonly fromEntityLabel?: string | null | undefined;
|
|
370
370
|
} & {
|
|
371
371
|
readonly chainId: number;
|
|
372
372
|
} & {
|
|
@@ -382,15 +382,15 @@ declare const WalletTxTransfer_base: Schema.Class<WalletTxTransfer, {
|
|
|
382
382
|
} & {
|
|
383
383
|
readonly tokenLogoUrl: string;
|
|
384
384
|
} & {
|
|
385
|
-
readonly
|
|
385
|
+
readonly fromAddress: string;
|
|
386
386
|
} & {
|
|
387
|
-
readonly
|
|
387
|
+
readonly toAddress: string;
|
|
388
388
|
} & {
|
|
389
|
-
readonly
|
|
389
|
+
readonly amount: number;
|
|
390
390
|
} & {
|
|
391
|
-
readonly
|
|
391
|
+
readonly fromAddressIsContract: boolean;
|
|
392
392
|
} & {
|
|
393
|
-
readonly
|
|
393
|
+
readonly toAddressIsContract: boolean;
|
|
394
394
|
}, {}, {}>;
|
|
395
395
|
declare class WalletTxTransfer extends WalletTxTransfer_base {}
|
|
396
396
|
declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
|
|
@@ -434,15 +434,15 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
|
|
|
434
434
|
}>, never, {
|
|
435
435
|
readonly txHash?: string | undefined;
|
|
436
436
|
} & {
|
|
437
|
-
readonly
|
|
437
|
+
readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
|
|
438
438
|
} & {
|
|
439
439
|
readonly blockNumber: number;
|
|
440
|
+
} & {
|
|
441
|
+
readonly tokenAddress: string;
|
|
440
442
|
} & {
|
|
441
443
|
readonly blockTimestamp: number;
|
|
442
444
|
} & {
|
|
443
445
|
readonly holderAddress: string;
|
|
444
|
-
} & {
|
|
445
|
-
readonly transfers: readonly WalletTxTransfer[];
|
|
446
446
|
} & {
|
|
447
447
|
readonly holderIsContract: boolean;
|
|
448
448
|
} & {
|
|
@@ -461,12 +461,12 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
|
|
|
461
461
|
readonly tokenPriceUsd: number;
|
|
462
462
|
} & {
|
|
463
463
|
readonly tokenLogoUrl: string;
|
|
464
|
-
} & {
|
|
465
|
-
readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
|
|
466
464
|
} & {
|
|
467
465
|
readonly holderEntityLabel?: string | null | undefined;
|
|
468
466
|
} & {
|
|
469
467
|
readonly tokenEntityLabel?: string | null | undefined;
|
|
468
|
+
} & {
|
|
469
|
+
readonly transfers: readonly WalletTxTransfer[];
|
|
470
470
|
}, {}, {}>;
|
|
471
471
|
declare class WalletTxBalanceChange extends WalletTxBalanceChange_base {}
|
|
472
472
|
declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
|
|
@@ -502,27 +502,27 @@ declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
|
|
|
502
502
|
}>, never, {
|
|
503
503
|
readonly txHash: string;
|
|
504
504
|
} & {
|
|
505
|
-
readonly
|
|
505
|
+
readonly errorMessage?: string | undefined;
|
|
506
506
|
} & {
|
|
507
507
|
readonly blockNumber: number;
|
|
508
508
|
} & {
|
|
509
|
-
readonly
|
|
510
|
-
} & {
|
|
511
|
-
readonly blockTimestampUtc: string;
|
|
512
|
-
} & {
|
|
513
|
-
readonly errorMessage?: string | undefined;
|
|
514
|
-
} & {
|
|
515
|
-
readonly calls: readonly WalletTxCall[];
|
|
509
|
+
readonly success: boolean;
|
|
516
510
|
} & {
|
|
517
|
-
readonly
|
|
511
|
+
readonly blockTimestamp: number;
|
|
518
512
|
} & {
|
|
519
513
|
readonly createdContracts: readonly {
|
|
520
514
|
readonly address: string;
|
|
521
|
-
readonly contractName: string | null;
|
|
522
515
|
readonly entityLabel: string | null;
|
|
516
|
+
readonly contractName: string | null;
|
|
523
517
|
}[];
|
|
524
518
|
} & {
|
|
525
519
|
readonly actionExecution?: WalletTxActionExecution | undefined;
|
|
520
|
+
} & {
|
|
521
|
+
readonly blockTimestampUtc: string;
|
|
522
|
+
} & {
|
|
523
|
+
readonly calls: readonly WalletTxCall[];
|
|
524
|
+
} & {
|
|
525
|
+
readonly walletBalanceChanges: readonly WalletTxBalanceChange[];
|
|
526
526
|
}, {}, {}>;
|
|
527
527
|
declare class WalletTransaction extends WalletTransaction_base {}
|
|
528
528
|
declare const TransactionActivityPagination_base: Schema.Class<TransactionActivityPagination, {
|
|
@@ -559,18 +559,18 @@ declare const TransactionActivity_base: Schema.Class<TransactionActivity, {
|
|
|
559
559
|
pagination: typeof TransactionActivityPagination;
|
|
560
560
|
}>, never, {
|
|
561
561
|
readonly blockchain: "ethereum" | "base";
|
|
562
|
+
} & {
|
|
563
|
+
readonly fromAddress: string;
|
|
564
|
+
} & {
|
|
565
|
+
readonly transactions: readonly WalletTransaction[];
|
|
562
566
|
} & {
|
|
563
567
|
readonly totalTransactionCount: number;
|
|
564
568
|
} & {
|
|
565
569
|
readonly earliestTx: number | null;
|
|
566
|
-
} & {
|
|
567
|
-
readonly fromAddress: string;
|
|
568
570
|
} & {
|
|
569
571
|
readonly pagination: TransactionActivityPagination;
|
|
570
572
|
} & {
|
|
571
573
|
readonly toAddressesFilter?: readonly string[] | undefined;
|
|
572
|
-
} & {
|
|
573
|
-
readonly transactions: readonly WalletTransaction[];
|
|
574
574
|
}, {}, {}>;
|
|
575
575
|
declare class TransactionActivity extends TransactionActivity_base {}
|
|
576
576
|
declare const DeployedContract_base: Schema.Class<DeployedContract, {
|
|
@@ -599,12 +599,12 @@ declare const DeployedContract_base: Schema.Class<DeployedContract, {
|
|
|
599
599
|
readonly symbol: string | null;
|
|
600
600
|
} & {
|
|
601
601
|
readonly contractAddress: string;
|
|
602
|
+
} & {
|
|
603
|
+
readonly contractName: string | null;
|
|
602
604
|
} & {
|
|
603
605
|
readonly blockNumber: number;
|
|
604
606
|
} & {
|
|
605
607
|
readonly blockTimestamp: number;
|
|
606
|
-
} & {
|
|
607
|
-
readonly contractName: string | null;
|
|
608
608
|
} & {
|
|
609
609
|
readonly blockTimestampUtc: string;
|
|
610
610
|
} & {
|
|
@@ -727,10 +727,10 @@ declare const TransactionActivityQuery_base: Schema.Class<TransactionActivityQue
|
|
|
727
727
|
readonly afterBlocknumber?: number | undefined;
|
|
728
728
|
} & {
|
|
729
729
|
readonly fromAddress?: string | undefined;
|
|
730
|
-
} & {
|
|
731
|
-
readonly toAddresses?: readonly string[] | undefined;
|
|
732
730
|
} & {
|
|
733
731
|
readonly successOnly?: boolean | undefined;
|
|
732
|
+
} & {
|
|
733
|
+
readonly toAddresses?: readonly string[] | undefined;
|
|
734
734
|
}, {}, {}>;
|
|
735
735
|
/** Same fields as MCP `getTransactionActivityTool` inputs (camelCase); POST `/v1/wallets/transaction-activity` body uses snake_case. */
|
|
736
736
|
declare class TransactionActivityQuery extends TransactionActivityQuery_base {}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ServiceError } from "../errors.js";
|
|
2
|
+
import { BlockchainType, EvmAddressType } from "../schemas/common.js";
|
|
3
|
+
import { AgentSafe, AgentSafeMetadata, EditAgentSafeMetadataParams, SetSafeProposerParams, SetSafeProposerResponse } from "../schemas/agent-wallets.js";
|
|
4
|
+
import { Context, Effect } from "effect";
|
|
5
|
+
|
|
6
|
+
//#region src/services/AgentSafesService.d.ts
|
|
7
|
+
declare const AgentSafesService_base: Context.TagClass<AgentSafesService, "AgentSafesService", {
|
|
8
|
+
readonly getAgentSafe: (blockchain: BlockchainType, safeAddress: EvmAddressType) => Effect.Effect<AgentSafe, ServiceError>;
|
|
9
|
+
readonly setSafeProposer: (blockchain: BlockchainType, safeAddress: EvmAddressType, params: SetSafeProposerParams) => Effect.Effect<SetSafeProposerResponse, ServiceError>;
|
|
10
|
+
readonly editAgentSafeMetadata: (blockchain: BlockchainType, safeAddress: EvmAddressType, params: EditAgentSafeMetadataParams) => Effect.Effect<AgentSafeMetadata, ServiceError>;
|
|
11
|
+
}>;
|
|
12
|
+
declare class AgentSafesService extends AgentSafesService_base {}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { AgentSafesService };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ServiceError } from "../errors.js";
|
|
2
|
+
import { EvmAddressType } from "../schemas/common.js";
|
|
3
|
+
import { AgentWalletSafesList, AgentWalletsList, AgentWalletsListParams } from "../schemas/agent-wallets.js";
|
|
4
|
+
import { Context, Effect } from "effect";
|
|
5
|
+
|
|
6
|
+
//#region src/services/AgentWalletsService.d.ts
|
|
7
|
+
declare const AgentWalletsService_base: Context.TagClass<AgentWalletsService, "AgentWalletsService", {
|
|
8
|
+
readonly listAgentWallets: (params?: AgentWalletsListParams) => Effect.Effect<AgentWalletsList, ServiceError>;
|
|
9
|
+
readonly listAgentWalletSafes: (agentWalletAddress: EvmAddressType) => Effect.Effect<AgentWalletSafesList, ServiceError>;
|
|
10
|
+
}>;
|
|
11
|
+
declare class AgentWalletsService extends AgentWalletsService_base {}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { AgentWalletsService };
|