@herd-labs/sdk 0.0.2 → 0.0.3

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.
@@ -19,12 +19,12 @@ declare const WalletBalance_base: Schema.Class<WalletBalance, {
19
19
  readonly symbol: string | null;
20
20
  } & {
21
21
  readonly address: string;
22
- } & {
23
- readonly amount: string | number;
24
22
  } & {
25
23
  readonly decimals: number | null;
26
24
  } & {
27
25
  readonly valueUsd: number | null;
26
+ } & {
27
+ readonly amount: string | number;
28
28
  } & {
29
29
  readonly logoUrl: string | null;
30
30
  }, {}, {}>;
@@ -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 address: string;
42
- } & {
43
41
  readonly contractName: string;
42
+ } & {
43
+ readonly address: string;
44
44
  } & {
45
45
  readonly functions: readonly string[];
46
46
  }, {}, {}>;
@@ -82,13 +82,15 @@ declare const PendingTransaction_base: Schema.Class<PendingTransaction, {
82
82
  }>, never, {
83
83
  readonly value: string;
84
84
  } & {
85
- readonly safeTxHash: string;
85
+ readonly method?: string | null | undefined;
86
86
  } & {
87
87
  readonly to: string;
88
+ } & {
89
+ readonly data: string | null;
88
90
  } & {
89
91
  readonly nonce: number;
90
92
  } & {
91
- readonly data: string | null;
93
+ readonly safeTxHash: string;
92
94
  } & {
93
95
  readonly submissionDate?: string | undefined;
94
96
  } & {
@@ -97,8 +99,6 @@ declare const PendingTransaction_base: Schema.Class<PendingTransaction, {
97
99
  readonly confirmationsReceived?: number | undefined;
98
100
  } & {
99
101
  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
+ } & {
143
145
  readonly walletAddress: string;
144
146
  } & {
145
- readonly blockchain: "ethereum" | "base";
147
+ readonly multisigDetails?: MultisigDetails | undefined;
146
148
  } & {
147
- readonly totalTransactionCount: number;
149
+ readonly implementationAddress?: string | undefined;
148
150
  } & {
149
151
  readonly totalDeployedContractsCount: number;
150
152
  } & {
151
- readonly walletType: "contract" | "eoa" | "erc7702" | "erc4337" | "multisig";
153
+ readonly totalTransactionCount: number;
152
154
  } & {
153
- readonly implementationAddress?: string | undefined;
155
+ readonly walletType: "contract" | "multisig" | "eoa" | "erc7702" | "erc4337";
154
156
  } & {
155
157
  readonly erc7702Delegation?: Erc7702Delegation | undefined;
156
- } & {
157
- readonly multisigDetails?: MultisigDetails | undefined;
158
158
  } & {
159
159
  readonly earliestTx: number | null;
160
160
  } & {
@@ -204,15 +204,13 @@ 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
- } & {
209
207
  readonly txHash: string;
208
+ } & {
209
+ readonly blockNumber: number;
210
210
  } & {
211
211
  readonly blockTimestamp: number;
212
212
  } & {
213
213
  readonly blockTimestampUtc: string;
214
- } & {
215
- readonly blockNumber: number;
216
214
  } & {
217
215
  readonly logIndex: number;
218
216
  } & {
@@ -220,9 +218,11 @@ declare const TokenTransfer_base: Schema.Class<TokenTransfer, {
220
218
  } & {
221
219
  readonly toAddress: string;
222
220
  } & {
223
- readonly formattedAmount: string;
221
+ readonly amount: string;
224
222
  } & {
225
223
  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,14 +257,14 @@ declare const TokenActivity_base: Schema.Class<TokenActivity, {
257
257
  pagination: typeof TokenActivityPagination;
258
258
  }>, never, {
259
259
  readonly blockchain: "ethereum" | "base";
260
- } & {
261
- readonly holderAddress: string;
262
260
  } & {
263
261
  readonly tokenAddress: string;
264
262
  } & {
265
263
  readonly balance: TokenBalanceInfo;
266
264
  } & {
267
265
  readonly pagination: TokenActivityPagination;
266
+ } & {
267
+ readonly holderAddress: string;
268
268
  } & {
269
269
  readonly transfers: readonly TokenTransfer[];
270
270
  }, {}, {}>;
@@ -282,15 +282,15 @@ declare const WalletTxCall_base: Schema.Class<WalletTxCall, {
282
282
  contractName: Schema.NullOr<typeof Schema.String>;
283
283
  entityLabel: Schema.NullOr<typeof Schema.String>;
284
284
  }>, never, {
285
- readonly contractName: string | null;
285
+ readonly functionSignature: string;
286
286
  } & {
287
- readonly callee: string;
287
+ readonly contractName: string | null;
288
288
  } & {
289
- readonly functionSignature: string;
289
+ readonly entityLabel: string | null;
290
290
  } & {
291
291
  readonly functionName: string;
292
292
  } & {
293
- readonly entityLabel: string | null;
293
+ readonly callee: string;
294
294
  }, {}, {}>;
295
295
  declare class WalletTxCall extends WalletTxCall_base {}
296
296
  declare const WalletTxActionExecution_base: Schema.Class<WalletTxActionExecution, {
@@ -305,10 +305,10 @@ declare const WalletTxActionExecution_base: Schema.Class<WalletTxActionExecution
305
305
  executionId: typeof Schema.String;
306
306
  }>, never, {
307
307
  readonly actionId: string;
308
- } & {
309
- readonly versionId: string;
310
308
  } & {
311
309
  readonly actionName: string;
310
+ } & {
311
+ readonly versionId: string;
312
312
  } & {
313
313
  readonly executionId: string;
314
314
  }, {}, {}>;
@@ -354,19 +354,21 @@ 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 amount: number;
358
- } & {
359
357
  readonly txHash: string;
360
358
  } & {
361
- readonly blockTimestamp: number;
359
+ readonly tokenAddress: string;
362
360
  } & {
363
361
  readonly blockNumber: number;
364
362
  } & {
365
- readonly fromAddress: string;
363
+ readonly blockTimestamp: number;
366
364
  } & {
367
- readonly toAddress: string;
365
+ readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
368
366
  } & {
369
- readonly tokenAddress: string;
367
+ readonly tokenSymbol: string;
368
+ } & {
369
+ readonly toEntityLabel?: string | null | undefined;
370
+ } & {
371
+ readonly fromEntityLabel?: string | null | undefined;
370
372
  } & {
371
373
  readonly chainId: number;
372
374
  } & {
@@ -375,22 +377,20 @@ declare const WalletTxTransfer_base: Schema.Class<WalletTxTransfer, {
375
377
  readonly tokenDecimals: number;
376
378
  } & {
377
379
  readonly tokenName: string;
378
- } & {
379
- readonly tokenSymbol: string;
380
380
  } & {
381
381
  readonly tokenPriceUsd: number;
382
382
  } & {
383
383
  readonly tokenLogoUrl: string;
384
384
  } & {
385
- readonly fromAddressIsContract: boolean;
385
+ readonly fromAddress: string;
386
386
  } & {
387
- readonly toAddressIsContract: boolean;
387
+ readonly toAddress: string;
388
388
  } & {
389
- readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
389
+ readonly amount: number;
390
390
  } & {
391
- readonly fromEntityLabel?: string | null | undefined;
391
+ readonly fromAddressIsContract: boolean;
392
392
  } & {
393
- readonly toEntityLabel?: string | null | undefined;
393
+ readonly toAddressIsContract: boolean;
394
394
  }, {}, {}>;
395
395
  declare class WalletTxTransfer extends WalletTxTransfer_base {}
396
396
  declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
@@ -434,15 +434,21 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
434
434
  }>, never, {
435
435
  readonly txHash?: string | undefined;
436
436
  } & {
437
- readonly blockTimestamp: number;
437
+ readonly tokenAddress: string;
438
438
  } & {
439
439
  readonly blockNumber: number;
440
+ } & {
441
+ readonly blockTimestamp: number;
442
+ } & {
443
+ readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
444
+ } & {
445
+ readonly tokenSymbol: string;
440
446
  } & {
441
447
  readonly holderAddress: string;
442
448
  } & {
443
- readonly tokenAddress: string;
449
+ readonly holderIsContract: boolean;
444
450
  } & {
445
- readonly transfers: readonly WalletTxTransfer[];
451
+ readonly balanceChange: number;
446
452
  } & {
447
453
  readonly chainId: number;
448
454
  } & {
@@ -451,22 +457,16 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
451
457
  readonly tokenDecimals: number;
452
458
  } & {
453
459
  readonly tokenName: string;
454
- } & {
455
- readonly tokenSymbol: string;
456
460
  } & {
457
461
  readonly tokenPriceUsd: number;
458
462
  } & {
459
463
  readonly tokenLogoUrl: string;
460
- } & {
461
- readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
462
- } & {
463
- readonly holderIsContract: boolean;
464
- } & {
465
- readonly balanceChange: number;
466
464
  } & {
467
465
  readonly holderEntityLabel?: string | null | undefined;
468
466
  } & {
469
467
  readonly tokenEntityLabel?: string | null | undefined;
468
+ } & {
469
+ readonly transfers: readonly WalletTxTransfer[];
470
470
  }, {}, {}>;
471
471
  declare class WalletTxBalanceChange extends WalletTxBalanceChange_base {}
472
472
  declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
@@ -500,25 +500,25 @@ declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
500
500
  }>, never, {
501
501
  readonly txHash: string;
502
502
  } & {
503
- readonly blockTimestamp: number;
504
- } & {
505
- readonly blockTimestampUtc: string;
503
+ readonly success: boolean;
506
504
  } & {
507
505
  readonly blockNumber: number;
508
506
  } & {
509
- readonly success: boolean;
510
- } & {
511
- readonly calls: readonly WalletTxCall[];
507
+ readonly blockTimestamp: number;
512
508
  } & {
513
- readonly walletBalanceChanges: readonly WalletTxBalanceChange[];
509
+ readonly blockTimestampUtc: string;
514
510
  } & {
515
511
  readonly createdContracts: readonly {
516
- readonly address: string;
517
512
  readonly contractName: string | null;
513
+ readonly address: string;
518
514
  readonly entityLabel: string | null;
519
515
  }[];
520
516
  } & {
521
517
  readonly actionExecution?: WalletTxActionExecution | undefined;
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 totalTransactionCount: number;
559
+ readonly transactions: readonly WalletTransaction[];
560
560
  } & {
561
- readonly earliestTx: number | null;
561
+ readonly pagination: TransactionActivityPagination;
562
562
  } & {
563
563
  readonly fromAddress: string;
564
564
  } & {
565
- readonly pagination: TransactionActivityPagination;
565
+ readonly totalTransactionCount: number;
566
566
  } & {
567
- readonly toAddressesFilter?: readonly string[] | undefined;
567
+ readonly earliestTx: number | null;
568
568
  } & {
569
- readonly transactions: readonly WalletTransaction[];
569
+ readonly toAddressesFilter?: readonly string[] | undefined;
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;
596
598
  } & {
597
599
  readonly contractName: string | null;
600
+ } & {
601
+ readonly blockNumber: number;
598
602
  } & {
599
603
  readonly blockTimestamp: number;
600
604
  } & {
601
605
  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 totalDeployedContractsCount: number;
650
- } & {
651
- readonly pagination: DeployedContractsPagination;
652
648
  } & {
653
649
  readonly deployerAddress: string;
654
650
  } & {
655
651
  readonly isEOA: boolean;
652
+ } & {
653
+ readonly totalDeployedContractsCount: number;
654
+ } & {
655
+ readonly pagination: DeployedContractsPagination;
656
656
  } & {
657
657
  readonly deployedContracts: readonly DeployedContract[];
658
658
  }, {}, {}>;
@@ -674,10 +674,6 @@ declare const TokenActivityParams_base: Schema.Class<TokenActivityParams, {
674
674
  fromAddress: Schema.optional<typeof Schema.String>;
675
675
  toAddress: Schema.optional<typeof Schema.String>;
676
676
  }>, never, {
677
- readonly fromAddress?: string | undefined;
678
- } & {
679
- readonly toAddress?: string | undefined;
680
- } & {
681
677
  readonly page?: number | undefined;
682
678
  } & {
683
679
  readonly beforeTimestamp?: number | undefined;
@@ -687,6 +683,10 @@ declare const TokenActivityParams_base: Schema.Class<TokenActivityParams, {
687
683
  readonly beforeBlocknumber?: number | undefined;
688
684
  } & {
689
685
  readonly afterBlocknumber?: number | undefined;
686
+ } & {
687
+ readonly fromAddress?: string | undefined;
688
+ } & {
689
+ readonly toAddress?: string | undefined;
690
690
  }, {}, {}>;
691
691
  declare class TokenActivityParams extends TokenActivityParams_base {}
692
692
  declare const TransactionActivityQuery_base: Schema.Class<TransactionActivityQuery, {
@@ -709,8 +709,6 @@ declare const TransactionActivityQuery_base: Schema.Class<TransactionActivityQue
709
709
  afterBlocknumber: Schema.optional<typeof Schema.Number>;
710
710
  }>, never, {
711
711
  readonly blockchain: "ethereum" | "base";
712
- } & {
713
- readonly fromAddress?: string | undefined;
714
712
  } & {
715
713
  readonly page?: number | undefined;
716
714
  } & {
@@ -721,6 +719,8 @@ declare const TransactionActivityQuery_base: Schema.Class<TransactionActivityQue
721
719
  readonly beforeBlocknumber?: number | undefined;
722
720
  } & {
723
721
  readonly afterBlocknumber?: number | undefined;
722
+ } & {
723
+ readonly fromAddress?: string | undefined;
724
724
  } & {
725
725
  readonly toAddresses?: readonly string[] | undefined;
726
726
  }, {}, {}>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herd-labs/sdk",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",