@gooddollar/goodcollective-contracts 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/contracts/DirectPayments/DirectPaymentsPool.sol +12 -2
  2. package/contracts/GoodCollective/GoodCollectiveSuperApp.sol +264 -0
  3. package/contracts/GoodCollective/SuperAppBaseFlow.sol +204 -0
  4. package/contracts/utils/SwapRouterMock.sol +32 -0
  5. package/package.json +7 -2
  6. package/releases/deployment.json +7984 -2746
  7. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/AggregatorV3Interface.ts +199 -0
  8. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/CERC20.ts +630 -0
  9. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/ERC20.ts +450 -0
  10. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IAaveIncentivesController.ts +161 -0
  11. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IAdminWallet.ts +189 -0
  12. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IDonationStaking.ts +98 -0
  13. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IERC2917.ts +750 -0
  14. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IFirstClaimPool.ts +144 -0
  15. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IGoodDollar.ts +1033 -0
  16. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IGoodStaking.ts +281 -0
  17. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IHasRouter.ts +81 -0
  18. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentity.ts +598 -0
  19. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentityV2.ts +689 -0
  20. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/ILendingPool.ts +257 -0
  21. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IMultichainRouter.ts +179 -0
  22. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/INameService.ts +100 -0
  23. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IUBIScheme.ts +137 -0
  24. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/ProxyAdmin.ts +278 -0
  25. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/Reserve.ts +117 -0
  26. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/Staking.ts +175 -0
  27. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/Uniswap.ts +464 -0
  28. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapFactory.ts +105 -0
  29. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapPair.ts +209 -0
  30. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/index.ts +26 -0
  31. package/typechain-types/@gooddollar/goodprotocol/contracts/index.ts +7 -0
  32. package/typechain-types/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula.ts +115 -0
  33. package/typechain-types/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/index.ts +4 -0
  34. package/typechain-types/@gooddollar/goodprotocol/contracts/token/index.ts +7 -0
  35. package/typechain-types/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/IGoodDollarCustom.ts +726 -0
  36. package/typechain-types/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/ISuperGoodDollar.ts +3662 -0
  37. package/typechain-types/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/index.ts +5 -0
  38. package/typechain-types/@gooddollar/goodprotocol/contracts/token/superfluid/index.ts +5 -0
  39. package/typechain-types/@gooddollar/goodprotocol/index.ts +5 -0
  40. package/typechain-types/@gooddollar/index.ts +5 -0
  41. package/typechain-types/@openzeppelin/contracts/index.ts +4 -0
  42. package/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts +342 -0
  43. package/typechain-types/@openzeppelin/contracts/token/ERC20/index.ts +4 -0
  44. package/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721.ts +559 -0
  45. package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.ts +619 -0
  46. package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/index.ts +4 -0
  47. package/typechain-types/@openzeppelin/contracts/token/ERC721/index.ts +6 -0
  48. package/typechain-types/@openzeppelin/contracts/token/ERC777/IERC777.ts +650 -0
  49. package/typechain-types/@openzeppelin/contracts/token/ERC777/index.ts +4 -0
  50. package/typechain-types/@openzeppelin/contracts/token/index.ts +9 -0
  51. package/typechain-types/@openzeppelin/contracts/utils/index.ts +5 -0
  52. package/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.ts +103 -0
  53. package/typechain-types/@openzeppelin/contracts/utils/introspection/index.ts +4 -0
  54. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/index.ts +5 -0
  55. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IConstantFlowAgreementV1.ts +1390 -0
  56. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IInstantDistributionAgreementV1.ts +1280 -0
  57. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/index.ts +5 -0
  58. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/index.ts +9 -0
  59. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IConstantInflowNFT.ts +876 -0
  60. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IConstantOutflowNFT.ts +945 -0
  61. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IFlowNFTBase.ts +807 -0
  62. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperAgreement.ts +157 -0
  63. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperApp.ts +457 -0
  64. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperToken.ts +2806 -0
  65. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperTokenFactory.ts +465 -0
  66. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluid.ts +1727 -0
  67. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidGovernance.ts +506 -0
  68. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidToken.ts +1010 -0
  69. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/index.ts +13 -0
  70. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/ERC20WithTokenInfo.ts +384 -0
  71. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/TokenInfo.ts +109 -0
  72. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/index.ts +5 -0
  73. package/typechain-types/@superfluid-finance/ethereum-contracts/index.ts +5 -0
  74. package/typechain-types/@superfluid-finance/index.ts +5 -0
  75. package/typechain-types/@uniswap/index.ts +7 -0
  76. package/typechain-types/@uniswap/v3-core/contracts/index.ts +5 -0
  77. package/typechain-types/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.ts +122 -0
  78. package/typechain-types/@uniswap/v3-core/contracts/interfaces/callback/index.ts +4 -0
  79. package/typechain-types/@uniswap/v3-core/contracts/interfaces/index.ts +5 -0
  80. package/typechain-types/@uniswap/v3-core/index.ts +5 -0
  81. package/typechain-types/@uniswap/v3-periphery/contracts/index.ts +5 -0
  82. package/typechain-types/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.ts +369 -0
  83. package/typechain-types/@uniswap/v3-periphery/contracts/interfaces/index.ts +4 -0
  84. package/typechain-types/@uniswap/v3-periphery/index.ts +5 -0
  85. package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +763 -0
  86. package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.ts +843 -0
  87. package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.ts +523 -0
  88. package/typechain-types/contracts/GoodCollective/index.ts +5 -0
  89. package/typechain-types/contracts/index.ts +4 -1
  90. package/typechain-types/contracts/utils/SwapRouterMock.ts +194 -0
  91. package/typechain-types/contracts/utils/index.ts +4 -0
  92. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/AggregatorV3Interface__factory.ts +121 -0
  93. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/CERC20__factory.ts +384 -0
  94. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/ERC20__factory.ts +288 -0
  95. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IAaveIncentivesController__factory.ts +83 -0
  96. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IAdminWallet__factory.ts +78 -0
  97. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IDonationStaking__factory.ts +33 -0
  98. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IERC2917__factory.ts +496 -0
  99. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IFirstClaimPool__factory.ts +65 -0
  100. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IGoodDollar__factory.ts +598 -0
  101. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IGoodStaking__factory.ts +178 -0
  102. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IHasRouter__factory.ts +39 -0
  103. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentityV2__factory.ts +334 -0
  104. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentity__factory.ts +287 -0
  105. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/ILendingPool__factory.ts +171 -0
  106. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IMultichainRouter__factory.ts +82 -0
  107. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/INameService__factory.ts +45 -0
  108. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IUBIScheme__factory.ts +71 -0
  109. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/ProxyAdmin__factory.ts +131 -0
  110. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/Reserve__factory.ts +55 -0
  111. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/Staking__factory.ts +77 -0
  112. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapFactory__factory.ts +50 -0
  113. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapPair__factory.ts +120 -0
  114. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/Uniswap__factory.ts +275 -0
  115. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/index.ts +26 -0
  116. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/index.ts +5 -0
  117. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula__factory.ts +60 -0
  118. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/index.ts +4 -0
  119. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/index.ts +5 -0
  120. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/IGoodDollarCustom__factory.ts +370 -0
  121. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/ISuperGoodDollar__factory.ts +2301 -0
  122. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/index.ts +5 -0
  123. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/index.ts +4 -0
  124. package/typechain-types/factories/@gooddollar/goodprotocol/index.ts +4 -0
  125. package/typechain-types/factories/@gooddollar/index.ts +4 -0
  126. package/typechain-types/factories/@openzeppelin/contracts/index.ts +2 -0
  127. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +206 -0
  128. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts +4 -0
  129. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/IERC721__factory.ts +311 -0
  130. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.ts +356 -0
  131. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/index.ts +4 -0
  132. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/index.ts +5 -0
  133. package/typechain-types/factories/@openzeppelin/contracts/token/ERC777/IERC777__factory.ts +417 -0
  134. package/typechain-types/factories/@openzeppelin/contracts/token/ERC777/index.ts +4 -0
  135. package/typechain-types/factories/@openzeppelin/contracts/token/index.ts +6 -0
  136. package/typechain-types/factories/@openzeppelin/contracts/utils/index.ts +4 -0
  137. package/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts +45 -0
  138. package/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.ts +4 -0
  139. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/index.ts +4 -0
  140. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IConstantFlowAgreementV1__factory.ts +986 -0
  141. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IInstantDistributionAgreementV1__factory.ts +1015 -0
  142. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/index.ts +5 -0
  143. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/index.ts +6 -0
  144. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IConstantInflowNFT__factory.ts +551 -0
  145. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IConstantOutflowNFT__factory.ts +614 -0
  146. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IFlowNFTBase__factory.ts +515 -0
  147. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperAgreement__factory.ts +78 -0
  148. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperApp__factory.ts +275 -0
  149. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperTokenFactory__factory.ts +276 -0
  150. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperToken__factory.ts +1839 -0
  151. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidGovernance__factory.ts +264 -0
  152. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidToken__factory.ts +697 -0
  153. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluid__factory.ts +1151 -0
  154. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/index.ts +13 -0
  155. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/ERC20WithTokenInfo__factory.ts +248 -0
  156. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/TokenInfo__factory.ts +65 -0
  157. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/index.ts +5 -0
  158. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/index.ts +4 -0
  159. package/typechain-types/factories/@superfluid-finance/index.ts +4 -0
  160. package/typechain-types/factories/@uniswap/index.ts +5 -0
  161. package/typechain-types/factories/@uniswap/v3-core/contracts/index.ts +4 -0
  162. package/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback__factory.ts +53 -0
  163. package/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/index.ts +4 -0
  164. package/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/index.ts +4 -0
  165. package/typechain-types/factories/@uniswap/v3-core/index.ts +4 -0
  166. package/typechain-types/factories/@uniswap/v3-periphery/contracts/index.ts +4 -0
  167. package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter__factory.ts +263 -0
  168. package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/index.ts +4 -0
  169. package/typechain-types/factories/@uniswap/v3-periphery/index.ts +4 -0
  170. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +1 -1
  171. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +581 -3
  172. package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts +584 -0
  173. package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow__factory.ts +335 -0
  174. package/typechain-types/factories/contracts/GoodCollective/index.ts +5 -0
  175. package/typechain-types/factories/contracts/index.ts +2 -1
  176. package/typechain-types/factories/contracts/utils/SwapRouterMock__factory.ts +183 -0
  177. package/typechain-types/factories/contracts/utils/index.ts +4 -0
  178. package/typechain-types/factories/index.ts +3 -0
  179. package/typechain-types/hardhat.d.ts +445 -4
  180. package/typechain-types/index.ts +106 -4
@@ -0,0 +1,257 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ BytesLike,
9
+ CallOverrides,
10
+ ContractTransaction,
11
+ Overrides,
12
+ PopulatedTransaction,
13
+ Signer,
14
+ utils,
15
+ } from "ethers";
16
+ import type { FunctionFragment, Result } from "@ethersproject/abi";
17
+ import type { Listener, Provider } from "@ethersproject/providers";
18
+ import type {
19
+ TypedEventFilter,
20
+ TypedEvent,
21
+ TypedListener,
22
+ OnEvent,
23
+ PromiseOrValue,
24
+ } from "../../../../common";
25
+
26
+ export declare namespace DataTypes {
27
+ export type ReserveConfigurationMapStruct = {
28
+ data: PromiseOrValue<BigNumberish>;
29
+ };
30
+
31
+ export type ReserveConfigurationMapStructOutput = [BigNumber] & {
32
+ data: BigNumber;
33
+ };
34
+
35
+ export type ReserveDataStruct = {
36
+ configuration: DataTypes.ReserveConfigurationMapStruct;
37
+ liquidityIndex: PromiseOrValue<BigNumberish>;
38
+ variableBorrowIndex: PromiseOrValue<BigNumberish>;
39
+ currentLiquidityRate: PromiseOrValue<BigNumberish>;
40
+ currentVariableBorrowRate: PromiseOrValue<BigNumberish>;
41
+ currentStableBorrowRate: PromiseOrValue<BigNumberish>;
42
+ lastUpdateTimestamp: PromiseOrValue<BigNumberish>;
43
+ aTokenAddress: PromiseOrValue<string>;
44
+ stableDebtTokenAddress: PromiseOrValue<string>;
45
+ variableDebtTokenAddress: PromiseOrValue<string>;
46
+ interestRateStrategyAddress: PromiseOrValue<string>;
47
+ id: PromiseOrValue<BigNumberish>;
48
+ };
49
+
50
+ export type ReserveDataStructOutput = [
51
+ DataTypes.ReserveConfigurationMapStructOutput,
52
+ BigNumber,
53
+ BigNumber,
54
+ BigNumber,
55
+ BigNumber,
56
+ BigNumber,
57
+ number,
58
+ string,
59
+ string,
60
+ string,
61
+ string,
62
+ number
63
+ ] & {
64
+ configuration: DataTypes.ReserveConfigurationMapStructOutput;
65
+ liquidityIndex: BigNumber;
66
+ variableBorrowIndex: BigNumber;
67
+ currentLiquidityRate: BigNumber;
68
+ currentVariableBorrowRate: BigNumber;
69
+ currentStableBorrowRate: BigNumber;
70
+ lastUpdateTimestamp: number;
71
+ aTokenAddress: string;
72
+ stableDebtTokenAddress: string;
73
+ variableDebtTokenAddress: string;
74
+ interestRateStrategyAddress: string;
75
+ id: number;
76
+ };
77
+ }
78
+
79
+ export interface ILendingPoolInterface extends utils.Interface {
80
+ functions: {
81
+ "deposit(address,uint256,address,uint16)": FunctionFragment;
82
+ "getReserveData(address)": FunctionFragment;
83
+ "withdraw(address,uint256,address)": FunctionFragment;
84
+ };
85
+
86
+ getFunction(
87
+ nameOrSignatureOrTopic: "deposit" | "getReserveData" | "withdraw"
88
+ ): FunctionFragment;
89
+
90
+ encodeFunctionData(
91
+ functionFragment: "deposit",
92
+ values: [
93
+ PromiseOrValue<string>,
94
+ PromiseOrValue<BigNumberish>,
95
+ PromiseOrValue<string>,
96
+ PromiseOrValue<BigNumberish>
97
+ ]
98
+ ): string;
99
+ encodeFunctionData(
100
+ functionFragment: "getReserveData",
101
+ values: [PromiseOrValue<string>]
102
+ ): string;
103
+ encodeFunctionData(
104
+ functionFragment: "withdraw",
105
+ values: [
106
+ PromiseOrValue<string>,
107
+ PromiseOrValue<BigNumberish>,
108
+ PromiseOrValue<string>
109
+ ]
110
+ ): string;
111
+
112
+ decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
113
+ decodeFunctionResult(
114
+ functionFragment: "getReserveData",
115
+ data: BytesLike
116
+ ): Result;
117
+ decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
118
+
119
+ events: {};
120
+ }
121
+
122
+ export interface ILendingPool extends BaseContract {
123
+ connect(signerOrProvider: Signer | Provider | string): this;
124
+ attach(addressOrName: string): this;
125
+ deployed(): Promise<this>;
126
+
127
+ interface: ILendingPoolInterface;
128
+
129
+ queryFilter<TEvent extends TypedEvent>(
130
+ event: TypedEventFilter<TEvent>,
131
+ fromBlockOrBlockhash?: string | number | undefined,
132
+ toBlock?: string | number | undefined
133
+ ): Promise<Array<TEvent>>;
134
+
135
+ listeners<TEvent extends TypedEvent>(
136
+ eventFilter?: TypedEventFilter<TEvent>
137
+ ): Array<TypedListener<TEvent>>;
138
+ listeners(eventName?: string): Array<Listener>;
139
+ removeAllListeners<TEvent extends TypedEvent>(
140
+ eventFilter: TypedEventFilter<TEvent>
141
+ ): this;
142
+ removeAllListeners(eventName?: string): this;
143
+ off: OnEvent<this>;
144
+ on: OnEvent<this>;
145
+ once: OnEvent<this>;
146
+ removeListener: OnEvent<this>;
147
+
148
+ functions: {
149
+ deposit(
150
+ asset: PromiseOrValue<string>,
151
+ amount: PromiseOrValue<BigNumberish>,
152
+ onBehalfOf: PromiseOrValue<string>,
153
+ referralCode: PromiseOrValue<BigNumberish>,
154
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
155
+ ): Promise<ContractTransaction>;
156
+
157
+ getReserveData(
158
+ asset: PromiseOrValue<string>,
159
+ overrides?: CallOverrides
160
+ ): Promise<[DataTypes.ReserveDataStructOutput]>;
161
+
162
+ withdraw(
163
+ asset: PromiseOrValue<string>,
164
+ amount: PromiseOrValue<BigNumberish>,
165
+ to: PromiseOrValue<string>,
166
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
167
+ ): Promise<ContractTransaction>;
168
+ };
169
+
170
+ deposit(
171
+ asset: PromiseOrValue<string>,
172
+ amount: PromiseOrValue<BigNumberish>,
173
+ onBehalfOf: PromiseOrValue<string>,
174
+ referralCode: PromiseOrValue<BigNumberish>,
175
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
176
+ ): Promise<ContractTransaction>;
177
+
178
+ getReserveData(
179
+ asset: PromiseOrValue<string>,
180
+ overrides?: CallOverrides
181
+ ): Promise<DataTypes.ReserveDataStructOutput>;
182
+
183
+ withdraw(
184
+ asset: PromiseOrValue<string>,
185
+ amount: PromiseOrValue<BigNumberish>,
186
+ to: PromiseOrValue<string>,
187
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
188
+ ): Promise<ContractTransaction>;
189
+
190
+ callStatic: {
191
+ deposit(
192
+ asset: PromiseOrValue<string>,
193
+ amount: PromiseOrValue<BigNumberish>,
194
+ onBehalfOf: PromiseOrValue<string>,
195
+ referralCode: PromiseOrValue<BigNumberish>,
196
+ overrides?: CallOverrides
197
+ ): Promise<void>;
198
+
199
+ getReserveData(
200
+ asset: PromiseOrValue<string>,
201
+ overrides?: CallOverrides
202
+ ): Promise<DataTypes.ReserveDataStructOutput>;
203
+
204
+ withdraw(
205
+ asset: PromiseOrValue<string>,
206
+ amount: PromiseOrValue<BigNumberish>,
207
+ to: PromiseOrValue<string>,
208
+ overrides?: CallOverrides
209
+ ): Promise<BigNumber>;
210
+ };
211
+
212
+ filters: {};
213
+
214
+ estimateGas: {
215
+ deposit(
216
+ asset: PromiseOrValue<string>,
217
+ amount: PromiseOrValue<BigNumberish>,
218
+ onBehalfOf: PromiseOrValue<string>,
219
+ referralCode: PromiseOrValue<BigNumberish>,
220
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
221
+ ): Promise<BigNumber>;
222
+
223
+ getReserveData(
224
+ asset: PromiseOrValue<string>,
225
+ overrides?: CallOverrides
226
+ ): Promise<BigNumber>;
227
+
228
+ withdraw(
229
+ asset: PromiseOrValue<string>,
230
+ amount: PromiseOrValue<BigNumberish>,
231
+ to: PromiseOrValue<string>,
232
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
233
+ ): Promise<BigNumber>;
234
+ };
235
+
236
+ populateTransaction: {
237
+ deposit(
238
+ asset: PromiseOrValue<string>,
239
+ amount: PromiseOrValue<BigNumberish>,
240
+ onBehalfOf: PromiseOrValue<string>,
241
+ referralCode: PromiseOrValue<BigNumberish>,
242
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
243
+ ): Promise<PopulatedTransaction>;
244
+
245
+ getReserveData(
246
+ asset: PromiseOrValue<string>,
247
+ overrides?: CallOverrides
248
+ ): Promise<PopulatedTransaction>;
249
+
250
+ withdraw(
251
+ asset: PromiseOrValue<string>,
252
+ amount: PromiseOrValue<BigNumberish>,
253
+ to: PromiseOrValue<string>,
254
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
255
+ ): Promise<PopulatedTransaction>;
256
+ };
257
+ }
@@ -0,0 +1,179 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ BytesLike,
9
+ CallOverrides,
10
+ ContractTransaction,
11
+ Overrides,
12
+ PopulatedTransaction,
13
+ Signer,
14
+ utils,
15
+ } from "ethers";
16
+ import type { FunctionFragment, Result } from "@ethersproject/abi";
17
+ import type { Listener, Provider } from "@ethersproject/providers";
18
+ import type {
19
+ TypedEventFilter,
20
+ TypedEvent,
21
+ TypedListener,
22
+ OnEvent,
23
+ PromiseOrValue,
24
+ } from "../../../../common";
25
+
26
+ export interface IMultichainRouterInterface extends utils.Interface {
27
+ functions: {
28
+ "anySwapOut(address,address,uint256,uint256)": FunctionFragment;
29
+ "anySwapOutUnderlying(address,address,uint256,uint256)": FunctionFragment;
30
+ };
31
+
32
+ getFunction(
33
+ nameOrSignatureOrTopic: "anySwapOut" | "anySwapOutUnderlying"
34
+ ): FunctionFragment;
35
+
36
+ encodeFunctionData(
37
+ functionFragment: "anySwapOut",
38
+ values: [
39
+ PromiseOrValue<string>,
40
+ PromiseOrValue<string>,
41
+ PromiseOrValue<BigNumberish>,
42
+ PromiseOrValue<BigNumberish>
43
+ ]
44
+ ): string;
45
+ encodeFunctionData(
46
+ functionFragment: "anySwapOutUnderlying",
47
+ values: [
48
+ PromiseOrValue<string>,
49
+ PromiseOrValue<string>,
50
+ PromiseOrValue<BigNumberish>,
51
+ PromiseOrValue<BigNumberish>
52
+ ]
53
+ ): string;
54
+
55
+ decodeFunctionResult(functionFragment: "anySwapOut", data: BytesLike): Result;
56
+ decodeFunctionResult(
57
+ functionFragment: "anySwapOutUnderlying",
58
+ data: BytesLike
59
+ ): Result;
60
+
61
+ events: {};
62
+ }
63
+
64
+ export interface IMultichainRouter extends BaseContract {
65
+ connect(signerOrProvider: Signer | Provider | string): this;
66
+ attach(addressOrName: string): this;
67
+ deployed(): Promise<this>;
68
+
69
+ interface: IMultichainRouterInterface;
70
+
71
+ queryFilter<TEvent extends TypedEvent>(
72
+ event: TypedEventFilter<TEvent>,
73
+ fromBlockOrBlockhash?: string | number | undefined,
74
+ toBlock?: string | number | undefined
75
+ ): Promise<Array<TEvent>>;
76
+
77
+ listeners<TEvent extends TypedEvent>(
78
+ eventFilter?: TypedEventFilter<TEvent>
79
+ ): Array<TypedListener<TEvent>>;
80
+ listeners(eventName?: string): Array<Listener>;
81
+ removeAllListeners<TEvent extends TypedEvent>(
82
+ eventFilter: TypedEventFilter<TEvent>
83
+ ): this;
84
+ removeAllListeners(eventName?: string): this;
85
+ off: OnEvent<this>;
86
+ on: OnEvent<this>;
87
+ once: OnEvent<this>;
88
+ removeListener: OnEvent<this>;
89
+
90
+ functions: {
91
+ anySwapOut(
92
+ token: PromiseOrValue<string>,
93
+ to: PromiseOrValue<string>,
94
+ amount: PromiseOrValue<BigNumberish>,
95
+ toChainID: PromiseOrValue<BigNumberish>,
96
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
97
+ ): Promise<ContractTransaction>;
98
+
99
+ anySwapOutUnderlying(
100
+ token: PromiseOrValue<string>,
101
+ to: PromiseOrValue<string>,
102
+ amount: PromiseOrValue<BigNumberish>,
103
+ toChainID: PromiseOrValue<BigNumberish>,
104
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
105
+ ): Promise<ContractTransaction>;
106
+ };
107
+
108
+ anySwapOut(
109
+ token: PromiseOrValue<string>,
110
+ to: PromiseOrValue<string>,
111
+ amount: PromiseOrValue<BigNumberish>,
112
+ toChainID: PromiseOrValue<BigNumberish>,
113
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
114
+ ): Promise<ContractTransaction>;
115
+
116
+ anySwapOutUnderlying(
117
+ token: PromiseOrValue<string>,
118
+ to: PromiseOrValue<string>,
119
+ amount: PromiseOrValue<BigNumberish>,
120
+ toChainID: PromiseOrValue<BigNumberish>,
121
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
122
+ ): Promise<ContractTransaction>;
123
+
124
+ callStatic: {
125
+ anySwapOut(
126
+ token: PromiseOrValue<string>,
127
+ to: PromiseOrValue<string>,
128
+ amount: PromiseOrValue<BigNumberish>,
129
+ toChainID: PromiseOrValue<BigNumberish>,
130
+ overrides?: CallOverrides
131
+ ): Promise<void>;
132
+
133
+ anySwapOutUnderlying(
134
+ token: PromiseOrValue<string>,
135
+ to: PromiseOrValue<string>,
136
+ amount: PromiseOrValue<BigNumberish>,
137
+ toChainID: PromiseOrValue<BigNumberish>,
138
+ overrides?: CallOverrides
139
+ ): Promise<void>;
140
+ };
141
+
142
+ filters: {};
143
+
144
+ estimateGas: {
145
+ anySwapOut(
146
+ token: PromiseOrValue<string>,
147
+ to: PromiseOrValue<string>,
148
+ amount: PromiseOrValue<BigNumberish>,
149
+ toChainID: PromiseOrValue<BigNumberish>,
150
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
151
+ ): Promise<BigNumber>;
152
+
153
+ anySwapOutUnderlying(
154
+ token: PromiseOrValue<string>,
155
+ to: PromiseOrValue<string>,
156
+ amount: PromiseOrValue<BigNumberish>,
157
+ toChainID: PromiseOrValue<BigNumberish>,
158
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
159
+ ): Promise<BigNumber>;
160
+ };
161
+
162
+ populateTransaction: {
163
+ anySwapOut(
164
+ token: PromiseOrValue<string>,
165
+ to: PromiseOrValue<string>,
166
+ amount: PromiseOrValue<BigNumberish>,
167
+ toChainID: PromiseOrValue<BigNumberish>,
168
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
169
+ ): Promise<PopulatedTransaction>;
170
+
171
+ anySwapOutUnderlying(
172
+ token: PromiseOrValue<string>,
173
+ to: PromiseOrValue<string>,
174
+ amount: PromiseOrValue<BigNumberish>,
175
+ toChainID: PromiseOrValue<BigNumberish>,
176
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
177
+ ): Promise<PopulatedTransaction>;
178
+ };
179
+ }
@@ -0,0 +1,100 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumber,
7
+ BytesLike,
8
+ CallOverrides,
9
+ PopulatedTransaction,
10
+ Signer,
11
+ utils,
12
+ } from "ethers";
13
+ import type { FunctionFragment, Result } from "@ethersproject/abi";
14
+ import type { Listener, Provider } from "@ethersproject/providers";
15
+ import type {
16
+ TypedEventFilter,
17
+ TypedEvent,
18
+ TypedListener,
19
+ OnEvent,
20
+ PromiseOrValue,
21
+ } from "../../../../common";
22
+
23
+ export interface INameServiceInterface extends utils.Interface {
24
+ functions: {
25
+ "getAddress(string)": FunctionFragment;
26
+ };
27
+
28
+ getFunction(nameOrSignatureOrTopic: "getAddress"): FunctionFragment;
29
+
30
+ encodeFunctionData(
31
+ functionFragment: "getAddress",
32
+ values: [PromiseOrValue<string>]
33
+ ): string;
34
+
35
+ decodeFunctionResult(functionFragment: "getAddress", data: BytesLike): Result;
36
+
37
+ events: {};
38
+ }
39
+
40
+ export interface INameService extends BaseContract {
41
+ connect(signerOrProvider: Signer | Provider | string): this;
42
+ attach(addressOrName: string): this;
43
+ deployed(): Promise<this>;
44
+
45
+ interface: INameServiceInterface;
46
+
47
+ queryFilter<TEvent extends TypedEvent>(
48
+ event: TypedEventFilter<TEvent>,
49
+ fromBlockOrBlockhash?: string | number | undefined,
50
+ toBlock?: string | number | undefined
51
+ ): Promise<Array<TEvent>>;
52
+
53
+ listeners<TEvent extends TypedEvent>(
54
+ eventFilter?: TypedEventFilter<TEvent>
55
+ ): Array<TypedListener<TEvent>>;
56
+ listeners(eventName?: string): Array<Listener>;
57
+ removeAllListeners<TEvent extends TypedEvent>(
58
+ eventFilter: TypedEventFilter<TEvent>
59
+ ): this;
60
+ removeAllListeners(eventName?: string): this;
61
+ off: OnEvent<this>;
62
+ on: OnEvent<this>;
63
+ once: OnEvent<this>;
64
+ removeListener: OnEvent<this>;
65
+
66
+ functions: {
67
+ getAddress(
68
+ _name: PromiseOrValue<string>,
69
+ overrides?: CallOverrides
70
+ ): Promise<[string]>;
71
+ };
72
+
73
+ getAddress(
74
+ _name: PromiseOrValue<string>,
75
+ overrides?: CallOverrides
76
+ ): Promise<string>;
77
+
78
+ callStatic: {
79
+ getAddress(
80
+ _name: PromiseOrValue<string>,
81
+ overrides?: CallOverrides
82
+ ): Promise<string>;
83
+ };
84
+
85
+ filters: {};
86
+
87
+ estimateGas: {
88
+ getAddress(
89
+ _name: PromiseOrValue<string>,
90
+ overrides?: CallOverrides
91
+ ): Promise<BigNumber>;
92
+ };
93
+
94
+ populateTransaction: {
95
+ getAddress(
96
+ _name: PromiseOrValue<string>,
97
+ overrides?: CallOverrides
98
+ ): Promise<PopulatedTransaction>;
99
+ };
100
+ }
@@ -0,0 +1,137 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumber,
7
+ BytesLike,
8
+ CallOverrides,
9
+ PopulatedTransaction,
10
+ Signer,
11
+ utils,
12
+ } from "ethers";
13
+ import type { FunctionFragment, Result } from "@ethersproject/abi";
14
+ import type { Listener, Provider } from "@ethersproject/providers";
15
+ import type {
16
+ TypedEventFilter,
17
+ TypedEvent,
18
+ TypedListener,
19
+ OnEvent,
20
+ PromiseOrValue,
21
+ } from "../../../../common";
22
+
23
+ export interface IUBISchemeInterface extends utils.Interface {
24
+ functions: {
25
+ "currentDay()": FunctionFragment;
26
+ "hasClaimed(address)": FunctionFragment;
27
+ "periodStart()": FunctionFragment;
28
+ };
29
+
30
+ getFunction(
31
+ nameOrSignatureOrTopic: "currentDay" | "hasClaimed" | "periodStart"
32
+ ): FunctionFragment;
33
+
34
+ encodeFunctionData(
35
+ functionFragment: "currentDay",
36
+ values?: undefined
37
+ ): string;
38
+ encodeFunctionData(
39
+ functionFragment: "hasClaimed",
40
+ values: [PromiseOrValue<string>]
41
+ ): string;
42
+ encodeFunctionData(
43
+ functionFragment: "periodStart",
44
+ values?: undefined
45
+ ): string;
46
+
47
+ decodeFunctionResult(functionFragment: "currentDay", data: BytesLike): Result;
48
+ decodeFunctionResult(functionFragment: "hasClaimed", data: BytesLike): Result;
49
+ decodeFunctionResult(
50
+ functionFragment: "periodStart",
51
+ data: BytesLike
52
+ ): Result;
53
+
54
+ events: {};
55
+ }
56
+
57
+ export interface IUBIScheme extends BaseContract {
58
+ connect(signerOrProvider: Signer | Provider | string): this;
59
+ attach(addressOrName: string): this;
60
+ deployed(): Promise<this>;
61
+
62
+ interface: IUBISchemeInterface;
63
+
64
+ queryFilter<TEvent extends TypedEvent>(
65
+ event: TypedEventFilter<TEvent>,
66
+ fromBlockOrBlockhash?: string | number | undefined,
67
+ toBlock?: string | number | undefined
68
+ ): Promise<Array<TEvent>>;
69
+
70
+ listeners<TEvent extends TypedEvent>(
71
+ eventFilter?: TypedEventFilter<TEvent>
72
+ ): Array<TypedListener<TEvent>>;
73
+ listeners(eventName?: string): Array<Listener>;
74
+ removeAllListeners<TEvent extends TypedEvent>(
75
+ eventFilter: TypedEventFilter<TEvent>
76
+ ): this;
77
+ removeAllListeners(eventName?: string): this;
78
+ off: OnEvent<this>;
79
+ on: OnEvent<this>;
80
+ once: OnEvent<this>;
81
+ removeListener: OnEvent<this>;
82
+
83
+ functions: {
84
+ currentDay(overrides?: CallOverrides): Promise<[BigNumber]>;
85
+
86
+ hasClaimed(
87
+ claimer: PromiseOrValue<string>,
88
+ overrides?: CallOverrides
89
+ ): Promise<[boolean]>;
90
+
91
+ periodStart(overrides?: CallOverrides): Promise<[BigNumber]>;
92
+ };
93
+
94
+ currentDay(overrides?: CallOverrides): Promise<BigNumber>;
95
+
96
+ hasClaimed(
97
+ claimer: PromiseOrValue<string>,
98
+ overrides?: CallOverrides
99
+ ): Promise<boolean>;
100
+
101
+ periodStart(overrides?: CallOverrides): Promise<BigNumber>;
102
+
103
+ callStatic: {
104
+ currentDay(overrides?: CallOverrides): Promise<BigNumber>;
105
+
106
+ hasClaimed(
107
+ claimer: PromiseOrValue<string>,
108
+ overrides?: CallOverrides
109
+ ): Promise<boolean>;
110
+
111
+ periodStart(overrides?: CallOverrides): Promise<BigNumber>;
112
+ };
113
+
114
+ filters: {};
115
+
116
+ estimateGas: {
117
+ currentDay(overrides?: CallOverrides): Promise<BigNumber>;
118
+
119
+ hasClaimed(
120
+ claimer: PromiseOrValue<string>,
121
+ overrides?: CallOverrides
122
+ ): Promise<BigNumber>;
123
+
124
+ periodStart(overrides?: CallOverrides): Promise<BigNumber>;
125
+ };
126
+
127
+ populateTransaction: {
128
+ currentDay(overrides?: CallOverrides): Promise<PopulatedTransaction>;
129
+
130
+ hasClaimed(
131
+ claimer: PromiseOrValue<string>,
132
+ overrides?: CallOverrides
133
+ ): Promise<PopulatedTransaction>;
134
+
135
+ periodStart(overrides?: CallOverrides): Promise<PopulatedTransaction>;
136
+ };
137
+ }