@dfns/lib-viem 0.2.0 → 0.2.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.
Files changed (2) hide show
  1. package/index.d.ts +1 -6
  2. package/package.json +1 -7
package/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { DfnsApiClient } from '@dfns/sdk';
2
- import { GetWalletResponse } from '@dfns/sdk/types/wallets';
3
2
  import { Address, GetTransactionType, Hash, SerializeTransactionFn, SignableMessage, TransactionSerializable, TransactionSerialized, TypedData, TypedDataDefinition } from 'viem';
4
3
  export type DfnsWalletOptions = {
5
4
  walletId: string;
@@ -9,14 +8,11 @@ export type DfnsWalletOptions = {
9
8
  /** @deprecated transaction signing is now synchronous. polling is deprecated. */
10
9
  retryInterval?: number;
11
10
  };
12
- type WalletMetadata = GetWalletResponse & {
13
- boundToEvmNetwork: boolean;
14
- };
15
11
  export declare class DfnsWallet {
16
12
  private metadata;
17
13
  readonly address: Address;
18
14
  private readonly dfnsClient;
19
- constructor(metadata: WalletMetadata, options: DfnsWalletOptions);
15
+ private constructor();
20
16
  static init(options: DfnsWalletOptions): Promise<DfnsWallet>;
21
17
  private signHash;
22
18
  signMessage({ message }: {
@@ -29,4 +25,3 @@ export declare class DfnsWallet {
29
25
  [key: string]: unknown;
30
26
  }, TPrimaryType extends string = string>(typedData: TypedDataDefinition<TTypedData, TPrimaryType>): Promise<Hash>;
31
27
  }
32
- export {};
package/package.json CHANGED
@@ -1,15 +1,9 @@
1
1
  {
2
2
  "name": "@dfns/lib-viem",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "dependencies": {
5
- "buffer": "6.0.3",
6
- "cross-fetch": "3.1.6",
7
- "uuid": "9.0.0",
8
5
  "viem": "1.19.11"
9
6
  },
10
- "peerDependencies": {
11
- "@dfns/sdk": "0.2.0"
12
- },
13
7
  "main": "./index.js",
14
8
  "type": "commonjs"
15
9
  }