@defisaver/positions-sdk 2.0.13 → 2.0.14-dev-portfolio
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 +9 -0
- package/cjs/claiming/aaveV3.js +148 -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 +6 -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 +2667 -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 +2882 -23
- package/cjs/contracts.js +10 -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 +8 -0
- package/cjs/liquityV2/index.js +161 -0
- package/cjs/markets/aave/marketAssets.js +1 -1
- package/cjs/markets/compound/marketsAssets.js +2 -2
- package/cjs/markets/spark/marketAssets.js +1 -1
- package/cjs/morphoBlue/index.d.ts +5 -0
- package/cjs/morphoBlue/index.js +38 -4
- package/cjs/portfolio/index.d.ts +6 -1
- package/cjs/portfolio/index.js +256 -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 +3 -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 +9 -0
- package/esm/claiming/aaveV3.js +139 -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 +6 -0
- package/esm/claiming/morphoBlue.js +104 -0
- package/esm/claiming/spark.d.ts +6 -0
- package/esm/claiming/spark.js +179 -0
- package/esm/config/contracts.d.ts +2667 -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 +2882 -23
- package/esm/contracts.js +9 -0
- 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 +8 -0
- package/esm/liquityV2/index.js +162 -1
- package/esm/markets/aave/marketAssets.js +1 -1
- package/esm/markets/compound/marketsAssets.js +2 -2
- package/esm/markets/spark/marketAssets.js +1 -1
- package/esm/morphoBlue/index.d.ts +5 -0
- package/esm/morphoBlue/index.js +38 -5
- package/esm/portfolio/index.d.ts +6 -1
- package/esm/portfolio/index.js +260 -14
- 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 +3 -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 +2 -2
- package/src/aaveV2/index.ts +2 -1
- package/src/aaveV3/index.ts +100 -2
- package/src/claiming/aaveV3.ts +163 -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 +105 -5
- package/src/constants/index.ts +5 -1
- package/src/contracts.ts +14 -1
- package/src/index.ts +2 -0
- package/src/liquity/index.ts +57 -2
- package/src/liquityV2/index.ts +177 -2
- package/src/markets/aave/marketAssets.ts +1 -1
- package/src/markets/compound/marketsAssets.ts +2 -2
- package/src/markets/spark/marketAssets.ts +1 -1
- package/src/morphoBlue/index.ts +43 -6
- package/src/portfolio/index.ts +263 -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
|
@@ -178958,6 +178958,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
178958
178958
|
}];
|
|
178959
178959
|
readonly stateMutability: "view";
|
|
178960
178960
|
readonly type: "function";
|
|
178961
|
+
}, {
|
|
178962
|
+
readonly inputs: readonly [{
|
|
178963
|
+
readonly internalType: "address";
|
|
178964
|
+
readonly name: "_market";
|
|
178965
|
+
readonly type: "address";
|
|
178966
|
+
}, {
|
|
178967
|
+
readonly internalType: "address";
|
|
178968
|
+
readonly name: "_user";
|
|
178969
|
+
readonly type: "address";
|
|
178970
|
+
}];
|
|
178971
|
+
readonly name: "getRewardsOwed";
|
|
178972
|
+
readonly outputs: readonly [{
|
|
178973
|
+
readonly components: readonly [{
|
|
178974
|
+
readonly internalType: "address";
|
|
178975
|
+
readonly name: "token";
|
|
178976
|
+
readonly type: "address";
|
|
178977
|
+
}, {
|
|
178978
|
+
readonly internalType: "uint256";
|
|
178979
|
+
readonly name: "owed";
|
|
178980
|
+
readonly type: "uint256";
|
|
178981
|
+
}];
|
|
178982
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
178983
|
+
readonly name: "rewardsOwed";
|
|
178984
|
+
readonly type: "tuple";
|
|
178985
|
+
}];
|
|
178986
|
+
readonly stateMutability: "view";
|
|
178987
|
+
readonly type: "function";
|
|
178961
178988
|
}], "getApyAfterValuesEstimation", readonly [`0x${string}`, `0x${string}`, bigint, bigint]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly [bigint, bigint, bigint]>;
|
|
178962
178989
|
getAssetPrice: (args: readonly [`0x${string}`, `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
178963
178990
|
readonly inputs: readonly [{
|
|
@@ -179456,6 +179483,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
179456
179483
|
}];
|
|
179457
179484
|
readonly stateMutability: "view";
|
|
179458
179485
|
readonly type: "function";
|
|
179486
|
+
}, {
|
|
179487
|
+
readonly inputs: readonly [{
|
|
179488
|
+
readonly internalType: "address";
|
|
179489
|
+
readonly name: "_market";
|
|
179490
|
+
readonly type: "address";
|
|
179491
|
+
}, {
|
|
179492
|
+
readonly internalType: "address";
|
|
179493
|
+
readonly name: "_user";
|
|
179494
|
+
readonly type: "address";
|
|
179495
|
+
}];
|
|
179496
|
+
readonly name: "getRewardsOwed";
|
|
179497
|
+
readonly outputs: readonly [{
|
|
179498
|
+
readonly components: readonly [{
|
|
179499
|
+
readonly internalType: "address";
|
|
179500
|
+
readonly name: "token";
|
|
179501
|
+
readonly type: "address";
|
|
179502
|
+
}, {
|
|
179503
|
+
readonly internalType: "uint256";
|
|
179504
|
+
readonly name: "owed";
|
|
179505
|
+
readonly type: "uint256";
|
|
179506
|
+
}];
|
|
179507
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
179508
|
+
readonly name: "rewardsOwed";
|
|
179509
|
+
readonly type: "tuple";
|
|
179510
|
+
}];
|
|
179511
|
+
readonly stateMutability: "view";
|
|
179512
|
+
readonly type: "function";
|
|
179459
179513
|
}], "getAssetPrice", readonly [`0x${string}`, `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
179460
179514
|
getLoanData: (args: readonly [`0x${string}`, `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
179461
179515
|
readonly inputs: readonly [{
|
|
@@ -179954,6 +180008,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
179954
180008
|
}];
|
|
179955
180009
|
readonly stateMutability: "view";
|
|
179956
180010
|
readonly type: "function";
|
|
180011
|
+
}, {
|
|
180012
|
+
readonly inputs: readonly [{
|
|
180013
|
+
readonly internalType: "address";
|
|
180014
|
+
readonly name: "_market";
|
|
180015
|
+
readonly type: "address";
|
|
180016
|
+
}, {
|
|
180017
|
+
readonly internalType: "address";
|
|
180018
|
+
readonly name: "_user";
|
|
180019
|
+
readonly type: "address";
|
|
180020
|
+
}];
|
|
180021
|
+
readonly name: "getRewardsOwed";
|
|
180022
|
+
readonly outputs: readonly [{
|
|
180023
|
+
readonly components: readonly [{
|
|
180024
|
+
readonly internalType: "address";
|
|
180025
|
+
readonly name: "token";
|
|
180026
|
+
readonly type: "address";
|
|
180027
|
+
}, {
|
|
180028
|
+
readonly internalType: "uint256";
|
|
180029
|
+
readonly name: "owed";
|
|
180030
|
+
readonly type: "uint256";
|
|
180031
|
+
}];
|
|
180032
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
180033
|
+
readonly name: "rewardsOwed";
|
|
180034
|
+
readonly type: "tuple";
|
|
180035
|
+
}];
|
|
180036
|
+
readonly stateMutability: "view";
|
|
180037
|
+
readonly type: "function";
|
|
179957
180038
|
}], "getLoanData", readonly [`0x${string}`, `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<{
|
|
179958
180039
|
user: `0x${string}`;
|
|
179959
180040
|
collAddr: readonly `0x${string}`[];
|
|
@@ -180461,6 +180542,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
180461
180542
|
}];
|
|
180462
180543
|
readonly stateMutability: "view";
|
|
180463
180544
|
readonly type: "function";
|
|
180545
|
+
}, {
|
|
180546
|
+
readonly inputs: readonly [{
|
|
180547
|
+
readonly internalType: "address";
|
|
180548
|
+
readonly name: "_market";
|
|
180549
|
+
readonly type: "address";
|
|
180550
|
+
}, {
|
|
180551
|
+
readonly internalType: "address";
|
|
180552
|
+
readonly name: "_user";
|
|
180553
|
+
readonly type: "address";
|
|
180554
|
+
}];
|
|
180555
|
+
readonly name: "getRewardsOwed";
|
|
180556
|
+
readonly outputs: readonly [{
|
|
180557
|
+
readonly components: readonly [{
|
|
180558
|
+
readonly internalType: "address";
|
|
180559
|
+
readonly name: "token";
|
|
180560
|
+
readonly type: "address";
|
|
180561
|
+
}, {
|
|
180562
|
+
readonly internalType: "uint256";
|
|
180563
|
+
readonly name: "owed";
|
|
180564
|
+
readonly type: "uint256";
|
|
180565
|
+
}];
|
|
180566
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
180567
|
+
readonly name: "rewardsOwed";
|
|
180568
|
+
readonly type: "tuple";
|
|
180569
|
+
}];
|
|
180570
|
+
readonly stateMutability: "view";
|
|
180571
|
+
readonly type: "function";
|
|
180464
180572
|
}], "getLoanDataArr", readonly [`0x${string}`, readonly `0x${string}`[]]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly {
|
|
180465
180573
|
user: `0x${string}`;
|
|
180466
180574
|
collAddr: readonly `0x${string}`[];
|
|
@@ -180977,6 +181085,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
180977
181085
|
}];
|
|
180978
181086
|
readonly stateMutability: "view";
|
|
180979
181087
|
readonly type: "function";
|
|
181088
|
+
}, {
|
|
181089
|
+
readonly inputs: readonly [{
|
|
181090
|
+
readonly internalType: "address";
|
|
181091
|
+
readonly name: "_market";
|
|
181092
|
+
readonly type: "address";
|
|
181093
|
+
}, {
|
|
181094
|
+
readonly internalType: "address";
|
|
181095
|
+
readonly name: "_user";
|
|
181096
|
+
readonly type: "address";
|
|
181097
|
+
}];
|
|
181098
|
+
readonly name: "getRewardsOwed";
|
|
181099
|
+
readonly outputs: readonly [{
|
|
181100
|
+
readonly components: readonly [{
|
|
181101
|
+
readonly internalType: "address";
|
|
181102
|
+
readonly name: "token";
|
|
181103
|
+
readonly type: "address";
|
|
181104
|
+
}, {
|
|
181105
|
+
readonly internalType: "uint256";
|
|
181106
|
+
readonly name: "owed";
|
|
181107
|
+
readonly type: "uint256";
|
|
181108
|
+
}];
|
|
181109
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
181110
|
+
readonly name: "rewardsOwed";
|
|
181111
|
+
readonly type: "tuple";
|
|
181112
|
+
}];
|
|
181113
|
+
readonly stateMutability: "view";
|
|
181114
|
+
readonly type: "function";
|
|
180980
181115
|
}], "getUtilization", readonly [{
|
|
180981
181116
|
baseSupplyIndex: bigint;
|
|
180982
181117
|
baseBorrowIndex: bigint;
|
|
@@ -181484,6 +181619,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
181484
181619
|
}];
|
|
181485
181620
|
readonly stateMutability: "view";
|
|
181486
181621
|
readonly type: "function";
|
|
181622
|
+
}, {
|
|
181623
|
+
readonly inputs: readonly [{
|
|
181624
|
+
readonly internalType: "address";
|
|
181625
|
+
readonly name: "_market";
|
|
181626
|
+
readonly type: "address";
|
|
181627
|
+
}, {
|
|
181628
|
+
readonly internalType: "address";
|
|
181629
|
+
readonly name: "_user";
|
|
181630
|
+
readonly type: "address";
|
|
181631
|
+
}];
|
|
181632
|
+
readonly name: "getRewardsOwed";
|
|
181633
|
+
readonly outputs: readonly [{
|
|
181634
|
+
readonly components: readonly [{
|
|
181635
|
+
readonly internalType: "address";
|
|
181636
|
+
readonly name: "token";
|
|
181637
|
+
readonly type: "address";
|
|
181638
|
+
}, {
|
|
181639
|
+
readonly internalType: "uint256";
|
|
181640
|
+
readonly name: "owed";
|
|
181641
|
+
readonly type: "uint256";
|
|
181642
|
+
}];
|
|
181643
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
181644
|
+
readonly name: "rewardsOwed";
|
|
181645
|
+
readonly type: "tuple";
|
|
181646
|
+
}];
|
|
181647
|
+
readonly stateMutability: "view";
|
|
181648
|
+
readonly type: "function";
|
|
181487
181649
|
}], "isAllowed", readonly [`0x${string}`, `0x${string}`, `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<boolean>;
|
|
181488
181650
|
getAssets: (args: readonly [`0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
181489
181651
|
readonly inputs: readonly [{
|
|
@@ -181982,6 +182144,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
181982
182144
|
}];
|
|
181983
182145
|
readonly stateMutability: "view";
|
|
181984
182146
|
readonly type: "function";
|
|
182147
|
+
}, {
|
|
182148
|
+
readonly inputs: readonly [{
|
|
182149
|
+
readonly internalType: "address";
|
|
182150
|
+
readonly name: "_market";
|
|
182151
|
+
readonly type: "address";
|
|
182152
|
+
}, {
|
|
182153
|
+
readonly internalType: "address";
|
|
182154
|
+
readonly name: "_user";
|
|
182155
|
+
readonly type: "address";
|
|
182156
|
+
}];
|
|
182157
|
+
readonly name: "getRewardsOwed";
|
|
182158
|
+
readonly outputs: readonly [{
|
|
182159
|
+
readonly components: readonly [{
|
|
182160
|
+
readonly internalType: "address";
|
|
182161
|
+
readonly name: "token";
|
|
182162
|
+
readonly type: "address";
|
|
182163
|
+
}, {
|
|
182164
|
+
readonly internalType: "uint256";
|
|
182165
|
+
readonly name: "owed";
|
|
182166
|
+
readonly type: "uint256";
|
|
182167
|
+
}];
|
|
182168
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
182169
|
+
readonly name: "rewardsOwed";
|
|
182170
|
+
readonly type: "tuple";
|
|
182171
|
+
}];
|
|
182172
|
+
readonly stateMutability: "view";
|
|
182173
|
+
readonly type: "function";
|
|
181985
182174
|
}], "getAssets", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly {
|
|
181986
182175
|
offset: number;
|
|
181987
182176
|
asset: `0x${string}`;
|
|
@@ -182489,6 +182678,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
182489
182678
|
}];
|
|
182490
182679
|
readonly stateMutability: "view";
|
|
182491
182680
|
readonly type: "function";
|
|
182681
|
+
}, {
|
|
182682
|
+
readonly inputs: readonly [{
|
|
182683
|
+
readonly internalType: "address";
|
|
182684
|
+
readonly name: "_market";
|
|
182685
|
+
readonly type: "address";
|
|
182686
|
+
}, {
|
|
182687
|
+
readonly internalType: "address";
|
|
182688
|
+
readonly name: "_user";
|
|
182689
|
+
readonly type: "address";
|
|
182690
|
+
}];
|
|
182691
|
+
readonly name: "getRewardsOwed";
|
|
182692
|
+
readonly outputs: readonly [{
|
|
182693
|
+
readonly components: readonly [{
|
|
182694
|
+
readonly internalType: "address";
|
|
182695
|
+
readonly name: "token";
|
|
182696
|
+
readonly type: "address";
|
|
182697
|
+
}, {
|
|
182698
|
+
readonly internalType: "uint256";
|
|
182699
|
+
readonly name: "owed";
|
|
182700
|
+
readonly type: "uint256";
|
|
182701
|
+
}];
|
|
182702
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
182703
|
+
readonly name: "rewardsOwed";
|
|
182704
|
+
readonly type: "tuple";
|
|
182705
|
+
}];
|
|
182706
|
+
readonly stateMutability: "view";
|
|
182707
|
+
readonly type: "function";
|
|
182492
182708
|
}], "getFullBaseTokenInfo", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<{
|
|
182493
182709
|
tokenAddr: `0x${string}`;
|
|
182494
182710
|
price: bigint;
|
|
@@ -183002,6 +183218,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
183002
183218
|
}];
|
|
183003
183219
|
readonly stateMutability: "view";
|
|
183004
183220
|
readonly type: "function";
|
|
183221
|
+
}, {
|
|
183222
|
+
readonly inputs: readonly [{
|
|
183223
|
+
readonly internalType: "address";
|
|
183224
|
+
readonly name: "_market";
|
|
183225
|
+
readonly type: "address";
|
|
183226
|
+
}, {
|
|
183227
|
+
readonly internalType: "address";
|
|
183228
|
+
readonly name: "_user";
|
|
183229
|
+
readonly type: "address";
|
|
183230
|
+
}];
|
|
183231
|
+
readonly name: "getRewardsOwed";
|
|
183232
|
+
readonly outputs: readonly [{
|
|
183233
|
+
readonly components: readonly [{
|
|
183234
|
+
readonly internalType: "address";
|
|
183235
|
+
readonly name: "token";
|
|
183236
|
+
readonly type: "address";
|
|
183237
|
+
}, {
|
|
183238
|
+
readonly internalType: "uint256";
|
|
183239
|
+
readonly name: "owed";
|
|
183240
|
+
readonly type: "uint256";
|
|
183241
|
+
}];
|
|
183242
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
183243
|
+
readonly name: "rewardsOwed";
|
|
183244
|
+
readonly type: "tuple";
|
|
183245
|
+
}];
|
|
183246
|
+
readonly stateMutability: "view";
|
|
183247
|
+
readonly type: "function";
|
|
183005
183248
|
}], "getFullCollInfos", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly {
|
|
183006
183249
|
tokenAddr: `0x${string}`;
|
|
183007
183250
|
totalSupply: bigint;
|
|
@@ -183509,15 +183752,40 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
183509
183752
|
}];
|
|
183510
183753
|
readonly stateMutability: "view";
|
|
183511
183754
|
readonly type: "function";
|
|
183755
|
+
}, {
|
|
183756
|
+
readonly inputs: readonly [{
|
|
183757
|
+
readonly internalType: "address";
|
|
183758
|
+
readonly name: "_market";
|
|
183759
|
+
readonly type: "address";
|
|
183760
|
+
}, {
|
|
183761
|
+
readonly internalType: "address";
|
|
183762
|
+
readonly name: "_user";
|
|
183763
|
+
readonly type: "address";
|
|
183764
|
+
}];
|
|
183765
|
+
readonly name: "getRewardsOwed";
|
|
183766
|
+
readonly outputs: readonly [{
|
|
183767
|
+
readonly components: readonly [{
|
|
183768
|
+
readonly internalType: "address";
|
|
183769
|
+
readonly name: "token";
|
|
183770
|
+
readonly type: "address";
|
|
183771
|
+
}, {
|
|
183772
|
+
readonly internalType: "uint256";
|
|
183773
|
+
readonly name: "owed";
|
|
183774
|
+
readonly type: "uint256";
|
|
183775
|
+
}];
|
|
183776
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
183777
|
+
readonly name: "rewardsOwed";
|
|
183778
|
+
readonly type: "tuple";
|
|
183779
|
+
}];
|
|
183780
|
+
readonly stateMutability: "view";
|
|
183781
|
+
readonly type: "function";
|
|
183512
183782
|
}], "getGovernanceInfoFull", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<{
|
|
183513
183783
|
isSupplyPaused: boolean;
|
|
183514
183784
|
isTransferPaused: boolean;
|
|
183515
183785
|
isWithdrawPaused: boolean;
|
|
183516
183786
|
isAbsorbPaused: boolean;
|
|
183517
183787
|
}>;
|
|
183518
|
-
|
|
183519
|
-
estimateGas: {
|
|
183520
|
-
getFullCollInfo: (args: readonly [`0x${string}`, `0x${string}`], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<readonly [{
|
|
183788
|
+
getRewardsOwed: (args: readonly [`0x${string}`, `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
183521
183789
|
readonly inputs: readonly [{
|
|
183522
183790
|
readonly internalType: "address";
|
|
183523
183791
|
readonly name: "_market";
|
|
@@ -184014,8 +184282,40 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
184014
184282
|
}];
|
|
184015
184283
|
readonly stateMutability: "view";
|
|
184016
184284
|
readonly type: "function";
|
|
184017
|
-
}
|
|
184018
|
-
|
|
184285
|
+
}, {
|
|
184286
|
+
readonly inputs: readonly [{
|
|
184287
|
+
readonly internalType: "address";
|
|
184288
|
+
readonly name: "_market";
|
|
184289
|
+
readonly type: "address";
|
|
184290
|
+
}, {
|
|
184291
|
+
readonly internalType: "address";
|
|
184292
|
+
readonly name: "_user";
|
|
184293
|
+
readonly type: "address";
|
|
184294
|
+
}];
|
|
184295
|
+
readonly name: "getRewardsOwed";
|
|
184296
|
+
readonly outputs: readonly [{
|
|
184297
|
+
readonly components: readonly [{
|
|
184298
|
+
readonly internalType: "address";
|
|
184299
|
+
readonly name: "token";
|
|
184300
|
+
readonly type: "address";
|
|
184301
|
+
}, {
|
|
184302
|
+
readonly internalType: "uint256";
|
|
184303
|
+
readonly name: "owed";
|
|
184304
|
+
readonly type: "uint256";
|
|
184305
|
+
}];
|
|
184306
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
184307
|
+
readonly name: "rewardsOwed";
|
|
184308
|
+
readonly type: "tuple";
|
|
184309
|
+
}];
|
|
184310
|
+
readonly stateMutability: "view";
|
|
184311
|
+
readonly type: "function";
|
|
184312
|
+
}], "getRewardsOwed", readonly [`0x${string}`, `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<{
|
|
184313
|
+
token: `0x${string}`;
|
|
184314
|
+
owed: bigint;
|
|
184315
|
+
}>;
|
|
184316
|
+
};
|
|
184317
|
+
estimateGas: {
|
|
184318
|
+
getFullCollInfo: (args: readonly [`0x${string}`, `0x${string}`], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<readonly [{
|
|
184019
184319
|
readonly inputs: readonly [{
|
|
184020
184320
|
readonly internalType: "address";
|
|
184021
184321
|
readonly name: "_market";
|
|
@@ -184512,9 +184812,35 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
184512
184812
|
}];
|
|
184513
184813
|
readonly stateMutability: "view";
|
|
184514
184814
|
readonly type: "function";
|
|
184515
|
-
}
|
|
184516
|
-
|
|
184517
|
-
|
|
184815
|
+
}, {
|
|
184816
|
+
readonly inputs: readonly [{
|
|
184817
|
+
readonly internalType: "address";
|
|
184818
|
+
readonly name: "_market";
|
|
184819
|
+
readonly type: "address";
|
|
184820
|
+
}, {
|
|
184821
|
+
readonly internalType: "address";
|
|
184822
|
+
readonly name: "_user";
|
|
184823
|
+
readonly type: "address";
|
|
184824
|
+
}];
|
|
184825
|
+
readonly name: "getRewardsOwed";
|
|
184826
|
+
readonly outputs: readonly [{
|
|
184827
|
+
readonly components: readonly [{
|
|
184828
|
+
readonly internalType: "address";
|
|
184829
|
+
readonly name: "token";
|
|
184830
|
+
readonly type: "address";
|
|
184831
|
+
}, {
|
|
184832
|
+
readonly internalType: "uint256";
|
|
184833
|
+
readonly name: "owed";
|
|
184834
|
+
readonly type: "uint256";
|
|
184835
|
+
}];
|
|
184836
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
184837
|
+
readonly name: "rewardsOwed";
|
|
184838
|
+
readonly type: "tuple";
|
|
184839
|
+
}];
|
|
184840
|
+
readonly stateMutability: "view";
|
|
184841
|
+
readonly type: "function";
|
|
184842
|
+
}], "getFullCollInfo", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
184843
|
+
getRewardsOwed: (args: readonly [`0x${string}`, `0x${string}`], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<readonly [{
|
|
184518
184844
|
readonly inputs: readonly [{
|
|
184519
184845
|
readonly internalType: "address";
|
|
184520
184846
|
readonly name: "_market";
|
|
@@ -185011,8 +185337,36 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
185011
185337
|
}];
|
|
185012
185338
|
readonly stateMutability: "view";
|
|
185013
185339
|
readonly type: "function";
|
|
185014
|
-
}
|
|
185015
|
-
|
|
185340
|
+
}, {
|
|
185341
|
+
readonly inputs: readonly [{
|
|
185342
|
+
readonly internalType: "address";
|
|
185343
|
+
readonly name: "_market";
|
|
185344
|
+
readonly type: "address";
|
|
185345
|
+
}, {
|
|
185346
|
+
readonly internalType: "address";
|
|
185347
|
+
readonly name: "_user";
|
|
185348
|
+
readonly type: "address";
|
|
185349
|
+
}];
|
|
185350
|
+
readonly name: "getRewardsOwed";
|
|
185351
|
+
readonly outputs: readonly [{
|
|
185352
|
+
readonly components: readonly [{
|
|
185353
|
+
readonly internalType: "address";
|
|
185354
|
+
readonly name: "token";
|
|
185355
|
+
readonly type: "address";
|
|
185356
|
+
}, {
|
|
185357
|
+
readonly internalType: "uint256";
|
|
185358
|
+
readonly name: "owed";
|
|
185359
|
+
readonly type: "uint256";
|
|
185360
|
+
}];
|
|
185361
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
185362
|
+
readonly name: "rewardsOwed";
|
|
185363
|
+
readonly type: "tuple";
|
|
185364
|
+
}];
|
|
185365
|
+
readonly stateMutability: "view";
|
|
185366
|
+
readonly type: "function";
|
|
185367
|
+
}], "getRewardsOwed", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
185368
|
+
} & {
|
|
185369
|
+
getFullCollInfo: (args: readonly [`0x${string}`, `0x${string}`], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<readonly [{
|
|
185016
185370
|
readonly inputs: readonly [{
|
|
185017
185371
|
readonly internalType: "address";
|
|
185018
185372
|
readonly name: "_market";
|
|
@@ -185509,10 +185863,35 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
185509
185863
|
}];
|
|
185510
185864
|
readonly stateMutability: "view";
|
|
185511
185865
|
readonly type: "function";
|
|
185512
|
-
}
|
|
185513
|
-
|
|
185514
|
-
|
|
185515
|
-
|
|
185866
|
+
}, {
|
|
185867
|
+
readonly inputs: readonly [{
|
|
185868
|
+
readonly internalType: "address";
|
|
185869
|
+
readonly name: "_market";
|
|
185870
|
+
readonly type: "address";
|
|
185871
|
+
}, {
|
|
185872
|
+
readonly internalType: "address";
|
|
185873
|
+
readonly name: "_user";
|
|
185874
|
+
readonly type: "address";
|
|
185875
|
+
}];
|
|
185876
|
+
readonly name: "getRewardsOwed";
|
|
185877
|
+
readonly outputs: readonly [{
|
|
185878
|
+
readonly components: readonly [{
|
|
185879
|
+
readonly internalType: "address";
|
|
185880
|
+
readonly name: "token";
|
|
185881
|
+
readonly type: "address";
|
|
185882
|
+
}, {
|
|
185883
|
+
readonly internalType: "uint256";
|
|
185884
|
+
readonly name: "owed";
|
|
185885
|
+
readonly type: "uint256";
|
|
185886
|
+
}];
|
|
185887
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
185888
|
+
readonly name: "rewardsOwed";
|
|
185889
|
+
readonly type: "tuple";
|
|
185890
|
+
}];
|
|
185891
|
+
readonly stateMutability: "view";
|
|
185892
|
+
readonly type: "function";
|
|
185893
|
+
}], "getFullCollInfo", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
185894
|
+
getRewardsOwed: (args: readonly [`0x${string}`, `0x${string}`], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<readonly [{
|
|
185516
185895
|
readonly inputs: readonly [{
|
|
185517
185896
|
readonly internalType: "address";
|
|
185518
185897
|
readonly name: "_market";
|
|
@@ -186009,7 +186388,37 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
186009
186388
|
}];
|
|
186010
186389
|
readonly stateMutability: "view";
|
|
186011
186390
|
readonly type: "function";
|
|
186012
|
-
}
|
|
186391
|
+
}, {
|
|
186392
|
+
readonly inputs: readonly [{
|
|
186393
|
+
readonly internalType: "address";
|
|
186394
|
+
readonly name: "_market";
|
|
186395
|
+
readonly type: "address";
|
|
186396
|
+
}, {
|
|
186397
|
+
readonly internalType: "address";
|
|
186398
|
+
readonly name: "_user";
|
|
186399
|
+
readonly type: "address";
|
|
186400
|
+
}];
|
|
186401
|
+
readonly name: "getRewardsOwed";
|
|
186402
|
+
readonly outputs: readonly [{
|
|
186403
|
+
readonly components: readonly [{
|
|
186404
|
+
readonly internalType: "address";
|
|
186405
|
+
readonly name: "token";
|
|
186406
|
+
readonly type: "address";
|
|
186407
|
+
}, {
|
|
186408
|
+
readonly internalType: "uint256";
|
|
186409
|
+
readonly name: "owed";
|
|
186410
|
+
readonly type: "uint256";
|
|
186411
|
+
}];
|
|
186412
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
186413
|
+
readonly name: "rewardsOwed";
|
|
186414
|
+
readonly type: "tuple";
|
|
186415
|
+
}];
|
|
186416
|
+
readonly stateMutability: "view";
|
|
186417
|
+
readonly type: "function";
|
|
186418
|
+
}], "getRewardsOwed", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
186419
|
+
};
|
|
186420
|
+
simulate: {
|
|
186421
|
+
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 [{
|
|
186013
186422
|
readonly inputs: readonly [{
|
|
186014
186423
|
readonly internalType: "address";
|
|
186015
186424
|
readonly name: "_market";
|
|
@@ -186506,8 +186915,34 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
186506
186915
|
}];
|
|
186507
186916
|
readonly stateMutability: "view";
|
|
186508
186917
|
readonly type: "function";
|
|
186509
|
-
}
|
|
186510
|
-
|
|
186918
|
+
}, {
|
|
186919
|
+
readonly inputs: readonly [{
|
|
186920
|
+
readonly internalType: "address";
|
|
186921
|
+
readonly name: "_market";
|
|
186922
|
+
readonly type: "address";
|
|
186923
|
+
}, {
|
|
186924
|
+
readonly internalType: "address";
|
|
186925
|
+
readonly name: "_user";
|
|
186926
|
+
readonly type: "address";
|
|
186927
|
+
}];
|
|
186928
|
+
readonly name: "getRewardsOwed";
|
|
186929
|
+
readonly outputs: readonly [{
|
|
186930
|
+
readonly components: readonly [{
|
|
186931
|
+
readonly internalType: "address";
|
|
186932
|
+
readonly name: "token";
|
|
186933
|
+
readonly type: "address";
|
|
186934
|
+
}, {
|
|
186935
|
+
readonly internalType: "uint256";
|
|
186936
|
+
readonly name: "owed";
|
|
186937
|
+
readonly type: "uint256";
|
|
186938
|
+
}];
|
|
186939
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
186940
|
+
readonly name: "rewardsOwed";
|
|
186941
|
+
readonly type: "tuple";
|
|
186942
|
+
}];
|
|
186943
|
+
readonly stateMutability: "view";
|
|
186944
|
+
readonly type: "function";
|
|
186945
|
+
}], "getFullCollInfo", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "args" | "abi" | "functionName"> | undefined) => Promise<import("viem").SimulateContractReturnType<readonly [{
|
|
186511
186946
|
readonly inputs: readonly [{
|
|
186512
186947
|
readonly internalType: "address";
|
|
186513
186948
|
readonly name: "_market";
|
|
@@ -187004,7 +187439,35 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
187004
187439
|
}];
|
|
187005
187440
|
readonly stateMutability: "view";
|
|
187006
187441
|
readonly type: "function";
|
|
187007
|
-
}
|
|
187442
|
+
}, {
|
|
187443
|
+
readonly inputs: readonly [{
|
|
187444
|
+
readonly internalType: "address";
|
|
187445
|
+
readonly name: "_market";
|
|
187446
|
+
readonly type: "address";
|
|
187447
|
+
}, {
|
|
187448
|
+
readonly internalType: "address";
|
|
187449
|
+
readonly name: "_user";
|
|
187450
|
+
readonly type: "address";
|
|
187451
|
+
}];
|
|
187452
|
+
readonly name: "getRewardsOwed";
|
|
187453
|
+
readonly outputs: readonly [{
|
|
187454
|
+
readonly components: readonly [{
|
|
187455
|
+
readonly internalType: "address";
|
|
187456
|
+
readonly name: "token";
|
|
187457
|
+
readonly type: "address";
|
|
187458
|
+
}, {
|
|
187459
|
+
readonly internalType: "uint256";
|
|
187460
|
+
readonly name: "owed";
|
|
187461
|
+
readonly type: "uint256";
|
|
187462
|
+
}];
|
|
187463
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
187464
|
+
readonly name: "rewardsOwed";
|
|
187465
|
+
readonly type: "tuple";
|
|
187466
|
+
}];
|
|
187467
|
+
readonly stateMutability: "view";
|
|
187468
|
+
readonly type: "function";
|
|
187469
|
+
}], "getFullCollInfo", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride, accountOverride>>;
|
|
187470
|
+
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 [{
|
|
187008
187471
|
readonly inputs: readonly [{
|
|
187009
187472
|
readonly internalType: "address";
|
|
187010
187473
|
readonly name: "_market";
|
|
@@ -187501,10 +187964,34 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
187501
187964
|
}];
|
|
187502
187965
|
readonly stateMutability: "view";
|
|
187503
187966
|
readonly type: "function";
|
|
187504
|
-
}
|
|
187505
|
-
|
|
187506
|
-
|
|
187507
|
-
|
|
187967
|
+
}, {
|
|
187968
|
+
readonly inputs: readonly [{
|
|
187969
|
+
readonly internalType: "address";
|
|
187970
|
+
readonly name: "_market";
|
|
187971
|
+
readonly type: "address";
|
|
187972
|
+
}, {
|
|
187973
|
+
readonly internalType: "address";
|
|
187974
|
+
readonly name: "_user";
|
|
187975
|
+
readonly type: "address";
|
|
187976
|
+
}];
|
|
187977
|
+
readonly name: "getRewardsOwed";
|
|
187978
|
+
readonly outputs: readonly [{
|
|
187979
|
+
readonly components: readonly [{
|
|
187980
|
+
readonly internalType: "address";
|
|
187981
|
+
readonly name: "token";
|
|
187982
|
+
readonly type: "address";
|
|
187983
|
+
}, {
|
|
187984
|
+
readonly internalType: "uint256";
|
|
187985
|
+
readonly name: "owed";
|
|
187986
|
+
readonly type: "uint256";
|
|
187987
|
+
}];
|
|
187988
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
187989
|
+
readonly name: "rewardsOwed";
|
|
187990
|
+
readonly type: "tuple";
|
|
187991
|
+
}];
|
|
187992
|
+
readonly stateMutability: "view";
|
|
187993
|
+
readonly type: "function";
|
|
187994
|
+
}], "getRewardsOwed", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "args" | "abi" | "functionName"> | undefined) => Promise<import("viem").SimulateContractReturnType<readonly [{
|
|
187508
187995
|
readonly inputs: readonly [{
|
|
187509
187996
|
readonly internalType: "address";
|
|
187510
187997
|
readonly name: "_market";
|
|
@@ -188001,7 +188488,37 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
188001
188488
|
}];
|
|
188002
188489
|
readonly stateMutability: "view";
|
|
188003
188490
|
readonly type: "function";
|
|
188004
|
-
}
|
|
188491
|
+
}, {
|
|
188492
|
+
readonly inputs: readonly [{
|
|
188493
|
+
readonly internalType: "address";
|
|
188494
|
+
readonly name: "_market";
|
|
188495
|
+
readonly type: "address";
|
|
188496
|
+
}, {
|
|
188497
|
+
readonly internalType: "address";
|
|
188498
|
+
readonly name: "_user";
|
|
188499
|
+
readonly type: "address";
|
|
188500
|
+
}];
|
|
188501
|
+
readonly name: "getRewardsOwed";
|
|
188502
|
+
readonly outputs: readonly [{
|
|
188503
|
+
readonly components: readonly [{
|
|
188504
|
+
readonly internalType: "address";
|
|
188505
|
+
readonly name: "token";
|
|
188506
|
+
readonly type: "address";
|
|
188507
|
+
}, {
|
|
188508
|
+
readonly internalType: "uint256";
|
|
188509
|
+
readonly name: "owed";
|
|
188510
|
+
readonly type: "uint256";
|
|
188511
|
+
}];
|
|
188512
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
188513
|
+
readonly name: "rewardsOwed";
|
|
188514
|
+
readonly type: "tuple";
|
|
188515
|
+
}];
|
|
188516
|
+
readonly stateMutability: "view";
|
|
188517
|
+
readonly type: "function";
|
|
188518
|
+
}], "getRewardsOwed", readonly [`0x${string}`, `0x${string}`], import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride, accountOverride>>;
|
|
188519
|
+
};
|
|
188520
|
+
write: {
|
|
188521
|
+
getFullCollInfo: <chainOverride extends import("viem").Chain | undefined, options extends import("viem").UnionOmit<import("viem").WriteContractParameters<readonly [{
|
|
188005
188522
|
readonly inputs: readonly [{
|
|
188006
188523
|
readonly internalType: "address";
|
|
188007
188524
|
readonly name: "_market";
|
|
@@ -188498,6 +189015,557 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
188498
189015
|
}];
|
|
188499
189016
|
readonly stateMutability: "view";
|
|
188500
189017
|
readonly type: "function";
|
|
189018
|
+
}, {
|
|
189019
|
+
readonly inputs: readonly [{
|
|
189020
|
+
readonly internalType: "address";
|
|
189021
|
+
readonly name: "_market";
|
|
189022
|
+
readonly type: "address";
|
|
189023
|
+
}, {
|
|
189024
|
+
readonly internalType: "address";
|
|
189025
|
+
readonly name: "_user";
|
|
189026
|
+
readonly type: "address";
|
|
189027
|
+
}];
|
|
189028
|
+
readonly name: "getRewardsOwed";
|
|
189029
|
+
readonly outputs: readonly [{
|
|
189030
|
+
readonly components: readonly [{
|
|
189031
|
+
readonly internalType: "address";
|
|
189032
|
+
readonly name: "token";
|
|
189033
|
+
readonly type: "address";
|
|
189034
|
+
}, {
|
|
189035
|
+
readonly internalType: "uint256";
|
|
189036
|
+
readonly name: "owed";
|
|
189037
|
+
readonly type: "uint256";
|
|
189038
|
+
}];
|
|
189039
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
189040
|
+
readonly name: "rewardsOwed";
|
|
189041
|
+
readonly type: "tuple";
|
|
189042
|
+
}];
|
|
189043
|
+
readonly stateMutability: "view";
|
|
189044
|
+
readonly type: "function";
|
|
189045
|
+
}], "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 [{
|
|
189046
|
+
readonly inputs: readonly [{
|
|
189047
|
+
readonly internalType: "address";
|
|
189048
|
+
readonly name: "_market";
|
|
189049
|
+
readonly type: "address";
|
|
189050
|
+
}, {
|
|
189051
|
+
readonly internalType: "address";
|
|
189052
|
+
readonly name: "_user";
|
|
189053
|
+
readonly type: "address";
|
|
189054
|
+
}, {
|
|
189055
|
+
readonly internalType: "uint256";
|
|
189056
|
+
readonly name: "_supplyAmount";
|
|
189057
|
+
readonly type: "uint256";
|
|
189058
|
+
}, {
|
|
189059
|
+
readonly internalType: "uint256";
|
|
189060
|
+
readonly name: "_borrowAmount";
|
|
189061
|
+
readonly type: "uint256";
|
|
189062
|
+
}];
|
|
189063
|
+
readonly name: "getApyAfterValuesEstimation";
|
|
189064
|
+
readonly outputs: readonly [{
|
|
189065
|
+
readonly internalType: "uint256";
|
|
189066
|
+
readonly name: "utilization";
|
|
189067
|
+
readonly type: "uint256";
|
|
189068
|
+
}, {
|
|
189069
|
+
readonly internalType: "uint256";
|
|
189070
|
+
readonly name: "supplyRate";
|
|
189071
|
+
readonly type: "uint256";
|
|
189072
|
+
}, {
|
|
189073
|
+
readonly internalType: "uint256";
|
|
189074
|
+
readonly name: "borrowRate";
|
|
189075
|
+
readonly type: "uint256";
|
|
189076
|
+
}];
|
|
189077
|
+
readonly stateMutability: "view";
|
|
189078
|
+
readonly type: "function";
|
|
189079
|
+
}, {
|
|
189080
|
+
readonly inputs: readonly [{
|
|
189081
|
+
readonly internalType: "address";
|
|
189082
|
+
readonly name: "_market";
|
|
189083
|
+
readonly type: "address";
|
|
189084
|
+
}, {
|
|
189085
|
+
readonly internalType: "address";
|
|
189086
|
+
readonly name: "_tokenAddr";
|
|
189087
|
+
readonly type: "address";
|
|
189088
|
+
}];
|
|
189089
|
+
readonly name: "getAssetPrice";
|
|
189090
|
+
readonly outputs: readonly [{
|
|
189091
|
+
readonly internalType: "uint256";
|
|
189092
|
+
readonly name: "";
|
|
189093
|
+
readonly type: "uint256";
|
|
189094
|
+
}];
|
|
189095
|
+
readonly stateMutability: "view";
|
|
189096
|
+
readonly type: "function";
|
|
189097
|
+
}, {
|
|
189098
|
+
readonly inputs: readonly [{
|
|
189099
|
+
readonly internalType: "address";
|
|
189100
|
+
readonly name: "_market";
|
|
189101
|
+
readonly type: "address";
|
|
189102
|
+
}];
|
|
189103
|
+
readonly name: "getAssets";
|
|
189104
|
+
readonly outputs: readonly [{
|
|
189105
|
+
readonly components: readonly [{
|
|
189106
|
+
readonly internalType: "uint8";
|
|
189107
|
+
readonly name: "offset";
|
|
189108
|
+
readonly type: "uint8";
|
|
189109
|
+
}, {
|
|
189110
|
+
readonly internalType: "address";
|
|
189111
|
+
readonly name: "asset";
|
|
189112
|
+
readonly type: "address";
|
|
189113
|
+
}, {
|
|
189114
|
+
readonly internalType: "address";
|
|
189115
|
+
readonly name: "priceFeed";
|
|
189116
|
+
readonly type: "address";
|
|
189117
|
+
}, {
|
|
189118
|
+
readonly internalType: "uint64";
|
|
189119
|
+
readonly name: "scale";
|
|
189120
|
+
readonly type: "uint64";
|
|
189121
|
+
}, {
|
|
189122
|
+
readonly internalType: "uint64";
|
|
189123
|
+
readonly name: "borrowCollateralFactor";
|
|
189124
|
+
readonly type: "uint64";
|
|
189125
|
+
}, {
|
|
189126
|
+
readonly internalType: "uint64";
|
|
189127
|
+
readonly name: "liquidateCollateralFactor";
|
|
189128
|
+
readonly type: "uint64";
|
|
189129
|
+
}, {
|
|
189130
|
+
readonly internalType: "uint64";
|
|
189131
|
+
readonly name: "liquidationFactor";
|
|
189132
|
+
readonly type: "uint64";
|
|
189133
|
+
}, {
|
|
189134
|
+
readonly internalType: "uint128";
|
|
189135
|
+
readonly name: "supplyCap";
|
|
189136
|
+
readonly type: "uint128";
|
|
189137
|
+
}];
|
|
189138
|
+
readonly internalType: "struct IComet.AssetInfo[]";
|
|
189139
|
+
readonly name: "assets";
|
|
189140
|
+
readonly type: "tuple[]";
|
|
189141
|
+
}];
|
|
189142
|
+
readonly stateMutability: "view";
|
|
189143
|
+
readonly type: "function";
|
|
189144
|
+
}, {
|
|
189145
|
+
readonly inputs: readonly [{
|
|
189146
|
+
readonly internalType: "address";
|
|
189147
|
+
readonly name: "_market";
|
|
189148
|
+
readonly type: "address";
|
|
189149
|
+
}];
|
|
189150
|
+
readonly name: "getFullBaseTokenInfo";
|
|
189151
|
+
readonly outputs: readonly [{
|
|
189152
|
+
readonly components: readonly [{
|
|
189153
|
+
readonly internalType: "address";
|
|
189154
|
+
readonly name: "tokenAddr";
|
|
189155
|
+
readonly type: "address";
|
|
189156
|
+
}, {
|
|
189157
|
+
readonly internalType: "uint256";
|
|
189158
|
+
readonly name: "price";
|
|
189159
|
+
readonly type: "uint256";
|
|
189160
|
+
}, {
|
|
189161
|
+
readonly internalType: "uint256";
|
|
189162
|
+
readonly name: "supplyIndex";
|
|
189163
|
+
readonly type: "uint256";
|
|
189164
|
+
}, {
|
|
189165
|
+
readonly internalType: "uint256";
|
|
189166
|
+
readonly name: "borrowIndex";
|
|
189167
|
+
readonly type: "uint256";
|
|
189168
|
+
}, {
|
|
189169
|
+
readonly internalType: "uint256";
|
|
189170
|
+
readonly name: "trackingSupplyIndex";
|
|
189171
|
+
readonly type: "uint256";
|
|
189172
|
+
}, {
|
|
189173
|
+
readonly internalType: "uint256";
|
|
189174
|
+
readonly name: "trackingBorrowIndex";
|
|
189175
|
+
readonly type: "uint256";
|
|
189176
|
+
}, {
|
|
189177
|
+
readonly internalType: "uint256";
|
|
189178
|
+
readonly name: "supplyRate";
|
|
189179
|
+
readonly type: "uint256";
|
|
189180
|
+
}, {
|
|
189181
|
+
readonly internalType: "uint256";
|
|
189182
|
+
readonly name: "borrowRate";
|
|
189183
|
+
readonly type: "uint256";
|
|
189184
|
+
}, {
|
|
189185
|
+
readonly internalType: "uint256";
|
|
189186
|
+
readonly name: "totalSupply";
|
|
189187
|
+
readonly type: "uint256";
|
|
189188
|
+
}, {
|
|
189189
|
+
readonly internalType: "uint256";
|
|
189190
|
+
readonly name: "totalBorrow";
|
|
189191
|
+
readonly type: "uint256";
|
|
189192
|
+
}, {
|
|
189193
|
+
readonly internalType: "uint256";
|
|
189194
|
+
readonly name: "utilization";
|
|
189195
|
+
readonly type: "uint256";
|
|
189196
|
+
}, {
|
|
189197
|
+
readonly internalType: "uint256";
|
|
189198
|
+
readonly name: "baseBorrowMin";
|
|
189199
|
+
readonly type: "uint256";
|
|
189200
|
+
}, {
|
|
189201
|
+
readonly internalType: "uint256";
|
|
189202
|
+
readonly name: "baseTrackingBorrowRewardsSpeed";
|
|
189203
|
+
readonly type: "uint256";
|
|
189204
|
+
}, {
|
|
189205
|
+
readonly internalType: "uint256";
|
|
189206
|
+
readonly name: "baseTrackingSupplyRewardsSpeed";
|
|
189207
|
+
readonly type: "uint256";
|
|
189208
|
+
}];
|
|
189209
|
+
readonly internalType: "struct CompV3View.BaseTokenInfoFull";
|
|
189210
|
+
readonly name: "baseToken";
|
|
189211
|
+
readonly type: "tuple";
|
|
189212
|
+
}];
|
|
189213
|
+
readonly stateMutability: "view";
|
|
189214
|
+
readonly type: "function";
|
|
189215
|
+
}, {
|
|
189216
|
+
readonly inputs: readonly [{
|
|
189217
|
+
readonly internalType: "address";
|
|
189218
|
+
readonly name: "_market";
|
|
189219
|
+
readonly type: "address";
|
|
189220
|
+
}, {
|
|
189221
|
+
readonly internalType: "address";
|
|
189222
|
+
readonly name: "_tokenAddr";
|
|
189223
|
+
readonly type: "address";
|
|
189224
|
+
}];
|
|
189225
|
+
readonly name: "getFullCollInfo";
|
|
189226
|
+
readonly outputs: readonly [{
|
|
189227
|
+
readonly components: readonly [{
|
|
189228
|
+
readonly internalType: "address";
|
|
189229
|
+
readonly name: "tokenAddr";
|
|
189230
|
+
readonly type: "address";
|
|
189231
|
+
}, {
|
|
189232
|
+
readonly internalType: "uint256";
|
|
189233
|
+
readonly name: "totalSupply";
|
|
189234
|
+
readonly type: "uint256";
|
|
189235
|
+
}, {
|
|
189236
|
+
readonly internalType: "uint256";
|
|
189237
|
+
readonly name: "supplyReserved";
|
|
189238
|
+
readonly type: "uint256";
|
|
189239
|
+
}, {
|
|
189240
|
+
readonly internalType: "uint256";
|
|
189241
|
+
readonly name: "borrowCollateralFactor";
|
|
189242
|
+
readonly type: "uint256";
|
|
189243
|
+
}, {
|
|
189244
|
+
readonly internalType: "uint256";
|
|
189245
|
+
readonly name: "liquidateCollateralFactor";
|
|
189246
|
+
readonly type: "uint256";
|
|
189247
|
+
}, {
|
|
189248
|
+
readonly internalType: "uint256";
|
|
189249
|
+
readonly name: "liquidationFactor";
|
|
189250
|
+
readonly type: "uint256";
|
|
189251
|
+
}, {
|
|
189252
|
+
readonly internalType: "uint256";
|
|
189253
|
+
readonly name: "price";
|
|
189254
|
+
readonly type: "uint256";
|
|
189255
|
+
}, {
|
|
189256
|
+
readonly internalType: "uint256";
|
|
189257
|
+
readonly name: "supplyCap";
|
|
189258
|
+
readonly type: "uint256";
|
|
189259
|
+
}];
|
|
189260
|
+
readonly internalType: "struct CompV3View.CollateralInfoFull";
|
|
189261
|
+
readonly name: "coll";
|
|
189262
|
+
readonly type: "tuple";
|
|
189263
|
+
}];
|
|
189264
|
+
readonly stateMutability: "nonpayable";
|
|
189265
|
+
readonly type: "function";
|
|
189266
|
+
}, {
|
|
189267
|
+
readonly inputs: readonly [{
|
|
189268
|
+
readonly internalType: "address";
|
|
189269
|
+
readonly name: "_market";
|
|
189270
|
+
readonly type: "address";
|
|
189271
|
+
}];
|
|
189272
|
+
readonly name: "getFullCollInfos";
|
|
189273
|
+
readonly outputs: readonly [{
|
|
189274
|
+
readonly components: readonly [{
|
|
189275
|
+
readonly internalType: "address";
|
|
189276
|
+
readonly name: "tokenAddr";
|
|
189277
|
+
readonly type: "address";
|
|
189278
|
+
}, {
|
|
189279
|
+
readonly internalType: "uint256";
|
|
189280
|
+
readonly name: "totalSupply";
|
|
189281
|
+
readonly type: "uint256";
|
|
189282
|
+
}, {
|
|
189283
|
+
readonly internalType: "uint256";
|
|
189284
|
+
readonly name: "supplyReserved";
|
|
189285
|
+
readonly type: "uint256";
|
|
189286
|
+
}, {
|
|
189287
|
+
readonly internalType: "uint256";
|
|
189288
|
+
readonly name: "borrowCollateralFactor";
|
|
189289
|
+
readonly type: "uint256";
|
|
189290
|
+
}, {
|
|
189291
|
+
readonly internalType: "uint256";
|
|
189292
|
+
readonly name: "liquidateCollateralFactor";
|
|
189293
|
+
readonly type: "uint256";
|
|
189294
|
+
}, {
|
|
189295
|
+
readonly internalType: "uint256";
|
|
189296
|
+
readonly name: "liquidationFactor";
|
|
189297
|
+
readonly type: "uint256";
|
|
189298
|
+
}, {
|
|
189299
|
+
readonly internalType: "uint256";
|
|
189300
|
+
readonly name: "price";
|
|
189301
|
+
readonly type: "uint256";
|
|
189302
|
+
}, {
|
|
189303
|
+
readonly internalType: "uint256";
|
|
189304
|
+
readonly name: "supplyCap";
|
|
189305
|
+
readonly type: "uint256";
|
|
189306
|
+
}];
|
|
189307
|
+
readonly internalType: "struct CompV3View.CollateralInfoFull[]";
|
|
189308
|
+
readonly name: "colls";
|
|
189309
|
+
readonly type: "tuple[]";
|
|
189310
|
+
}];
|
|
189311
|
+
readonly stateMutability: "view";
|
|
189312
|
+
readonly type: "function";
|
|
189313
|
+
}, {
|
|
189314
|
+
readonly inputs: readonly [{
|
|
189315
|
+
readonly internalType: "address";
|
|
189316
|
+
readonly name: "_market";
|
|
189317
|
+
readonly type: "address";
|
|
189318
|
+
}];
|
|
189319
|
+
readonly name: "getGovernanceInfoFull";
|
|
189320
|
+
readonly outputs: readonly [{
|
|
189321
|
+
readonly components: readonly [{
|
|
189322
|
+
readonly internalType: "bool";
|
|
189323
|
+
readonly name: "isSupplyPaused";
|
|
189324
|
+
readonly type: "bool";
|
|
189325
|
+
}, {
|
|
189326
|
+
readonly internalType: "bool";
|
|
189327
|
+
readonly name: "isTransferPaused";
|
|
189328
|
+
readonly type: "bool";
|
|
189329
|
+
}, {
|
|
189330
|
+
readonly internalType: "bool";
|
|
189331
|
+
readonly name: "isWithdrawPaused";
|
|
189332
|
+
readonly type: "bool";
|
|
189333
|
+
}, {
|
|
189334
|
+
readonly internalType: "bool";
|
|
189335
|
+
readonly name: "isAbsorbPaused";
|
|
189336
|
+
readonly type: "bool";
|
|
189337
|
+
}];
|
|
189338
|
+
readonly internalType: "struct CompV3View.GovernanceInfoFull";
|
|
189339
|
+
readonly name: "govInfo";
|
|
189340
|
+
readonly type: "tuple";
|
|
189341
|
+
}];
|
|
189342
|
+
readonly stateMutability: "view";
|
|
189343
|
+
readonly type: "function";
|
|
189344
|
+
}, {
|
|
189345
|
+
readonly inputs: readonly [{
|
|
189346
|
+
readonly internalType: "address";
|
|
189347
|
+
readonly name: "_market";
|
|
189348
|
+
readonly type: "address";
|
|
189349
|
+
}, {
|
|
189350
|
+
readonly internalType: "address";
|
|
189351
|
+
readonly name: "_user";
|
|
189352
|
+
readonly type: "address";
|
|
189353
|
+
}];
|
|
189354
|
+
readonly name: "getLoanData";
|
|
189355
|
+
readonly outputs: readonly [{
|
|
189356
|
+
readonly components: readonly [{
|
|
189357
|
+
readonly internalType: "address";
|
|
189358
|
+
readonly name: "user";
|
|
189359
|
+
readonly type: "address";
|
|
189360
|
+
}, {
|
|
189361
|
+
readonly internalType: "address[]";
|
|
189362
|
+
readonly name: "collAddr";
|
|
189363
|
+
readonly type: "address[]";
|
|
189364
|
+
}, {
|
|
189365
|
+
readonly internalType: "uint256[]";
|
|
189366
|
+
readonly name: "collAmounts";
|
|
189367
|
+
readonly type: "uint256[]";
|
|
189368
|
+
}, {
|
|
189369
|
+
readonly internalType: "uint256";
|
|
189370
|
+
readonly name: "depositAmount";
|
|
189371
|
+
readonly type: "uint256";
|
|
189372
|
+
}, {
|
|
189373
|
+
readonly internalType: "uint256";
|
|
189374
|
+
readonly name: "depositValue";
|
|
189375
|
+
readonly type: "uint256";
|
|
189376
|
+
}, {
|
|
189377
|
+
readonly internalType: "uint256";
|
|
189378
|
+
readonly name: "borrowAmount";
|
|
189379
|
+
readonly type: "uint256";
|
|
189380
|
+
}, {
|
|
189381
|
+
readonly internalType: "uint256";
|
|
189382
|
+
readonly name: "borrowValue";
|
|
189383
|
+
readonly type: "uint256";
|
|
189384
|
+
}, {
|
|
189385
|
+
readonly internalType: "uint256";
|
|
189386
|
+
readonly name: "collValue";
|
|
189387
|
+
readonly type: "uint256";
|
|
189388
|
+
}];
|
|
189389
|
+
readonly internalType: "struct CompV3View.LoanData";
|
|
189390
|
+
readonly name: "data";
|
|
189391
|
+
readonly type: "tuple";
|
|
189392
|
+
}];
|
|
189393
|
+
readonly stateMutability: "view";
|
|
189394
|
+
readonly type: "function";
|
|
189395
|
+
}, {
|
|
189396
|
+
readonly inputs: readonly [{
|
|
189397
|
+
readonly internalType: "address";
|
|
189398
|
+
readonly name: "_market";
|
|
189399
|
+
readonly type: "address";
|
|
189400
|
+
}, {
|
|
189401
|
+
readonly internalType: "address[]";
|
|
189402
|
+
readonly name: "_users";
|
|
189403
|
+
readonly type: "address[]";
|
|
189404
|
+
}];
|
|
189405
|
+
readonly name: "getLoanDataArr";
|
|
189406
|
+
readonly outputs: readonly [{
|
|
189407
|
+
readonly components: readonly [{
|
|
189408
|
+
readonly internalType: "address";
|
|
189409
|
+
readonly name: "user";
|
|
189410
|
+
readonly type: "address";
|
|
189411
|
+
}, {
|
|
189412
|
+
readonly internalType: "address[]";
|
|
189413
|
+
readonly name: "collAddr";
|
|
189414
|
+
readonly type: "address[]";
|
|
189415
|
+
}, {
|
|
189416
|
+
readonly internalType: "uint256[]";
|
|
189417
|
+
readonly name: "collAmounts";
|
|
189418
|
+
readonly type: "uint256[]";
|
|
189419
|
+
}, {
|
|
189420
|
+
readonly internalType: "uint256";
|
|
189421
|
+
readonly name: "depositAmount";
|
|
189422
|
+
readonly type: "uint256";
|
|
189423
|
+
}, {
|
|
189424
|
+
readonly internalType: "uint256";
|
|
189425
|
+
readonly name: "depositValue";
|
|
189426
|
+
readonly type: "uint256";
|
|
189427
|
+
}, {
|
|
189428
|
+
readonly internalType: "uint256";
|
|
189429
|
+
readonly name: "borrowAmount";
|
|
189430
|
+
readonly type: "uint256";
|
|
189431
|
+
}, {
|
|
189432
|
+
readonly internalType: "uint256";
|
|
189433
|
+
readonly name: "borrowValue";
|
|
189434
|
+
readonly type: "uint256";
|
|
189435
|
+
}, {
|
|
189436
|
+
readonly internalType: "uint256";
|
|
189437
|
+
readonly name: "collValue";
|
|
189438
|
+
readonly type: "uint256";
|
|
189439
|
+
}];
|
|
189440
|
+
readonly internalType: "struct CompV3View.LoanData[]";
|
|
189441
|
+
readonly name: "loans";
|
|
189442
|
+
readonly type: "tuple[]";
|
|
189443
|
+
}];
|
|
189444
|
+
readonly stateMutability: "view";
|
|
189445
|
+
readonly type: "function";
|
|
189446
|
+
}, {
|
|
189447
|
+
readonly inputs: readonly [{
|
|
189448
|
+
readonly internalType: "address";
|
|
189449
|
+
readonly name: "_market";
|
|
189450
|
+
readonly type: "address";
|
|
189451
|
+
}, {
|
|
189452
|
+
readonly internalType: "address";
|
|
189453
|
+
readonly name: "_user";
|
|
189454
|
+
readonly type: "address";
|
|
189455
|
+
}];
|
|
189456
|
+
readonly name: "getRewardsOwed";
|
|
189457
|
+
readonly outputs: readonly [{
|
|
189458
|
+
readonly components: readonly [{
|
|
189459
|
+
readonly internalType: "address";
|
|
189460
|
+
readonly name: "token";
|
|
189461
|
+
readonly type: "address";
|
|
189462
|
+
}, {
|
|
189463
|
+
readonly internalType: "uint256";
|
|
189464
|
+
readonly name: "owed";
|
|
189465
|
+
readonly type: "uint256";
|
|
189466
|
+
}];
|
|
189467
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
189468
|
+
readonly name: "rewardsOwed";
|
|
189469
|
+
readonly type: "tuple";
|
|
189470
|
+
}];
|
|
189471
|
+
readonly stateMutability: "nonpayable";
|
|
189472
|
+
readonly type: "function";
|
|
189473
|
+
}, {
|
|
189474
|
+
readonly inputs: readonly [{
|
|
189475
|
+
readonly components: readonly [{
|
|
189476
|
+
readonly internalType: "uint64";
|
|
189477
|
+
readonly name: "baseSupplyIndex";
|
|
189478
|
+
readonly type: "uint64";
|
|
189479
|
+
}, {
|
|
189480
|
+
readonly internalType: "uint64";
|
|
189481
|
+
readonly name: "baseBorrowIndex";
|
|
189482
|
+
readonly type: "uint64";
|
|
189483
|
+
}, {
|
|
189484
|
+
readonly internalType: "uint64";
|
|
189485
|
+
readonly name: "trackingSupplyIndex";
|
|
189486
|
+
readonly type: "uint64";
|
|
189487
|
+
}, {
|
|
189488
|
+
readonly internalType: "uint64";
|
|
189489
|
+
readonly name: "trackingBorrowIndex";
|
|
189490
|
+
readonly type: "uint64";
|
|
189491
|
+
}, {
|
|
189492
|
+
readonly internalType: "uint104";
|
|
189493
|
+
readonly name: "totalSupplyBase";
|
|
189494
|
+
readonly type: "uint104";
|
|
189495
|
+
}, {
|
|
189496
|
+
readonly internalType: "uint104";
|
|
189497
|
+
readonly name: "totalBorrowBase";
|
|
189498
|
+
readonly type: "uint104";
|
|
189499
|
+
}, {
|
|
189500
|
+
readonly internalType: "uint40";
|
|
189501
|
+
readonly name: "lastAccrualTime";
|
|
189502
|
+
readonly type: "uint40";
|
|
189503
|
+
}, {
|
|
189504
|
+
readonly internalType: "uint8";
|
|
189505
|
+
readonly name: "pauseFlags";
|
|
189506
|
+
readonly type: "uint8";
|
|
189507
|
+
}];
|
|
189508
|
+
readonly internalType: "struct IComet.TotalsBasic";
|
|
189509
|
+
readonly name: "totals";
|
|
189510
|
+
readonly type: "tuple";
|
|
189511
|
+
}];
|
|
189512
|
+
readonly name: "getUtilization";
|
|
189513
|
+
readonly outputs: readonly [{
|
|
189514
|
+
readonly internalType: "uint256";
|
|
189515
|
+
readonly name: "";
|
|
189516
|
+
readonly type: "uint256";
|
|
189517
|
+
}];
|
|
189518
|
+
readonly stateMutability: "pure";
|
|
189519
|
+
readonly type: "function";
|
|
189520
|
+
}, {
|
|
189521
|
+
readonly inputs: readonly [{
|
|
189522
|
+
readonly internalType: "address";
|
|
189523
|
+
readonly name: "_market";
|
|
189524
|
+
readonly type: "address";
|
|
189525
|
+
}, {
|
|
189526
|
+
readonly internalType: "address";
|
|
189527
|
+
readonly name: "_owner";
|
|
189528
|
+
readonly type: "address";
|
|
189529
|
+
}, {
|
|
189530
|
+
readonly internalType: "address";
|
|
189531
|
+
readonly name: "_manager";
|
|
189532
|
+
readonly type: "address";
|
|
189533
|
+
}];
|
|
189534
|
+
readonly name: "isAllowed";
|
|
189535
|
+
readonly outputs: readonly [{
|
|
189536
|
+
readonly internalType: "bool";
|
|
189537
|
+
readonly name: "";
|
|
189538
|
+
readonly type: "bool";
|
|
189539
|
+
}];
|
|
189540
|
+
readonly stateMutability: "view";
|
|
189541
|
+
readonly type: "function";
|
|
189542
|
+
}, {
|
|
189543
|
+
readonly inputs: readonly [{
|
|
189544
|
+
readonly internalType: "address";
|
|
189545
|
+
readonly name: "_market";
|
|
189546
|
+
readonly type: "address";
|
|
189547
|
+
}, {
|
|
189548
|
+
readonly internalType: "address";
|
|
189549
|
+
readonly name: "_user";
|
|
189550
|
+
readonly type: "address";
|
|
189551
|
+
}];
|
|
189552
|
+
readonly name: "getRewardsOwed";
|
|
189553
|
+
readonly outputs: readonly [{
|
|
189554
|
+
readonly components: readonly [{
|
|
189555
|
+
readonly internalType: "address";
|
|
189556
|
+
readonly name: "token";
|
|
189557
|
+
readonly type: "address";
|
|
189558
|
+
}, {
|
|
189559
|
+
readonly internalType: "uint256";
|
|
189560
|
+
readonly name: "owed";
|
|
189561
|
+
readonly type: "uint256";
|
|
189562
|
+
}];
|
|
189563
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
189564
|
+
readonly name: "rewardsOwed";
|
|
189565
|
+
readonly type: "tuple";
|
|
189566
|
+
}];
|
|
189567
|
+
readonly stateMutability: "view";
|
|
189568
|
+
readonly type: "function";
|
|
188501
189569
|
}], "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>;
|
|
188502
189570
|
getRewardsOwed: <chainOverride extends import("viem").Chain | undefined, options extends import("viem").UnionOmit<import("viem").WriteContractParameters<readonly [{
|
|
188503
189571
|
readonly inputs: readonly [{
|
|
@@ -188996,6 +190064,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
188996
190064
|
}];
|
|
188997
190065
|
readonly stateMutability: "view";
|
|
188998
190066
|
readonly type: "function";
|
|
190067
|
+
}, {
|
|
190068
|
+
readonly inputs: readonly [{
|
|
190069
|
+
readonly internalType: "address";
|
|
190070
|
+
readonly name: "_market";
|
|
190071
|
+
readonly type: "address";
|
|
190072
|
+
}, {
|
|
190073
|
+
readonly internalType: "address";
|
|
190074
|
+
readonly name: "_user";
|
|
190075
|
+
readonly type: "address";
|
|
190076
|
+
}];
|
|
190077
|
+
readonly name: "getRewardsOwed";
|
|
190078
|
+
readonly outputs: readonly [{
|
|
190079
|
+
readonly components: readonly [{
|
|
190080
|
+
readonly internalType: "address";
|
|
190081
|
+
readonly name: "token";
|
|
190082
|
+
readonly type: "address";
|
|
190083
|
+
}, {
|
|
190084
|
+
readonly internalType: "uint256";
|
|
190085
|
+
readonly name: "owed";
|
|
190086
|
+
readonly type: "uint256";
|
|
190087
|
+
}];
|
|
190088
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
190089
|
+
readonly name: "rewardsOwed";
|
|
190090
|
+
readonly type: "tuple";
|
|
190091
|
+
}];
|
|
190092
|
+
readonly stateMutability: "view";
|
|
190093
|
+
readonly type: "function";
|
|
188999
190094
|
}], "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 [{
|
|
189000
190095
|
readonly inputs: readonly [{
|
|
189001
190096
|
readonly internalType: "address";
|
|
@@ -189493,6 +190588,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
189493
190588
|
}];
|
|
189494
190589
|
readonly stateMutability: "view";
|
|
189495
190590
|
readonly type: "function";
|
|
190591
|
+
}, {
|
|
190592
|
+
readonly inputs: readonly [{
|
|
190593
|
+
readonly internalType: "address";
|
|
190594
|
+
readonly name: "_market";
|
|
190595
|
+
readonly type: "address";
|
|
190596
|
+
}, {
|
|
190597
|
+
readonly internalType: "address";
|
|
190598
|
+
readonly name: "_user";
|
|
190599
|
+
readonly type: "address";
|
|
190600
|
+
}];
|
|
190601
|
+
readonly name: "getRewardsOwed";
|
|
190602
|
+
readonly outputs: readonly [{
|
|
190603
|
+
readonly components: readonly [{
|
|
190604
|
+
readonly internalType: "address";
|
|
190605
|
+
readonly name: "token";
|
|
190606
|
+
readonly type: "address";
|
|
190607
|
+
}, {
|
|
190608
|
+
readonly internalType: "uint256";
|
|
190609
|
+
readonly name: "owed";
|
|
190610
|
+
readonly type: "uint256";
|
|
190611
|
+
}];
|
|
190612
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
190613
|
+
readonly name: "rewardsOwed";
|
|
190614
|
+
readonly type: "tuple";
|
|
190615
|
+
}];
|
|
190616
|
+
readonly stateMutability: "view";
|
|
190617
|
+
readonly type: "function";
|
|
189496
190618
|
}], "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>;
|
|
189497
190619
|
};
|
|
189498
190620
|
address: `0x${string}`;
|
|
@@ -189993,6 +191115,33 @@ export declare const CompV3ViewContractViem: (client: Client, network: NetworkNu
|
|
|
189993
191115
|
}];
|
|
189994
191116
|
readonly stateMutability: "view";
|
|
189995
191117
|
readonly type: "function";
|
|
191118
|
+
}, {
|
|
191119
|
+
readonly inputs: readonly [{
|
|
191120
|
+
readonly internalType: "address";
|
|
191121
|
+
readonly name: "_market";
|
|
191122
|
+
readonly type: "address";
|
|
191123
|
+
}, {
|
|
191124
|
+
readonly internalType: "address";
|
|
191125
|
+
readonly name: "_user";
|
|
191126
|
+
readonly type: "address";
|
|
191127
|
+
}];
|
|
191128
|
+
readonly name: "getRewardsOwed";
|
|
191129
|
+
readonly outputs: readonly [{
|
|
191130
|
+
readonly components: readonly [{
|
|
191131
|
+
readonly internalType: "address";
|
|
191132
|
+
readonly name: "token";
|
|
191133
|
+
readonly type: "address";
|
|
191134
|
+
}, {
|
|
191135
|
+
readonly internalType: "uint256";
|
|
191136
|
+
readonly name: "owed";
|
|
191137
|
+
readonly type: "uint256";
|
|
191138
|
+
}];
|
|
191139
|
+
readonly internalType: "struct ICometRewards.RewardOwed";
|
|
191140
|
+
readonly name: "rewardsOwed";
|
|
191141
|
+
readonly type: "tuple";
|
|
191142
|
+
}];
|
|
191143
|
+
readonly stateMutability: "view";
|
|
191144
|
+
readonly type: "function";
|
|
189996
191145
|
}];
|
|
189997
191146
|
};
|
|
189998
191147
|
export declare const SparkViewContractViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
@@ -525809,3 +526958,1713 @@ export declare const FluidViewContractViem: (client: Client, network: NetworkNum
|
|
|
525809
526958
|
readonly type: "function";
|
|
525810
526959
|
}];
|
|
525811
526960
|
};
|
|
526961
|
+
export declare const AaveIncentivesControllerViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
526962
|
+
read: {
|
|
526963
|
+
getRewardsBalance: (args: readonly [readonly `0x${string}`[], `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
526964
|
+
readonly inputs: readonly [{
|
|
526965
|
+
readonly internalType: "address[]";
|
|
526966
|
+
readonly name: "assets";
|
|
526967
|
+
readonly type: "address[]";
|
|
526968
|
+
}, {
|
|
526969
|
+
readonly internalType: "address";
|
|
526970
|
+
readonly name: "user";
|
|
526971
|
+
readonly type: "address";
|
|
526972
|
+
}];
|
|
526973
|
+
readonly name: "getRewardsBalance";
|
|
526974
|
+
readonly outputs: readonly [{
|
|
526975
|
+
readonly internalType: "uint256";
|
|
526976
|
+
readonly name: "";
|
|
526977
|
+
readonly type: "uint256";
|
|
526978
|
+
}];
|
|
526979
|
+
readonly stateMutability: "view";
|
|
526980
|
+
readonly type: "function";
|
|
526981
|
+
}], "getRewardsBalance", readonly [readonly `0x${string}`[], `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
526982
|
+
};
|
|
526983
|
+
address: `0x${string}`;
|
|
526984
|
+
abi: readonly [{
|
|
526985
|
+
readonly inputs: readonly [{
|
|
526986
|
+
readonly internalType: "address[]";
|
|
526987
|
+
readonly name: "assets";
|
|
526988
|
+
readonly type: "address[]";
|
|
526989
|
+
}, {
|
|
526990
|
+
readonly internalType: "address";
|
|
526991
|
+
readonly name: "user";
|
|
526992
|
+
readonly type: "address";
|
|
526993
|
+
}];
|
|
526994
|
+
readonly name: "getRewardsBalance";
|
|
526995
|
+
readonly outputs: readonly [{
|
|
526996
|
+
readonly internalType: "uint256";
|
|
526997
|
+
readonly name: "";
|
|
526998
|
+
readonly type: "uint256";
|
|
526999
|
+
}];
|
|
527000
|
+
readonly stateMutability: "view";
|
|
527001
|
+
readonly type: "function";
|
|
527002
|
+
}];
|
|
527003
|
+
};
|
|
527004
|
+
export declare const AaveUmbrellaViewViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
527005
|
+
read: {
|
|
527006
|
+
getTokensAggregatedData: (args: readonly [`0x${string}`, `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
527007
|
+
readonly inputs: readonly [{
|
|
527008
|
+
readonly internalType: "contract IUmbrella";
|
|
527009
|
+
readonly name: "umbrella";
|
|
527010
|
+
readonly type: "address";
|
|
527011
|
+
}, {
|
|
527012
|
+
readonly internalType: "contract IAaveOracle";
|
|
527013
|
+
readonly name: "aaveOracle";
|
|
527014
|
+
readonly type: "address";
|
|
527015
|
+
}];
|
|
527016
|
+
readonly name: "getTokensAggregatedData";
|
|
527017
|
+
readonly outputs: readonly [{
|
|
527018
|
+
readonly components: readonly [{
|
|
527019
|
+
readonly components: readonly [{
|
|
527020
|
+
readonly internalType: "address";
|
|
527021
|
+
readonly name: "token";
|
|
527022
|
+
readonly type: "address";
|
|
527023
|
+
}, {
|
|
527024
|
+
readonly internalType: "uint256";
|
|
527025
|
+
readonly name: "price";
|
|
527026
|
+
readonly type: "uint256";
|
|
527027
|
+
}, {
|
|
527028
|
+
readonly internalType: "string";
|
|
527029
|
+
readonly name: "name";
|
|
527030
|
+
readonly type: "string";
|
|
527031
|
+
}, {
|
|
527032
|
+
readonly internalType: "string";
|
|
527033
|
+
readonly name: "symbol";
|
|
527034
|
+
readonly type: "string";
|
|
527035
|
+
}, {
|
|
527036
|
+
readonly internalType: "uint8";
|
|
527037
|
+
readonly name: "decimals";
|
|
527038
|
+
readonly type: "uint8";
|
|
527039
|
+
}];
|
|
527040
|
+
readonly internalType: "struct DataAggregationHelper.TokenData";
|
|
527041
|
+
readonly name: "stakeTokenData";
|
|
527042
|
+
readonly type: "tuple";
|
|
527043
|
+
}, {
|
|
527044
|
+
readonly internalType: "uint256";
|
|
527045
|
+
readonly name: "totalAssets";
|
|
527046
|
+
readonly type: "uint256";
|
|
527047
|
+
}, {
|
|
527048
|
+
readonly internalType: "uint256";
|
|
527049
|
+
readonly name: "targetLiquidity";
|
|
527050
|
+
readonly type: "uint256";
|
|
527051
|
+
}, {
|
|
527052
|
+
readonly internalType: "bool";
|
|
527053
|
+
readonly name: "isStakeConfigured";
|
|
527054
|
+
readonly type: "bool";
|
|
527055
|
+
}, {
|
|
527056
|
+
readonly components: readonly [{
|
|
527057
|
+
readonly components: readonly [{
|
|
527058
|
+
readonly internalType: "address";
|
|
527059
|
+
readonly name: "token";
|
|
527060
|
+
readonly type: "address";
|
|
527061
|
+
}, {
|
|
527062
|
+
readonly internalType: "uint256";
|
|
527063
|
+
readonly name: "price";
|
|
527064
|
+
readonly type: "uint256";
|
|
527065
|
+
}, {
|
|
527066
|
+
readonly internalType: "string";
|
|
527067
|
+
readonly name: "name";
|
|
527068
|
+
readonly type: "string";
|
|
527069
|
+
}, {
|
|
527070
|
+
readonly internalType: "string";
|
|
527071
|
+
readonly name: "symbol";
|
|
527072
|
+
readonly type: "string";
|
|
527073
|
+
}, {
|
|
527074
|
+
readonly internalType: "uint8";
|
|
527075
|
+
readonly name: "decimals";
|
|
527076
|
+
readonly type: "uint8";
|
|
527077
|
+
}];
|
|
527078
|
+
readonly internalType: "struct DataAggregationHelper.TokenData";
|
|
527079
|
+
readonly name: "rewardTokenData";
|
|
527080
|
+
readonly type: "tuple";
|
|
527081
|
+
}, {
|
|
527082
|
+
readonly internalType: "uint256";
|
|
527083
|
+
readonly name: "maxEmissionPerSecond";
|
|
527084
|
+
readonly type: "uint256";
|
|
527085
|
+
}, {
|
|
527086
|
+
readonly internalType: "uint256";
|
|
527087
|
+
readonly name: "distributionEnd";
|
|
527088
|
+
readonly type: "uint256";
|
|
527089
|
+
}];
|
|
527090
|
+
readonly internalType: "struct DataAggregationHelper.RewardTokenData[]";
|
|
527091
|
+
readonly name: "rewardsTokenData";
|
|
527092
|
+
readonly type: "tuple[]";
|
|
527093
|
+
}];
|
|
527094
|
+
readonly internalType: "struct DataAggregationHelper.StakeTokenData[]";
|
|
527095
|
+
readonly name: "";
|
|
527096
|
+
readonly type: "tuple[]";
|
|
527097
|
+
}];
|
|
527098
|
+
readonly stateMutability: "view";
|
|
527099
|
+
readonly type: "function";
|
|
527100
|
+
}, {
|
|
527101
|
+
readonly inputs: readonly [{
|
|
527102
|
+
readonly internalType: "contract IUmbrella";
|
|
527103
|
+
readonly name: "umbrella";
|
|
527104
|
+
readonly type: "address";
|
|
527105
|
+
}, {
|
|
527106
|
+
readonly internalType: "address";
|
|
527107
|
+
readonly name: "user";
|
|
527108
|
+
readonly type: "address";
|
|
527109
|
+
}];
|
|
527110
|
+
readonly name: "getUserAggregatedData";
|
|
527111
|
+
readonly outputs: readonly [{
|
|
527112
|
+
readonly components: readonly [{
|
|
527113
|
+
readonly internalType: "address";
|
|
527114
|
+
readonly name: "stakeToken";
|
|
527115
|
+
readonly type: "address";
|
|
527116
|
+
}, {
|
|
527117
|
+
readonly internalType: "uint256";
|
|
527118
|
+
readonly name: "stakeUserBalance";
|
|
527119
|
+
readonly type: "uint256";
|
|
527120
|
+
}, {
|
|
527121
|
+
readonly components: readonly [{
|
|
527122
|
+
readonly internalType: "address";
|
|
527123
|
+
readonly name: "reward";
|
|
527124
|
+
readonly type: "address";
|
|
527125
|
+
}, {
|
|
527126
|
+
readonly internalType: "uint256";
|
|
527127
|
+
readonly name: "currentReward";
|
|
527128
|
+
readonly type: "uint256";
|
|
527129
|
+
}];
|
|
527130
|
+
readonly internalType: "struct DataAggregationHelper.RewardTokenUserData[]";
|
|
527131
|
+
readonly name: "rewardsTokenUserData";
|
|
527132
|
+
readonly type: "tuple[]";
|
|
527133
|
+
}];
|
|
527134
|
+
readonly internalType: "struct DataAggregationHelper.StakeTokenUserData[]";
|
|
527135
|
+
readonly name: "";
|
|
527136
|
+
readonly type: "tuple[]";
|
|
527137
|
+
}];
|
|
527138
|
+
readonly stateMutability: "view";
|
|
527139
|
+
readonly type: "function";
|
|
527140
|
+
}], "getTokensAggregatedData", readonly [`0x${string}`, `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly {
|
|
527141
|
+
stakeTokenData: {
|
|
527142
|
+
token: `0x${string}`;
|
|
527143
|
+
price: bigint;
|
|
527144
|
+
name: string;
|
|
527145
|
+
symbol: string;
|
|
527146
|
+
decimals: number;
|
|
527147
|
+
};
|
|
527148
|
+
totalAssets: bigint;
|
|
527149
|
+
targetLiquidity: bigint;
|
|
527150
|
+
isStakeConfigured: boolean;
|
|
527151
|
+
rewardsTokenData: readonly {
|
|
527152
|
+
rewardTokenData: {
|
|
527153
|
+
token: `0x${string}`;
|
|
527154
|
+
price: bigint;
|
|
527155
|
+
name: string;
|
|
527156
|
+
symbol: string;
|
|
527157
|
+
decimals: number;
|
|
527158
|
+
};
|
|
527159
|
+
maxEmissionPerSecond: bigint;
|
|
527160
|
+
distributionEnd: bigint;
|
|
527161
|
+
}[];
|
|
527162
|
+
}[]>;
|
|
527163
|
+
getUserAggregatedData: (args: readonly [`0x${string}`, `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
527164
|
+
readonly inputs: readonly [{
|
|
527165
|
+
readonly internalType: "contract IUmbrella";
|
|
527166
|
+
readonly name: "umbrella";
|
|
527167
|
+
readonly type: "address";
|
|
527168
|
+
}, {
|
|
527169
|
+
readonly internalType: "contract IAaveOracle";
|
|
527170
|
+
readonly name: "aaveOracle";
|
|
527171
|
+
readonly type: "address";
|
|
527172
|
+
}];
|
|
527173
|
+
readonly name: "getTokensAggregatedData";
|
|
527174
|
+
readonly outputs: readonly [{
|
|
527175
|
+
readonly components: readonly [{
|
|
527176
|
+
readonly components: readonly [{
|
|
527177
|
+
readonly internalType: "address";
|
|
527178
|
+
readonly name: "token";
|
|
527179
|
+
readonly type: "address";
|
|
527180
|
+
}, {
|
|
527181
|
+
readonly internalType: "uint256";
|
|
527182
|
+
readonly name: "price";
|
|
527183
|
+
readonly type: "uint256";
|
|
527184
|
+
}, {
|
|
527185
|
+
readonly internalType: "string";
|
|
527186
|
+
readonly name: "name";
|
|
527187
|
+
readonly type: "string";
|
|
527188
|
+
}, {
|
|
527189
|
+
readonly internalType: "string";
|
|
527190
|
+
readonly name: "symbol";
|
|
527191
|
+
readonly type: "string";
|
|
527192
|
+
}, {
|
|
527193
|
+
readonly internalType: "uint8";
|
|
527194
|
+
readonly name: "decimals";
|
|
527195
|
+
readonly type: "uint8";
|
|
527196
|
+
}];
|
|
527197
|
+
readonly internalType: "struct DataAggregationHelper.TokenData";
|
|
527198
|
+
readonly name: "stakeTokenData";
|
|
527199
|
+
readonly type: "tuple";
|
|
527200
|
+
}, {
|
|
527201
|
+
readonly internalType: "uint256";
|
|
527202
|
+
readonly name: "totalAssets";
|
|
527203
|
+
readonly type: "uint256";
|
|
527204
|
+
}, {
|
|
527205
|
+
readonly internalType: "uint256";
|
|
527206
|
+
readonly name: "targetLiquidity";
|
|
527207
|
+
readonly type: "uint256";
|
|
527208
|
+
}, {
|
|
527209
|
+
readonly internalType: "bool";
|
|
527210
|
+
readonly name: "isStakeConfigured";
|
|
527211
|
+
readonly type: "bool";
|
|
527212
|
+
}, {
|
|
527213
|
+
readonly components: readonly [{
|
|
527214
|
+
readonly components: readonly [{
|
|
527215
|
+
readonly internalType: "address";
|
|
527216
|
+
readonly name: "token";
|
|
527217
|
+
readonly type: "address";
|
|
527218
|
+
}, {
|
|
527219
|
+
readonly internalType: "uint256";
|
|
527220
|
+
readonly name: "price";
|
|
527221
|
+
readonly type: "uint256";
|
|
527222
|
+
}, {
|
|
527223
|
+
readonly internalType: "string";
|
|
527224
|
+
readonly name: "name";
|
|
527225
|
+
readonly type: "string";
|
|
527226
|
+
}, {
|
|
527227
|
+
readonly internalType: "string";
|
|
527228
|
+
readonly name: "symbol";
|
|
527229
|
+
readonly type: "string";
|
|
527230
|
+
}, {
|
|
527231
|
+
readonly internalType: "uint8";
|
|
527232
|
+
readonly name: "decimals";
|
|
527233
|
+
readonly type: "uint8";
|
|
527234
|
+
}];
|
|
527235
|
+
readonly internalType: "struct DataAggregationHelper.TokenData";
|
|
527236
|
+
readonly name: "rewardTokenData";
|
|
527237
|
+
readonly type: "tuple";
|
|
527238
|
+
}, {
|
|
527239
|
+
readonly internalType: "uint256";
|
|
527240
|
+
readonly name: "maxEmissionPerSecond";
|
|
527241
|
+
readonly type: "uint256";
|
|
527242
|
+
}, {
|
|
527243
|
+
readonly internalType: "uint256";
|
|
527244
|
+
readonly name: "distributionEnd";
|
|
527245
|
+
readonly type: "uint256";
|
|
527246
|
+
}];
|
|
527247
|
+
readonly internalType: "struct DataAggregationHelper.RewardTokenData[]";
|
|
527248
|
+
readonly name: "rewardsTokenData";
|
|
527249
|
+
readonly type: "tuple[]";
|
|
527250
|
+
}];
|
|
527251
|
+
readonly internalType: "struct DataAggregationHelper.StakeTokenData[]";
|
|
527252
|
+
readonly name: "";
|
|
527253
|
+
readonly type: "tuple[]";
|
|
527254
|
+
}];
|
|
527255
|
+
readonly stateMutability: "view";
|
|
527256
|
+
readonly type: "function";
|
|
527257
|
+
}, {
|
|
527258
|
+
readonly inputs: readonly [{
|
|
527259
|
+
readonly internalType: "contract IUmbrella";
|
|
527260
|
+
readonly name: "umbrella";
|
|
527261
|
+
readonly type: "address";
|
|
527262
|
+
}, {
|
|
527263
|
+
readonly internalType: "address";
|
|
527264
|
+
readonly name: "user";
|
|
527265
|
+
readonly type: "address";
|
|
527266
|
+
}];
|
|
527267
|
+
readonly name: "getUserAggregatedData";
|
|
527268
|
+
readonly outputs: readonly [{
|
|
527269
|
+
readonly components: readonly [{
|
|
527270
|
+
readonly internalType: "address";
|
|
527271
|
+
readonly name: "stakeToken";
|
|
527272
|
+
readonly type: "address";
|
|
527273
|
+
}, {
|
|
527274
|
+
readonly internalType: "uint256";
|
|
527275
|
+
readonly name: "stakeUserBalance";
|
|
527276
|
+
readonly type: "uint256";
|
|
527277
|
+
}, {
|
|
527278
|
+
readonly components: readonly [{
|
|
527279
|
+
readonly internalType: "address";
|
|
527280
|
+
readonly name: "reward";
|
|
527281
|
+
readonly type: "address";
|
|
527282
|
+
}, {
|
|
527283
|
+
readonly internalType: "uint256";
|
|
527284
|
+
readonly name: "currentReward";
|
|
527285
|
+
readonly type: "uint256";
|
|
527286
|
+
}];
|
|
527287
|
+
readonly internalType: "struct DataAggregationHelper.RewardTokenUserData[]";
|
|
527288
|
+
readonly name: "rewardsTokenUserData";
|
|
527289
|
+
readonly type: "tuple[]";
|
|
527290
|
+
}];
|
|
527291
|
+
readonly internalType: "struct DataAggregationHelper.StakeTokenUserData[]";
|
|
527292
|
+
readonly name: "";
|
|
527293
|
+
readonly type: "tuple[]";
|
|
527294
|
+
}];
|
|
527295
|
+
readonly stateMutability: "view";
|
|
527296
|
+
readonly type: "function";
|
|
527297
|
+
}], "getUserAggregatedData", readonly [`0x${string}`, `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly {
|
|
527298
|
+
stakeToken: `0x${string}`;
|
|
527299
|
+
stakeUserBalance: bigint;
|
|
527300
|
+
rewardsTokenUserData: readonly {
|
|
527301
|
+
reward: `0x${string}`;
|
|
527302
|
+
currentReward: bigint;
|
|
527303
|
+
}[];
|
|
527304
|
+
}[]>;
|
|
527305
|
+
};
|
|
527306
|
+
address: `0x${string}`;
|
|
527307
|
+
abi: readonly [{
|
|
527308
|
+
readonly inputs: readonly [{
|
|
527309
|
+
readonly internalType: "contract IUmbrella";
|
|
527310
|
+
readonly name: "umbrella";
|
|
527311
|
+
readonly type: "address";
|
|
527312
|
+
}, {
|
|
527313
|
+
readonly internalType: "contract IAaveOracle";
|
|
527314
|
+
readonly name: "aaveOracle";
|
|
527315
|
+
readonly type: "address";
|
|
527316
|
+
}];
|
|
527317
|
+
readonly name: "getTokensAggregatedData";
|
|
527318
|
+
readonly outputs: readonly [{
|
|
527319
|
+
readonly components: readonly [{
|
|
527320
|
+
readonly components: readonly [{
|
|
527321
|
+
readonly internalType: "address";
|
|
527322
|
+
readonly name: "token";
|
|
527323
|
+
readonly type: "address";
|
|
527324
|
+
}, {
|
|
527325
|
+
readonly internalType: "uint256";
|
|
527326
|
+
readonly name: "price";
|
|
527327
|
+
readonly type: "uint256";
|
|
527328
|
+
}, {
|
|
527329
|
+
readonly internalType: "string";
|
|
527330
|
+
readonly name: "name";
|
|
527331
|
+
readonly type: "string";
|
|
527332
|
+
}, {
|
|
527333
|
+
readonly internalType: "string";
|
|
527334
|
+
readonly name: "symbol";
|
|
527335
|
+
readonly type: "string";
|
|
527336
|
+
}, {
|
|
527337
|
+
readonly internalType: "uint8";
|
|
527338
|
+
readonly name: "decimals";
|
|
527339
|
+
readonly type: "uint8";
|
|
527340
|
+
}];
|
|
527341
|
+
readonly internalType: "struct DataAggregationHelper.TokenData";
|
|
527342
|
+
readonly name: "stakeTokenData";
|
|
527343
|
+
readonly type: "tuple";
|
|
527344
|
+
}, {
|
|
527345
|
+
readonly internalType: "uint256";
|
|
527346
|
+
readonly name: "totalAssets";
|
|
527347
|
+
readonly type: "uint256";
|
|
527348
|
+
}, {
|
|
527349
|
+
readonly internalType: "uint256";
|
|
527350
|
+
readonly name: "targetLiquidity";
|
|
527351
|
+
readonly type: "uint256";
|
|
527352
|
+
}, {
|
|
527353
|
+
readonly internalType: "bool";
|
|
527354
|
+
readonly name: "isStakeConfigured";
|
|
527355
|
+
readonly type: "bool";
|
|
527356
|
+
}, {
|
|
527357
|
+
readonly components: readonly [{
|
|
527358
|
+
readonly components: readonly [{
|
|
527359
|
+
readonly internalType: "address";
|
|
527360
|
+
readonly name: "token";
|
|
527361
|
+
readonly type: "address";
|
|
527362
|
+
}, {
|
|
527363
|
+
readonly internalType: "uint256";
|
|
527364
|
+
readonly name: "price";
|
|
527365
|
+
readonly type: "uint256";
|
|
527366
|
+
}, {
|
|
527367
|
+
readonly internalType: "string";
|
|
527368
|
+
readonly name: "name";
|
|
527369
|
+
readonly type: "string";
|
|
527370
|
+
}, {
|
|
527371
|
+
readonly internalType: "string";
|
|
527372
|
+
readonly name: "symbol";
|
|
527373
|
+
readonly type: "string";
|
|
527374
|
+
}, {
|
|
527375
|
+
readonly internalType: "uint8";
|
|
527376
|
+
readonly name: "decimals";
|
|
527377
|
+
readonly type: "uint8";
|
|
527378
|
+
}];
|
|
527379
|
+
readonly internalType: "struct DataAggregationHelper.TokenData";
|
|
527380
|
+
readonly name: "rewardTokenData";
|
|
527381
|
+
readonly type: "tuple";
|
|
527382
|
+
}, {
|
|
527383
|
+
readonly internalType: "uint256";
|
|
527384
|
+
readonly name: "maxEmissionPerSecond";
|
|
527385
|
+
readonly type: "uint256";
|
|
527386
|
+
}, {
|
|
527387
|
+
readonly internalType: "uint256";
|
|
527388
|
+
readonly name: "distributionEnd";
|
|
527389
|
+
readonly type: "uint256";
|
|
527390
|
+
}];
|
|
527391
|
+
readonly internalType: "struct DataAggregationHelper.RewardTokenData[]";
|
|
527392
|
+
readonly name: "rewardsTokenData";
|
|
527393
|
+
readonly type: "tuple[]";
|
|
527394
|
+
}];
|
|
527395
|
+
readonly internalType: "struct DataAggregationHelper.StakeTokenData[]";
|
|
527396
|
+
readonly name: "";
|
|
527397
|
+
readonly type: "tuple[]";
|
|
527398
|
+
}];
|
|
527399
|
+
readonly stateMutability: "view";
|
|
527400
|
+
readonly type: "function";
|
|
527401
|
+
}, {
|
|
527402
|
+
readonly inputs: readonly [{
|
|
527403
|
+
readonly internalType: "contract IUmbrella";
|
|
527404
|
+
readonly name: "umbrella";
|
|
527405
|
+
readonly type: "address";
|
|
527406
|
+
}, {
|
|
527407
|
+
readonly internalType: "address";
|
|
527408
|
+
readonly name: "user";
|
|
527409
|
+
readonly type: "address";
|
|
527410
|
+
}];
|
|
527411
|
+
readonly name: "getUserAggregatedData";
|
|
527412
|
+
readonly outputs: readonly [{
|
|
527413
|
+
readonly components: readonly [{
|
|
527414
|
+
readonly internalType: "address";
|
|
527415
|
+
readonly name: "stakeToken";
|
|
527416
|
+
readonly type: "address";
|
|
527417
|
+
}, {
|
|
527418
|
+
readonly internalType: "uint256";
|
|
527419
|
+
readonly name: "stakeUserBalance";
|
|
527420
|
+
readonly type: "uint256";
|
|
527421
|
+
}, {
|
|
527422
|
+
readonly components: readonly [{
|
|
527423
|
+
readonly internalType: "address";
|
|
527424
|
+
readonly name: "reward";
|
|
527425
|
+
readonly type: "address";
|
|
527426
|
+
}, {
|
|
527427
|
+
readonly internalType: "uint256";
|
|
527428
|
+
readonly name: "currentReward";
|
|
527429
|
+
readonly type: "uint256";
|
|
527430
|
+
}];
|
|
527431
|
+
readonly internalType: "struct DataAggregationHelper.RewardTokenUserData[]";
|
|
527432
|
+
readonly name: "rewardsTokenUserData";
|
|
527433
|
+
readonly type: "tuple[]";
|
|
527434
|
+
}];
|
|
527435
|
+
readonly internalType: "struct DataAggregationHelper.StakeTokenUserData[]";
|
|
527436
|
+
readonly name: "";
|
|
527437
|
+
readonly type: "tuple[]";
|
|
527438
|
+
}];
|
|
527439
|
+
readonly stateMutability: "view";
|
|
527440
|
+
readonly type: "function";
|
|
527441
|
+
}];
|
|
527442
|
+
};
|
|
527443
|
+
export declare const LiquityLQTYStakingViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
527444
|
+
read: {
|
|
527445
|
+
[x: string]: (...parameters: [options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<{
|
|
527446
|
+
inputs: {
|
|
527447
|
+
internalType: string;
|
|
527448
|
+
name: string;
|
|
527449
|
+
type: string;
|
|
527450
|
+
}[];
|
|
527451
|
+
name: string;
|
|
527452
|
+
outputs: {
|
|
527453
|
+
internalType: string;
|
|
527454
|
+
name: string;
|
|
527455
|
+
type: string;
|
|
527456
|
+
}[];
|
|
527457
|
+
stateMutability: string;
|
|
527458
|
+
type: string;
|
|
527459
|
+
}[], string, readonly unknown[]>, "address" | "args" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<{
|
|
527460
|
+
inputs: {
|
|
527461
|
+
internalType: string;
|
|
527462
|
+
name: string;
|
|
527463
|
+
type: string;
|
|
527464
|
+
}[];
|
|
527465
|
+
name: string;
|
|
527466
|
+
outputs: {
|
|
527467
|
+
internalType: string;
|
|
527468
|
+
name: string;
|
|
527469
|
+
type: string;
|
|
527470
|
+
}[];
|
|
527471
|
+
stateMutability: string;
|
|
527472
|
+
type: string;
|
|
527473
|
+
}[], string, readonly unknown[]>, "address" | "args" | "abi" | "functionName">> | undefined]) => Promise<import("viem").ReadContractReturnType>;
|
|
527474
|
+
};
|
|
527475
|
+
estimateGas: {
|
|
527476
|
+
[x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
527477
|
+
inputs: {
|
|
527478
|
+
internalType: string;
|
|
527479
|
+
name: string;
|
|
527480
|
+
type: string;
|
|
527481
|
+
}[];
|
|
527482
|
+
name: string;
|
|
527483
|
+
outputs: {
|
|
527484
|
+
internalType: string;
|
|
527485
|
+
name: string;
|
|
527486
|
+
type: string;
|
|
527487
|
+
}[];
|
|
527488
|
+
stateMutability: string;
|
|
527489
|
+
type: string;
|
|
527490
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>] | [args: readonly unknown[], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
527491
|
+
inputs: {
|
|
527492
|
+
internalType: string;
|
|
527493
|
+
name: string;
|
|
527494
|
+
type: string;
|
|
527495
|
+
}[];
|
|
527496
|
+
name: string;
|
|
527497
|
+
outputs: {
|
|
527498
|
+
internalType: string;
|
|
527499
|
+
name: string;
|
|
527500
|
+
type: string;
|
|
527501
|
+
}[];
|
|
527502
|
+
stateMutability: string;
|
|
527503
|
+
type: string;
|
|
527504
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>]) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
527505
|
+
} & {
|
|
527506
|
+
[x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
527507
|
+
inputs: {
|
|
527508
|
+
internalType: string;
|
|
527509
|
+
name: string;
|
|
527510
|
+
type: string;
|
|
527511
|
+
}[];
|
|
527512
|
+
name: string;
|
|
527513
|
+
outputs: {
|
|
527514
|
+
internalType: string;
|
|
527515
|
+
name: string;
|
|
527516
|
+
type: string;
|
|
527517
|
+
}[];
|
|
527518
|
+
stateMutability: string;
|
|
527519
|
+
type: string;
|
|
527520
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>] | [args: readonly unknown[], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
527521
|
+
inputs: {
|
|
527522
|
+
internalType: string;
|
|
527523
|
+
name: string;
|
|
527524
|
+
type: string;
|
|
527525
|
+
}[];
|
|
527526
|
+
name: string;
|
|
527527
|
+
outputs: {
|
|
527528
|
+
internalType: string;
|
|
527529
|
+
name: string;
|
|
527530
|
+
type: string;
|
|
527531
|
+
}[];
|
|
527532
|
+
stateMutability: string;
|
|
527533
|
+
type: string;
|
|
527534
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>]) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
527535
|
+
};
|
|
527536
|
+
simulate: {
|
|
527537
|
+
[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<{
|
|
527538
|
+
inputs: {
|
|
527539
|
+
internalType: string;
|
|
527540
|
+
name: string;
|
|
527541
|
+
type: string;
|
|
527542
|
+
}[];
|
|
527543
|
+
name: string;
|
|
527544
|
+
outputs: {
|
|
527545
|
+
internalType: string;
|
|
527546
|
+
name: string;
|
|
527547
|
+
type: string;
|
|
527548
|
+
}[];
|
|
527549
|
+
stateMutability: string;
|
|
527550
|
+
type: string;
|
|
527551
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "args" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<import("viem").SimulateContractParameters<{
|
|
527552
|
+
inputs: {
|
|
527553
|
+
internalType: string;
|
|
527554
|
+
name: string;
|
|
527555
|
+
type: string;
|
|
527556
|
+
}[];
|
|
527557
|
+
name: string;
|
|
527558
|
+
outputs: {
|
|
527559
|
+
internalType: string;
|
|
527560
|
+
name: string;
|
|
527561
|
+
type: string;
|
|
527562
|
+
}[];
|
|
527563
|
+
stateMutability: string;
|
|
527564
|
+
type: string;
|
|
527565
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "args" | "abi" | "functionName"> | undefined]) => Promise<import("viem").SimulateContractReturnType>;
|
|
527566
|
+
};
|
|
527567
|
+
createEventFilter: {
|
|
527568
|
+
[x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
|
|
527569
|
+
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527570
|
+
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527571
|
+
} & {
|
|
527572
|
+
strict?: strict | undefined;
|
|
527573
|
+
}) | undefined] | [args: readonly unknown[] | {
|
|
527574
|
+
[x: string]: unknown;
|
|
527575
|
+
address?: undefined;
|
|
527576
|
+
abi?: undefined;
|
|
527577
|
+
eventName?: undefined;
|
|
527578
|
+
fromBlock?: undefined;
|
|
527579
|
+
strict?: undefined;
|
|
527580
|
+
toBlock?: undefined;
|
|
527581
|
+
args?: undefined;
|
|
527582
|
+
}, options?: ({
|
|
527583
|
+
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527584
|
+
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527585
|
+
} & {
|
|
527586
|
+
strict?: strict | undefined;
|
|
527587
|
+
}) | undefined]) => Promise<import("viem").CreateContractEventFilterReturnType>;
|
|
527588
|
+
};
|
|
527589
|
+
getEvents: {
|
|
527590
|
+
[x: string]: (...parameters: [options?: {
|
|
527591
|
+
strict?: boolean | undefined;
|
|
527592
|
+
blockHash?: `0x${string}` | undefined;
|
|
527593
|
+
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527594
|
+
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527595
|
+
} | undefined] | [args?: readonly unknown[] | {
|
|
527596
|
+
[x: string]: unknown;
|
|
527597
|
+
address?: undefined;
|
|
527598
|
+
abi?: undefined;
|
|
527599
|
+
args?: undefined;
|
|
527600
|
+
eventName?: undefined;
|
|
527601
|
+
fromBlock?: undefined;
|
|
527602
|
+
onError?: undefined;
|
|
527603
|
+
onLogs?: undefined;
|
|
527604
|
+
strict?: undefined;
|
|
527605
|
+
poll?: undefined;
|
|
527606
|
+
batch?: undefined;
|
|
527607
|
+
pollingInterval?: undefined;
|
|
527608
|
+
} | undefined, options?: {
|
|
527609
|
+
strict?: boolean | undefined;
|
|
527610
|
+
blockHash?: `0x${string}` | undefined;
|
|
527611
|
+
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527612
|
+
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527613
|
+
} | undefined]) => Promise<import("viem").GetContractEventsReturnType<{
|
|
527614
|
+
inputs: {
|
|
527615
|
+
internalType: string;
|
|
527616
|
+
name: string;
|
|
527617
|
+
type: string;
|
|
527618
|
+
}[];
|
|
527619
|
+
name: string;
|
|
527620
|
+
outputs: {
|
|
527621
|
+
internalType: string;
|
|
527622
|
+
name: string;
|
|
527623
|
+
type: string;
|
|
527624
|
+
}[];
|
|
527625
|
+
stateMutability: string;
|
|
527626
|
+
type: string;
|
|
527627
|
+
}[], string>>;
|
|
527628
|
+
};
|
|
527629
|
+
watchEvent: {
|
|
527630
|
+
[x: string]: (...parameters: [options?: {
|
|
527631
|
+
batch?: boolean | undefined | undefined;
|
|
527632
|
+
pollingInterval?: number | undefined | undefined;
|
|
527633
|
+
strict?: boolean | undefined;
|
|
527634
|
+
onError?: ((error: Error) => void) | undefined | undefined;
|
|
527635
|
+
fromBlock?: bigint | undefined;
|
|
527636
|
+
onLogs: import("viem").WatchContractEventOnLogsFn<{
|
|
527637
|
+
inputs: {
|
|
527638
|
+
internalType: string;
|
|
527639
|
+
name: string;
|
|
527640
|
+
type: string;
|
|
527641
|
+
}[];
|
|
527642
|
+
name: string;
|
|
527643
|
+
outputs: {
|
|
527644
|
+
internalType: string;
|
|
527645
|
+
name: string;
|
|
527646
|
+
type: string;
|
|
527647
|
+
}[];
|
|
527648
|
+
stateMutability: string;
|
|
527649
|
+
type: string;
|
|
527650
|
+
}[], string, undefined>;
|
|
527651
|
+
poll?: true | undefined | undefined;
|
|
527652
|
+
} | undefined] | [args: readonly unknown[] | {
|
|
527653
|
+
[x: string]: unknown;
|
|
527654
|
+
address?: undefined;
|
|
527655
|
+
abi?: undefined;
|
|
527656
|
+
args?: undefined;
|
|
527657
|
+
eventName?: undefined;
|
|
527658
|
+
fromBlock?: undefined;
|
|
527659
|
+
onError?: undefined;
|
|
527660
|
+
onLogs?: undefined;
|
|
527661
|
+
strict?: undefined;
|
|
527662
|
+
poll?: undefined;
|
|
527663
|
+
batch?: undefined;
|
|
527664
|
+
pollingInterval?: undefined;
|
|
527665
|
+
}, options?: {
|
|
527666
|
+
batch?: boolean | undefined | undefined;
|
|
527667
|
+
pollingInterval?: number | undefined | undefined;
|
|
527668
|
+
strict?: boolean | undefined;
|
|
527669
|
+
onError?: ((error: Error) => void) | undefined | undefined;
|
|
527670
|
+
fromBlock?: bigint | undefined;
|
|
527671
|
+
onLogs: import("viem").WatchContractEventOnLogsFn<{
|
|
527672
|
+
inputs: {
|
|
527673
|
+
internalType: string;
|
|
527674
|
+
name: string;
|
|
527675
|
+
type: string;
|
|
527676
|
+
}[];
|
|
527677
|
+
name: string;
|
|
527678
|
+
outputs: {
|
|
527679
|
+
internalType: string;
|
|
527680
|
+
name: string;
|
|
527681
|
+
type: string;
|
|
527682
|
+
}[];
|
|
527683
|
+
stateMutability: string;
|
|
527684
|
+
type: string;
|
|
527685
|
+
}[], string, undefined>;
|
|
527686
|
+
poll?: true | undefined | undefined;
|
|
527687
|
+
} | undefined]) => import("viem").WatchContractEventReturnType;
|
|
527688
|
+
};
|
|
527689
|
+
write: {
|
|
527690
|
+
[x: string]: <chainOverride extends import("viem").Chain | undefined, options extends import("viem").UnionOmit<import("viem").WriteContractParameters<{
|
|
527691
|
+
inputs: {
|
|
527692
|
+
internalType: string;
|
|
527693
|
+
name: string;
|
|
527694
|
+
type: string;
|
|
527695
|
+
}[];
|
|
527696
|
+
name: string;
|
|
527697
|
+
outputs: {
|
|
527698
|
+
internalType: string;
|
|
527699
|
+
name: string;
|
|
527700
|
+
type: string;
|
|
527701
|
+
}[];
|
|
527702
|
+
stateMutability: string;
|
|
527703
|
+
type: string;
|
|
527704
|
+
}[], 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<{
|
|
527705
|
+
inputs: {
|
|
527706
|
+
internalType: string;
|
|
527707
|
+
name: string;
|
|
527708
|
+
type: string;
|
|
527709
|
+
}[];
|
|
527710
|
+
name: string;
|
|
527711
|
+
outputs: {
|
|
527712
|
+
internalType: string;
|
|
527713
|
+
name: string;
|
|
527714
|
+
type: string;
|
|
527715
|
+
}[];
|
|
527716
|
+
stateMutability: string;
|
|
527717
|
+
type: string;
|
|
527718
|
+
}[], 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>;
|
|
527719
|
+
};
|
|
527720
|
+
address: `0x${string}`;
|
|
527721
|
+
abi: {
|
|
527722
|
+
inputs: {
|
|
527723
|
+
internalType: string;
|
|
527724
|
+
name: string;
|
|
527725
|
+
type: string;
|
|
527726
|
+
}[];
|
|
527727
|
+
name: string;
|
|
527728
|
+
outputs: {
|
|
527729
|
+
internalType: string;
|
|
527730
|
+
name: string;
|
|
527731
|
+
type: string;
|
|
527732
|
+
}[];
|
|
527733
|
+
stateMutability: string;
|
|
527734
|
+
type: string;
|
|
527735
|
+
}[];
|
|
527736
|
+
};
|
|
527737
|
+
export declare const LiquityStabilityPoolViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
527738
|
+
read: {
|
|
527739
|
+
[x: string]: (...parameters: [options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<{
|
|
527740
|
+
inputs: {
|
|
527741
|
+
internalType: string;
|
|
527742
|
+
name: string;
|
|
527743
|
+
type: string;
|
|
527744
|
+
}[];
|
|
527745
|
+
name: string;
|
|
527746
|
+
outputs: {
|
|
527747
|
+
internalType: string;
|
|
527748
|
+
name: string;
|
|
527749
|
+
type: string;
|
|
527750
|
+
}[];
|
|
527751
|
+
stateMutability: string;
|
|
527752
|
+
type: string;
|
|
527753
|
+
}[], string, readonly unknown[]>, "address" | "args" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<{
|
|
527754
|
+
inputs: {
|
|
527755
|
+
internalType: string;
|
|
527756
|
+
name: string;
|
|
527757
|
+
type: string;
|
|
527758
|
+
}[];
|
|
527759
|
+
name: string;
|
|
527760
|
+
outputs: {
|
|
527761
|
+
internalType: string;
|
|
527762
|
+
name: string;
|
|
527763
|
+
type: string;
|
|
527764
|
+
}[];
|
|
527765
|
+
stateMutability: string;
|
|
527766
|
+
type: string;
|
|
527767
|
+
}[], string, readonly unknown[]>, "address" | "args" | "abi" | "functionName">> | undefined]) => Promise<import("viem").ReadContractReturnType>;
|
|
527768
|
+
};
|
|
527769
|
+
estimateGas: {
|
|
527770
|
+
[x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
527771
|
+
inputs: {
|
|
527772
|
+
internalType: string;
|
|
527773
|
+
name: string;
|
|
527774
|
+
type: string;
|
|
527775
|
+
}[];
|
|
527776
|
+
name: string;
|
|
527777
|
+
outputs: {
|
|
527778
|
+
internalType: string;
|
|
527779
|
+
name: string;
|
|
527780
|
+
type: string;
|
|
527781
|
+
}[];
|
|
527782
|
+
stateMutability: string;
|
|
527783
|
+
type: string;
|
|
527784
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>] | [args: readonly unknown[], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
527785
|
+
inputs: {
|
|
527786
|
+
internalType: string;
|
|
527787
|
+
name: string;
|
|
527788
|
+
type: string;
|
|
527789
|
+
}[];
|
|
527790
|
+
name: string;
|
|
527791
|
+
outputs: {
|
|
527792
|
+
internalType: string;
|
|
527793
|
+
name: string;
|
|
527794
|
+
type: string;
|
|
527795
|
+
}[];
|
|
527796
|
+
stateMutability: string;
|
|
527797
|
+
type: string;
|
|
527798
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>]) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
527799
|
+
} & {
|
|
527800
|
+
[x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
527801
|
+
inputs: {
|
|
527802
|
+
internalType: string;
|
|
527803
|
+
name: string;
|
|
527804
|
+
type: string;
|
|
527805
|
+
}[];
|
|
527806
|
+
name: string;
|
|
527807
|
+
outputs: {
|
|
527808
|
+
internalType: string;
|
|
527809
|
+
name: string;
|
|
527810
|
+
type: string;
|
|
527811
|
+
}[];
|
|
527812
|
+
stateMutability: string;
|
|
527813
|
+
type: string;
|
|
527814
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>] | [args: readonly unknown[], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
|
|
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, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>]) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
527829
|
+
};
|
|
527830
|
+
simulate: {
|
|
527831
|
+
[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<{
|
|
527832
|
+
inputs: {
|
|
527833
|
+
internalType: string;
|
|
527834
|
+
name: string;
|
|
527835
|
+
type: string;
|
|
527836
|
+
}[];
|
|
527837
|
+
name: string;
|
|
527838
|
+
outputs: {
|
|
527839
|
+
internalType: string;
|
|
527840
|
+
name: string;
|
|
527841
|
+
type: string;
|
|
527842
|
+
}[];
|
|
527843
|
+
stateMutability: string;
|
|
527844
|
+
type: string;
|
|
527845
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "args" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<import("viem").SimulateContractParameters<{
|
|
527846
|
+
inputs: {
|
|
527847
|
+
internalType: string;
|
|
527848
|
+
name: string;
|
|
527849
|
+
type: string;
|
|
527850
|
+
}[];
|
|
527851
|
+
name: string;
|
|
527852
|
+
outputs: {
|
|
527853
|
+
internalType: string;
|
|
527854
|
+
name: string;
|
|
527855
|
+
type: string;
|
|
527856
|
+
}[];
|
|
527857
|
+
stateMutability: string;
|
|
527858
|
+
type: string;
|
|
527859
|
+
}[], string, readonly unknown[], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "args" | "abi" | "functionName"> | undefined]) => Promise<import("viem").SimulateContractReturnType>;
|
|
527860
|
+
};
|
|
527861
|
+
createEventFilter: {
|
|
527862
|
+
[x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
|
|
527863
|
+
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527864
|
+
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527865
|
+
} & {
|
|
527866
|
+
strict?: strict | undefined;
|
|
527867
|
+
}) | undefined] | [args: readonly unknown[] | {
|
|
527868
|
+
[x: string]: unknown;
|
|
527869
|
+
address?: undefined;
|
|
527870
|
+
abi?: undefined;
|
|
527871
|
+
eventName?: undefined;
|
|
527872
|
+
fromBlock?: undefined;
|
|
527873
|
+
strict?: undefined;
|
|
527874
|
+
toBlock?: undefined;
|
|
527875
|
+
args?: undefined;
|
|
527876
|
+
}, options?: ({
|
|
527877
|
+
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527878
|
+
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527879
|
+
} & {
|
|
527880
|
+
strict?: strict | undefined;
|
|
527881
|
+
}) | undefined]) => Promise<import("viem").CreateContractEventFilterReturnType>;
|
|
527882
|
+
};
|
|
527883
|
+
getEvents: {
|
|
527884
|
+
[x: string]: (...parameters: [options?: {
|
|
527885
|
+
strict?: boolean | undefined;
|
|
527886
|
+
blockHash?: `0x${string}` | undefined;
|
|
527887
|
+
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527888
|
+
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527889
|
+
} | undefined] | [args?: readonly unknown[] | {
|
|
527890
|
+
[x: string]: unknown;
|
|
527891
|
+
address?: undefined;
|
|
527892
|
+
abi?: undefined;
|
|
527893
|
+
args?: undefined;
|
|
527894
|
+
eventName?: undefined;
|
|
527895
|
+
fromBlock?: undefined;
|
|
527896
|
+
onError?: undefined;
|
|
527897
|
+
onLogs?: undefined;
|
|
527898
|
+
strict?: undefined;
|
|
527899
|
+
poll?: undefined;
|
|
527900
|
+
batch?: undefined;
|
|
527901
|
+
pollingInterval?: undefined;
|
|
527902
|
+
} | undefined, options?: {
|
|
527903
|
+
strict?: boolean | undefined;
|
|
527904
|
+
blockHash?: `0x${string}` | undefined;
|
|
527905
|
+
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527906
|
+
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
527907
|
+
} | undefined]) => Promise<import("viem").GetContractEventsReturnType<{
|
|
527908
|
+
inputs: {
|
|
527909
|
+
internalType: string;
|
|
527910
|
+
name: string;
|
|
527911
|
+
type: string;
|
|
527912
|
+
}[];
|
|
527913
|
+
name: string;
|
|
527914
|
+
outputs: {
|
|
527915
|
+
internalType: string;
|
|
527916
|
+
name: string;
|
|
527917
|
+
type: string;
|
|
527918
|
+
}[];
|
|
527919
|
+
stateMutability: string;
|
|
527920
|
+
type: string;
|
|
527921
|
+
}[], string>>;
|
|
527922
|
+
};
|
|
527923
|
+
watchEvent: {
|
|
527924
|
+
[x: string]: (...parameters: [options?: {
|
|
527925
|
+
batch?: boolean | undefined | undefined;
|
|
527926
|
+
pollingInterval?: number | undefined | undefined;
|
|
527927
|
+
strict?: boolean | undefined;
|
|
527928
|
+
onError?: ((error: Error) => void) | undefined | undefined;
|
|
527929
|
+
fromBlock?: bigint | undefined;
|
|
527930
|
+
onLogs: import("viem").WatchContractEventOnLogsFn<{
|
|
527931
|
+
inputs: {
|
|
527932
|
+
internalType: string;
|
|
527933
|
+
name: string;
|
|
527934
|
+
type: string;
|
|
527935
|
+
}[];
|
|
527936
|
+
name: string;
|
|
527937
|
+
outputs: {
|
|
527938
|
+
internalType: string;
|
|
527939
|
+
name: string;
|
|
527940
|
+
type: string;
|
|
527941
|
+
}[];
|
|
527942
|
+
stateMutability: string;
|
|
527943
|
+
type: string;
|
|
527944
|
+
}[], string, undefined>;
|
|
527945
|
+
poll?: true | undefined | undefined;
|
|
527946
|
+
} | undefined] | [args: readonly unknown[] | {
|
|
527947
|
+
[x: string]: unknown;
|
|
527948
|
+
address?: undefined;
|
|
527949
|
+
abi?: undefined;
|
|
527950
|
+
args?: undefined;
|
|
527951
|
+
eventName?: undefined;
|
|
527952
|
+
fromBlock?: undefined;
|
|
527953
|
+
onError?: undefined;
|
|
527954
|
+
onLogs?: undefined;
|
|
527955
|
+
strict?: undefined;
|
|
527956
|
+
poll?: undefined;
|
|
527957
|
+
batch?: undefined;
|
|
527958
|
+
pollingInterval?: undefined;
|
|
527959
|
+
}, options?: {
|
|
527960
|
+
batch?: boolean | undefined | undefined;
|
|
527961
|
+
pollingInterval?: number | undefined | undefined;
|
|
527962
|
+
strict?: boolean | undefined;
|
|
527963
|
+
onError?: ((error: Error) => void) | undefined | undefined;
|
|
527964
|
+
fromBlock?: bigint | undefined;
|
|
527965
|
+
onLogs: import("viem").WatchContractEventOnLogsFn<{
|
|
527966
|
+
inputs: {
|
|
527967
|
+
internalType: string;
|
|
527968
|
+
name: string;
|
|
527969
|
+
type: string;
|
|
527970
|
+
}[];
|
|
527971
|
+
name: string;
|
|
527972
|
+
outputs: {
|
|
527973
|
+
internalType: string;
|
|
527974
|
+
name: string;
|
|
527975
|
+
type: string;
|
|
527976
|
+
}[];
|
|
527977
|
+
stateMutability: string;
|
|
527978
|
+
type: string;
|
|
527979
|
+
}[], string, undefined>;
|
|
527980
|
+
poll?: true | undefined | undefined;
|
|
527981
|
+
} | undefined]) => import("viem").WatchContractEventReturnType;
|
|
527982
|
+
};
|
|
527983
|
+
write: {
|
|
527984
|
+
[x: string]: <chainOverride extends import("viem").Chain | undefined, options extends import("viem").UnionOmit<import("viem").WriteContractParameters<{
|
|
527985
|
+
inputs: {
|
|
527986
|
+
internalType: string;
|
|
527987
|
+
name: string;
|
|
527988
|
+
type: string;
|
|
527989
|
+
}[];
|
|
527990
|
+
name: string;
|
|
527991
|
+
outputs: {
|
|
527992
|
+
internalType: string;
|
|
527993
|
+
name: string;
|
|
527994
|
+
type: string;
|
|
527995
|
+
}[];
|
|
527996
|
+
stateMutability: string;
|
|
527997
|
+
type: string;
|
|
527998
|
+
}[], 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<{
|
|
527999
|
+
inputs: {
|
|
528000
|
+
internalType: string;
|
|
528001
|
+
name: string;
|
|
528002
|
+
type: string;
|
|
528003
|
+
}[];
|
|
528004
|
+
name: string;
|
|
528005
|
+
outputs: {
|
|
528006
|
+
internalType: string;
|
|
528007
|
+
name: string;
|
|
528008
|
+
type: string;
|
|
528009
|
+
}[];
|
|
528010
|
+
stateMutability: string;
|
|
528011
|
+
type: string;
|
|
528012
|
+
}[], 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>;
|
|
528013
|
+
};
|
|
528014
|
+
address: `0x${string}`;
|
|
528015
|
+
abi: {
|
|
528016
|
+
inputs: {
|
|
528017
|
+
internalType: string;
|
|
528018
|
+
name: string;
|
|
528019
|
+
type: string;
|
|
528020
|
+
}[];
|
|
528021
|
+
name: string;
|
|
528022
|
+
outputs: {
|
|
528023
|
+
internalType: string;
|
|
528024
|
+
name: string;
|
|
528025
|
+
type: string;
|
|
528026
|
+
}[];
|
|
528027
|
+
stateMutability: string;
|
|
528028
|
+
type: string;
|
|
528029
|
+
}[];
|
|
528030
|
+
};
|
|
528031
|
+
export declare const UUPSViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
528032
|
+
read: {
|
|
528033
|
+
cumulativeClaimed: (args: readonly [`0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528034
|
+
readonly inputs: readonly [{
|
|
528035
|
+
readonly internalType: "address";
|
|
528036
|
+
readonly name: "";
|
|
528037
|
+
readonly type: "address";
|
|
528038
|
+
}];
|
|
528039
|
+
readonly name: "cumulativeClaimed";
|
|
528040
|
+
readonly outputs: readonly [{
|
|
528041
|
+
readonly internalType: "uint256";
|
|
528042
|
+
readonly name: "";
|
|
528043
|
+
readonly type: "uint256";
|
|
528044
|
+
}];
|
|
528045
|
+
readonly stateMutability: "view";
|
|
528046
|
+
readonly type: "function";
|
|
528047
|
+
}], "cumulativeClaimed", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
528048
|
+
};
|
|
528049
|
+
address: `0x${string}`;
|
|
528050
|
+
abi: readonly [{
|
|
528051
|
+
readonly inputs: readonly [{
|
|
528052
|
+
readonly internalType: "address";
|
|
528053
|
+
readonly name: "";
|
|
528054
|
+
readonly type: "address";
|
|
528055
|
+
}];
|
|
528056
|
+
readonly name: "cumulativeClaimed";
|
|
528057
|
+
readonly outputs: readonly [{
|
|
528058
|
+
readonly internalType: "uint256";
|
|
528059
|
+
readonly name: "";
|
|
528060
|
+
readonly type: "uint256";
|
|
528061
|
+
}];
|
|
528062
|
+
readonly stateMutability: "view";
|
|
528063
|
+
readonly type: "function";
|
|
528064
|
+
}];
|
|
528065
|
+
};
|
|
528066
|
+
export declare const SparkRewardsControllerViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
528067
|
+
read: {
|
|
528068
|
+
getAllUserRewards: (args: readonly [readonly `0x${string}`[], `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528069
|
+
readonly inputs: readonly [{
|
|
528070
|
+
readonly internalType: "address[]";
|
|
528071
|
+
readonly name: "assets";
|
|
528072
|
+
readonly type: "address[]";
|
|
528073
|
+
}, {
|
|
528074
|
+
readonly internalType: "address";
|
|
528075
|
+
readonly name: "user";
|
|
528076
|
+
readonly type: "address";
|
|
528077
|
+
}];
|
|
528078
|
+
readonly name: "getAllUserRewards";
|
|
528079
|
+
readonly outputs: readonly [{
|
|
528080
|
+
readonly internalType: "address[]";
|
|
528081
|
+
readonly name: "rewardsList";
|
|
528082
|
+
readonly type: "address[]";
|
|
528083
|
+
}, {
|
|
528084
|
+
readonly internalType: "uint256[]";
|
|
528085
|
+
readonly name: "unclaimedAmounts";
|
|
528086
|
+
readonly type: "uint256[]";
|
|
528087
|
+
}];
|
|
528088
|
+
readonly stateMutability: "view";
|
|
528089
|
+
readonly type: "function";
|
|
528090
|
+
}], "getAllUserRewards", readonly [readonly `0x${string}`[], `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly [readonly `0x${string}`[], readonly bigint[]]>;
|
|
528091
|
+
};
|
|
528092
|
+
address: `0x${string}`;
|
|
528093
|
+
abi: readonly [{
|
|
528094
|
+
readonly inputs: readonly [{
|
|
528095
|
+
readonly internalType: "address[]";
|
|
528096
|
+
readonly name: "assets";
|
|
528097
|
+
readonly type: "address[]";
|
|
528098
|
+
}, {
|
|
528099
|
+
readonly internalType: "address";
|
|
528100
|
+
readonly name: "user";
|
|
528101
|
+
readonly type: "address";
|
|
528102
|
+
}];
|
|
528103
|
+
readonly name: "getAllUserRewards";
|
|
528104
|
+
readonly outputs: readonly [{
|
|
528105
|
+
readonly internalType: "address[]";
|
|
528106
|
+
readonly name: "rewardsList";
|
|
528107
|
+
readonly type: "address[]";
|
|
528108
|
+
}, {
|
|
528109
|
+
readonly internalType: "uint256[]";
|
|
528110
|
+
readonly name: "unclaimedAmounts";
|
|
528111
|
+
readonly type: "uint256[]";
|
|
528112
|
+
}];
|
|
528113
|
+
readonly stateMutability: "view";
|
|
528114
|
+
readonly type: "function";
|
|
528115
|
+
}];
|
|
528116
|
+
};
|
|
528117
|
+
export declare const AaveRewardsControllerViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
528118
|
+
read: {
|
|
528119
|
+
getAllUserRewards: (args: readonly [readonly `0x${string}`[], `0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528120
|
+
readonly inputs: readonly [{
|
|
528121
|
+
readonly internalType: "address[]";
|
|
528122
|
+
readonly name: "assets";
|
|
528123
|
+
readonly type: "address[]";
|
|
528124
|
+
}, {
|
|
528125
|
+
readonly internalType: "address";
|
|
528126
|
+
readonly name: "user";
|
|
528127
|
+
readonly type: "address";
|
|
528128
|
+
}];
|
|
528129
|
+
readonly name: "getAllUserRewards";
|
|
528130
|
+
readonly outputs: readonly [{
|
|
528131
|
+
readonly internalType: "address[]";
|
|
528132
|
+
readonly name: "rewardsList";
|
|
528133
|
+
readonly type: "address[]";
|
|
528134
|
+
}, {
|
|
528135
|
+
readonly internalType: "uint256[]";
|
|
528136
|
+
readonly name: "unclaimedAmounts";
|
|
528137
|
+
readonly type: "uint256[]";
|
|
528138
|
+
}];
|
|
528139
|
+
readonly stateMutability: "view";
|
|
528140
|
+
readonly type: "function";
|
|
528141
|
+
}], "getAllUserRewards", readonly [readonly `0x${string}`[], `0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly [readonly `0x${string}`[], readonly bigint[]]>;
|
|
528142
|
+
};
|
|
528143
|
+
address: `0x${string}`;
|
|
528144
|
+
abi: readonly [{
|
|
528145
|
+
readonly inputs: readonly [{
|
|
528146
|
+
readonly internalType: "address[]";
|
|
528147
|
+
readonly name: "assets";
|
|
528148
|
+
readonly type: "address[]";
|
|
528149
|
+
}, {
|
|
528150
|
+
readonly internalType: "address";
|
|
528151
|
+
readonly name: "user";
|
|
528152
|
+
readonly type: "address";
|
|
528153
|
+
}];
|
|
528154
|
+
readonly name: "getAllUserRewards";
|
|
528155
|
+
readonly outputs: readonly [{
|
|
528156
|
+
readonly internalType: "address[]";
|
|
528157
|
+
readonly name: "rewardsList";
|
|
528158
|
+
readonly type: "address[]";
|
|
528159
|
+
}, {
|
|
528160
|
+
readonly internalType: "uint256[]";
|
|
528161
|
+
readonly name: "unclaimedAmounts";
|
|
528162
|
+
readonly type: "uint256[]";
|
|
528163
|
+
}];
|
|
528164
|
+
readonly stateMutability: "view";
|
|
528165
|
+
readonly type: "function";
|
|
528166
|
+
}];
|
|
528167
|
+
};
|
|
528168
|
+
export declare const LiquityV2sBoldVaultViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
528169
|
+
read: {
|
|
528170
|
+
maxWithdraw: (args: readonly [`0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528171
|
+
readonly inputs: readonly [{
|
|
528172
|
+
readonly internalType: "uint256";
|
|
528173
|
+
readonly name: "assets";
|
|
528174
|
+
readonly type: "uint256";
|
|
528175
|
+
}];
|
|
528176
|
+
readonly name: "convertToShares";
|
|
528177
|
+
readonly outputs: readonly [{
|
|
528178
|
+
readonly internalType: "uint256";
|
|
528179
|
+
readonly name: "";
|
|
528180
|
+
readonly type: "uint256";
|
|
528181
|
+
}];
|
|
528182
|
+
readonly stateMutability: "view";
|
|
528183
|
+
readonly type: "function";
|
|
528184
|
+
}, {
|
|
528185
|
+
readonly inputs: readonly [{
|
|
528186
|
+
readonly internalType: "address";
|
|
528187
|
+
readonly name: "owner";
|
|
528188
|
+
readonly type: "address";
|
|
528189
|
+
}];
|
|
528190
|
+
readonly name: "maxWithdraw";
|
|
528191
|
+
readonly outputs: readonly [{
|
|
528192
|
+
readonly internalType: "uint256";
|
|
528193
|
+
readonly name: "";
|
|
528194
|
+
readonly type: "uint256";
|
|
528195
|
+
}];
|
|
528196
|
+
readonly stateMutability: "view";
|
|
528197
|
+
readonly type: "function";
|
|
528198
|
+
}, {
|
|
528199
|
+
readonly inputs: readonly [{
|
|
528200
|
+
readonly internalType: "uint256";
|
|
528201
|
+
readonly name: "";
|
|
528202
|
+
readonly type: "uint256";
|
|
528203
|
+
}];
|
|
528204
|
+
readonly name: "sps";
|
|
528205
|
+
readonly outputs: readonly [{
|
|
528206
|
+
readonly internalType: "address";
|
|
528207
|
+
readonly name: "sp";
|
|
528208
|
+
readonly type: "address";
|
|
528209
|
+
}, {
|
|
528210
|
+
readonly internalType: "uint96";
|
|
528211
|
+
readonly name: "weight";
|
|
528212
|
+
readonly type: "uint96";
|
|
528213
|
+
}, {
|
|
528214
|
+
readonly internalType: "address";
|
|
528215
|
+
readonly name: "coll";
|
|
528216
|
+
readonly type: "address";
|
|
528217
|
+
}];
|
|
528218
|
+
readonly stateMutability: "view";
|
|
528219
|
+
readonly type: "function";
|
|
528220
|
+
}, {
|
|
528221
|
+
readonly inputs: readonly [];
|
|
528222
|
+
readonly name: "totalAssets";
|
|
528223
|
+
readonly outputs: readonly [{
|
|
528224
|
+
readonly internalType: "uint256";
|
|
528225
|
+
readonly name: "";
|
|
528226
|
+
readonly type: "uint256";
|
|
528227
|
+
}];
|
|
528228
|
+
readonly stateMutability: "view";
|
|
528229
|
+
readonly type: "function";
|
|
528230
|
+
}], "maxWithdraw", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
528231
|
+
totalAssets: (options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528232
|
+
readonly inputs: readonly [{
|
|
528233
|
+
readonly internalType: "uint256";
|
|
528234
|
+
readonly name: "assets";
|
|
528235
|
+
readonly type: "uint256";
|
|
528236
|
+
}];
|
|
528237
|
+
readonly name: "convertToShares";
|
|
528238
|
+
readonly outputs: readonly [{
|
|
528239
|
+
readonly internalType: "uint256";
|
|
528240
|
+
readonly name: "";
|
|
528241
|
+
readonly type: "uint256";
|
|
528242
|
+
}];
|
|
528243
|
+
readonly stateMutability: "view";
|
|
528244
|
+
readonly type: "function";
|
|
528245
|
+
}, {
|
|
528246
|
+
readonly inputs: readonly [{
|
|
528247
|
+
readonly internalType: "address";
|
|
528248
|
+
readonly name: "owner";
|
|
528249
|
+
readonly type: "address";
|
|
528250
|
+
}];
|
|
528251
|
+
readonly name: "maxWithdraw";
|
|
528252
|
+
readonly outputs: readonly [{
|
|
528253
|
+
readonly internalType: "uint256";
|
|
528254
|
+
readonly name: "";
|
|
528255
|
+
readonly type: "uint256";
|
|
528256
|
+
}];
|
|
528257
|
+
readonly stateMutability: "view";
|
|
528258
|
+
readonly type: "function";
|
|
528259
|
+
}, {
|
|
528260
|
+
readonly inputs: readonly [{
|
|
528261
|
+
readonly internalType: "uint256";
|
|
528262
|
+
readonly name: "";
|
|
528263
|
+
readonly type: "uint256";
|
|
528264
|
+
}];
|
|
528265
|
+
readonly name: "sps";
|
|
528266
|
+
readonly outputs: readonly [{
|
|
528267
|
+
readonly internalType: "address";
|
|
528268
|
+
readonly name: "sp";
|
|
528269
|
+
readonly type: "address";
|
|
528270
|
+
}, {
|
|
528271
|
+
readonly internalType: "uint96";
|
|
528272
|
+
readonly name: "weight";
|
|
528273
|
+
readonly type: "uint96";
|
|
528274
|
+
}, {
|
|
528275
|
+
readonly internalType: "address";
|
|
528276
|
+
readonly name: "coll";
|
|
528277
|
+
readonly type: "address";
|
|
528278
|
+
}];
|
|
528279
|
+
readonly stateMutability: "view";
|
|
528280
|
+
readonly type: "function";
|
|
528281
|
+
}, {
|
|
528282
|
+
readonly inputs: readonly [];
|
|
528283
|
+
readonly name: "totalAssets";
|
|
528284
|
+
readonly outputs: readonly [{
|
|
528285
|
+
readonly internalType: "uint256";
|
|
528286
|
+
readonly name: "";
|
|
528287
|
+
readonly type: "uint256";
|
|
528288
|
+
}];
|
|
528289
|
+
readonly stateMutability: "view";
|
|
528290
|
+
readonly type: "function";
|
|
528291
|
+
}], "totalAssets", readonly []>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
528292
|
+
convertToShares: (args: readonly [bigint], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528293
|
+
readonly inputs: readonly [{
|
|
528294
|
+
readonly internalType: "uint256";
|
|
528295
|
+
readonly name: "assets";
|
|
528296
|
+
readonly type: "uint256";
|
|
528297
|
+
}];
|
|
528298
|
+
readonly name: "convertToShares";
|
|
528299
|
+
readonly outputs: readonly [{
|
|
528300
|
+
readonly internalType: "uint256";
|
|
528301
|
+
readonly name: "";
|
|
528302
|
+
readonly type: "uint256";
|
|
528303
|
+
}];
|
|
528304
|
+
readonly stateMutability: "view";
|
|
528305
|
+
readonly type: "function";
|
|
528306
|
+
}, {
|
|
528307
|
+
readonly inputs: readonly [{
|
|
528308
|
+
readonly internalType: "address";
|
|
528309
|
+
readonly name: "owner";
|
|
528310
|
+
readonly type: "address";
|
|
528311
|
+
}];
|
|
528312
|
+
readonly name: "maxWithdraw";
|
|
528313
|
+
readonly outputs: readonly [{
|
|
528314
|
+
readonly internalType: "uint256";
|
|
528315
|
+
readonly name: "";
|
|
528316
|
+
readonly type: "uint256";
|
|
528317
|
+
}];
|
|
528318
|
+
readonly stateMutability: "view";
|
|
528319
|
+
readonly type: "function";
|
|
528320
|
+
}, {
|
|
528321
|
+
readonly inputs: readonly [{
|
|
528322
|
+
readonly internalType: "uint256";
|
|
528323
|
+
readonly name: "";
|
|
528324
|
+
readonly type: "uint256";
|
|
528325
|
+
}];
|
|
528326
|
+
readonly name: "sps";
|
|
528327
|
+
readonly outputs: readonly [{
|
|
528328
|
+
readonly internalType: "address";
|
|
528329
|
+
readonly name: "sp";
|
|
528330
|
+
readonly type: "address";
|
|
528331
|
+
}, {
|
|
528332
|
+
readonly internalType: "uint96";
|
|
528333
|
+
readonly name: "weight";
|
|
528334
|
+
readonly type: "uint96";
|
|
528335
|
+
}, {
|
|
528336
|
+
readonly internalType: "address";
|
|
528337
|
+
readonly name: "coll";
|
|
528338
|
+
readonly type: "address";
|
|
528339
|
+
}];
|
|
528340
|
+
readonly stateMutability: "view";
|
|
528341
|
+
readonly type: "function";
|
|
528342
|
+
}, {
|
|
528343
|
+
readonly inputs: readonly [];
|
|
528344
|
+
readonly name: "totalAssets";
|
|
528345
|
+
readonly outputs: readonly [{
|
|
528346
|
+
readonly internalType: "uint256";
|
|
528347
|
+
readonly name: "";
|
|
528348
|
+
readonly type: "uint256";
|
|
528349
|
+
}];
|
|
528350
|
+
readonly stateMutability: "view";
|
|
528351
|
+
readonly type: "function";
|
|
528352
|
+
}], "convertToShares", readonly [bigint]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
528353
|
+
sps: (args: readonly [bigint], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528354
|
+
readonly inputs: readonly [{
|
|
528355
|
+
readonly internalType: "uint256";
|
|
528356
|
+
readonly name: "assets";
|
|
528357
|
+
readonly type: "uint256";
|
|
528358
|
+
}];
|
|
528359
|
+
readonly name: "convertToShares";
|
|
528360
|
+
readonly outputs: readonly [{
|
|
528361
|
+
readonly internalType: "uint256";
|
|
528362
|
+
readonly name: "";
|
|
528363
|
+
readonly type: "uint256";
|
|
528364
|
+
}];
|
|
528365
|
+
readonly stateMutability: "view";
|
|
528366
|
+
readonly type: "function";
|
|
528367
|
+
}, {
|
|
528368
|
+
readonly inputs: readonly [{
|
|
528369
|
+
readonly internalType: "address";
|
|
528370
|
+
readonly name: "owner";
|
|
528371
|
+
readonly type: "address";
|
|
528372
|
+
}];
|
|
528373
|
+
readonly name: "maxWithdraw";
|
|
528374
|
+
readonly outputs: readonly [{
|
|
528375
|
+
readonly internalType: "uint256";
|
|
528376
|
+
readonly name: "";
|
|
528377
|
+
readonly type: "uint256";
|
|
528378
|
+
}];
|
|
528379
|
+
readonly stateMutability: "view";
|
|
528380
|
+
readonly type: "function";
|
|
528381
|
+
}, {
|
|
528382
|
+
readonly inputs: readonly [{
|
|
528383
|
+
readonly internalType: "uint256";
|
|
528384
|
+
readonly name: "";
|
|
528385
|
+
readonly type: "uint256";
|
|
528386
|
+
}];
|
|
528387
|
+
readonly name: "sps";
|
|
528388
|
+
readonly outputs: readonly [{
|
|
528389
|
+
readonly internalType: "address";
|
|
528390
|
+
readonly name: "sp";
|
|
528391
|
+
readonly type: "address";
|
|
528392
|
+
}, {
|
|
528393
|
+
readonly internalType: "uint96";
|
|
528394
|
+
readonly name: "weight";
|
|
528395
|
+
readonly type: "uint96";
|
|
528396
|
+
}, {
|
|
528397
|
+
readonly internalType: "address";
|
|
528398
|
+
readonly name: "coll";
|
|
528399
|
+
readonly type: "address";
|
|
528400
|
+
}];
|
|
528401
|
+
readonly stateMutability: "view";
|
|
528402
|
+
readonly type: "function";
|
|
528403
|
+
}, {
|
|
528404
|
+
readonly inputs: readonly [];
|
|
528405
|
+
readonly name: "totalAssets";
|
|
528406
|
+
readonly outputs: readonly [{
|
|
528407
|
+
readonly internalType: "uint256";
|
|
528408
|
+
readonly name: "";
|
|
528409
|
+
readonly type: "uint256";
|
|
528410
|
+
}];
|
|
528411
|
+
readonly stateMutability: "view";
|
|
528412
|
+
readonly type: "function";
|
|
528413
|
+
}], "sps", readonly [bigint]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly [`0x${string}`, bigint, `0x${string}`]>;
|
|
528414
|
+
};
|
|
528415
|
+
address: `0x${string}`;
|
|
528416
|
+
abi: readonly [{
|
|
528417
|
+
readonly inputs: readonly [{
|
|
528418
|
+
readonly internalType: "uint256";
|
|
528419
|
+
readonly name: "assets";
|
|
528420
|
+
readonly type: "uint256";
|
|
528421
|
+
}];
|
|
528422
|
+
readonly name: "convertToShares";
|
|
528423
|
+
readonly outputs: readonly [{
|
|
528424
|
+
readonly internalType: "uint256";
|
|
528425
|
+
readonly name: "";
|
|
528426
|
+
readonly type: "uint256";
|
|
528427
|
+
}];
|
|
528428
|
+
readonly stateMutability: "view";
|
|
528429
|
+
readonly type: "function";
|
|
528430
|
+
}, {
|
|
528431
|
+
readonly inputs: readonly [{
|
|
528432
|
+
readonly internalType: "address";
|
|
528433
|
+
readonly name: "owner";
|
|
528434
|
+
readonly type: "address";
|
|
528435
|
+
}];
|
|
528436
|
+
readonly name: "maxWithdraw";
|
|
528437
|
+
readonly outputs: readonly [{
|
|
528438
|
+
readonly internalType: "uint256";
|
|
528439
|
+
readonly name: "";
|
|
528440
|
+
readonly type: "uint256";
|
|
528441
|
+
}];
|
|
528442
|
+
readonly stateMutability: "view";
|
|
528443
|
+
readonly type: "function";
|
|
528444
|
+
}, {
|
|
528445
|
+
readonly inputs: readonly [{
|
|
528446
|
+
readonly internalType: "uint256";
|
|
528447
|
+
readonly name: "";
|
|
528448
|
+
readonly type: "uint256";
|
|
528449
|
+
}];
|
|
528450
|
+
readonly name: "sps";
|
|
528451
|
+
readonly outputs: readonly [{
|
|
528452
|
+
readonly internalType: "address";
|
|
528453
|
+
readonly name: "sp";
|
|
528454
|
+
readonly type: "address";
|
|
528455
|
+
}, {
|
|
528456
|
+
readonly internalType: "uint96";
|
|
528457
|
+
readonly name: "weight";
|
|
528458
|
+
readonly type: "uint96";
|
|
528459
|
+
}, {
|
|
528460
|
+
readonly internalType: "address";
|
|
528461
|
+
readonly name: "coll";
|
|
528462
|
+
readonly type: "address";
|
|
528463
|
+
}];
|
|
528464
|
+
readonly stateMutability: "view";
|
|
528465
|
+
readonly type: "function";
|
|
528466
|
+
}, {
|
|
528467
|
+
readonly inputs: readonly [];
|
|
528468
|
+
readonly name: "totalAssets";
|
|
528469
|
+
readonly outputs: readonly [{
|
|
528470
|
+
readonly internalType: "uint256";
|
|
528471
|
+
readonly name: "";
|
|
528472
|
+
readonly type: "uint256";
|
|
528473
|
+
}];
|
|
528474
|
+
readonly stateMutability: "view";
|
|
528475
|
+
readonly type: "function";
|
|
528476
|
+
}];
|
|
528477
|
+
};
|
|
528478
|
+
export declare const StkAAVEViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
528479
|
+
read: {
|
|
528480
|
+
totalSupply: (options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528481
|
+
readonly inputs: readonly [{
|
|
528482
|
+
readonly internalType: "address";
|
|
528483
|
+
readonly name: "";
|
|
528484
|
+
readonly type: "address";
|
|
528485
|
+
}];
|
|
528486
|
+
readonly name: "assets";
|
|
528487
|
+
readonly outputs: readonly [{
|
|
528488
|
+
readonly internalType: "uint128";
|
|
528489
|
+
readonly name: "emissionPerSecond";
|
|
528490
|
+
readonly type: "uint128";
|
|
528491
|
+
}, {
|
|
528492
|
+
readonly internalType: "uint128";
|
|
528493
|
+
readonly name: "lastUpdateTimestamp";
|
|
528494
|
+
readonly type: "uint128";
|
|
528495
|
+
}, {
|
|
528496
|
+
readonly internalType: "uint256";
|
|
528497
|
+
readonly name: "index";
|
|
528498
|
+
readonly type: "uint256";
|
|
528499
|
+
}];
|
|
528500
|
+
readonly stateMutability: "view";
|
|
528501
|
+
readonly type: "function";
|
|
528502
|
+
}, {
|
|
528503
|
+
readonly inputs: readonly [{
|
|
528504
|
+
readonly internalType: "address";
|
|
528505
|
+
readonly name: "account";
|
|
528506
|
+
readonly type: "address";
|
|
528507
|
+
}];
|
|
528508
|
+
readonly name: "balanceOf";
|
|
528509
|
+
readonly outputs: readonly [{
|
|
528510
|
+
readonly internalType: "uint256";
|
|
528511
|
+
readonly name: "";
|
|
528512
|
+
readonly type: "uint256";
|
|
528513
|
+
}];
|
|
528514
|
+
readonly stateMutability: "view";
|
|
528515
|
+
readonly type: "function";
|
|
528516
|
+
}, {
|
|
528517
|
+
readonly inputs: readonly [];
|
|
528518
|
+
readonly name: "totalSupply";
|
|
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
|
+
}], "totalSupply", readonly []>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
528527
|
+
assets: (args: readonly [`0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528528
|
+
readonly inputs: readonly [{
|
|
528529
|
+
readonly internalType: "address";
|
|
528530
|
+
readonly name: "";
|
|
528531
|
+
readonly type: "address";
|
|
528532
|
+
}];
|
|
528533
|
+
readonly name: "assets";
|
|
528534
|
+
readonly outputs: readonly [{
|
|
528535
|
+
readonly internalType: "uint128";
|
|
528536
|
+
readonly name: "emissionPerSecond";
|
|
528537
|
+
readonly type: "uint128";
|
|
528538
|
+
}, {
|
|
528539
|
+
readonly internalType: "uint128";
|
|
528540
|
+
readonly name: "lastUpdateTimestamp";
|
|
528541
|
+
readonly type: "uint128";
|
|
528542
|
+
}, {
|
|
528543
|
+
readonly internalType: "uint256";
|
|
528544
|
+
readonly name: "index";
|
|
528545
|
+
readonly type: "uint256";
|
|
528546
|
+
}];
|
|
528547
|
+
readonly stateMutability: "view";
|
|
528548
|
+
readonly type: "function";
|
|
528549
|
+
}, {
|
|
528550
|
+
readonly inputs: readonly [{
|
|
528551
|
+
readonly internalType: "address";
|
|
528552
|
+
readonly name: "account";
|
|
528553
|
+
readonly type: "address";
|
|
528554
|
+
}];
|
|
528555
|
+
readonly name: "balanceOf";
|
|
528556
|
+
readonly outputs: readonly [{
|
|
528557
|
+
readonly internalType: "uint256";
|
|
528558
|
+
readonly name: "";
|
|
528559
|
+
readonly type: "uint256";
|
|
528560
|
+
}];
|
|
528561
|
+
readonly stateMutability: "view";
|
|
528562
|
+
readonly type: "function";
|
|
528563
|
+
}, {
|
|
528564
|
+
readonly inputs: readonly [];
|
|
528565
|
+
readonly name: "totalSupply";
|
|
528566
|
+
readonly outputs: readonly [{
|
|
528567
|
+
readonly internalType: "uint256";
|
|
528568
|
+
readonly name: "";
|
|
528569
|
+
readonly type: "uint256";
|
|
528570
|
+
}];
|
|
528571
|
+
readonly stateMutability: "view";
|
|
528572
|
+
readonly type: "function";
|
|
528573
|
+
}], "assets", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<readonly [bigint, bigint, bigint]>;
|
|
528574
|
+
balanceOf: (args: readonly [`0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
|
|
528575
|
+
readonly inputs: readonly [{
|
|
528576
|
+
readonly internalType: "address";
|
|
528577
|
+
readonly name: "";
|
|
528578
|
+
readonly type: "address";
|
|
528579
|
+
}];
|
|
528580
|
+
readonly name: "assets";
|
|
528581
|
+
readonly outputs: readonly [{
|
|
528582
|
+
readonly internalType: "uint128";
|
|
528583
|
+
readonly name: "emissionPerSecond";
|
|
528584
|
+
readonly type: "uint128";
|
|
528585
|
+
}, {
|
|
528586
|
+
readonly internalType: "uint128";
|
|
528587
|
+
readonly name: "lastUpdateTimestamp";
|
|
528588
|
+
readonly type: "uint128";
|
|
528589
|
+
}, {
|
|
528590
|
+
readonly internalType: "uint256";
|
|
528591
|
+
readonly name: "index";
|
|
528592
|
+
readonly type: "uint256";
|
|
528593
|
+
}];
|
|
528594
|
+
readonly stateMutability: "view";
|
|
528595
|
+
readonly type: "function";
|
|
528596
|
+
}, {
|
|
528597
|
+
readonly inputs: readonly [{
|
|
528598
|
+
readonly internalType: "address";
|
|
528599
|
+
readonly name: "account";
|
|
528600
|
+
readonly type: "address";
|
|
528601
|
+
}];
|
|
528602
|
+
readonly name: "balanceOf";
|
|
528603
|
+
readonly outputs: readonly [{
|
|
528604
|
+
readonly internalType: "uint256";
|
|
528605
|
+
readonly name: "";
|
|
528606
|
+
readonly type: "uint256";
|
|
528607
|
+
}];
|
|
528608
|
+
readonly stateMutability: "view";
|
|
528609
|
+
readonly type: "function";
|
|
528610
|
+
}, {
|
|
528611
|
+
readonly inputs: readonly [];
|
|
528612
|
+
readonly name: "totalSupply";
|
|
528613
|
+
readonly outputs: readonly [{
|
|
528614
|
+
readonly internalType: "uint256";
|
|
528615
|
+
readonly name: "";
|
|
528616
|
+
readonly type: "uint256";
|
|
528617
|
+
}];
|
|
528618
|
+
readonly stateMutability: "view";
|
|
528619
|
+
readonly type: "function";
|
|
528620
|
+
}], "balanceOf", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
|
|
528621
|
+
};
|
|
528622
|
+
address: `0x${string}`;
|
|
528623
|
+
abi: readonly [{
|
|
528624
|
+
readonly inputs: readonly [{
|
|
528625
|
+
readonly internalType: "address";
|
|
528626
|
+
readonly name: "";
|
|
528627
|
+
readonly type: "address";
|
|
528628
|
+
}];
|
|
528629
|
+
readonly name: "assets";
|
|
528630
|
+
readonly outputs: readonly [{
|
|
528631
|
+
readonly internalType: "uint128";
|
|
528632
|
+
readonly name: "emissionPerSecond";
|
|
528633
|
+
readonly type: "uint128";
|
|
528634
|
+
}, {
|
|
528635
|
+
readonly internalType: "uint128";
|
|
528636
|
+
readonly name: "lastUpdateTimestamp";
|
|
528637
|
+
readonly type: "uint128";
|
|
528638
|
+
}, {
|
|
528639
|
+
readonly internalType: "uint256";
|
|
528640
|
+
readonly name: "index";
|
|
528641
|
+
readonly type: "uint256";
|
|
528642
|
+
}];
|
|
528643
|
+
readonly stateMutability: "view";
|
|
528644
|
+
readonly type: "function";
|
|
528645
|
+
}, {
|
|
528646
|
+
readonly inputs: readonly [{
|
|
528647
|
+
readonly internalType: "address";
|
|
528648
|
+
readonly name: "account";
|
|
528649
|
+
readonly type: "address";
|
|
528650
|
+
}];
|
|
528651
|
+
readonly name: "balanceOf";
|
|
528652
|
+
readonly outputs: readonly [{
|
|
528653
|
+
readonly internalType: "uint256";
|
|
528654
|
+
readonly name: "";
|
|
528655
|
+
readonly type: "uint256";
|
|
528656
|
+
}];
|
|
528657
|
+
readonly stateMutability: "view";
|
|
528658
|
+
readonly type: "function";
|
|
528659
|
+
}, {
|
|
528660
|
+
readonly inputs: readonly [];
|
|
528661
|
+
readonly name: "totalSupply";
|
|
528662
|
+
readonly outputs: readonly [{
|
|
528663
|
+
readonly internalType: "uint256";
|
|
528664
|
+
readonly name: "";
|
|
528665
|
+
readonly type: "uint256";
|
|
528666
|
+
}];
|
|
528667
|
+
readonly stateMutability: "view";
|
|
528668
|
+
readonly type: "function";
|
|
528669
|
+
}];
|
|
528670
|
+
};
|