@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
@@ -1,193 +0,0 @@
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 IERC20PermitUpgradeableInterface extends utils.Interface {
27
- functions: {
28
- "DOMAIN_SEPARATOR()": FunctionFragment;
29
- "nonces(address)": FunctionFragment;
30
- "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": FunctionFragment;
31
- };
32
-
33
- getFunction(
34
- nameOrSignatureOrTopic: "DOMAIN_SEPARATOR" | "nonces" | "permit"
35
- ): FunctionFragment;
36
-
37
- encodeFunctionData(
38
- functionFragment: "DOMAIN_SEPARATOR",
39
- values?: undefined
40
- ): string;
41
- encodeFunctionData(
42
- functionFragment: "nonces",
43
- values: [PromiseOrValue<string>]
44
- ): string;
45
- encodeFunctionData(
46
- functionFragment: "permit",
47
- values: [
48
- PromiseOrValue<string>,
49
- PromiseOrValue<string>,
50
- PromiseOrValue<BigNumberish>,
51
- PromiseOrValue<BigNumberish>,
52
- PromiseOrValue<BigNumberish>,
53
- PromiseOrValue<BytesLike>,
54
- PromiseOrValue<BytesLike>
55
- ]
56
- ): string;
57
-
58
- decodeFunctionResult(
59
- functionFragment: "DOMAIN_SEPARATOR",
60
- data: BytesLike
61
- ): Result;
62
- decodeFunctionResult(functionFragment: "nonces", data: BytesLike): Result;
63
- decodeFunctionResult(functionFragment: "permit", data: BytesLike): Result;
64
-
65
- events: {};
66
- }
67
-
68
- export interface IERC20PermitUpgradeable extends BaseContract {
69
- connect(signerOrProvider: Signer | Provider | string): this;
70
- attach(addressOrName: string): this;
71
- deployed(): Promise<this>;
72
-
73
- interface: IERC20PermitUpgradeableInterface;
74
-
75
- queryFilter<TEvent extends TypedEvent>(
76
- event: TypedEventFilter<TEvent>,
77
- fromBlockOrBlockhash?: string | number | undefined,
78
- toBlock?: string | number | undefined
79
- ): Promise<Array<TEvent>>;
80
-
81
- listeners<TEvent extends TypedEvent>(
82
- eventFilter?: TypedEventFilter<TEvent>
83
- ): Array<TypedListener<TEvent>>;
84
- listeners(eventName?: string): Array<Listener>;
85
- removeAllListeners<TEvent extends TypedEvent>(
86
- eventFilter: TypedEventFilter<TEvent>
87
- ): this;
88
- removeAllListeners(eventName?: string): this;
89
- off: OnEvent<this>;
90
- on: OnEvent<this>;
91
- once: OnEvent<this>;
92
- removeListener: OnEvent<this>;
93
-
94
- functions: {
95
- DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<[string]>;
96
-
97
- nonces(
98
- owner: PromiseOrValue<string>,
99
- overrides?: CallOverrides
100
- ): Promise<[BigNumber]>;
101
-
102
- permit(
103
- owner: PromiseOrValue<string>,
104
- spender: PromiseOrValue<string>,
105
- value: PromiseOrValue<BigNumberish>,
106
- deadline: PromiseOrValue<BigNumberish>,
107
- v: PromiseOrValue<BigNumberish>,
108
- r: PromiseOrValue<BytesLike>,
109
- s: PromiseOrValue<BytesLike>,
110
- overrides?: Overrides & { from?: PromiseOrValue<string> }
111
- ): Promise<ContractTransaction>;
112
- };
113
-
114
- DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<string>;
115
-
116
- nonces(
117
- owner: PromiseOrValue<string>,
118
- overrides?: CallOverrides
119
- ): Promise<BigNumber>;
120
-
121
- permit(
122
- owner: PromiseOrValue<string>,
123
- spender: PromiseOrValue<string>,
124
- value: PromiseOrValue<BigNumberish>,
125
- deadline: PromiseOrValue<BigNumberish>,
126
- v: PromiseOrValue<BigNumberish>,
127
- r: PromiseOrValue<BytesLike>,
128
- s: PromiseOrValue<BytesLike>,
129
- overrides?: Overrides & { from?: PromiseOrValue<string> }
130
- ): Promise<ContractTransaction>;
131
-
132
- callStatic: {
133
- DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<string>;
134
-
135
- nonces(
136
- owner: PromiseOrValue<string>,
137
- overrides?: CallOverrides
138
- ): Promise<BigNumber>;
139
-
140
- permit(
141
- owner: PromiseOrValue<string>,
142
- spender: PromiseOrValue<string>,
143
- value: PromiseOrValue<BigNumberish>,
144
- deadline: PromiseOrValue<BigNumberish>,
145
- v: PromiseOrValue<BigNumberish>,
146
- r: PromiseOrValue<BytesLike>,
147
- s: PromiseOrValue<BytesLike>,
148
- overrides?: CallOverrides
149
- ): Promise<void>;
150
- };
151
-
152
- filters: {};
153
-
154
- estimateGas: {
155
- DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<BigNumber>;
156
-
157
- nonces(
158
- owner: PromiseOrValue<string>,
159
- overrides?: CallOverrides
160
- ): Promise<BigNumber>;
161
-
162
- permit(
163
- owner: PromiseOrValue<string>,
164
- spender: PromiseOrValue<string>,
165
- value: PromiseOrValue<BigNumberish>,
166
- deadline: PromiseOrValue<BigNumberish>,
167
- v: PromiseOrValue<BigNumberish>,
168
- r: PromiseOrValue<BytesLike>,
169
- s: PromiseOrValue<BytesLike>,
170
- overrides?: Overrides & { from?: PromiseOrValue<string> }
171
- ): Promise<BigNumber>;
172
- };
173
-
174
- populateTransaction: {
175
- DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<PopulatedTransaction>;
176
-
177
- nonces(
178
- owner: PromiseOrValue<string>,
179
- overrides?: CallOverrides
180
- ): Promise<PopulatedTransaction>;
181
-
182
- permit(
183
- owner: PromiseOrValue<string>,
184
- spender: PromiseOrValue<string>,
185
- value: PromiseOrValue<BigNumberish>,
186
- deadline: PromiseOrValue<BigNumberish>,
187
- v: PromiseOrValue<BigNumberish>,
188
- r: PromiseOrValue<BytesLike>,
189
- s: PromiseOrValue<BytesLike>,
190
- overrides?: Overrides & { from?: PromiseOrValue<string> }
191
- ): Promise<PopulatedTransaction>;
192
- };
193
- }
@@ -1,148 +0,0 @@
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
- ContractTransaction,
10
- Overrides,
11
- PopulatedTransaction,
12
- Signer,
13
- utils,
14
- } from "ethers";
15
- import type {
16
- FunctionFragment,
17
- Result,
18
- EventFragment,
19
- } from "@ethersproject/abi";
20
- import type { Listener, Provider } from "@ethersproject/providers";
21
- import type {
22
- TypedEventFilter,
23
- TypedEvent,
24
- TypedListener,
25
- OnEvent,
26
- PromiseOrValue,
27
- } from "../common";
28
-
29
- export interface LockInterface extends utils.Interface {
30
- functions: {
31
- "owner()": FunctionFragment;
32
- "unlockTime()": FunctionFragment;
33
- "withdraw()": FunctionFragment;
34
- };
35
-
36
- getFunction(
37
- nameOrSignatureOrTopic: "owner" | "unlockTime" | "withdraw"
38
- ): FunctionFragment;
39
-
40
- encodeFunctionData(functionFragment: "owner", values?: undefined): string;
41
- encodeFunctionData(
42
- functionFragment: "unlockTime",
43
- values?: undefined
44
- ): string;
45
- encodeFunctionData(functionFragment: "withdraw", values?: undefined): string;
46
-
47
- decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
48
- decodeFunctionResult(functionFragment: "unlockTime", data: BytesLike): Result;
49
- decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
50
-
51
- events: {
52
- "Withdrawal(uint256,uint256)": EventFragment;
53
- };
54
-
55
- getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment;
56
- }
57
-
58
- export interface WithdrawalEventObject {
59
- amount: BigNumber;
60
- when: BigNumber;
61
- }
62
- export type WithdrawalEvent = TypedEvent<
63
- [BigNumber, BigNumber],
64
- WithdrawalEventObject
65
- >;
66
-
67
- export type WithdrawalEventFilter = TypedEventFilter<WithdrawalEvent>;
68
-
69
- export interface Lock extends BaseContract {
70
- connect(signerOrProvider: Signer | Provider | string): this;
71
- attach(addressOrName: string): this;
72
- deployed(): Promise<this>;
73
-
74
- interface: LockInterface;
75
-
76
- queryFilter<TEvent extends TypedEvent>(
77
- event: TypedEventFilter<TEvent>,
78
- fromBlockOrBlockhash?: string | number | undefined,
79
- toBlock?: string | number | undefined
80
- ): Promise<Array<TEvent>>;
81
-
82
- listeners<TEvent extends TypedEvent>(
83
- eventFilter?: TypedEventFilter<TEvent>
84
- ): Array<TypedListener<TEvent>>;
85
- listeners(eventName?: string): Array<Listener>;
86
- removeAllListeners<TEvent extends TypedEvent>(
87
- eventFilter: TypedEventFilter<TEvent>
88
- ): this;
89
- removeAllListeners(eventName?: string): this;
90
- off: OnEvent<this>;
91
- on: OnEvent<this>;
92
- once: OnEvent<this>;
93
- removeListener: OnEvent<this>;
94
-
95
- functions: {
96
- owner(overrides?: CallOverrides): Promise<[string]>;
97
-
98
- unlockTime(overrides?: CallOverrides): Promise<[BigNumber]>;
99
-
100
- withdraw(
101
- overrides?: Overrides & { from?: PromiseOrValue<string> }
102
- ): Promise<ContractTransaction>;
103
- };
104
-
105
- owner(overrides?: CallOverrides): Promise<string>;
106
-
107
- unlockTime(overrides?: CallOverrides): Promise<BigNumber>;
108
-
109
- withdraw(
110
- overrides?: Overrides & { from?: PromiseOrValue<string> }
111
- ): Promise<ContractTransaction>;
112
-
113
- callStatic: {
114
- owner(overrides?: CallOverrides): Promise<string>;
115
-
116
- unlockTime(overrides?: CallOverrides): Promise<BigNumber>;
117
-
118
- withdraw(overrides?: CallOverrides): Promise<void>;
119
- };
120
-
121
- filters: {
122
- "Withdrawal(uint256,uint256)"(
123
- amount?: null,
124
- when?: null
125
- ): WithdrawalEventFilter;
126
- Withdrawal(amount?: null, when?: null): WithdrawalEventFilter;
127
- };
128
-
129
- estimateGas: {
130
- owner(overrides?: CallOverrides): Promise<BigNumber>;
131
-
132
- unlockTime(overrides?: CallOverrides): Promise<BigNumber>;
133
-
134
- withdraw(
135
- overrides?: Overrides & { from?: PromiseOrValue<string> }
136
- ): Promise<BigNumber>;
137
- };
138
-
139
- populateTransaction: {
140
- owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
141
-
142
- unlockTime(overrides?: CallOverrides): Promise<PopulatedTransaction>;
143
-
144
- withdraw(
145
- overrides?: Overrides & { from?: PromiseOrValue<string> }
146
- ): Promise<PopulatedTransaction>;
147
- };
148
- }
@@ -1,105 +0,0 @@
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
- IERC20PermitUpgradeable,
9
- IERC20PermitUpgradeableInterface,
10
- } from "../../../../../../@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable";
11
-
12
- const _abi = [
13
- {
14
- inputs: [],
15
- name: "DOMAIN_SEPARATOR",
16
- outputs: [
17
- {
18
- internalType: "bytes32",
19
- name: "",
20
- type: "bytes32",
21
- },
22
- ],
23
- stateMutability: "view",
24
- type: "function",
25
- },
26
- {
27
- inputs: [
28
- {
29
- internalType: "address",
30
- name: "owner",
31
- type: "address",
32
- },
33
- ],
34
- name: "nonces",
35
- outputs: [
36
- {
37
- internalType: "uint256",
38
- name: "",
39
- type: "uint256",
40
- },
41
- ],
42
- stateMutability: "view",
43
- type: "function",
44
- },
45
- {
46
- inputs: [
47
- {
48
- internalType: "address",
49
- name: "owner",
50
- type: "address",
51
- },
52
- {
53
- internalType: "address",
54
- name: "spender",
55
- type: "address",
56
- },
57
- {
58
- internalType: "uint256",
59
- name: "value",
60
- type: "uint256",
61
- },
62
- {
63
- internalType: "uint256",
64
- name: "deadline",
65
- type: "uint256",
66
- },
67
- {
68
- internalType: "uint8",
69
- name: "v",
70
- type: "uint8",
71
- },
72
- {
73
- internalType: "bytes32",
74
- name: "r",
75
- type: "bytes32",
76
- },
77
- {
78
- internalType: "bytes32",
79
- name: "s",
80
- type: "bytes32",
81
- },
82
- ],
83
- name: "permit",
84
- outputs: [],
85
- stateMutability: "nonpayable",
86
- type: "function",
87
- },
88
- ] as const;
89
-
90
- export class IERC20PermitUpgradeable__factory {
91
- static readonly abi = _abi;
92
- static createInterface(): IERC20PermitUpgradeableInterface {
93
- return new utils.Interface(_abi) as IERC20PermitUpgradeableInterface;
94
- }
95
- static connect(
96
- address: string,
97
- signerOrProvider: Signer | Provider
98
- ): IERC20PermitUpgradeable {
99
- return new Contract(
100
- address,
101
- _abi,
102
- signerOrProvider
103
- ) as IERC20PermitUpgradeable;
104
- }
105
- }
@@ -1,129 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import {
5
- Signer,
6
- utils,
7
- Contract,
8
- ContractFactory,
9
- PayableOverrides,
10
- BigNumberish,
11
- } from "ethers";
12
- import type { Provider, TransactionRequest } from "@ethersproject/providers";
13
- import type { PromiseOrValue } from "../../common";
14
- import type { Lock, LockInterface } from "../../contracts/Lock";
15
-
16
- const _abi = [
17
- {
18
- inputs: [
19
- {
20
- internalType: "uint256",
21
- name: "_unlockTime",
22
- type: "uint256",
23
- },
24
- ],
25
- stateMutability: "payable",
26
- type: "constructor",
27
- },
28
- {
29
- anonymous: false,
30
- inputs: [
31
- {
32
- indexed: false,
33
- internalType: "uint256",
34
- name: "amount",
35
- type: "uint256",
36
- },
37
- {
38
- indexed: false,
39
- internalType: "uint256",
40
- name: "when",
41
- type: "uint256",
42
- },
43
- ],
44
- name: "Withdrawal",
45
- type: "event",
46
- },
47
- {
48
- inputs: [],
49
- name: "owner",
50
- outputs: [
51
- {
52
- internalType: "address payable",
53
- name: "",
54
- type: "address",
55
- },
56
- ],
57
- stateMutability: "view",
58
- type: "function",
59
- },
60
- {
61
- inputs: [],
62
- name: "unlockTime",
63
- outputs: [
64
- {
65
- internalType: "uint256",
66
- name: "",
67
- type: "uint256",
68
- },
69
- ],
70
- stateMutability: "view",
71
- type: "function",
72
- },
73
- {
74
- inputs: [],
75
- name: "withdraw",
76
- outputs: [],
77
- stateMutability: "nonpayable",
78
- type: "function",
79
- },
80
- ] as const;
81
-
82
- const _bytecode =
83
- "0x60806040526040516102a53803806102a58339810160408190526100229161009b565b8042106100815760405162461bcd60e51b815260206004820152602360248201527f556e6c6f636b2074696d652073686f756c6420626520696e207468652066757460448201526275726560e81b606482015260840160405180910390fd5b600055600180546001600160a01b031916331790556100b4565b6000602082840312156100ad57600080fd5b5051919050565b6101e2806100c36000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063251c1aa3146100465780633ccfd60b146100625780638da5cb5b1461006c575b600080fd5b61004f60005481565b6040519081526020015b60405180910390f35b61006a610097565b005b60015461007f906001600160a01b031681565b6040516001600160a01b039091168152602001610059565b6000544210156100e75760405162461bcd60e51b8152602060048201526016602482015275165bdd4818d85b89dd081dda5d1a191c985dc81e595d60521b60448201526064015b60405180910390fd5b6001546001600160a01b031633146101385760405162461bcd60e51b81526020600482015260146024820152732cb7ba9030b932b713ba103a34329037bbb732b960611b60448201526064016100de565b604080514781524260208201527fbf2ed60bd5b5965d685680c01195c9514e4382e28e3a5a2d2d5244bf59411b93910160405180910390a16001546040516001600160a01b03909116904780156108fc02916000818181858888f193505050501580156101a9573d6000803e3d6000fd5b5056fea2646970667358221220b5224f55430ad8cec7da70155316d4e18996ac03575526988bc0de56a88e37d164736f6c63430008130033";
84
-
85
- type LockConstructorParams =
86
- | [signer?: Signer]
87
- | ConstructorParameters<typeof ContractFactory>;
88
-
89
- const isSuperArgs = (
90
- xs: LockConstructorParams
91
- ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
92
-
93
- export class Lock__factory extends ContractFactory {
94
- constructor(...args: LockConstructorParams) {
95
- if (isSuperArgs(args)) {
96
- super(...args);
97
- } else {
98
- super(_abi, _bytecode, args[0]);
99
- }
100
- }
101
-
102
- override deploy(
103
- _unlockTime: PromiseOrValue<BigNumberish>,
104
- overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
105
- ): Promise<Lock> {
106
- return super.deploy(_unlockTime, overrides || {}) as Promise<Lock>;
107
- }
108
- override getDeployTransaction(
109
- _unlockTime: PromiseOrValue<BigNumberish>,
110
- overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
111
- ): TransactionRequest {
112
- return super.getDeployTransaction(_unlockTime, overrides || {});
113
- }
114
- override attach(address: string): Lock {
115
- return super.attach(address) as Lock;
116
- }
117
- override connect(signer: Signer): Lock__factory {
118
- return super.connect(signer) as Lock__factory;
119
- }
120
-
121
- static readonly bytecode = _bytecode;
122
- static readonly abi = _abi;
123
- static createInterface(): LockInterface {
124
- return new utils.Interface(_abi) as LockInterface;
125
- }
126
- static connect(address: string, signerOrProvider: Signer | Provider): Lock {
127
- return new Contract(address, _abi, signerOrProvider) as Lock;
128
- }
129
- }