gondi 0.30.3 → 0.31.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/index.mjs +664 -327
- package/dist/index.mjs.map +4 -4
- package/dist/src/blockchain.d.ts +11 -1
- package/dist/src/clients/api/index.d.ts +8 -0
- package/dist/src/clients/contracts/MslV6.d.ts +9072 -6
- package/dist/src/clients/contracts/index.d.ts +11 -4
- package/dist/src/deploys.d.ts +5 -2
- package/dist/src/generated/blockchain/v8.d.ts +2900 -0
- package/dist/src/generated/graphql/index.d.ts +1013 -684
- package/dist/src/gondi.d.ts +230 -0
- package/dist/src/utils/loan.d.ts +4 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -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':
|
|
32
|
-
'2':
|
|
33
|
-
'3':
|
|
34
|
-
'3.1':
|
|
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;
|
package/dist/src/deploys.d.ts
CHANGED
|
@@ -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,8 +39,8 @@ 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
46
|
export declare const getCurrencies: () => Currencies;
|