@herd-labs/sdk 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/config.d.ts +8 -8
- package/dist/src/config.js +8 -11
- package/dist/src/errors.d.ts +29 -44
- package/dist/src/errors.js +13 -16
- package/dist/src/live/ActionsServiceLive.d.ts +2 -2
- package/dist/src/live/ActionsServiceLive.js +9 -9
- package/dist/src/live/AdaptersServiceLive.d.ts +2 -2
- package/dist/src/live/AdaptersServiceLive.js +6 -6
- package/dist/src/live/AgentSafesServiceLive.d.ts +2 -2
- package/dist/src/live/AgentSafesServiceLive.js +3 -3
- package/dist/src/live/AgentWalletsServiceLive.d.ts +2 -2
- package/dist/src/live/AgentWalletsServiceLive.js +3 -3
- package/dist/src/live/AgentWorkflowsServiceLive.d.ts +2 -2
- package/dist/src/live/AgentWorkflowsServiceLive.js +10 -10
- package/dist/src/live/AuthServiceLive.d.ts +2 -2
- package/dist/src/live/AuthServiceLive.js +7 -7
- package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
- package/dist/src/live/BookmarksServiceLive.js +16 -16
- package/dist/src/live/CodeBlocksServiceLive.d.ts +2 -2
- package/dist/src/live/CodeBlocksServiceLive.js +8 -8
- package/dist/src/live/CollectionsServiceLive.d.ts +2 -2
- package/dist/src/live/CollectionsServiceLive.js +3 -3
- package/dist/src/live/ContractsServiceLive.d.ts +2 -2
- package/dist/src/live/ContractsServiceLive.js +6 -6
- package/dist/src/live/DocsServiceLive.d.ts +2 -2
- package/dist/src/live/DocsServiceLive.js +2 -2
- package/dist/src/live/GroupsServiceLive.d.ts +2 -2
- package/dist/src/live/GroupsServiceLive.js +5 -5
- package/dist/src/live/HalServiceLive.d.ts +2 -2
- package/dist/src/live/HalServiceLive.js +9 -9
- package/dist/src/live/TransactionsServiceLive.d.ts +2 -2
- package/dist/src/live/TransactionsServiceLive.js +17 -17
- package/dist/src/live/WalletsServiceLive.d.ts +2 -2
- package/dist/src/live/WalletsServiceLive.js +14 -14
- package/dist/src/live/http.d.ts +6 -5
- package/dist/src/live/http.js +16 -18
- package/dist/src/schemas/actions.d.ts +95 -323
- package/dist/src/schemas/actions.js +41 -37
- package/dist/src/schemas/adapters.d.ts +5 -15
- package/dist/src/schemas/adapters.js +2 -2
- package/dist/src/schemas/agent-wallets.d.ts +66 -210
- package/dist/src/schemas/agent-wallets.js +25 -25
- package/dist/src/schemas/agent-workflows.d.ts +62 -62
- package/dist/src/schemas/agent-workflows.js +35 -31
- package/dist/src/schemas/auth.d.ts +22 -47
- package/dist/src/schemas/auth.js +10 -7
- package/dist/src/schemas/bookmarks.d.ts +64 -204
- package/dist/src/schemas/bookmarks.js +27 -23
- package/dist/src/schemas/codeblocks.d.ts +98 -294
- package/dist/src/schemas/codeblocks.js +41 -36
- package/dist/src/schemas/collections.d.ts +68 -224
- package/dist/src/schemas/collections.js +28 -24
- package/dist/src/schemas/common.d.ts +9 -25
- package/dist/src/schemas/common.js +5 -5
- package/dist/src/schemas/contracts.d.ts +125 -431
- package/dist/src/schemas/contracts.js +52 -63
- package/dist/src/schemas/docs.d.ts +9 -26
- package/dist/src/schemas/docs.js +4 -4
- package/dist/src/schemas/groups.d.ts +47 -47
- package/dist/src/schemas/groups.js +18 -18
- package/dist/src/schemas/hal.d.ts +57 -211
- package/dist/src/schemas/hal.js +32 -30
- package/dist/src/schemas/transactions.d.ts +404 -890
- package/dist/src/schemas/transactions.js +128 -132
- package/dist/src/schemas/wallets.d.ts +205 -709
- package/dist/src/schemas/wallets.js +112 -96
- package/dist/src/services/ActionsService.d.ts +1 -1
- package/dist/src/services/ActionsService.js +2 -2
- package/dist/src/services/AdaptersService.d.ts +1 -1
- package/dist/src/services/AdaptersService.js +2 -2
- package/dist/src/services/AgentSafesService.d.ts +1 -1
- package/dist/src/services/AgentSafesService.js +2 -2
- package/dist/src/services/AgentWalletsService.d.ts +1 -1
- package/dist/src/services/AgentWalletsService.js +2 -2
- package/dist/src/services/AgentWorkflowsService.d.ts +3 -3
- package/dist/src/services/AgentWorkflowsService.js +6 -2
- package/dist/src/services/AuthService.d.ts +3 -3
- package/dist/src/services/AuthService.js +2 -2
- package/dist/src/services/BookmarksService.d.ts +2 -2
- package/dist/src/services/BookmarksService.js +2 -2
- package/dist/src/services/CodeBlocksService.d.ts +1 -1
- package/dist/src/services/CodeBlocksService.js +2 -2
- package/dist/src/services/CollectionsService.d.ts +1 -1
- package/dist/src/services/CollectionsService.js +2 -2
- package/dist/src/services/ContractsService.d.ts +1 -1
- package/dist/src/services/ContractsService.js +2 -2
- package/dist/src/services/DocsService.d.ts +2 -2
- package/dist/src/services/DocsService.js +2 -2
- package/dist/src/services/GroupsService.d.ts +3 -3
- package/dist/src/services/GroupsService.js +4 -2
- package/dist/src/services/HalService.d.ts +1 -1
- package/dist/src/services/HalService.js +2 -2
- package/dist/src/services/TransactionsService.d.ts +1 -1
- package/dist/src/services/TransactionsService.js +2 -2
- package/dist/src/services/WalletsService.d.ts +1 -1
- package/dist/src/services/WalletsService.js +2 -2
- package/package.json +14 -19
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Context
|
|
1
|
+
import { Context } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/services/HalService.ts
|
|
4
|
-
var HalService = class extends Context.
|
|
4
|
+
var HalService = class extends Context.Service()("HalService") {};
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { HalService };
|
|
@@ -4,7 +4,7 @@ import { LatestEventTransactions, LatestFunctionTransactions, LatestTxParams, Tr
|
|
|
4
4
|
import { Context, Effect } from "effect";
|
|
5
5
|
|
|
6
6
|
//#region src/services/TransactionsService.d.ts
|
|
7
|
-
declare const TransactionsService_base: Context.
|
|
7
|
+
declare const TransactionsService_base: Context.ServiceClass<TransactionsService, "TransactionsService", {
|
|
8
8
|
readonly getTransaction: (blockchain: BlockchainType, txHash: string) => Effect.Effect<TransactionQueryResponse, ServiceError>;
|
|
9
9
|
readonly getLatestFunctionTransactions: (blockchain: BlockchainType, address: EvmAddressType, filter: {
|
|
10
10
|
readonly name?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Context
|
|
1
|
+
import { Context } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/services/TransactionsService.ts
|
|
4
|
-
var TransactionsService = class extends Context.
|
|
4
|
+
var TransactionsService = class extends Context.Service()("TransactionsService") {};
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { TransactionsService };
|
|
@@ -4,7 +4,7 @@ import { DeployedContracts, TokenActivity, TokenActivityParams, TransactionActiv
|
|
|
4
4
|
import { Context, Effect } from "effect";
|
|
5
5
|
|
|
6
6
|
//#region src/services/WalletsService.d.ts
|
|
7
|
-
declare const WalletsService_base: Context.
|
|
7
|
+
declare const WalletsService_base: Context.ServiceClass<WalletsService, "WalletsService", {
|
|
8
8
|
readonly getOverview: (blockchain: BlockchainType, address: EvmAddressType, params?: PaginationParams) => Effect.Effect<WalletOverview, ServiceError>;
|
|
9
9
|
readonly getTokenActivity: (blockchain: BlockchainType, address: EvmAddressType, tokenAddress: EvmAddressType, params?: TokenActivityParams) => Effect.Effect<TokenActivity, ServiceError>;
|
|
10
10
|
readonly getTransactions: (query: TransactionActivityQuery) => Effect.Effect<TransactionActivity, ServiceError>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Context
|
|
1
|
+
import { Context } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/services/WalletsService.ts
|
|
4
|
-
var WalletsService = class extends Context.
|
|
4
|
+
var WalletsService = class extends Context.Service()("WalletsService") {};
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { WalletsService };
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herd-labs/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"files": [
|
|
5
|
+
"dist"
|
|
6
|
+
],
|
|
4
7
|
"type": "module",
|
|
5
8
|
"main": "./dist/index.js",
|
|
6
9
|
"module": "./dist/index.js",
|
|
7
10
|
"types": "./dist/index.d.ts",
|
|
8
11
|
"exports": {
|
|
9
12
|
".": {
|
|
10
|
-
"
|
|
13
|
+
"default": "./dist/index.js",
|
|
11
14
|
"import": "./dist/index.js",
|
|
12
|
-
"
|
|
15
|
+
"types": "./dist/index.d.ts"
|
|
13
16
|
}
|
|
14
17
|
},
|
|
15
|
-
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
],
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
@@ -23,21 +23,16 @@
|
|
|
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": "
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
},
|
|
30
|
-
"peerDependencies": {
|
|
31
|
-
"typescript": "^5"
|
|
26
|
+
"tsc": "tsgo --noEmit",
|
|
27
|
+
"check": "ultracite check",
|
|
28
|
+
"fix": "ultracite fix"
|
|
32
29
|
},
|
|
33
30
|
"dependencies": {
|
|
34
31
|
"@better-auth/api-key": "^1.6.9",
|
|
35
|
-
"@effect/
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
"@effect/workflow": "^0.7.0",
|
|
41
|
-
"effect": "3.18.4"
|
|
32
|
+
"@effect/platform-bun": "4.0.0-beta.74",
|
|
33
|
+
"effect": "4.0.0-beta.74"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"typescript": "^5"
|
|
42
37
|
}
|
|
43
38
|
}
|