@herd-labs/sdk 0.0.1 → 0.0.2

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.
@@ -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
  }, {}, {}>;
@@ -82,15 +82,13 @@ declare const PendingTransaction_base: Schema.Class<PendingTransaction, {
82
82
  }>, never, {
83
83
  readonly value: string;
84
84
  } & {
85
- readonly method?: string | null | undefined;
85
+ readonly safeTxHash: string;
86
86
  } & {
87
- readonly data: string | null;
87
+ readonly to: string;
88
88
  } & {
89
89
  readonly nonce: number;
90
90
  } & {
91
- readonly to: string;
92
- } & {
93
- readonly safeTxHash: string;
91
+ readonly data: string | null;
94
92
  } & {
95
93
  readonly submissionDate?: string | undefined;
96
94
  } & {
@@ -99,6 +97,8 @@ declare const PendingTransaction_base: Schema.Class<PendingTransaction, {
99
97
  readonly confirmationsReceived?: number | undefined;
100
98
  } & {
101
99
  readonly proposer?: string | null | undefined;
100
+ } & {
101
+ readonly method?: string | null | undefined;
102
102
  }, {}, {}>;
103
103
  declare class PendingTransaction extends PendingTransaction_base {}
104
104
  declare const MultisigDetails_base: Schema.Class<MultisigDetails, {
@@ -140,21 +140,21 @@ declare const WalletOverview_base: Schema.Class<WalletOverview, {
140
140
  totalDeployedContractsCount: typeof Schema.Number;
141
141
  balances: Schema.Array$<typeof WalletBalance>;
142
142
  }>, never, {
143
- readonly blockchain: "ethereum" | "base";
144
- } & {
145
143
  readonly walletAddress: string;
146
144
  } & {
147
- readonly multisigDetails?: MultisigDetails | undefined;
145
+ readonly blockchain: "ethereum" | "base";
148
146
  } & {
149
- readonly implementationAddress?: string | undefined;
147
+ readonly totalTransactionCount: number;
150
148
  } & {
151
149
  readonly totalDeployedContractsCount: number;
152
150
  } & {
153
- readonly totalTransactionCount: number;
151
+ readonly walletType: "contract" | "eoa" | "erc7702" | "erc4337" | "multisig";
154
152
  } & {
155
- readonly walletType: "contract" | "multisig" | "eoa" | "erc7702" | "erc4337";
153
+ readonly implementationAddress?: string | undefined;
156
154
  } & {
157
155
  readonly erc7702Delegation?: Erc7702Delegation | undefined;
156
+ } & {
157
+ readonly multisigDetails?: MultisigDetails | undefined;
158
158
  } & {
159
159
  readonly earliestTx: number | null;
160
160
  } & {
@@ -204,25 +204,25 @@ declare const TokenTransfer_base: Schema.Class<TokenTransfer, {
204
204
  formattedAmount: typeof Schema.String;
205
205
  direction: Schema.Literal<["in", "out"]>;
206
206
  }>, never, {
207
+ readonly amount: string;
208
+ } & {
207
209
  readonly txHash: string;
210
+ } & {
211
+ readonly blockTimestamp: number;
212
+ } & {
213
+ readonly blockTimestampUtc: string;
208
214
  } & {
209
215
  readonly blockNumber: number;
210
216
  } & {
211
217
  readonly logIndex: number;
212
- } & {
213
- readonly blockTimestamp: number;
214
218
  } & {
215
219
  readonly fromAddress: string;
216
220
  } & {
217
221
  readonly toAddress: string;
218
222
  } & {
219
- readonly amount: string;
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, {
@@ -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 holderAddress: string;
264
262
  } & {
265
- readonly transfers: readonly TokenTransfer[];
263
+ readonly tokenAddress: string;
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, {
@@ -284,13 +284,13 @@ declare const WalletTxCall_base: Schema.Class<WalletTxCall, {
284
284
  }>, never, {
285
285
  readonly contractName: string | null;
286
286
  } & {
287
- readonly functionName: string;
287
+ readonly callee: string;
288
288
  } & {
289
289
  readonly functionSignature: string;
290
290
  } & {
291
- readonly entityLabel: string | null;
291
+ readonly functionName: string;
292
292
  } & {
293
- readonly callee: string;
293
+ readonly entityLabel: string | null;
294
294
  }, {}, {}>;
295
295
  declare class WalletTxCall extends WalletTxCall_base {}
296
296
  declare const WalletTxActionExecution_base: Schema.Class<WalletTxActionExecution, {
@@ -354,19 +354,19 @@ declare const WalletTxTransfer_base: Schema.Class<WalletTxTransfer, {
354
354
  fromEntityLabel: Schema.optional<Schema.NullOr<typeof Schema.String>>;
355
355
  toEntityLabel: Schema.optional<Schema.NullOr<typeof Schema.String>>;
356
356
  }>, never, {
357
- readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
357
+ readonly amount: number;
358
358
  } & {
359
359
  readonly txHash: string;
360
360
  } & {
361
- readonly toEntityLabel?: string | null | undefined;
362
- } & {
363
- readonly fromEntityLabel?: string | null | undefined;
361
+ readonly blockTimestamp: number;
364
362
  } & {
365
363
  readonly blockNumber: number;
366
364
  } & {
367
- readonly tokenAddress: string;
365
+ readonly fromAddress: string;
368
366
  } & {
369
- readonly blockTimestamp: number;
367
+ readonly toAddress: string;
368
+ } & {
369
+ readonly tokenAddress: string;
370
370
  } & {
371
371
  readonly chainId: number;
372
372
  } & {
@@ -382,15 +382,15 @@ declare const WalletTxTransfer_base: Schema.Class<WalletTxTransfer, {
382
382
  } & {
383
383
  readonly tokenLogoUrl: string;
384
384
  } & {
385
- readonly fromAddress: string;
385
+ readonly fromAddressIsContract: boolean;
386
386
  } & {
387
- readonly toAddress: string;
387
+ readonly toAddressIsContract: boolean;
388
388
  } & {
389
- readonly amount: number;
389
+ readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
390
390
  } & {
391
- readonly fromAddressIsContract: boolean;
391
+ readonly fromEntityLabel?: string | null | undefined;
392
392
  } & {
393
- readonly toAddressIsContract: boolean;
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, {
@@ -432,21 +432,17 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
432
432
  tokenEntityLabel: Schema.optional<Schema.NullOr<typeof Schema.String>>;
433
433
  transfers: Schema.Array$<typeof WalletTxTransfer>;
434
434
  }>, never, {
435
- readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
436
- } & {
437
435
  readonly txHash?: string | undefined;
438
436
  } & {
439
- readonly blockNumber: number;
437
+ readonly blockTimestamp: number;
440
438
  } & {
441
- readonly tokenAddress: string;
439
+ readonly blockNumber: number;
442
440
  } & {
443
441
  readonly holderAddress: string;
444
442
  } & {
445
- readonly holderIsContract: boolean;
446
- } & {
447
- readonly balanceChange: number;
443
+ readonly tokenAddress: string;
448
444
  } & {
449
- readonly blockTimestamp: number;
445
+ readonly transfers: readonly WalletTxTransfer[];
450
446
  } & {
451
447
  readonly chainId: number;
452
448
  } & {
@@ -461,12 +457,16 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
461
457
  readonly tokenPriceUsd: number;
462
458
  } & {
463
459
  readonly tokenLogoUrl: string;
460
+ } & {
461
+ readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
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, {
@@ -499,26 +499,26 @@ declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
499
499
  actionExecution: Schema.optional<typeof WalletTxActionExecution>;
500
500
  }>, never, {
501
501
  readonly txHash: string;
502
- } & {
503
- readonly blockNumber: number;
504
502
  } & {
505
503
  readonly blockTimestamp: number;
504
+ } & {
505
+ readonly blockTimestampUtc: string;
506
+ } & {
507
+ readonly blockNumber: number;
506
508
  } & {
507
509
  readonly success: boolean;
510
+ } & {
511
+ readonly calls: readonly WalletTxCall[];
512
+ } & {
513
+ readonly walletBalanceChanges: readonly WalletTxBalanceChange[];
508
514
  } & {
509
515
  readonly createdContracts: readonly {
510
- readonly contractName: string | null;
511
516
  readonly address: string;
517
+ readonly contractName: string | null;
512
518
  readonly entityLabel: string | null;
513
519
  }[];
514
520
  } & {
515
521
  readonly actionExecution?: WalletTxActionExecution | undefined;
516
- } & {
517
- readonly blockTimestampUtc: string;
518
- } & {
519
- readonly calls: readonly WalletTxCall[];
520
- } & {
521
- readonly walletBalanceChanges: readonly WalletTxBalanceChange[];
522
522
  }, {}, {}>;
523
523
  declare class WalletTransaction extends WalletTransaction_base {}
524
524
  declare const TransactionActivityPagination_base: Schema.Class<TransactionActivityPagination, {
@@ -556,17 +556,17 @@ declare const TransactionActivity_base: Schema.Class<TransactionActivity, {
556
556
  }>, never, {
557
557
  readonly blockchain: "ethereum" | "base";
558
558
  } & {
559
- readonly transactions: readonly WalletTransaction[];
559
+ readonly totalTransactionCount: number;
560
+ } & {
561
+ readonly earliestTx: number | null;
560
562
  } & {
561
563
  readonly fromAddress: string;
562
564
  } & {
563
565
  readonly pagination: TransactionActivityPagination;
564
- } & {
565
- readonly totalTransactionCount: number;
566
- } & {
567
- readonly earliestTx: number | null;
568
566
  } & {
569
567
  readonly toAddressesFilter?: readonly string[] | undefined;
568
+ } & {
569
+ readonly transactions: readonly WalletTransaction[];
570
570
  }, {}, {}>;
571
571
  declare class TransactionActivity extends TransactionActivity_base {}
572
572
  declare const DeployedContract_base: Schema.Class<DeployedContract, {
@@ -593,16 +593,16 @@ declare const DeployedContract_base: Schema.Class<DeployedContract, {
593
593
  factoryName: Schema.NullOr<typeof Schema.String>;
594
594
  }>, never, {
595
595
  readonly symbol: string | null;
596
- } & {
597
- readonly contractAddress: string;
598
596
  } & {
599
597
  readonly contractName: string | null;
600
- } & {
601
- readonly blockNumber: number;
602
598
  } & {
603
599
  readonly blockTimestamp: number;
604
600
  } & {
605
601
  readonly blockTimestampUtc: string;
602
+ } & {
603
+ readonly blockNumber: number;
604
+ } & {
605
+ readonly contractAddress: string;
606
606
  } & {
607
607
  readonly deploymentTxnHash: string;
608
608
  } & {
@@ -645,14 +645,14 @@ declare const DeployedContracts_base: Schema.Class<DeployedContracts, {
645
645
  pagination: typeof DeployedContractsPagination;
646
646
  }>, never, {
647
647
  readonly blockchain: "ethereum" | "base";
648
- } & {
649
- readonly deployerAddress: string;
650
- } & {
651
- readonly isEOA: boolean;
652
648
  } & {
653
649
  readonly totalDeployedContractsCount: number;
654
650
  } & {
655
651
  readonly pagination: DeployedContractsPagination;
652
+ } & {
653
+ readonly deployerAddress: string;
654
+ } & {
655
+ readonly isEOA: boolean;
656
656
  } & {
657
657
  readonly deployedContracts: readonly DeployedContract[];
658
658
  }, {}, {}>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herd-labs/sdk",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -18,16 +18,25 @@
18
18
  "publishConfig": {
19
19
  "access": "public"
20
20
  },
21
+ "scripts": {
22
+ "build": "tsdown",
23
+ "prepack": "bun run build && bun ./scripts/prepare-publish.ts",
24
+ "postpack": "bun ./scripts/restore-publish.ts",
25
+ "release": "echo 'Use the GitHub Actions workflow: Actions → Release: SDK → Run workflow'",
26
+ "tsc": "tsc --noEmit",
27
+ "lint": "eslint .",
28
+ "lint:fix": "eslint . --fix"
29
+ },
21
30
  "peerDependencies": {
22
31
  "typescript": "^5"
23
32
  },
24
33
  "dependencies": {
25
- "@effect/cli": "catalog:",
26
- "@effect/platform": "catalog:",
27
- "@effect/cluster": "catalog:",
28
- "@effect/platform-bun": "catalog:",
29
- "@effect/rpc": "catalog:",
30
- "@effect/workflow": "catalog:",
31
- "effect": "catalog:"
34
+ "@effect/cli": "0.69.0",
35
+ "@effect/platform": "^0.90.0",
36
+ "@effect/cluster": "^0.45.0",
37
+ "@effect/platform-bun": "^0.76.0",
38
+ "@effect/rpc": "^0.67.0",
39
+ "@effect/workflow": "^0.7.0",
40
+ "effect": "3.18.4"
32
41
  }
33
42
  }