@gooddollar/goodcollective-contracts 1.0.1 → 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 +4 -1
  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,131 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ ProxyAdmin,
9
+ ProxyAdminInterface,
10
+ } from "../../../../../@gooddollar/goodprotocol/contracts/Interfaces.sol/ProxyAdmin";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "proxy",
18
+ type: "address",
19
+ },
20
+ ],
21
+ name: "getProxyAdmin",
22
+ outputs: [
23
+ {
24
+ internalType: "address",
25
+ name: "",
26
+ type: "address",
27
+ },
28
+ ],
29
+ stateMutability: "view",
30
+ type: "function",
31
+ },
32
+ {
33
+ inputs: [
34
+ {
35
+ internalType: "address",
36
+ name: "proxy",
37
+ type: "address",
38
+ },
39
+ ],
40
+ name: "getProxyImplementation",
41
+ outputs: [
42
+ {
43
+ internalType: "address",
44
+ name: "",
45
+ type: "address",
46
+ },
47
+ ],
48
+ stateMutability: "view",
49
+ type: "function",
50
+ },
51
+ {
52
+ inputs: [],
53
+ name: "owner",
54
+ outputs: [
55
+ {
56
+ internalType: "address",
57
+ name: "",
58
+ type: "address",
59
+ },
60
+ ],
61
+ stateMutability: "view",
62
+ type: "function",
63
+ },
64
+ {
65
+ inputs: [
66
+ {
67
+ internalType: "address",
68
+ name: "newOwner",
69
+ type: "address",
70
+ },
71
+ ],
72
+ name: "transferOwnership",
73
+ outputs: [],
74
+ stateMutability: "nonpayable",
75
+ type: "function",
76
+ },
77
+ {
78
+ inputs: [
79
+ {
80
+ internalType: "address",
81
+ name: "proxy",
82
+ type: "address",
83
+ },
84
+ {
85
+ internalType: "address",
86
+ name: "implementation",
87
+ type: "address",
88
+ },
89
+ ],
90
+ name: "upgrade",
91
+ outputs: [],
92
+ stateMutability: "nonpayable",
93
+ type: "function",
94
+ },
95
+ {
96
+ inputs: [
97
+ {
98
+ internalType: "address",
99
+ name: "proxy",
100
+ type: "address",
101
+ },
102
+ {
103
+ internalType: "address",
104
+ name: "implementation",
105
+ type: "address",
106
+ },
107
+ {
108
+ internalType: "bytes",
109
+ name: "data",
110
+ type: "bytes",
111
+ },
112
+ ],
113
+ name: "upgradeAndCall",
114
+ outputs: [],
115
+ stateMutability: "nonpayable",
116
+ type: "function",
117
+ },
118
+ ] as const;
119
+
120
+ export class ProxyAdmin__factory {
121
+ static readonly abi = _abi;
122
+ static createInterface(): ProxyAdminInterface {
123
+ return new utils.Interface(_abi) as ProxyAdminInterface;
124
+ }
125
+ static connect(
126
+ address: string,
127
+ signerOrProvider: Signer | Provider
128
+ ): ProxyAdmin {
129
+ return new Contract(address, _abi, signerOrProvider) as ProxyAdmin;
130
+ }
131
+ }
@@ -0,0 +1,55 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ Reserve,
9
+ ReserveInterface,
10
+ } from "../../../../../@gooddollar/goodprotocol/contracts/Interfaces.sol/Reserve";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "_buyWith",
18
+ type: "address",
19
+ },
20
+ {
21
+ internalType: "uint256",
22
+ name: "_tokenAmount",
23
+ type: "uint256",
24
+ },
25
+ {
26
+ internalType: "uint256",
27
+ name: "_minReturn",
28
+ type: "uint256",
29
+ },
30
+ ],
31
+ name: "buy",
32
+ outputs: [
33
+ {
34
+ internalType: "uint256",
35
+ name: "",
36
+ type: "uint256",
37
+ },
38
+ ],
39
+ stateMutability: "nonpayable",
40
+ type: "function",
41
+ },
42
+ ] as const;
43
+
44
+ export class Reserve__factory {
45
+ static readonly abi = _abi;
46
+ static createInterface(): ReserveInterface {
47
+ return new utils.Interface(_abi) as ReserveInterface;
48
+ }
49
+ static connect(
50
+ address: string,
51
+ signerOrProvider: Signer | Provider
52
+ ): Reserve {
53
+ return new Contract(address, _abi, signerOrProvider) as Reserve;
54
+ }
55
+ }
@@ -0,0 +1,77 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ Staking,
9
+ StakingInterface,
10
+ } from "../../../../../@gooddollar/goodprotocol/contracts/Interfaces.sol/Staking";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "uint256",
17
+ name: "amount",
18
+ type: "uint256",
19
+ },
20
+ ],
21
+ name: "stakeDAI",
22
+ outputs: [],
23
+ stateMutability: "nonpayable",
24
+ type: "function",
25
+ },
26
+ {
27
+ inputs: [
28
+ {
29
+ internalType: "address",
30
+ name: "staker",
31
+ type: "address",
32
+ },
33
+ ],
34
+ name: "stakers",
35
+ outputs: [
36
+ {
37
+ components: [
38
+ {
39
+ internalType: "uint256",
40
+ name: "stakedDAI",
41
+ type: "uint256",
42
+ },
43
+ {
44
+ internalType: "uint256",
45
+ name: "lastStake",
46
+ type: "uint256",
47
+ },
48
+ ],
49
+ internalType: "struct Staking.Staker",
50
+ name: "",
51
+ type: "tuple",
52
+ },
53
+ ],
54
+ stateMutability: "view",
55
+ type: "function",
56
+ },
57
+ {
58
+ inputs: [],
59
+ name: "withdrawStake",
60
+ outputs: [],
61
+ stateMutability: "nonpayable",
62
+ type: "function",
63
+ },
64
+ ] as const;
65
+
66
+ export class Staking__factory {
67
+ static readonly abi = _abi;
68
+ static createInterface(): StakingInterface {
69
+ return new utils.Interface(_abi) as StakingInterface;
70
+ }
71
+ static connect(
72
+ address: string,
73
+ signerOrProvider: Signer | Provider
74
+ ): Staking {
75
+ return new Contract(address, _abi, signerOrProvider) as Staking;
76
+ }
77
+ }
@@ -0,0 +1,50 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ UniswapFactory,
9
+ UniswapFactoryInterface,
10
+ } from "../../../../../@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapFactory";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "tokenA",
18
+ type: "address",
19
+ },
20
+ {
21
+ internalType: "address",
22
+ name: "tokenB",
23
+ type: "address",
24
+ },
25
+ ],
26
+ name: "getPair",
27
+ outputs: [
28
+ {
29
+ internalType: "address",
30
+ name: "",
31
+ type: "address",
32
+ },
33
+ ],
34
+ stateMutability: "view",
35
+ type: "function",
36
+ },
37
+ ] as const;
38
+
39
+ export class UniswapFactory__factory {
40
+ static readonly abi = _abi;
41
+ static createInterface(): UniswapFactoryInterface {
42
+ return new utils.Interface(_abi) as UniswapFactoryInterface;
43
+ }
44
+ static connect(
45
+ address: string,
46
+ signerOrProvider: Signer | Provider
47
+ ): UniswapFactory {
48
+ return new Contract(address, _abi, signerOrProvider) as UniswapFactory;
49
+ }
50
+ }
@@ -0,0 +1,120 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ UniswapPair,
9
+ UniswapPairInterface,
10
+ } from "../../../../../@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapPair";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "owner",
18
+ type: "address",
19
+ },
20
+ ],
21
+ name: "balanceOf",
22
+ outputs: [
23
+ {
24
+ internalType: "uint256",
25
+ name: "",
26
+ type: "uint256",
27
+ },
28
+ ],
29
+ stateMutability: "view",
30
+ type: "function",
31
+ },
32
+ {
33
+ inputs: [],
34
+ name: "getReserves",
35
+ outputs: [
36
+ {
37
+ internalType: "uint112",
38
+ name: "reserve0",
39
+ type: "uint112",
40
+ },
41
+ {
42
+ internalType: "uint112",
43
+ name: "reserve1",
44
+ type: "uint112",
45
+ },
46
+ {
47
+ internalType: "uint32",
48
+ name: "blockTimestampLast",
49
+ type: "uint32",
50
+ },
51
+ ],
52
+ stateMutability: "view",
53
+ type: "function",
54
+ },
55
+ {
56
+ inputs: [],
57
+ name: "kLast",
58
+ outputs: [
59
+ {
60
+ internalType: "uint256",
61
+ name: "",
62
+ type: "uint256",
63
+ },
64
+ ],
65
+ stateMutability: "view",
66
+ type: "function",
67
+ },
68
+ {
69
+ inputs: [],
70
+ name: "token0",
71
+ outputs: [
72
+ {
73
+ internalType: "address",
74
+ name: "",
75
+ type: "address",
76
+ },
77
+ ],
78
+ stateMutability: "view",
79
+ type: "function",
80
+ },
81
+ {
82
+ inputs: [],
83
+ name: "token1",
84
+ outputs: [
85
+ {
86
+ internalType: "address",
87
+ name: "",
88
+ type: "address",
89
+ },
90
+ ],
91
+ stateMutability: "view",
92
+ type: "function",
93
+ },
94
+ {
95
+ inputs: [],
96
+ name: "totalSupply",
97
+ outputs: [
98
+ {
99
+ internalType: "uint256",
100
+ name: "",
101
+ type: "uint256",
102
+ },
103
+ ],
104
+ stateMutability: "view",
105
+ type: "function",
106
+ },
107
+ ] as const;
108
+
109
+ export class UniswapPair__factory {
110
+ static readonly abi = _abi;
111
+ static createInterface(): UniswapPairInterface {
112
+ return new utils.Interface(_abi) as UniswapPairInterface;
113
+ }
114
+ static connect(
115
+ address: string,
116
+ signerOrProvider: Signer | Provider
117
+ ): UniswapPair {
118
+ return new Contract(address, _abi, signerOrProvider) as UniswapPair;
119
+ }
120
+ }
@@ -0,0 +1,275 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ Uniswap,
9
+ UniswapInterface,
10
+ } from "../../../../../@gooddollar/goodprotocol/contracts/Interfaces.sol/Uniswap";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "WETH",
16
+ outputs: [
17
+ {
18
+ internalType: "address",
19
+ name: "",
20
+ type: "address",
21
+ },
22
+ ],
23
+ stateMutability: "pure",
24
+ type: "function",
25
+ },
26
+ {
27
+ inputs: [],
28
+ name: "factory",
29
+ outputs: [
30
+ {
31
+ internalType: "address",
32
+ name: "",
33
+ type: "address",
34
+ },
35
+ ],
36
+ stateMutability: "pure",
37
+ type: "function",
38
+ },
39
+ {
40
+ inputs: [
41
+ {
42
+ internalType: "uint256",
43
+ name: "amountOut",
44
+ type: "uint256",
45
+ },
46
+ {
47
+ internalType: "uint256",
48
+ name: "reserveIn",
49
+ type: "uint256",
50
+ },
51
+ {
52
+ internalType: "uint256",
53
+ name: "reserveOut",
54
+ type: "uint256",
55
+ },
56
+ ],
57
+ name: "getAmountIn",
58
+ outputs: [
59
+ {
60
+ internalType: "uint256",
61
+ name: "amountIn",
62
+ type: "uint256",
63
+ },
64
+ ],
65
+ stateMutability: "pure",
66
+ type: "function",
67
+ },
68
+ {
69
+ inputs: [
70
+ {
71
+ internalType: "uint256",
72
+ name: "amountI",
73
+ type: "uint256",
74
+ },
75
+ {
76
+ internalType: "uint256",
77
+ name: "reserveIn",
78
+ type: "uint256",
79
+ },
80
+ {
81
+ internalType: "uint256",
82
+ name: "reserveOut",
83
+ type: "uint256",
84
+ },
85
+ ],
86
+ name: "getAmountOut",
87
+ outputs: [
88
+ {
89
+ internalType: "uint256",
90
+ name: "amountOut",
91
+ type: "uint256",
92
+ },
93
+ ],
94
+ stateMutability: "pure",
95
+ type: "function",
96
+ },
97
+ {
98
+ inputs: [
99
+ {
100
+ internalType: "uint256",
101
+ name: "amountIn",
102
+ type: "uint256",
103
+ },
104
+ {
105
+ internalType: "address[]",
106
+ name: "path",
107
+ type: "address[]",
108
+ },
109
+ ],
110
+ name: "getAmountsOut",
111
+ outputs: [
112
+ {
113
+ internalType: "uint256[]",
114
+ name: "amounts",
115
+ type: "uint256[]",
116
+ },
117
+ ],
118
+ stateMutability: "pure",
119
+ type: "function",
120
+ },
121
+ {
122
+ inputs: [
123
+ {
124
+ internalType: "uint256",
125
+ name: "amountA",
126
+ type: "uint256",
127
+ },
128
+ {
129
+ internalType: "uint256",
130
+ name: "reserveA",
131
+ type: "uint256",
132
+ },
133
+ {
134
+ internalType: "uint256",
135
+ name: "reserveB",
136
+ type: "uint256",
137
+ },
138
+ ],
139
+ name: "quote",
140
+ outputs: [
141
+ {
142
+ internalType: "uint256",
143
+ name: "amountB",
144
+ type: "uint256",
145
+ },
146
+ ],
147
+ stateMutability: "pure",
148
+ type: "function",
149
+ },
150
+ {
151
+ inputs: [
152
+ {
153
+ internalType: "uint256",
154
+ name: "amountOutMin",
155
+ type: "uint256",
156
+ },
157
+ {
158
+ internalType: "address[]",
159
+ name: "path",
160
+ type: "address[]",
161
+ },
162
+ {
163
+ internalType: "address",
164
+ name: "to",
165
+ type: "address",
166
+ },
167
+ {
168
+ internalType: "uint256",
169
+ name: "deadline",
170
+ type: "uint256",
171
+ },
172
+ ],
173
+ name: "swapExactETHForTokens",
174
+ outputs: [
175
+ {
176
+ internalType: "uint256[]",
177
+ name: "amounts",
178
+ type: "uint256[]",
179
+ },
180
+ ],
181
+ stateMutability: "payable",
182
+ type: "function",
183
+ },
184
+ {
185
+ inputs: [
186
+ {
187
+ internalType: "uint256",
188
+ name: "amountIn",
189
+ type: "uint256",
190
+ },
191
+ {
192
+ internalType: "uint256",
193
+ name: "amountOutMin",
194
+ type: "uint256",
195
+ },
196
+ {
197
+ internalType: "address[]",
198
+ name: "path",
199
+ type: "address[]",
200
+ },
201
+ {
202
+ internalType: "address",
203
+ name: "to",
204
+ type: "address",
205
+ },
206
+ {
207
+ internalType: "uint256",
208
+ name: "deadline",
209
+ type: "uint256",
210
+ },
211
+ ],
212
+ name: "swapExactTokensForETH",
213
+ outputs: [
214
+ {
215
+ internalType: "uint256[]",
216
+ name: "amounts",
217
+ type: "uint256[]",
218
+ },
219
+ ],
220
+ stateMutability: "nonpayable",
221
+ type: "function",
222
+ },
223
+ {
224
+ inputs: [
225
+ {
226
+ internalType: "uint256",
227
+ name: "amountIn",
228
+ type: "uint256",
229
+ },
230
+ {
231
+ internalType: "uint256",
232
+ name: "amountOutMin",
233
+ type: "uint256",
234
+ },
235
+ {
236
+ internalType: "address[]",
237
+ name: "path",
238
+ type: "address[]",
239
+ },
240
+ {
241
+ internalType: "address",
242
+ name: "to",
243
+ type: "address",
244
+ },
245
+ {
246
+ internalType: "uint256",
247
+ name: "deadline",
248
+ type: "uint256",
249
+ },
250
+ ],
251
+ name: "swapExactTokensForTokens",
252
+ outputs: [
253
+ {
254
+ internalType: "uint256[]",
255
+ name: "amounts",
256
+ type: "uint256[]",
257
+ },
258
+ ],
259
+ stateMutability: "nonpayable",
260
+ type: "function",
261
+ },
262
+ ] as const;
263
+
264
+ export class Uniswap__factory {
265
+ static readonly abi = _abi;
266
+ static createInterface(): UniswapInterface {
267
+ return new utils.Interface(_abi) as UniswapInterface;
268
+ }
269
+ static connect(
270
+ address: string,
271
+ signerOrProvider: Signer | Provider
272
+ ): Uniswap {
273
+ return new Contract(address, _abi, signerOrProvider) as Uniswap;
274
+ }
275
+ }