@herd-labs/sdk 0.0.3 → 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/AdaptersServiceLive.d.ts +2 -2
- 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/CollectionsServiceLive.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/TransactionsServiceLive.js +1 -0
- package/dist/src/live/WalletsServiceLive.d.ts +2 -2
- package/dist/src/live/WalletsServiceLive.js +2 -1
- package/dist/src/schemas/actions.d.ts +13 -13
- 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 +17 -17
- package/dist/src/schemas/codeblocks.d.ts +7 -7
- package/dist/src/schemas/collections.d.ts +3 -3
- package/dist/src/schemas/contracts.d.ts +16 -229
- 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 +13 -13
- package/dist/src/schemas/transactions.d.ts +41 -37
- package/dist/src/schemas/transactions.js +1 -0
- package/dist/src/schemas/wallets.d.ts +47 -39
- package/dist/src/schemas/wallets.js +3 -1
- 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
|
@@ -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 };
|
|
@@ -66,9 +66,11 @@ declare const EvaluateExistingParams_base: Schema.Class<EvaluateExistingParams,
|
|
|
66
66
|
tevmForkId: Schema.optional<typeof Schema.String>;
|
|
67
67
|
simulationBlockNumber: Schema.optional<typeof Schema.Number>;
|
|
68
68
|
}>, never, {
|
|
69
|
-
readonly
|
|
69
|
+
readonly actionId: string;
|
|
70
70
|
} & {
|
|
71
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 actionId: string;
|
|
87
87
|
}, {}, {}>;
|
|
88
88
|
declare class EvaluateExistingParams extends EvaluateExistingParams_base {}
|
|
89
89
|
declare const TransactionStatus_base: Schema.Class<TransactionStatus, {
|
|
@@ -125,9 +125,9 @@ declare const TransactionStatus_base: Schema.Class<TransactionStatus, {
|
|
|
125
125
|
} & {
|
|
126
126
|
readonly blockchain?: "ethereum" | "base" | undefined;
|
|
127
127
|
} & {
|
|
128
|
-
readonly
|
|
128
|
+
readonly status: "success" | "failed" | "pending";
|
|
129
129
|
} & {
|
|
130
|
-
readonly
|
|
130
|
+
readonly blockNumber: number | null;
|
|
131
131
|
} & {
|
|
132
132
|
readonly batchName: string | null;
|
|
133
133
|
} & {
|
|
@@ -135,9 +135,9 @@ declare const TransactionStatus_base: Schema.Class<TransactionStatus, {
|
|
|
135
135
|
} & {
|
|
136
136
|
readonly toContractName: string | null;
|
|
137
137
|
} & {
|
|
138
|
-
readonly
|
|
138
|
+
readonly transactionHash: string | null;
|
|
139
139
|
} & {
|
|
140
|
-
readonly
|
|
140
|
+
readonly transactionErrorMessage: string | null;
|
|
141
141
|
} & {
|
|
142
142
|
readonly blockTimestamp: number | null;
|
|
143
143
|
} & {
|
|
@@ -178,17 +178,17 @@ declare const EvaluateResponse_base: Schema.Class<EvaluateResponse, {
|
|
|
178
178
|
tevmForkBlockchain: Schema.optional<Schema.Literal<["ethereum", "base"]>>;
|
|
179
179
|
}>, never, {
|
|
180
180
|
readonly hint?: string | undefined;
|
|
181
|
-
} & {
|
|
182
|
-
readonly tevmForkId?: string | undefined;
|
|
183
|
-
} & {
|
|
184
|
-
readonly status: "completed" | "suspended" | "failed";
|
|
185
|
-
} & {
|
|
186
|
-
readonly result?: unknown;
|
|
187
181
|
} & {
|
|
188
182
|
readonly error?: {
|
|
189
183
|
readonly message: string;
|
|
190
184
|
readonly name: string;
|
|
191
185
|
} | undefined;
|
|
186
|
+
} & {
|
|
187
|
+
readonly status: "failed" | "completed" | "suspended";
|
|
188
|
+
} & {
|
|
189
|
+
readonly tevmForkId?: string | undefined;
|
|
190
|
+
} & {
|
|
191
|
+
readonly result?: unknown;
|
|
192
192
|
} & {
|
|
193
193
|
readonly transactionStatuses?: readonly TransactionStatus[] | undefined;
|
|
194
194
|
} & {
|
|
@@ -453,16 +453,16 @@ 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
|
-
readonly
|
|
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
|
} & {
|
|
@@ -474,10 +474,10 @@ declare const Transaction_base: Schema.Class<Transaction, {
|
|
|
474
474
|
} & {
|
|
475
475
|
readonly transactionMetadata: {
|
|
476
476
|
readonly value: number;
|
|
477
|
+
readonly status: number;
|
|
477
478
|
readonly from: string;
|
|
478
479
|
readonly hash: string;
|
|
479
480
|
readonly type: string;
|
|
480
|
-
readonly status: number;
|
|
481
481
|
readonly blockNumber: number;
|
|
482
482
|
readonly to: string | null;
|
|
483
483
|
readonly blockHash: string;
|
|
@@ -496,9 +496,9 @@ declare const Transaction_base: Schema.Class<Transaction, {
|
|
|
496
496
|
};
|
|
497
497
|
} & {
|
|
498
498
|
readonly decodedLogs: readonly {
|
|
499
|
-
readonly transactionHash: string;
|
|
500
499
|
readonly address: string;
|
|
501
500
|
readonly blockNumber: number;
|
|
501
|
+
readonly transactionHash: string;
|
|
502
502
|
readonly data: string;
|
|
503
503
|
readonly blockHash: string;
|
|
504
504
|
readonly topics: readonly string[];
|
|
@@ -534,11 +534,10 @@ declare const Transaction_base: Schema.Class<Transaction, {
|
|
|
534
534
|
} & {
|
|
535
535
|
readonly balanceChanges: readonly {
|
|
536
536
|
readonly txHash?: string | undefined;
|
|
537
|
-
readonly
|
|
537
|
+
readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
|
|
538
538
|
readonly blockNumber: number;
|
|
539
|
+
readonly tokenAddress: string;
|
|
539
540
|
readonly blockTimestamp: number;
|
|
540
|
-
readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
|
|
541
|
-
readonly tokenSymbol: string;
|
|
542
541
|
readonly holderAddress: string;
|
|
543
542
|
readonly holderIsContract: boolean;
|
|
544
543
|
readonly balanceChange: number;
|
|
@@ -546,6 +545,7 @@ declare const Transaction_base: Schema.Class<Transaction, {
|
|
|
546
545
|
readonly tokenId: number;
|
|
547
546
|
readonly tokenDecimals: number;
|
|
548
547
|
readonly tokenName: string;
|
|
548
|
+
readonly tokenSymbol: string;
|
|
549
549
|
readonly tokenPriceUsd: number;
|
|
550
550
|
readonly tokenLogoUrl: string;
|
|
551
551
|
readonly holderEntityLabel?: string | null | undefined;
|
|
@@ -554,11 +554,10 @@ declare const Transaction_base: Schema.Class<Transaction, {
|
|
|
554
554
|
} & {
|
|
555
555
|
readonly transfers: readonly {
|
|
556
556
|
readonly txHash: string;
|
|
557
|
-
readonly
|
|
557
|
+
readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
|
|
558
558
|
readonly blockNumber: number;
|
|
559
|
+
readonly tokenAddress: string;
|
|
559
560
|
readonly blockTimestamp: number;
|
|
560
|
-
readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
|
|
561
|
-
readonly tokenSymbol: string;
|
|
562
561
|
readonly toEntityLabel?: string | null | undefined;
|
|
563
562
|
readonly fromEntityLabel?: string | null | undefined;
|
|
564
563
|
readonly traceAddress?: string | undefined;
|
|
@@ -567,6 +566,7 @@ declare const Transaction_base: Schema.Class<Transaction, {
|
|
|
567
566
|
readonly tokenId: number;
|
|
568
567
|
readonly tokenDecimals: number;
|
|
569
568
|
readonly tokenName: string;
|
|
569
|
+
readonly tokenSymbol: string;
|
|
570
570
|
readonly tokenPriceUsd: number;
|
|
571
571
|
readonly tokenLogoUrl: string;
|
|
572
572
|
readonly fromAddress: string;
|
|
@@ -766,12 +766,21 @@ 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 {
|
|
@@ -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,13 +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
|
-
readonly success: boolean;
|
|
885
|
-
readonly blockNumber: number;
|
|
886
|
-
readonly blockTimestamp: number;
|
|
887
892
|
readonly logs: readonly {
|
|
888
893
|
readonly contractAddress: string;
|
|
889
894
|
readonly contractName: string;
|
|
@@ -903,17 +908,12 @@ declare const LatestEventTransactions_base: Schema.Class<LatestEventTransactions
|
|
|
903
908
|
readonly rawTopics: readonly string[];
|
|
904
909
|
readonly rawData: string;
|
|
905
910
|
}[];
|
|
911
|
+
readonly from: string;
|
|
912
|
+
readonly blockNumber: number;
|
|
913
|
+
readonly success: boolean;
|
|
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, {
|
|
@@ -924,6 +924,7 @@ declare const LatestTxParams_base: Schema.Class<LatestTxParams, {
|
|
|
924
924
|
afterTimestamp: Schema.optional<typeof Schema.Number>;
|
|
925
925
|
beforeBlocknumber: Schema.optional<typeof Schema.Number>;
|
|
926
926
|
afterBlocknumber: Schema.optional<typeof Schema.Number>;
|
|
927
|
+
successOnly: Schema.optional<typeof Schema.Boolean>;
|
|
927
928
|
direction: Schema.optional<Schema.Literal<["direct", "indirect", "both"]>>;
|
|
928
929
|
topic1: Schema.optional<typeof Schema.String>;
|
|
929
930
|
topic2: Schema.optional<typeof Schema.String>;
|
|
@@ -937,12 +938,15 @@ declare const LatestTxParams_base: Schema.Class<LatestTxParams, {
|
|
|
937
938
|
afterTimestamp: Schema.optional<typeof Schema.Number>;
|
|
938
939
|
beforeBlocknumber: Schema.optional<typeof Schema.Number>;
|
|
939
940
|
afterBlocknumber: Schema.optional<typeof Schema.Number>;
|
|
941
|
+
successOnly: Schema.optional<typeof Schema.Boolean>;
|
|
940
942
|
direction: Schema.optional<Schema.Literal<["direct", "indirect", "both"]>>;
|
|
941
943
|
topic1: Schema.optional<typeof Schema.String>;
|
|
942
944
|
topic2: Schema.optional<typeof Schema.String>;
|
|
943
945
|
topic3: Schema.optional<typeof Schema.String>;
|
|
944
946
|
calledBy: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
945
947
|
}>, never, {
|
|
948
|
+
readonly limit?: number | undefined;
|
|
949
|
+
} & {
|
|
946
950
|
readonly page?: number | undefined;
|
|
947
951
|
} & {
|
|
948
952
|
readonly beforeTimestamp?: number | undefined;
|
|
@@ -952,10 +956,10 @@ declare const LatestTxParams_base: Schema.Class<LatestTxParams, {
|
|
|
952
956
|
readonly beforeBlocknumber?: number | undefined;
|
|
953
957
|
} & {
|
|
954
958
|
readonly afterBlocknumber?: number | undefined;
|
|
955
|
-
} & {
|
|
956
|
-
readonly limit?: number | undefined;
|
|
957
959
|
} & {
|
|
958
960
|
readonly offset?: number | undefined;
|
|
961
|
+
} & {
|
|
962
|
+
readonly successOnly?: boolean | undefined;
|
|
959
963
|
} & {
|
|
960
964
|
readonly direction?: "direct" | "indirect" | "both" | undefined;
|
|
961
965
|
} & {
|
|
@@ -273,6 +273,7 @@ var LatestTxParams = class extends Schema.Class("LatestTxParams")({
|
|
|
273
273
|
afterTimestamp: Schema.optional(Schema.Number),
|
|
274
274
|
beforeBlocknumber: Schema.optional(Schema.Number),
|
|
275
275
|
afterBlocknumber: Schema.optional(Schema.Number),
|
|
276
|
+
successOnly: Schema.optional(Schema.Boolean),
|
|
276
277
|
direction: Schema.optional(Schema.Literal("direct", "indirect", "both")),
|
|
277
278
|
topic1: Schema.optional(Schema.String),
|
|
278
279
|
topic2: Schema.optional(Schema.String),
|
|
@@ -19,10 +19,10 @@ declare const WalletBalance_base: Schema.Class<WalletBalance, {
|
|
|
19
19
|
readonly symbol: string | null;
|
|
20
20
|
} & {
|
|
21
21
|
readonly address: string;
|
|
22
|
-
} & {
|
|
23
|
-
readonly decimals: number | null;
|
|
24
22
|
} & {
|
|
25
23
|
readonly valueUsd: number | null;
|
|
24
|
+
} & {
|
|
25
|
+
readonly decimals: number | null;
|
|
26
26
|
} & {
|
|
27
27
|
readonly amount: string | number;
|
|
28
28
|
} & {
|
|
@@ -38,9 +38,9 @@ declare const Erc7702Delegation_base: Schema.Class<Erc7702Delegation, {
|
|
|
38
38
|
contractName: typeof Schema.String;
|
|
39
39
|
functions: Schema.Array$<typeof Schema.String>;
|
|
40
40
|
}>, never, {
|
|
41
|
-
readonly contractName: string;
|
|
42
|
-
} & {
|
|
43
41
|
readonly address: string;
|
|
42
|
+
} & {
|
|
43
|
+
readonly contractName: string;
|
|
44
44
|
} & {
|
|
45
45
|
readonly functions: readonly string[];
|
|
46
46
|
}, {}, {}>;
|
|
@@ -141,20 +141,20 @@ 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 walletAddress: string;
|
|
146
|
-
} & {
|
|
147
|
-
readonly multisigDetails?: MultisigDetails | undefined;
|
|
148
144
|
} & {
|
|
149
145
|
readonly implementationAddress?: string | undefined;
|
|
150
146
|
} & {
|
|
151
|
-
readonly
|
|
147
|
+
readonly walletAddress: string;
|
|
152
148
|
} & {
|
|
153
149
|
readonly totalTransactionCount: number;
|
|
154
150
|
} & {
|
|
155
|
-
readonly
|
|
151
|
+
readonly totalDeployedContractsCount: number;
|
|
152
|
+
} & {
|
|
153
|
+
readonly walletType: "contract" | "eoa" | "erc7702" | "erc4337" | "multisig";
|
|
156
154
|
} & {
|
|
157
155
|
readonly erc7702Delegation?: Erc7702Delegation | undefined;
|
|
156
|
+
} & {
|
|
157
|
+
readonly multisigDetails?: MultisigDetails | undefined;
|
|
158
158
|
} & {
|
|
159
159
|
readonly earliestTx: number | null;
|
|
160
160
|
} & {
|
|
@@ -209,8 +209,6 @@ declare const TokenTransfer_base: Schema.Class<TokenTransfer, {
|
|
|
209
209
|
readonly blockNumber: number;
|
|
210
210
|
} & {
|
|
211
211
|
readonly blockTimestamp: number;
|
|
212
|
-
} & {
|
|
213
|
-
readonly blockTimestampUtc: string;
|
|
214
212
|
} & {
|
|
215
213
|
readonly logIndex: number;
|
|
216
214
|
} & {
|
|
@@ -219,6 +217,8 @@ declare const TokenTransfer_base: Schema.Class<TokenTransfer, {
|
|
|
219
217
|
readonly toAddress: string;
|
|
220
218
|
} & {
|
|
221
219
|
readonly amount: string;
|
|
220
|
+
} & {
|
|
221
|
+
readonly blockTimestampUtc: string;
|
|
222
222
|
} & {
|
|
223
223
|
readonly direction: "in" | "out";
|
|
224
224
|
} & {
|
|
@@ -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 tokenAddress: string;
|
|
262
260
|
} & {
|
|
263
261
|
readonly balance: TokenBalanceInfo;
|
|
264
262
|
} & {
|
|
265
|
-
readonly
|
|
263
|
+
readonly tokenAddress: string;
|
|
266
264
|
} & {
|
|
267
265
|
readonly holderAddress: string;
|
|
268
266
|
} & {
|
|
269
267
|
readonly transfers: readonly TokenTransfer[];
|
|
268
|
+
} & {
|
|
269
|
+
readonly pagination: TokenActivityPagination;
|
|
270
270
|
}, {}, {}>;
|
|
271
271
|
declare class TokenActivity extends TokenActivity_base {}
|
|
272
272
|
declare const WalletTxCall_base: Schema.Class<WalletTxCall, {
|
|
@@ -283,10 +283,10 @@ declare const WalletTxCall_base: Schema.Class<WalletTxCall, {
|
|
|
283
283
|
entityLabel: Schema.NullOr<typeof Schema.String>;
|
|
284
284
|
}>, never, {
|
|
285
285
|
readonly functionSignature: string;
|
|
286
|
-
} & {
|
|
287
|
-
readonly contractName: string | null;
|
|
288
286
|
} & {
|
|
289
287
|
readonly entityLabel: string | null;
|
|
288
|
+
} & {
|
|
289
|
+
readonly contractName: string | null;
|
|
290
290
|
} & {
|
|
291
291
|
readonly functionName: string;
|
|
292
292
|
} & {
|
|
@@ -356,15 +356,13 @@ 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
|
|
364
|
-
} & {
|
|
365
|
-
readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
|
|
363
|
+
readonly tokenAddress: string;
|
|
366
364
|
} & {
|
|
367
|
-
readonly
|
|
365
|
+
readonly blockTimestamp: number;
|
|
368
366
|
} & {
|
|
369
367
|
readonly toEntityLabel?: string | null | undefined;
|
|
370
368
|
} & {
|
|
@@ -377,6 +375,8 @@ declare const WalletTxTransfer_base: Schema.Class<WalletTxTransfer, {
|
|
|
377
375
|
readonly tokenDecimals: number;
|
|
378
376
|
} & {
|
|
379
377
|
readonly tokenName: string;
|
|
378
|
+
} & {
|
|
379
|
+
readonly tokenSymbol: string;
|
|
380
380
|
} & {
|
|
381
381
|
readonly tokenPriceUsd: number;
|
|
382
382
|
} & {
|
|
@@ -434,15 +434,13 @@ 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
440
|
} & {
|
|
441
|
-
readonly
|
|
442
|
-
} & {
|
|
443
|
-
readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
|
|
441
|
+
readonly tokenAddress: string;
|
|
444
442
|
} & {
|
|
445
|
-
readonly
|
|
443
|
+
readonly blockTimestamp: number;
|
|
446
444
|
} & {
|
|
447
445
|
readonly holderAddress: string;
|
|
448
446
|
} & {
|
|
@@ -457,6 +455,8 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
|
|
|
457
455
|
readonly tokenDecimals: number;
|
|
458
456
|
} & {
|
|
459
457
|
readonly tokenName: string;
|
|
458
|
+
} & {
|
|
459
|
+
readonly tokenSymbol: string;
|
|
460
460
|
} & {
|
|
461
461
|
readonly tokenPriceUsd: number;
|
|
462
462
|
} & {
|
|
@@ -475,6 +475,7 @@ declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
|
|
|
475
475
|
blockTimestampUtc: typeof Schema.String;
|
|
476
476
|
blockNumber: typeof Schema.Number;
|
|
477
477
|
success: typeof Schema.Boolean;
|
|
478
|
+
errorMessage: Schema.optional<typeof Schema.String>;
|
|
478
479
|
calls: Schema.Array$<typeof WalletTxCall>;
|
|
479
480
|
walletBalanceChanges: Schema.Array$<typeof WalletTxBalanceChange>;
|
|
480
481
|
createdContracts: Schema.Array$<Schema.Struct<{
|
|
@@ -489,6 +490,7 @@ declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
|
|
|
489
490
|
blockTimestampUtc: typeof Schema.String;
|
|
490
491
|
blockNumber: typeof Schema.Number;
|
|
491
492
|
success: typeof Schema.Boolean;
|
|
493
|
+
errorMessage: Schema.optional<typeof Schema.String>;
|
|
492
494
|
calls: Schema.Array$<typeof WalletTxCall>;
|
|
493
495
|
walletBalanceChanges: Schema.Array$<typeof WalletTxBalanceChange>;
|
|
494
496
|
createdContracts: Schema.Array$<Schema.Struct<{
|
|
@@ -500,21 +502,23 @@ declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
|
|
|
500
502
|
}>, never, {
|
|
501
503
|
readonly txHash: string;
|
|
502
504
|
} & {
|
|
503
|
-
readonly
|
|
505
|
+
readonly errorMessage?: string | undefined;
|
|
504
506
|
} & {
|
|
505
507
|
readonly blockNumber: number;
|
|
506
508
|
} & {
|
|
507
|
-
readonly
|
|
509
|
+
readonly success: boolean;
|
|
508
510
|
} & {
|
|
509
|
-
readonly
|
|
511
|
+
readonly blockTimestamp: number;
|
|
510
512
|
} & {
|
|
511
513
|
readonly createdContracts: readonly {
|
|
512
|
-
readonly contractName: string | null;
|
|
513
514
|
readonly address: string;
|
|
514
515
|
readonly entityLabel: string | null;
|
|
516
|
+
readonly contractName: string | null;
|
|
515
517
|
}[];
|
|
516
518
|
} & {
|
|
517
519
|
readonly actionExecution?: WalletTxActionExecution | undefined;
|
|
520
|
+
} & {
|
|
521
|
+
readonly blockTimestampUtc: string;
|
|
518
522
|
} & {
|
|
519
523
|
readonly calls: readonly WalletTxCall[];
|
|
520
524
|
} & {
|
|
@@ -555,16 +559,16 @@ declare const TransactionActivity_base: Schema.Class<TransactionActivity, {
|
|
|
555
559
|
pagination: typeof TransactionActivityPagination;
|
|
556
560
|
}>, never, {
|
|
557
561
|
readonly blockchain: "ethereum" | "base";
|
|
558
|
-
} & {
|
|
559
|
-
readonly transactions: readonly WalletTransaction[];
|
|
560
|
-
} & {
|
|
561
|
-
readonly pagination: TransactionActivityPagination;
|
|
562
562
|
} & {
|
|
563
563
|
readonly fromAddress: string;
|
|
564
|
+
} & {
|
|
565
|
+
readonly transactions: readonly WalletTransaction[];
|
|
564
566
|
} & {
|
|
565
567
|
readonly totalTransactionCount: number;
|
|
566
568
|
} & {
|
|
567
569
|
readonly earliestTx: number | null;
|
|
570
|
+
} & {
|
|
571
|
+
readonly pagination: TransactionActivityPagination;
|
|
568
572
|
} & {
|
|
569
573
|
readonly toAddressesFilter?: readonly string[] | undefined;
|
|
570
574
|
}, {}, {}>;
|
|
@@ -645,14 +649,14 @@ declare const DeployedContracts_base: Schema.Class<DeployedContracts, {
|
|
|
645
649
|
pagination: typeof DeployedContractsPagination;
|
|
646
650
|
}>, never, {
|
|
647
651
|
readonly blockchain: "ethereum" | "base";
|
|
648
|
-
} & {
|
|
649
|
-
readonly deployerAddress: string;
|
|
650
|
-
} & {
|
|
651
|
-
readonly isEOA: boolean;
|
|
652
652
|
} & {
|
|
653
653
|
readonly totalDeployedContractsCount: number;
|
|
654
654
|
} & {
|
|
655
655
|
readonly pagination: DeployedContractsPagination;
|
|
656
|
+
} & {
|
|
657
|
+
readonly deployerAddress: string;
|
|
658
|
+
} & {
|
|
659
|
+
readonly isEOA: boolean;
|
|
656
660
|
} & {
|
|
657
661
|
readonly deployedContracts: readonly DeployedContract[];
|
|
658
662
|
}, {}, {}>;
|
|
@@ -698,6 +702,7 @@ declare const TransactionActivityQuery_base: Schema.Class<TransactionActivityQue
|
|
|
698
702
|
afterTimestamp: Schema.optional<typeof Schema.Number>;
|
|
699
703
|
beforeBlocknumber: Schema.optional<typeof Schema.Number>;
|
|
700
704
|
afterBlocknumber: Schema.optional<typeof Schema.Number>;
|
|
705
|
+
successOnly: Schema.optional<typeof Schema.Boolean>;
|
|
701
706
|
}, Schema.Struct.Encoded<{
|
|
702
707
|
blockchain: Schema.Literal<["ethereum", "base"]>;
|
|
703
708
|
fromAddress: Schema.optional<typeof Schema.String>;
|
|
@@ -707,6 +712,7 @@ declare const TransactionActivityQuery_base: Schema.Class<TransactionActivityQue
|
|
|
707
712
|
afterTimestamp: Schema.optional<typeof Schema.Number>;
|
|
708
713
|
beforeBlocknumber: Schema.optional<typeof Schema.Number>;
|
|
709
714
|
afterBlocknumber: Schema.optional<typeof Schema.Number>;
|
|
715
|
+
successOnly: Schema.optional<typeof Schema.Boolean>;
|
|
710
716
|
}>, never, {
|
|
711
717
|
readonly blockchain: "ethereum" | "base";
|
|
712
718
|
} & {
|
|
@@ -721,6 +727,8 @@ declare const TransactionActivityQuery_base: Schema.Class<TransactionActivityQue
|
|
|
721
727
|
readonly afterBlocknumber?: number | undefined;
|
|
722
728
|
} & {
|
|
723
729
|
readonly fromAddress?: string | undefined;
|
|
730
|
+
} & {
|
|
731
|
+
readonly successOnly?: boolean | undefined;
|
|
724
732
|
} & {
|
|
725
733
|
readonly toAddresses?: readonly string[] | undefined;
|
|
726
734
|
}, {}, {}>;
|
|
@@ -139,6 +139,7 @@ var WalletTransaction = class extends Schema.Class("WalletTransaction")({
|
|
|
139
139
|
blockTimestampUtc: Schema.String,
|
|
140
140
|
blockNumber: Schema.Number,
|
|
141
141
|
success: Schema.Boolean,
|
|
142
|
+
errorMessage: Schema.optional(Schema.String),
|
|
142
143
|
calls: Schema.Array(WalletTxCall),
|
|
143
144
|
walletBalanceChanges: Schema.Array(WalletTxBalanceChange),
|
|
144
145
|
createdContracts: Schema.Array(Schema.Struct({
|
|
@@ -205,7 +206,8 @@ var TransactionActivityQuery = class extends Schema.Class("TransactionActivityQu
|
|
|
205
206
|
beforeTimestamp: Schema.optional(Schema.Number),
|
|
206
207
|
afterTimestamp: Schema.optional(Schema.Number),
|
|
207
208
|
beforeBlocknumber: Schema.optional(Schema.Number),
|
|
208
|
-
afterBlocknumber: Schema.optional(Schema.Number)
|
|
209
|
+
afterBlocknumber: Schema.optional(Schema.Number),
|
|
210
|
+
successOnly: Schema.optional(Schema.Boolean)
|
|
209
211
|
}) {};
|
|
210
212
|
|
|
211
213
|
//#endregion
|
|
@@ -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 };
|