@gooddollar/goodcollective-contracts 1.0.1 → 1.0.3

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 (185) hide show
  1. package/contracts/DirectPayments/DirectPaymentsPool.sol +15 -5
  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 +4314 -2903
  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/DirectPaymentsFactory.ts +2 -2
  86. package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +768 -5
  87. package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.ts +843 -0
  88. package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.ts +523 -0
  89. package/typechain-types/contracts/GoodCollective/index.ts +5 -0
  90. package/typechain-types/contracts/index.ts +4 -1
  91. package/typechain-types/contracts/utils/SwapRouterMock.ts +194 -0
  92. package/typechain-types/contracts/utils/index.ts +4 -0
  93. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/AggregatorV3Interface__factory.ts +121 -0
  94. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/CERC20__factory.ts +384 -0
  95. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/ERC20__factory.ts +288 -0
  96. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IAaveIncentivesController__factory.ts +83 -0
  97. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IAdminWallet__factory.ts +78 -0
  98. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IDonationStaking__factory.ts +33 -0
  99. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IERC2917__factory.ts +496 -0
  100. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IFirstClaimPool__factory.ts +65 -0
  101. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IGoodDollar__factory.ts +598 -0
  102. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IGoodStaking__factory.ts +178 -0
  103. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IHasRouter__factory.ts +39 -0
  104. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentityV2__factory.ts +334 -0
  105. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentity__factory.ts +287 -0
  106. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/ILendingPool__factory.ts +171 -0
  107. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IMultichainRouter__factory.ts +82 -0
  108. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/INameService__factory.ts +45 -0
  109. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IUBIScheme__factory.ts +71 -0
  110. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/ProxyAdmin__factory.ts +131 -0
  111. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/Reserve__factory.ts +55 -0
  112. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/Staking__factory.ts +77 -0
  113. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapFactory__factory.ts +50 -0
  114. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapPair__factory.ts +120 -0
  115. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/Uniswap__factory.ts +275 -0
  116. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/index.ts +26 -0
  117. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/index.ts +5 -0
  118. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula__factory.ts +60 -0
  119. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/index.ts +4 -0
  120. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/index.ts +5 -0
  121. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/IGoodDollarCustom__factory.ts +370 -0
  122. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/ISuperGoodDollar__factory.ts +2301 -0
  123. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/index.ts +5 -0
  124. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/index.ts +4 -0
  125. package/typechain-types/factories/@gooddollar/goodprotocol/index.ts +4 -0
  126. package/typechain-types/factories/@gooddollar/index.ts +4 -0
  127. package/typechain-types/factories/@openzeppelin/contracts/index.ts +2 -0
  128. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +206 -0
  129. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts +4 -0
  130. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/IERC721__factory.ts +311 -0
  131. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.ts +356 -0
  132. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/index.ts +4 -0
  133. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/index.ts +5 -0
  134. package/typechain-types/factories/@openzeppelin/contracts/token/ERC777/IERC777__factory.ts +417 -0
  135. package/typechain-types/factories/@openzeppelin/contracts/token/ERC777/index.ts +4 -0
  136. package/typechain-types/factories/@openzeppelin/contracts/token/index.ts +6 -0
  137. package/typechain-types/factories/@openzeppelin/contracts/utils/index.ts +4 -0
  138. package/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts +45 -0
  139. package/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.ts +4 -0
  140. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/index.ts +4 -0
  141. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IConstantFlowAgreementV1__factory.ts +986 -0
  142. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IInstantDistributionAgreementV1__factory.ts +1015 -0
  143. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/index.ts +5 -0
  144. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/index.ts +6 -0
  145. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IConstantInflowNFT__factory.ts +551 -0
  146. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IConstantOutflowNFT__factory.ts +614 -0
  147. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IFlowNFTBase__factory.ts +515 -0
  148. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperAgreement__factory.ts +78 -0
  149. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperApp__factory.ts +275 -0
  150. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperTokenFactory__factory.ts +276 -0
  151. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperToken__factory.ts +1839 -0
  152. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidGovernance__factory.ts +264 -0
  153. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidToken__factory.ts +697 -0
  154. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluid__factory.ts +1151 -0
  155. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/index.ts +13 -0
  156. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/ERC20WithTokenInfo__factory.ts +248 -0
  157. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/TokenInfo__factory.ts +65 -0
  158. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/index.ts +5 -0
  159. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/index.ts +4 -0
  160. package/typechain-types/factories/@superfluid-finance/index.ts +4 -0
  161. package/typechain-types/factories/@uniswap/index.ts +5 -0
  162. package/typechain-types/factories/@uniswap/v3-core/contracts/index.ts +4 -0
  163. package/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback__factory.ts +53 -0
  164. package/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/index.ts +4 -0
  165. package/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/index.ts +4 -0
  166. package/typechain-types/factories/@uniswap/v3-core/index.ts +4 -0
  167. package/typechain-types/factories/@uniswap/v3-periphery/contracts/index.ts +4 -0
  168. package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter__factory.ts +263 -0
  169. package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/index.ts +4 -0
  170. package/typechain-types/factories/@uniswap/v3-periphery/index.ts +4 -0
  171. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +2 -2
  172. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +584 -6
  173. package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts +584 -0
  174. package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow__factory.ts +335 -0
  175. package/typechain-types/factories/contracts/GoodCollective/index.ts +5 -0
  176. package/typechain-types/factories/contracts/index.ts +2 -1
  177. package/typechain-types/factories/contracts/utils/SwapRouterMock__factory.ts +183 -0
  178. package/typechain-types/factories/contracts/utils/index.ts +4 -0
  179. package/typechain-types/factories/index.ts +3 -0
  180. package/typechain-types/hardhat.d.ts +445 -4
  181. package/typechain-types/index.ts +106 -4
  182. package/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.ts +0 -193
  183. package/typechain-types/contracts/Lock.ts +0 -148
  184. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable__factory.ts +0 -105
  185. package/typechain-types/factories/contracts/Lock__factory.ts +0 -129
@@ -0,0 +1,465 @@
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 {
17
+ FunctionFragment,
18
+ Result,
19
+ EventFragment,
20
+ } from "@ethersproject/abi";
21
+ import type { Listener, Provider } from "@ethersproject/providers";
22
+ import type {
23
+ TypedEventFilter,
24
+ TypedEvent,
25
+ TypedListener,
26
+ OnEvent,
27
+ PromiseOrValue,
28
+ } from "../../../../../common";
29
+
30
+ export interface ISuperTokenFactoryInterface extends utils.Interface {
31
+ functions: {
32
+ "computeCanonicalERC20WrapperAddress(address)": FunctionFragment;
33
+ "createCanonicalERC20Wrapper(address)": FunctionFragment;
34
+ "createERC20Wrapper(address,uint8,string,string)": FunctionFragment;
35
+ "createERC20Wrapper(address,uint8,uint8,string,string)": FunctionFragment;
36
+ "getCanonicalERC20Wrapper(address)": FunctionFragment;
37
+ "getHost()": FunctionFragment;
38
+ "getSuperTokenLogic()": FunctionFragment;
39
+ "initialize()": FunctionFragment;
40
+ "initializeCustomSuperToken(address)": FunctionFragment;
41
+ };
42
+
43
+ getFunction(
44
+ nameOrSignatureOrTopic:
45
+ | "computeCanonicalERC20WrapperAddress"
46
+ | "createCanonicalERC20Wrapper"
47
+ | "createERC20Wrapper(address,uint8,string,string)"
48
+ | "createERC20Wrapper(address,uint8,uint8,string,string)"
49
+ | "getCanonicalERC20Wrapper"
50
+ | "getHost"
51
+ | "getSuperTokenLogic"
52
+ | "initialize"
53
+ | "initializeCustomSuperToken"
54
+ ): FunctionFragment;
55
+
56
+ encodeFunctionData(
57
+ functionFragment: "computeCanonicalERC20WrapperAddress",
58
+ values: [PromiseOrValue<string>]
59
+ ): string;
60
+ encodeFunctionData(
61
+ functionFragment: "createCanonicalERC20Wrapper",
62
+ values: [PromiseOrValue<string>]
63
+ ): string;
64
+ encodeFunctionData(
65
+ functionFragment: "createERC20Wrapper(address,uint8,string,string)",
66
+ values: [
67
+ PromiseOrValue<string>,
68
+ PromiseOrValue<BigNumberish>,
69
+ PromiseOrValue<string>,
70
+ PromiseOrValue<string>
71
+ ]
72
+ ): string;
73
+ encodeFunctionData(
74
+ functionFragment: "createERC20Wrapper(address,uint8,uint8,string,string)",
75
+ values: [
76
+ PromiseOrValue<string>,
77
+ PromiseOrValue<BigNumberish>,
78
+ PromiseOrValue<BigNumberish>,
79
+ PromiseOrValue<string>,
80
+ PromiseOrValue<string>
81
+ ]
82
+ ): string;
83
+ encodeFunctionData(
84
+ functionFragment: "getCanonicalERC20Wrapper",
85
+ values: [PromiseOrValue<string>]
86
+ ): string;
87
+ encodeFunctionData(functionFragment: "getHost", values?: undefined): string;
88
+ encodeFunctionData(
89
+ functionFragment: "getSuperTokenLogic",
90
+ values?: undefined
91
+ ): string;
92
+ encodeFunctionData(
93
+ functionFragment: "initialize",
94
+ values?: undefined
95
+ ): string;
96
+ encodeFunctionData(
97
+ functionFragment: "initializeCustomSuperToken",
98
+ values: [PromiseOrValue<string>]
99
+ ): string;
100
+
101
+ decodeFunctionResult(
102
+ functionFragment: "computeCanonicalERC20WrapperAddress",
103
+ data: BytesLike
104
+ ): Result;
105
+ decodeFunctionResult(
106
+ functionFragment: "createCanonicalERC20Wrapper",
107
+ data: BytesLike
108
+ ): Result;
109
+ decodeFunctionResult(
110
+ functionFragment: "createERC20Wrapper(address,uint8,string,string)",
111
+ data: BytesLike
112
+ ): Result;
113
+ decodeFunctionResult(
114
+ functionFragment: "createERC20Wrapper(address,uint8,uint8,string,string)",
115
+ data: BytesLike
116
+ ): Result;
117
+ decodeFunctionResult(
118
+ functionFragment: "getCanonicalERC20Wrapper",
119
+ data: BytesLike
120
+ ): Result;
121
+ decodeFunctionResult(functionFragment: "getHost", data: BytesLike): Result;
122
+ decodeFunctionResult(
123
+ functionFragment: "getSuperTokenLogic",
124
+ data: BytesLike
125
+ ): Result;
126
+ decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
127
+ decodeFunctionResult(
128
+ functionFragment: "initializeCustomSuperToken",
129
+ data: BytesLike
130
+ ): Result;
131
+
132
+ events: {
133
+ "CustomSuperTokenCreated(address)": EventFragment;
134
+ "SuperTokenCreated(address)": EventFragment;
135
+ "SuperTokenLogicCreated(address)": EventFragment;
136
+ };
137
+
138
+ getEvent(nameOrSignatureOrTopic: "CustomSuperTokenCreated"): EventFragment;
139
+ getEvent(nameOrSignatureOrTopic: "SuperTokenCreated"): EventFragment;
140
+ getEvent(nameOrSignatureOrTopic: "SuperTokenLogicCreated"): EventFragment;
141
+ }
142
+
143
+ export interface CustomSuperTokenCreatedEventObject {
144
+ token: string;
145
+ }
146
+ export type CustomSuperTokenCreatedEvent = TypedEvent<
147
+ [string],
148
+ CustomSuperTokenCreatedEventObject
149
+ >;
150
+
151
+ export type CustomSuperTokenCreatedEventFilter =
152
+ TypedEventFilter<CustomSuperTokenCreatedEvent>;
153
+
154
+ export interface SuperTokenCreatedEventObject {
155
+ token: string;
156
+ }
157
+ export type SuperTokenCreatedEvent = TypedEvent<
158
+ [string],
159
+ SuperTokenCreatedEventObject
160
+ >;
161
+
162
+ export type SuperTokenCreatedEventFilter =
163
+ TypedEventFilter<SuperTokenCreatedEvent>;
164
+
165
+ export interface SuperTokenLogicCreatedEventObject {
166
+ tokenLogic: string;
167
+ }
168
+ export type SuperTokenLogicCreatedEvent = TypedEvent<
169
+ [string],
170
+ SuperTokenLogicCreatedEventObject
171
+ >;
172
+
173
+ export type SuperTokenLogicCreatedEventFilter =
174
+ TypedEventFilter<SuperTokenLogicCreatedEvent>;
175
+
176
+ export interface ISuperTokenFactory extends BaseContract {
177
+ connect(signerOrProvider: Signer | Provider | string): this;
178
+ attach(addressOrName: string): this;
179
+ deployed(): Promise<this>;
180
+
181
+ interface: ISuperTokenFactoryInterface;
182
+
183
+ queryFilter<TEvent extends TypedEvent>(
184
+ event: TypedEventFilter<TEvent>,
185
+ fromBlockOrBlockhash?: string | number | undefined,
186
+ toBlock?: string | number | undefined
187
+ ): Promise<Array<TEvent>>;
188
+
189
+ listeners<TEvent extends TypedEvent>(
190
+ eventFilter?: TypedEventFilter<TEvent>
191
+ ): Array<TypedListener<TEvent>>;
192
+ listeners(eventName?: string): Array<Listener>;
193
+ removeAllListeners<TEvent extends TypedEvent>(
194
+ eventFilter: TypedEventFilter<TEvent>
195
+ ): this;
196
+ removeAllListeners(eventName?: string): this;
197
+ off: OnEvent<this>;
198
+ on: OnEvent<this>;
199
+ once: OnEvent<this>;
200
+ removeListener: OnEvent<this>;
201
+
202
+ functions: {
203
+ computeCanonicalERC20WrapperAddress(
204
+ _underlyingToken: PromiseOrValue<string>,
205
+ overrides?: CallOverrides
206
+ ): Promise<
207
+ [string, boolean] & { superTokenAddress: string; isDeployed: boolean }
208
+ >;
209
+
210
+ createCanonicalERC20Wrapper(
211
+ _underlyingToken: PromiseOrValue<string>,
212
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
213
+ ): Promise<ContractTransaction>;
214
+
215
+ "createERC20Wrapper(address,uint8,string,string)"(
216
+ underlyingToken: PromiseOrValue<string>,
217
+ upgradability: PromiseOrValue<BigNumberish>,
218
+ name: PromiseOrValue<string>,
219
+ symbol: PromiseOrValue<string>,
220
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
221
+ ): Promise<ContractTransaction>;
222
+
223
+ "createERC20Wrapper(address,uint8,uint8,string,string)"(
224
+ underlyingToken: PromiseOrValue<string>,
225
+ underlyingDecimals: PromiseOrValue<BigNumberish>,
226
+ upgradability: PromiseOrValue<BigNumberish>,
227
+ name: PromiseOrValue<string>,
228
+ symbol: PromiseOrValue<string>,
229
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
230
+ ): Promise<ContractTransaction>;
231
+
232
+ getCanonicalERC20Wrapper(
233
+ _underlyingTokenAddress: PromiseOrValue<string>,
234
+ overrides?: CallOverrides
235
+ ): Promise<[string] & { superTokenAddress: string }>;
236
+
237
+ getHost(overrides?: CallOverrides): Promise<[string] & { host: string }>;
238
+
239
+ getSuperTokenLogic(
240
+ overrides?: CallOverrides
241
+ ): Promise<[string] & { superToken: string }>;
242
+
243
+ initialize(
244
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
245
+ ): Promise<ContractTransaction>;
246
+
247
+ initializeCustomSuperToken(
248
+ customSuperTokenProxy: PromiseOrValue<string>,
249
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
250
+ ): Promise<ContractTransaction>;
251
+ };
252
+
253
+ computeCanonicalERC20WrapperAddress(
254
+ _underlyingToken: PromiseOrValue<string>,
255
+ overrides?: CallOverrides
256
+ ): Promise<
257
+ [string, boolean] & { superTokenAddress: string; isDeployed: boolean }
258
+ >;
259
+
260
+ createCanonicalERC20Wrapper(
261
+ _underlyingToken: PromiseOrValue<string>,
262
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
263
+ ): Promise<ContractTransaction>;
264
+
265
+ "createERC20Wrapper(address,uint8,string,string)"(
266
+ underlyingToken: PromiseOrValue<string>,
267
+ upgradability: PromiseOrValue<BigNumberish>,
268
+ name: PromiseOrValue<string>,
269
+ symbol: PromiseOrValue<string>,
270
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
271
+ ): Promise<ContractTransaction>;
272
+
273
+ "createERC20Wrapper(address,uint8,uint8,string,string)"(
274
+ underlyingToken: PromiseOrValue<string>,
275
+ underlyingDecimals: PromiseOrValue<BigNumberish>,
276
+ upgradability: PromiseOrValue<BigNumberish>,
277
+ name: PromiseOrValue<string>,
278
+ symbol: PromiseOrValue<string>,
279
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
280
+ ): Promise<ContractTransaction>;
281
+
282
+ getCanonicalERC20Wrapper(
283
+ _underlyingTokenAddress: PromiseOrValue<string>,
284
+ overrides?: CallOverrides
285
+ ): Promise<string>;
286
+
287
+ getHost(overrides?: CallOverrides): Promise<string>;
288
+
289
+ getSuperTokenLogic(overrides?: CallOverrides): Promise<string>;
290
+
291
+ initialize(
292
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
293
+ ): Promise<ContractTransaction>;
294
+
295
+ initializeCustomSuperToken(
296
+ customSuperTokenProxy: PromiseOrValue<string>,
297
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
298
+ ): Promise<ContractTransaction>;
299
+
300
+ callStatic: {
301
+ computeCanonicalERC20WrapperAddress(
302
+ _underlyingToken: PromiseOrValue<string>,
303
+ overrides?: CallOverrides
304
+ ): Promise<
305
+ [string, boolean] & { superTokenAddress: string; isDeployed: boolean }
306
+ >;
307
+
308
+ createCanonicalERC20Wrapper(
309
+ _underlyingToken: PromiseOrValue<string>,
310
+ overrides?: CallOverrides
311
+ ): Promise<string>;
312
+
313
+ "createERC20Wrapper(address,uint8,string,string)"(
314
+ underlyingToken: PromiseOrValue<string>,
315
+ upgradability: PromiseOrValue<BigNumberish>,
316
+ name: PromiseOrValue<string>,
317
+ symbol: PromiseOrValue<string>,
318
+ overrides?: CallOverrides
319
+ ): Promise<string>;
320
+
321
+ "createERC20Wrapper(address,uint8,uint8,string,string)"(
322
+ underlyingToken: PromiseOrValue<string>,
323
+ underlyingDecimals: PromiseOrValue<BigNumberish>,
324
+ upgradability: PromiseOrValue<BigNumberish>,
325
+ name: PromiseOrValue<string>,
326
+ symbol: PromiseOrValue<string>,
327
+ overrides?: CallOverrides
328
+ ): Promise<string>;
329
+
330
+ getCanonicalERC20Wrapper(
331
+ _underlyingTokenAddress: PromiseOrValue<string>,
332
+ overrides?: CallOverrides
333
+ ): Promise<string>;
334
+
335
+ getHost(overrides?: CallOverrides): Promise<string>;
336
+
337
+ getSuperTokenLogic(overrides?: CallOverrides): Promise<string>;
338
+
339
+ initialize(overrides?: CallOverrides): Promise<void>;
340
+
341
+ initializeCustomSuperToken(
342
+ customSuperTokenProxy: PromiseOrValue<string>,
343
+ overrides?: CallOverrides
344
+ ): Promise<void>;
345
+ };
346
+
347
+ filters: {
348
+ "CustomSuperTokenCreated(address)"(
349
+ token?: PromiseOrValue<string> | null
350
+ ): CustomSuperTokenCreatedEventFilter;
351
+ CustomSuperTokenCreated(
352
+ token?: PromiseOrValue<string> | null
353
+ ): CustomSuperTokenCreatedEventFilter;
354
+
355
+ "SuperTokenCreated(address)"(
356
+ token?: PromiseOrValue<string> | null
357
+ ): SuperTokenCreatedEventFilter;
358
+ SuperTokenCreated(
359
+ token?: PromiseOrValue<string> | null
360
+ ): SuperTokenCreatedEventFilter;
361
+
362
+ "SuperTokenLogicCreated(address)"(
363
+ tokenLogic?: PromiseOrValue<string> | null
364
+ ): SuperTokenLogicCreatedEventFilter;
365
+ SuperTokenLogicCreated(
366
+ tokenLogic?: PromiseOrValue<string> | null
367
+ ): SuperTokenLogicCreatedEventFilter;
368
+ };
369
+
370
+ estimateGas: {
371
+ computeCanonicalERC20WrapperAddress(
372
+ _underlyingToken: PromiseOrValue<string>,
373
+ overrides?: CallOverrides
374
+ ): Promise<BigNumber>;
375
+
376
+ createCanonicalERC20Wrapper(
377
+ _underlyingToken: PromiseOrValue<string>,
378
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
379
+ ): Promise<BigNumber>;
380
+
381
+ "createERC20Wrapper(address,uint8,string,string)"(
382
+ underlyingToken: PromiseOrValue<string>,
383
+ upgradability: PromiseOrValue<BigNumberish>,
384
+ name: PromiseOrValue<string>,
385
+ symbol: PromiseOrValue<string>,
386
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
387
+ ): Promise<BigNumber>;
388
+
389
+ "createERC20Wrapper(address,uint8,uint8,string,string)"(
390
+ underlyingToken: PromiseOrValue<string>,
391
+ underlyingDecimals: PromiseOrValue<BigNumberish>,
392
+ upgradability: PromiseOrValue<BigNumberish>,
393
+ name: PromiseOrValue<string>,
394
+ symbol: PromiseOrValue<string>,
395
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
396
+ ): Promise<BigNumber>;
397
+
398
+ getCanonicalERC20Wrapper(
399
+ _underlyingTokenAddress: PromiseOrValue<string>,
400
+ overrides?: CallOverrides
401
+ ): Promise<BigNumber>;
402
+
403
+ getHost(overrides?: CallOverrides): Promise<BigNumber>;
404
+
405
+ getSuperTokenLogic(overrides?: CallOverrides): Promise<BigNumber>;
406
+
407
+ initialize(
408
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
409
+ ): Promise<BigNumber>;
410
+
411
+ initializeCustomSuperToken(
412
+ customSuperTokenProxy: PromiseOrValue<string>,
413
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
414
+ ): Promise<BigNumber>;
415
+ };
416
+
417
+ populateTransaction: {
418
+ computeCanonicalERC20WrapperAddress(
419
+ _underlyingToken: PromiseOrValue<string>,
420
+ overrides?: CallOverrides
421
+ ): Promise<PopulatedTransaction>;
422
+
423
+ createCanonicalERC20Wrapper(
424
+ _underlyingToken: PromiseOrValue<string>,
425
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
426
+ ): Promise<PopulatedTransaction>;
427
+
428
+ "createERC20Wrapper(address,uint8,string,string)"(
429
+ underlyingToken: PromiseOrValue<string>,
430
+ upgradability: PromiseOrValue<BigNumberish>,
431
+ name: PromiseOrValue<string>,
432
+ symbol: PromiseOrValue<string>,
433
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
434
+ ): Promise<PopulatedTransaction>;
435
+
436
+ "createERC20Wrapper(address,uint8,uint8,string,string)"(
437
+ underlyingToken: PromiseOrValue<string>,
438
+ underlyingDecimals: PromiseOrValue<BigNumberish>,
439
+ upgradability: PromiseOrValue<BigNumberish>,
440
+ name: PromiseOrValue<string>,
441
+ symbol: PromiseOrValue<string>,
442
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
443
+ ): Promise<PopulatedTransaction>;
444
+
445
+ getCanonicalERC20Wrapper(
446
+ _underlyingTokenAddress: PromiseOrValue<string>,
447
+ overrides?: CallOverrides
448
+ ): Promise<PopulatedTransaction>;
449
+
450
+ getHost(overrides?: CallOverrides): Promise<PopulatedTransaction>;
451
+
452
+ getSuperTokenLogic(
453
+ overrides?: CallOverrides
454
+ ): Promise<PopulatedTransaction>;
455
+
456
+ initialize(
457
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
458
+ ): Promise<PopulatedTransaction>;
459
+
460
+ initializeCustomSuperToken(
461
+ customSuperTokenProxy: PromiseOrValue<string>,
462
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
463
+ ): Promise<PopulatedTransaction>;
464
+ };
465
+ }