@meterio/sumer-js 0.1.9 → 0.1.11

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.
Files changed (91) hide show
  1. package/dist/browser/sumer.min.js +10 -10
  2. package/dist/nodejs/abi.d.ts +33 -2
  3. package/dist/nodejs/abi.js +228 -152
  4. package/dist/nodejs/abi.js.map +1 -1
  5. package/dist/nodejs/constants/index.js +4 -34
  6. package/dist/nodejs/constants/index.js.map +1 -1
  7. package/dist/nodejs/index.d.ts +33 -2
  8. package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +33 -1
  9. package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +33 -15
  10. package/dist/nodejs/typechain/contracts/Comptroller/CompoundLens.d.ts +17 -1
  11. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +9 -21
  12. package/dist/nodejs/typechain/contracts/Interfaces/IComptroller.d.ts +9 -25
  13. package/dist/nodejs/typechain/contracts/Interfaces/IEIP712.d.ts +41 -0
  14. package/dist/nodejs/typechain/contracts/{CToken/Test.sol/index.js → Interfaces/IEIP712.js} +1 -1
  15. package/dist/nodejs/typechain/contracts/Interfaces/IEIP712.js.map +1 -0
  16. package/dist/nodejs/typechain/contracts/Interfaces/index.d.ts +1 -0
  17. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +45 -1
  18. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +59 -1
  19. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
  20. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +1 -1
  21. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +1 -1
  22. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
  23. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +45 -19
  24. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +59 -25
  25. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
  26. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +1 -1
  27. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +1 -1
  28. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js.map +1 -1
  29. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +1 -1
  30. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +1 -1
  31. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +27 -1
  32. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +35 -1
  33. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
  34. package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.d.ts +1 -1
  35. package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js +1 -1
  36. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +19 -49
  37. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +25 -65
  38. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
  39. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +1 -1
  40. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +1 -1
  41. package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.d.ts +1 -1
  42. package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js +1 -1
  43. package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.d.ts +14 -48
  44. package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js +19 -64
  45. package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js.map +1 -1
  46. package/dist/nodejs/typechain/factories/contracts/Interfaces/IEIP712__factory.d.ts +33 -0
  47. package/dist/nodejs/typechain/factories/contracts/Interfaces/IEIP712__factory.js +53 -0
  48. package/dist/nodejs/typechain/factories/contracts/Interfaces/IEIP712__factory.js.map +1 -0
  49. package/dist/nodejs/typechain/factories/contracts/Interfaces/index.d.ts +1 -0
  50. package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js +3 -1
  51. package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js.map +1 -1
  52. package/dist/nodejs/typechain/hardhat.d.ts +18 -0
  53. package/dist/nodejs/typechain/index.d.ts +2 -0
  54. package/dist/nodejs/typechain/index.js +3 -1
  55. package/dist/nodejs/typechain/index.js.map +1 -1
  56. package/package.json +1 -1
  57. package/dist/nodejs/typechain/contracts/CToken/Interfaces/index.d.ts +0 -4
  58. package/dist/nodejs/typechain/contracts/CToken/Interfaces/index.js +0 -3
  59. package/dist/nodejs/typechain/contracts/CToken/Interfaces/index.js.map +0 -1
  60. package/dist/nodejs/typechain/contracts/CToken/Test.sol/index.d.ts +0 -1
  61. package/dist/nodejs/typechain/contracts/CToken/Test.sol/index.js.map +0 -1
  62. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.sol/Comptroller.d.ts +0 -1446
  63. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.sol/Comptroller.js +0 -3
  64. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.sol/Comptroller.js.map +0 -1
  65. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.sol/index.d.ts +0 -3
  66. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.sol/index.js +0 -3
  67. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.sol/index.js.map +0 -1
  68. package/dist/nodejs/typechain/contracts/Comptroller/Interfaces/index.d.ts +0 -6
  69. package/dist/nodejs/typechain/contracts/Comptroller/Interfaces/index.js +0 -3
  70. package/dist/nodejs/typechain/contracts/Comptroller/Interfaces/index.js.map +0 -1
  71. package/dist/nodejs/typechain/contracts/Oracle/Interfaces/index.d.ts +0 -4
  72. package/dist/nodejs/typechain/contracts/Oracle/Interfaces/index.js +0 -3
  73. package/dist/nodejs/typechain/contracts/Oracle/Interfaces/index.js.map +0 -1
  74. package/dist/nodejs/typechain/factories/contracts/CToken/Interfaces/index.d.ts +0 -4
  75. package/dist/nodejs/typechain/factories/contracts/CToken/Interfaces/index.js +0 -15
  76. package/dist/nodejs/typechain/factories/contracts/CToken/Interfaces/index.js.map +0 -1
  77. package/dist/nodejs/typechain/factories/contracts/CToken/Test.sol/index.d.ts +0 -1
  78. package/dist/nodejs/typechain/factories/contracts/CToken/Test.sol/index.js +0 -9
  79. package/dist/nodejs/typechain/factories/contracts/CToken/Test.sol/index.js.map +0 -1
  80. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/Comptroller__factory.d.ts +0 -2066
  81. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/Comptroller__factory.js +0 -2689
  82. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/Comptroller__factory.js.map +0 -1
  83. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/index.d.ts +0 -3
  84. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/index.js +0 -13
  85. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/index.js.map +0 -1
  86. package/dist/nodejs/typechain/factories/contracts/Comptroller/Interfaces/index.d.ts +0 -6
  87. package/dist/nodejs/typechain/factories/contracts/Comptroller/Interfaces/index.js +0 -19
  88. package/dist/nodejs/typechain/factories/contracts/Comptroller/Interfaces/index.js.map +0 -1
  89. package/dist/nodejs/typechain/factories/contracts/Oracle/Interfaces/index.d.ts +0 -4
  90. package/dist/nodejs/typechain/factories/contracts/Oracle/Interfaces/index.js +0 -15
  91. package/dist/nodejs/typechain/factories/contracts/Oracle/Interfaces/index.js.map +0 -1
@@ -1,31 +1,6 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  Object.defineProperty(exports, "__esModule", { value: true });
26
3
  exports.isEther = exports.getDecimalsOfUnderly = exports.getDecimals = exports.isUnderlyAllowed = exports.isCTokenAllowed = exports.getName = exports.getAddress = exports.getRateModals = exports.getTokenPairs = exports.getNetworkConfig = exports.constants = void 0;
27
- const path = __importStar(require("path"));
28
- const fs = __importStar(require("fs"));
29
4
  const arbitrum_1 = require("./arbitrum");
30
5
  const basemain_1 = require("./basemain");
31
6
  const basetest_1 = require("./basetest");
@@ -43,15 +18,10 @@ const NetworkConfigs = {
43
18
  sepolia: sepolia_1.sepolia,
44
19
  };
45
20
  let allTokenSymbols = {};
46
- for (const file of fs.readdirSync(path.join(__dirname))) {
47
- if (file.endsWith('.json')) {
48
- const j = JSON.parse(fs.readFileSync(path.join(__dirname, file)).toString());
49
- if (j.tokenPairs) {
50
- for (const pair of j.tokenPairs) {
51
- allTokenSymbols[pair.ctokenSym] = pair.ctokenSym;
52
- allTokenSymbols[pair.underlySym] = pair.underlySym;
53
- }
54
- }
21
+ for (const netName in NetworkConfigs) {
22
+ for (const pair of NetworkConfigs[netName].tokenPairs) {
23
+ allTokenSymbols[pair.ctokenSym] = pair.ctokenSym;
24
+ allTokenSymbols[pair.underlySym] = pair.underlySym;
55
25
  }
56
26
  }
57
27
  // Publicly revealed on the parent class
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4B;AAC5B,uCAAwB;AACxB,yCAAqC;AACrC,yCAAqC;AACrC,yCAAqC;AACrC,qCAAiC;AACjC,2CAAuC;AACvC,2CAAuC;AACvC,uCAAmC;AAEnC,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,MAAM,EAAN,eAAM;IACN,SAAS,EAAT,qBAAS;IACT,SAAS,EAAT,qBAAS;IACT,OAAO,EAAP,iBAAO;CACR,CAAA;AAUD,IAAI,eAAe,GAAG,EAAE,CAAA;AACxB,KAAK,MAAM,IAAI,IAAI,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC;IACxD,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QAC3B,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAA;QAC5E,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;YACjB,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;gBAChC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,SAAS,CAAA;gBAChD,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC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: ({
415
+ inputs: any[];
416
+ name: string;
417
+ type: string;
418
+ outputs?: undefined;
419
+ stateMutability?: undefined;
420
+ } | {
415
421
  inputs: {
416
422
  internalType: string;
417
423
  name: string;
@@ -430,7 +436,21 @@ declare const Sumer: {
430
436
  }[];
431
437
  stateMutability: string;
432
438
  type: string;
433
- }[];
439
+ } | {
440
+ inputs: {
441
+ internalType: string;
442
+ name: string;
443
+ type: string;
444
+ }[];
445
+ name: string;
446
+ outputs: {
447
+ internalType: string;
448
+ name: string;
449
+ type: string;
450
+ }[];
451
+ stateMutability: string;
452
+ type: string;
453
+ })[];
434
454
  Comptroller: ({
435
455
  inputs: any[];
436
456
  name: string;
@@ -937,6 +957,17 @@ declare const Sumer: {
937
957
  type: string;
938
958
  anonymous?: undefined;
939
959
  })[];
960
+ IEIP712: {
961
+ inputs: {
962
+ internalType: string;
963
+ name: string;
964
+ type: string;
965
+ }[];
966
+ name: string;
967
+ outputs: any[];
968
+ stateMutability: string;
969
+ type: string;
970
+ }[];
940
971
  IGovernorAlpha: {
941
972
  inputs: {
942
973
  internalType: string;
@@ -1,7 +1,7 @@
1
1
  import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
2
  import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
3
3
  export interface CErc20Interface extends Interface {
4
- getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockNumber" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCToken" | "isDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "name" | "pendingAdmin" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
4
+ getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockNumber" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCToken" | "isDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
5
5
  getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "Initialized" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
6
6
  encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
7
7
  encodeFunctionData(functionFragment: "_addReserves", values: [BigNumberish]): string;
@@ -51,6 +51,7 @@ export interface CErc20Interface extends Interface {
51
51
  encodeFunctionData(functionFragment: "liquidateBorrow", values: [AddressLike, BigNumberish, AddressLike]): string;
52
52
  encodeFunctionData(functionFragment: "liquidateCalculateSeizeTokens", values: [AddressLike, BigNumberish, BigNumberish]): string;
53
53
  encodeFunctionData(functionFragment: "mint", values: [BigNumberish]): string;
54
+ encodeFunctionData(functionFragment: "mintWithPermit", values: [BigNumberish, BigNumberish, BytesLike]): string;
54
55
  encodeFunctionData(functionFragment: "name", values?: undefined): string;
55
56
  encodeFunctionData(functionFragment: "pendingAdmin", values?: undefined): string;
56
57
  encodeFunctionData(functionFragment: "protocolSeizeShareMantissa", values?: undefined): string;
@@ -58,6 +59,7 @@ export interface CErc20Interface extends Interface {
58
59
  encodeFunctionData(functionFragment: "redeemUnderlying", values: [BigNumberish]): string;
59
60
  encodeFunctionData(functionFragment: "repayBorrow", values: [BigNumberish]): string;
60
61
  encodeFunctionData(functionFragment: "repayBorrowBehalf", values: [AddressLike, BigNumberish]): string;
62
+ encodeFunctionData(functionFragment: "repayBorrowWithPermit", values: [BigNumberish, BigNumberish, BytesLike]): string;
61
63
  encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
62
64
  encodeFunctionData(functionFragment: "seize", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
63
65
  encodeFunctionData(functionFragment: "supplyRatePerBlock", values?: undefined): string;
@@ -108,6 +110,7 @@ export interface CErc20Interface extends Interface {
108
110
  decodeFunctionResult(functionFragment: "liquidateBorrow", data: BytesLike): Result;
109
111
  decodeFunctionResult(functionFragment: "liquidateCalculateSeizeTokens", data: BytesLike): Result;
110
112
  decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
113
+ decodeFunctionResult(functionFragment: "mintWithPermit", data: BytesLike): Result;
111
114
  decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
112
115
  decodeFunctionResult(functionFragment: "pendingAdmin", data: BytesLike): Result;
113
116
  decodeFunctionResult(functionFragment: "protocolSeizeShareMantissa", data: BytesLike): Result;
@@ -115,6 +118,7 @@ export interface CErc20Interface extends Interface {
115
118
  decodeFunctionResult(functionFragment: "redeemUnderlying", data: BytesLike): Result;
116
119
  decodeFunctionResult(functionFragment: "repayBorrow", data: BytesLike): Result;
117
120
  decodeFunctionResult(functionFragment: "repayBorrowBehalf", data: BytesLike): Result;
121
+ decodeFunctionResult(functionFragment: "repayBorrowWithPermit", data: BytesLike): Result;
118
122
  decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
119
123
  decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
120
124
  decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
@@ -594,6 +598,13 @@ export interface CErc20 extends BaseContract {
594
598
  [bigint, bigint]
595
599
  ], "view">;
596
600
  mint: TypedContractMethod<[mintAmount: BigNumberish], [bigint], "nonpayable">;
601
+ mintWithPermit: TypedContractMethod<[
602
+ mintAmount: BigNumberish,
603
+ deadline: BigNumberish,
604
+ signature: BytesLike
605
+ ], [
606
+ bigint
607
+ ], "nonpayable">;
597
608
  name: TypedContractMethod<[], [string], "view">;
598
609
  pendingAdmin: TypedContractMethod<[], [string], "view">;
599
610
  protocolSeizeShareMantissa: TypedContractMethod<[], [bigint], "view">;
@@ -618,6 +629,13 @@ export interface CErc20 extends BaseContract {
618
629
  ], [
619
630
  bigint
620
631
  ], "nonpayable">;
632
+ repayBorrowWithPermit: TypedContractMethod<[
633
+ repayAmount: BigNumberish,
634
+ deadline: BigNumberish,
635
+ signature: BytesLike
636
+ ], [
637
+ bigint
638
+ ], "nonpayable">;
621
639
  reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
622
640
  seize: TypedContractMethod<[
623
641
  liquidator: AddressLike,
@@ -747,6 +765,13 @@ export interface CErc20 extends BaseContract {
747
765
  [bigint, bigint]
748
766
  ], "view">;
749
767
  getFunction(nameOrSignature: "mint"): TypedContractMethod<[mintAmount: BigNumberish], [bigint], "nonpayable">;
768
+ getFunction(nameOrSignature: "mintWithPermit"): TypedContractMethod<[
769
+ mintAmount: BigNumberish,
770
+ deadline: BigNumberish,
771
+ signature: BytesLike
772
+ ], [
773
+ bigint
774
+ ], "nonpayable">;
750
775
  getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
751
776
  getFunction(nameOrSignature: "pendingAdmin"): TypedContractMethod<[], [string], "view">;
752
777
  getFunction(nameOrSignature: "protocolSeizeShareMantissa"): TypedContractMethod<[], [bigint], "view">;
@@ -759,6 +784,13 @@ export interface CErc20 extends BaseContract {
759
784
  ], [
760
785
  bigint
761
786
  ], "nonpayable">;
787
+ getFunction(nameOrSignature: "repayBorrowWithPermit"): TypedContractMethod<[
788
+ repayAmount: BigNumberish,
789
+ deadline: BigNumberish,
790
+ signature: BytesLike
791
+ ], [
792
+ bigint
793
+ ], "nonpayable">;
762
794
  getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
763
795
  getFunction(nameOrSignature: "seize"): TypedContractMethod<[
764
796
  liquidator: AddressLike,
@@ -1,7 +1,7 @@
1
1
  import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
2
  import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
3
3
  export interface SuErc20Interface extends Interface {
4
- getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockNumber" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowCollateralAndMintSynthetic" | "borrowIndex" | "borrowRatePerBlock" | "calcCBorrowAmount" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "executeRedemption" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCToken" | "isDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "name" | "pendingAdmin" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
4
+ getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockNumber" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowCollateralAndMintSynthetic" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "executeRedemption" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCToken" | "isDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
5
5
  getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "Initialized" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
6
6
  encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
7
7
  encodeFunctionData(functionFragment: "_addReserves", values: [BigNumberish]): string;
@@ -26,7 +26,6 @@ export interface SuErc20Interface extends Interface {
26
26
  encodeFunctionData(functionFragment: "borrowCollateralAndMintSynthetic", values: [AddressLike, BigNumberish, BigNumberish]): string;
27
27
  encodeFunctionData(functionFragment: "borrowIndex", values?: undefined): string;
28
28
  encodeFunctionData(functionFragment: "borrowRatePerBlock", values?: undefined): string;
29
- encodeFunctionData(functionFragment: "calcCBorrowAmount", values: [AddressLike, BigNumberish]): string;
30
29
  encodeFunctionData(functionFragment: "comptroller", values?: undefined): string;
31
30
  encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
32
31
  encodeFunctionData(functionFragment: "discountRateMantissa", values?: undefined): string;
@@ -61,6 +60,7 @@ export interface SuErc20Interface extends Interface {
61
60
  encodeFunctionData(functionFragment: "liquidateBorrow", values: [AddressLike, BigNumberish, AddressLike]): string;
62
61
  encodeFunctionData(functionFragment: "liquidateCalculateSeizeTokens", values: [AddressLike, BigNumberish, BigNumberish]): string;
63
62
  encodeFunctionData(functionFragment: "mint", values: [BigNumberish]): string;
63
+ encodeFunctionData(functionFragment: "mintWithPermit", values: [BigNumberish, BigNumberish, BytesLike]): string;
64
64
  encodeFunctionData(functionFragment: "name", values?: undefined): string;
65
65
  encodeFunctionData(functionFragment: "pendingAdmin", values?: undefined): string;
66
66
  encodeFunctionData(functionFragment: "protocolSeizeShareMantissa", values?: undefined): string;
@@ -68,6 +68,7 @@ export interface SuErc20Interface extends Interface {
68
68
  encodeFunctionData(functionFragment: "redeemUnderlying", values: [BigNumberish]): string;
69
69
  encodeFunctionData(functionFragment: "repayBorrow", values: [BigNumberish]): string;
70
70
  encodeFunctionData(functionFragment: "repayBorrowBehalf", values: [AddressLike, BigNumberish]): string;
71
+ encodeFunctionData(functionFragment: "repayBorrowWithPermit", values: [BigNumberish, BigNumberish, BytesLike]): string;
71
72
  encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
72
73
  encodeFunctionData(functionFragment: "seize", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
73
74
  encodeFunctionData(functionFragment: "supplyRatePerBlock", values?: undefined): string;
@@ -104,7 +105,6 @@ export interface SuErc20Interface extends Interface {
104
105
  decodeFunctionResult(functionFragment: "borrowCollateralAndMintSynthetic", data: BytesLike): Result;
105
106
  decodeFunctionResult(functionFragment: "borrowIndex", data: BytesLike): Result;
106
107
  decodeFunctionResult(functionFragment: "borrowRatePerBlock", data: BytesLike): Result;
107
- decodeFunctionResult(functionFragment: "calcCBorrowAmount", data: BytesLike): Result;
108
108
  decodeFunctionResult(functionFragment: "comptroller", data: BytesLike): Result;
109
109
  decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
110
110
  decodeFunctionResult(functionFragment: "discountRateMantissa", data: BytesLike): Result;
@@ -121,6 +121,7 @@ export interface SuErc20Interface extends Interface {
121
121
  decodeFunctionResult(functionFragment: "liquidateBorrow", data: BytesLike): Result;
122
122
  decodeFunctionResult(functionFragment: "liquidateCalculateSeizeTokens", data: BytesLike): Result;
123
123
  decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
124
+ decodeFunctionResult(functionFragment: "mintWithPermit", data: BytesLike): Result;
124
125
  decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
125
126
  decodeFunctionResult(functionFragment: "pendingAdmin", data: BytesLike): Result;
126
127
  decodeFunctionResult(functionFragment: "protocolSeizeShareMantissa", data: BytesLike): Result;
@@ -128,6 +129,7 @@ export interface SuErc20Interface extends Interface {
128
129
  decodeFunctionResult(functionFragment: "redeemUnderlying", data: BytesLike): Result;
129
130
  decodeFunctionResult(functionFragment: "repayBorrow", data: BytesLike): Result;
130
131
  decodeFunctionResult(functionFragment: "repayBorrowBehalf", data: BytesLike): Result;
132
+ decodeFunctionResult(functionFragment: "repayBorrowWithPermit", data: BytesLike): Result;
131
133
  decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
132
134
  decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
133
135
  decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
@@ -570,12 +572,6 @@ export interface SuErc20 extends BaseContract {
570
572
  ], "nonpayable">;
571
573
  borrowIndex: TypedContractMethod<[], [bigint], "view">;
572
574
  borrowRatePerBlock: TypedContractMethod<[], [bigint], "view">;
573
- calcCBorrowAmount: TypedContractMethod<[
574
- cTokenCollateral: AddressLike,
575
- suBorrowAmount: BigNumberish
576
- ], [
577
- bigint
578
- ], "view">;
579
575
  comptroller: TypedContractMethod<[], [string], "view">;
580
576
  decimals: TypedContractMethod<[], [bigint], "view">;
581
577
  discountRateMantissa: TypedContractMethod<[], [bigint], "view">;
@@ -630,6 +626,13 @@ export interface SuErc20 extends BaseContract {
630
626
  [bigint, bigint]
631
627
  ], "view">;
632
628
  mint: TypedContractMethod<[mintAmount: BigNumberish], [bigint], "nonpayable">;
629
+ mintWithPermit: TypedContractMethod<[
630
+ mintAmount: BigNumberish,
631
+ deadline: BigNumberish,
632
+ signature: BytesLike
633
+ ], [
634
+ bigint
635
+ ], "nonpayable">;
633
636
  name: TypedContractMethod<[], [string], "view">;
634
637
  pendingAdmin: TypedContractMethod<[], [string], "view">;
635
638
  protocolSeizeShareMantissa: TypedContractMethod<[], [bigint], "view">;
@@ -654,6 +657,13 @@ export interface SuErc20 extends BaseContract {
654
657
  ], [
655
658
  bigint
656
659
  ], "nonpayable">;
660
+ repayBorrowWithPermit: TypedContractMethod<[
661
+ repayAmount: BigNumberish,
662
+ deadline: BigNumberish,
663
+ signature: BytesLike
664
+ ], [
665
+ bigint
666
+ ], "nonpayable">;
657
667
  reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
658
668
  seize: TypedContractMethod<[
659
669
  liquidator: AddressLike,
@@ -746,12 +756,6 @@ export interface SuErc20 extends BaseContract {
746
756
  ], "nonpayable">;
747
757
  getFunction(nameOrSignature: "borrowIndex"): TypedContractMethod<[], [bigint], "view">;
748
758
  getFunction(nameOrSignature: "borrowRatePerBlock"): TypedContractMethod<[], [bigint], "view">;
749
- getFunction(nameOrSignature: "calcCBorrowAmount"): TypedContractMethod<[
750
- cTokenCollateral: AddressLike,
751
- suBorrowAmount: BigNumberish
752
- ], [
753
- bigint
754
- ], "view">;
755
759
  getFunction(nameOrSignature: "comptroller"): TypedContractMethod<[], [string], "view">;
756
760
  getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">;
757
761
  getFunction(nameOrSignature: "discountRateMantissa"): TypedContractMethod<[], [bigint], "view">;
@@ -806,6 +810,13 @@ export interface SuErc20 extends BaseContract {
806
810
  [bigint, bigint]
807
811
  ], "view">;
808
812
  getFunction(nameOrSignature: "mint"): TypedContractMethod<[mintAmount: BigNumberish], [bigint], "nonpayable">;
813
+ getFunction(nameOrSignature: "mintWithPermit"): TypedContractMethod<[
814
+ mintAmount: BigNumberish,
815
+ deadline: BigNumberish,
816
+ signature: BytesLike
817
+ ], [
818
+ bigint
819
+ ], "nonpayable">;
809
820
  getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
810
821
  getFunction(nameOrSignature: "pendingAdmin"): TypedContractMethod<[], [string], "view">;
811
822
  getFunction(nameOrSignature: "protocolSeizeShareMantissa"): TypedContractMethod<[], [bigint], "view">;
@@ -818,6 +829,13 @@ export interface SuErc20 extends BaseContract {
818
829
  ], [
819
830
  bigint
820
831
  ], "nonpayable">;
832
+ getFunction(nameOrSignature: "repayBorrowWithPermit"): TypedContractMethod<[
833
+ repayAmount: BigNumberish,
834
+ deadline: BigNumberish,
835
+ signature: BytesLike
836
+ ], [
837
+ bigint
838
+ ], "nonpayable">;
821
839
  getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
822
840
  getFunction(nameOrSignature: "seize"): TypedContractMethod<[
823
841
  liquidator: AddressLike,
@@ -301,13 +301,14 @@ export declare namespace CompoundLens {
301
301
  };
302
302
  }
303
303
  export interface CompoundLensInterface extends Interface {
304
- getFunction(nameOrSignature: "cTokenBalances" | "cTokenBalancesAll" | "cTokenMetadata" | "cTokenMetadataAll" | "cTokenUnderlyingPrice" | "cTokenUnderlyingPriceAll" | "getAccountLimits" | "getCompBalanceMetadata" | "getCompBalanceMetadataExt" | "getCompVotes" | "getGovBravoProposals" | "getGovBravoReceipts" | "getGovProposals" | "getGovReceipts"): FunctionFragment;
304
+ getFunction(nameOrSignature: "cTokenBalances" | "cTokenBalancesAll" | "cTokenMetadata" | "cTokenMetadataAll" | "cTokenUnderlyingPrice" | "cTokenUnderlyingPriceAll" | "calcCBorrowAmount" | "getAccountLimits" | "getCompBalanceMetadata" | "getCompBalanceMetadataExt" | "getCompVotes" | "getGovBravoProposals" | "getGovBravoReceipts" | "getGovProposals" | "getGovReceipts"): FunctionFragment;
305
305
  encodeFunctionData(functionFragment: "cTokenBalances", values: [AddressLike, AddressLike]): string;
306
306
  encodeFunctionData(functionFragment: "cTokenBalancesAll", values: [AddressLike[], AddressLike]): string;
307
307
  encodeFunctionData(functionFragment: "cTokenMetadata", values: [AddressLike]): string;
308
308
  encodeFunctionData(functionFragment: "cTokenMetadataAll", values: [AddressLike[]]): string;
309
309
  encodeFunctionData(functionFragment: "cTokenUnderlyingPrice", values: [AddressLike]): string;
310
310
  encodeFunctionData(functionFragment: "cTokenUnderlyingPriceAll", values: [AddressLike[]]): string;
311
+ encodeFunctionData(functionFragment: "calcCBorrowAmount", values: [AddressLike, AddressLike, BigNumberish]): string;
311
312
  encodeFunctionData(functionFragment: "getAccountLimits", values: [AddressLike, AddressLike]): string;
312
313
  encodeFunctionData(functionFragment: "getCompBalanceMetadata", values: [AddressLike, AddressLike]): string;
313
314
  encodeFunctionData(functionFragment: "getCompBalanceMetadataExt", values: [AddressLike, AddressLike, AddressLike]): string;
@@ -322,6 +323,7 @@ export interface CompoundLensInterface extends Interface {
322
323
  decodeFunctionResult(functionFragment: "cTokenMetadataAll", data: BytesLike): Result;
323
324
  decodeFunctionResult(functionFragment: "cTokenUnderlyingPrice", data: BytesLike): Result;
324
325
  decodeFunctionResult(functionFragment: "cTokenUnderlyingPriceAll", data: BytesLike): Result;
326
+ decodeFunctionResult(functionFragment: "calcCBorrowAmount", data: BytesLike): Result;
325
327
  decodeFunctionResult(functionFragment: "getAccountLimits", data: BytesLike): Result;
326
328
  decodeFunctionResult(functionFragment: "getCompBalanceMetadata", data: BytesLike): Result;
327
329
  decodeFunctionResult(functionFragment: "getCompBalanceMetadataExt", data: BytesLike): Result;
@@ -376,6 +378,13 @@ export interface CompoundLens extends BaseContract {
376
378
  ], [
377
379
  CompoundLens.CTokenUnderlyingPriceStructOutput[]
378
380
  ], "view">;
381
+ calcCBorrowAmount: TypedContractMethod<[
382
+ cTokenCollateral: AddressLike,
383
+ suToken: AddressLike,
384
+ suBorrowAmount: BigNumberish
385
+ ], [
386
+ bigint
387
+ ], "view">;
379
388
  getAccountLimits: TypedContractMethod<[
380
389
  comptroller: AddressLike,
381
390
  account: AddressLike
@@ -461,6 +470,13 @@ export interface CompoundLens extends BaseContract {
461
470
  ], [
462
471
  CompoundLens.CTokenUnderlyingPriceStructOutput[]
463
472
  ], "view">;
473
+ getFunction(nameOrSignature: "calcCBorrowAmount"): TypedContractMethod<[
474
+ cTokenCollateral: AddressLike,
475
+ suToken: AddressLike,
476
+ suBorrowAmount: BigNumberish
477
+ ], [
478
+ bigint
479
+ ], "view">;
464
480
  getFunction(nameOrSignature: "getAccountLimits"): TypedContractMethod<[
465
481
  comptroller: AddressLike,
466
482
  account: AddressLike
@@ -32,7 +32,7 @@ export declare namespace IComptroller {
32
32
  };
33
33
  }
34
34
  export interface ComptrollerInterface extends Interface {
35
- getFunction(nameOrSignature: "CAPPER_ROLE" | "COMP_LOGIC" | "DEFAULT_ADMIN_ROLE" | "PAUSER_ROLE" | "_borrowGuardianPaused" | "_getBorrowCapGuardian" | "_getBorrowPaused" | "_getMintPaused" | "_getPauseGuardian" | "_getSeizePaused" | "_getTransferPaused" | "_mintGuardianPaused" | "_setBorrowCapGuardian" | "_setBorrowPaused" | "_setCloseFactor" | "_setLiquidationIncentive" | "_setMarketBorrowCaps" | "_setMaxSupply" | "_setMintPaused" | "_setPauseGuardian" | "_setPriceOracle" | "_setSeizePaused" | "_setTransferPaused" | "_supportMarket" | "accountAssets" | "accountLiquidity" | "allMarkets" | "assetGroupIdToIndex" | "borrowAllowed" | "borrowCapGuardian" | "borrowCaps" | "borrowGuardianPaused" | "borrowVerify" | "checkMembership" | "cleanAssetGroup" | "closeFactorMantissa" | "compLogic" | "enterMarkets" | "enterMarketsForAll" | "eqAssetGroup" | "exitMarket" | "getAccountLiquidity" | "getAccountSafeLimit" | "getAllAssetGroup" | "getAllAssetGroupByIndex" | "getAllMarkets" | "getAssetGroup" | "getAssetGroupNum" | "getAssetsIn" | "getCollateralRate" | "getCompAddress" | "getHypotheticalAccountLiquidity" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "governanceToken" | "grantRole" | "hasRole" | "heteroLiquidationIncentiveMantissa" | "homoLiquidationIncentiveMantissa" | "initialize" | "isComptroller" | "isListed" | "liquidateBorrowAllowed" | "liquidationIncentiveMantissa" | "marketGroupId" | "markets" | "maxSupply" | "minSuBorrowValue" | "mintAllowed" | "mintGuardianPaused" | "oracle" | "pauseGuardian" | "redeemAllowed" | "redeemFaceValue" | "redeemFaceValueWithTargetPlan" | "redeemVerify" | "redemptionManager" | "removeAssetGroup" | "renounceRole" | "repayBorrowAllowed" | "repayBorrowVerify" | "revokeRole" | "seizeAllowed" | "seizeGuardianPaused" | "seizeVerify" | "setAccountLiquidity" | "setAssetGroup" | "setCompLogic" | "setCompSpeed" | "setGovTokenAddress" | "setMinSuBorrowValue" | "setRedemptionManager" | "setTimelock" | "suTokenRateMantissa" | "supportsInterface" | "sutokenLiquidationIncentiveMantissa" | "timelock" | "transferAllowed" | "transferGuardianPaused" | "updateSortedBorrowsBatch"): FunctionFragment;
35
+ getFunction(nameOrSignature: "CAPPER_ROLE" | "COMP_LOGIC" | "DEFAULT_ADMIN_ROLE" | "PAUSER_ROLE" | "_borrowGuardianPaused" | "_getBorrowCapGuardian" | "_getPauseGuardian" | "_mintGuardianPaused" | "_setBorrowCapGuardian" | "_setBorrowPaused" | "_setCloseFactor" | "_setLiquidationIncentive" | "_setMarketBorrowCaps" | "_setMaxSupply" | "_setMintPaused" | "_setPauseGuardian" | "_setPriceOracle" | "_setProtocolPaused" | "_setSeizePaused" | "_setTransferPaused" | "_supportMarket" | "accountAssets" | "accountLiquidity" | "allMarkets" | "assetGroupIdToIndex" | "borrowAllowed" | "borrowCapGuardian" | "borrowCaps" | "borrowGuardianPaused" | "borrowVerify" | "checkMembership" | "cleanAssetGroup" | "closeFactorMantissa" | "compLogic" | "enterMarkets" | "enterMarketsForAll" | "eqAssetGroup" | "exitMarket" | "getAccountLiquidity" | "getAccountSafeLimit" | "getAllAssetGroup" | "getAllAssetGroupByIndex" | "getAllMarkets" | "getAssetGroup" | "getAssetGroupNum" | "getAssetsIn" | "getCollateralRate" | "getCompAddress" | "getHypotheticalAccountLiquidity" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "governanceToken" | "grantRole" | "hasRole" | "heteroLiquidationIncentiveMantissa" | "homoLiquidationIncentiveMantissa" | "initialize" | "isComptroller" | "isListed" | "liquidateBorrowAllowed" | "liquidationIncentiveMantissa" | "marketGroupId" | "markets" | "maxSupply" | "minSuBorrowValue" | "mintAllowed" | "mintGuardianPaused" | "oracle" | "pauseGuardian" | "redeemAllowed" | "redeemFaceValue" | "redeemFaceValueWithTargetPlan" | "redeemVerify" | "redemptionManager" | "removeAssetGroup" | "renounceRole" | "repayBorrowAllowed" | "repayBorrowVerify" | "revokeRole" | "seizeAllowed" | "seizeGuardianPaused" | "seizeVerify" | "setAccountLiquidity" | "setAssetGroup" | "setCompLogic" | "setCompSpeed" | "setGovTokenAddress" | "setMinSuBorrowValue" | "setRedemptionManager" | "setTimelock" | "suTokenRateMantissa" | "supportsInterface" | "sutokenLiquidationIncentiveMantissa" | "timelock" | "transferAllowed" | "transferGuardianPaused" | "updateSortedBorrowsBatch"): FunctionFragment;
36
36
  getEvent(nameOrSignatureOrTopic: "ActionPaused" | "Initialized" | "MarketEntered" | "MarketExited" | "MarketListed" | "NewAssetGroup" | "NewBorrowCap" | "NewBorrowCapGuardian" | "NewCloseFactor" | "NewLiquidationIncentive" | "NewPauseGuardian" | "NewPriceOracle" | "Redemption" | "RemoveAssetGroup" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "SetMaxSupply"): EventFragment;
37
37
  encodeFunctionData(functionFragment: "CAPPER_ROLE", values?: undefined): string;
38
38
  encodeFunctionData(functionFragment: "COMP_LOGIC", values?: undefined): string;
@@ -40,11 +40,7 @@ export interface ComptrollerInterface extends Interface {
40
40
  encodeFunctionData(functionFragment: "PAUSER_ROLE", values?: undefined): string;
41
41
  encodeFunctionData(functionFragment: "_borrowGuardianPaused", values?: undefined): string;
42
42
  encodeFunctionData(functionFragment: "_getBorrowCapGuardian", values?: undefined): string;
43
- encodeFunctionData(functionFragment: "_getBorrowPaused", values: [AddressLike]): string;
44
- encodeFunctionData(functionFragment: "_getMintPaused", values: [AddressLike]): string;
45
43
  encodeFunctionData(functionFragment: "_getPauseGuardian", values?: undefined): string;
46
- encodeFunctionData(functionFragment: "_getSeizePaused", values?: undefined): string;
47
- encodeFunctionData(functionFragment: "_getTransferPaused", values?: undefined): string;
48
44
  encodeFunctionData(functionFragment: "_mintGuardianPaused", values?: undefined): string;
49
45
  encodeFunctionData(functionFragment: "_setBorrowCapGuardian", values: [AddressLike]): string;
50
46
  encodeFunctionData(functionFragment: "_setBorrowPaused", values: [AddressLike, boolean]): string;
@@ -55,6 +51,7 @@ export interface ComptrollerInterface extends Interface {
55
51
  encodeFunctionData(functionFragment: "_setMintPaused", values: [AddressLike, boolean]): string;
56
52
  encodeFunctionData(functionFragment: "_setPauseGuardian", values: [AddressLike]): string;
57
53
  encodeFunctionData(functionFragment: "_setPriceOracle", values: [AddressLike]): string;
54
+ encodeFunctionData(functionFragment: "_setProtocolPaused", values: [boolean]): string;
58
55
  encodeFunctionData(functionFragment: "_setSeizePaused", values: [boolean]): string;
59
56
  encodeFunctionData(functionFragment: "_setTransferPaused", values: [boolean]): string;
60
57
  encodeFunctionData(functionFragment: "_supportMarket", values: [AddressLike, BigNumberish, BigNumberish, BigNumberish]): string;
@@ -160,11 +157,7 @@ export interface ComptrollerInterface extends Interface {
160
157
  decodeFunctionResult(functionFragment: "PAUSER_ROLE", data: BytesLike): Result;
161
158
  decodeFunctionResult(functionFragment: "_borrowGuardianPaused", data: BytesLike): Result;
162
159
  decodeFunctionResult(functionFragment: "_getBorrowCapGuardian", data: BytesLike): Result;
163
- decodeFunctionResult(functionFragment: "_getBorrowPaused", data: BytesLike): Result;
164
- decodeFunctionResult(functionFragment: "_getMintPaused", data: BytesLike): Result;
165
160
  decodeFunctionResult(functionFragment: "_getPauseGuardian", data: BytesLike): Result;
166
- decodeFunctionResult(functionFragment: "_getSeizePaused", data: BytesLike): Result;
167
- decodeFunctionResult(functionFragment: "_getTransferPaused", data: BytesLike): Result;
168
161
  decodeFunctionResult(functionFragment: "_mintGuardianPaused", data: BytesLike): Result;
169
162
  decodeFunctionResult(functionFragment: "_setBorrowCapGuardian", data: BytesLike): Result;
170
163
  decodeFunctionResult(functionFragment: "_setBorrowPaused", data: BytesLike): Result;
@@ -175,6 +168,7 @@ export interface ComptrollerInterface extends Interface {
175
168
  decodeFunctionResult(functionFragment: "_setMintPaused", data: BytesLike): Result;
176
169
  decodeFunctionResult(functionFragment: "_setPauseGuardian", data: BytesLike): Result;
177
170
  decodeFunctionResult(functionFragment: "_setPriceOracle", data: BytesLike): Result;
171
+ decodeFunctionResult(functionFragment: "_setProtocolPaused", data: BytesLike): Result;
178
172
  decodeFunctionResult(functionFragment: "_setSeizePaused", data: BytesLike): Result;
179
173
  decodeFunctionResult(functionFragment: "_setTransferPaused", data: BytesLike): Result;
180
174
  decodeFunctionResult(functionFragment: "_supportMarket", data: BytesLike): Result;
@@ -601,15 +595,7 @@ export interface Comptroller extends BaseContract {
601
595
  PAUSER_ROLE: TypedContractMethod<[], [string], "view">;
602
596
  _borrowGuardianPaused: TypedContractMethod<[], [boolean], "view">;
603
597
  _getBorrowCapGuardian: TypedContractMethod<[], [string], "view">;
604
- _getBorrowPaused: TypedContractMethod<[
605
- cToken: AddressLike
606
- ], [
607
- boolean
608
- ], "view">;
609
- _getMintPaused: TypedContractMethod<[cToken: AddressLike], [boolean], "view">;
610
598
  _getPauseGuardian: TypedContractMethod<[], [string], "view">;
611
- _getSeizePaused: TypedContractMethod<[], [boolean], "view">;
612
- _getTransferPaused: TypedContractMethod<[], [boolean], "view">;
613
599
  _mintGuardianPaused: TypedContractMethod<[], [boolean], "view">;
614
600
  _setBorrowCapGuardian: TypedContractMethod<[
615
601
  newBorrowCapGuardian: AddressLike
@@ -662,6 +648,11 @@ export interface Comptroller extends BaseContract {
662
648
  ], [
663
649
  bigint
664
650
  ], "nonpayable">;
651
+ _setProtocolPaused: TypedContractMethod<[
652
+ state: boolean
653
+ ], [
654
+ boolean
655
+ ], "nonpayable">;
665
656
  _setSeizePaused: TypedContractMethod<[
666
657
  state: boolean
667
658
  ], [
@@ -1034,11 +1025,7 @@ export interface Comptroller extends BaseContract {
1034
1025
  getFunction(nameOrSignature: "PAUSER_ROLE"): TypedContractMethod<[], [string], "view">;
1035
1026
  getFunction(nameOrSignature: "_borrowGuardianPaused"): TypedContractMethod<[], [boolean], "view">;
1036
1027
  getFunction(nameOrSignature: "_getBorrowCapGuardian"): TypedContractMethod<[], [string], "view">;
1037
- getFunction(nameOrSignature: "_getBorrowPaused"): TypedContractMethod<[cToken: AddressLike], [boolean], "view">;
1038
- getFunction(nameOrSignature: "_getMintPaused"): TypedContractMethod<[cToken: AddressLike], [boolean], "view">;
1039
1028
  getFunction(nameOrSignature: "_getPauseGuardian"): TypedContractMethod<[], [string], "view">;
1040
- getFunction(nameOrSignature: "_getSeizePaused"): TypedContractMethod<[], [boolean], "view">;
1041
- getFunction(nameOrSignature: "_getTransferPaused"): TypedContractMethod<[], [boolean], "view">;
1042
1029
  getFunction(nameOrSignature: "_mintGuardianPaused"): TypedContractMethod<[], [boolean], "view">;
1043
1030
  getFunction(nameOrSignature: "_setBorrowCapGuardian"): TypedContractMethod<[
1044
1031
  newBorrowCapGuardian: AddressLike
@@ -1087,6 +1074,7 @@ export interface Comptroller extends BaseContract {
1087
1074
  bigint
1088
1075
  ], "nonpayable">;
1089
1076
  getFunction(nameOrSignature: "_setPriceOracle"): TypedContractMethod<[newOracle: AddressLike], [bigint], "nonpayable">;
1077
+ getFunction(nameOrSignature: "_setProtocolPaused"): TypedContractMethod<[state: boolean], [boolean], "nonpayable">;
1090
1078
  getFunction(nameOrSignature: "_setSeizePaused"): TypedContractMethod<[state: boolean], [boolean], "nonpayable">;
1091
1079
  getFunction(nameOrSignature: "_setTransferPaused"): TypedContractMethod<[state: boolean], [boolean], "nonpayable">;
1092
1080
  getFunction(nameOrSignature: "_supportMarket"): TypedContractMethod<[
@@ -32,15 +32,12 @@ export declare namespace IComptroller {
32
32
  };
33
33
  }
34
34
  export interface IComptrollerInterface extends Interface {
35
- getFunction(nameOrSignature: "_getBorrowPaused" | "_getMintPaused" | "_getSeizePaused" | "_getTransferPaused" | "assetGroupIdToIndex" | "borrowAllowed" | "borrowCaps" | "borrowVerify" | "claimComp" | "closeFactorMantissa" | "compAccrued" | "enterMarkets" | "exitMarket" | "getAccountLiquidity" | "getAllAssetGroup" | "getAllMarkets" | "getAssetGroup" | "getAssetGroupNum" | "getAssetsIn" | "getCollateralRate" | "getCompAddress" | "getHypotheticalAccountLiquidity" | "isComptroller" | "isListed" | "liquidateBorrowAllowed" | "liquidateBorrowVerify" | "liquidationIncentiveMantissa" | "marketGroupId" | "markets" | "mintAllowed" | "oracle" | "redeemAllowed" | "redeemVerify" | "repayBorrowAllowed" | "repayBorrowVerify" | "seizeAllowed" | "seizeVerify" | "timelock" | "transferAllowed"): FunctionFragment;
35
+ getFunction(nameOrSignature: "assetGroupIdToIndex" | "borrowAllowed" | "borrowCaps" | "borrowGuardianPaused" | "borrowVerify" | "claimComp" | "closeFactorMantissa" | "compAccrued" | "enterMarkets" | "exitMarket" | "getAccountLiquidity" | "getAllAssetGroup" | "getAllMarkets" | "getAssetGroup" | "getAssetGroupNum" | "getAssetsIn" | "getCollateralRate" | "getCompAddress" | "getHypotheticalAccountLiquidity" | "isComptroller" | "isListed" | "liquidateBorrowAllowed" | "liquidateBorrowVerify" | "liquidationIncentiveMantissa" | "marketGroupId" | "markets" | "mintAllowed" | "oracle" | "redeemAllowed" | "redeemVerify" | "repayBorrowAllowed" | "repayBorrowVerify" | "seizeAllowed" | "seizeVerify" | "timelock" | "transferAllowed"): FunctionFragment;
36
36
  getEvent(nameOrSignatureOrTopic: "ActionPaused" | "NewBorrowCap" | "NewBorrowCapGuardian" | "NewPauseGuardian" | "RemoveAssetGroup"): EventFragment;
37
- encodeFunctionData(functionFragment: "_getBorrowPaused", values: [AddressLike]): string;
38
- encodeFunctionData(functionFragment: "_getMintPaused", values: [AddressLike]): string;
39
- encodeFunctionData(functionFragment: "_getSeizePaused", values?: undefined): string;
40
- encodeFunctionData(functionFragment: "_getTransferPaused", values?: undefined): string;
41
37
  encodeFunctionData(functionFragment: "assetGroupIdToIndex", values: [BigNumberish]): string;
42
38
  encodeFunctionData(functionFragment: "borrowAllowed", values: [AddressLike, AddressLike, BigNumberish]): string;
43
39
  encodeFunctionData(functionFragment: "borrowCaps", values: [AddressLike]): string;
40
+ encodeFunctionData(functionFragment: "borrowGuardianPaused", values: [AddressLike]): string;
44
41
  encodeFunctionData(functionFragment: "borrowVerify", values: [AddressLike, AddressLike, BigNumberish]): string;
45
42
  encodeFunctionData(functionFragment: "claimComp", values: [AddressLike]): string;
46
43
  encodeFunctionData(functionFragment: "closeFactorMantissa", values?: undefined): string;
@@ -80,13 +77,10 @@ export interface IComptrollerInterface extends Interface {
80
77
  encodeFunctionData(functionFragment: "seizeVerify", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
81
78
  encodeFunctionData(functionFragment: "timelock", values?: undefined): string;
82
79
  encodeFunctionData(functionFragment: "transferAllowed", values: [AddressLike, AddressLike, AddressLike, BigNumberish]): string;
83
- decodeFunctionResult(functionFragment: "_getBorrowPaused", data: BytesLike): Result;
84
- decodeFunctionResult(functionFragment: "_getMintPaused", data: BytesLike): Result;
85
- decodeFunctionResult(functionFragment: "_getSeizePaused", data: BytesLike): Result;
86
- decodeFunctionResult(functionFragment: "_getTransferPaused", data: BytesLike): Result;
87
80
  decodeFunctionResult(functionFragment: "assetGroupIdToIndex", data: BytesLike): Result;
88
81
  decodeFunctionResult(functionFragment: "borrowAllowed", data: BytesLike): Result;
89
82
  decodeFunctionResult(functionFragment: "borrowCaps", data: BytesLike): Result;
83
+ decodeFunctionResult(functionFragment: "borrowGuardianPaused", data: BytesLike): Result;
90
84
  decodeFunctionResult(functionFragment: "borrowVerify", data: BytesLike): Result;
91
85
  decodeFunctionResult(functionFragment: "claimComp", data: BytesLike): Result;
92
86
  decodeFunctionResult(functionFragment: "closeFactorMantissa", data: BytesLike): Result;
@@ -217,18 +211,6 @@ export interface IComptroller extends BaseContract {
217
211
  listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
218
212
  listeners(eventName?: string): Promise<Array<Listener>>;
219
213
  removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
220
- _getBorrowPaused: TypedContractMethod<[
221
- cToken: AddressLike
222
- ], [
223
- boolean
224
- ], "view">;
225
- _getMintPaused: TypedContractMethod<[
226
- cToken: AddressLike
227
- ], [
228
- boolean
229
- ], "nonpayable">;
230
- _getSeizePaused: TypedContractMethod<[], [boolean], "view">;
231
- _getTransferPaused: TypedContractMethod<[], [boolean], "view">;
232
214
  assetGroupIdToIndex: TypedContractMethod<[
233
215
  arg0: BigNumberish
234
216
  ], [
@@ -242,6 +224,11 @@ export interface IComptroller extends BaseContract {
242
224
  void
243
225
  ], "nonpayable">;
244
226
  borrowCaps: TypedContractMethod<[cToken: AddressLike], [bigint], "view">;
227
+ borrowGuardianPaused: TypedContractMethod<[
228
+ cToken: AddressLike
229
+ ], [
230
+ boolean
231
+ ], "view">;
245
232
  borrowVerify: TypedContractMethod<[
246
233
  cToken: AddressLike,
247
234
  borrower: AddressLike,
@@ -393,10 +380,6 @@ export interface IComptroller extends BaseContract {
393
380
  void
394
381
  ], "nonpayable">;
395
382
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
396
- getFunction(nameOrSignature: "_getBorrowPaused"): TypedContractMethod<[cToken: AddressLike], [boolean], "view">;
397
- getFunction(nameOrSignature: "_getMintPaused"): TypedContractMethod<[cToken: AddressLike], [boolean], "nonpayable">;
398
- getFunction(nameOrSignature: "_getSeizePaused"): TypedContractMethod<[], [boolean], "view">;
399
- getFunction(nameOrSignature: "_getTransferPaused"): TypedContractMethod<[], [boolean], "view">;
400
383
  getFunction(nameOrSignature: "assetGroupIdToIndex"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
401
384
  getFunction(nameOrSignature: "borrowAllowed"): TypedContractMethod<[
402
385
  cToken: AddressLike,
@@ -406,6 +389,7 @@ export interface IComptroller extends BaseContract {
406
389
  void
407
390
  ], "nonpayable">;
408
391
  getFunction(nameOrSignature: "borrowCaps"): TypedContractMethod<[cToken: AddressLike], [bigint], "view">;
392
+ getFunction(nameOrSignature: "borrowGuardianPaused"): TypedContractMethod<[cToken: AddressLike], [boolean], "view">;
409
393
  getFunction(nameOrSignature: "borrowVerify"): TypedContractMethod<[
410
394
  cToken: AddressLike,
411
395
  borrower: AddressLike,