gondi 0.30.4 → 0.32.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.
@@ -18,6 +18,7 @@ export declare class UserVaultV5 extends BaseContract<typeof userVaultABIV5> {
18
18
  blobGasUsed?: bigint | undefined;
19
19
  blockHash: import("viem").Hash;
20
20
  blockNumber: bigint;
21
+ blockTimestamp?: bigint | undefined;
21
22
  contractAddress: Address | null | undefined;
22
23
  cumulativeGasUsed: bigint;
23
24
  effectiveGasPrice: bigint;
@@ -43,6 +44,7 @@ export declare class UserVaultV5 extends BaseContract<typeof userVaultABIV5> {
43
44
  blobGasUsed?: bigint | undefined;
44
45
  blockHash: import("viem").Hash;
45
46
  blockNumber: bigint;
47
+ blockTimestamp?: bigint | undefined;
46
48
  contractAddress: Address | null | undefined;
47
49
  cumulativeGasUsed: bigint;
48
50
  effectiveGasPrice: bigint;
@@ -16,6 +16,7 @@ export declare class UserVaultV6 extends BaseContract<typeof userVaultABIV6> {
16
16
  blobGasUsed?: bigint | undefined;
17
17
  blockHash: import("viem").Hash;
18
18
  blockNumber: bigint;
19
+ blockTimestamp?: bigint | undefined;
19
20
  contractAddress: Address | null | undefined;
20
21
  cumulativeGasUsed: bigint;
21
22
  effectiveGasPrice: bigint;
@@ -48,6 +49,7 @@ export declare class UserVaultV6 extends BaseContract<typeof userVaultABIV6> {
48
49
  blobGasUsed?: bigint | undefined;
49
50
  blockHash: import("viem").Hash;
50
51
  blockNumber: bigint;
52
+ blockTimestamp?: bigint | undefined;
51
53
  contractAddress: Address | null | undefined;
52
54
  cumulativeGasUsed: bigint;
53
55
  effectiveGasPrice: bigint;
@@ -69,6 +71,7 @@ export declare class UserVaultV6 extends BaseContract<typeof userVaultABIV6> {
69
71
  blobGasUsed?: bigint | undefined;
70
72
  blockHash: import("viem").Hash;
71
73
  blockNumber: bigint;
74
+ blockTimestamp?: bigint | undefined;
72
75
  contractAddress: Address | null | undefined;
73
76
  cumulativeGasUsed: bigint;
74
77
  effectiveGasPrice: bigint;
@@ -94,6 +97,7 @@ export declare class UserVaultV6 extends BaseContract<typeof userVaultABIV6> {
94
97
  blobGasUsed?: bigint | undefined;
95
98
  blockHash: import("viem").Hash;
96
99
  blockNumber: bigint;
100
+ blockTimestamp?: bigint | undefined;
97
101
  contractAddress: Address | null | undefined;
98
102
  cumulativeGasUsed: bigint;
99
103
  effectiveGasPrice: bigint;
@@ -119,6 +123,7 @@ export declare class UserVaultV6 extends BaseContract<typeof userVaultABIV6> {
119
123
  blobGasUsed?: bigint | undefined;
120
124
  blockHash: import("viem").Hash;
121
125
  blockNumber: bigint;
126
+ blockTimestamp?: bigint | undefined;
122
127
  contractAddress: Address | null | undefined;
123
128
  cumulativeGasUsed: bigint;
124
129
  effectiveGasPrice: bigint;
@@ -145,6 +150,7 @@ export declare class UserVaultV6 extends BaseContract<typeof userVaultABIV6> {
145
150
  blobGasUsed?: bigint | undefined;
146
151
  blockHash: import("viem").Hash;
147
152
  blockNumber: bigint;
153
+ blockTimestamp?: bigint | undefined;
148
154
  contractAddress: Address | null | undefined;
149
155
  cumulativeGasUsed: bigint;
150
156
  effectiveGasPrice: bigint;
@@ -23,27 +23,34 @@ export interface KeyedClient {
23
23
  wallet: Wallet;
24
24
  }
25
25
  type Erc721Or1155ABI = typeof erc721ABI | typeof erc1155Abi;
26
+ type MslArgs = {
27
+ walletClient: Wallet;
28
+ address: Address;
29
+ };
26
30
  export declare class Contracts {
27
31
  publicClient: GondiPublicClient;
28
32
  walletClient: Wallet;
29
33
  constructor(publicClient: GondiPublicClient, walletClient: Wallet);
30
34
  _Msls: {
31
- '1': typeof MslV4;
32
- '2': typeof MslV5;
33
- '3': typeof MslV6;
34
- '3.1': typeof MslV6;
35
+ '1': (args: MslArgs) => MslV4;
36
+ '2': (args: MslArgs) => MslV5;
37
+ '3': (args: MslArgs) => MslV6;
38
+ '3.1': (args: MslArgs) => MslV6;
39
+ '3.2': (args: MslArgs) => MslV6;
35
40
  };
36
41
  _Alls: {
37
42
  '1': typeof AllV4;
38
43
  '2': typeof AllV5;
39
44
  '3': typeof AllV6;
40
45
  '3.1': typeof AllV6;
46
+ '3.2': typeof AllV6;
41
47
  };
42
48
  _PBs: {
43
49
  '2': typeof PurchaseBundlerV1;
44
50
  '3': typeof PurchaseBundlerV2;
45
51
  '3.1': typeof PurchaseBundlerV1;
46
52
  '3.1_PB_V2': typeof PurchaseBundlerV2;
53
+ '3.2': typeof PurchaseBundlerV2;
47
54
  };
48
55
  _UserVaults: {
49
56
  '2': typeof UserVaultV5;
@@ -5,12 +5,14 @@ interface Contracts {
5
5
  '2': Address;
6
6
  '3': Address;
7
7
  '3.1': Address;
8
+ '3.2': Address;
8
9
  };
9
10
  AuctionLoanLiquidator: {
10
11
  '1': Address;
11
12
  '2': Address;
12
13
  '3': Address;
13
14
  '3.1': Address;
15
+ '3.2': Address;
14
16
  };
15
17
  UserVault: {
16
18
  '2': Address;
@@ -21,6 +23,7 @@ interface Contracts {
21
23
  '3': Address;
22
24
  '3.1': Address;
23
25
  '3.1_PB_V2': Address;
26
+ '3.2': Address;
24
27
  };
25
28
  Seaport: Address;
26
29
  Aave: Address;
@@ -36,9 +39,14 @@ interface Currencies {
36
39
  }
37
40
  export declare const MSL_V5_TX_HASH: Hash;
38
41
  export declare const getContracts: (chain: Pick<Chain, "id">) => Contracts;
39
- export declare const getVersionFromMslAddress: (chain: Pick<Chain, "id">, address: Address) => "1" | "2" | "3" | "3.1";
40
- export declare const getVersionFromPurchaseBundlerAddress: (chain: Pick<Chain, "id">, address: Address) => "2" | "3" | "3.1" | "3.1_PB_V2";
42
+ export declare const getVersionFromMslAddress: (chain: Pick<Chain, "id">, address: Address) => "1" | "2" | "3" | "3.1" | "3.2";
43
+ export declare const getVersionFromPurchaseBundlerAddress: (chain: Pick<Chain, "id">, address: Address) => "2" | "3" | "3.1" | "3.2" | "3.1_PB_V2";
41
44
  export declare const getVersionFromUserVaultAddress: (chain: Pick<Chain, "id">, address: Address) => "2" | "3";
42
45
  export declare const getApiKeys: () => ApiKeys;
43
- export declare const getCurrencies: () => Currencies;
46
+ /**
47
+ * Well-known currency addresses for a chain. Defaults to mainnet for
48
+ * backwards compatibility. `USDC_ADDRESS` carries the chain's dollar stable
49
+ * (USDG on Robinhood Chain, where no viable USDC exists).
50
+ */
51
+ export declare const getCurrencies: (chain?: Pick<Chain, "id">) => Currencies;
44
52
  export {};