@underscore-finance/sdk 1.1.2 → 1.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.
- package/dist/contracts/AaveV3.d.ts +126 -13
- package/dist/contracts/AaveV3.d.ts.map +1 -1
- package/dist/contracts/AaveV3.js +159 -13
- package/dist/contracts/AeroClassic.d.ts +85 -0
- package/dist/contracts/AeroClassic.d.ts.map +1 -1
- package/dist/contracts/AeroClassic.js +109 -1
- package/dist/contracts/AeroSlipstream.d.ts +119 -0
- package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
- package/dist/contracts/AeroSlipstream.js +151 -1
- package/dist/contracts/AgentSenderGeneric.d.ts +4027 -0
- package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -0
- package/dist/contracts/AgentSenderGeneric.js +5280 -0
- package/dist/contracts/AgentSenderSpecial.d.ts +1968 -0
- package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -0
- package/dist/contracts/AgentSenderSpecial.js +2509 -0
- package/dist/contracts/AgentWrapper.d.ts +170 -1462
- package/dist/contracts/AgentWrapper.d.ts.map +1 -1
- package/dist/contracts/AgentWrapper.js +262 -1869
- package/dist/contracts/AgentWrapperV1.d.ts +3760 -0
- package/dist/contracts/AgentWrapperV1.d.ts.map +1 -0
- package/dist/contracts/AgentWrapperV1.js +4922 -0
- package/dist/contracts/Appraiser.d.ts +18 -459
- package/dist/contracts/Appraiser.d.ts.map +1 -1
- package/dist/contracts/Appraiser.js +75 -649
- package/dist/contracts/Avantis.d.ts +2565 -0
- package/dist/contracts/Avantis.d.ts.map +1 -0
- package/dist/contracts/Avantis.js +3256 -0
- package/dist/contracts/Billing.d.ts +4 -68
- package/dist/contracts/Billing.d.ts.map +1 -1
- package/dist/contracts/Billing.js +5 -82
- package/dist/contracts/ChequeBook.d.ts +52 -1
- package/dist/contracts/ChequeBook.d.ts.map +1 -1
- package/dist/contracts/ChequeBook.js +53 -1
- package/dist/contracts/CompoundV3.d.ts +126 -13
- package/dist/contracts/CompoundV3.d.ts.map +1 -1
- package/dist/contracts/CompoundV3.js +159 -13
- package/dist/contracts/ConvertVaultToken.d.ts +63 -0
- package/dist/contracts/ConvertVaultToken.d.ts.map +1 -0
- package/dist/contracts/ConvertVaultToken.js +75 -0
- package/dist/contracts/Curve.d.ts +14 -0
- package/dist/contracts/Curve.d.ts.map +1 -1
- package/dist/contracts/Curve.js +19 -1
- package/dist/contracts/DefaultsBase.d.ts +45 -56
- package/dist/contracts/DefaultsBase.d.ts.map +1 -1
- package/dist/contracts/DefaultsBase.js +45 -59
- package/dist/contracts/EarnVault.d.ts +1680 -0
- package/dist/contracts/EarnVault.d.ts.map +1 -0
- package/dist/contracts/EarnVault.js +2206 -0
- package/dist/contracts/EarnVaultAgent.d.ts +1004 -0
- package/dist/contracts/EarnVaultAgent.d.ts.map +1 -0
- package/dist/contracts/EarnVaultAgent.js +1273 -0
- package/dist/contracts/EarnVaultAgentSigHelper.d.ts +904 -0
- package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -0
- package/dist/contracts/EarnVaultAgentSigHelper.js +1198 -0
- package/dist/contracts/Euler.d.ts +131 -14
- package/dist/contracts/Euler.d.ts.map +1 -1
- package/dist/contracts/Euler.js +164 -13
- package/dist/contracts/Fluid.d.ts +159 -14
- package/dist/contracts/Fluid.d.ts.map +1 -1
- package/dist/contracts/Fluid.js +200 -13
- package/dist/contracts/FortyAcres.d.ts +145 -14
- package/dist/contracts/FortyAcres.d.ts.map +1 -1
- package/dist/contracts/FortyAcres.js +182 -13
- package/dist/contracts/Hatchery.d.ts +6 -176
- package/dist/contracts/Hatchery.d.ts.map +1 -1
- package/dist/contracts/Hatchery.js +5 -225
- package/dist/contracts/HighCommand.d.ts +237 -1
- package/dist/contracts/HighCommand.d.ts.map +1 -1
- package/dist/contracts/HighCommand.js +259 -1
- package/dist/contracts/Kernel.d.ts +8 -0
- package/dist/contracts/Kernel.d.ts.map +1 -1
- package/dist/contracts/Kernel.js +9 -1
- package/dist/contracts/LegoBook.js +1 -1
- package/dist/contracts/LegoTools.js +1 -1
- package/dist/contracts/LevgVaultHelper.d.ts +1070 -0
- package/dist/contracts/LevgVaultHelper.d.ts.map +1 -0
- package/dist/contracts/LevgVaultHelper.js +1414 -0
- package/dist/contracts/LootDistributor.d.ts +49 -131
- package/dist/contracts/LootDistributor.d.ts.map +1 -1
- package/dist/contracts/LootDistributor.js +58 -157
- package/dist/contracts/Migrator.d.ts +4 -0
- package/dist/contracts/Migrator.d.ts.map +1 -1
- package/dist/contracts/Migrator.js +5 -1
- package/dist/contracts/MissionControl.d.ts +211 -295
- package/dist/contracts/MissionControl.d.ts.map +1 -1
- package/dist/contracts/MissionControl.js +216 -305
- package/dist/contracts/Moonwell.d.ts +131 -14
- package/dist/contracts/Moonwell.d.ts.map +1 -1
- package/dist/contracts/Moonwell.js +164 -13
- package/dist/contracts/Morpho.d.ts +131 -14
- package/dist/contracts/Morpho.d.ts.map +1 -1
- package/dist/contracts/Morpho.js +164 -13
- package/dist/contracts/Paymaster.d.ts +4 -0
- package/dist/contracts/Paymaster.d.ts.map +1 -1
- package/dist/contracts/Paymaster.js +5 -1
- package/dist/contracts/RipeLego.d.ts +267 -81
- package/dist/contracts/RipeLego.d.ts.map +1 -1
- package/dist/contracts/RipeLego.js +322 -87
- package/dist/contracts/Sentinel.d.ts +275 -7
- package/dist/contracts/Sentinel.d.ts.map +1 -1
- package/dist/contracts/Sentinel.js +331 -7
- package/dist/contracts/SkyPsm.d.ts +2622 -0
- package/dist/contracts/SkyPsm.d.ts.map +1 -0
- package/dist/contracts/SkyPsm.js +3329 -0
- package/dist/contracts/Switchboard.d.ts +7 -0
- package/dist/contracts/Switchboard.d.ts.map +1 -1
- package/dist/contracts/Switchboard.js +9 -1
- package/dist/contracts/SwitchboardAlpha.d.ts +499 -264
- package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
- package/dist/contracts/SwitchboardAlpha.js +566 -282
- package/dist/contracts/SwitchboardBravo.d.ts +4 -24
- package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
- package/dist/contracts/SwitchboardBravo.js +5 -32
- package/dist/contracts/SwitchboardCharlie.d.ts +1796 -343
- package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
- package/dist/contracts/SwitchboardCharlie.js +2178 -368
- package/dist/contracts/UnderscoreLego.d.ts +129 -15
- package/dist/contracts/UnderscoreLego.d.ts.map +1 -1
- package/dist/contracts/UnderscoreLego.js +161 -14
- package/dist/contracts/UndyAero.d.ts +1680 -0
- package/dist/contracts/UndyAero.d.ts.map +1 -0
- package/dist/contracts/UndyAero.js +2206 -0
- package/dist/contracts/UndyBtc.d.ts +209 -16
- package/dist/contracts/UndyBtc.d.ts.map +1 -1
- package/dist/contracts/UndyBtc.js +267 -16
- package/dist/contracts/UndyCbeth.d.ts +1680 -0
- package/dist/contracts/UndyCbeth.d.ts.map +1 -0
- package/dist/contracts/UndyCbeth.js +2206 -0
- package/dist/contracts/UndyEth.d.ts +209 -16
- package/dist/contracts/UndyEth.d.ts.map +1 -1
- package/dist/contracts/UndyEth.js +267 -16
- package/dist/contracts/UndyEurc.d.ts +1680 -0
- package/dist/contracts/UndyEurc.d.ts.map +1 -0
- package/dist/contracts/UndyEurc.js +2206 -0
- package/dist/contracts/UndyGho.d.ts +1680 -0
- package/dist/contracts/UndyGho.d.ts.map +1 -0
- package/dist/contracts/UndyGho.js +2206 -0
- package/dist/contracts/UndyUsd.d.ts +209 -16
- package/dist/contracts/UndyUsd.d.ts.map +1 -1
- package/dist/contracts/UndyUsd.js +267 -16
- package/dist/contracts/UndyUsds.d.ts +1680 -0
- package/dist/contracts/UndyUsds.d.ts.map +1 -0
- package/dist/contracts/UndyUsds.js +2206 -0
- package/dist/contracts/UniswapV2.d.ts +85 -0
- package/dist/contracts/UniswapV2.d.ts.map +1 -1
- package/dist/contracts/UniswapV2.js +109 -1
- package/dist/contracts/UniswapV3.d.ts +119 -0
- package/dist/contracts/UniswapV3.d.ts.map +1 -1
- package/dist/contracts/UniswapV3.js +151 -1
- package/dist/contracts/UserWallet.d.ts +12 -8
- package/dist/contracts/UserWallet.d.ts.map +1 -1
- package/dist/contracts/UserWallet.js +13 -9
- package/dist/contracts/UserWalletConfig.d.ts +198 -56
- package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
- package/dist/contracts/UserWalletConfig.js +225 -72
- package/dist/contracts/UserWalletConfigV1.d.ts +3655 -0
- package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -0
- package/dist/contracts/UserWalletConfigV1.js +4251 -0
- package/dist/contracts/UserWalletV1.d.ts +2633 -0
- package/dist/contracts/UserWalletV1.d.ts.map +1 -0
- package/dist/contracts/UserWalletV1.js +3500 -0
- package/dist/contracts/VaultRegistry.d.ts +848 -85
- package/dist/contracts/VaultRegistry.d.ts.map +1 -1
- package/dist/contracts/VaultRegistry.js +1078 -83
- package/dist/contracts/WalletBackpack.d.ts +4 -0
- package/dist/contracts/WalletBackpack.d.ts.map +1 -1
- package/dist/contracts/WalletBackpack.js +5 -1
- package/dist/contracts/Wasabi.d.ts +2579 -0
- package/dist/contracts/Wasabi.d.ts.map +1 -0
- package/dist/contracts/Wasabi.js +3274 -0
- package/dist/contracts/index.d.ts +18 -1
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +18 -1
- package/dist/contracts/sdk.d.ts +36 -2
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +36 -2
- package/dist/getSwapInstructions.js +1 -1
- package/dist/index.d.ts +95 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -7
- package/package.json +3 -3
package/dist/contracts/Euler.js
CHANGED
|
@@ -213,6 +213,11 @@ export const abi = [
|
|
|
213
213
|
type: 'uint256',
|
|
214
214
|
indexed: false,
|
|
215
215
|
},
|
|
216
|
+
{
|
|
217
|
+
name: 'lastAveragePricePerShare',
|
|
218
|
+
type: 'uint256',
|
|
219
|
+
indexed: false,
|
|
220
|
+
},
|
|
216
221
|
],
|
|
217
222
|
anonymous: false,
|
|
218
223
|
type: 'event',
|
|
@@ -1108,45 +1113,58 @@ export const abi = [
|
|
|
1108
1113
|
{
|
|
1109
1114
|
stateMutability: 'view',
|
|
1110
1115
|
type: 'function',
|
|
1111
|
-
name: '
|
|
1116
|
+
name: 'totalAssets',
|
|
1112
1117
|
inputs: [
|
|
1113
1118
|
{
|
|
1114
1119
|
name: '_vaultToken',
|
|
1115
1120
|
type: 'address',
|
|
1116
1121
|
},
|
|
1122
|
+
],
|
|
1123
|
+
outputs: [
|
|
1117
1124
|
{
|
|
1118
|
-
name: '
|
|
1125
|
+
name: '',
|
|
1126
|
+
type: 'uint256',
|
|
1127
|
+
},
|
|
1128
|
+
],
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
stateMutability: 'view',
|
|
1132
|
+
type: 'function',
|
|
1133
|
+
name: 'totalBorrows',
|
|
1134
|
+
inputs: [
|
|
1135
|
+
{
|
|
1136
|
+
name: '_vaultToken',
|
|
1119
1137
|
type: 'address',
|
|
1120
1138
|
},
|
|
1121
1139
|
],
|
|
1122
1140
|
outputs: [
|
|
1123
1141
|
{
|
|
1124
1142
|
name: '',
|
|
1125
|
-
type: '
|
|
1143
|
+
type: 'uint256',
|
|
1126
1144
|
},
|
|
1127
1145
|
],
|
|
1128
1146
|
},
|
|
1129
1147
|
{
|
|
1130
1148
|
stateMutability: 'view',
|
|
1131
1149
|
type: 'function',
|
|
1132
|
-
name: '
|
|
1150
|
+
name: 'getAvailLiquidity',
|
|
1133
1151
|
inputs: [
|
|
1134
1152
|
{
|
|
1135
|
-
name: '
|
|
1153
|
+
name: '_vaultToken',
|
|
1136
1154
|
type: 'address',
|
|
1137
1155
|
},
|
|
1138
1156
|
],
|
|
1139
1157
|
outputs: [
|
|
1140
1158
|
{
|
|
1141
1159
|
name: '',
|
|
1142
|
-
type: '
|
|
1160
|
+
type: 'uint256',
|
|
1143
1161
|
},
|
|
1144
1162
|
],
|
|
1145
1163
|
},
|
|
1146
1164
|
{
|
|
1147
1165
|
stateMutability: 'view',
|
|
1148
1166
|
type: 'function',
|
|
1149
|
-
name: '
|
|
1167
|
+
name: 'getUtilizationRatio',
|
|
1150
1168
|
inputs: [
|
|
1151
1169
|
{
|
|
1152
1170
|
name: '_vaultToken',
|
|
@@ -1163,12 +1181,33 @@ export const abi = [
|
|
|
1163
1181
|
{
|
|
1164
1182
|
stateMutability: 'view',
|
|
1165
1183
|
type: 'function',
|
|
1166
|
-
name: '
|
|
1184
|
+
name: 'isEligibleForYieldBonus',
|
|
1185
|
+
inputs: [
|
|
1186
|
+
{
|
|
1187
|
+
name: '_asset',
|
|
1188
|
+
type: 'address',
|
|
1189
|
+
},
|
|
1190
|
+
],
|
|
1191
|
+
outputs: [
|
|
1192
|
+
{
|
|
1193
|
+
name: '',
|
|
1194
|
+
type: 'bool',
|
|
1195
|
+
},
|
|
1196
|
+
],
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
stateMutability: 'view',
|
|
1200
|
+
type: 'function',
|
|
1201
|
+
name: 'getWithdrawalFees',
|
|
1167
1202
|
inputs: [
|
|
1168
1203
|
{
|
|
1169
1204
|
name: '_vaultToken',
|
|
1170
1205
|
type: 'address',
|
|
1171
1206
|
},
|
|
1207
|
+
{
|
|
1208
|
+
name: '_vaultTokenAmount',
|
|
1209
|
+
type: 'uint256',
|
|
1210
|
+
},
|
|
1172
1211
|
],
|
|
1173
1212
|
outputs: [
|
|
1174
1213
|
{
|
|
@@ -1482,6 +1521,94 @@ export const abi = [
|
|
|
1482
1521
|
},
|
|
1483
1522
|
],
|
|
1484
1523
|
},
|
|
1524
|
+
{
|
|
1525
|
+
stateMutability: 'nonpayable',
|
|
1526
|
+
type: 'function',
|
|
1527
|
+
name: 'claimIncentives',
|
|
1528
|
+
inputs: [
|
|
1529
|
+
{
|
|
1530
|
+
name: '_user',
|
|
1531
|
+
type: 'address',
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
name: '_rewardToken',
|
|
1535
|
+
type: 'address',
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
name: '_rewardAmount',
|
|
1539
|
+
type: 'uint256',
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
name: '_proofs',
|
|
1543
|
+
type: 'bytes32[]',
|
|
1544
|
+
},
|
|
1545
|
+
],
|
|
1546
|
+
outputs: [
|
|
1547
|
+
{
|
|
1548
|
+
name: '',
|
|
1549
|
+
type: 'uint256',
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
name: '',
|
|
1553
|
+
type: 'uint256',
|
|
1554
|
+
},
|
|
1555
|
+
],
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
stateMutability: 'nonpayable',
|
|
1559
|
+
type: 'function',
|
|
1560
|
+
name: 'claimIncentives',
|
|
1561
|
+
inputs: [
|
|
1562
|
+
{
|
|
1563
|
+
name: '_user',
|
|
1564
|
+
type: 'address',
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
name: '_rewardToken',
|
|
1568
|
+
type: 'address',
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
name: '_rewardAmount',
|
|
1572
|
+
type: 'uint256',
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
name: '_proofs',
|
|
1576
|
+
type: 'bytes32[]',
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
name: '_miniAddys',
|
|
1580
|
+
type: 'tuple',
|
|
1581
|
+
components: [
|
|
1582
|
+
{
|
|
1583
|
+
name: 'ledger',
|
|
1584
|
+
type: 'address',
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
name: 'missionControl',
|
|
1588
|
+
type: 'address',
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
name: 'legoBook',
|
|
1592
|
+
type: 'address',
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
name: 'appraiser',
|
|
1596
|
+
type: 'address',
|
|
1597
|
+
},
|
|
1598
|
+
],
|
|
1599
|
+
},
|
|
1600
|
+
],
|
|
1601
|
+
outputs: [
|
|
1602
|
+
{
|
|
1603
|
+
name: '',
|
|
1604
|
+
type: 'uint256',
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
name: '',
|
|
1608
|
+
type: 'uint256',
|
|
1609
|
+
},
|
|
1610
|
+
],
|
|
1611
|
+
},
|
|
1485
1612
|
{
|
|
1486
1613
|
stateMutability: 'nonpayable',
|
|
1487
1614
|
type: 'function',
|
|
@@ -2965,6 +3092,18 @@ export const abi = [
|
|
|
2965
3092
|
},
|
|
2966
3093
|
],
|
|
2967
3094
|
},
|
|
3095
|
+
{
|
|
3096
|
+
stateMutability: 'view',
|
|
3097
|
+
type: 'function',
|
|
3098
|
+
name: 'RIPE_REGISTRY',
|
|
3099
|
+
inputs: [],
|
|
3100
|
+
outputs: [
|
|
3101
|
+
{
|
|
3102
|
+
name: '',
|
|
3103
|
+
type: 'address',
|
|
3104
|
+
},
|
|
3105
|
+
],
|
|
3106
|
+
},
|
|
2968
3107
|
{
|
|
2969
3108
|
stateMutability: 'nonpayable',
|
|
2970
3109
|
type: 'constructor',
|
|
@@ -2985,11 +3124,15 @@ export const abi = [
|
|
|
2985
3124
|
name: '_eulerRewardsAddr',
|
|
2986
3125
|
type: 'address',
|
|
2987
3126
|
},
|
|
3127
|
+
{
|
|
3128
|
+
name: '_ripeRegistry',
|
|
3129
|
+
type: 'address',
|
|
3130
|
+
},
|
|
2988
3131
|
],
|
|
2989
3132
|
outputs: [],
|
|
2990
3133
|
},
|
|
2991
3134
|
];
|
|
2992
|
-
export const deployAddress = '
|
|
3135
|
+
export const deployAddress = '0x7f52A8bCF7589e157961dbc072e1C5E45A3F4fd6';
|
|
2993
3136
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
2994
3137
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
2995
3138
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
@@ -3052,16 +3195,19 @@ export const call = {
|
|
|
3052
3195
|
isRebasing: (...args) => getRequest('isRebasing', args),
|
|
3053
3196
|
getPricePerShare: (...args) => getRequest('getPricePerShare', args),
|
|
3054
3197
|
getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
|
|
3055
|
-
isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
|
|
3056
|
-
isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
|
|
3057
3198
|
totalAssets: (...args) => getRequest('totalAssets', args),
|
|
3058
3199
|
totalBorrows: (...args) => getRequest('totalBorrows', args),
|
|
3200
|
+
getAvailLiquidity: (...args) => getRequest('getAvailLiquidity', args),
|
|
3201
|
+
getUtilizationRatio: (...args) => getRequest('getUtilizationRatio', args),
|
|
3202
|
+
isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
|
|
3203
|
+
getWithdrawalFees: (...args) => getRequest('getWithdrawalFees', args),
|
|
3059
3204
|
canRegisterVaultToken: (...args) => getRequest('canRegisterVaultToken', args),
|
|
3060
3205
|
hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
|
|
3061
3206
|
getAccessForLego: (...args) => getRequest('getAccessForLego', args),
|
|
3062
3207
|
eulerRewards: (...args) => getRequest('eulerRewards', args),
|
|
3063
3208
|
EULER_EVAULT_FACTORY: (...args) => getRequest('EULER_EVAULT_FACTORY', args),
|
|
3064
3209
|
EULER_EARN_FACTORY: (...args) => getRequest('EULER_EARN_FACTORY', args),
|
|
3210
|
+
RIPE_REGISTRY: (...args) => getRequest('RIPE_REGISTRY', args),
|
|
3065
3211
|
};
|
|
3066
3212
|
function getMutation(functionName) {
|
|
3067
3213
|
return {
|
|
@@ -3082,6 +3228,7 @@ export const mutation = {
|
|
|
3082
3228
|
addPriceSnapshot: getMutation('addPriceSnapshot'),
|
|
3083
3229
|
depositForYield: getMutation('depositForYield'),
|
|
3084
3230
|
withdrawFromYield: getMutation('withdrawFromYield'),
|
|
3231
|
+
claimIncentives: getMutation('claimIncentives'),
|
|
3085
3232
|
claimRewards: getMutation('claimRewards'),
|
|
3086
3233
|
setEulerRewardsAddr: getMutation('setEulerRewardsAddr'),
|
|
3087
3234
|
swapTokens: getMutation('swapTokens'),
|
|
@@ -3135,16 +3282,19 @@ export function toSdk(publicClient, walletClient) {
|
|
|
3135
3282
|
isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
|
|
3136
3283
|
getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
|
|
3137
3284
|
getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
|
|
3138
|
-
isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
|
|
3139
|
-
isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
|
|
3140
3285
|
totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
|
|
3141
3286
|
totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
|
|
3287
|
+
getAvailLiquidity: (...args) => singleQuery(publicClient, call.getAvailLiquidity(...args)),
|
|
3288
|
+
getUtilizationRatio: (...args) => singleQuery(publicClient, call.getUtilizationRatio(...args)),
|
|
3289
|
+
isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
|
|
3290
|
+
getWithdrawalFees: (...args) => singleQuery(publicClient, call.getWithdrawalFees(...args)),
|
|
3142
3291
|
canRegisterVaultToken: (...args) => singleQuery(publicClient, call.canRegisterVaultToken(...args)),
|
|
3143
3292
|
hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
|
|
3144
3293
|
getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
|
|
3145
3294
|
eulerRewards: (...args) => singleQuery(publicClient, call.eulerRewards(...args)),
|
|
3146
3295
|
EULER_EVAULT_FACTORY: (...args) => singleQuery(publicClient, call.EULER_EVAULT_FACTORY(...args)),
|
|
3147
3296
|
EULER_EARN_FACTORY: (...args) => singleQuery(publicClient, call.EULER_EARN_FACTORY(...args)),
|
|
3297
|
+
RIPE_REGISTRY: (...args) => singleQuery(publicClient, call.RIPE_REGISTRY(...args)),
|
|
3148
3298
|
// Mutations
|
|
3149
3299
|
pause: (...args) => mutate(walletClient, mutation.pause)(...args),
|
|
3150
3300
|
recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
|
|
@@ -3155,6 +3305,7 @@ export function toSdk(publicClient, walletClient) {
|
|
|
3155
3305
|
addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
|
|
3156
3306
|
depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
|
|
3157
3307
|
withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
|
|
3308
|
+
claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives)(...args),
|
|
3158
3309
|
claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
|
|
3159
3310
|
setEulerRewardsAddr: (...args) => mutate(walletClient, mutation.setEulerRewardsAddr)(...args),
|
|
3160
3311
|
swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
|
|
@@ -154,6 +154,10 @@ export declare const abi: readonly [{
|
|
|
154
154
|
readonly name: "pricePerShare";
|
|
155
155
|
readonly type: "uint256";
|
|
156
156
|
readonly indexed: false;
|
|
157
|
+
}, {
|
|
158
|
+
readonly name: "lastAveragePricePerShare";
|
|
159
|
+
readonly type: "uint256";
|
|
160
|
+
readonly indexed: false;
|
|
157
161
|
}];
|
|
158
162
|
readonly anonymous: false;
|
|
159
163
|
readonly type: "event";
|
|
@@ -802,34 +806,43 @@ export declare const abi: readonly [{
|
|
|
802
806
|
}, {
|
|
803
807
|
readonly stateMutability: "view";
|
|
804
808
|
readonly type: "function";
|
|
805
|
-
readonly name: "
|
|
809
|
+
readonly name: "totalAssets";
|
|
806
810
|
readonly inputs: readonly [{
|
|
807
811
|
readonly name: "_vaultToken";
|
|
808
812
|
readonly type: "address";
|
|
809
|
-
}
|
|
810
|
-
|
|
813
|
+
}];
|
|
814
|
+
readonly outputs: readonly [{
|
|
815
|
+
readonly name: "";
|
|
816
|
+
readonly type: "uint256";
|
|
817
|
+
}];
|
|
818
|
+
}, {
|
|
819
|
+
readonly stateMutability: "view";
|
|
820
|
+
readonly type: "function";
|
|
821
|
+
readonly name: "totalBorrows";
|
|
822
|
+
readonly inputs: readonly [{
|
|
823
|
+
readonly name: "_vaultToken";
|
|
811
824
|
readonly type: "address";
|
|
812
825
|
}];
|
|
813
826
|
readonly outputs: readonly [{
|
|
814
827
|
readonly name: "";
|
|
815
|
-
readonly type: "
|
|
828
|
+
readonly type: "uint256";
|
|
816
829
|
}];
|
|
817
830
|
}, {
|
|
818
831
|
readonly stateMutability: "view";
|
|
819
832
|
readonly type: "function";
|
|
820
|
-
readonly name: "
|
|
833
|
+
readonly name: "getAvailLiquidity";
|
|
821
834
|
readonly inputs: readonly [{
|
|
822
|
-
readonly name: "
|
|
835
|
+
readonly name: "_vaultToken";
|
|
823
836
|
readonly type: "address";
|
|
824
837
|
}];
|
|
825
838
|
readonly outputs: readonly [{
|
|
826
839
|
readonly name: "";
|
|
827
|
-
readonly type: "
|
|
840
|
+
readonly type: "uint256";
|
|
828
841
|
}];
|
|
829
842
|
}, {
|
|
830
843
|
readonly stateMutability: "view";
|
|
831
844
|
readonly type: "function";
|
|
832
|
-
readonly name: "
|
|
845
|
+
readonly name: "getUtilizationRatio";
|
|
833
846
|
readonly inputs: readonly [{
|
|
834
847
|
readonly name: "_vaultToken";
|
|
835
848
|
readonly type: "address";
|
|
@@ -841,10 +854,25 @@ export declare const abi: readonly [{
|
|
|
841
854
|
}, {
|
|
842
855
|
readonly stateMutability: "view";
|
|
843
856
|
readonly type: "function";
|
|
844
|
-
readonly name: "
|
|
857
|
+
readonly name: "isEligibleForYieldBonus";
|
|
858
|
+
readonly inputs: readonly [{
|
|
859
|
+
readonly name: "_asset";
|
|
860
|
+
readonly type: "address";
|
|
861
|
+
}];
|
|
862
|
+
readonly outputs: readonly [{
|
|
863
|
+
readonly name: "";
|
|
864
|
+
readonly type: "bool";
|
|
865
|
+
}];
|
|
866
|
+
}, {
|
|
867
|
+
readonly stateMutability: "view";
|
|
868
|
+
readonly type: "function";
|
|
869
|
+
readonly name: "getWithdrawalFees";
|
|
845
870
|
readonly inputs: readonly [{
|
|
846
871
|
readonly name: "_vaultToken";
|
|
847
872
|
readonly type: "address";
|
|
873
|
+
}, {
|
|
874
|
+
readonly name: "_vaultTokenAmount";
|
|
875
|
+
readonly type: "uint256";
|
|
848
876
|
}];
|
|
849
877
|
readonly outputs: readonly [{
|
|
850
878
|
readonly name: "";
|
|
@@ -1157,6 +1185,70 @@ export declare const abi: readonly [{
|
|
|
1157
1185
|
readonly name: "";
|
|
1158
1186
|
readonly type: "uint256";
|
|
1159
1187
|
}];
|
|
1188
|
+
}, {
|
|
1189
|
+
readonly stateMutability: "nonpayable";
|
|
1190
|
+
readonly type: "function";
|
|
1191
|
+
readonly name: "claimIncentives";
|
|
1192
|
+
readonly inputs: readonly [{
|
|
1193
|
+
readonly name: "_user";
|
|
1194
|
+
readonly type: "address";
|
|
1195
|
+
}, {
|
|
1196
|
+
readonly name: "_rewardToken";
|
|
1197
|
+
readonly type: "address";
|
|
1198
|
+
}, {
|
|
1199
|
+
readonly name: "_rewardAmount";
|
|
1200
|
+
readonly type: "uint256";
|
|
1201
|
+
}, {
|
|
1202
|
+
readonly name: "_proofs";
|
|
1203
|
+
readonly type: "bytes32[]";
|
|
1204
|
+
}];
|
|
1205
|
+
readonly outputs: readonly [{
|
|
1206
|
+
readonly name: "";
|
|
1207
|
+
readonly type: "uint256";
|
|
1208
|
+
}, {
|
|
1209
|
+
readonly name: "";
|
|
1210
|
+
readonly type: "uint256";
|
|
1211
|
+
}];
|
|
1212
|
+
}, {
|
|
1213
|
+
readonly stateMutability: "nonpayable";
|
|
1214
|
+
readonly type: "function";
|
|
1215
|
+
readonly name: "claimIncentives";
|
|
1216
|
+
readonly inputs: readonly [{
|
|
1217
|
+
readonly name: "_user";
|
|
1218
|
+
readonly type: "address";
|
|
1219
|
+
}, {
|
|
1220
|
+
readonly name: "_rewardToken";
|
|
1221
|
+
readonly type: "address";
|
|
1222
|
+
}, {
|
|
1223
|
+
readonly name: "_rewardAmount";
|
|
1224
|
+
readonly type: "uint256";
|
|
1225
|
+
}, {
|
|
1226
|
+
readonly name: "_proofs";
|
|
1227
|
+
readonly type: "bytes32[]";
|
|
1228
|
+
}, {
|
|
1229
|
+
readonly name: "_miniAddys";
|
|
1230
|
+
readonly type: "tuple";
|
|
1231
|
+
readonly components: readonly [{
|
|
1232
|
+
readonly name: "ledger";
|
|
1233
|
+
readonly type: "address";
|
|
1234
|
+
}, {
|
|
1235
|
+
readonly name: "missionControl";
|
|
1236
|
+
readonly type: "address";
|
|
1237
|
+
}, {
|
|
1238
|
+
readonly name: "legoBook";
|
|
1239
|
+
readonly type: "address";
|
|
1240
|
+
}, {
|
|
1241
|
+
readonly name: "appraiser";
|
|
1242
|
+
readonly type: "address";
|
|
1243
|
+
}];
|
|
1244
|
+
}];
|
|
1245
|
+
readonly outputs: readonly [{
|
|
1246
|
+
readonly name: "";
|
|
1247
|
+
readonly type: "uint256";
|
|
1248
|
+
}, {
|
|
1249
|
+
readonly name: "";
|
|
1250
|
+
readonly type: "uint256";
|
|
1251
|
+
}];
|
|
1160
1252
|
}, {
|
|
1161
1253
|
readonly stateMutability: "view";
|
|
1162
1254
|
readonly type: "function";
|
|
@@ -2128,6 +2220,33 @@ export declare const abi: readonly [{
|
|
|
2128
2220
|
readonly name: "";
|
|
2129
2221
|
readonly type: "address";
|
|
2130
2222
|
}];
|
|
2223
|
+
}, {
|
|
2224
|
+
readonly stateMutability: "view";
|
|
2225
|
+
readonly type: "function";
|
|
2226
|
+
readonly name: "RIPE_REGISTRY";
|
|
2227
|
+
readonly inputs: readonly [];
|
|
2228
|
+
readonly outputs: readonly [{
|
|
2229
|
+
readonly name: "";
|
|
2230
|
+
readonly type: "address";
|
|
2231
|
+
}];
|
|
2232
|
+
}, {
|
|
2233
|
+
readonly stateMutability: "view";
|
|
2234
|
+
readonly type: "function";
|
|
2235
|
+
readonly name: "WETH";
|
|
2236
|
+
readonly inputs: readonly [];
|
|
2237
|
+
readonly outputs: readonly [{
|
|
2238
|
+
readonly name: "";
|
|
2239
|
+
readonly type: "address";
|
|
2240
|
+
}];
|
|
2241
|
+
}, {
|
|
2242
|
+
readonly stateMutability: "view";
|
|
2243
|
+
readonly type: "function";
|
|
2244
|
+
readonly name: "NATIVE_ETH";
|
|
2245
|
+
readonly inputs: readonly [];
|
|
2246
|
+
readonly outputs: readonly [{
|
|
2247
|
+
readonly name: "";
|
|
2248
|
+
readonly type: "address";
|
|
2249
|
+
}];
|
|
2131
2250
|
}, {
|
|
2132
2251
|
readonly stateMutability: "nonpayable";
|
|
2133
2252
|
readonly type: "constructor";
|
|
@@ -2137,6 +2256,15 @@ export declare const abi: readonly [{
|
|
|
2137
2256
|
}, {
|
|
2138
2257
|
readonly name: "_fluidResolver";
|
|
2139
2258
|
readonly type: "address";
|
|
2259
|
+
}, {
|
|
2260
|
+
readonly name: "_ripeRegistry";
|
|
2261
|
+
readonly type: "address";
|
|
2262
|
+
}, {
|
|
2263
|
+
readonly name: "_weth";
|
|
2264
|
+
readonly type: "address";
|
|
2265
|
+
}, {
|
|
2266
|
+
readonly name: "_eth";
|
|
2267
|
+
readonly type: "address";
|
|
2140
2268
|
}];
|
|
2141
2269
|
readonly outputs: readonly [];
|
|
2142
2270
|
}];
|
|
@@ -2219,14 +2347,19 @@ export type Contract = {
|
|
|
2219
2347
|
isRebasing: () => Promise<boolean>;
|
|
2220
2348
|
getPricePerShare: (vaultToken: `0x${string}`, decimals?: bigint) => Promise<bigint>;
|
|
2221
2349
|
getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2222
|
-
isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
|
|
2223
|
-
isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
|
|
2224
2350
|
totalAssets: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2225
2351
|
totalBorrows: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2352
|
+
getAvailLiquidity: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2353
|
+
getUtilizationRatio: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2354
|
+
isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
|
|
2355
|
+
getWithdrawalFees: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
|
|
2226
2356
|
canRegisterVaultToken: (asset: `0x${string}`, vaultToken: `0x${string}`) => Promise<boolean>;
|
|
2227
2357
|
getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
|
|
2228
2358
|
hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
|
|
2229
2359
|
FLUID_RESOLVER: () => Promise<`0x${string}`>;
|
|
2360
|
+
RIPE_REGISTRY: () => Promise<`0x${string}`>;
|
|
2361
|
+
WETH: () => Promise<`0x${string}`>;
|
|
2362
|
+
NATIVE_ETH: () => Promise<`0x${string}`>;
|
|
2230
2363
|
};
|
|
2231
2364
|
mutations: {
|
|
2232
2365
|
pause: (shouldPause: boolean) => Promise<void>;
|
|
@@ -2263,6 +2396,12 @@ export type Contract = {
|
|
|
2263
2396
|
legoBook: `0x${string}`;
|
|
2264
2397
|
appraiser: `0x${string}`;
|
|
2265
2398
|
}) => Promise<[bigint, bigint]>;
|
|
2399
|
+
claimIncentives: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, proofs: `0x${string}`[], miniAddys?: {
|
|
2400
|
+
ledger: `0x${string}`;
|
|
2401
|
+
missionControl: `0x${string}`;
|
|
2402
|
+
legoBook: `0x${string}`;
|
|
2403
|
+
appraiser: `0x${string}`;
|
|
2404
|
+
}) => Promise<[bigint, bigint]>;
|
|
2266
2405
|
swapTokens: (amountIn: bigint, minAmountOut: bigint, tokenPath: `0x${string}`[], poolPath: `0x${string}`[], recipient: `0x${string}`, miniAddys?: {
|
|
2267
2406
|
ledger: `0x${string}`;
|
|
2268
2407
|
missionControl: `0x${string}`;
|
|
@@ -2338,7 +2477,7 @@ export type Contract = {
|
|
|
2338
2477
|
SnapShotPriceConfigSet: (minSnapshotDelay: bigint, maxNumSnapshots: bigint, maxUpsideDeviation: bigint, staleTime: bigint) => Promise<void>;
|
|
2339
2478
|
AssetOpportunityAdded: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
2340
2479
|
AssetOpportunityRemoved: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
2341
|
-
PricePerShareSnapShotAdded: (vaultToken: `0x${string}`, totalSupply: bigint, pricePerShare: bigint) => Promise<void>;
|
|
2480
|
+
PricePerShareSnapShotAdded: (vaultToken: `0x${string}`, totalSupply: bigint, pricePerShare: bigint, lastAveragePricePerShare: bigint) => Promise<void>;
|
|
2342
2481
|
};
|
|
2343
2482
|
};
|
|
2344
2483
|
export type Calls = keyof Contract['calls'];
|
|
@@ -2413,14 +2552,19 @@ export type SDK = {
|
|
|
2413
2552
|
isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
|
|
2414
2553
|
getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
|
|
2415
2554
|
getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
|
|
2416
|
-
isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
|
|
2417
|
-
isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
|
|
2418
2555
|
totalAssets: (...args: ExtractArgs<Contract['calls']['totalAssets']>) => Promise<CallReturn<'totalAssets'>>;
|
|
2419
2556
|
totalBorrows: (...args: ExtractArgs<Contract['calls']['totalBorrows']>) => Promise<CallReturn<'totalBorrows'>>;
|
|
2557
|
+
getAvailLiquidity: (...args: ExtractArgs<Contract['calls']['getAvailLiquidity']>) => Promise<CallReturn<'getAvailLiquidity'>>;
|
|
2558
|
+
getUtilizationRatio: (...args: ExtractArgs<Contract['calls']['getUtilizationRatio']>) => Promise<CallReturn<'getUtilizationRatio'>>;
|
|
2559
|
+
isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
|
|
2560
|
+
getWithdrawalFees: (...args: ExtractArgs<Contract['calls']['getWithdrawalFees']>) => Promise<CallReturn<'getWithdrawalFees'>>;
|
|
2420
2561
|
canRegisterVaultToken: (...args: ExtractArgs<Contract['calls']['canRegisterVaultToken']>) => Promise<CallReturn<'canRegisterVaultToken'>>;
|
|
2421
2562
|
getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
|
|
2422
2563
|
hasClaimableRewards: (...args: ExtractArgs<Contract['calls']['hasClaimableRewards']>) => Promise<CallReturn<'hasClaimableRewards'>>;
|
|
2423
2564
|
FLUID_RESOLVER: (...args: ExtractArgs<Contract['calls']['FLUID_RESOLVER']>) => Promise<CallReturn<'FLUID_RESOLVER'>>;
|
|
2565
|
+
RIPE_REGISTRY: (...args: ExtractArgs<Contract['calls']['RIPE_REGISTRY']>) => Promise<CallReturn<'RIPE_REGISTRY'>>;
|
|
2566
|
+
WETH: (...args: ExtractArgs<Contract['calls']['WETH']>) => Promise<CallReturn<'WETH'>>;
|
|
2567
|
+
NATIVE_ETH: (...args: ExtractArgs<Contract['calls']['NATIVE_ETH']>) => Promise<CallReturn<'NATIVE_ETH'>>;
|
|
2424
2568
|
pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
|
|
2425
2569
|
recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
|
|
2426
2570
|
recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
|
|
@@ -2431,6 +2575,7 @@ export type SDK = {
|
|
|
2431
2575
|
depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
|
|
2432
2576
|
withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
|
|
2433
2577
|
claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
|
|
2578
|
+
claimIncentives: (...args: ExtractArgs<Contract['mutations']['claimIncentives']>) => Promise<Address>;
|
|
2434
2579
|
swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
|
|
2435
2580
|
mintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['mintOrRedeemAsset']>) => Promise<Address>;
|
|
2436
2581
|
confirmMintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['confirmMintOrRedeemAsset']>) => Promise<Address>;
|