@morpho-org/blue-sdk 1.2.4 → 1.3.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/lib/addresses.d.ts +17 -70
- package/lib/addresses.js +9 -32
- package/package.json +5 -5
package/lib/addresses.d.ts
CHANGED
|
@@ -10,55 +10,36 @@ export declare const addresses: {
|
|
|
10
10
|
readonly morpho: "0x64c7044050Ba0431252df24fEd4d9635a275CB41";
|
|
11
11
|
readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
12
12
|
readonly bundler: "0xCFFbEEAFCD79Fd68FD56Dbc31A419f290A2Fe9e0";
|
|
13
|
-
readonly urd: "0x820755E757a590683dc43115290eb1Cb20a60405";
|
|
14
13
|
readonly wNative: "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6";
|
|
15
14
|
readonly stEth: "0x1643E812aE58766192Cf7D2Cf9567dF2C37e9B7F";
|
|
16
15
|
readonly wstEth: "0x6320cD32aA674d2898A68ec82e869385Fc5f7E2f";
|
|
17
|
-
readonly rEth: "0x178E141a0E3b34152f73Ff610437A7bf9B83267A";
|
|
18
|
-
readonly sDai: "0xD8134205b0328F5676aaeFb3B2a0DC15f4029d8C";
|
|
19
16
|
readonly dai: "0x11fE4B6AE13d2a6055C8D9cF65c55bac32B5d844";
|
|
20
17
|
readonly usdc: "0x62bD2A599664D421132d7C54AB4DbE3233f4f0Ae";
|
|
21
|
-
readonly usdt: "0x576e379FA7B899b4De1E251e935B31543Df3e954";
|
|
22
18
|
};
|
|
23
19
|
readonly 1: {
|
|
24
20
|
readonly morpho: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb";
|
|
25
|
-
readonly adaptiveCurveIrm: "0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC";
|
|
26
|
-
readonly publicAllocator: "0xfd32fA2ca22c76dD6E550706Ad913FC6CE91c75D";
|
|
27
21
|
readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
28
22
|
readonly bundler: "0x4095F064B8d3c3548A3bebfd0Bbfd04750E30077";
|
|
29
23
|
readonly aaveV3OptimizerBundler: "0x16F38d2E764E7BeBF625a8E995b34968226D2F9c";
|
|
30
24
|
readonly aaveV2Bundler: "0xb3dCc75DB379925edFd3007511A8CE0cB4aa8e76";
|
|
31
25
|
readonly aaveV3Bundler: "0x98ccB155E86bb478d514a827d16f58c6912f9BDC";
|
|
32
26
|
readonly compoundV3Bundler: "0x3a0e2E9FB9c95fBc843daF166276C90B6C479558";
|
|
27
|
+
readonly adaptiveCurveIrm: "0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC";
|
|
28
|
+
readonly publicAllocator: "0xfd32fA2ca22c76dD6E550706Ad913FC6CE91c75D";
|
|
29
|
+
readonly wNative: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
|
|
33
30
|
readonly morphoToken: "0x9994E35Db50125E0DF82e4c2dde62496CE330999";
|
|
34
|
-
readonly rEth: "0xae78736Cd615f374D3085123A210448E74Fc6393";
|
|
35
|
-
readonly sDai: "0x83F20F44975D03b1b09e64809B757c47f942BEeA";
|
|
36
31
|
readonly dai: "0x6B175474E89094C44Da98b954EedeAC495271d0F";
|
|
32
|
+
readonly sDai: "0x83F20F44975D03b1b09e64809B757c47f942BEeA";
|
|
37
33
|
readonly mkr: "0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2";
|
|
38
|
-
readonly wstEth: "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0";
|
|
39
|
-
readonly wNative: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
|
|
40
34
|
readonly stEth: "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84";
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
35
|
+
readonly wstEth: "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0";
|
|
36
|
+
readonly osEth: "0xf1C9acDc66974dFB6dEcB12aA385b9cD01190E38";
|
|
43
37
|
readonly bIB01: "0xCA30c93B02514f86d5C86a6e375E3A330B435Fb5";
|
|
44
38
|
readonly wbIB01: "0xcA2A7068e551d5C4482eb34880b194E4b945712F";
|
|
45
39
|
readonly bC3M: "0x2F123cF3F37CE3328CC9B5b8415f9EC5109b45e7";
|
|
46
40
|
readonly wbC3M: "0x95D7337d43340E2721960Dc402D9b9117f0d81a2";
|
|
47
41
|
readonly usdc: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
|
|
48
|
-
readonly usdt: "0xdAC17F958D2ee523a2206206994597C13D831ec7";
|
|
49
|
-
readonly wbtc: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599";
|
|
50
|
-
readonly sWise: "0x48C3399719B582dD63eB5AADf12A40B4C3f52FA2";
|
|
51
|
-
readonly osEth: "0xf1C9acDc66974dFB6dEcB12aA385b9cD01190E38";
|
|
52
|
-
readonly weEth: "0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee";
|
|
53
|
-
readonly ezEth: "0xbf5495Efe5DB9ce00f80364C8B423567e58d2110";
|
|
54
|
-
readonly pyUsd: "0x6c3ea9036406852006290770BEdFcAbA0e23A0e8";
|
|
55
42
|
readonly crvUsd: "0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E";
|
|
56
|
-
readonly morphoOperator: "0x640428D38189B11B844dAEBDBAAbbdfbd8aE0143";
|
|
57
|
-
readonly butterfly: "0xc55126051B22eBb829D00368f4B12Bde432de5Da";
|
|
58
|
-
readonly marketRewardsProgramRegistry: "0x5148bF15bb722E1854F66430Bc9FeD0E9FDaCE7D";
|
|
59
|
-
readonly timeBoundedUrd: "0x330eefa8a787552DC5cAd3C3cA644844B1E61Ddb";
|
|
60
|
-
readonly rsEth: "0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7";
|
|
61
|
-
readonly uni: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984";
|
|
62
43
|
readonly "stkcvxcrvUSDTWBTCWETH-morpho": "0xb0Ce26C88e4e7DCa51968b6047f44646f5064278";
|
|
63
44
|
readonly crvUSDTWBTCWETH: "0xf5f5B97624542D72A9E06f04804Bf81baA15e2B4";
|
|
64
45
|
readonly "stkcvxcrvUSDCWBTCWETH-morpho": "0x0ea1a65A2c255f24Ee8D81eA6AaC54Decd9d269e";
|
|
@@ -75,67 +56,33 @@ export declare const addresses: {
|
|
|
75
56
|
readonly morpho: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb";
|
|
76
57
|
readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
77
58
|
readonly bundler: "0x23055618898e202386e6c13955a58D3C68200BFB";
|
|
78
|
-
readonly wNative: "0x4200000000000000000000000000000000000006";
|
|
79
|
-
readonly adaptiveCurveIrm: "0x46415998764C29aB2a25CbeA6254146D50D22687";
|
|
80
|
-
readonly publicAllocator: "0xA090dD1a701408Df1d4d0B85b716c87565f90467";
|
|
81
59
|
readonly aaveV3Bundler: "0xcAe2929baBc60Be34818EaA5F40bF69265677108";
|
|
82
60
|
readonly compoundV3Bundler: "0x1f8076e2EB6f10b12e6886f30D4909A91969F7dA";
|
|
61
|
+
readonly adaptiveCurveIrm: "0x46415998764C29aB2a25CbeA6254146D50D22687";
|
|
62
|
+
readonly publicAllocator: "0xA090dD1a701408Df1d4d0B85b716c87565f90467";
|
|
63
|
+
readonly wNative: "0x4200000000000000000000000000000000000006";
|
|
83
64
|
readonly usdc: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
84
|
-
readonly cbEth: "0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22";
|
|
85
65
|
readonly verUsdc: "0x59aaF835D34b1E3dF2170e4872B785f11E2a964b";
|
|
86
|
-
readonly ezEth: "0x2416092f143378750bb29b79eD961ab195CcEea5";
|
|
87
66
|
readonly testUsdc: "0xBC77067f829979812d795d516E523C4033b66409";
|
|
88
67
|
};
|
|
89
68
|
};
|
|
90
|
-
interface ChainAddresses {
|
|
69
|
+
export interface ChainAddresses {
|
|
91
70
|
morpho: Address;
|
|
92
71
|
permit2: Address;
|
|
93
72
|
bundler: Address;
|
|
94
|
-
|
|
73
|
+
aaveV3OptimizerBundler?: Address;
|
|
74
|
+
aaveV2Bundler?: Address;
|
|
75
|
+
aaveV3Bundler?: Address;
|
|
76
|
+
compoundV3Bundler?: Address;
|
|
95
77
|
adaptiveCurveIrm?: Address;
|
|
96
78
|
publicAllocator?: Address;
|
|
79
|
+
wNative: Address;
|
|
97
80
|
morphoToken?: Address;
|
|
98
|
-
wstEth?: Address;
|
|
99
|
-
stEth?: Address;
|
|
100
81
|
dai?: Address;
|
|
101
82
|
mkr?: Address;
|
|
102
|
-
rEth?: Address;
|
|
103
|
-
sDai?: Address;
|
|
104
83
|
usdc?: Address;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
wbIB01?: Address;
|
|
108
|
-
bC3M?: Address;
|
|
109
|
-
wbC3M?: Address;
|
|
110
|
-
wbtc?: Address;
|
|
111
|
-
sWise?: Address;
|
|
112
|
-
osEth?: Address;
|
|
113
|
-
weEth?: Address;
|
|
114
|
-
ezEth?: Address;
|
|
115
|
-
pyUsd?: Address;
|
|
116
|
-
sUSDe?: Address;
|
|
117
|
-
USDe?: Address;
|
|
118
|
-
uni?: Address;
|
|
119
|
-
marketRewardsProgramRegistry?: Address;
|
|
120
|
-
timeBoundedUrd?: Address;
|
|
121
|
-
rsEth?: Address;
|
|
122
|
-
crvUsd?: Address;
|
|
123
|
-
morphoOperator?: Address;
|
|
124
|
-
butterfly?: Address;
|
|
125
|
-
aaveV3OptimizerBundler?: Address;
|
|
126
|
-
aaveV2Bundler?: Address;
|
|
127
|
-
aaveV3Bundler?: Address;
|
|
128
|
-
compoundV3Bundler?: Address;
|
|
129
|
-
"stkcvxcrvUSDTWBTCWETH-morpho"?: Address;
|
|
130
|
-
crvUSDTWBTCWETH?: Address;
|
|
131
|
-
"stkcvxcrvUSDCWBTCWETH-morpho"?: Address;
|
|
132
|
-
crvUSDCWBTCWETH?: Address;
|
|
133
|
-
"stkcvxcrvCRVUSDTBTCWSTETH-morpho"?: Address;
|
|
134
|
-
crvCRVUSDTBTCWSTETH?: Address;
|
|
135
|
-
"stkcvxTryLSD-morpho"?: Address;
|
|
136
|
-
tryLSD?: Address;
|
|
137
|
-
"stkcvxcrvUSDETHCRV-morpho"?: Address;
|
|
138
|
-
crvUSDETHCRV?: Address;
|
|
84
|
+
stEth?: Address;
|
|
85
|
+
wstEth?: Address;
|
|
139
86
|
}
|
|
140
87
|
export type AddressLabel = keyof (typeof addresses)[ChainId];
|
|
141
88
|
declare const _default: { [n in ChainId]: ChainAddresses; };
|
package/lib/addresses.js
CHANGED
|
@@ -15,36 +15,30 @@ exports.addresses = {
|
|
|
15
15
|
morpho: "0x64c7044050Ba0431252df24fEd4d9635a275CB41",
|
|
16
16
|
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
17
17
|
bundler: "0xCFFbEEAFCD79Fd68FD56Dbc31A419f290A2Fe9e0",
|
|
18
|
-
urd: "0x820755E757a590683dc43115290eb1Cb20a60405",
|
|
19
18
|
wNative: "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",
|
|
20
19
|
stEth: "0x1643E812aE58766192Cf7D2Cf9567dF2C37e9B7F",
|
|
21
20
|
wstEth: "0x6320cD32aA674d2898A68ec82e869385Fc5f7E2f",
|
|
22
|
-
rEth: "0x178E141a0E3b34152f73Ff610437A7bf9B83267A",
|
|
23
|
-
sDai: "0xD8134205b0328F5676aaeFb3B2a0DC15f4029d8C",
|
|
24
21
|
dai: "0x11fE4B6AE13d2a6055C8D9cF65c55bac32B5d844",
|
|
25
22
|
usdc: "0x62bD2A599664D421132d7C54AB4DbE3233f4f0Ae",
|
|
26
|
-
usdt: "0x576e379FA7B899b4De1E251e935B31543Df3e954",
|
|
27
23
|
},
|
|
28
24
|
[chain_1.ChainId.EthMainnet]: {
|
|
29
25
|
morpho: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
|
|
30
|
-
adaptiveCurveIrm: "0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC",
|
|
31
|
-
publicAllocator: "0xfd32fA2ca22c76dD6E550706Ad913FC6CE91c75D",
|
|
32
26
|
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
33
27
|
bundler: "0x4095F064B8d3c3548A3bebfd0Bbfd04750E30077",
|
|
34
28
|
aaveV3OptimizerBundler: "0x16F38d2E764E7BeBF625a8E995b34968226D2F9c",
|
|
35
29
|
aaveV2Bundler: "0xb3dCc75DB379925edFd3007511A8CE0cB4aa8e76",
|
|
36
30
|
aaveV3Bundler: "0x98ccB155E86bb478d514a827d16f58c6912f9BDC",
|
|
37
31
|
compoundV3Bundler: "0x3a0e2E9FB9c95fBc843daF166276C90B6C479558",
|
|
32
|
+
adaptiveCurveIrm: "0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC",
|
|
33
|
+
publicAllocator: "0xfd32fA2ca22c76dD6E550706Ad913FC6CE91c75D",
|
|
34
|
+
wNative: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
38
35
|
morphoToken: "0x9994E35Db50125E0DF82e4c2dde62496CE330999",
|
|
39
|
-
rEth: "0xae78736Cd615f374D3085123A210448E74Fc6393",
|
|
40
|
-
sDai: "0x83F20F44975D03b1b09e64809B757c47f942BEeA",
|
|
41
36
|
dai: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
|
|
37
|
+
sDai: "0x83F20F44975D03b1b09e64809B757c47f942BEeA",
|
|
42
38
|
mkr: "0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2",
|
|
43
|
-
wstEth: "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
|
|
44
|
-
wNative: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
45
39
|
stEth: "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
wstEth: "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
|
|
41
|
+
osEth: "0xf1C9acDc66974dFB6dEcB12aA385b9cD01190E38",
|
|
48
42
|
bIB01: "0xCA30c93B02514f86d5C86a6e375E3A330B435Fb5",
|
|
49
43
|
// If we want to change the wbIB01 address, we have to check if the new one has simple permit or not.
|
|
50
44
|
// Currently, wbIB01 is considered to have simple permit.
|
|
@@ -54,21 +48,7 @@ exports.addresses = {
|
|
|
54
48
|
// Currently, wbC3M is considered to have simple permit.
|
|
55
49
|
wbC3M: "0x95D7337d43340E2721960Dc402D9b9117f0d81a2",
|
|
56
50
|
usdc: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
57
|
-
usdt: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
|
|
58
|
-
wbtc: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
|
|
59
|
-
sWise: "0x48C3399719B582dD63eB5AADf12A40B4C3f52FA2",
|
|
60
|
-
osEth: "0xf1C9acDc66974dFB6dEcB12aA385b9cD01190E38",
|
|
61
|
-
weEth: "0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee",
|
|
62
|
-
ezEth: "0xbf5495Efe5DB9ce00f80364C8B423567e58d2110",
|
|
63
|
-
pyUsd: "0x6c3ea9036406852006290770BEdFcAbA0e23A0e8",
|
|
64
51
|
crvUsd: "0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E",
|
|
65
|
-
morphoOperator: "0x640428D38189B11B844dAEBDBAAbbdfbd8aE0143",
|
|
66
|
-
butterfly: "0xc55126051B22eBb829D00368f4B12Bde432de5Da",
|
|
67
|
-
marketRewardsProgramRegistry: "0x5148bF15bb722E1854F66430Bc9FeD0E9FDaCE7D",
|
|
68
|
-
timeBoundedUrd: "0x330eefa8a787552DC5cAd3C3cA644844B1E61Ddb",
|
|
69
|
-
rsEth: "0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7",
|
|
70
|
-
uni: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",
|
|
71
|
-
/* Curve tokens */
|
|
72
52
|
"stkcvxcrvUSDTWBTCWETH-morpho": "0xb0Ce26C88e4e7DCa51968b6047f44646f5064278",
|
|
73
53
|
crvUSDTWBTCWETH: "0xf5f5B97624542D72A9E06f04804Bf81baA15e2B4",
|
|
74
54
|
"stkcvxcrvUSDCWBTCWETH-morpho": "0x0ea1a65A2c255f24Ee8D81eA6AaC54Decd9d269e",
|
|
@@ -85,16 +65,13 @@ exports.addresses = {
|
|
|
85
65
|
morpho: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
|
|
86
66
|
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
87
67
|
bundler: "0x23055618898e202386e6c13955a58D3C68200BFB",
|
|
88
|
-
wNative: "0x4200000000000000000000000000000000000006",
|
|
89
|
-
adaptiveCurveIrm: "0x46415998764C29aB2a25CbeA6254146D50D22687",
|
|
90
|
-
publicAllocator: "0xA090dD1a701408Df1d4d0B85b716c87565f90467",
|
|
91
68
|
aaveV3Bundler: "0xcAe2929baBc60Be34818EaA5F40bF69265677108",
|
|
92
69
|
compoundV3Bundler: "0x1f8076e2EB6f10b12e6886f30D4909A91969F7dA",
|
|
93
|
-
|
|
70
|
+
adaptiveCurveIrm: "0x46415998764C29aB2a25CbeA6254146D50D22687",
|
|
71
|
+
publicAllocator: "0xA090dD1a701408Df1d4d0B85b716c87565f90467",
|
|
72
|
+
wNative: "0x4200000000000000000000000000000000000006",
|
|
94
73
|
usdc: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
95
|
-
cbEth: "0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22",
|
|
96
74
|
verUsdc: "0x59aaF835D34b1E3dF2170e4872B785f11E2a964b",
|
|
97
|
-
ezEth: "0x2416092f143378750bb29b79eD961ab195CcEea5",
|
|
98
75
|
testUsdc: "0xBC77067f829979812d795d516E523C4033b66409",
|
|
99
76
|
},
|
|
100
77
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morpho-org/blue-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"author": "Morpho Association <contact@morpho.org>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"test": "jest"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@morpho-org/morpho-ts": "1.0.6",
|
|
16
|
+
"@morpho-org/morpho-ts": "^1.0.6",
|
|
17
17
|
"keccak256": "^1.0.6"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@morpho-org/morpho-test": "1.0.6",
|
|
20
|
+
"@morpho-org/morpho-test": "^1.0.6",
|
|
21
21
|
"@types/jest": "^29.5.12",
|
|
22
|
-
"@types/node": "^
|
|
22
|
+
"@types/node": "^22.0.0",
|
|
23
23
|
"jest": "^29.7.0",
|
|
24
24
|
"ts-jest": "^29.2.2",
|
|
25
25
|
"typescript": "^5.4.5"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
],
|
|
47
47
|
"preset": "ts-jest"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "e526b3c84b071a9d8cc92166b3b4bdfd8259febd"
|
|
50
50
|
}
|