@herd-labs/sdk 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/live/AgentSafesServiceLive.d.ts +2 -2
- package/dist/src/live/AgentWalletsServiceLive.d.ts +2 -2
- package/dist/src/live/AgentWorkflowsServiceLive.d.ts +2 -2
- package/dist/src/live/AuthServiceLive.d.ts +2 -2
- package/dist/src/live/AuthServiceLive.js +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/DocsServiceLive.d.ts +2 -2
- package/dist/src/live/GroupsServiceLive.d.ts +2 -2
- package/dist/src/live/HalServiceLive.d.ts +2 -2
- package/dist/src/live/HalServiceLive.js +1 -1
- package/dist/src/live/TransactionsServiceLive.d.ts +2 -2
- package/dist/src/live/WalletsServiceLive.d.ts +2 -2
- package/dist/src/live/http.d.ts +3 -2
- package/dist/src/live/http.js +4 -6
- package/dist/src/schemas/actions.d.ts +14 -14
- package/dist/src/schemas/adapters.d.ts +2 -2
- package/dist/src/schemas/agent-wallets.d.ts +2 -2
- package/dist/src/schemas/auth.d.ts +6 -2
- package/dist/src/schemas/auth.js +4 -1
- package/dist/src/schemas/bookmarks.d.ts +10 -10
- package/dist/src/schemas/codeblocks.d.ts +3 -3
- package/dist/src/schemas/contracts.d.ts +15 -15
- package/dist/src/schemas/hal.d.ts +17 -15
- package/dist/src/schemas/hal.js +1 -1
- package/dist/src/schemas/transactions.d.ts +76 -76
- package/dist/src/schemas/wallets.d.ts +44 -44
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { AgentSafesService } from "../services/AgentSafesService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _effect_platform_HttpClient1 from "@effect/platform/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/AgentSafesServiceLive.d.ts
|
|
7
|
-
declare const AgentSafesServiceLive: Layer.Layer<AgentSafesService, never, HerdConfig |
|
|
7
|
+
declare const AgentSafesServiceLive: Layer.Layer<AgentSafesService, never, HerdConfig | _effect_platform_HttpClient1.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AgentSafesServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { AgentWalletsService } from "../services/AgentWalletsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _effect_platform_HttpClient11 from "@effect/platform/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/AgentWalletsServiceLive.d.ts
|
|
7
|
-
declare const AgentWalletsServiceLive: Layer.Layer<AgentWalletsService, never, HerdConfig |
|
|
7
|
+
declare const AgentWalletsServiceLive: Layer.Layer<AgentWalletsService, never, HerdConfig | _effect_platform_HttpClient11.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AgentWalletsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { AgentWorkflowsService } from "../services/AgentWorkflowsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _effect_platform_HttpClient12 from "@effect/platform/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/AgentWorkflowsServiceLive.d.ts
|
|
7
|
-
declare const AgentWorkflowsServiceLive: Layer.Layer<AgentWorkflowsService, never, HerdConfig |
|
|
7
|
+
declare const AgentWorkflowsServiceLive: Layer.Layer<AgentWorkflowsService, never, HerdConfig | _effect_platform_HttpClient12.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AgentWorkflowsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { AuthService } from "../services/AuthService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _effect_platform_HttpClient13 from "@effect/platform/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/AuthServiceLive.d.ts
|
|
7
|
-
declare const AuthServiceLive: Layer.Layer<AuthService, never, HerdConfig |
|
|
7
|
+
declare const AuthServiceLive: Layer.Layer<AuthService, never, HerdConfig | _effect_platform_HttpClient13.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AuthServiceLive };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AuthError } from "../errors.js";
|
|
2
2
|
import { ApiKeyListResponse, CreatedApiKey, TokenResponse, WhoamiResponse } from "../schemas/auth.js";
|
|
3
3
|
import { AuthService } from "../services/AuthService.js";
|
|
4
|
-
import { authorizedClient, checkStatus, jsonBody, makeUrl } from "./http.js";
|
|
4
|
+
import { authorizedClient, checkStatus, jsonBody, makeUrl, urlEncodedBody } from "./http.js";
|
|
5
5
|
import { Effect, Layer, pipe } from "effect";
|
|
6
6
|
import { HttpClientResponse } from "@effect/platform";
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ const AuthServiceLive = Layer.effect(AuthService, Effect.gen(function* () {
|
|
|
10
10
|
const { baseUrl, client } = yield* authorizedClient;
|
|
11
11
|
return {
|
|
12
12
|
whoami: () => pipe(client.get(makeUrl(baseUrl, "/v1/users/me")), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(WhoamiResponse)), Effect.mapError((error) => new AuthError({ message: String(error) }))),
|
|
13
|
-
refreshToken: (refreshToken, clientId) => pipe(client.post(makeUrl(baseUrl, "/api/auth/oauth2/token"), { body:
|
|
13
|
+
refreshToken: (refreshToken, clientId) => pipe(client.post(makeUrl(baseUrl, "/api/auth/oauth2/token"), { body: urlEncodedBody({
|
|
14
14
|
grant_type: "refresh_token",
|
|
15
15
|
refresh_token: refreshToken,
|
|
16
16
|
client_id: clientId,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { BookmarksService } from "../services/BookmarksService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _effect_platform_HttpClient2 from "@effect/platform/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/BookmarksServiceLive.d.ts
|
|
7
|
-
declare const BookmarksServiceLive: Layer.Layer<BookmarksService, never, HerdConfig |
|
|
7
|
+
declare const BookmarksServiceLive: Layer.Layer<BookmarksService, never, HerdConfig | _effect_platform_HttpClient2.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { BookmarksServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { CodeBlocksService } from "../services/CodeBlocksService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _effect_platform_HttpClient9 from "@effect/platform/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/CodeBlocksServiceLive.d.ts
|
|
7
|
-
declare const CodeBlocksServiceLive: Layer.Layer<CodeBlocksService, never, HerdConfig |
|
|
7
|
+
declare const CodeBlocksServiceLive: Layer.Layer<CodeBlocksService, never, HerdConfig | _effect_platform_HttpClient9.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { CodeBlocksServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { CollectionsService } from "../services/CollectionsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _effect_platform_HttpClient4 from "@effect/platform/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/CollectionsServiceLive.d.ts
|
|
7
|
-
declare const CollectionsServiceLive: Layer.Layer<CollectionsService, never, HerdConfig |
|
|
7
|
+
declare const CollectionsServiceLive: Layer.Layer<CollectionsService, never, HerdConfig | _effect_platform_HttpClient4.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { CollectionsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { ContractsService } from "../services/ContractsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _effect_platform_HttpClient5 from "@effect/platform/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/ContractsServiceLive.d.ts
|
|
7
|
-
declare const ContractsServiceLive: Layer.Layer<ContractsService, never, HerdConfig |
|
|
7
|
+
declare const ContractsServiceLive: Layer.Layer<ContractsService, never, HerdConfig | _effect_platform_HttpClient5.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ContractsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { DocsService } from "../services/DocsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _effect_platform_HttpClient3 from "@effect/platform/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/DocsServiceLive.d.ts
|
|
7
|
-
declare const DocsServiceLive: Layer.Layer<DocsService, never, HerdConfig |
|
|
7
|
+
declare const DocsServiceLive: Layer.Layer<DocsService, never, HerdConfig | _effect_platform_HttpClient3.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { DocsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { GroupsService } from "../services/GroupsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _effect_platform_HttpClient7 from "@effect/platform/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/GroupsServiceLive.d.ts
|
|
7
|
-
declare const GroupsServiceLive: Layer.Layer<GroupsService, never, HerdConfig |
|
|
7
|
+
declare const GroupsServiceLive: Layer.Layer<GroupsService, never, HerdConfig | _effect_platform_HttpClient7.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { GroupsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { HalService } from "../services/HalService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _effect_platform_HttpClient8 from "@effect/platform/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/HalServiceLive.d.ts
|
|
7
|
-
declare const HalServiceLive: Layer.Layer<HalService, never, HerdConfig |
|
|
7
|
+
declare const HalServiceLive: Layer.Layer<HalService, never, HerdConfig | _effect_platform_HttpClient8.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { HalServiceLive };
|
|
@@ -28,7 +28,7 @@ const HalServiceLive = Layer.effect(HalService, Effect.gen(function* () {
|
|
|
28
28
|
}),
|
|
29
29
|
evaluateExisting: (params) => callEvaluateExisting({
|
|
30
30
|
actionId: params.actionId,
|
|
31
|
-
|
|
31
|
+
actionExpressionId: params.actionExpressionId,
|
|
32
32
|
walletAddress: params.walletAddress,
|
|
33
33
|
inputValues: params.inputValues ?? {},
|
|
34
34
|
simulationBalanceFunding: params.simulationBalanceFunding ?? [],
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { TransactionsService } from "../services/TransactionsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _effect_platform_HttpClient6 from "@effect/platform/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/TransactionsServiceLive.d.ts
|
|
7
|
-
declare const TransactionsServiceLive: Layer.Layer<TransactionsService, never, HerdConfig |
|
|
7
|
+
declare const TransactionsServiceLive: Layer.Layer<TransactionsService, never, HerdConfig | _effect_platform_HttpClient6.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { TransactionsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { WalletsService } from "../services/WalletsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _effect_platform_HttpClient10 from "@effect/platform/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/WalletsServiceLive.d.ts
|
|
7
|
-
declare const WalletsServiceLive: Layer.Layer<WalletsService, never, HerdConfig |
|
|
7
|
+
declare const WalletsServiceLive: Layer.Layer<WalletsService, never, HerdConfig | _effect_platform_HttpClient10.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { WalletsServiceLive };
|
package/dist/src/live/http.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { ServiceError } from "../errors.js";
|
|
3
3
|
import { Effect, Schema } from "effect";
|
|
4
|
-
import { HttpBody, HttpClient, HttpClientResponse } from "@effect/platform";
|
|
4
|
+
import { HttpBody, HttpClient, HttpClientResponse, UrlParams } from "@effect/platform";
|
|
5
5
|
import * as _effect_platform_HttpClientError0 from "@effect/platform/HttpClientError";
|
|
6
6
|
|
|
7
7
|
//#region src/live/http.d.ts
|
|
@@ -13,5 +13,6 @@ declare const authorizedClient: Effect.Effect<{
|
|
|
13
13
|
declare const handleJsonResponse: <A, I, R>(schema: Schema.Schema<A, I, R>) => (response: HttpClientResponse.HttpClientResponse) => Effect.Effect<A, ServiceError, R>;
|
|
14
14
|
declare const checkStatus: (response: HttpClientResponse.HttpClientResponse) => Effect.Effect<HttpClientResponse.HttpClientResponse, ServiceError>;
|
|
15
15
|
declare const jsonBody: (body: unknown) => HttpBody.HttpBody;
|
|
16
|
+
declare const urlEncodedBody: (body: UrlParams.Input) => HttpBody.HttpBody;
|
|
16
17
|
//#endregion
|
|
17
|
-
export { authorizedClient, checkStatus, handleJsonResponse, jsonBody, makeUrl };
|
|
18
|
+
export { authorizedClient, checkStatus, handleJsonResponse, jsonBody, makeUrl, urlEncodedBody };
|
package/dist/src/live/http.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { ServiceError } from "../errors.js";
|
|
3
3
|
import { Effect, Either, pipe } from "effect";
|
|
4
|
-
import { HttpBody, HttpClient, HttpClientRequest, HttpClientResponse } from "@effect/platform";
|
|
4
|
+
import { HttpBody, HttpClient, HttpClientRequest, HttpClientResponse, UrlParams } from "@effect/platform";
|
|
5
5
|
|
|
6
6
|
//#region src/live/http.ts
|
|
7
7
|
const makeUrl = (baseUrl, path, queryParams) => {
|
|
@@ -27,10 +27,7 @@ const authorizedClient = Effect.gen(function* () {
|
|
|
27
27
|
});
|
|
28
28
|
return {
|
|
29
29
|
baseUrl,
|
|
30
|
-
client: client.pipe(HttpClient.mapRequest(HttpClientRequest.setHeaders(
|
|
31
|
-
...authHeaders,
|
|
32
|
-
"Content-Type": "application/json"
|
|
33
|
-
})))
|
|
30
|
+
client: client.pipe(HttpClient.mapRequest(HttpClientRequest.setHeaders(authHeaders)))
|
|
34
31
|
};
|
|
35
32
|
});
|
|
36
33
|
const handleJsonResponse = (schema) => (response) => pipe(HttpClientResponse.schemaBodyJson(schema)(response), Effect.mapError((error) => new ServiceError({
|
|
@@ -60,6 +57,7 @@ const checkStatus = (response) => {
|
|
|
60
57
|
}));
|
|
61
58
|
};
|
|
62
59
|
const jsonBody = (body) => HttpBody.unsafeJson(body);
|
|
60
|
+
const urlEncodedBody = (body) => HttpBody.urlParams(UrlParams.fromInput(body));
|
|
63
61
|
|
|
64
62
|
//#endregion
|
|
65
|
-
export { authorizedClient, checkStatus, handleJsonResponse, jsonBody, makeUrl };
|
|
63
|
+
export { authorizedClient, checkStatus, handleJsonResponse, jsonBody, makeUrl, urlEncodedBody };
|
|
@@ -27,11 +27,11 @@ declare const ActionExpression_base: Schema.Class<ActionExpression, {
|
|
|
27
27
|
} & {
|
|
28
28
|
readonly name: string;
|
|
29
29
|
} & {
|
|
30
|
-
readonly
|
|
30
|
+
readonly intent?: string;
|
|
31
31
|
} & {
|
|
32
|
-
readonly
|
|
32
|
+
readonly expression: unknown;
|
|
33
33
|
} & {
|
|
34
|
-
readonly publishedAt?: string | null
|
|
34
|
+
readonly publishedAt?: string | null;
|
|
35
35
|
}, {}, {}>;
|
|
36
36
|
declare class ActionExpression extends ActionExpression_base {}
|
|
37
37
|
declare const Action_base: Schema.Class<Action, {
|
|
@@ -69,13 +69,13 @@ declare const Action_base: Schema.Class<Action, {
|
|
|
69
69
|
} & {
|
|
70
70
|
readonly name: string;
|
|
71
71
|
} & {
|
|
72
|
-
readonly intent?: string
|
|
72
|
+
readonly intent?: string;
|
|
73
73
|
} & {
|
|
74
|
-
readonly expressionType?: string
|
|
74
|
+
readonly expressionType?: string;
|
|
75
75
|
} & {
|
|
76
|
-
readonly latestExpression?: ActionExpression | null
|
|
76
|
+
readonly latestExpression?: ActionExpression | null;
|
|
77
77
|
} & {
|
|
78
|
-
readonly expressionWithReferences?: string | null
|
|
78
|
+
readonly expressionWithReferences?: string | null;
|
|
79
79
|
}, {}, {}>;
|
|
80
80
|
declare class Action extends Action_base {}
|
|
81
81
|
declare const ActionVersion_base: Schema.Class<ActionVersion, {
|
|
@@ -103,11 +103,11 @@ declare const ActionVersion_base: Schema.Class<ActionVersion, {
|
|
|
103
103
|
} & {
|
|
104
104
|
readonly name: string;
|
|
105
105
|
} & {
|
|
106
|
-
readonly
|
|
106
|
+
readonly intent?: string;
|
|
107
107
|
} & {
|
|
108
|
-
readonly
|
|
108
|
+
readonly expression: unknown;
|
|
109
109
|
} & {
|
|
110
|
-
readonly publishedAt?: string | null
|
|
110
|
+
readonly publishedAt?: string | null;
|
|
111
111
|
}, {}, {}>;
|
|
112
112
|
declare class ActionVersion extends ActionVersion_base {}
|
|
113
113
|
declare const ActionsSearchParams_base: Schema.Class<ActionsSearchParams, {
|
|
@@ -210,9 +210,9 @@ declare const RelatedAdaptersContract_base: Schema.Class<RelatedAdaptersContract
|
|
|
210
210
|
contractAddress: typeof Schema.String;
|
|
211
211
|
functionSignatures: Schema.Array$<typeof RelatedAdaptersFunctionSignature>;
|
|
212
212
|
}>, never, {
|
|
213
|
-
readonly contractAddress: string;
|
|
214
|
-
} & {
|
|
215
213
|
readonly blockchain: string | null;
|
|
214
|
+
} & {
|
|
215
|
+
readonly contractAddress: string;
|
|
216
216
|
} & {
|
|
217
217
|
readonly functionSignatures: readonly RelatedAdaptersFunctionSignature[];
|
|
218
218
|
}, {}, {}>;
|
|
@@ -252,10 +252,10 @@ declare const CreateActionParams_base: Schema.Class<CreateActionParams, {
|
|
|
252
252
|
expression: typeof Schema.Unknown;
|
|
253
253
|
}>, never, {
|
|
254
254
|
readonly name: string;
|
|
255
|
-
} & {
|
|
256
|
-
readonly expression: unknown;
|
|
257
255
|
} & {
|
|
258
256
|
readonly intent?: string | undefined;
|
|
257
|
+
} & {
|
|
258
|
+
readonly expression: unknown;
|
|
259
259
|
}, {}, {}>;
|
|
260
260
|
declare class CreateActionParams extends CreateActionParams_base {}
|
|
261
261
|
declare const CreateActionResponse_base: Schema.Class<CreateActionResponse, {
|
|
@@ -11,10 +11,10 @@ declare const CreateAdapterParams_base: Schema.Class<CreateAdapterParams, {
|
|
|
11
11
|
expression: typeof Schema.Unknown;
|
|
12
12
|
}>, never, {
|
|
13
13
|
readonly name: string;
|
|
14
|
-
} & {
|
|
15
|
-
readonly expression: unknown;
|
|
16
14
|
} & {
|
|
17
15
|
readonly intent?: string | undefined;
|
|
16
|
+
} & {
|
|
17
|
+
readonly expression: unknown;
|
|
18
18
|
}, {}, {}>;
|
|
19
19
|
declare class CreateAdapterParams extends CreateAdapterParams_base {}
|
|
20
20
|
//#endregion
|
|
@@ -72,14 +72,14 @@ declare const LinkedAgentWallet_base: Schema.Class<LinkedAgentWallet, {
|
|
|
72
72
|
readonly name: string | null;
|
|
73
73
|
} & {
|
|
74
74
|
readonly intent: string | null;
|
|
75
|
+
} & {
|
|
76
|
+
readonly agentWalletId: string;
|
|
75
77
|
} & {
|
|
76
78
|
readonly address: string & effect_Brand0.Brand<"EvmAddress">;
|
|
77
79
|
} & {
|
|
78
80
|
readonly isProposer: boolean;
|
|
79
81
|
} & {
|
|
80
82
|
readonly isSigner: boolean;
|
|
81
|
-
} & {
|
|
82
|
-
readonly agentWalletId: string;
|
|
83
83
|
}, {}, {}>;
|
|
84
84
|
declare class LinkedAgentWallet extends LinkedAgentWallet_base {}
|
|
85
85
|
declare const AgentSafeMetadata_base: Schema.Class<AgentSafeMetadata, {
|
|
@@ -4,6 +4,7 @@ import { ApiKey as ApiKey$1 } from "@better-auth/api-key/types";
|
|
|
4
4
|
//#region src/schemas/auth.d.ts
|
|
5
5
|
declare const FeatureFlagsSchema: Schema.Struct<{
|
|
6
6
|
agentWalletApi: typeof Schema.Boolean;
|
|
7
|
+
apiKeys: typeof Schema.Boolean;
|
|
7
8
|
}>;
|
|
8
9
|
type FeatureFlags = typeof FeatureFlagsSchema.Type;
|
|
9
10
|
declare const WhoamiResponse_base: Schema.Class<WhoamiResponse, {
|
|
@@ -11,12 +12,14 @@ declare const WhoamiResponse_base: Schema.Class<WhoamiResponse, {
|
|
|
11
12
|
email: typeof Schema.String;
|
|
12
13
|
featureFlags: Schema.Struct<{
|
|
13
14
|
agentWalletApi: typeof Schema.Boolean;
|
|
15
|
+
apiKeys: typeof Schema.Boolean;
|
|
14
16
|
}>;
|
|
15
17
|
}, Schema.Struct.Encoded<{
|
|
16
18
|
id: typeof Schema.String;
|
|
17
19
|
email: typeof Schema.String;
|
|
18
20
|
featureFlags: Schema.Struct<{
|
|
19
21
|
agentWalletApi: typeof Schema.Boolean;
|
|
22
|
+
apiKeys: typeof Schema.Boolean;
|
|
20
23
|
}>;
|
|
21
24
|
}>, never, {
|
|
22
25
|
readonly id: string;
|
|
@@ -25,6 +28,7 @@ declare const WhoamiResponse_base: Schema.Class<WhoamiResponse, {
|
|
|
25
28
|
} & {
|
|
26
29
|
readonly featureFlags: {
|
|
27
30
|
readonly agentWalletApi: boolean;
|
|
31
|
+
readonly apiKeys: boolean;
|
|
28
32
|
};
|
|
29
33
|
}, {}, {}>;
|
|
30
34
|
declare class WhoamiResponse extends WhoamiResponse_base {}
|
|
@@ -39,13 +43,13 @@ declare const TokenResponse_base: Schema.Class<TokenResponse, {
|
|
|
39
43
|
expiresIn: typeof Schema.Number;
|
|
40
44
|
tokenType: typeof Schema.String;
|
|
41
45
|
}>, never, {
|
|
42
|
-
readonly tokenType: string;
|
|
43
|
-
} & {
|
|
44
46
|
readonly accessToken: string;
|
|
45
47
|
} & {
|
|
46
48
|
readonly refreshToken: string;
|
|
47
49
|
} & {
|
|
48
50
|
readonly expiresIn: number;
|
|
51
|
+
} & {
|
|
52
|
+
readonly tokenType: string;
|
|
49
53
|
}, {}, {}>;
|
|
50
54
|
declare class TokenResponse extends TokenResponse_base {}
|
|
51
55
|
type ApiKeyType = Pick<ApiKey$1, "id" | "name" | "start" | "createdAt" | "lastRequest">;
|
package/dist/src/schemas/auth.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/schemas/auth.ts
|
|
4
|
-
const FeatureFlagsSchema = Schema.Struct({
|
|
4
|
+
const FeatureFlagsSchema = Schema.Struct({
|
|
5
|
+
agentWalletApi: Schema.Boolean,
|
|
6
|
+
apiKeys: Schema.Boolean
|
|
7
|
+
});
|
|
5
8
|
var WhoamiResponse = class extends Schema.Class("WhoamiResponse")({
|
|
6
9
|
id: Schema.String,
|
|
7
10
|
email: Schema.String,
|
|
@@ -24,10 +24,10 @@ declare const ContractBookmark_base: Schema.Class<ContractBookmark, {
|
|
|
24
24
|
updatedAt: typeof Schema.String;
|
|
25
25
|
}>, never, {
|
|
26
26
|
readonly id: string;
|
|
27
|
-
} & {
|
|
28
|
-
readonly contractAddress: string;
|
|
29
27
|
} & {
|
|
30
28
|
readonly blockchain: string;
|
|
29
|
+
} & {
|
|
30
|
+
readonly contractAddress: string;
|
|
31
31
|
} & {
|
|
32
32
|
readonly createdAt: string;
|
|
33
33
|
} & {
|
|
@@ -62,10 +62,10 @@ declare const TransactionBookmark_base: Schema.Class<TransactionBookmark, {
|
|
|
62
62
|
readonly createdAt: string;
|
|
63
63
|
} & {
|
|
64
64
|
readonly updatedAt: string;
|
|
65
|
-
} & {
|
|
66
|
-
readonly transactionHash: string;
|
|
67
65
|
} & {
|
|
68
66
|
readonly userLabel: string | null;
|
|
67
|
+
} & {
|
|
68
|
+
readonly transactionHash: string;
|
|
69
69
|
}, {}, {}>;
|
|
70
70
|
declare class TransactionBookmark extends TransactionBookmark_base {}
|
|
71
71
|
declare const WalletBookmark_base: Schema.Class<WalletBookmark, {
|
|
@@ -154,11 +154,11 @@ declare const AddTransactionBookmarkParams_base: Schema.Class<AddTransactionBook
|
|
|
154
154
|
blockchain: Schema.Literal<["ethereum", "base"]>;
|
|
155
155
|
label: Schema.optional<typeof Schema.String>;
|
|
156
156
|
}>, never, {
|
|
157
|
+
readonly txHash: string;
|
|
158
|
+
} & {
|
|
157
159
|
readonly blockchain: "ethereum" | "base";
|
|
158
160
|
} & {
|
|
159
161
|
readonly label?: string | undefined;
|
|
160
|
-
} & {
|
|
161
|
-
readonly txHash: string;
|
|
162
162
|
}, {}, {}>;
|
|
163
163
|
declare class AddTransactionBookmarkParams extends AddTransactionBookmarkParams_base {}
|
|
164
164
|
declare const AddWalletBookmarkParams_base: Schema.Class<AddWalletBookmarkParams, {
|
|
@@ -186,6 +186,8 @@ declare const UpdateBookmarkLabelParams_base: Schema.Class<UpdateBookmarkLabelPa
|
|
|
186
186
|
blockchain: Schema.optional<Schema.Literal<["ethereum", "base"]>>;
|
|
187
187
|
label: Schema.NullOr<typeof Schema.String>;
|
|
188
188
|
}>, never, {
|
|
189
|
+
readonly txHash?: string | undefined;
|
|
190
|
+
} & {
|
|
189
191
|
readonly blockchain?: "ethereum" | "base" | undefined;
|
|
190
192
|
} & {
|
|
191
193
|
readonly address?: string | undefined;
|
|
@@ -193,8 +195,6 @@ declare const UpdateBookmarkLabelParams_base: Schema.Class<UpdateBookmarkLabelPa
|
|
|
193
195
|
readonly label: string | null;
|
|
194
196
|
} & {
|
|
195
197
|
readonly objectType: "wallet" | "contract" | "transaction";
|
|
196
|
-
} & {
|
|
197
|
-
readonly txHash?: string | undefined;
|
|
198
198
|
}, {}, {}>;
|
|
199
199
|
declare class UpdateBookmarkLabelParams extends UpdateBookmarkLabelParams_base {}
|
|
200
200
|
declare const DeleteBookmarkParams_base: Schema.Class<DeleteBookmarkParams, {
|
|
@@ -208,13 +208,13 @@ declare const DeleteBookmarkParams_base: Schema.Class<DeleteBookmarkParams, {
|
|
|
208
208
|
txHash: Schema.optional<typeof Schema.String>;
|
|
209
209
|
blockchain: Schema.optional<Schema.Literal<["ethereum", "base"]>>;
|
|
210
210
|
}>, never, {
|
|
211
|
+
readonly txHash?: string | undefined;
|
|
212
|
+
} & {
|
|
211
213
|
readonly blockchain?: "ethereum" | "base" | undefined;
|
|
212
214
|
} & {
|
|
213
215
|
readonly address?: string | undefined;
|
|
214
216
|
} & {
|
|
215
217
|
readonly objectType: "wallet" | "contract" | "transaction";
|
|
216
|
-
} & {
|
|
217
|
-
readonly txHash?: string | undefined;
|
|
218
218
|
}, {}, {}>;
|
|
219
219
|
declare class DeleteBookmarkParams extends DeleteBookmarkParams_base {}
|
|
220
220
|
//#endregion
|
|
@@ -73,12 +73,12 @@ declare const CodeBlockDefinition_base: Schema.Class<CodeBlockDefinition, {
|
|
|
73
73
|
readonly name: string;
|
|
74
74
|
} & {
|
|
75
75
|
readonly intent: string;
|
|
76
|
+
} & {
|
|
77
|
+
readonly actionId?: string | null | undefined;
|
|
76
78
|
} & {
|
|
77
79
|
readonly latestCode: CodeBlockCode | null;
|
|
78
80
|
} & {
|
|
79
81
|
readonly allVersions?: readonly CodeBlockVersion[] | undefined;
|
|
80
|
-
} & {
|
|
81
|
-
readonly actionId?: string | null | undefined;
|
|
82
82
|
}, {}, {}>;
|
|
83
83
|
declare class CodeBlockDefinition extends CodeBlockDefinition_base {}
|
|
84
84
|
declare const CodeBlocksSearchParams_base: Schema.Class<CodeBlocksSearchParams, {
|
|
@@ -208,7 +208,7 @@ declare const CodeBlockExecuteResponse_base: Schema.Class<CodeBlockExecuteRespon
|
|
|
208
208
|
readonly status?: number | undefined;
|
|
209
209
|
} | undefined;
|
|
210
210
|
} & {
|
|
211
|
-
readonly logs?: readonly CodeBlockLogEntry[]
|
|
211
|
+
readonly logs?: readonly CodeBlockLogEntry[];
|
|
212
212
|
}, {}, {}>;
|
|
213
213
|
declare class CodeBlockExecuteResponse extends CodeBlockExecuteResponse_base {}
|
|
214
214
|
declare const CreateCodeBlockParams_base: Schema.Class<CreateCodeBlockParams, {
|
|
@@ -73,15 +73,15 @@ declare const TopHolder_base: Schema.Class<TopHolder, {
|
|
|
73
73
|
} & {
|
|
74
74
|
readonly type: "wallet" | "contract";
|
|
75
75
|
} & {
|
|
76
|
-
readonly
|
|
76
|
+
readonly valueUsd: number;
|
|
77
77
|
} & {
|
|
78
78
|
readonly balance: number;
|
|
79
79
|
} & {
|
|
80
|
-
readonly
|
|
80
|
+
readonly entityLabel?: string | undefined;
|
|
81
81
|
} & {
|
|
82
|
-
readonly
|
|
82
|
+
readonly rank: number;
|
|
83
83
|
} & {
|
|
84
|
-
readonly
|
|
84
|
+
readonly sharePercentage: number;
|
|
85
85
|
} & {
|
|
86
86
|
readonly coingeckoLabel?: string | undefined;
|
|
87
87
|
}, {}, {}>;
|
|
@@ -300,6 +300,8 @@ declare const ContractCodeMatchBlock_base: Schema.Class<ContractCodeMatchBlock,
|
|
|
300
300
|
numberOfMatches: typeof Schema.Number;
|
|
301
301
|
patterns: Schema.Array$<typeof Schema.String>;
|
|
302
302
|
}>, never, {
|
|
303
|
+
readonly patterns: readonly string[];
|
|
304
|
+
} & {
|
|
303
305
|
readonly code: string;
|
|
304
306
|
} & {
|
|
305
307
|
readonly fileName: string;
|
|
@@ -309,8 +311,6 @@ declare const ContractCodeMatchBlock_base: Schema.Class<ContractCodeMatchBlock,
|
|
|
309
311
|
readonly endLine: number;
|
|
310
312
|
} & {
|
|
311
313
|
readonly numberOfMatches: number;
|
|
312
|
-
} & {
|
|
313
|
-
readonly patterns: readonly string[];
|
|
314
314
|
}, {}, {}>;
|
|
315
315
|
declare class ContractCodeMatchBlock extends ContractCodeMatchBlock_base {}
|
|
316
316
|
declare const ContractCodeSearchResult_base: Schema.Class<ContractCodeSearchResult, {
|
|
@@ -328,13 +328,13 @@ declare const ContractCodeSearchResult_base: Schema.Class<ContractCodeSearchResu
|
|
|
328
328
|
proxyCode: Schema.optional<typeof Schema.String>;
|
|
329
329
|
matches: Schema.optional<Schema.Array$<typeof ContractCodeMatchBlock>>;
|
|
330
330
|
}>, never, {
|
|
331
|
-
readonly contractAddress: string & effect_Brand13.Brand<"EvmAddress">;
|
|
332
|
-
} & {
|
|
333
331
|
readonly blockchain: "ethereum" | "base";
|
|
334
332
|
} & {
|
|
335
|
-
readonly
|
|
333
|
+
readonly contractAddress: string & effect_Brand13.Brand<"EvmAddress">;
|
|
336
334
|
} & {
|
|
337
335
|
readonly contractName: string;
|
|
336
|
+
} & {
|
|
337
|
+
readonly code?: string | undefined;
|
|
338
338
|
} & {
|
|
339
339
|
readonly proxyCode?: string | undefined;
|
|
340
340
|
} & {
|
|
@@ -354,8 +354,6 @@ declare const GetContractCodeParams_base: Schema.Class<GetContractCodeParams, {
|
|
|
354
354
|
returnAllCode: Schema.optional<typeof Schema.Boolean>;
|
|
355
355
|
patterns: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
356
356
|
}>, never, {
|
|
357
|
-
readonly patterns?: readonly string[] | undefined;
|
|
358
|
-
} & {
|
|
359
357
|
readonly query: string;
|
|
360
358
|
} & {
|
|
361
359
|
readonly contractAddresses: readonly (string & effect_Brand13.Brand<"EvmAddress">)[];
|
|
@@ -363,6 +361,8 @@ declare const GetContractCodeParams_base: Schema.Class<GetContractCodeParams, {
|
|
|
363
361
|
readonly includeProxies?: boolean | undefined;
|
|
364
362
|
} & {
|
|
365
363
|
readonly returnAllCode?: boolean | undefined;
|
|
364
|
+
} & {
|
|
365
|
+
readonly patterns?: readonly string[] | undefined;
|
|
366
366
|
}, {}, {}>;
|
|
367
367
|
declare class GetContractCodeParams extends GetContractCodeParams_base {}
|
|
368
368
|
declare const GetContractCodeResponse_base: Schema.Class<GetContractCodeResponse, {
|
|
@@ -399,10 +399,10 @@ declare const DiffVersionInfo_base: Schema.Class<DiffVersionInfo, {
|
|
|
399
399
|
readonly contractName: string;
|
|
400
400
|
} & {
|
|
401
401
|
readonly blockNumber: number;
|
|
402
|
-
} & {
|
|
403
|
-
readonly versionNumber: number;
|
|
404
402
|
} & {
|
|
405
403
|
readonly implementationAddress: string;
|
|
404
|
+
} & {
|
|
405
|
+
readonly versionNumber: number;
|
|
406
406
|
}, {}, {}>;
|
|
407
407
|
declare class DiffVersionInfo extends DiffVersionInfo_base {}
|
|
408
408
|
declare const DiffEntry_base: Schema.Class<DiffEntry, {
|
|
@@ -432,9 +432,9 @@ declare const ContractDiff_base: Schema.Class<ContractDiff, {
|
|
|
432
432
|
contractAddress: Schema.optional<typeof Schema.String>;
|
|
433
433
|
blockchain: Schema.optional<typeof Schema.String>;
|
|
434
434
|
}>, never, {
|
|
435
|
-
readonly contractAddress?: string | undefined;
|
|
436
|
-
} & {
|
|
437
435
|
readonly blockchain?: string | undefined;
|
|
436
|
+
} & {
|
|
437
|
+
readonly contractAddress?: string | undefined;
|
|
438
438
|
} & {
|
|
439
439
|
readonly errorMessage?: string | undefined;
|
|
440
440
|
} & {
|
|
@@ -45,7 +45,8 @@ declare const EvaluateParams_base: Schema.Class<EvaluateParams, {
|
|
|
45
45
|
declare class EvaluateParams extends EvaluateParams_base {}
|
|
46
46
|
declare const EvaluateExistingParams_base: Schema.Class<EvaluateExistingParams, {
|
|
47
47
|
actionId: typeof Schema.String;
|
|
48
|
-
|
|
48
|
+
/** Published action-expression id (UUID). When omitted, the latest published expression is simulated. */
|
|
49
|
+
actionExpressionId: Schema.optional<typeof Schema.UUID>;
|
|
49
50
|
walletAddress: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
|
|
50
51
|
inputValues: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
51
52
|
simulationBalanceFunding: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
@@ -56,7 +57,8 @@ declare const EvaluateExistingParams_base: Schema.Class<EvaluateExistingParams,
|
|
|
56
57
|
simulationBlockNumber: Schema.optional<typeof Schema.Number>;
|
|
57
58
|
}, Schema.Struct.Encoded<{
|
|
58
59
|
actionId: typeof Schema.String;
|
|
59
|
-
|
|
60
|
+
/** Published action-expression id (UUID). When omitted, the latest published expression is simulated. */
|
|
61
|
+
actionExpressionId: Schema.optional<typeof Schema.UUID>;
|
|
60
62
|
walletAddress: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
|
|
61
63
|
inputValues: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
62
64
|
simulationBalanceFunding: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
@@ -67,10 +69,6 @@ declare const EvaluateExistingParams_base: Schema.Class<EvaluateExistingParams,
|
|
|
67
69
|
simulationBlockNumber: Schema.optional<typeof Schema.Number>;
|
|
68
70
|
}>, never, {
|
|
69
71
|
readonly walletAddress: string & effect_Brand11.Brand<"EvmAddress">;
|
|
70
|
-
} & {
|
|
71
|
-
readonly version?: string | undefined;
|
|
72
|
-
} & {
|
|
73
|
-
readonly actionId: string;
|
|
74
72
|
} & {
|
|
75
73
|
readonly inputValues?: {
|
|
76
74
|
readonly [x: string]: unknown;
|
|
@@ -84,6 +82,10 @@ declare const EvaluateExistingParams_base: Schema.Class<EvaluateExistingParams,
|
|
|
84
82
|
readonly tevmForkId?: string | undefined;
|
|
85
83
|
} & {
|
|
86
84
|
readonly simulationBlockNumber?: number | undefined;
|
|
85
|
+
} & {
|
|
86
|
+
readonly actionId: string;
|
|
87
|
+
} & {
|
|
88
|
+
readonly actionExpressionId?: string | undefined;
|
|
87
89
|
}, {}, {}>;
|
|
88
90
|
declare class EvaluateExistingParams extends EvaluateExistingParams_base {}
|
|
89
91
|
declare const TransactionStatus_base: Schema.Class<TransactionStatus, {
|
|
@@ -124,10 +126,10 @@ declare const TransactionStatus_base: Schema.Class<TransactionStatus, {
|
|
|
124
126
|
readonly value?: string | null | undefined;
|
|
125
127
|
} & {
|
|
126
128
|
readonly blockchain?: "ethereum" | "base" | undefined;
|
|
127
|
-
} & {
|
|
128
|
-
readonly status: "success" | "failed" | "pending";
|
|
129
129
|
} & {
|
|
130
130
|
readonly transactionHash: string | null;
|
|
131
|
+
} & {
|
|
132
|
+
readonly status: "success" | "failed" | "pending";
|
|
131
133
|
} & {
|
|
132
134
|
readonly batchName: string | null;
|
|
133
135
|
} & {
|
|
@@ -177,18 +179,18 @@ declare const EvaluateResponse_base: Schema.Class<EvaluateResponse, {
|
|
|
177
179
|
tevmForkId: Schema.optional<typeof Schema.String>;
|
|
178
180
|
tevmForkBlockchain: Schema.optional<Schema.Literal<["ethereum", "base"]>>;
|
|
179
181
|
}>, never, {
|
|
180
|
-
readonly
|
|
181
|
-
readonly name: string;
|
|
182
|
-
readonly message: string;
|
|
183
|
-
} | undefined;
|
|
184
|
-
} & {
|
|
185
|
-
readonly status: "failed" | "completed" | "suspended";
|
|
182
|
+
readonly hint?: string | undefined;
|
|
186
183
|
} & {
|
|
187
184
|
readonly tevmForkId?: string | undefined;
|
|
185
|
+
} & {
|
|
186
|
+
readonly status: "failed" | "completed" | "suspended";
|
|
188
187
|
} & {
|
|
189
188
|
readonly result?: unknown;
|
|
190
189
|
} & {
|
|
191
|
-
readonly
|
|
190
|
+
readonly error?: {
|
|
191
|
+
readonly message: string;
|
|
192
|
+
readonly name: string;
|
|
193
|
+
} | undefined;
|
|
192
194
|
} & {
|
|
193
195
|
readonly transactionStatuses?: readonly TransactionStatus[] | undefined;
|
|
194
196
|
} & {
|
package/dist/src/schemas/hal.js
CHANGED
|
@@ -22,7 +22,7 @@ const SimulationBalanceFunding = Schema.Array(Schema.Struct({
|
|
|
22
22
|
}));
|
|
23
23
|
var EvaluateExistingParams = class extends Schema.Class("EvaluateExistingParams")({
|
|
24
24
|
actionId: Schema.String,
|
|
25
|
-
|
|
25
|
+
actionExpressionId: Schema.optional(Schema.UUID),
|
|
26
26
|
walletAddress: EvmAddress,
|
|
27
27
|
inputValues: Schema.optional(Schema.Record({
|
|
28
28
|
key: Schema.String,
|
|
@@ -450,65 +450,112 @@ declare const Transaction_base: Schema.Class<Transaction, {
|
|
|
450
450
|
}>, never, {
|
|
451
451
|
readonly id: string;
|
|
452
452
|
} & {
|
|
453
|
-
readonly
|
|
453
|
+
readonly txHash: string;
|
|
454
454
|
} & {
|
|
455
455
|
readonly blockchain: "ethereum" | "base";
|
|
456
456
|
} & {
|
|
457
|
-
readonly
|
|
457
|
+
readonly functionSignature?: string | null | undefined;
|
|
458
458
|
} & {
|
|
459
459
|
readonly outputs?: {
|
|
460
460
|
readonly value: string;
|
|
461
461
|
readonly from: string;
|
|
462
462
|
readonly summary: string;
|
|
463
463
|
} | undefined;
|
|
464
|
-
} & {
|
|
465
|
-
readonly txHash: string;
|
|
466
464
|
} & {
|
|
467
465
|
readonly tevmForkId?: string | null | undefined;
|
|
468
466
|
} & {
|
|
469
467
|
readonly success: boolean;
|
|
470
468
|
} & {
|
|
471
469
|
readonly blockNumber: number;
|
|
470
|
+
} & {
|
|
471
|
+
readonly error?: string | null | undefined;
|
|
472
472
|
} & {
|
|
473
473
|
readonly fromAddress: string;
|
|
474
474
|
} & {
|
|
475
475
|
readonly toAddress: string;
|
|
476
476
|
} & {
|
|
477
|
-
readonly
|
|
477
|
+
readonly transfers: readonly {
|
|
478
|
+
readonly txHash: string;
|
|
479
|
+
readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
|
|
480
|
+
readonly tokenAddress: string;
|
|
481
|
+
readonly blockNumber: number;
|
|
482
|
+
readonly blockTimestamp: number;
|
|
483
|
+
readonly amount: number;
|
|
484
|
+
readonly logIndex?: number | undefined;
|
|
485
|
+
readonly fromAddress: string;
|
|
486
|
+
readonly toAddress: string;
|
|
487
|
+
readonly chainId: number;
|
|
488
|
+
readonly tokenId: number;
|
|
489
|
+
readonly tokenDecimals: number;
|
|
490
|
+
readonly tokenName: string;
|
|
491
|
+
readonly tokenSymbol: string;
|
|
492
|
+
readonly tokenPriceUsd: number;
|
|
493
|
+
readonly tokenLogoUrl: string;
|
|
494
|
+
readonly fromAddressIsContract: boolean;
|
|
495
|
+
readonly toAddressIsContract: boolean;
|
|
496
|
+
readonly fromEntityLabel?: string | null | undefined;
|
|
497
|
+
readonly toEntityLabel?: string | null | undefined;
|
|
498
|
+
readonly traceAddress?: string | undefined;
|
|
499
|
+
readonly callerFunction?: {
|
|
500
|
+
readonly tokenAddress: string;
|
|
501
|
+
readonly callerAddress: string;
|
|
502
|
+
readonly callerFunctionSignature: string;
|
|
503
|
+
readonly callerTraceAddress: string;
|
|
504
|
+
readonly callerContractName?: string | undefined;
|
|
505
|
+
readonly callerFunctionName?: string | undefined;
|
|
506
|
+
} | null | undefined;
|
|
507
|
+
readonly tokenFunction?: {
|
|
508
|
+
readonly tokenFunctionSignature: string;
|
|
509
|
+
readonly tokenTraceAddress: string;
|
|
510
|
+
readonly tokenContractName?: string | undefined;
|
|
511
|
+
readonly tokenFunctionName?: string | undefined;
|
|
512
|
+
} | undefined;
|
|
513
|
+
}[];
|
|
514
|
+
} & {
|
|
515
|
+
readonly createdContracts: readonly string[];
|
|
516
|
+
} & {
|
|
517
|
+
readonly actionExecution?: {
|
|
518
|
+
readonly actionId: string;
|
|
519
|
+
readonly actionName: string;
|
|
520
|
+
readonly versionId: string;
|
|
521
|
+
readonly executionId: string;
|
|
522
|
+
} | undefined;
|
|
478
523
|
} & {
|
|
479
524
|
readonly decodedTraces: DecodedTrace;
|
|
480
525
|
} & {
|
|
481
526
|
readonly transactionMetadata: {
|
|
482
527
|
readonly value: number;
|
|
483
528
|
readonly from: string;
|
|
484
|
-
readonly type: string;
|
|
485
529
|
readonly hash: string;
|
|
530
|
+
readonly type: string;
|
|
486
531
|
readonly status: number;
|
|
487
532
|
readonly blockNumber: number;
|
|
488
533
|
readonly to: string | null;
|
|
534
|
+
readonly nonce: number;
|
|
535
|
+
readonly chainId: number;
|
|
536
|
+
readonly timestamp: number;
|
|
489
537
|
readonly blockHash: string;
|
|
490
538
|
readonly transactionIndex: number;
|
|
491
|
-
readonly chainId: number;
|
|
492
539
|
readonly gas: number;
|
|
493
540
|
readonly gasPrice: number;
|
|
494
|
-
readonly nonce: number;
|
|
495
541
|
readonly input: string;
|
|
496
542
|
readonly r: string;
|
|
497
543
|
readonly s: string;
|
|
498
544
|
readonly v: string;
|
|
499
|
-
readonly timestamp: number;
|
|
500
545
|
readonly gasUsed: number;
|
|
501
546
|
readonly effectiveGasPrice: number;
|
|
502
547
|
};
|
|
548
|
+
} & {
|
|
549
|
+
readonly timestamp: number;
|
|
503
550
|
} & {
|
|
504
551
|
readonly decodedLogs: readonly {
|
|
505
552
|
readonly address: string;
|
|
506
553
|
readonly transactionHash: string;
|
|
507
554
|
readonly blockNumber: number;
|
|
508
555
|
readonly data: string;
|
|
556
|
+
readonly logIndex: number;
|
|
509
557
|
readonly blockHash: string;
|
|
510
558
|
readonly topics: readonly string[];
|
|
511
|
-
readonly logIndex: number;
|
|
512
559
|
readonly transactionIndex: number;
|
|
513
560
|
readonly removed: boolean;
|
|
514
561
|
readonly emittedAfterTraceAddress: readonly number[];
|
|
@@ -540,70 +587,23 @@ declare const Transaction_base: Schema.Class<Transaction, {
|
|
|
540
587
|
} & {
|
|
541
588
|
readonly balanceChanges: readonly {
|
|
542
589
|
readonly txHash?: string | undefined;
|
|
590
|
+
readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
|
|
543
591
|
readonly tokenAddress: string;
|
|
544
592
|
readonly blockNumber: number;
|
|
545
593
|
readonly blockTimestamp: number;
|
|
546
594
|
readonly holderAddress: string;
|
|
547
|
-
readonly holderIsContract: boolean;
|
|
548
|
-
readonly balanceChange: number;
|
|
549
595
|
readonly chainId: number;
|
|
550
|
-
readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
|
|
551
596
|
readonly tokenId: number;
|
|
552
597
|
readonly tokenDecimals: number;
|
|
553
598
|
readonly tokenName: string;
|
|
554
599
|
readonly tokenSymbol: string;
|
|
555
600
|
readonly tokenPriceUsd: number;
|
|
556
601
|
readonly tokenLogoUrl: string;
|
|
602
|
+
readonly holderIsContract: boolean;
|
|
603
|
+
readonly balanceChange: number;
|
|
557
604
|
readonly holderEntityLabel?: string | null | undefined;
|
|
558
605
|
readonly tokenEntityLabel?: string | null | undefined;
|
|
559
606
|
}[];
|
|
560
|
-
} & {
|
|
561
|
-
readonly transfers: readonly {
|
|
562
|
-
readonly txHash: string;
|
|
563
|
-
readonly tokenAddress: string;
|
|
564
|
-
readonly blockNumber: number;
|
|
565
|
-
readonly blockTimestamp: number;
|
|
566
|
-
readonly toEntityLabel?: string | null | undefined;
|
|
567
|
-
readonly fromEntityLabel?: string | null | undefined;
|
|
568
|
-
readonly traceAddress?: string | undefined;
|
|
569
|
-
readonly logIndex?: number | undefined;
|
|
570
|
-
readonly chainId: number;
|
|
571
|
-
readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
|
|
572
|
-
readonly tokenId: number;
|
|
573
|
-
readonly tokenDecimals: number;
|
|
574
|
-
readonly tokenName: string;
|
|
575
|
-
readonly tokenSymbol: string;
|
|
576
|
-
readonly tokenPriceUsd: number;
|
|
577
|
-
readonly tokenLogoUrl: string;
|
|
578
|
-
readonly fromAddress: string;
|
|
579
|
-
readonly toAddress: string;
|
|
580
|
-
readonly amount: number;
|
|
581
|
-
readonly fromAddressIsContract: boolean;
|
|
582
|
-
readonly toAddressIsContract: boolean;
|
|
583
|
-
readonly callerFunction?: {
|
|
584
|
-
readonly tokenAddress: string;
|
|
585
|
-
readonly callerAddress: string;
|
|
586
|
-
readonly callerFunctionSignature: string;
|
|
587
|
-
readonly callerTraceAddress: string;
|
|
588
|
-
readonly callerContractName?: string | undefined;
|
|
589
|
-
readonly callerFunctionName?: string | undefined;
|
|
590
|
-
} | null | undefined;
|
|
591
|
-
readonly tokenFunction?: {
|
|
592
|
-
readonly tokenFunctionSignature: string;
|
|
593
|
-
readonly tokenTraceAddress: string;
|
|
594
|
-
readonly tokenContractName?: string | undefined;
|
|
595
|
-
readonly tokenFunctionName?: string | undefined;
|
|
596
|
-
} | undefined;
|
|
597
|
-
}[];
|
|
598
|
-
} & {
|
|
599
|
-
readonly createdContracts: readonly string[];
|
|
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, {
|
|
@@ -763,9 +763,9 @@ declare const LatestFunctionTransactions_base: Schema.Class<LatestFunctionTransa
|
|
|
763
763
|
}>>;
|
|
764
764
|
}>>>;
|
|
765
765
|
}>, never, {
|
|
766
|
-
readonly contractAddress?: string | undefined;
|
|
767
|
-
} & {
|
|
768
766
|
readonly blockchain?: "ethereum" | "base" | undefined;
|
|
767
|
+
} & {
|
|
768
|
+
readonly contractAddress?: string | undefined;
|
|
769
769
|
} & {
|
|
770
770
|
readonly transactions?: readonly {
|
|
771
771
|
readonly from: string;
|
|
@@ -777,13 +777,13 @@ declare const LatestFunctionTransactions_base: Schema.Class<LatestFunctionTransa
|
|
|
777
777
|
readonly functionCalls: readonly {
|
|
778
778
|
readonly value: number;
|
|
779
779
|
readonly functionName: string;
|
|
780
|
+
readonly signature: string;
|
|
780
781
|
readonly inputArgs: {
|
|
781
782
|
readonly [x: string]: unknown;
|
|
782
783
|
};
|
|
783
784
|
readonly outputArgs: {
|
|
784
785
|
readonly [x: string]: unknown;
|
|
785
786
|
} | null;
|
|
786
|
-
readonly signature: string;
|
|
787
787
|
readonly traceInput: string;
|
|
788
788
|
readonly callerFunctionDetails: {
|
|
789
789
|
readonly functionSignature: string | null;
|
|
@@ -794,10 +794,10 @@ declare const LatestFunctionTransactions_base: Schema.Class<LatestFunctionTransa
|
|
|
794
794
|
} | null;
|
|
795
795
|
}[];
|
|
796
796
|
}[] | undefined;
|
|
797
|
-
} & {
|
|
798
|
-
readonly signature?: string | undefined;
|
|
799
797
|
} & {
|
|
800
798
|
readonly errorMessage?: string | undefined;
|
|
799
|
+
} & {
|
|
800
|
+
readonly signature?: string | undefined;
|
|
801
801
|
} & {
|
|
802
802
|
readonly availableSignatures?: readonly {
|
|
803
803
|
readonly name: string;
|
|
@@ -874,12 +874,17 @@ declare const LatestEventTransactions_base: Schema.Class<LatestEventTransactions
|
|
|
874
874
|
}>>;
|
|
875
875
|
}>>>;
|
|
876
876
|
}>, never, {
|
|
877
|
-
readonly contractAddress?: string | undefined;
|
|
878
|
-
} & {
|
|
879
877
|
readonly blockchain?: "ethereum" | "base" | undefined;
|
|
878
|
+
} & {
|
|
879
|
+
readonly contractAddress?: string | undefined;
|
|
880
880
|
} & {
|
|
881
881
|
readonly transactions?: readonly {
|
|
882
882
|
readonly from: string;
|
|
883
|
+
readonly txHash: string;
|
|
884
|
+
readonly success: boolean;
|
|
885
|
+
readonly blockNumber: number;
|
|
886
|
+
readonly blockTimestamp: number;
|
|
887
|
+
readonly blockTimestampUtc: string;
|
|
883
888
|
readonly logs: readonly {
|
|
884
889
|
readonly contractAddress: string;
|
|
885
890
|
readonly contractName: string;
|
|
@@ -899,16 +904,11 @@ declare const LatestEventTransactions_base: Schema.Class<LatestEventTransactions
|
|
|
899
904
|
readonly rawTopics: readonly string[];
|
|
900
905
|
readonly rawData: string;
|
|
901
906
|
}[];
|
|
902
|
-
readonly txHash: string;
|
|
903
|
-
readonly success: boolean;
|
|
904
|
-
readonly blockNumber: number;
|
|
905
|
-
readonly blockTimestamp: number;
|
|
906
|
-
readonly blockTimestampUtc: string;
|
|
907
907
|
}[] | undefined;
|
|
908
|
-
} & {
|
|
909
|
-
readonly signature?: string | undefined;
|
|
910
908
|
} & {
|
|
911
909
|
readonly errorMessage?: string | undefined;
|
|
910
|
+
} & {
|
|
911
|
+
readonly signature?: string | undefined;
|
|
912
912
|
} & {
|
|
913
913
|
readonly availableSignatures?: readonly {
|
|
914
914
|
readonly name: string;
|
|
@@ -958,10 +958,10 @@ declare const LatestTxParams_base: Schema.Class<LatestTxParams, {
|
|
|
958
958
|
readonly beforeBlocknumber?: number | undefined;
|
|
959
959
|
} & {
|
|
960
960
|
readonly afterBlocknumber?: number | undefined;
|
|
961
|
-
} & {
|
|
962
|
-
readonly successOnly?: boolean | undefined;
|
|
963
961
|
} & {
|
|
964
962
|
readonly direction?: "direct" | "indirect" | "both" | undefined;
|
|
963
|
+
} & {
|
|
964
|
+
readonly successOnly?: boolean | undefined;
|
|
965
965
|
} & {
|
|
966
966
|
readonly topic1?: string | undefined;
|
|
967
967
|
} & {
|
|
@@ -21,10 +21,10 @@ declare const WalletBalance_base: Schema.Class<WalletBalance, {
|
|
|
21
21
|
readonly address: string;
|
|
22
22
|
} & {
|
|
23
23
|
readonly amount: string | number;
|
|
24
|
-
} & {
|
|
25
|
-
readonly valueUsd: number | null;
|
|
26
24
|
} & {
|
|
27
25
|
readonly decimals: number | null;
|
|
26
|
+
} & {
|
|
27
|
+
readonly valueUsd: number | null;
|
|
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 nonce: number;
|
|
92
90
|
} & {
|
|
93
91
|
readonly safeTxHash: string;
|
|
92
|
+
} & {
|
|
93
|
+
readonly nonce: number;
|
|
94
94
|
} & {
|
|
95
95
|
readonly submissionDate?: string | undefined;
|
|
96
96
|
} & {
|
|
@@ -143,14 +143,14 @@ declare const WalletOverview_base: Schema.Class<WalletOverview, {
|
|
|
143
143
|
readonly blockchain: "ethereum" | "base";
|
|
144
144
|
} & {
|
|
145
145
|
readonly walletAddress: string;
|
|
146
|
-
} & {
|
|
147
|
-
readonly implementationAddress?: string | undefined;
|
|
148
146
|
} & {
|
|
149
147
|
readonly totalTransactionCount: number;
|
|
150
148
|
} & {
|
|
151
149
|
readonly totalDeployedContractsCount: number;
|
|
152
150
|
} & {
|
|
153
151
|
readonly walletType: "contract" | "eoa" | "erc7702" | "erc4337" | "multisig";
|
|
152
|
+
} & {
|
|
153
|
+
readonly implementationAddress?: string | undefined;
|
|
154
154
|
} & {
|
|
155
155
|
readonly erc7702Delegation?: Erc7702Delegation | undefined;
|
|
156
156
|
} & {
|
|
@@ -209,6 +209,10 @@ declare const TokenTransfer_base: Schema.Class<TokenTransfer, {
|
|
|
209
209
|
readonly blockNumber: number;
|
|
210
210
|
} & {
|
|
211
211
|
readonly blockTimestamp: number;
|
|
212
|
+
} & {
|
|
213
|
+
readonly amount: string;
|
|
214
|
+
} & {
|
|
215
|
+
readonly blockTimestampUtc: string;
|
|
212
216
|
} & {
|
|
213
217
|
readonly logIndex: number;
|
|
214
218
|
} & {
|
|
@@ -216,13 +220,9 @@ declare const TokenTransfer_base: Schema.Class<TokenTransfer, {
|
|
|
216
220
|
} & {
|
|
217
221
|
readonly toAddress: string;
|
|
218
222
|
} & {
|
|
219
|
-
readonly
|
|
220
|
-
} & {
|
|
221
|
-
readonly blockTimestampUtc: string;
|
|
223
|
+
readonly formattedAmount: string;
|
|
222
224
|
} & {
|
|
223
225
|
readonly direction: "in" | "out";
|
|
224
|
-
} & {
|
|
225
|
-
readonly formattedAmount: string;
|
|
226
226
|
}, {}, {}>;
|
|
227
227
|
declare class TokenTransfer extends TokenTransfer_base {}
|
|
228
228
|
declare const TokenActivityPagination_base: Schema.Class<TokenActivityPagination, {
|
|
@@ -261,12 +261,12 @@ declare const TokenActivity_base: Schema.Class<TokenActivity, {
|
|
|
261
261
|
readonly tokenAddress: string;
|
|
262
262
|
} & {
|
|
263
263
|
readonly holderAddress: string;
|
|
264
|
-
} & {
|
|
265
|
-
readonly transfers: readonly TokenTransfer[];
|
|
266
264
|
} & {
|
|
267
265
|
readonly balance: TokenBalanceInfo;
|
|
268
266
|
} & {
|
|
269
267
|
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, {
|
|
@@ -285,12 +285,12 @@ declare const WalletTxCall_base: Schema.Class<WalletTxCall, {
|
|
|
285
285
|
readonly functionSignature: string;
|
|
286
286
|
} & {
|
|
287
287
|
readonly contractName: string | null;
|
|
288
|
+
} & {
|
|
289
|
+
readonly callee: string;
|
|
288
290
|
} & {
|
|
289
291
|
readonly functionName: string;
|
|
290
292
|
} & {
|
|
291
293
|
readonly entityLabel: string | null;
|
|
292
|
-
} & {
|
|
293
|
-
readonly callee: string;
|
|
294
294
|
}, {}, {}>;
|
|
295
295
|
declare class WalletTxCall extends WalletTxCall_base {}
|
|
296
296
|
declare const WalletTxActionExecution_base: Schema.Class<WalletTxActionExecution, {
|
|
@@ -355,6 +355,8 @@ declare const WalletTxTransfer_base: Schema.Class<WalletTxTransfer, {
|
|
|
355
355
|
toEntityLabel: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
356
356
|
}>, never, {
|
|
357
357
|
readonly txHash: string;
|
|
358
|
+
} & {
|
|
359
|
+
readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
|
|
358
360
|
} & {
|
|
359
361
|
readonly tokenAddress: string;
|
|
360
362
|
} & {
|
|
@@ -362,13 +364,13 @@ declare const WalletTxTransfer_base: Schema.Class<WalletTxTransfer, {
|
|
|
362
364
|
} & {
|
|
363
365
|
readonly blockTimestamp: number;
|
|
364
366
|
} & {
|
|
365
|
-
readonly
|
|
367
|
+
readonly amount: number;
|
|
366
368
|
} & {
|
|
367
|
-
readonly
|
|
369
|
+
readonly fromAddress: string;
|
|
368
370
|
} & {
|
|
369
|
-
readonly
|
|
371
|
+
readonly toAddress: string;
|
|
370
372
|
} & {
|
|
371
|
-
readonly
|
|
373
|
+
readonly chainId: number;
|
|
372
374
|
} & {
|
|
373
375
|
readonly tokenId: number;
|
|
374
376
|
} & {
|
|
@@ -381,16 +383,14 @@ declare const WalletTxTransfer_base: Schema.Class<WalletTxTransfer, {
|
|
|
381
383
|
readonly tokenPriceUsd: number;
|
|
382
384
|
} & {
|
|
383
385
|
readonly tokenLogoUrl: string;
|
|
384
|
-
} & {
|
|
385
|
-
readonly fromAddress: string;
|
|
386
|
-
} & {
|
|
387
|
-
readonly toAddress: string;
|
|
388
|
-
} & {
|
|
389
|
-
readonly amount: number;
|
|
390
386
|
} & {
|
|
391
387
|
readonly fromAddressIsContract: boolean;
|
|
392
388
|
} & {
|
|
393
389
|
readonly toAddressIsContract: boolean;
|
|
390
|
+
} & {
|
|
391
|
+
readonly fromEntityLabel?: string | null | undefined;
|
|
392
|
+
} & {
|
|
393
|
+
readonly toEntityLabel?: string | null | undefined;
|
|
394
394
|
}, {}, {}>;
|
|
395
395
|
declare class WalletTxTransfer extends WalletTxTransfer_base {}
|
|
396
396
|
declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
|
|
@@ -433,6 +433,8 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
|
|
|
433
433
|
transfers: Schema.Array$<typeof WalletTxTransfer>;
|
|
434
434
|
}>, never, {
|
|
435
435
|
readonly txHash?: string | undefined;
|
|
436
|
+
} & {
|
|
437
|
+
readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
|
|
436
438
|
} & {
|
|
437
439
|
readonly tokenAddress: string;
|
|
438
440
|
} & {
|
|
@@ -442,13 +444,9 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
|
|
|
442
444
|
} & {
|
|
443
445
|
readonly holderAddress: string;
|
|
444
446
|
} & {
|
|
445
|
-
readonly
|
|
446
|
-
} & {
|
|
447
|
-
readonly balanceChange: number;
|
|
447
|
+
readonly transfers: readonly WalletTxTransfer[];
|
|
448
448
|
} & {
|
|
449
449
|
readonly chainId: number;
|
|
450
|
-
} & {
|
|
451
|
-
readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
|
|
452
450
|
} & {
|
|
453
451
|
readonly tokenId: number;
|
|
454
452
|
} & {
|
|
@@ -461,12 +459,14 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
|
|
|
461
459
|
readonly tokenPriceUsd: number;
|
|
462
460
|
} & {
|
|
463
461
|
readonly tokenLogoUrl: string;
|
|
462
|
+
} & {
|
|
463
|
+
readonly holderIsContract: boolean;
|
|
464
|
+
} & {
|
|
465
|
+
readonly balanceChange: number;
|
|
464
466
|
} & {
|
|
465
467
|
readonly holderEntityLabel?: string | null | undefined;
|
|
466
468
|
} & {
|
|
467
469
|
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, {
|
|
@@ -507,14 +507,6 @@ declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
|
|
|
507
507
|
readonly blockNumber: number;
|
|
508
508
|
} & {
|
|
509
509
|
readonly blockTimestamp: number;
|
|
510
|
-
} & {
|
|
511
|
-
readonly createdContracts: readonly {
|
|
512
|
-
readonly address: string;
|
|
513
|
-
readonly contractName: string | null;
|
|
514
|
-
readonly entityLabel: string | null;
|
|
515
|
-
}[];
|
|
516
|
-
} & {
|
|
517
|
-
readonly actionExecution?: WalletTxActionExecution | undefined;
|
|
518
510
|
} & {
|
|
519
511
|
readonly blockTimestampUtc: string;
|
|
520
512
|
} & {
|
|
@@ -523,6 +515,14 @@ declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
|
|
|
523
515
|
readonly calls: readonly WalletTxCall[];
|
|
524
516
|
} & {
|
|
525
517
|
readonly walletBalanceChanges: readonly WalletTxBalanceChange[];
|
|
518
|
+
} & {
|
|
519
|
+
readonly createdContracts: readonly {
|
|
520
|
+
readonly address: string;
|
|
521
|
+
readonly contractName: string | null;
|
|
522
|
+
readonly entityLabel: string | null;
|
|
523
|
+
}[];
|
|
524
|
+
} & {
|
|
525
|
+
readonly actionExecution?: WalletTxActionExecution | undefined;
|
|
526
526
|
}, {}, {}>;
|
|
527
527
|
declare class WalletTransaction extends WalletTransaction_base {}
|
|
528
528
|
declare const TransactionActivityPagination_base: Schema.Class<TransactionActivityPagination, {
|
|
@@ -561,12 +561,12 @@ declare const TransactionActivity_base: Schema.Class<TransactionActivity, {
|
|
|
561
561
|
readonly blockchain: "ethereum" | "base";
|
|
562
562
|
} & {
|
|
563
563
|
readonly transactions: readonly WalletTransaction[];
|
|
564
|
-
} & {
|
|
565
|
-
readonly fromAddress: string;
|
|
566
564
|
} & {
|
|
567
565
|
readonly totalTransactionCount: number;
|
|
568
566
|
} & {
|
|
569
567
|
readonly earliestTx: number | null;
|
|
568
|
+
} & {
|
|
569
|
+
readonly fromAddress: string;
|
|
570
570
|
} & {
|
|
571
571
|
readonly pagination: TransactionActivityPagination;
|
|
572
572
|
} & {
|
|
@@ -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 successOnly?: boolean | undefined;
|
|
732
730
|
} & {
|
|
733
731
|
readonly toAddresses?: readonly string[] | undefined;
|
|
732
|
+
} & {
|
|
733
|
+
readonly successOnly?: boolean | 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 {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herd-labs/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"prepack": "bun run build && bun ./scripts/prepare-publish.ts",
|
|
24
24
|
"postpack": "bun ./scripts/restore-publish.ts",
|
|
25
25
|
"release": "echo 'Use the GitHub Actions workflow: Actions → Release: SDK → Run workflow'",
|
|
26
|
-
"tsc": "
|
|
26
|
+
"tsc": "tsgo --noEmit",
|
|
27
27
|
"lint": "eslint .",
|
|
28
28
|
"lint:fix": "eslint . --fix"
|
|
29
29
|
},
|