@defisaver/positions-sdk 2.1.1-dev.0 → 2.1.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/CLAUDE.md +32 -0
- package/cjs/aaveV2/index.js +1 -0
- package/cjs/aaveV3/index.d.ts +12 -0
- package/cjs/aaveV3/index.js +93 -1
- package/cjs/claiming/aaveV3.d.ts +5 -0
- package/cjs/claiming/aaveV3.js +139 -0
- package/cjs/claiming/compV3.d.ts +15 -0
- package/cjs/claiming/compV3.js +34 -0
- package/cjs/claiming/index.d.ts +6 -0
- package/cjs/claiming/index.js +46 -0
- package/cjs/claiming/king.d.ts +4 -0
- package/cjs/claiming/king.js +72 -0
- package/cjs/claiming/morphoBlue.d.ts +5 -0
- package/cjs/claiming/morphoBlue.js +113 -0
- package/cjs/claiming/spark.d.ts +6 -0
- package/cjs/claiming/spark.js +188 -0
- package/cjs/config/contracts.d.ts +2681 -0
- package/cjs/config/contracts.js +103 -2
- package/cjs/constants/index.d.ts +4 -0
- package/cjs/constants/index.js +6 -2
- package/cjs/contracts.d.ts +3027 -23
- package/cjs/contracts.js +10 -1
- package/cjs/helpers/aaveHelpers/index.d.ts +4 -0
- package/cjs/helpers/aaveHelpers/index.js +17 -1
- package/cjs/helpers/morphoBlueHelpers/index.d.ts +1 -0
- package/cjs/helpers/morphoBlueHelpers/index.js +7 -1
- package/cjs/index.d.ts +2 -1
- package/cjs/index.js +3 -1
- package/cjs/liquity/index.d.ts +11 -0
- package/cjs/liquity/index.js +39 -1
- package/cjs/liquityV2/index.d.ts +35 -2
- package/cjs/liquityV2/index.js +150 -52
- package/cjs/morphoBlue/index.d.ts +5 -0
- package/cjs/morphoBlue/index.js +35 -0
- package/cjs/portfolio/index.d.ts +6 -1
- package/cjs/portfolio/index.js +293 -10
- package/cjs/services/utils.d.ts +5 -0
- package/cjs/services/utils.js +33 -1
- package/cjs/services/viem.d.ts +12 -12
- package/cjs/spark/index.js +1 -0
- package/cjs/staking/staking.js +2 -1
- package/cjs/types/claiming.d.ts +93 -0
- package/cjs/types/claiming.js +27 -0
- package/cjs/umbrella/index.d.ts +5 -0
- package/cjs/umbrella/index.js +50 -0
- package/cjs/umbrella/umbrellaUtils.d.ts +22 -0
- package/cjs/umbrella/umbrellaUtils.js +34 -0
- package/esm/aaveV2/index.js +1 -0
- package/esm/aaveV3/index.d.ts +12 -0
- package/esm/aaveV3/index.js +91 -1
- package/esm/claiming/aaveV3.d.ts +5 -0
- package/esm/claiming/aaveV3.js +132 -0
- package/esm/claiming/compV3.d.ts +15 -0
- package/esm/claiming/compV3.js +30 -0
- package/esm/claiming/index.d.ts +6 -0
- package/esm/claiming/index.js +6 -0
- package/esm/claiming/king.d.ts +4 -0
- package/esm/claiming/king.js +64 -0
- package/esm/claiming/morphoBlue.d.ts +5 -0
- package/esm/claiming/morphoBlue.js +105 -0
- package/esm/claiming/spark.d.ts +6 -0
- package/esm/claiming/spark.js +179 -0
- package/esm/config/contracts.d.ts +2681 -0
- package/esm/config/contracts.js +102 -1
- package/esm/constants/index.d.ts +4 -0
- package/esm/constants/index.js +5 -1
- package/esm/contracts.d.ts +3027 -23
- package/esm/contracts.js +9 -0
- package/esm/helpers/aaveHelpers/index.d.ts +4 -0
- package/esm/helpers/aaveHelpers/index.js +15 -0
- package/esm/helpers/morphoBlueHelpers/index.d.ts +1 -0
- package/esm/helpers/morphoBlueHelpers/index.js +6 -1
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -1
- package/esm/liquity/index.d.ts +11 -0
- package/esm/liquity/index.js +38 -1
- package/esm/liquityV2/index.d.ts +35 -2
- package/esm/liquityV2/index.js +149 -51
- package/esm/morphoBlue/index.d.ts +5 -0
- package/esm/morphoBlue/index.js +35 -1
- package/esm/portfolio/index.d.ts +6 -1
- package/esm/portfolio/index.js +298 -15
- package/esm/services/utils.d.ts +5 -0
- package/esm/services/utils.js +31 -0
- package/esm/services/viem.d.ts +12 -12
- package/esm/spark/index.js +1 -0
- package/esm/staking/staking.js +2 -1
- package/esm/types/claiming.d.ts +93 -0
- package/esm/types/claiming.js +24 -0
- package/esm/umbrella/index.d.ts +5 -0
- package/esm/umbrella/index.js +46 -0
- package/esm/umbrella/umbrellaUtils.d.ts +22 -0
- package/esm/umbrella/umbrellaUtils.js +28 -0
- package/package.json +1 -1
- package/src/aaveV2/index.ts +2 -1
- package/src/aaveV3/index.ts +100 -2
- package/src/claiming/aaveV3.ts +155 -0
- package/src/claiming/compV3.ts +23 -0
- package/src/claiming/index.ts +13 -0
- package/src/claiming/king.ts +66 -0
- package/src/claiming/morphoBlue.ts +119 -0
- package/src/claiming/spark.ts +226 -0
- package/src/config/contracts.ts +104 -4
- package/src/constants/index.ts +5 -1
- package/src/contracts.ts +14 -1
- package/src/helpers/aaveHelpers/index.ts +15 -0
- package/src/helpers/morphoBlueHelpers/index.ts +7 -2
- package/src/index.ts +2 -0
- package/src/liquity/index.ts +57 -2
- package/src/liquityV2/index.ts +250 -56
- package/src/morphoBlue/index.ts +40 -2
- package/src/portfolio/index.ts +300 -15
- package/src/services/utils.ts +37 -1
- package/src/spark/index.ts +2 -1
- package/src/staking/staking.ts +2 -1
- package/src/types/claiming.ts +109 -0
- package/src/umbrella/index.ts +70 -0
- package/src/umbrella/umbrellaUtils.ts +30 -0
package/cjs/contracts.d.ts
CHANGED
|
@@ -179136,6 +179136,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
179136
179136
|
}];
|
|
179137
179137
|
readonly stateMutability: "view";
|
|
179138
179138
|
readonly type: "function";
|
|
179139
|
+
}, {
|
|
179140
|
+
readonly inputs: readonly [{
|
|
179141
|
+
readonly internalType: "address";
|
|
179142
|
+
readonly name: "_market";
|
|
179143
|
+
readonly type: "address";
|
|
179144
|
+
}, {
|
|
179145
|
+
readonly internalType: "address";
|
|
179146
|
+
readonly name: "_user";
|
|
179147
|
+
readonly type: "address";
|
|
179148
|
+
}];
|
|
179149
|
+
readonly name: "getRewardsOwed";
|
|
179150
|
+
readonly outputs: readonly [{
|
|
179151
|
+
readonly components: readonly [{
|
|
179152
|
+
readonly internalType: "address";
|
|
179153
|
+
readonly name: "token";
|
|
179154
|
+
readonly type: "address";
|
|
179155
|
+
}, {
|
|
179156
|
+
readonly internalType: "uint256";
|
|
179157
|
+
readonly name: "owed";
|
|
179158
|
+
readonly type: "uint256";
|
|
179159
|
+
}];
|
|
179160
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
179161
|
+
readonly name: "rewardsOwed";
|
|
179162
|
+
readonly type: "tuple";
|
|
179163
|
+
}];
|
|
179164
|
+
readonly stateMutability: "view";
|
|
179165
|
+
readonly type: "function";
|
|
179139
179166
|
}], "getApyAfterValuesEstimation", readonly [`0x${string}`, `0x${string}`, bigint, bigint]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly [bigint, bigint, bigint]>;
|
|
179140
179167
|
getAssetPrice: (args: readonly [`0x${string}`, `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
179141
179168
|
readonly inputs: readonly [{
|
|
@@ -179634,6 +179661,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
179634
179661
|
}];
|
|
179635
179662
|
readonly stateMutability: "view";
|
|
179636
179663
|
readonly type: "function";
|
|
179664
|
+
}, {
|
|
179665
|
+
readonly inputs: readonly [{
|
|
179666
|
+
readonly internalType: "address";
|
|
179667
|
+
readonly name: "_market";
|
|
179668
|
+
readonly type: "address";
|
|
179669
|
+
}, {
|
|
179670
|
+
readonly internalType: "address";
|
|
179671
|
+
readonly name: "_user";
|
|
179672
|
+
readonly type: "address";
|
|
179673
|
+
}];
|
|
179674
|
+
readonly name: "getRewardsOwed";
|
|
179675
|
+
readonly outputs: readonly [{
|
|
179676
|
+
readonly components: readonly [{
|
|
179677
|
+
readonly internalType: "address";
|
|
179678
|
+
readonly name: "token";
|
|
179679
|
+
readonly type: "address";
|
|
179680
|
+
}, {
|
|
179681
|
+
readonly internalType: "uint256";
|
|
179682
|
+
readonly name: "owed";
|
|
179683
|
+
readonly type: "uint256";
|
|
179684
|
+
}];
|
|
179685
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
179686
|
+
readonly name: "rewardsOwed";
|
|
179687
|
+
readonly type: "tuple";
|
|
179688
|
+
}];
|
|
179689
|
+
readonly stateMutability: "view";
|
|
179690
|
+
readonly type: "function";
|
|
179637
179691
|
}], "getAssetPrice", readonly [`0x${string}`, `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
179638
179692
|
getLoanData: (args: readonly [`0x${string}`, `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
179639
179693
|
readonly inputs: readonly [{
|
|
@@ -180132,6 +180186,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
180132
180186
|
}];
|
|
180133
180187
|
readonly stateMutability: "view";
|
|
180134
180188
|
readonly type: "function";
|
|
180189
|
+
}, {
|
|
180190
|
+
readonly inputs: readonly [{
|
|
180191
|
+
readonly internalType: "address";
|
|
180192
|
+
readonly name: "_market";
|
|
180193
|
+
readonly type: "address";
|
|
180194
|
+
}, {
|
|
180195
|
+
readonly internalType: "address";
|
|
180196
|
+
readonly name: "_user";
|
|
180197
|
+
readonly type: "address";
|
|
180198
|
+
}];
|
|
180199
|
+
readonly name: "getRewardsOwed";
|
|
180200
|
+
readonly outputs: readonly [{
|
|
180201
|
+
readonly components: readonly [{
|
|
180202
|
+
readonly internalType: "address";
|
|
180203
|
+
readonly name: "token";
|
|
180204
|
+
readonly type: "address";
|
|
180205
|
+
}, {
|
|
180206
|
+
readonly internalType: "uint256";
|
|
180207
|
+
readonly name: "owed";
|
|
180208
|
+
readonly type: "uint256";
|
|
180209
|
+
}];
|
|
180210
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
180211
|
+
readonly name: "rewardsOwed";
|
|
180212
|
+
readonly type: "tuple";
|
|
180213
|
+
}];
|
|
180214
|
+
readonly stateMutability: "view";
|
|
180215
|
+
readonly type: "function";
|
|
180135
180216
|
}], "getLoanData", readonly [`0x${string}`, `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<{
|
|
180136
180217
|
user: `0x${string}`;
|
|
180137
180218
|
collAddr: readonly `0x${string}`[];
|
|
@@ -180639,6 +180720,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
180639
180720
|
}];
|
|
180640
180721
|
readonly stateMutability: "view";
|
|
180641
180722
|
readonly type: "function";
|
|
180723
|
+
}, {
|
|
180724
|
+
readonly inputs: readonly [{
|
|
180725
|
+
readonly internalType: "address";
|
|
180726
|
+
readonly name: "_market";
|
|
180727
|
+
readonly type: "address";
|
|
180728
|
+
}, {
|
|
180729
|
+
readonly internalType: "address";
|
|
180730
|
+
readonly name: "_user";
|
|
180731
|
+
readonly type: "address";
|
|
180732
|
+
}];
|
|
180733
|
+
readonly name: "getRewardsOwed";
|
|
180734
|
+
readonly outputs: readonly [{
|
|
180735
|
+
readonly components: readonly [{
|
|
180736
|
+
readonly internalType: "address";
|
|
180737
|
+
readonly name: "token";
|
|
180738
|
+
readonly type: "address";
|
|
180739
|
+
}, {
|
|
180740
|
+
readonly internalType: "uint256";
|
|
180741
|
+
readonly name: "owed";
|
|
180742
|
+
readonly type: "uint256";
|
|
180743
|
+
}];
|
|
180744
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
180745
|
+
readonly name: "rewardsOwed";
|
|
180746
|
+
readonly type: "tuple";
|
|
180747
|
+
}];
|
|
180748
|
+
readonly stateMutability: "view";
|
|
180749
|
+
readonly type: "function";
|
|
180642
180750
|
}], "getLoanDataArr", readonly [`0x${string}`, readonly `0x${string}`[]]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly {
|
|
180643
180751
|
user: `0x${string}`;
|
|
180644
180752
|
collAddr: readonly `0x${string}`[];
|
|
@@ -181155,6 +181263,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
181155
181263
|
}];
|
|
181156
181264
|
readonly stateMutability: "view";
|
|
181157
181265
|
readonly type: "function";
|
|
181266
|
+
}, {
|
|
181267
|
+
readonly inputs: readonly [{
|
|
181268
|
+
readonly internalType: "address";
|
|
181269
|
+
readonly name: "_market";
|
|
181270
|
+
readonly type: "address";
|
|
181271
|
+
}, {
|
|
181272
|
+
readonly internalType: "address";
|
|
181273
|
+
readonly name: "_user";
|
|
181274
|
+
readonly type: "address";
|
|
181275
|
+
}];
|
|
181276
|
+
readonly name: "getRewardsOwed";
|
|
181277
|
+
readonly outputs: readonly [{
|
|
181278
|
+
readonly components: readonly [{
|
|
181279
|
+
readonly internalType: "address";
|
|
181280
|
+
readonly name: "token";
|
|
181281
|
+
readonly type: "address";
|
|
181282
|
+
}, {
|
|
181283
|
+
readonly internalType: "uint256";
|
|
181284
|
+
readonly name: "owed";
|
|
181285
|
+
readonly type: "uint256";
|
|
181286
|
+
}];
|
|
181287
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
181288
|
+
readonly name: "rewardsOwed";
|
|
181289
|
+
readonly type: "tuple";
|
|
181290
|
+
}];
|
|
181291
|
+
readonly stateMutability: "view";
|
|
181292
|
+
readonly type: "function";
|
|
181158
181293
|
}], "getUtilization", readonly [{
|
|
181159
181294
|
baseSupplyIndex: bigint;
|
|
181160
181295
|
baseBorrowIndex: bigint;
|
|
@@ -181662,6 +181797,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
181662
181797
|
}];
|
|
181663
181798
|
readonly stateMutability: "view";
|
|
181664
181799
|
readonly type: "function";
|
|
181800
|
+
}, {
|
|
181801
|
+
readonly inputs: readonly [{
|
|
181802
|
+
readonly internalType: "address";
|
|
181803
|
+
readonly name: "_market";
|
|
181804
|
+
readonly type: "address";
|
|
181805
|
+
}, {
|
|
181806
|
+
readonly internalType: "address";
|
|
181807
|
+
readonly name: "_user";
|
|
181808
|
+
readonly type: "address";
|
|
181809
|
+
}];
|
|
181810
|
+
readonly name: "getRewardsOwed";
|
|
181811
|
+
readonly outputs: readonly [{
|
|
181812
|
+
readonly components: readonly [{
|
|
181813
|
+
readonly internalType: "address";
|
|
181814
|
+
readonly name: "token";
|
|
181815
|
+
readonly type: "address";
|
|
181816
|
+
}, {
|
|
181817
|
+
readonly internalType: "uint256";
|
|
181818
|
+
readonly name: "owed";
|
|
181819
|
+
readonly type: "uint256";
|
|
181820
|
+
}];
|
|
181821
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
181822
|
+
readonly name: "rewardsOwed";
|
|
181823
|
+
readonly type: "tuple";
|
|
181824
|
+
}];
|
|
181825
|
+
readonly stateMutability: "view";
|
|
181826
|
+
readonly type: "function";
|
|
181665
181827
|
}], "isAllowed", readonly [`0x${string}`, `0x${string}`, `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<boolean>;
|
|
181666
181828
|
getAssets: (args: readonly [`0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
181667
181829
|
readonly inputs: readonly [{
|
|
@@ -182160,6 +182322,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
182160
182322
|
}];
|
|
182161
182323
|
readonly stateMutability: "view";
|
|
182162
182324
|
readonly type: "function";
|
|
182325
|
+
}, {
|
|
182326
|
+
readonly inputs: readonly [{
|
|
182327
|
+
readonly internalType: "address";
|
|
182328
|
+
readonly name: "_market";
|
|
182329
|
+
readonly type: "address";
|
|
182330
|
+
}, {
|
|
182331
|
+
readonly internalType: "address";
|
|
182332
|
+
readonly name: "_user";
|
|
182333
|
+
readonly type: "address";
|
|
182334
|
+
}];
|
|
182335
|
+
readonly name: "getRewardsOwed";
|
|
182336
|
+
readonly outputs: readonly [{
|
|
182337
|
+
readonly components: readonly [{
|
|
182338
|
+
readonly internalType: "address";
|
|
182339
|
+
readonly name: "token";
|
|
182340
|
+
readonly type: "address";
|
|
182341
|
+
}, {
|
|
182342
|
+
readonly internalType: "uint256";
|
|
182343
|
+
readonly name: "owed";
|
|
182344
|
+
readonly type: "uint256";
|
|
182345
|
+
}];
|
|
182346
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
182347
|
+
readonly name: "rewardsOwed";
|
|
182348
|
+
readonly type: "tuple";
|
|
182349
|
+
}];
|
|
182350
|
+
readonly stateMutability: "view";
|
|
182351
|
+
readonly type: "function";
|
|
182163
182352
|
}], "getAssets", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly {
|
|
182164
182353
|
offset: number;
|
|
182165
182354
|
asset: `0x${string}`;
|
|
@@ -182667,6 +182856,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
182667
182856
|
}];
|
|
182668
182857
|
readonly stateMutability: "view";
|
|
182669
182858
|
readonly type: "function";
|
|
182859
|
+
}, {
|
|
182860
|
+
readonly inputs: readonly [{
|
|
182861
|
+
readonly internalType: "address";
|
|
182862
|
+
readonly name: "_market";
|
|
182863
|
+
readonly type: "address";
|
|
182864
|
+
}, {
|
|
182865
|
+
readonly internalType: "address";
|
|
182866
|
+
readonly name: "_user";
|
|
182867
|
+
readonly type: "address";
|
|
182868
|
+
}];
|
|
182869
|
+
readonly name: "getRewardsOwed";
|
|
182870
|
+
readonly outputs: readonly [{
|
|
182871
|
+
readonly components: readonly [{
|
|
182872
|
+
readonly internalType: "address";
|
|
182873
|
+
readonly name: "token";
|
|
182874
|
+
readonly type: "address";
|
|
182875
|
+
}, {
|
|
182876
|
+
readonly internalType: "uint256";
|
|
182877
|
+
readonly name: "owed";
|
|
182878
|
+
readonly type: "uint256";
|
|
182879
|
+
}];
|
|
182880
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
182881
|
+
readonly name: "rewardsOwed";
|
|
182882
|
+
readonly type: "tuple";
|
|
182883
|
+
}];
|
|
182884
|
+
readonly stateMutability: "view";
|
|
182885
|
+
readonly type: "function";
|
|
182670
182886
|
}], "getFullBaseTokenInfo", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<{
|
|
182671
182887
|
tokenAddr: `0x${string}`;
|
|
182672
182888
|
price: bigint;
|
|
@@ -183180,6 +183396,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
183180
183396
|
}];
|
|
183181
183397
|
readonly stateMutability: "view";
|
|
183182
183398
|
readonly type: "function";
|
|
183399
|
+
}, {
|
|
183400
|
+
readonly inputs: readonly [{
|
|
183401
|
+
readonly internalType: "address";
|
|
183402
|
+
readonly name: "_market";
|
|
183403
|
+
readonly type: "address";
|
|
183404
|
+
}, {
|
|
183405
|
+
readonly internalType: "address";
|
|
183406
|
+
readonly name: "_user";
|
|
183407
|
+
readonly type: "address";
|
|
183408
|
+
}];
|
|
183409
|
+
readonly name: "getRewardsOwed";
|
|
183410
|
+
readonly outputs: readonly [{
|
|
183411
|
+
readonly components: readonly [{
|
|
183412
|
+
readonly internalType: "address";
|
|
183413
|
+
readonly name: "token";
|
|
183414
|
+
readonly type: "address";
|
|
183415
|
+
}, {
|
|
183416
|
+
readonly internalType: "uint256";
|
|
183417
|
+
readonly name: "owed";
|
|
183418
|
+
readonly type: "uint256";
|
|
183419
|
+
}];
|
|
183420
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
183421
|
+
readonly name: "rewardsOwed";
|
|
183422
|
+
readonly type: "tuple";
|
|
183423
|
+
}];
|
|
183424
|
+
readonly stateMutability: "view";
|
|
183425
|
+
readonly type: "function";
|
|
183183
183426
|
}], "getFullCollInfos", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly {
|
|
183184
183427
|
tokenAddr: `0x${string}`;
|
|
183185
183428
|
totalSupply: bigint;
|
|
@@ -183687,15 +183930,40 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
183687
183930
|
}];
|
|
183688
183931
|
readonly stateMutability: "view";
|
|
183689
183932
|
readonly type: "function";
|
|
183933
|
+
}, {
|
|
183934
|
+
readonly inputs: readonly [{
|
|
183935
|
+
readonly internalType: "address";
|
|
183936
|
+
readonly name: "_market";
|
|
183937
|
+
readonly type: "address";
|
|
183938
|
+
}, {
|
|
183939
|
+
readonly internalType: "address";
|
|
183940
|
+
readonly name: "_user";
|
|
183941
|
+
readonly type: "address";
|
|
183942
|
+
}];
|
|
183943
|
+
readonly name: "getRewardsOwed";
|
|
183944
|
+
readonly outputs: readonly [{
|
|
183945
|
+
readonly components: readonly [{
|
|
183946
|
+
readonly internalType: "address";
|
|
183947
|
+
readonly name: "token";
|
|
183948
|
+
readonly type: "address";
|
|
183949
|
+
}, {
|
|
183950
|
+
readonly internalType: "uint256";
|
|
183951
|
+
readonly name: "owed";
|
|
183952
|
+
readonly type: "uint256";
|
|
183953
|
+
}];
|
|
183954
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
183955
|
+
readonly name: "rewardsOwed";
|
|
183956
|
+
readonly type: "tuple";
|
|
183957
|
+
}];
|
|
183958
|
+
readonly stateMutability: "view";
|
|
183959
|
+
readonly type: "function";
|
|
183690
183960
|
}], "getGovernanceInfoFull", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<{
|
|
183691
183961
|
isSupplyPaused: boolean;
|
|
183692
183962
|
isTransferPaused: boolean;
|
|
183693
183963
|
isWithdrawPaused: boolean;
|
|
183694
183964
|
isAbsorbPaused: boolean;
|
|
183695
183965
|
}>;
|
|
183696
|
-
|
|
183697
|
-
estimateGas: {
|
|
183698
|
-
getFullCollInfo: (args: readonly [`0x${string}`, `0x${string}`], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<readonly [{
|
|
183966
|
+
getRewardsOwed: (args: readonly [`0x${string}`, `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
183699
183967
|
readonly inputs: readonly [{
|
|
183700
183968
|
readonly internalType: "address";
|
|
183701
183969
|
readonly name: "_market";
|
|
@@ -184192,8 +184460,40 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
184192
184460
|
}];
|
|
184193
184461
|
readonly stateMutability: "view";
|
|
184194
184462
|
readonly type: "function";
|
|
184195
|
-
}
|
|
184196
|
-
|
|
184463
|
+
}, {
|
|
184464
|
+
readonly inputs: readonly [{
|
|
184465
|
+
readonly internalType: "address";
|
|
184466
|
+
readonly name: "_market";
|
|
184467
|
+
readonly type: "address";
|
|
184468
|
+
}, {
|
|
184469
|
+
readonly internalType: "address";
|
|
184470
|
+
readonly name: "_user";
|
|
184471
|
+
readonly type: "address";
|
|
184472
|
+
}];
|
|
184473
|
+
readonly name: "getRewardsOwed";
|
|
184474
|
+
readonly outputs: readonly [{
|
|
184475
|
+
readonly components: readonly [{
|
|
184476
|
+
readonly internalType: "address";
|
|
184477
|
+
readonly name: "token";
|
|
184478
|
+
readonly type: "address";
|
|
184479
|
+
}, {
|
|
184480
|
+
readonly internalType: "uint256";
|
|
184481
|
+
readonly name: "owed";
|
|
184482
|
+
readonly type: "uint256";
|
|
184483
|
+
}];
|
|
184484
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
184485
|
+
readonly name: "rewardsOwed";
|
|
184486
|
+
readonly type: "tuple";
|
|
184487
|
+
}];
|
|
184488
|
+
readonly stateMutability: "view";
|
|
184489
|
+
readonly type: "function";
|
|
184490
|
+
}], "getRewardsOwed", readonly [`0x${string}`, `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<{
|
|
184491
|
+
token: `0x${string}`;
|
|
184492
|
+
owed: bigint;
|
|
184493
|
+
}>;
|
|
184494
|
+
};
|
|
184495
|
+
estimateGas: {
|
|
184496
|
+
getFullCollInfo: (args: readonly [`0x${string}`, `0x${string}`], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<readonly [{
|
|
184197
184497
|
readonly inputs: readonly [{
|
|
184198
184498
|
readonly internalType: "address";
|
|
184199
184499
|
readonly name: "_market";
|
|
@@ -184690,9 +184990,35 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
184690
184990
|
}];
|
|
184691
184991
|
readonly stateMutability: "view";
|
|
184692
184992
|
readonly type: "function";
|
|
184693
|
-
}
|
|
184694
|
-
|
|
184695
|
-
|
|
184993
|
+
}, {
|
|
184994
|
+
readonly inputs: readonly [{
|
|
184995
|
+
readonly internalType: "address";
|
|
184996
|
+
readonly name: "_market";
|
|
184997
|
+
readonly type: "address";
|
|
184998
|
+
}, {
|
|
184999
|
+
readonly internalType: "address";
|
|
185000
|
+
readonly name: "_user";
|
|
185001
|
+
readonly type: "address";
|
|
185002
|
+
}];
|
|
185003
|
+
readonly name: "getRewardsOwed";
|
|
185004
|
+
readonly outputs: readonly [{
|
|
185005
|
+
readonly components: readonly [{
|
|
185006
|
+
readonly internalType: "address";
|
|
185007
|
+
readonly name: "token";
|
|
185008
|
+
readonly type: "address";
|
|
185009
|
+
}, {
|
|
185010
|
+
readonly internalType: "uint256";
|
|
185011
|
+
readonly name: "owed";
|
|
185012
|
+
readonly type: "uint256";
|
|
185013
|
+
}];
|
|
185014
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
185015
|
+
readonly name: "rewardsOwed";
|
|
185016
|
+
readonly type: "tuple";
|
|
185017
|
+
}];
|
|
185018
|
+
readonly stateMutability: "view";
|
|
185019
|
+
readonly type: "function";
|
|
185020
|
+
}], "getFullCollInfo", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
185021
|
+
getRewardsOwed: (args: readonly [`0x${string}`, `0x${string}`], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<readonly [{
|
|
184696
185022
|
readonly inputs: readonly [{
|
|
184697
185023
|
readonly internalType: "address";
|
|
184698
185024
|
readonly name: "_market";
|
|
@@ -185189,8 +185515,36 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
185189
185515
|
}];
|
|
185190
185516
|
readonly stateMutability: "view";
|
|
185191
185517
|
readonly type: "function";
|
|
185192
|
-
}
|
|
185193
|
-
|
|
185518
|
+
}, {
|
|
185519
|
+
readonly inputs: readonly [{
|
|
185520
|
+
readonly internalType: "address";
|
|
185521
|
+
readonly name: "_market";
|
|
185522
|
+
readonly type: "address";
|
|
185523
|
+
}, {
|
|
185524
|
+
readonly internalType: "address";
|
|
185525
|
+
readonly name: "_user";
|
|
185526
|
+
readonly type: "address";
|
|
185527
|
+
}];
|
|
185528
|
+
readonly name: "getRewardsOwed";
|
|
185529
|
+
readonly outputs: readonly [{
|
|
185530
|
+
readonly components: readonly [{
|
|
185531
|
+
readonly internalType: "address";
|
|
185532
|
+
readonly name: "token";
|
|
185533
|
+
readonly type: "address";
|
|
185534
|
+
}, {
|
|
185535
|
+
readonly internalType: "uint256";
|
|
185536
|
+
readonly name: "owed";
|
|
185537
|
+
readonly type: "uint256";
|
|
185538
|
+
}];
|
|
185539
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
185540
|
+
readonly name: "rewardsOwed";
|
|
185541
|
+
readonly type: "tuple";
|
|
185542
|
+
}];
|
|
185543
|
+
readonly stateMutability: "view";
|
|
185544
|
+
readonly type: "function";
|
|
185545
|
+
}], "getRewardsOwed", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
185546
|
+
} & {
|
|
185547
|
+
getFullCollInfo: (args: readonly [`0x${string}`, `0x${string}`], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<readonly [{
|
|
185194
185548
|
readonly inputs: readonly [{
|
|
185195
185549
|
readonly internalType: "address";
|
|
185196
185550
|
readonly name: "_market";
|
|
@@ -185687,10 +186041,35 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
185687
186041
|
}];
|
|
185688
186042
|
readonly stateMutability: "view";
|
|
185689
186043
|
readonly type: "function";
|
|
185690
|
-
}
|
|
185691
|
-
|
|
185692
|
-
|
|
185693
|
-
|
|
186044
|
+
}, {
|
|
186045
|
+
readonly inputs: readonly [{
|
|
186046
|
+
readonly internalType: "address";
|
|
186047
|
+
readonly name: "_market";
|
|
186048
|
+
readonly type: "address";
|
|
186049
|
+
}, {
|
|
186050
|
+
readonly internalType: "address";
|
|
186051
|
+
readonly name: "_user";
|
|
186052
|
+
readonly type: "address";
|
|
186053
|
+
}];
|
|
186054
|
+
readonly name: "getRewardsOwed";
|
|
186055
|
+
readonly outputs: readonly [{
|
|
186056
|
+
readonly components: readonly [{
|
|
186057
|
+
readonly internalType: "address";
|
|
186058
|
+
readonly name: "token";
|
|
186059
|
+
readonly type: "address";
|
|
186060
|
+
}, {
|
|
186061
|
+
readonly internalType: "uint256";
|
|
186062
|
+
readonly name: "owed";
|
|
186063
|
+
readonly type: "uint256";
|
|
186064
|
+
}];
|
|
186065
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
186066
|
+
readonly name: "rewardsOwed";
|
|
186067
|
+
readonly type: "tuple";
|
|
186068
|
+
}];
|
|
186069
|
+
readonly stateMutability: "view";
|
|
186070
|
+
readonly type: "function";
|
|
186071
|
+
}], "getFullCollInfo", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
186072
|
+
getRewardsOwed: (args: readonly [`0x${string}`, `0x${string}`], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<readonly [{
|
|
185694
186073
|
readonly inputs: readonly [{
|
|
185695
186074
|
readonly internalType: "address";
|
|
185696
186075
|
readonly name: "_market";
|
|
@@ -186187,7 +186566,37 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
186187
186566
|
}];
|
|
186188
186567
|
readonly stateMutability: "view";
|
|
186189
186568
|
readonly type: "function";
|
|
186190
|
-
}
|
|
186569
|
+
}, {
|
|
186570
|
+
readonly inputs: readonly [{
|
|
186571
|
+
readonly internalType: "address";
|
|
186572
|
+
readonly name: "_market";
|
|
186573
|
+
readonly type: "address";
|
|
186574
|
+
}, {
|
|
186575
|
+
readonly internalType: "address";
|
|
186576
|
+
readonly name: "_user";
|
|
186577
|
+
readonly type: "address";
|
|
186578
|
+
}];
|
|
186579
|
+
readonly name: "getRewardsOwed";
|
|
186580
|
+
readonly outputs: readonly [{
|
|
186581
|
+
readonly components: readonly [{
|
|
186582
|
+
readonly internalType: "address";
|
|
186583
|
+
readonly name: "token";
|
|
186584
|
+
readonly type: "address";
|
|
186585
|
+
}, {
|
|
186586
|
+
readonly internalType: "uint256";
|
|
186587
|
+
readonly name: "owed";
|
|
186588
|
+
readonly type: "uint256";
|
|
186589
|
+
}];
|
|
186590
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
186591
|
+
readonly name: "rewardsOwed";
|
|
186592
|
+
readonly type: "tuple";
|
|
186593
|
+
}];
|
|
186594
|
+
readonly stateMutability: "view";
|
|
186595
|
+
readonly type: "function";
|
|
186596
|
+
}], "getRewardsOwed", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
186597
|
+
};
|
|
186598
|
+
simulate: {
|
|
186599
|
+
getFullCollInfo: <chainOverride extends import("viem").Chain | undefined = undefined, accountOverride extends import("viem").Account | import("viem").Address | undefined = undefined>(args: readonly [`0x${string}`, `0x${string}`], options?: Omit<import("viem").SimulateContractParameters<readonly [{
|
|
186191
186600
|
readonly inputs: readonly [{
|
|
186192
186601
|
readonly internalType: "address";
|
|
186193
186602
|
readonly name: "_market";
|
|
@@ -186684,8 +187093,34 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
186684
187093
|
}];
|
|
186685
187094
|
readonly stateMutability: "view";
|
|
186686
187095
|
readonly type: "function";
|
|
186687
|
-
}
|
|
186688
|
-
|
|
187096
|
+
}, {
|
|
187097
|
+
readonly inputs: readonly [{
|
|
187098
|
+
readonly internalType: "address";
|
|
187099
|
+
readonly name: "_market";
|
|
187100
|
+
readonly type: "address";
|
|
187101
|
+
}, {
|
|
187102
|
+
readonly internalType: "address";
|
|
187103
|
+
readonly name: "_user";
|
|
187104
|
+
readonly type: "address";
|
|
187105
|
+
}];
|
|
187106
|
+
readonly name: "getRewardsOwed";
|
|
187107
|
+
readonly outputs: readonly [{
|
|
187108
|
+
readonly components: readonly [{
|
|
187109
|
+
readonly internalType: "address";
|
|
187110
|
+
readonly name: "token";
|
|
187111
|
+
readonly type: "address";
|
|
187112
|
+
}, {
|
|
187113
|
+
readonly internalType: "uint256";
|
|
187114
|
+
readonly name: "owed";
|
|
187115
|
+
readonly type: "uint256";
|
|
187116
|
+
}];
|
|
187117
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
187118
|
+
readonly name: "rewardsOwed";
|
|
187119
|
+
readonly type: "tuple";
|
|
187120
|
+
}];
|
|
187121
|
+
readonly stateMutability: "view";
|
|
187122
|
+
readonly type: "function";
|
|
187123
|
+
}], "getFullCollInfo", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "args" | "abi" | "functionName"> | undefined) => Promise<import("viem").SimulateContractReturnType<readonly [{
|
|
186689
187124
|
readonly inputs: readonly [{
|
|
186690
187125
|
readonly internalType: "address";
|
|
186691
187126
|
readonly name: "_market";
|
|
@@ -187182,7 +187617,35 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
187182
187617
|
}];
|
|
187183
187618
|
readonly stateMutability: "view";
|
|
187184
187619
|
readonly type: "function";
|
|
187185
|
-
}
|
|
187620
|
+
}, {
|
|
187621
|
+
readonly inputs: readonly [{
|
|
187622
|
+
readonly internalType: "address";
|
|
187623
|
+
readonly name: "_market";
|
|
187624
|
+
readonly type: "address";
|
|
187625
|
+
}, {
|
|
187626
|
+
readonly internalType: "address";
|
|
187627
|
+
readonly name: "_user";
|
|
187628
|
+
readonly type: "address";
|
|
187629
|
+
}];
|
|
187630
|
+
readonly name: "getRewardsOwed";
|
|
187631
|
+
readonly outputs: readonly [{
|
|
187632
|
+
readonly components: readonly [{
|
|
187633
|
+
readonly internalType: "address";
|
|
187634
|
+
readonly name: "token";
|
|
187635
|
+
readonly type: "address";
|
|
187636
|
+
}, {
|
|
187637
|
+
readonly internalType: "uint256";
|
|
187638
|
+
readonly name: "owed";
|
|
187639
|
+
readonly type: "uint256";
|
|
187640
|
+
}];
|
|
187641
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
187642
|
+
readonly name: "rewardsOwed";
|
|
187643
|
+
readonly type: "tuple";
|
|
187644
|
+
}];
|
|
187645
|
+
readonly stateMutability: "view";
|
|
187646
|
+
readonly type: "function";
|
|
187647
|
+
}], "getFullCollInfo", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride, accountOverride>>;
|
|
187648
|
+
getRewardsOwed: <chainOverride extends import("viem").Chain | undefined = undefined, accountOverride extends import("viem").Account | import("viem").Address | undefined = undefined>(args: readonly [`0x${string}`, `0x${string}`], options?: Omit<import("viem").SimulateContractParameters<readonly [{
|
|
187186
187649
|
readonly inputs: readonly [{
|
|
187187
187650
|
readonly internalType: "address";
|
|
187188
187651
|
readonly name: "_market";
|
|
@@ -187679,10 +188142,34 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
187679
188142
|
}];
|
|
187680
188143
|
readonly stateMutability: "view";
|
|
187681
188144
|
readonly type: "function";
|
|
187682
|
-
}
|
|
187683
|
-
|
|
187684
|
-
|
|
187685
|
-
|
|
188145
|
+
}, {
|
|
188146
|
+
readonly inputs: readonly [{
|
|
188147
|
+
readonly internalType: "address";
|
|
188148
|
+
readonly name: "_market";
|
|
188149
|
+
readonly type: "address";
|
|
188150
|
+
}, {
|
|
188151
|
+
readonly internalType: "address";
|
|
188152
|
+
readonly name: "_user";
|
|
188153
|
+
readonly type: "address";
|
|
188154
|
+
}];
|
|
188155
|
+
readonly name: "getRewardsOwed";
|
|
188156
|
+
readonly outputs: readonly [{
|
|
188157
|
+
readonly components: readonly [{
|
|
188158
|
+
readonly internalType: "address";
|
|
188159
|
+
readonly name: "token";
|
|
188160
|
+
readonly type: "address";
|
|
188161
|
+
}, {
|
|
188162
|
+
readonly internalType: "uint256";
|
|
188163
|
+
readonly name: "owed";
|
|
188164
|
+
readonly type: "uint256";
|
|
188165
|
+
}];
|
|
188166
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
188167
|
+
readonly name: "rewardsOwed";
|
|
188168
|
+
readonly type: "tuple";
|
|
188169
|
+
}];
|
|
188170
|
+
readonly stateMutability: "view";
|
|
188171
|
+
readonly type: "function";
|
|
188172
|
+
}], "getRewardsOwed", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "args" | "abi" | "functionName"> | undefined) => Promise<import("viem").SimulateContractReturnType<readonly [{
|
|
187686
188173
|
readonly inputs: readonly [{
|
|
187687
188174
|
readonly internalType: "address";
|
|
187688
188175
|
readonly name: "_market";
|
|
@@ -188179,7 +188666,37 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
188179
188666
|
}];
|
|
188180
188667
|
readonly stateMutability: "view";
|
|
188181
188668
|
readonly type: "function";
|
|
188182
|
-
}
|
|
188669
|
+
}, {
|
|
188670
|
+
readonly inputs: readonly [{
|
|
188671
|
+
readonly internalType: "address";
|
|
188672
|
+
readonly name: "_market";
|
|
188673
|
+
readonly type: "address";
|
|
188674
|
+
}, {
|
|
188675
|
+
readonly internalType: "address";
|
|
188676
|
+
readonly name: "_user";
|
|
188677
|
+
readonly type: "address";
|
|
188678
|
+
}];
|
|
188679
|
+
readonly name: "getRewardsOwed";
|
|
188680
|
+
readonly outputs: readonly [{
|
|
188681
|
+
readonly components: readonly [{
|
|
188682
|
+
readonly internalType: "address";
|
|
188683
|
+
readonly name: "token";
|
|
188684
|
+
readonly type: "address";
|
|
188685
|
+
}, {
|
|
188686
|
+
readonly internalType: "uint256";
|
|
188687
|
+
readonly name: "owed";
|
|
188688
|
+
readonly type: "uint256";
|
|
188689
|
+
}];
|
|
188690
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
188691
|
+
readonly name: "rewardsOwed";
|
|
188692
|
+
readonly type: "tuple";
|
|
188693
|
+
}];
|
|
188694
|
+
readonly stateMutability: "view";
|
|
188695
|
+
readonly type: "function";
|
|
188696
|
+
}], "getRewardsOwed", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride, accountOverride>>;
|
|
188697
|
+
};
|
|
188698
|
+
write: {
|
|
188699
|
+
getFullCollInfo: <chainOverride extends import("viem").Chain | undefined, options extends import("viem").UnionOmit<import("viem").WriteContractParameters<readonly [{
|
|
188183
188700
|
readonly inputs: readonly [{
|
|
188184
188701
|
readonly internalType: "address";
|
|
188185
188702
|
readonly name: "_market";
|
|
@@ -188676,6 +189193,557 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
188676
189193
|
}];
|
|
188677
189194
|
readonly stateMutability: "view";
|
|
188678
189195
|
readonly type: "function";
|
|
189196
|
+
}, {
|
|
189197
|
+
readonly inputs: readonly [{
|
|
189198
|
+
readonly internalType: "address";
|
|
189199
|
+
readonly name: "_market";
|
|
189200
|
+
readonly type: "address";
|
|
189201
|
+
}, {
|
|
189202
|
+
readonly internalType: "address";
|
|
189203
|
+
readonly name: "_user";
|
|
189204
|
+
readonly type: "address";
|
|
189205
|
+
}];
|
|
189206
|
+
readonly name: "getRewardsOwed";
|
|
189207
|
+
readonly outputs: readonly [{
|
|
189208
|
+
readonly components: readonly [{
|
|
189209
|
+
readonly internalType: "address";
|
|
189210
|
+
readonly name: "token";
|
|
189211
|
+
readonly type: "address";
|
|
189212
|
+
}, {
|
|
189213
|
+
readonly internalType: "uint256";
|
|
189214
|
+
readonly name: "owed";
|
|
189215
|
+
readonly type: "uint256";
|
|
189216
|
+
}];
|
|
189217
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
189218
|
+
readonly name: "rewardsOwed";
|
|
189219
|
+
readonly type: "tuple";
|
|
189220
|
+
}];
|
|
189221
|
+
readonly stateMutability: "view";
|
|
189222
|
+
readonly type: "function";
|
|
189223
|
+
}], "getFullCollInfo", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride>, "address" | "args" | "abi" | "functionName"> extends infer T ? { [K in keyof T]: import("viem").UnionOmit<import("viem").WriteContractParameters<readonly [{
|
|
189224
|
+
readonly inputs: readonly [{
|
|
189225
|
+
readonly internalType: "address";
|
|
189226
|
+
readonly name: "_market";
|
|
189227
|
+
readonly type: "address";
|
|
189228
|
+
}, {
|
|
189229
|
+
readonly internalType: "address";
|
|
189230
|
+
readonly name: "_user";
|
|
189231
|
+
readonly type: "address";
|
|
189232
|
+
}, {
|
|
189233
|
+
readonly internalType: "uint256";
|
|
189234
|
+
readonly name: "_supplyAmount";
|
|
189235
|
+
readonly type: "uint256";
|
|
189236
|
+
}, {
|
|
189237
|
+
readonly internalType: "uint256";
|
|
189238
|
+
readonly name: "_borrowAmount";
|
|
189239
|
+
readonly type: "uint256";
|
|
189240
|
+
}];
|
|
189241
|
+
readonly name: "getApyAfterValuesEstimation";
|
|
189242
|
+
readonly outputs: readonly [{
|
|
189243
|
+
readonly internalType: "uint256";
|
|
189244
|
+
readonly name: "utilization";
|
|
189245
|
+
readonly type: "uint256";
|
|
189246
|
+
}, {
|
|
189247
|
+
readonly internalType: "uint256";
|
|
189248
|
+
readonly name: "supplyRate";
|
|
189249
|
+
readonly type: "uint256";
|
|
189250
|
+
}, {
|
|
189251
|
+
readonly internalType: "uint256";
|
|
189252
|
+
readonly name: "borrowRate";
|
|
189253
|
+
readonly type: "uint256";
|
|
189254
|
+
}];
|
|
189255
|
+
readonly stateMutability: "view";
|
|
189256
|
+
readonly type: "function";
|
|
189257
|
+
}, {
|
|
189258
|
+
readonly inputs: readonly [{
|
|
189259
|
+
readonly internalType: "address";
|
|
189260
|
+
readonly name: "_market";
|
|
189261
|
+
readonly type: "address";
|
|
189262
|
+
}, {
|
|
189263
|
+
readonly internalType: "address";
|
|
189264
|
+
readonly name: "_tokenAddr";
|
|
189265
|
+
readonly type: "address";
|
|
189266
|
+
}];
|
|
189267
|
+
readonly name: "getAssetPrice";
|
|
189268
|
+
readonly outputs: readonly [{
|
|
189269
|
+
readonly internalType: "uint256";
|
|
189270
|
+
readonly name: "";
|
|
189271
|
+
readonly type: "uint256";
|
|
189272
|
+
}];
|
|
189273
|
+
readonly stateMutability: "view";
|
|
189274
|
+
readonly type: "function";
|
|
189275
|
+
}, {
|
|
189276
|
+
readonly inputs: readonly [{
|
|
189277
|
+
readonly internalType: "address";
|
|
189278
|
+
readonly name: "_market";
|
|
189279
|
+
readonly type: "address";
|
|
189280
|
+
}];
|
|
189281
|
+
readonly name: "getAssets";
|
|
189282
|
+
readonly outputs: readonly [{
|
|
189283
|
+
readonly components: readonly [{
|
|
189284
|
+
readonly internalType: "uint8";
|
|
189285
|
+
readonly name: "offset";
|
|
189286
|
+
readonly type: "uint8";
|
|
189287
|
+
}, {
|
|
189288
|
+
readonly internalType: "address";
|
|
189289
|
+
readonly name: "asset";
|
|
189290
|
+
readonly type: "address";
|
|
189291
|
+
}, {
|
|
189292
|
+
readonly internalType: "address";
|
|
189293
|
+
readonly name: "priceFeed";
|
|
189294
|
+
readonly type: "address";
|
|
189295
|
+
}, {
|
|
189296
|
+
readonly internalType: "uint64";
|
|
189297
|
+
readonly name: "scale";
|
|
189298
|
+
readonly type: "uint64";
|
|
189299
|
+
}, {
|
|
189300
|
+
readonly internalType: "uint64";
|
|
189301
|
+
readonly name: "borrowCollateralFactor";
|
|
189302
|
+
readonly type: "uint64";
|
|
189303
|
+
}, {
|
|
189304
|
+
readonly internalType: "uint64";
|
|
189305
|
+
readonly name: "liquidateCollateralFactor";
|
|
189306
|
+
readonly type: "uint64";
|
|
189307
|
+
}, {
|
|
189308
|
+
readonly internalType: "uint64";
|
|
189309
|
+
readonly name: "liquidationFactor";
|
|
189310
|
+
readonly type: "uint64";
|
|
189311
|
+
}, {
|
|
189312
|
+
readonly internalType: "uint128";
|
|
189313
|
+
readonly name: "supplyCap";
|
|
189314
|
+
readonly type: "uint128";
|
|
189315
|
+
}];
|
|
189316
|
+
readonly internalType: "struct IComet.AssetInfo[]";
|
|
189317
|
+
readonly name: "assets";
|
|
189318
|
+
readonly type: "tuple[]";
|
|
189319
|
+
}];
|
|
189320
|
+
readonly stateMutability: "view";
|
|
189321
|
+
readonly type: "function";
|
|
189322
|
+
}, {
|
|
189323
|
+
readonly inputs: readonly [{
|
|
189324
|
+
readonly internalType: "address";
|
|
189325
|
+
readonly name: "_market";
|
|
189326
|
+
readonly type: "address";
|
|
189327
|
+
}];
|
|
189328
|
+
readonly name: "getFullBaseTokenInfo";
|
|
189329
|
+
readonly outputs: readonly [{
|
|
189330
|
+
readonly components: readonly [{
|
|
189331
|
+
readonly internalType: "address";
|
|
189332
|
+
readonly name: "tokenAddr";
|
|
189333
|
+
readonly type: "address";
|
|
189334
|
+
}, {
|
|
189335
|
+
readonly internalType: "uint256";
|
|
189336
|
+
readonly name: "price";
|
|
189337
|
+
readonly type: "uint256";
|
|
189338
|
+
}, {
|
|
189339
|
+
readonly internalType: "uint256";
|
|
189340
|
+
readonly name: "supplyIndex";
|
|
189341
|
+
readonly type: "uint256";
|
|
189342
|
+
}, {
|
|
189343
|
+
readonly internalType: "uint256";
|
|
189344
|
+
readonly name: "borrowIndex";
|
|
189345
|
+
readonly type: "uint256";
|
|
189346
|
+
}, {
|
|
189347
|
+
readonly internalType: "uint256";
|
|
189348
|
+
readonly name: "trackingSupplyIndex";
|
|
189349
|
+
readonly type: "uint256";
|
|
189350
|
+
}, {
|
|
189351
|
+
readonly internalType: "uint256";
|
|
189352
|
+
readonly name: "trackingBorrowIndex";
|
|
189353
|
+
readonly type: "uint256";
|
|
189354
|
+
}, {
|
|
189355
|
+
readonly internalType: "uint256";
|
|
189356
|
+
readonly name: "supplyRate";
|
|
189357
|
+
readonly type: "uint256";
|
|
189358
|
+
}, {
|
|
189359
|
+
readonly internalType: "uint256";
|
|
189360
|
+
readonly name: "borrowRate";
|
|
189361
|
+
readonly type: "uint256";
|
|
189362
|
+
}, {
|
|
189363
|
+
readonly internalType: "uint256";
|
|
189364
|
+
readonly name: "totalSupply";
|
|
189365
|
+
readonly type: "uint256";
|
|
189366
|
+
}, {
|
|
189367
|
+
readonly internalType: "uint256";
|
|
189368
|
+
readonly name: "totalBorrow";
|
|
189369
|
+
readonly type: "uint256";
|
|
189370
|
+
}, {
|
|
189371
|
+
readonly internalType: "uint256";
|
|
189372
|
+
readonly name: "utilization";
|
|
189373
|
+
readonly type: "uint256";
|
|
189374
|
+
}, {
|
|
189375
|
+
readonly internalType: "uint256";
|
|
189376
|
+
readonly name: "baseBorrowMin";
|
|
189377
|
+
readonly type: "uint256";
|
|
189378
|
+
}, {
|
|
189379
|
+
readonly internalType: "uint256";
|
|
189380
|
+
readonly name: "baseTrackingBorrowRewardsSpeed";
|
|
189381
|
+
readonly type: "uint256";
|
|
189382
|
+
}, {
|
|
189383
|
+
readonly internalType: "uint256";
|
|
189384
|
+
readonly name: "baseTrackingSupplyRewardsSpeed";
|
|
189385
|
+
readonly type: "uint256";
|
|
189386
|
+
}];
|
|
189387
|
+
readonly internalType: "struct CompV3View.BaseTokenInfoFull";
|
|
189388
|
+
readonly name: "baseToken";
|
|
189389
|
+
readonly type: "tuple";
|
|
189390
|
+
}];
|
|
189391
|
+
readonly stateMutability: "view";
|
|
189392
|
+
readonly type: "function";
|
|
189393
|
+
}, {
|
|
189394
|
+
readonly inputs: readonly [{
|
|
189395
|
+
readonly internalType: "address";
|
|
189396
|
+
readonly name: "_market";
|
|
189397
|
+
readonly type: "address";
|
|
189398
|
+
}, {
|
|
189399
|
+
readonly internalType: "address";
|
|
189400
|
+
readonly name: "_tokenAddr";
|
|
189401
|
+
readonly type: "address";
|
|
189402
|
+
}];
|
|
189403
|
+
readonly name: "getFullCollInfo";
|
|
189404
|
+
readonly outputs: readonly [{
|
|
189405
|
+
readonly components: readonly [{
|
|
189406
|
+
readonly internalType: "address";
|
|
189407
|
+
readonly name: "tokenAddr";
|
|
189408
|
+
readonly type: "address";
|
|
189409
|
+
}, {
|
|
189410
|
+
readonly internalType: "uint256";
|
|
189411
|
+
readonly name: "totalSupply";
|
|
189412
|
+
readonly type: "uint256";
|
|
189413
|
+
}, {
|
|
189414
|
+
readonly internalType: "uint256";
|
|
189415
|
+
readonly name: "supplyReserved";
|
|
189416
|
+
readonly type: "uint256";
|
|
189417
|
+
}, {
|
|
189418
|
+
readonly internalType: "uint256";
|
|
189419
|
+
readonly name: "borrowCollateralFactor";
|
|
189420
|
+
readonly type: "uint256";
|
|
189421
|
+
}, {
|
|
189422
|
+
readonly internalType: "uint256";
|
|
189423
|
+
readonly name: "liquidateCollateralFactor";
|
|
189424
|
+
readonly type: "uint256";
|
|
189425
|
+
}, {
|
|
189426
|
+
readonly internalType: "uint256";
|
|
189427
|
+
readonly name: "liquidationFactor";
|
|
189428
|
+
readonly type: "uint256";
|
|
189429
|
+
}, {
|
|
189430
|
+
readonly internalType: "uint256";
|
|
189431
|
+
readonly name: "price";
|
|
189432
|
+
readonly type: "uint256";
|
|
189433
|
+
}, {
|
|
189434
|
+
readonly internalType: "uint256";
|
|
189435
|
+
readonly name: "supplyCap";
|
|
189436
|
+
readonly type: "uint256";
|
|
189437
|
+
}];
|
|
189438
|
+
readonly internalType: "struct CompV3View.CollateralInfoFull";
|
|
189439
|
+
readonly name: "coll";
|
|
189440
|
+
readonly type: "tuple";
|
|
189441
|
+
}];
|
|
189442
|
+
readonly stateMutability: "nonpayable";
|
|
189443
|
+
readonly type: "function";
|
|
189444
|
+
}, {
|
|
189445
|
+
readonly inputs: readonly [{
|
|
189446
|
+
readonly internalType: "address";
|
|
189447
|
+
readonly name: "_market";
|
|
189448
|
+
readonly type: "address";
|
|
189449
|
+
}];
|
|
189450
|
+
readonly name: "getFullCollInfos";
|
|
189451
|
+
readonly outputs: readonly [{
|
|
189452
|
+
readonly components: readonly [{
|
|
189453
|
+
readonly internalType: "address";
|
|
189454
|
+
readonly name: "tokenAddr";
|
|
189455
|
+
readonly type: "address";
|
|
189456
|
+
}, {
|
|
189457
|
+
readonly internalType: "uint256";
|
|
189458
|
+
readonly name: "totalSupply";
|
|
189459
|
+
readonly type: "uint256";
|
|
189460
|
+
}, {
|
|
189461
|
+
readonly internalType: "uint256";
|
|
189462
|
+
readonly name: "supplyReserved";
|
|
189463
|
+
readonly type: "uint256";
|
|
189464
|
+
}, {
|
|
189465
|
+
readonly internalType: "uint256";
|
|
189466
|
+
readonly name: "borrowCollateralFactor";
|
|
189467
|
+
readonly type: "uint256";
|
|
189468
|
+
}, {
|
|
189469
|
+
readonly internalType: "uint256";
|
|
189470
|
+
readonly name: "liquidateCollateralFactor";
|
|
189471
|
+
readonly type: "uint256";
|
|
189472
|
+
}, {
|
|
189473
|
+
readonly internalType: "uint256";
|
|
189474
|
+
readonly name: "liquidationFactor";
|
|
189475
|
+
readonly type: "uint256";
|
|
189476
|
+
}, {
|
|
189477
|
+
readonly internalType: "uint256";
|
|
189478
|
+
readonly name: "price";
|
|
189479
|
+
readonly type: "uint256";
|
|
189480
|
+
}, {
|
|
189481
|
+
readonly internalType: "uint256";
|
|
189482
|
+
readonly name: "supplyCap";
|
|
189483
|
+
readonly type: "uint256";
|
|
189484
|
+
}];
|
|
189485
|
+
readonly internalType: "struct CompV3View.CollateralInfoFull[]";
|
|
189486
|
+
readonly name: "colls";
|
|
189487
|
+
readonly type: "tuple[]";
|
|
189488
|
+
}];
|
|
189489
|
+
readonly stateMutability: "view";
|
|
189490
|
+
readonly type: "function";
|
|
189491
|
+
}, {
|
|
189492
|
+
readonly inputs: readonly [{
|
|
189493
|
+
readonly internalType: "address";
|
|
189494
|
+
readonly name: "_market";
|
|
189495
|
+
readonly type: "address";
|
|
189496
|
+
}];
|
|
189497
|
+
readonly name: "getGovernanceInfoFull";
|
|
189498
|
+
readonly outputs: readonly [{
|
|
189499
|
+
readonly components: readonly [{
|
|
189500
|
+
readonly internalType: "bool";
|
|
189501
|
+
readonly name: "isSupplyPaused";
|
|
189502
|
+
readonly type: "bool";
|
|
189503
|
+
}, {
|
|
189504
|
+
readonly internalType: "bool";
|
|
189505
|
+
readonly name: "isTransferPaused";
|
|
189506
|
+
readonly type: "bool";
|
|
189507
|
+
}, {
|
|
189508
|
+
readonly internalType: "bool";
|
|
189509
|
+
readonly name: "isWithdrawPaused";
|
|
189510
|
+
readonly type: "bool";
|
|
189511
|
+
}, {
|
|
189512
|
+
readonly internalType: "bool";
|
|
189513
|
+
readonly name: "isAbsorbPaused";
|
|
189514
|
+
readonly type: "bool";
|
|
189515
|
+
}];
|
|
189516
|
+
readonly internalType: "struct CompV3View.GovernanceInfoFull";
|
|
189517
|
+
readonly name: "govInfo";
|
|
189518
|
+
readonly type: "tuple";
|
|
189519
|
+
}];
|
|
189520
|
+
readonly stateMutability: "view";
|
|
189521
|
+
readonly type: "function";
|
|
189522
|
+
}, {
|
|
189523
|
+
readonly inputs: readonly [{
|
|
189524
|
+
readonly internalType: "address";
|
|
189525
|
+
readonly name: "_market";
|
|
189526
|
+
readonly type: "address";
|
|
189527
|
+
}, {
|
|
189528
|
+
readonly internalType: "address";
|
|
189529
|
+
readonly name: "_user";
|
|
189530
|
+
readonly type: "address";
|
|
189531
|
+
}];
|
|
189532
|
+
readonly name: "getLoanData";
|
|
189533
|
+
readonly outputs: readonly [{
|
|
189534
|
+
readonly components: readonly [{
|
|
189535
|
+
readonly internalType: "address";
|
|
189536
|
+
readonly name: "user";
|
|
189537
|
+
readonly type: "address";
|
|
189538
|
+
}, {
|
|
189539
|
+
readonly internalType: "address[]";
|
|
189540
|
+
readonly name: "collAddr";
|
|
189541
|
+
readonly type: "address[]";
|
|
189542
|
+
}, {
|
|
189543
|
+
readonly internalType: "uint256[]";
|
|
189544
|
+
readonly name: "collAmounts";
|
|
189545
|
+
readonly type: "uint256[]";
|
|
189546
|
+
}, {
|
|
189547
|
+
readonly internalType: "uint256";
|
|
189548
|
+
readonly name: "depositAmount";
|
|
189549
|
+
readonly type: "uint256";
|
|
189550
|
+
}, {
|
|
189551
|
+
readonly internalType: "uint256";
|
|
189552
|
+
readonly name: "depositValue";
|
|
189553
|
+
readonly type: "uint256";
|
|
189554
|
+
}, {
|
|
189555
|
+
readonly internalType: "uint256";
|
|
189556
|
+
readonly name: "borrowAmount";
|
|
189557
|
+
readonly type: "uint256";
|
|
189558
|
+
}, {
|
|
189559
|
+
readonly internalType: "uint256";
|
|
189560
|
+
readonly name: "borrowValue";
|
|
189561
|
+
readonly type: "uint256";
|
|
189562
|
+
}, {
|
|
189563
|
+
readonly internalType: "uint256";
|
|
189564
|
+
readonly name: "collValue";
|
|
189565
|
+
readonly type: "uint256";
|
|
189566
|
+
}];
|
|
189567
|
+
readonly internalType: "struct CompV3View.LoanData";
|
|
189568
|
+
readonly name: "data";
|
|
189569
|
+
readonly type: "tuple";
|
|
189570
|
+
}];
|
|
189571
|
+
readonly stateMutability: "view";
|
|
189572
|
+
readonly type: "function";
|
|
189573
|
+
}, {
|
|
189574
|
+
readonly inputs: readonly [{
|
|
189575
|
+
readonly internalType: "address";
|
|
189576
|
+
readonly name: "_market";
|
|
189577
|
+
readonly type: "address";
|
|
189578
|
+
}, {
|
|
189579
|
+
readonly internalType: "address[]";
|
|
189580
|
+
readonly name: "_users";
|
|
189581
|
+
readonly type: "address[]";
|
|
189582
|
+
}];
|
|
189583
|
+
readonly name: "getLoanDataArr";
|
|
189584
|
+
readonly outputs: readonly [{
|
|
189585
|
+
readonly components: readonly [{
|
|
189586
|
+
readonly internalType: "address";
|
|
189587
|
+
readonly name: "user";
|
|
189588
|
+
readonly type: "address";
|
|
189589
|
+
}, {
|
|
189590
|
+
readonly internalType: "address[]";
|
|
189591
|
+
readonly name: "collAddr";
|
|
189592
|
+
readonly type: "address[]";
|
|
189593
|
+
}, {
|
|
189594
|
+
readonly internalType: "uint256[]";
|
|
189595
|
+
readonly name: "collAmounts";
|
|
189596
|
+
readonly type: "uint256[]";
|
|
189597
|
+
}, {
|
|
189598
|
+
readonly internalType: "uint256";
|
|
189599
|
+
readonly name: "depositAmount";
|
|
189600
|
+
readonly type: "uint256";
|
|
189601
|
+
}, {
|
|
189602
|
+
readonly internalType: "uint256";
|
|
189603
|
+
readonly name: "depositValue";
|
|
189604
|
+
readonly type: "uint256";
|
|
189605
|
+
}, {
|
|
189606
|
+
readonly internalType: "uint256";
|
|
189607
|
+
readonly name: "borrowAmount";
|
|
189608
|
+
readonly type: "uint256";
|
|
189609
|
+
}, {
|
|
189610
|
+
readonly internalType: "uint256";
|
|
189611
|
+
readonly name: "borrowValue";
|
|
189612
|
+
readonly type: "uint256";
|
|
189613
|
+
}, {
|
|
189614
|
+
readonly internalType: "uint256";
|
|
189615
|
+
readonly name: "collValue";
|
|
189616
|
+
readonly type: "uint256";
|
|
189617
|
+
}];
|
|
189618
|
+
readonly internalType: "struct CompV3View.LoanData[]";
|
|
189619
|
+
readonly name: "loans";
|
|
189620
|
+
readonly type: "tuple[]";
|
|
189621
|
+
}];
|
|
189622
|
+
readonly stateMutability: "view";
|
|
189623
|
+
readonly type: "function";
|
|
189624
|
+
}, {
|
|
189625
|
+
readonly inputs: readonly [{
|
|
189626
|
+
readonly internalType: "address";
|
|
189627
|
+
readonly name: "_market";
|
|
189628
|
+
readonly type: "address";
|
|
189629
|
+
}, {
|
|
189630
|
+
readonly internalType: "address";
|
|
189631
|
+
readonly name: "_user";
|
|
189632
|
+
readonly type: "address";
|
|
189633
|
+
}];
|
|
189634
|
+
readonly name: "getRewardsOwed";
|
|
189635
|
+
readonly outputs: readonly [{
|
|
189636
|
+
readonly components: readonly [{
|
|
189637
|
+
readonly internalType: "address";
|
|
189638
|
+
readonly name: "token";
|
|
189639
|
+
readonly type: "address";
|
|
189640
|
+
}, {
|
|
189641
|
+
readonly internalType: "uint256";
|
|
189642
|
+
readonly name: "owed";
|
|
189643
|
+
readonly type: "uint256";
|
|
189644
|
+
}];
|
|
189645
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
189646
|
+
readonly name: "rewardsOwed";
|
|
189647
|
+
readonly type: "tuple";
|
|
189648
|
+
}];
|
|
189649
|
+
readonly stateMutability: "nonpayable";
|
|
189650
|
+
readonly type: "function";
|
|
189651
|
+
}, {
|
|
189652
|
+
readonly inputs: readonly [{
|
|
189653
|
+
readonly components: readonly [{
|
|
189654
|
+
readonly internalType: "uint64";
|
|
189655
|
+
readonly name: "baseSupplyIndex";
|
|
189656
|
+
readonly type: "uint64";
|
|
189657
|
+
}, {
|
|
189658
|
+
readonly internalType: "uint64";
|
|
189659
|
+
readonly name: "baseBorrowIndex";
|
|
189660
|
+
readonly type: "uint64";
|
|
189661
|
+
}, {
|
|
189662
|
+
readonly internalType: "uint64";
|
|
189663
|
+
readonly name: "trackingSupplyIndex";
|
|
189664
|
+
readonly type: "uint64";
|
|
189665
|
+
}, {
|
|
189666
|
+
readonly internalType: "uint64";
|
|
189667
|
+
readonly name: "trackingBorrowIndex";
|
|
189668
|
+
readonly type: "uint64";
|
|
189669
|
+
}, {
|
|
189670
|
+
readonly internalType: "uint104";
|
|
189671
|
+
readonly name: "totalSupplyBase";
|
|
189672
|
+
readonly type: "uint104";
|
|
189673
|
+
}, {
|
|
189674
|
+
readonly internalType: "uint104";
|
|
189675
|
+
readonly name: "totalBorrowBase";
|
|
189676
|
+
readonly type: "uint104";
|
|
189677
|
+
}, {
|
|
189678
|
+
readonly internalType: "uint40";
|
|
189679
|
+
readonly name: "lastAccrualTime";
|
|
189680
|
+
readonly type: "uint40";
|
|
189681
|
+
}, {
|
|
189682
|
+
readonly internalType: "uint8";
|
|
189683
|
+
readonly name: "pauseFlags";
|
|
189684
|
+
readonly type: "uint8";
|
|
189685
|
+
}];
|
|
189686
|
+
readonly internalType: "struct IComet.TotalsBasic";
|
|
189687
|
+
readonly name: "totals";
|
|
189688
|
+
readonly type: "tuple";
|
|
189689
|
+
}];
|
|
189690
|
+
readonly name: "getUtilization";
|
|
189691
|
+
readonly outputs: readonly [{
|
|
189692
|
+
readonly internalType: "uint256";
|
|
189693
|
+
readonly name: "";
|
|
189694
|
+
readonly type: "uint256";
|
|
189695
|
+
}];
|
|
189696
|
+
readonly stateMutability: "pure";
|
|
189697
|
+
readonly type: "function";
|
|
189698
|
+
}, {
|
|
189699
|
+
readonly inputs: readonly [{
|
|
189700
|
+
readonly internalType: "address";
|
|
189701
|
+
readonly name: "_market";
|
|
189702
|
+
readonly type: "address";
|
|
189703
|
+
}, {
|
|
189704
|
+
readonly internalType: "address";
|
|
189705
|
+
readonly name: "_owner";
|
|
189706
|
+
readonly type: "address";
|
|
189707
|
+
}, {
|
|
189708
|
+
readonly internalType: "address";
|
|
189709
|
+
readonly name: "_manager";
|
|
189710
|
+
readonly type: "address";
|
|
189711
|
+
}];
|
|
189712
|
+
readonly name: "isAllowed";
|
|
189713
|
+
readonly outputs: readonly [{
|
|
189714
|
+
readonly internalType: "bool";
|
|
189715
|
+
readonly name: "";
|
|
189716
|
+
readonly type: "bool";
|
|
189717
|
+
}];
|
|
189718
|
+
readonly stateMutability: "view";
|
|
189719
|
+
readonly type: "function";
|
|
189720
|
+
}, {
|
|
189721
|
+
readonly inputs: readonly [{
|
|
189722
|
+
readonly internalType: "address";
|
|
189723
|
+
readonly name: "_market";
|
|
189724
|
+
readonly type: "address";
|
|
189725
|
+
}, {
|
|
189726
|
+
readonly internalType: "address";
|
|
189727
|
+
readonly name: "_user";
|
|
189728
|
+
readonly type: "address";
|
|
189729
|
+
}];
|
|
189730
|
+
readonly name: "getRewardsOwed";
|
|
189731
|
+
readonly outputs: readonly [{
|
|
189732
|
+
readonly components: readonly [{
|
|
189733
|
+
readonly internalType: "address";
|
|
189734
|
+
readonly name: "token";
|
|
189735
|
+
readonly type: "address";
|
|
189736
|
+
}, {
|
|
189737
|
+
readonly internalType: "uint256";
|
|
189738
|
+
readonly name: "owed";
|
|
189739
|
+
readonly type: "uint256";
|
|
189740
|
+
}];
|
|
189741
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
189742
|
+
readonly name: "rewardsOwed";
|
|
189743
|
+
readonly type: "tuple";
|
|
189744
|
+
}];
|
|
189745
|
+
readonly stateMutability: "view";
|
|
189746
|
+
readonly type: "function";
|
|
188679
189747
|
}], "getFullCollInfo", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride>, "address" | "args" | "abi" | "functionName">[K]; } : never>(args: readonly [`0x${string}`, `0x${string}`], options: options) => Promise<import("viem").WriteContractReturnType>;
|
|
188680
189748
|
getRewardsOwed: <chainOverride extends import("viem").Chain | undefined, options extends import("viem").UnionOmit<import("viem").WriteContractParameters<readonly [{
|
|
188681
189749
|
readonly inputs: readonly [{
|
|
@@ -189174,6 +190242,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
189174
190242
|
}];
|
|
189175
190243
|
readonly stateMutability: "view";
|
|
189176
190244
|
readonly type: "function";
|
|
190245
|
+
}, {
|
|
190246
|
+
readonly inputs: readonly [{
|
|
190247
|
+
readonly internalType: "address";
|
|
190248
|
+
readonly name: "_market";
|
|
190249
|
+
readonly type: "address";
|
|
190250
|
+
}, {
|
|
190251
|
+
readonly internalType: "address";
|
|
190252
|
+
readonly name: "_user";
|
|
190253
|
+
readonly type: "address";
|
|
190254
|
+
}];
|
|
190255
|
+
readonly name: "getRewardsOwed";
|
|
190256
|
+
readonly outputs: readonly [{
|
|
190257
|
+
readonly components: readonly [{
|
|
190258
|
+
readonly internalType: "address";
|
|
190259
|
+
readonly name: "token";
|
|
190260
|
+
readonly type: "address";
|
|
190261
|
+
}, {
|
|
190262
|
+
readonly internalType: "uint256";
|
|
190263
|
+
readonly name: "owed";
|
|
190264
|
+
readonly type: "uint256";
|
|
190265
|
+
}];
|
|
190266
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
190267
|
+
readonly name: "rewardsOwed";
|
|
190268
|
+
readonly type: "tuple";
|
|
190269
|
+
}];
|
|
190270
|
+
readonly stateMutability: "view";
|
|
190271
|
+
readonly type: "function";
|
|
189177
190272
|
}], "getRewardsOwed", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride>, "address" | "args" | "abi" | "functionName"> extends infer T ? { [K in keyof T]: import("viem").UnionOmit<import("viem").WriteContractParameters<readonly [{
|
|
189178
190273
|
readonly inputs: readonly [{
|
|
189179
190274
|
readonly internalType: "address";
|
|
@@ -189671,6 +190766,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
189671
190766
|
}];
|
|
189672
190767
|
readonly stateMutability: "view";
|
|
189673
190768
|
readonly type: "function";
|
|
190769
|
+
}, {
|
|
190770
|
+
readonly inputs: readonly [{
|
|
190771
|
+
readonly internalType: "address";
|
|
190772
|
+
readonly name: "_market";
|
|
190773
|
+
readonly type: "address";
|
|
190774
|
+
}, {
|
|
190775
|
+
readonly internalType: "address";
|
|
190776
|
+
readonly name: "_user";
|
|
190777
|
+
readonly type: "address";
|
|
190778
|
+
}];
|
|
190779
|
+
readonly name: "getRewardsOwed";
|
|
190780
|
+
readonly outputs: readonly [{
|
|
190781
|
+
readonly components: readonly [{
|
|
190782
|
+
readonly internalType: "address";
|
|
190783
|
+
readonly name: "token";
|
|
190784
|
+
readonly type: "address";
|
|
190785
|
+
}, {
|
|
190786
|
+
readonly internalType: "uint256";
|
|
190787
|
+
readonly name: "owed";
|
|
190788
|
+
readonly type: "uint256";
|
|
190789
|
+
}];
|
|
190790
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
190791
|
+
readonly name: "rewardsOwed";
|
|
190792
|
+
readonly type: "tuple";
|
|
190793
|
+
}];
|
|
190794
|
+
readonly stateMutability: "view";
|
|
190795
|
+
readonly type: "function";
|
|
189674
190796
|
}], "getRewardsOwed", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride>, "address" | "args" | "abi" | "functionName">[K]; } : never>(args: readonly [`0x${string}`, `0x${string}`], options: options) => Promise<import("viem").WriteContractReturnType>;
|
|
189675
190797
|
};
|
|
189676
190798
|
address: `0x${string}`;
|
|
@@ -190171,6 +191293,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
190171
191293
|
}];
|
|
190172
191294
|
readonly stateMutability: "view";
|
|
190173
191295
|
readonly type: "function";
|
|
191296
|
+
}, {
|
|
191297
|
+
readonly inputs: readonly [{
|
|
191298
|
+
readonly internalType: "address";
|
|
191299
|
+
readonly name: "_market";
|
|
191300
|
+
readonly type: "address";
|
|
191301
|
+
}, {
|
|
191302
|
+
readonly internalType: "address";
|
|
191303
|
+
readonly name: "_user";
|
|
191304
|
+
readonly type: "address";
|
|
191305
|
+
}];
|
|
191306
|
+
readonly name: "getRewardsOwed";
|
|
191307
|
+
readonly outputs: readonly [{
|
|
191308
|
+
readonly components: readonly [{
|
|
191309
|
+
readonly internalType: "address";
|
|
191310
|
+
readonly name: "token";
|
|
191311
|
+
readonly type: "address";
|
|
191312
|
+
}, {
|
|
191313
|
+
readonly internalType: "uint256";
|
|
191314
|
+
readonly name: "owed";
|
|
191315
|
+
readonly type: "uint256";
|
|
191316
|
+
}];
|
|
191317
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
191318
|
+
readonly name: "rewardsOwed";
|
|
191319
|
+
readonly type: "tuple";
|
|
191320
|
+
}];
|
|
191321
|
+
readonly stateMutability: "view";
|
|
191322
|
+
readonly type: "function";
|
|
190174
191323
|
}];
|
|
190175
191324
|
};
|
|
190176
191325
|
export declare const SparkViewContractViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
@@ -525987,3 +527136,1858 @@ export declare const FluidViewContractViem: (client: Client, network: NetworkNum
|
|
|
525987
527136
|
readonly type: "function";
|
|
525988
527137
|
}];
|
|
525989
527138
|
};
|
|
527139
|
+
export declare const AaveIncentivesControllerViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
527140
|
+
read: {
|
|
527141
|
+
getRewardsBalance: (args: readonly [readonly `0x${string}`[], `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
527142
|
+
readonly inputs: readonly [{
|
|
527143
|
+
readonly internalType: "address[]";
|
|
527144
|
+
readonly name: "assets";
|
|
527145
|
+
readonly type: "address[]";
|
|
527146
|
+
}, {
|
|
527147
|
+
readonly internalType: "address";
|
|
527148
|
+
readonly name: "user";
|
|
527149
|
+
readonly type: "address";
|
|
527150
|
+
}];
|
|
527151
|
+
readonly name: "getRewardsBalance";
|
|
527152
|
+
readonly outputs: readonly [{
|
|
527153
|
+
readonly internalType: "uint256";
|
|
527154
|
+
readonly name: "";
|
|
527155
|
+
readonly type: "uint256";
|
|
527156
|
+
}];
|
|
527157
|
+
readonly stateMutability: "view";
|
|
527158
|
+
readonly type: "function";
|
|
527159
|
+
}], "getRewardsBalance", readonly [readonly `0x${string}`[], `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
527160
|
+
};
|
|
527161
|
+
address: `0x${string}`;
|
|
527162
|
+
abi: readonly [{
|
|
527163
|
+
readonly inputs: readonly [{
|
|
527164
|
+
readonly internalType: "address[]";
|
|
527165
|
+
readonly name: "assets";
|
|
527166
|
+
readonly type: "address[]";
|
|
527167
|
+
}, {
|
|
527168
|
+
readonly internalType: "address";
|
|
527169
|
+
readonly name: "user";
|
|
527170
|
+
readonly type: "address";
|
|
527171
|
+
}];
|
|
527172
|
+
readonly name: "getRewardsBalance";
|
|
527173
|
+
readonly outputs: readonly [{
|
|
527174
|
+
readonly internalType: "uint256";
|
|
527175
|
+
readonly name: "";
|
|
527176
|
+
readonly type: "uint256";
|
|
527177
|
+
}];
|
|
527178
|
+
readonly stateMutability: "view";
|
|
527179
|
+
readonly type: "function";
|
|
527180
|
+
}];
|
|
527181
|
+
};
|
|
527182
|
+
export declare const AaveUmbrellaViewViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
527183
|
+
read: {
|
|
527184
|
+
getTokensAggregatedData: (args: readonly [`0x${string}`, `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
527185
|
+
readonly inputs: readonly [{
|
|
527186
|
+
readonly internalType: "contract IUmbrella";
|
|
527187
|
+
readonly name: "umbrella";
|
|
527188
|
+
readonly type: "address";
|
|
527189
|
+
}, {
|
|
527190
|
+
readonly internalType: "contract IAaveOracle";
|
|
527191
|
+
readonly name: "aaveOracle";
|
|
527192
|
+
readonly type: "address";
|
|
527193
|
+
}];
|
|
527194
|
+
readonly name: "getTokensAggregatedData";
|
|
527195
|
+
readonly outputs: readonly [{
|
|
527196
|
+
readonly components: readonly [{
|
|
527197
|
+
readonly components: readonly [{
|
|
527198
|
+
readonly internalType: "address";
|
|
527199
|
+
readonly name: "token";
|
|
527200
|
+
readonly type: "address";
|
|
527201
|
+
}, {
|
|
527202
|
+
readonly internalType: "uint256";
|
|
527203
|
+
readonly name: "price";
|
|
527204
|
+
readonly type: "uint256";
|
|
527205
|
+
}, {
|
|
527206
|
+
readonly internalType: "string";
|
|
527207
|
+
readonly name: "name";
|
|
527208
|
+
readonly type: "string";
|
|
527209
|
+
}, {
|
|
527210
|
+
readonly internalType: "string";
|
|
527211
|
+
readonly name: "symbol";
|
|
527212
|
+
readonly type: "string";
|
|
527213
|
+
}, {
|
|
527214
|
+
readonly internalType: "uint8";
|
|
527215
|
+
readonly name: "decimals";
|
|
527216
|
+
readonly type: "uint8";
|
|
527217
|
+
}];
|
|
527218
|
+
readonly internalType: "struct DataAggregationHelper.TokenData";
|
|
527219
|
+
readonly name: "stakeTokenData";
|
|
527220
|
+
readonly type: "tuple";
|
|
527221
|
+
}, {
|
|
527222
|
+
readonly internalType: "uint256";
|
|
527223
|
+
readonly name: "totalAssets";
|
|
527224
|
+
readonly type: "uint256";
|
|
527225
|
+
}, {
|
|
527226
|
+
readonly internalType: "uint256";
|
|
527227
|
+
readonly name: "targetLiquidity";
|
|
527228
|
+
readonly type: "uint256";
|
|
527229
|
+
}, {
|
|
527230
|
+
readonly internalType: "bool";
|
|
527231
|
+
readonly name: "isStakeConfigured";
|
|
527232
|
+
readonly type: "bool";
|
|
527233
|
+
}, {
|
|
527234
|
+
readonly components: readonly [{
|
|
527235
|
+
readonly components: readonly [{
|
|
527236
|
+
readonly internalType: "address";
|
|
527237
|
+
readonly name: "token";
|
|
527238
|
+
readonly type: "address";
|
|
527239
|
+
}, {
|
|
527240
|
+
readonly internalType: "uint256";
|
|
527241
|
+
readonly name: "price";
|
|
527242
|
+
readonly type: "uint256";
|
|
527243
|
+
}, {
|
|
527244
|
+
readonly internalType: "string";
|
|
527245
|
+
readonly name: "name";
|
|
527246
|
+
readonly type: "string";
|
|
527247
|
+
}, {
|
|
527248
|
+
readonly internalType: "string";
|
|
527249
|
+
readonly name: "symbol";
|
|
527250
|
+
readonly type: "string";
|
|
527251
|
+
}, {
|
|
527252
|
+
readonly internalType: "uint8";
|
|
527253
|
+
readonly name: "decimals";
|
|
527254
|
+
readonly type: "uint8";
|
|
527255
|
+
}];
|
|
527256
|
+
readonly internalType: "struct DataAggregationHelper.TokenData";
|
|
527257
|
+
readonly name: "rewardTokenData";
|
|
527258
|
+
readonly type: "tuple";
|
|
527259
|
+
}, {
|
|
527260
|
+
readonly internalType: "uint256";
|
|
527261
|
+
readonly name: "maxEmissionPerSecond";
|
|
527262
|
+
readonly type: "uint256";
|
|
527263
|
+
}, {
|
|
527264
|
+
readonly internalType: "uint256";
|
|
527265
|
+
readonly name: "distributionEnd";
|
|
527266
|
+
readonly type: "uint256";
|
|
527267
|
+
}];
|
|
527268
|
+
readonly internalType: "struct DataAggregationHelper.RewardTokenData[]";
|
|
527269
|
+
readonly name: "rewardsTokenData";
|
|
527270
|
+
readonly type: "tuple[]";
|
|
527271
|
+
}];
|
|
527272
|
+
readonly internalType: "struct DataAggregationHelper.StakeTokenData[]";
|
|
527273
|
+
readonly name: "";
|
|
527274
|
+
readonly type: "tuple[]";
|
|
527275
|
+
}];
|
|
527276
|
+
readonly stateMutability: "view";
|
|
527277
|
+
readonly type: "function";
|
|
527278
|
+
}, {
|
|
527279
|
+
readonly inputs: readonly [{
|
|
527280
|
+
readonly internalType: "contract IUmbrella";
|
|
527281
|
+
readonly name: "umbrella";
|
|
527282
|
+
readonly type: "address";
|
|
527283
|
+
}, {
|
|
527284
|
+
readonly internalType: "address";
|
|
527285
|
+
readonly name: "user";
|
|
527286
|
+
readonly type: "address";
|
|
527287
|
+
}];
|
|
527288
|
+
readonly name: "getUserAggregatedData";
|
|
527289
|
+
readonly outputs: readonly [{
|
|
527290
|
+
readonly components: readonly [{
|
|
527291
|
+
readonly internalType: "address";
|
|
527292
|
+
readonly name: "stakeToken";
|
|
527293
|
+
readonly type: "address";
|
|
527294
|
+
}, {
|
|
527295
|
+
readonly internalType: "uint256";
|
|
527296
|
+
readonly name: "stakeUserBalance";
|
|
527297
|
+
readonly type: "uint256";
|
|
527298
|
+
}, {
|
|
527299
|
+
readonly components: readonly [{
|
|
527300
|
+
readonly internalType: "address";
|
|
527301
|
+
readonly name: "reward";
|
|
527302
|
+
readonly type: "address";
|
|
527303
|
+
}, {
|
|
527304
|
+
readonly internalType: "uint256";
|
|
527305
|
+
readonly name: "currentReward";
|
|
527306
|
+
readonly type: "uint256";
|
|
527307
|
+
}];
|
|
527308
|
+
readonly internalType: "struct DataAggregationHelper.RewardTokenUserData[]";
|
|
527309
|
+
readonly name: "rewardsTokenUserData";
|
|
527310
|
+
readonly type: "tuple[]";
|
|
527311
|
+
}];
|
|
527312
|
+
readonly internalType: "struct DataAggregationHelper.StakeTokenUserData[]";
|
|
527313
|
+
readonly name: "";
|
|
527314
|
+
readonly type: "tuple[]";
|
|
527315
|
+
}];
|
|
527316
|
+
readonly stateMutability: "view";
|
|
527317
|
+
readonly type: "function";
|
|
527318
|
+
}], "getTokensAggregatedData", readonly [`0x${string}`, `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly {
|
|
527319
|
+
stakeTokenData: {
|
|
527320
|
+
token: `0x${string}`;
|
|
527321
|
+
price: bigint;
|
|
527322
|
+
name: string;
|
|
527323
|
+
symbol: string;
|
|
527324
|
+
decimals: number;
|
|
527325
|
+
};
|
|
527326
|
+
totalAssets: bigint;
|
|
527327
|
+
targetLiquidity: bigint;
|
|
527328
|
+
isStakeConfigured: boolean;
|
|
527329
|
+
rewardsTokenData: readonly {
|
|
527330
|
+
rewardTokenData: {
|
|
527331
|
+
token: `0x${string}`;
|
|
527332
|
+
price: bigint;
|
|
527333
|
+
name: string;
|
|
527334
|
+
symbol: string;
|
|
527335
|
+
decimals: number;
|
|
527336
|
+
};
|
|
527337
|
+
maxEmissionPerSecond: bigint;
|
|
527338
|
+
distributionEnd: bigint;
|
|
527339
|
+
}[];
|
|
527340
|
+
}[]>;
|
|
527341
|
+
getUserAggregatedData: (args: readonly [`0x${string}`, `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
527342
|
+
readonly inputs: readonly [{
|
|
527343
|
+
readonly internalType: "contract IUmbrella";
|
|
527344
|
+
readonly name: "umbrella";
|
|
527345
|
+
readonly type: "address";
|
|
527346
|
+
}, {
|
|
527347
|
+
readonly internalType: "contract IAaveOracle";
|
|
527348
|
+
readonly name: "aaveOracle";
|
|
527349
|
+
readonly type: "address";
|
|
527350
|
+
}];
|
|
527351
|
+
readonly name: "getTokensAggregatedData";
|
|
527352
|
+
readonly outputs: readonly [{
|
|
527353
|
+
readonly components: readonly [{
|
|
527354
|
+
readonly components: readonly [{
|
|
527355
|
+
readonly internalType: "address";
|
|
527356
|
+
readonly name: "token";
|
|
527357
|
+
readonly type: "address";
|
|
527358
|
+
}, {
|
|
527359
|
+
readonly internalType: "uint256";
|
|
527360
|
+
readonly name: "price";
|
|
527361
|
+
readonly type: "uint256";
|
|
527362
|
+
}, {
|
|
527363
|
+
readonly internalType: "string";
|
|
527364
|
+
readonly name: "name";
|
|
527365
|
+
readonly type: "string";
|
|
527366
|
+
}, {
|
|
527367
|
+
readonly internalType: "string";
|
|
527368
|
+
readonly name: "symbol";
|
|
527369
|
+
readonly type: "string";
|
|
527370
|
+
}, {
|
|
527371
|
+
readonly internalType: "uint8";
|
|
527372
|
+
readonly name: "decimals";
|
|
527373
|
+
readonly type: "uint8";
|
|
527374
|
+
}];
|
|
527375
|
+
readonly internalType: "struct DataAggregationHelper.TokenData";
|
|
527376
|
+
readonly name: "stakeTokenData";
|
|
527377
|
+
readonly type: "tuple";
|
|
527378
|
+
}, {
|
|
527379
|
+
readonly internalType: "uint256";
|
|
527380
|
+
readonly name: "totalAssets";
|
|
527381
|
+
readonly type: "uint256";
|
|
527382
|
+
}, {
|
|
527383
|
+
readonly internalType: "uint256";
|
|
527384
|
+
readonly name: "targetLiquidity";
|
|
527385
|
+
readonly type: "uint256";
|
|
527386
|
+
}, {
|
|
527387
|
+
readonly internalType: "bool";
|
|
527388
|
+
readonly name: "isStakeConfigured";
|
|
527389
|
+
readonly type: "bool";
|
|
527390
|
+
}, {
|
|
527391
|
+
readonly components: readonly [{
|
|
527392
|
+
readonly components: readonly [{
|
|
527393
|
+
readonly internalType: "address";
|
|
527394
|
+
readonly name: "token";
|
|
527395
|
+
readonly type: "address";
|
|
527396
|
+
}, {
|
|
527397
|
+
readonly internalType: "uint256";
|
|
527398
|
+
readonly name: "price";
|
|
527399
|
+
readonly type: "uint256";
|
|
527400
|
+
}, {
|
|
527401
|
+
readonly internalType: "string";
|
|
527402
|
+
readonly name: "name";
|
|
527403
|
+
readonly type: "string";
|
|
527404
|
+
}, {
|
|
527405
|
+
readonly internalType: "string";
|
|
527406
|
+
readonly name: "symbol";
|
|
527407
|
+
readonly type: "string";
|
|
527408
|
+
}, {
|
|
527409
|
+
readonly internalType: "uint8";
|
|
527410
|
+
readonly name: "decimals";
|
|
527411
|
+
readonly type: "uint8";
|
|
527412
|
+
}];
|
|
527413
|
+
readonly internalType: "struct DataAggregationHelper.TokenData";
|
|
527414
|
+
readonly name: "rewardTokenData";
|
|
527415
|
+
readonly type: "tuple";
|
|
527416
|
+
}, {
|
|
527417
|
+
readonly internalType: "uint256";
|
|
527418
|
+
readonly name: "maxEmissionPerSecond";
|
|
527419
|
+
readonly type: "uint256";
|
|
527420
|
+
}, {
|
|
527421
|
+
readonly internalType: "uint256";
|
|
527422
|
+
readonly name: "distributionEnd";
|
|
527423
|
+
readonly type: "uint256";
|
|
527424
|
+
}];
|
|
527425
|
+
readonly internalType: "struct DataAggregationHelper.RewardTokenData[]";
|
|
527426
|
+
readonly name: "rewardsTokenData";
|
|
527427
|
+
readonly type: "tuple[]";
|
|
527428
|
+
}];
|
|
527429
|
+
readonly internalType: "struct DataAggregationHelper.StakeTokenData[]";
|
|
527430
|
+
readonly name: "";
|
|
527431
|
+
readonly type: "tuple[]";
|
|
527432
|
+
}];
|
|
527433
|
+
readonly stateMutability: "view";
|
|
527434
|
+
readonly type: "function";
|
|
527435
|
+
}, {
|
|
527436
|
+
readonly inputs: readonly [{
|
|
527437
|
+
readonly internalType: "contract IUmbrella";
|
|
527438
|
+
readonly name: "umbrella";
|
|
527439
|
+
readonly type: "address";
|
|
527440
|
+
}, {
|
|
527441
|
+
readonly internalType: "address";
|
|
527442
|
+
readonly name: "user";
|
|
527443
|
+
readonly type: "address";
|
|
527444
|
+
}];
|
|
527445
|
+
readonly name: "getUserAggregatedData";
|
|
527446
|
+
readonly outputs: readonly [{
|
|
527447
|
+
readonly components: readonly [{
|
|
527448
|
+
readonly internalType: "address";
|
|
527449
|
+
readonly name: "stakeToken";
|
|
527450
|
+
readonly type: "address";
|
|
527451
|
+
}, {
|
|
527452
|
+
readonly internalType: "uint256";
|
|
527453
|
+
readonly name: "stakeUserBalance";
|
|
527454
|
+
readonly type: "uint256";
|
|
527455
|
+
}, {
|
|
527456
|
+
readonly components: readonly [{
|
|
527457
|
+
readonly internalType: "address";
|
|
527458
|
+
readonly name: "reward";
|
|
527459
|
+
readonly type: "address";
|
|
527460
|
+
}, {
|
|
527461
|
+
readonly internalType: "uint256";
|
|
527462
|
+
readonly name: "currentReward";
|
|
527463
|
+
readonly type: "uint256";
|
|
527464
|
+
}];
|
|
527465
|
+
readonly internalType: "struct DataAggregationHelper.RewardTokenUserData[]";
|
|
527466
|
+
readonly name: "rewardsTokenUserData";
|
|
527467
|
+
readonly type: "tuple[]";
|
|
527468
|
+
}];
|
|
527469
|
+
readonly internalType: "struct DataAggregationHelper.StakeTokenUserData[]";
|
|
527470
|
+
readonly name: "";
|
|
527471
|
+
readonly type: "tuple[]";
|
|
527472
|
+
}];
|
|
527473
|
+
readonly stateMutability: "view";
|
|
527474
|
+
readonly type: "function";
|
|
527475
|
+
}], "getUserAggregatedData", readonly [`0x${string}`, `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly {
|
|
527476
|
+
stakeToken: `0x${string}`;
|
|
527477
|
+
stakeUserBalance: bigint;
|
|
527478
|
+
rewardsTokenUserData: readonly {
|
|
527479
|
+
reward: `0x${string}`;
|
|
527480
|
+
currentReward: bigint;
|
|
527481
|
+
}[];
|
|
527482
|
+
}[]>;
|
|
527483
|
+
};
|
|
527484
|
+
address: `0x${string}`;
|
|
527485
|
+
abi: readonly [{
|
|
527486
|
+
readonly inputs: readonly [{
|
|
527487
|
+
readonly internalType: "contract IUmbrella";
|
|
527488
|
+
readonly name: "umbrella";
|
|
527489
|
+
readonly type: "address";
|
|
527490
|
+
}, {
|
|
527491
|
+
readonly internalType: "contract IAaveOracle";
|
|
527492
|
+
readonly name: "aaveOracle";
|
|
527493
|
+
readonly type: "address";
|
|
527494
|
+
}];
|
|
527495
|
+
readonly name: "getTokensAggregatedData";
|
|
527496
|
+
readonly outputs: readonly [{
|
|
527497
|
+
readonly components: readonly [{
|
|
527498
|
+
readonly components: readonly [{
|
|
527499
|
+
readonly internalType: "address";
|
|
527500
|
+
readonly name: "token";
|
|
527501
|
+
readonly type: "address";
|
|
527502
|
+
}, {
|
|
527503
|
+
readonly internalType: "uint256";
|
|
527504
|
+
readonly name: "price";
|
|
527505
|
+
readonly type: "uint256";
|
|
527506
|
+
}, {
|
|
527507
|
+
readonly internalType: "string";
|
|
527508
|
+
readonly name: "name";
|
|
527509
|
+
readonly type: "string";
|
|
527510
|
+
}, {
|
|
527511
|
+
readonly internalType: "string";
|
|
527512
|
+
readonly name: "symbol";
|
|
527513
|
+
readonly type: "string";
|
|
527514
|
+
}, {
|
|
527515
|
+
readonly internalType: "uint8";
|
|
527516
|
+
readonly name: "decimals";
|
|
527517
|
+
readonly type: "uint8";
|
|
527518
|
+
}];
|
|
527519
|
+
readonly internalType: "struct DataAggregationHelper.TokenData";
|
|
527520
|
+
readonly name: "stakeTokenData";
|
|
527521
|
+
readonly type: "tuple";
|
|
527522
|
+
}, {
|
|
527523
|
+
readonly internalType: "uint256";
|
|
527524
|
+
readonly name: "totalAssets";
|
|
527525
|
+
readonly type: "uint256";
|
|
527526
|
+
}, {
|
|
527527
|
+
readonly internalType: "uint256";
|
|
527528
|
+
readonly name: "targetLiquidity";
|
|
527529
|
+
readonly type: "uint256";
|
|
527530
|
+
}, {
|
|
527531
|
+
readonly internalType: "bool";
|
|
527532
|
+
readonly name: "isStakeConfigured";
|
|
527533
|
+
readonly type: "bool";
|
|
527534
|
+
}, {
|
|
527535
|
+
readonly components: readonly [{
|
|
527536
|
+
readonly components: readonly [{
|
|
527537
|
+
readonly internalType: "address";
|
|
527538
|
+
readonly name: "token";
|
|
527539
|
+
readonly type: "address";
|
|
527540
|
+
}, {
|
|
527541
|
+
readonly internalType: "uint256";
|
|
527542
|
+
readonly name: "price";
|
|
527543
|
+
readonly type: "uint256";
|
|
527544
|
+
}, {
|
|
527545
|
+
readonly internalType: "string";
|
|
527546
|
+
readonly name: "name";
|
|
527547
|
+
readonly type: "string";
|
|
527548
|
+
}, {
|
|
527549
|
+
readonly internalType: "string";
|
|
527550
|
+
readonly name: "symbol";
|
|
527551
|
+
readonly type: "string";
|
|
527552
|
+
}, {
|
|
527553
|
+
readonly internalType: "uint8";
|
|
527554
|
+
readonly name: "decimals";
|
|
527555
|
+
readonly type: "uint8";
|
|
527556
|
+
}];
|
|
527557
|
+
readonly internalType: "struct DataAggregationHelper.TokenData";
|
|
527558
|
+
readonly name: "rewardTokenData";
|
|
527559
|
+
readonly type: "tuple";
|
|
527560
|
+
}, {
|
|
527561
|
+
readonly internalType: "uint256";
|
|
527562
|
+
readonly name: "maxEmissionPerSecond";
|
|
527563
|
+
readonly type: "uint256";
|
|
527564
|
+
}, {
|
|
527565
|
+
readonly internalType: "uint256";
|
|
527566
|
+
readonly name: "distributionEnd";
|
|
527567
|
+
readonly type: "uint256";
|
|
527568
|
+
}];
|
|
527569
|
+
readonly internalType: "struct DataAggregationHelper.RewardTokenData[]";
|
|
527570
|
+
readonly name: "rewardsTokenData";
|
|
527571
|
+
readonly type: "tuple[]";
|
|
527572
|
+
}];
|
|
527573
|
+
readonly internalType: "struct DataAggregationHelper.StakeTokenData[]";
|
|
527574
|
+
readonly name: "";
|
|
527575
|
+
readonly type: "tuple[]";
|
|
527576
|
+
}];
|
|
527577
|
+
readonly stateMutability: "view";
|
|
527578
|
+
readonly type: "function";
|
|
527579
|
+
}, {
|
|
527580
|
+
readonly inputs: readonly [{
|
|
527581
|
+
readonly internalType: "contract IUmbrella";
|
|
527582
|
+
readonly name: "umbrella";
|
|
527583
|
+
readonly type: "address";
|
|
527584
|
+
}, {
|
|
527585
|
+
readonly internalType: "address";
|
|
527586
|
+
readonly name: "user";
|
|
527587
|
+
readonly type: "address";
|
|
527588
|
+
}];
|
|
527589
|
+
readonly name: "getUserAggregatedData";
|
|
527590
|
+
readonly outputs: readonly [{
|
|
527591
|
+
readonly components: readonly [{
|
|
527592
|
+
readonly internalType: "address";
|
|
527593
|
+
readonly name: "stakeToken";
|
|
527594
|
+
readonly type: "address";
|
|
527595
|
+
}, {
|
|
527596
|
+
readonly internalType: "uint256";
|
|
527597
|
+
readonly name: "stakeUserBalance";
|
|
527598
|
+
readonly type: "uint256";
|
|
527599
|
+
}, {
|
|
527600
|
+
readonly components: readonly [{
|
|
527601
|
+
readonly internalType: "address";
|
|
527602
|
+
readonly name: "reward";
|
|
527603
|
+
readonly type: "address";
|
|
527604
|
+
}, {
|
|
527605
|
+
readonly internalType: "uint256";
|
|
527606
|
+
readonly name: "currentReward";
|
|
527607
|
+
readonly type: "uint256";
|
|
527608
|
+
}];
|
|
527609
|
+
readonly internalType: "struct DataAggregationHelper.RewardTokenUserData[]";
|
|
527610
|
+
readonly name: "rewardsTokenUserData";
|
|
527611
|
+
readonly type: "tuple[]";
|
|
527612
|
+
}];
|
|
527613
|
+
readonly internalType: "struct DataAggregationHelper.StakeTokenUserData[]";
|
|
527614
|
+
readonly name: "";
|
|
527615
|
+
readonly type: "tuple[]";
|
|
527616
|
+
}];
|
|
527617
|
+
readonly stateMutability: "view";
|
|
527618
|
+
readonly type: "function";
|
|
527619
|
+
}];
|
|
527620
|
+
};
|
|
527621
|
+
export declare const LiquityLQTYStakingViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
527622
|
+
read: {
|
|
527623
|
+
[x: string]: (...parameters: [options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<{
|
|
527624
|
+
inputs: {
|
|
527625
|
+
internalType: string;
|
|
527626
|
+
name: string;
|
|
527627
|
+
type: string;
|
|
527628
|
+
}[];
|
|
527629
|
+
name: string;
|
|
527630
|
+
outputs: {
|
|
527631
|
+
internalType: string;
|
|
527632
|
+
name: string;
|
|
527633
|
+
type: string;
|
|
527634
|
+
}[];
|
|
527635
|
+
stateMutability: string;
|
|
527636
|
+
type: string;
|
|
527637
|
+
}[], string, readonly unknown[]>, "address" | "args" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<{
|
|
527638
|
+
inputs: {
|
|
527639
|
+
internalType: string;
|
|
527640
|
+
name: string;
|
|
527641
|
+
type: string;
|
|
527642
|
+
}[];
|
|
527643
|
+
name: string;
|
|
527644
|
+
outputs: {
|
|
527645
|
+
internalType: string;
|
|
527646
|
+
name: string;
|
|
527647
|
+
type: string;
|
|
527648
|
+
}[];
|
|
527649
|
+
stateMutability: string;
|
|
527650
|
+
type: string;
|
|
527651
|
+
}[], string, readonly unknown[]>, "address" | "args" | "abi" | "functionName">> | undefined]) => Promise<import("viem").ReadContractReturnType>;
|
|
527652
|
+
};
|
|
527653
|
+
estimateGas: {
|
|
527654
|
+
[x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
527655
|
+
inputs: {
|
|
527656
|
+
internalType: string;
|
|
527657
|
+
name: string;
|
|
527658
|
+
type: string;
|
|
527659
|
+
}[];
|
|
527660
|
+
name: string;
|
|
527661
|
+
outputs: {
|
|
527662
|
+
internalType: string;
|
|
527663
|
+
name: string;
|
|
527664
|
+
type: string;
|
|
527665
|
+
}[];
|
|
527666
|
+
stateMutability: string;
|
|
527667
|
+
type: string;
|
|
527668
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>] | [args: readonly unknown[], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
527669
|
+
inputs: {
|
|
527670
|
+
internalType: string;
|
|
527671
|
+
name: string;
|
|
527672
|
+
type: string;
|
|
527673
|
+
}[];
|
|
527674
|
+
name: string;
|
|
527675
|
+
outputs: {
|
|
527676
|
+
internalType: string;
|
|
527677
|
+
name: string;
|
|
527678
|
+
type: string;
|
|
527679
|
+
}[];
|
|
527680
|
+
stateMutability: string;
|
|
527681
|
+
type: string;
|
|
527682
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>]) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
527683
|
+
} & {
|
|
527684
|
+
[x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
527685
|
+
inputs: {
|
|
527686
|
+
internalType: string;
|
|
527687
|
+
name: string;
|
|
527688
|
+
type: string;
|
|
527689
|
+
}[];
|
|
527690
|
+
name: string;
|
|
527691
|
+
outputs: {
|
|
527692
|
+
internalType: string;
|
|
527693
|
+
name: string;
|
|
527694
|
+
type: string;
|
|
527695
|
+
}[];
|
|
527696
|
+
stateMutability: string;
|
|
527697
|
+
type: string;
|
|
527698
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>] | [args: readonly unknown[], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
527699
|
+
inputs: {
|
|
527700
|
+
internalType: string;
|
|
527701
|
+
name: string;
|
|
527702
|
+
type: string;
|
|
527703
|
+
}[];
|
|
527704
|
+
name: string;
|
|
527705
|
+
outputs: {
|
|
527706
|
+
internalType: string;
|
|
527707
|
+
name: string;
|
|
527708
|
+
type: string;
|
|
527709
|
+
}[];
|
|
527710
|
+
stateMutability: string;
|
|
527711
|
+
type: string;
|
|
527712
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>]) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
527713
|
+
};
|
|
527714
|
+
simulate: {
|
|
527715
|
+
[x: string]: <chainOverride extends import("viem").Chain | undefined = undefined, accountOverride extends import("viem").Account | import("viem").Address | undefined = undefined>(...parameters: [options?: Omit<import("viem").SimulateContractParameters<{
|
|
527716
|
+
inputs: {
|
|
527717
|
+
internalType: string;
|
|
527718
|
+
name: string;
|
|
527719
|
+
type: string;
|
|
527720
|
+
}[];
|
|
527721
|
+
name: string;
|
|
527722
|
+
outputs: {
|
|
527723
|
+
internalType: string;
|
|
527724
|
+
name: string;
|
|
527725
|
+
type: string;
|
|
527726
|
+
}[];
|
|
527727
|
+
stateMutability: string;
|
|
527728
|
+
type: string;
|
|
527729
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "args" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<import("viem").SimulateContractParameters<{
|
|
527730
|
+
inputs: {
|
|
527731
|
+
internalType: string;
|
|
527732
|
+
name: string;
|
|
527733
|
+
type: string;
|
|
527734
|
+
}[];
|
|
527735
|
+
name: string;
|
|
527736
|
+
outputs: {
|
|
527737
|
+
internalType: string;
|
|
527738
|
+
name: string;
|
|
527739
|
+
type: string;
|
|
527740
|
+
}[];
|
|
527741
|
+
stateMutability: string;
|
|
527742
|
+
type: string;
|
|
527743
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "args" | "abi" | "functionName"> | undefined]) => Promise<import("viem").SimulateContractReturnType>;
|
|
527744
|
+
};
|
|
527745
|
+
createEventFilter: {
|
|
527746
|
+
[x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
|
|
527747
|
+
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527748
|
+
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527749
|
+
} & {
|
|
527750
|
+
strict?: strict | undefined;
|
|
527751
|
+
}) | undefined] | [args: readonly unknown[] | {
|
|
527752
|
+
[x: string]: unknown;
|
|
527753
|
+
address?: undefined;
|
|
527754
|
+
abi?: undefined;
|
|
527755
|
+
eventName?: undefined;
|
|
527756
|
+
fromBlock?: undefined;
|
|
527757
|
+
strict?: undefined;
|
|
527758
|
+
toBlock?: undefined;
|
|
527759
|
+
args?: undefined;
|
|
527760
|
+
}, options?: ({
|
|
527761
|
+
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527762
|
+
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527763
|
+
} & {
|
|
527764
|
+
strict?: strict | undefined;
|
|
527765
|
+
}) | undefined]) => Promise<import("viem").CreateContractEventFilterReturnType>;
|
|
527766
|
+
};
|
|
527767
|
+
getEvents: {
|
|
527768
|
+
[x: string]: (...parameters: [options?: {
|
|
527769
|
+
strict?: boolean | undefined;
|
|
527770
|
+
blockHash?: `0x${string}` | undefined;
|
|
527771
|
+
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527772
|
+
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527773
|
+
} | undefined] | [args?: readonly unknown[] | {
|
|
527774
|
+
[x: string]: unknown;
|
|
527775
|
+
address?: undefined;
|
|
527776
|
+
abi?: undefined;
|
|
527777
|
+
args?: undefined;
|
|
527778
|
+
eventName?: undefined;
|
|
527779
|
+
fromBlock?: undefined;
|
|
527780
|
+
onError?: undefined;
|
|
527781
|
+
onLogs?: undefined;
|
|
527782
|
+
strict?: undefined;
|
|
527783
|
+
poll?: undefined;
|
|
527784
|
+
batch?: undefined;
|
|
527785
|
+
pollingInterval?: undefined;
|
|
527786
|
+
} | undefined, options?: {
|
|
527787
|
+
strict?: boolean | undefined;
|
|
527788
|
+
blockHash?: `0x${string}` | undefined;
|
|
527789
|
+
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527790
|
+
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527791
|
+
} | undefined]) => Promise<import("viem").GetContractEventsReturnType<{
|
|
527792
|
+
inputs: {
|
|
527793
|
+
internalType: string;
|
|
527794
|
+
name: string;
|
|
527795
|
+
type: string;
|
|
527796
|
+
}[];
|
|
527797
|
+
name: string;
|
|
527798
|
+
outputs: {
|
|
527799
|
+
internalType: string;
|
|
527800
|
+
name: string;
|
|
527801
|
+
type: string;
|
|
527802
|
+
}[];
|
|
527803
|
+
stateMutability: string;
|
|
527804
|
+
type: string;
|
|
527805
|
+
}[], string>>;
|
|
527806
|
+
};
|
|
527807
|
+
watchEvent: {
|
|
527808
|
+
[x: string]: (...parameters: [options?: {
|
|
527809
|
+
batch?: boolean | undefined | undefined;
|
|
527810
|
+
pollingInterval?: number | undefined | undefined;
|
|
527811
|
+
strict?: boolean | undefined;
|
|
527812
|
+
onError?: ((error: Error) => void) | undefined | undefined;
|
|
527813
|
+
fromBlock?: bigint | undefined;
|
|
527814
|
+
onLogs: import("viem").WatchContractEventOnLogsFn<{
|
|
527815
|
+
inputs: {
|
|
527816
|
+
internalType: string;
|
|
527817
|
+
name: string;
|
|
527818
|
+
type: string;
|
|
527819
|
+
}[];
|
|
527820
|
+
name: string;
|
|
527821
|
+
outputs: {
|
|
527822
|
+
internalType: string;
|
|
527823
|
+
name: string;
|
|
527824
|
+
type: string;
|
|
527825
|
+
}[];
|
|
527826
|
+
stateMutability: string;
|
|
527827
|
+
type: string;
|
|
527828
|
+
}[], string, undefined>;
|
|
527829
|
+
poll?: true | undefined | undefined;
|
|
527830
|
+
} | undefined] | [args: readonly unknown[] | {
|
|
527831
|
+
[x: string]: unknown;
|
|
527832
|
+
address?: undefined;
|
|
527833
|
+
abi?: undefined;
|
|
527834
|
+
args?: undefined;
|
|
527835
|
+
eventName?: undefined;
|
|
527836
|
+
fromBlock?: undefined;
|
|
527837
|
+
onError?: undefined;
|
|
527838
|
+
onLogs?: undefined;
|
|
527839
|
+
strict?: undefined;
|
|
527840
|
+
poll?: undefined;
|
|
527841
|
+
batch?: undefined;
|
|
527842
|
+
pollingInterval?: undefined;
|
|
527843
|
+
}, options?: {
|
|
527844
|
+
batch?: boolean | undefined | undefined;
|
|
527845
|
+
pollingInterval?: number | undefined | undefined;
|
|
527846
|
+
strict?: boolean | undefined;
|
|
527847
|
+
onError?: ((error: Error) => void) | undefined | undefined;
|
|
527848
|
+
fromBlock?: bigint | undefined;
|
|
527849
|
+
onLogs: import("viem").WatchContractEventOnLogsFn<{
|
|
527850
|
+
inputs: {
|
|
527851
|
+
internalType: string;
|
|
527852
|
+
name: string;
|
|
527853
|
+
type: string;
|
|
527854
|
+
}[];
|
|
527855
|
+
name: string;
|
|
527856
|
+
outputs: {
|
|
527857
|
+
internalType: string;
|
|
527858
|
+
name: string;
|
|
527859
|
+
type: string;
|
|
527860
|
+
}[];
|
|
527861
|
+
stateMutability: string;
|
|
527862
|
+
type: string;
|
|
527863
|
+
}[], string, undefined>;
|
|
527864
|
+
poll?: true | undefined | undefined;
|
|
527865
|
+
} | undefined]) => import("viem").WatchContractEventReturnType;
|
|
527866
|
+
};
|
|
527867
|
+
write: {
|
|
527868
|
+
[x: string]: <chainOverride extends import("viem").Chain | undefined, options extends import("viem").UnionOmit<import("viem").WriteContractParameters<{
|
|
527869
|
+
inputs: {
|
|
527870
|
+
internalType: string;
|
|
527871
|
+
name: string;
|
|
527872
|
+
type: string;
|
|
527873
|
+
}[];
|
|
527874
|
+
name: string;
|
|
527875
|
+
outputs: {
|
|
527876
|
+
internalType: string;
|
|
527877
|
+
name: string;
|
|
527878
|
+
type: string;
|
|
527879
|
+
}[];
|
|
527880
|
+
stateMutability: string;
|
|
527881
|
+
type: string;
|
|
527882
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride>, "address" | "args" | "abi" | "functionName"> extends infer T ? { [K in keyof T]: import("viem").UnionOmit<import("viem").WriteContractParameters<{
|
|
527883
|
+
inputs: {
|
|
527884
|
+
internalType: string;
|
|
527885
|
+
name: string;
|
|
527886
|
+
type: string;
|
|
527887
|
+
}[];
|
|
527888
|
+
name: string;
|
|
527889
|
+
outputs: {
|
|
527890
|
+
internalType: string;
|
|
527891
|
+
name: string;
|
|
527892
|
+
type: string;
|
|
527893
|
+
}[];
|
|
527894
|
+
stateMutability: string;
|
|
527895
|
+
type: string;
|
|
527896
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride>, "address" | "args" | "abi" | "functionName">[K]; } : never, Rest extends unknown[] = [options: options]>(...parameters: Rest | [args: readonly unknown[], ...parameters: Rest]) => Promise<import("viem").WriteContractReturnType>;
|
|
527897
|
+
};
|
|
527898
|
+
address: `0x${string}`;
|
|
527899
|
+
abi: {
|
|
527900
|
+
inputs: {
|
|
527901
|
+
internalType: string;
|
|
527902
|
+
name: string;
|
|
527903
|
+
type: string;
|
|
527904
|
+
}[];
|
|
527905
|
+
name: string;
|
|
527906
|
+
outputs: {
|
|
527907
|
+
internalType: string;
|
|
527908
|
+
name: string;
|
|
527909
|
+
type: string;
|
|
527910
|
+
}[];
|
|
527911
|
+
stateMutability: string;
|
|
527912
|
+
type: string;
|
|
527913
|
+
}[];
|
|
527914
|
+
};
|
|
527915
|
+
export declare const LiquityStabilityPoolViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
527916
|
+
read: {
|
|
527917
|
+
[x: string]: (...parameters: [options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<{
|
|
527918
|
+
inputs: {
|
|
527919
|
+
internalType: string;
|
|
527920
|
+
name: string;
|
|
527921
|
+
type: string;
|
|
527922
|
+
}[];
|
|
527923
|
+
name: string;
|
|
527924
|
+
outputs: {
|
|
527925
|
+
internalType: string;
|
|
527926
|
+
name: string;
|
|
527927
|
+
type: string;
|
|
527928
|
+
}[];
|
|
527929
|
+
stateMutability: string;
|
|
527930
|
+
type: string;
|
|
527931
|
+
}[], string, readonly unknown[]>, "address" | "args" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<{
|
|
527932
|
+
inputs: {
|
|
527933
|
+
internalType: string;
|
|
527934
|
+
name: string;
|
|
527935
|
+
type: string;
|
|
527936
|
+
}[];
|
|
527937
|
+
name: string;
|
|
527938
|
+
outputs: {
|
|
527939
|
+
internalType: string;
|
|
527940
|
+
name: string;
|
|
527941
|
+
type: string;
|
|
527942
|
+
}[];
|
|
527943
|
+
stateMutability: string;
|
|
527944
|
+
type: string;
|
|
527945
|
+
}[], string, readonly unknown[]>, "address" | "args" | "abi" | "functionName">> | undefined]) => Promise<import("viem").ReadContractReturnType>;
|
|
527946
|
+
};
|
|
527947
|
+
estimateGas: {
|
|
527948
|
+
[x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
527949
|
+
inputs: {
|
|
527950
|
+
internalType: string;
|
|
527951
|
+
name: string;
|
|
527952
|
+
type: string;
|
|
527953
|
+
}[];
|
|
527954
|
+
name: string;
|
|
527955
|
+
outputs: {
|
|
527956
|
+
internalType: string;
|
|
527957
|
+
name: string;
|
|
527958
|
+
type: string;
|
|
527959
|
+
}[];
|
|
527960
|
+
stateMutability: string;
|
|
527961
|
+
type: string;
|
|
527962
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>] | [args: readonly unknown[], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
527963
|
+
inputs: {
|
|
527964
|
+
internalType: string;
|
|
527965
|
+
name: string;
|
|
527966
|
+
type: string;
|
|
527967
|
+
}[];
|
|
527968
|
+
name: string;
|
|
527969
|
+
outputs: {
|
|
527970
|
+
internalType: string;
|
|
527971
|
+
name: string;
|
|
527972
|
+
type: string;
|
|
527973
|
+
}[];
|
|
527974
|
+
stateMutability: string;
|
|
527975
|
+
type: string;
|
|
527976
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>]) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
527977
|
+
} & {
|
|
527978
|
+
[x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
527979
|
+
inputs: {
|
|
527980
|
+
internalType: string;
|
|
527981
|
+
name: string;
|
|
527982
|
+
type: string;
|
|
527983
|
+
}[];
|
|
527984
|
+
name: string;
|
|
527985
|
+
outputs: {
|
|
527986
|
+
internalType: string;
|
|
527987
|
+
name: string;
|
|
527988
|
+
type: string;
|
|
527989
|
+
}[];
|
|
527990
|
+
stateMutability: string;
|
|
527991
|
+
type: string;
|
|
527992
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>] | [args: readonly unknown[], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
527993
|
+
inputs: {
|
|
527994
|
+
internalType: string;
|
|
527995
|
+
name: string;
|
|
527996
|
+
type: string;
|
|
527997
|
+
}[];
|
|
527998
|
+
name: string;
|
|
527999
|
+
outputs: {
|
|
528000
|
+
internalType: string;
|
|
528001
|
+
name: string;
|
|
528002
|
+
type: string;
|
|
528003
|
+
}[];
|
|
528004
|
+
stateMutability: string;
|
|
528005
|
+
type: string;
|
|
528006
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>]) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
528007
|
+
};
|
|
528008
|
+
simulate: {
|
|
528009
|
+
[x: string]: <chainOverride extends import("viem").Chain | undefined = undefined, accountOverride extends import("viem").Account | import("viem").Address | undefined = undefined>(...parameters: [options?: Omit<import("viem").SimulateContractParameters<{
|
|
528010
|
+
inputs: {
|
|
528011
|
+
internalType: string;
|
|
528012
|
+
name: string;
|
|
528013
|
+
type: string;
|
|
528014
|
+
}[];
|
|
528015
|
+
name: string;
|
|
528016
|
+
outputs: {
|
|
528017
|
+
internalType: string;
|
|
528018
|
+
name: string;
|
|
528019
|
+
type: string;
|
|
528020
|
+
}[];
|
|
528021
|
+
stateMutability: string;
|
|
528022
|
+
type: string;
|
|
528023
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "args" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<import("viem").SimulateContractParameters<{
|
|
528024
|
+
inputs: {
|
|
528025
|
+
internalType: string;
|
|
528026
|
+
name: string;
|
|
528027
|
+
type: string;
|
|
528028
|
+
}[];
|
|
528029
|
+
name: string;
|
|
528030
|
+
outputs: {
|
|
528031
|
+
internalType: string;
|
|
528032
|
+
name: string;
|
|
528033
|
+
type: string;
|
|
528034
|
+
}[];
|
|
528035
|
+
stateMutability: string;
|
|
528036
|
+
type: string;
|
|
528037
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "args" | "abi" | "functionName"> | undefined]) => Promise<import("viem").SimulateContractReturnType>;
|
|
528038
|
+
};
|
|
528039
|
+
createEventFilter: {
|
|
528040
|
+
[x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
|
|
528041
|
+
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
528042
|
+
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
528043
|
+
} & {
|
|
528044
|
+
strict?: strict | undefined;
|
|
528045
|
+
}) | undefined] | [args: readonly unknown[] | {
|
|
528046
|
+
[x: string]: unknown;
|
|
528047
|
+
address?: undefined;
|
|
528048
|
+
abi?: undefined;
|
|
528049
|
+
eventName?: undefined;
|
|
528050
|
+
fromBlock?: undefined;
|
|
528051
|
+
strict?: undefined;
|
|
528052
|
+
toBlock?: undefined;
|
|
528053
|
+
args?: undefined;
|
|
528054
|
+
}, options?: ({
|
|
528055
|
+
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
528056
|
+
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
528057
|
+
} & {
|
|
528058
|
+
strict?: strict | undefined;
|
|
528059
|
+
}) | undefined]) => Promise<import("viem").CreateContractEventFilterReturnType>;
|
|
528060
|
+
};
|
|
528061
|
+
getEvents: {
|
|
528062
|
+
[x: string]: (...parameters: [options?: {
|
|
528063
|
+
strict?: boolean | undefined;
|
|
528064
|
+
blockHash?: `0x${string}` | undefined;
|
|
528065
|
+
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
528066
|
+
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
528067
|
+
} | undefined] | [args?: readonly unknown[] | {
|
|
528068
|
+
[x: string]: unknown;
|
|
528069
|
+
address?: undefined;
|
|
528070
|
+
abi?: undefined;
|
|
528071
|
+
args?: undefined;
|
|
528072
|
+
eventName?: undefined;
|
|
528073
|
+
fromBlock?: undefined;
|
|
528074
|
+
onError?: undefined;
|
|
528075
|
+
onLogs?: undefined;
|
|
528076
|
+
strict?: undefined;
|
|
528077
|
+
poll?: undefined;
|
|
528078
|
+
batch?: undefined;
|
|
528079
|
+
pollingInterval?: undefined;
|
|
528080
|
+
} | undefined, options?: {
|
|
528081
|
+
strict?: boolean | undefined;
|
|
528082
|
+
blockHash?: `0x${string}` | undefined;
|
|
528083
|
+
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
528084
|
+
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
528085
|
+
} | undefined]) => Promise<import("viem").GetContractEventsReturnType<{
|
|
528086
|
+
inputs: {
|
|
528087
|
+
internalType: string;
|
|
528088
|
+
name: string;
|
|
528089
|
+
type: string;
|
|
528090
|
+
}[];
|
|
528091
|
+
name: string;
|
|
528092
|
+
outputs: {
|
|
528093
|
+
internalType: string;
|
|
528094
|
+
name: string;
|
|
528095
|
+
type: string;
|
|
528096
|
+
}[];
|
|
528097
|
+
stateMutability: string;
|
|
528098
|
+
type: string;
|
|
528099
|
+
}[], string>>;
|
|
528100
|
+
};
|
|
528101
|
+
watchEvent: {
|
|
528102
|
+
[x: string]: (...parameters: [options?: {
|
|
528103
|
+
batch?: boolean | undefined | undefined;
|
|
528104
|
+
pollingInterval?: number | undefined | undefined;
|
|
528105
|
+
strict?: boolean | undefined;
|
|
528106
|
+
onError?: ((error: Error) => void) | undefined | undefined;
|
|
528107
|
+
fromBlock?: bigint | undefined;
|
|
528108
|
+
onLogs: import("viem").WatchContractEventOnLogsFn<{
|
|
528109
|
+
inputs: {
|
|
528110
|
+
internalType: string;
|
|
528111
|
+
name: string;
|
|
528112
|
+
type: string;
|
|
528113
|
+
}[];
|
|
528114
|
+
name: string;
|
|
528115
|
+
outputs: {
|
|
528116
|
+
internalType: string;
|
|
528117
|
+
name: string;
|
|
528118
|
+
type: string;
|
|
528119
|
+
}[];
|
|
528120
|
+
stateMutability: string;
|
|
528121
|
+
type: string;
|
|
528122
|
+
}[], string, undefined>;
|
|
528123
|
+
poll?: true | undefined | undefined;
|
|
528124
|
+
} | undefined] | [args: readonly unknown[] | {
|
|
528125
|
+
[x: string]: unknown;
|
|
528126
|
+
address?: undefined;
|
|
528127
|
+
abi?: undefined;
|
|
528128
|
+
args?: undefined;
|
|
528129
|
+
eventName?: undefined;
|
|
528130
|
+
fromBlock?: undefined;
|
|
528131
|
+
onError?: undefined;
|
|
528132
|
+
onLogs?: undefined;
|
|
528133
|
+
strict?: undefined;
|
|
528134
|
+
poll?: undefined;
|
|
528135
|
+
batch?: undefined;
|
|
528136
|
+
pollingInterval?: undefined;
|
|
528137
|
+
}, options?: {
|
|
528138
|
+
batch?: boolean | undefined | undefined;
|
|
528139
|
+
pollingInterval?: number | undefined | undefined;
|
|
528140
|
+
strict?: boolean | undefined;
|
|
528141
|
+
onError?: ((error: Error) => void) | undefined | undefined;
|
|
528142
|
+
fromBlock?: bigint | undefined;
|
|
528143
|
+
onLogs: import("viem").WatchContractEventOnLogsFn<{
|
|
528144
|
+
inputs: {
|
|
528145
|
+
internalType: string;
|
|
528146
|
+
name: string;
|
|
528147
|
+
type: string;
|
|
528148
|
+
}[];
|
|
528149
|
+
name: string;
|
|
528150
|
+
outputs: {
|
|
528151
|
+
internalType: string;
|
|
528152
|
+
name: string;
|
|
528153
|
+
type: string;
|
|
528154
|
+
}[];
|
|
528155
|
+
stateMutability: string;
|
|
528156
|
+
type: string;
|
|
528157
|
+
}[], string, undefined>;
|
|
528158
|
+
poll?: true | undefined | undefined;
|
|
528159
|
+
} | undefined]) => import("viem").WatchContractEventReturnType;
|
|
528160
|
+
};
|
|
528161
|
+
write: {
|
|
528162
|
+
[x: string]: <chainOverride extends import("viem").Chain | undefined, options extends import("viem").UnionOmit<import("viem").WriteContractParameters<{
|
|
528163
|
+
inputs: {
|
|
528164
|
+
internalType: string;
|
|
528165
|
+
name: string;
|
|
528166
|
+
type: string;
|
|
528167
|
+
}[];
|
|
528168
|
+
name: string;
|
|
528169
|
+
outputs: {
|
|
528170
|
+
internalType: string;
|
|
528171
|
+
name: string;
|
|
528172
|
+
type: string;
|
|
528173
|
+
}[];
|
|
528174
|
+
stateMutability: string;
|
|
528175
|
+
type: string;
|
|
528176
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride>, "address" | "args" | "abi" | "functionName"> extends infer T ? { [K in keyof T]: import("viem").UnionOmit<import("viem").WriteContractParameters<{
|
|
528177
|
+
inputs: {
|
|
528178
|
+
internalType: string;
|
|
528179
|
+
name: string;
|
|
528180
|
+
type: string;
|
|
528181
|
+
}[];
|
|
528182
|
+
name: string;
|
|
528183
|
+
outputs: {
|
|
528184
|
+
internalType: string;
|
|
528185
|
+
name: string;
|
|
528186
|
+
type: string;
|
|
528187
|
+
}[];
|
|
528188
|
+
stateMutability: string;
|
|
528189
|
+
type: string;
|
|
528190
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride>, "address" | "args" | "abi" | "functionName">[K]; } : never, Rest extends unknown[] = [options: options]>(...parameters: Rest | [args: readonly unknown[], ...parameters: Rest]) => Promise<import("viem").WriteContractReturnType>;
|
|
528191
|
+
};
|
|
528192
|
+
address: `0x${string}`;
|
|
528193
|
+
abi: {
|
|
528194
|
+
inputs: {
|
|
528195
|
+
internalType: string;
|
|
528196
|
+
name: string;
|
|
528197
|
+
type: string;
|
|
528198
|
+
}[];
|
|
528199
|
+
name: string;
|
|
528200
|
+
outputs: {
|
|
528201
|
+
internalType: string;
|
|
528202
|
+
name: string;
|
|
528203
|
+
type: string;
|
|
528204
|
+
}[];
|
|
528205
|
+
stateMutability: string;
|
|
528206
|
+
type: string;
|
|
528207
|
+
}[];
|
|
528208
|
+
};
|
|
528209
|
+
export declare const UUPSViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
528210
|
+
read: {
|
|
528211
|
+
cumulativeClaimed: (args: readonly [`0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528212
|
+
readonly inputs: readonly [{
|
|
528213
|
+
readonly internalType: "address";
|
|
528214
|
+
readonly name: "";
|
|
528215
|
+
readonly type: "address";
|
|
528216
|
+
}];
|
|
528217
|
+
readonly name: "cumulativeClaimed";
|
|
528218
|
+
readonly outputs: readonly [{
|
|
528219
|
+
readonly internalType: "uint256";
|
|
528220
|
+
readonly name: "";
|
|
528221
|
+
readonly type: "uint256";
|
|
528222
|
+
}];
|
|
528223
|
+
readonly stateMutability: "view";
|
|
528224
|
+
readonly type: "function";
|
|
528225
|
+
}], "cumulativeClaimed", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
528226
|
+
};
|
|
528227
|
+
address: `0x${string}`;
|
|
528228
|
+
abi: readonly [{
|
|
528229
|
+
readonly inputs: readonly [{
|
|
528230
|
+
readonly internalType: "address";
|
|
528231
|
+
readonly name: "";
|
|
528232
|
+
readonly type: "address";
|
|
528233
|
+
}];
|
|
528234
|
+
readonly name: "cumulativeClaimed";
|
|
528235
|
+
readonly outputs: readonly [{
|
|
528236
|
+
readonly internalType: "uint256";
|
|
528237
|
+
readonly name: "";
|
|
528238
|
+
readonly type: "uint256";
|
|
528239
|
+
}];
|
|
528240
|
+
readonly stateMutability: "view";
|
|
528241
|
+
readonly type: "function";
|
|
528242
|
+
}];
|
|
528243
|
+
};
|
|
528244
|
+
export declare const SparkRewardsControllerViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
528245
|
+
read: {
|
|
528246
|
+
getAllUserRewards: (args: readonly [readonly `0x${string}`[], `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528247
|
+
readonly inputs: readonly [{
|
|
528248
|
+
readonly internalType: "address[]";
|
|
528249
|
+
readonly name: "assets";
|
|
528250
|
+
readonly type: "address[]";
|
|
528251
|
+
}, {
|
|
528252
|
+
readonly internalType: "address";
|
|
528253
|
+
readonly name: "user";
|
|
528254
|
+
readonly type: "address";
|
|
528255
|
+
}];
|
|
528256
|
+
readonly name: "getAllUserRewards";
|
|
528257
|
+
readonly outputs: readonly [{
|
|
528258
|
+
readonly internalType: "address[]";
|
|
528259
|
+
readonly name: "rewardsList";
|
|
528260
|
+
readonly type: "address[]";
|
|
528261
|
+
}, {
|
|
528262
|
+
readonly internalType: "uint256[]";
|
|
528263
|
+
readonly name: "unclaimedAmounts";
|
|
528264
|
+
readonly type: "uint256[]";
|
|
528265
|
+
}];
|
|
528266
|
+
readonly stateMutability: "view";
|
|
528267
|
+
readonly type: "function";
|
|
528268
|
+
}], "getAllUserRewards", readonly [readonly `0x${string}`[], `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly [readonly `0x${string}`[], readonly bigint[]]>;
|
|
528269
|
+
};
|
|
528270
|
+
address: `0x${string}`;
|
|
528271
|
+
abi: readonly [{
|
|
528272
|
+
readonly inputs: readonly [{
|
|
528273
|
+
readonly internalType: "address[]";
|
|
528274
|
+
readonly name: "assets";
|
|
528275
|
+
readonly type: "address[]";
|
|
528276
|
+
}, {
|
|
528277
|
+
readonly internalType: "address";
|
|
528278
|
+
readonly name: "user";
|
|
528279
|
+
readonly type: "address";
|
|
528280
|
+
}];
|
|
528281
|
+
readonly name: "getAllUserRewards";
|
|
528282
|
+
readonly outputs: readonly [{
|
|
528283
|
+
readonly internalType: "address[]";
|
|
528284
|
+
readonly name: "rewardsList";
|
|
528285
|
+
readonly type: "address[]";
|
|
528286
|
+
}, {
|
|
528287
|
+
readonly internalType: "uint256[]";
|
|
528288
|
+
readonly name: "unclaimedAmounts";
|
|
528289
|
+
readonly type: "uint256[]";
|
|
528290
|
+
}];
|
|
528291
|
+
readonly stateMutability: "view";
|
|
528292
|
+
readonly type: "function";
|
|
528293
|
+
}];
|
|
528294
|
+
};
|
|
528295
|
+
export declare const AaveRewardsControllerViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
528296
|
+
read: {
|
|
528297
|
+
getAllUserRewards: (args: readonly [readonly `0x${string}`[], `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528298
|
+
readonly inputs: readonly [{
|
|
528299
|
+
readonly internalType: "address[]";
|
|
528300
|
+
readonly name: "assets";
|
|
528301
|
+
readonly type: "address[]";
|
|
528302
|
+
}, {
|
|
528303
|
+
readonly internalType: "address";
|
|
528304
|
+
readonly name: "user";
|
|
528305
|
+
readonly type: "address";
|
|
528306
|
+
}];
|
|
528307
|
+
readonly name: "getAllUserRewards";
|
|
528308
|
+
readonly outputs: readonly [{
|
|
528309
|
+
readonly internalType: "address[]";
|
|
528310
|
+
readonly name: "rewardsList";
|
|
528311
|
+
readonly type: "address[]";
|
|
528312
|
+
}, {
|
|
528313
|
+
readonly internalType: "uint256[]";
|
|
528314
|
+
readonly name: "unclaimedAmounts";
|
|
528315
|
+
readonly type: "uint256[]";
|
|
528316
|
+
}];
|
|
528317
|
+
readonly stateMutability: "view";
|
|
528318
|
+
readonly type: "function";
|
|
528319
|
+
}], "getAllUserRewards", readonly [readonly `0x${string}`[], `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly [readonly `0x${string}`[], readonly bigint[]]>;
|
|
528320
|
+
};
|
|
528321
|
+
address: `0x${string}`;
|
|
528322
|
+
abi: readonly [{
|
|
528323
|
+
readonly inputs: readonly [{
|
|
528324
|
+
readonly internalType: "address[]";
|
|
528325
|
+
readonly name: "assets";
|
|
528326
|
+
readonly type: "address[]";
|
|
528327
|
+
}, {
|
|
528328
|
+
readonly internalType: "address";
|
|
528329
|
+
readonly name: "user";
|
|
528330
|
+
readonly type: "address";
|
|
528331
|
+
}];
|
|
528332
|
+
readonly name: "getAllUserRewards";
|
|
528333
|
+
readonly outputs: readonly [{
|
|
528334
|
+
readonly internalType: "address[]";
|
|
528335
|
+
readonly name: "rewardsList";
|
|
528336
|
+
readonly type: "address[]";
|
|
528337
|
+
}, {
|
|
528338
|
+
readonly internalType: "uint256[]";
|
|
528339
|
+
readonly name: "unclaimedAmounts";
|
|
528340
|
+
readonly type: "uint256[]";
|
|
528341
|
+
}];
|
|
528342
|
+
readonly stateMutability: "view";
|
|
528343
|
+
readonly type: "function";
|
|
528344
|
+
}];
|
|
528345
|
+
};
|
|
528346
|
+
export declare const LiquityV2sBoldVaultViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
528347
|
+
read: {
|
|
528348
|
+
balanceOf: (args: readonly [`0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528349
|
+
readonly inputs: readonly [{
|
|
528350
|
+
readonly internalType: "address";
|
|
528351
|
+
readonly name: "account";
|
|
528352
|
+
readonly type: "address";
|
|
528353
|
+
}];
|
|
528354
|
+
readonly name: "balanceOf";
|
|
528355
|
+
readonly outputs: readonly [{
|
|
528356
|
+
readonly internalType: "uint256";
|
|
528357
|
+
readonly name: "";
|
|
528358
|
+
readonly type: "uint256";
|
|
528359
|
+
}];
|
|
528360
|
+
readonly stateMutability: "view";
|
|
528361
|
+
readonly type: "function";
|
|
528362
|
+
}, {
|
|
528363
|
+
readonly inputs: readonly [{
|
|
528364
|
+
readonly internalType: "uint256";
|
|
528365
|
+
readonly name: "assets";
|
|
528366
|
+
readonly type: "uint256";
|
|
528367
|
+
}];
|
|
528368
|
+
readonly name: "convertToShares";
|
|
528369
|
+
readonly outputs: readonly [{
|
|
528370
|
+
readonly internalType: "uint256";
|
|
528371
|
+
readonly name: "";
|
|
528372
|
+
readonly type: "uint256";
|
|
528373
|
+
}];
|
|
528374
|
+
readonly stateMutability: "view";
|
|
528375
|
+
readonly type: "function";
|
|
528376
|
+
}, {
|
|
528377
|
+
readonly inputs: readonly [{
|
|
528378
|
+
readonly internalType: "address";
|
|
528379
|
+
readonly name: "owner";
|
|
528380
|
+
readonly type: "address";
|
|
528381
|
+
}];
|
|
528382
|
+
readonly name: "maxWithdraw";
|
|
528383
|
+
readonly outputs: readonly [{
|
|
528384
|
+
readonly internalType: "uint256";
|
|
528385
|
+
readonly name: "";
|
|
528386
|
+
readonly type: "uint256";
|
|
528387
|
+
}];
|
|
528388
|
+
readonly stateMutability: "view";
|
|
528389
|
+
readonly type: "function";
|
|
528390
|
+
}, {
|
|
528391
|
+
readonly inputs: readonly [{
|
|
528392
|
+
readonly internalType: "uint256";
|
|
528393
|
+
readonly name: "";
|
|
528394
|
+
readonly type: "uint256";
|
|
528395
|
+
}];
|
|
528396
|
+
readonly name: "sps";
|
|
528397
|
+
readonly outputs: readonly [{
|
|
528398
|
+
readonly internalType: "address";
|
|
528399
|
+
readonly name: "sp";
|
|
528400
|
+
readonly type: "address";
|
|
528401
|
+
}, {
|
|
528402
|
+
readonly internalType: "uint96";
|
|
528403
|
+
readonly name: "weight";
|
|
528404
|
+
readonly type: "uint96";
|
|
528405
|
+
}, {
|
|
528406
|
+
readonly internalType: "address";
|
|
528407
|
+
readonly name: "coll";
|
|
528408
|
+
readonly type: "address";
|
|
528409
|
+
}];
|
|
528410
|
+
readonly stateMutability: "view";
|
|
528411
|
+
readonly type: "function";
|
|
528412
|
+
}, {
|
|
528413
|
+
readonly inputs: readonly [];
|
|
528414
|
+
readonly name: "totalAssets";
|
|
528415
|
+
readonly outputs: readonly [{
|
|
528416
|
+
readonly internalType: "uint256";
|
|
528417
|
+
readonly name: "";
|
|
528418
|
+
readonly type: "uint256";
|
|
528419
|
+
}];
|
|
528420
|
+
readonly stateMutability: "view";
|
|
528421
|
+
readonly type: "function";
|
|
528422
|
+
}], "balanceOf", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
528423
|
+
maxWithdraw: (args: readonly [`0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528424
|
+
readonly inputs: readonly [{
|
|
528425
|
+
readonly internalType: "address";
|
|
528426
|
+
readonly name: "account";
|
|
528427
|
+
readonly type: "address";
|
|
528428
|
+
}];
|
|
528429
|
+
readonly name: "balanceOf";
|
|
528430
|
+
readonly outputs: readonly [{
|
|
528431
|
+
readonly internalType: "uint256";
|
|
528432
|
+
readonly name: "";
|
|
528433
|
+
readonly type: "uint256";
|
|
528434
|
+
}];
|
|
528435
|
+
readonly stateMutability: "view";
|
|
528436
|
+
readonly type: "function";
|
|
528437
|
+
}, {
|
|
528438
|
+
readonly inputs: readonly [{
|
|
528439
|
+
readonly internalType: "uint256";
|
|
528440
|
+
readonly name: "assets";
|
|
528441
|
+
readonly type: "uint256";
|
|
528442
|
+
}];
|
|
528443
|
+
readonly name: "convertToShares";
|
|
528444
|
+
readonly outputs: readonly [{
|
|
528445
|
+
readonly internalType: "uint256";
|
|
528446
|
+
readonly name: "";
|
|
528447
|
+
readonly type: "uint256";
|
|
528448
|
+
}];
|
|
528449
|
+
readonly stateMutability: "view";
|
|
528450
|
+
readonly type: "function";
|
|
528451
|
+
}, {
|
|
528452
|
+
readonly inputs: readonly [{
|
|
528453
|
+
readonly internalType: "address";
|
|
528454
|
+
readonly name: "owner";
|
|
528455
|
+
readonly type: "address";
|
|
528456
|
+
}];
|
|
528457
|
+
readonly name: "maxWithdraw";
|
|
528458
|
+
readonly outputs: readonly [{
|
|
528459
|
+
readonly internalType: "uint256";
|
|
528460
|
+
readonly name: "";
|
|
528461
|
+
readonly type: "uint256";
|
|
528462
|
+
}];
|
|
528463
|
+
readonly stateMutability: "view";
|
|
528464
|
+
readonly type: "function";
|
|
528465
|
+
}, {
|
|
528466
|
+
readonly inputs: readonly [{
|
|
528467
|
+
readonly internalType: "uint256";
|
|
528468
|
+
readonly name: "";
|
|
528469
|
+
readonly type: "uint256";
|
|
528470
|
+
}];
|
|
528471
|
+
readonly name: "sps";
|
|
528472
|
+
readonly outputs: readonly [{
|
|
528473
|
+
readonly internalType: "address";
|
|
528474
|
+
readonly name: "sp";
|
|
528475
|
+
readonly type: "address";
|
|
528476
|
+
}, {
|
|
528477
|
+
readonly internalType: "uint96";
|
|
528478
|
+
readonly name: "weight";
|
|
528479
|
+
readonly type: "uint96";
|
|
528480
|
+
}, {
|
|
528481
|
+
readonly internalType: "address";
|
|
528482
|
+
readonly name: "coll";
|
|
528483
|
+
readonly type: "address";
|
|
528484
|
+
}];
|
|
528485
|
+
readonly stateMutability: "view";
|
|
528486
|
+
readonly type: "function";
|
|
528487
|
+
}, {
|
|
528488
|
+
readonly inputs: readonly [];
|
|
528489
|
+
readonly name: "totalAssets";
|
|
528490
|
+
readonly outputs: readonly [{
|
|
528491
|
+
readonly internalType: "uint256";
|
|
528492
|
+
readonly name: "";
|
|
528493
|
+
readonly type: "uint256";
|
|
528494
|
+
}];
|
|
528495
|
+
readonly stateMutability: "view";
|
|
528496
|
+
readonly type: "function";
|
|
528497
|
+
}], "maxWithdraw", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
528498
|
+
totalAssets: (options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528499
|
+
readonly inputs: readonly [{
|
|
528500
|
+
readonly internalType: "address";
|
|
528501
|
+
readonly name: "account";
|
|
528502
|
+
readonly type: "address";
|
|
528503
|
+
}];
|
|
528504
|
+
readonly name: "balanceOf";
|
|
528505
|
+
readonly outputs: readonly [{
|
|
528506
|
+
readonly internalType: "uint256";
|
|
528507
|
+
readonly name: "";
|
|
528508
|
+
readonly type: "uint256";
|
|
528509
|
+
}];
|
|
528510
|
+
readonly stateMutability: "view";
|
|
528511
|
+
readonly type: "function";
|
|
528512
|
+
}, {
|
|
528513
|
+
readonly inputs: readonly [{
|
|
528514
|
+
readonly internalType: "uint256";
|
|
528515
|
+
readonly name: "assets";
|
|
528516
|
+
readonly type: "uint256";
|
|
528517
|
+
}];
|
|
528518
|
+
readonly name: "convertToShares";
|
|
528519
|
+
readonly outputs: readonly [{
|
|
528520
|
+
readonly internalType: "uint256";
|
|
528521
|
+
readonly name: "";
|
|
528522
|
+
readonly type: "uint256";
|
|
528523
|
+
}];
|
|
528524
|
+
readonly stateMutability: "view";
|
|
528525
|
+
readonly type: "function";
|
|
528526
|
+
}, {
|
|
528527
|
+
readonly inputs: readonly [{
|
|
528528
|
+
readonly internalType: "address";
|
|
528529
|
+
readonly name: "owner";
|
|
528530
|
+
readonly type: "address";
|
|
528531
|
+
}];
|
|
528532
|
+
readonly name: "maxWithdraw";
|
|
528533
|
+
readonly outputs: readonly [{
|
|
528534
|
+
readonly internalType: "uint256";
|
|
528535
|
+
readonly name: "";
|
|
528536
|
+
readonly type: "uint256";
|
|
528537
|
+
}];
|
|
528538
|
+
readonly stateMutability: "view";
|
|
528539
|
+
readonly type: "function";
|
|
528540
|
+
}, {
|
|
528541
|
+
readonly inputs: readonly [{
|
|
528542
|
+
readonly internalType: "uint256";
|
|
528543
|
+
readonly name: "";
|
|
528544
|
+
readonly type: "uint256";
|
|
528545
|
+
}];
|
|
528546
|
+
readonly name: "sps";
|
|
528547
|
+
readonly outputs: readonly [{
|
|
528548
|
+
readonly internalType: "address";
|
|
528549
|
+
readonly name: "sp";
|
|
528550
|
+
readonly type: "address";
|
|
528551
|
+
}, {
|
|
528552
|
+
readonly internalType: "uint96";
|
|
528553
|
+
readonly name: "weight";
|
|
528554
|
+
readonly type: "uint96";
|
|
528555
|
+
}, {
|
|
528556
|
+
readonly internalType: "address";
|
|
528557
|
+
readonly name: "coll";
|
|
528558
|
+
readonly type: "address";
|
|
528559
|
+
}];
|
|
528560
|
+
readonly stateMutability: "view";
|
|
528561
|
+
readonly type: "function";
|
|
528562
|
+
}, {
|
|
528563
|
+
readonly inputs: readonly [];
|
|
528564
|
+
readonly name: "totalAssets";
|
|
528565
|
+
readonly outputs: readonly [{
|
|
528566
|
+
readonly internalType: "uint256";
|
|
528567
|
+
readonly name: "";
|
|
528568
|
+
readonly type: "uint256";
|
|
528569
|
+
}];
|
|
528570
|
+
readonly stateMutability: "view";
|
|
528571
|
+
readonly type: "function";
|
|
528572
|
+
}], "totalAssets", readonly []>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
528573
|
+
convertToShares: (args: readonly [bigint], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528574
|
+
readonly inputs: readonly [{
|
|
528575
|
+
readonly internalType: "address";
|
|
528576
|
+
readonly name: "account";
|
|
528577
|
+
readonly type: "address";
|
|
528578
|
+
}];
|
|
528579
|
+
readonly name: "balanceOf";
|
|
528580
|
+
readonly outputs: readonly [{
|
|
528581
|
+
readonly internalType: "uint256";
|
|
528582
|
+
readonly name: "";
|
|
528583
|
+
readonly type: "uint256";
|
|
528584
|
+
}];
|
|
528585
|
+
readonly stateMutability: "view";
|
|
528586
|
+
readonly type: "function";
|
|
528587
|
+
}, {
|
|
528588
|
+
readonly inputs: readonly [{
|
|
528589
|
+
readonly internalType: "uint256";
|
|
528590
|
+
readonly name: "assets";
|
|
528591
|
+
readonly type: "uint256";
|
|
528592
|
+
}];
|
|
528593
|
+
readonly name: "convertToShares";
|
|
528594
|
+
readonly outputs: readonly [{
|
|
528595
|
+
readonly internalType: "uint256";
|
|
528596
|
+
readonly name: "";
|
|
528597
|
+
readonly type: "uint256";
|
|
528598
|
+
}];
|
|
528599
|
+
readonly stateMutability: "view";
|
|
528600
|
+
readonly type: "function";
|
|
528601
|
+
}, {
|
|
528602
|
+
readonly inputs: readonly [{
|
|
528603
|
+
readonly internalType: "address";
|
|
528604
|
+
readonly name: "owner";
|
|
528605
|
+
readonly type: "address";
|
|
528606
|
+
}];
|
|
528607
|
+
readonly name: "maxWithdraw";
|
|
528608
|
+
readonly outputs: readonly [{
|
|
528609
|
+
readonly internalType: "uint256";
|
|
528610
|
+
readonly name: "";
|
|
528611
|
+
readonly type: "uint256";
|
|
528612
|
+
}];
|
|
528613
|
+
readonly stateMutability: "view";
|
|
528614
|
+
readonly type: "function";
|
|
528615
|
+
}, {
|
|
528616
|
+
readonly inputs: readonly [{
|
|
528617
|
+
readonly internalType: "uint256";
|
|
528618
|
+
readonly name: "";
|
|
528619
|
+
readonly type: "uint256";
|
|
528620
|
+
}];
|
|
528621
|
+
readonly name: "sps";
|
|
528622
|
+
readonly outputs: readonly [{
|
|
528623
|
+
readonly internalType: "address";
|
|
528624
|
+
readonly name: "sp";
|
|
528625
|
+
readonly type: "address";
|
|
528626
|
+
}, {
|
|
528627
|
+
readonly internalType: "uint96";
|
|
528628
|
+
readonly name: "weight";
|
|
528629
|
+
readonly type: "uint96";
|
|
528630
|
+
}, {
|
|
528631
|
+
readonly internalType: "address";
|
|
528632
|
+
readonly name: "coll";
|
|
528633
|
+
readonly type: "address";
|
|
528634
|
+
}];
|
|
528635
|
+
readonly stateMutability: "view";
|
|
528636
|
+
readonly type: "function";
|
|
528637
|
+
}, {
|
|
528638
|
+
readonly inputs: readonly [];
|
|
528639
|
+
readonly name: "totalAssets";
|
|
528640
|
+
readonly outputs: readonly [{
|
|
528641
|
+
readonly internalType: "uint256";
|
|
528642
|
+
readonly name: "";
|
|
528643
|
+
readonly type: "uint256";
|
|
528644
|
+
}];
|
|
528645
|
+
readonly stateMutability: "view";
|
|
528646
|
+
readonly type: "function";
|
|
528647
|
+
}], "convertToShares", readonly [bigint]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
528648
|
+
sps: (args: readonly [bigint], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528649
|
+
readonly inputs: readonly [{
|
|
528650
|
+
readonly internalType: "address";
|
|
528651
|
+
readonly name: "account";
|
|
528652
|
+
readonly type: "address";
|
|
528653
|
+
}];
|
|
528654
|
+
readonly name: "balanceOf";
|
|
528655
|
+
readonly outputs: readonly [{
|
|
528656
|
+
readonly internalType: "uint256";
|
|
528657
|
+
readonly name: "";
|
|
528658
|
+
readonly type: "uint256";
|
|
528659
|
+
}];
|
|
528660
|
+
readonly stateMutability: "view";
|
|
528661
|
+
readonly type: "function";
|
|
528662
|
+
}, {
|
|
528663
|
+
readonly inputs: readonly [{
|
|
528664
|
+
readonly internalType: "uint256";
|
|
528665
|
+
readonly name: "assets";
|
|
528666
|
+
readonly type: "uint256";
|
|
528667
|
+
}];
|
|
528668
|
+
readonly name: "convertToShares";
|
|
528669
|
+
readonly outputs: readonly [{
|
|
528670
|
+
readonly internalType: "uint256";
|
|
528671
|
+
readonly name: "";
|
|
528672
|
+
readonly type: "uint256";
|
|
528673
|
+
}];
|
|
528674
|
+
readonly stateMutability: "view";
|
|
528675
|
+
readonly type: "function";
|
|
528676
|
+
}, {
|
|
528677
|
+
readonly inputs: readonly [{
|
|
528678
|
+
readonly internalType: "address";
|
|
528679
|
+
readonly name: "owner";
|
|
528680
|
+
readonly type: "address";
|
|
528681
|
+
}];
|
|
528682
|
+
readonly name: "maxWithdraw";
|
|
528683
|
+
readonly outputs: readonly [{
|
|
528684
|
+
readonly internalType: "uint256";
|
|
528685
|
+
readonly name: "";
|
|
528686
|
+
readonly type: "uint256";
|
|
528687
|
+
}];
|
|
528688
|
+
readonly stateMutability: "view";
|
|
528689
|
+
readonly type: "function";
|
|
528690
|
+
}, {
|
|
528691
|
+
readonly inputs: readonly [{
|
|
528692
|
+
readonly internalType: "uint256";
|
|
528693
|
+
readonly name: "";
|
|
528694
|
+
readonly type: "uint256";
|
|
528695
|
+
}];
|
|
528696
|
+
readonly name: "sps";
|
|
528697
|
+
readonly outputs: readonly [{
|
|
528698
|
+
readonly internalType: "address";
|
|
528699
|
+
readonly name: "sp";
|
|
528700
|
+
readonly type: "address";
|
|
528701
|
+
}, {
|
|
528702
|
+
readonly internalType: "uint96";
|
|
528703
|
+
readonly name: "weight";
|
|
528704
|
+
readonly type: "uint96";
|
|
528705
|
+
}, {
|
|
528706
|
+
readonly internalType: "address";
|
|
528707
|
+
readonly name: "coll";
|
|
528708
|
+
readonly type: "address";
|
|
528709
|
+
}];
|
|
528710
|
+
readonly stateMutability: "view";
|
|
528711
|
+
readonly type: "function";
|
|
528712
|
+
}, {
|
|
528713
|
+
readonly inputs: readonly [];
|
|
528714
|
+
readonly name: "totalAssets";
|
|
528715
|
+
readonly outputs: readonly [{
|
|
528716
|
+
readonly internalType: "uint256";
|
|
528717
|
+
readonly name: "";
|
|
528718
|
+
readonly type: "uint256";
|
|
528719
|
+
}];
|
|
528720
|
+
readonly stateMutability: "view";
|
|
528721
|
+
readonly type: "function";
|
|
528722
|
+
}], "sps", readonly [bigint]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly [`0x${string}`, bigint, `0x${string}`]>;
|
|
528723
|
+
};
|
|
528724
|
+
address: `0x${string}`;
|
|
528725
|
+
abi: readonly [{
|
|
528726
|
+
readonly inputs: readonly [{
|
|
528727
|
+
readonly internalType: "address";
|
|
528728
|
+
readonly name: "account";
|
|
528729
|
+
readonly type: "address";
|
|
528730
|
+
}];
|
|
528731
|
+
readonly name: "balanceOf";
|
|
528732
|
+
readonly outputs: readonly [{
|
|
528733
|
+
readonly internalType: "uint256";
|
|
528734
|
+
readonly name: "";
|
|
528735
|
+
readonly type: "uint256";
|
|
528736
|
+
}];
|
|
528737
|
+
readonly stateMutability: "view";
|
|
528738
|
+
readonly type: "function";
|
|
528739
|
+
}, {
|
|
528740
|
+
readonly inputs: readonly [{
|
|
528741
|
+
readonly internalType: "uint256";
|
|
528742
|
+
readonly name: "assets";
|
|
528743
|
+
readonly type: "uint256";
|
|
528744
|
+
}];
|
|
528745
|
+
readonly name: "convertToShares";
|
|
528746
|
+
readonly outputs: readonly [{
|
|
528747
|
+
readonly internalType: "uint256";
|
|
528748
|
+
readonly name: "";
|
|
528749
|
+
readonly type: "uint256";
|
|
528750
|
+
}];
|
|
528751
|
+
readonly stateMutability: "view";
|
|
528752
|
+
readonly type: "function";
|
|
528753
|
+
}, {
|
|
528754
|
+
readonly inputs: readonly [{
|
|
528755
|
+
readonly internalType: "address";
|
|
528756
|
+
readonly name: "owner";
|
|
528757
|
+
readonly type: "address";
|
|
528758
|
+
}];
|
|
528759
|
+
readonly name: "maxWithdraw";
|
|
528760
|
+
readonly outputs: readonly [{
|
|
528761
|
+
readonly internalType: "uint256";
|
|
528762
|
+
readonly name: "";
|
|
528763
|
+
readonly type: "uint256";
|
|
528764
|
+
}];
|
|
528765
|
+
readonly stateMutability: "view";
|
|
528766
|
+
readonly type: "function";
|
|
528767
|
+
}, {
|
|
528768
|
+
readonly inputs: readonly [{
|
|
528769
|
+
readonly internalType: "uint256";
|
|
528770
|
+
readonly name: "";
|
|
528771
|
+
readonly type: "uint256";
|
|
528772
|
+
}];
|
|
528773
|
+
readonly name: "sps";
|
|
528774
|
+
readonly outputs: readonly [{
|
|
528775
|
+
readonly internalType: "address";
|
|
528776
|
+
readonly name: "sp";
|
|
528777
|
+
readonly type: "address";
|
|
528778
|
+
}, {
|
|
528779
|
+
readonly internalType: "uint96";
|
|
528780
|
+
readonly name: "weight";
|
|
528781
|
+
readonly type: "uint96";
|
|
528782
|
+
}, {
|
|
528783
|
+
readonly internalType: "address";
|
|
528784
|
+
readonly name: "coll";
|
|
528785
|
+
readonly type: "address";
|
|
528786
|
+
}];
|
|
528787
|
+
readonly stateMutability: "view";
|
|
528788
|
+
readonly type: "function";
|
|
528789
|
+
}, {
|
|
528790
|
+
readonly inputs: readonly [];
|
|
528791
|
+
readonly name: "totalAssets";
|
|
528792
|
+
readonly outputs: readonly [{
|
|
528793
|
+
readonly internalType: "uint256";
|
|
528794
|
+
readonly name: "";
|
|
528795
|
+
readonly type: "uint256";
|
|
528796
|
+
}];
|
|
528797
|
+
readonly stateMutability: "view";
|
|
528798
|
+
readonly type: "function";
|
|
528799
|
+
}];
|
|
528800
|
+
};
|
|
528801
|
+
export declare const StkAAVEViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
528802
|
+
read: {
|
|
528803
|
+
totalSupply: (options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528804
|
+
readonly inputs: readonly [{
|
|
528805
|
+
readonly internalType: "address";
|
|
528806
|
+
readonly name: "";
|
|
528807
|
+
readonly type: "address";
|
|
528808
|
+
}];
|
|
528809
|
+
readonly name: "assets";
|
|
528810
|
+
readonly outputs: readonly [{
|
|
528811
|
+
readonly internalType: "uint128";
|
|
528812
|
+
readonly name: "emissionPerSecond";
|
|
528813
|
+
readonly type: "uint128";
|
|
528814
|
+
}, {
|
|
528815
|
+
readonly internalType: "uint128";
|
|
528816
|
+
readonly name: "lastUpdateTimestamp";
|
|
528817
|
+
readonly type: "uint128";
|
|
528818
|
+
}, {
|
|
528819
|
+
readonly internalType: "uint256";
|
|
528820
|
+
readonly name: "index";
|
|
528821
|
+
readonly type: "uint256";
|
|
528822
|
+
}];
|
|
528823
|
+
readonly stateMutability: "view";
|
|
528824
|
+
readonly type: "function";
|
|
528825
|
+
}, {
|
|
528826
|
+
readonly inputs: readonly [{
|
|
528827
|
+
readonly internalType: "address";
|
|
528828
|
+
readonly name: "account";
|
|
528829
|
+
readonly type: "address";
|
|
528830
|
+
}];
|
|
528831
|
+
readonly name: "balanceOf";
|
|
528832
|
+
readonly outputs: readonly [{
|
|
528833
|
+
readonly internalType: "uint256";
|
|
528834
|
+
readonly name: "";
|
|
528835
|
+
readonly type: "uint256";
|
|
528836
|
+
}];
|
|
528837
|
+
readonly stateMutability: "view";
|
|
528838
|
+
readonly type: "function";
|
|
528839
|
+
}, {
|
|
528840
|
+
readonly inputs: readonly [];
|
|
528841
|
+
readonly name: "totalSupply";
|
|
528842
|
+
readonly outputs: readonly [{
|
|
528843
|
+
readonly internalType: "uint256";
|
|
528844
|
+
readonly name: "";
|
|
528845
|
+
readonly type: "uint256";
|
|
528846
|
+
}];
|
|
528847
|
+
readonly stateMutability: "view";
|
|
528848
|
+
readonly type: "function";
|
|
528849
|
+
}], "totalSupply", readonly []>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
528850
|
+
assets: (args: readonly [`0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528851
|
+
readonly inputs: readonly [{
|
|
528852
|
+
readonly internalType: "address";
|
|
528853
|
+
readonly name: "";
|
|
528854
|
+
readonly type: "address";
|
|
528855
|
+
}];
|
|
528856
|
+
readonly name: "assets";
|
|
528857
|
+
readonly outputs: readonly [{
|
|
528858
|
+
readonly internalType: "uint128";
|
|
528859
|
+
readonly name: "emissionPerSecond";
|
|
528860
|
+
readonly type: "uint128";
|
|
528861
|
+
}, {
|
|
528862
|
+
readonly internalType: "uint128";
|
|
528863
|
+
readonly name: "lastUpdateTimestamp";
|
|
528864
|
+
readonly type: "uint128";
|
|
528865
|
+
}, {
|
|
528866
|
+
readonly internalType: "uint256";
|
|
528867
|
+
readonly name: "index";
|
|
528868
|
+
readonly type: "uint256";
|
|
528869
|
+
}];
|
|
528870
|
+
readonly stateMutability: "view";
|
|
528871
|
+
readonly type: "function";
|
|
528872
|
+
}, {
|
|
528873
|
+
readonly inputs: readonly [{
|
|
528874
|
+
readonly internalType: "address";
|
|
528875
|
+
readonly name: "account";
|
|
528876
|
+
readonly type: "address";
|
|
528877
|
+
}];
|
|
528878
|
+
readonly name: "balanceOf";
|
|
528879
|
+
readonly outputs: readonly [{
|
|
528880
|
+
readonly internalType: "uint256";
|
|
528881
|
+
readonly name: "";
|
|
528882
|
+
readonly type: "uint256";
|
|
528883
|
+
}];
|
|
528884
|
+
readonly stateMutability: "view";
|
|
528885
|
+
readonly type: "function";
|
|
528886
|
+
}, {
|
|
528887
|
+
readonly inputs: readonly [];
|
|
528888
|
+
readonly name: "totalSupply";
|
|
528889
|
+
readonly outputs: readonly [{
|
|
528890
|
+
readonly internalType: "uint256";
|
|
528891
|
+
readonly name: "";
|
|
528892
|
+
readonly type: "uint256";
|
|
528893
|
+
}];
|
|
528894
|
+
readonly stateMutability: "view";
|
|
528895
|
+
readonly type: "function";
|
|
528896
|
+
}], "assets", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly [bigint, bigint, bigint]>;
|
|
528897
|
+
balanceOf: (args: readonly [`0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528898
|
+
readonly inputs: readonly [{
|
|
528899
|
+
readonly internalType: "address";
|
|
528900
|
+
readonly name: "";
|
|
528901
|
+
readonly type: "address";
|
|
528902
|
+
}];
|
|
528903
|
+
readonly name: "assets";
|
|
528904
|
+
readonly outputs: readonly [{
|
|
528905
|
+
readonly internalType: "uint128";
|
|
528906
|
+
readonly name: "emissionPerSecond";
|
|
528907
|
+
readonly type: "uint128";
|
|
528908
|
+
}, {
|
|
528909
|
+
readonly internalType: "uint128";
|
|
528910
|
+
readonly name: "lastUpdateTimestamp";
|
|
528911
|
+
readonly type: "uint128";
|
|
528912
|
+
}, {
|
|
528913
|
+
readonly internalType: "uint256";
|
|
528914
|
+
readonly name: "index";
|
|
528915
|
+
readonly type: "uint256";
|
|
528916
|
+
}];
|
|
528917
|
+
readonly stateMutability: "view";
|
|
528918
|
+
readonly type: "function";
|
|
528919
|
+
}, {
|
|
528920
|
+
readonly inputs: readonly [{
|
|
528921
|
+
readonly internalType: "address";
|
|
528922
|
+
readonly name: "account";
|
|
528923
|
+
readonly type: "address";
|
|
528924
|
+
}];
|
|
528925
|
+
readonly name: "balanceOf";
|
|
528926
|
+
readonly outputs: readonly [{
|
|
528927
|
+
readonly internalType: "uint256";
|
|
528928
|
+
readonly name: "";
|
|
528929
|
+
readonly type: "uint256";
|
|
528930
|
+
}];
|
|
528931
|
+
readonly stateMutability: "view";
|
|
528932
|
+
readonly type: "function";
|
|
528933
|
+
}, {
|
|
528934
|
+
readonly inputs: readonly [];
|
|
528935
|
+
readonly name: "totalSupply";
|
|
528936
|
+
readonly outputs: readonly [{
|
|
528937
|
+
readonly internalType: "uint256";
|
|
528938
|
+
readonly name: "";
|
|
528939
|
+
readonly type: "uint256";
|
|
528940
|
+
}];
|
|
528941
|
+
readonly stateMutability: "view";
|
|
528942
|
+
readonly type: "function";
|
|
528943
|
+
}], "balanceOf", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
528944
|
+
};
|
|
528945
|
+
address: `0x${string}`;
|
|
528946
|
+
abi: readonly [{
|
|
528947
|
+
readonly inputs: readonly [{
|
|
528948
|
+
readonly internalType: "address";
|
|
528949
|
+
readonly name: "";
|
|
528950
|
+
readonly type: "address";
|
|
528951
|
+
}];
|
|
528952
|
+
readonly name: "assets";
|
|
528953
|
+
readonly outputs: readonly [{
|
|
528954
|
+
readonly internalType: "uint128";
|
|
528955
|
+
readonly name: "emissionPerSecond";
|
|
528956
|
+
readonly type: "uint128";
|
|
528957
|
+
}, {
|
|
528958
|
+
readonly internalType: "uint128";
|
|
528959
|
+
readonly name: "lastUpdateTimestamp";
|
|
528960
|
+
readonly type: "uint128";
|
|
528961
|
+
}, {
|
|
528962
|
+
readonly internalType: "uint256";
|
|
528963
|
+
readonly name: "index";
|
|
528964
|
+
readonly type: "uint256";
|
|
528965
|
+
}];
|
|
528966
|
+
readonly stateMutability: "view";
|
|
528967
|
+
readonly type: "function";
|
|
528968
|
+
}, {
|
|
528969
|
+
readonly inputs: readonly [{
|
|
528970
|
+
readonly internalType: "address";
|
|
528971
|
+
readonly name: "account";
|
|
528972
|
+
readonly type: "address";
|
|
528973
|
+
}];
|
|
528974
|
+
readonly name: "balanceOf";
|
|
528975
|
+
readonly outputs: readonly [{
|
|
528976
|
+
readonly internalType: "uint256";
|
|
528977
|
+
readonly name: "";
|
|
528978
|
+
readonly type: "uint256";
|
|
528979
|
+
}];
|
|
528980
|
+
readonly stateMutability: "view";
|
|
528981
|
+
readonly type: "function";
|
|
528982
|
+
}, {
|
|
528983
|
+
readonly inputs: readonly [];
|
|
528984
|
+
readonly name: "totalSupply";
|
|
528985
|
+
readonly outputs: readonly [{
|
|
528986
|
+
readonly internalType: "uint256";
|
|
528987
|
+
readonly name: "";
|
|
528988
|
+
readonly type: "uint256";
|
|
528989
|
+
}];
|
|
528990
|
+
readonly stateMutability: "view";
|
|
528991
|
+
readonly type: "function";
|
|
528992
|
+
}];
|
|
528993
|
+
};
|