@morpho-org/blue-sdk 1.10.5-alpha.7 → 1.10.5-alpha.8
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/lib/addresses.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export declare const getChainAddresses: (chainId: number) => ChainAddresses;
|
|
|
87
87
|
* - unwrapped token has same number of decimals than wrapped tokens.
|
|
88
88
|
*/
|
|
89
89
|
export declare const unwrappedTokensMapping: Record<ChainId, Record<Address, Address>>;
|
|
90
|
-
export declare function getUnwrappedToken(wrappedToken: Address, chainId: ChainId): string | undefined;
|
|
90
|
+
export declare function getUnwrappedToken(wrappedToken: Address, chainId: ChainId): `0x${string}` | undefined;
|
|
91
91
|
/**
|
|
92
92
|
* The registry of all known ERC20Wrapper tokens.
|
|
93
93
|
*/
|
package/lib/types.d.ts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
export type Hex64 = string & {
|
|
2
|
-
__LENGTH__: 64;
|
|
3
|
-
};
|
|
4
1
|
/**
|
|
5
2
|
* The address of a Contract, or an EOA
|
|
6
3
|
*/
|
|
7
|
-
export type Address = string
|
|
4
|
+
export type Address = `0x${string}`;
|
|
8
5
|
/**
|
|
9
6
|
* The id of a market used on the Blue contract
|
|
10
7
|
*/
|
|
11
|
-
export type MarketId = `0x${
|
|
8
|
+
export type MarketId = `0x${string}` & {
|
|
12
9
|
__TYPE__: "marketId";
|
|
13
10
|
};
|
|
14
11
|
export type BigIntish = bigint | string | number | boolean;
|
package/lib/vault/Vault.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ export declare class Vault extends VaultToken implements InputVault {
|
|
|
111
111
|
*/
|
|
112
112
|
publicAllocatorConfig?: VaultPublicAllocatorConfig;
|
|
113
113
|
constructor({ config, curator, owner, guardian, publicAllocatorConfig, fee, feeRecipient, skimRecipient, pendingTimelock, pendingGuardian, pendingOwner, timelock, supplyQueue, withdrawQueue, totalSupply, totalAssets, lastTotalAssets, }: InputVault);
|
|
114
|
-
get asset(): string
|
|
114
|
+
get asset(): `0x${string}`;
|
|
115
115
|
/**
|
|
116
116
|
* The amount of interest in assets accrued since the last interaction with the vault.
|
|
117
117
|
*/
|
|
@@ -14,7 +14,7 @@ export declare class VaultMarketAllocation implements InputVaultMarketAllocation
|
|
|
14
14
|
*/
|
|
15
15
|
readonly position: AccrualPosition;
|
|
16
16
|
constructor({ config, position }: InputVaultMarketAllocation);
|
|
17
|
-
get vault(): string
|
|
17
|
+
get vault(): `0x${string}`;
|
|
18
18
|
get marketId(): import("..").MarketId;
|
|
19
19
|
get utilization(): bigint;
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morpho-org/blue-sdk",
|
|
3
|
-
"version": "1.10.5-alpha.
|
|
3
|
+
"version": "1.10.5-alpha.8",
|
|
4
4
|
"author": "Morpho Association <contact@morpho.org>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"keccak256": "^1.0.6"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@morpho-org/morpho-test": "^1.10.5-alpha.
|
|
20
|
-
"@morpho-org/morpho-ts": "^1.10.5-alpha.
|
|
19
|
+
"@morpho-org/morpho-test": "^1.10.5-alpha.8",
|
|
20
|
+
"@morpho-org/morpho-ts": "^1.10.5-alpha.8",
|
|
21
21
|
"@types/jest": "^29.5.12",
|
|
22
22
|
"@types/node": "^22.1.0",
|
|
23
23
|
"jest": "^29.7.0",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"typescript": "^5.6.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@morpho-org/morpho-ts": "^1.10.5-alpha.
|
|
28
|
+
"@morpho-org/morpho-ts": "^1.10.5-alpha.8"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
],
|
|
50
50
|
"preset": "ts-jest"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "e4034ace7308cc26edf699ea2b4b1d0808ca932e"
|
|
53
53
|
}
|