@gooddollar/goodcollective-contracts 1.1.0 → 1.3.0

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 (72) hide show
  1. package/README.md +14 -1
  2. package/contracts/DirectPayments/DirectPaymentsFactory.sol +23 -15
  3. package/contracts/DirectPayments/DirectPaymentsLibrary.sol +54 -0
  4. package/contracts/DirectPayments/DirectPaymentsPool.sol +25 -41
  5. package/contracts/GoodCollective/GoodCollectiveSuperApp.sol +89 -61
  6. package/contracts/GoodCollective/IGoodCollectiveSuperApp.sol +12 -0
  7. package/contracts/Interfaces.sol +25 -0
  8. package/contracts/UBI/UBIPool.sol +103 -90
  9. package/contracts/UBI/UBIPoolFactory.sol +24 -10
  10. package/contracts/test/HelperLibraryTest.sol +16 -0
  11. package/contracts/utils/HelperLibrary.sol +109 -8
  12. package/package.json +4 -3
  13. package/releases/deployment.json +22797 -431
  14. package/typechain-types/@uniswap/index.ts +0 -2
  15. package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.ts +56 -9
  16. package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +187 -9
  17. package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.ts +150 -6
  18. package/typechain-types/contracts/{UBI/MultiClaimModule.sol/IClaimable.ts → GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.ts} +24 -23
  19. package/typechain-types/contracts/GoodCollective/{GoodCollectiveSuperApp.sol → IGoodCollectiveSuperApp.sol}/index.ts +1 -1
  20. package/typechain-types/contracts/GoodCollective/index.ts +3 -2
  21. package/typechain-types/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IIdentityV2.ts +1 -1
  22. package/typechain-types/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IMembersValidator.ts +1 -1
  23. package/typechain-types/contracts/{UBI/UBIPool.sol → Interfaces.sol}/index.ts +0 -1
  24. package/typechain-types/contracts/UBI/{UBIPool.sol/UBIPool.ts → UBIPool.ts} +325 -78
  25. package/typechain-types/contracts/UBI/UBIPoolFactory.ts +95 -33
  26. package/typechain-types/contracts/UBI/index.ts +1 -4
  27. package/typechain-types/contracts/index.ts +4 -0
  28. package/typechain-types/contracts/test/HelperLibraryTest.ts +147 -0
  29. package/typechain-types/{@uniswap/v3-periphery/contracts/interfaces → contracts/test}/index.ts +1 -1
  30. package/typechain-types/contracts/utils/HelperLibrary.ts +46 -4
  31. package/typechain-types/factories/@uniswap/index.ts +0 -1
  32. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +25 -2
  33. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +128 -1
  34. package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts +105 -1
  35. package/typechain-types/factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp__factory.ts +48 -0
  36. package/typechain-types/factories/contracts/GoodCollective/{GoodCollectiveSuperApp.sol → IGoodCollectiveSuperApp.sol}/IRegistry__factory.ts +1 -1
  37. package/typechain-types/factories/contracts/GoodCollective/{GoodCollectiveSuperApp.sol → IGoodCollectiveSuperApp.sol}/index.ts +1 -1
  38. package/typechain-types/factories/contracts/GoodCollective/index.ts +2 -1
  39. package/typechain-types/factories/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IIdentityV2__factory.ts +1 -1
  40. package/typechain-types/factories/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IMembersValidator__factory.ts +1 -1
  41. package/typechain-types/factories/contracts/{UBI/UBIPool.sol → Interfaces.sol}/index.ts +0 -1
  42. package/typechain-types/factories/contracts/UBI/UBIPoolFactory__factory.ts +76 -4
  43. package/typechain-types/factories/contracts/UBI/UBIPool__factory.ts +2052 -0
  44. package/typechain-types/factories/contracts/UBI/index.ts +1 -2
  45. package/typechain-types/factories/contracts/index.ts +2 -0
  46. package/typechain-types/factories/contracts/test/HelperLibraryTest__factory.ts +154 -0
  47. package/typechain-types/{@uniswap/v3-periphery → factories/contracts/test}/index.ts +1 -2
  48. package/typechain-types/factories/contracts/utils/HelperLibrary__factory.ts +31 -1
  49. package/typechain-types/hardhat.d.ts +18 -36
  50. package/typechain-types/index.ts +10 -14
  51. package/contracts/UBI/MultiClaimModule.sol +0 -78
  52. package/typechain-types/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula.ts +0 -115
  53. package/typechain-types/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/index.ts +0 -4
  54. package/typechain-types/@uniswap/v3-periphery/contracts/index.ts +0 -5
  55. package/typechain-types/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.ts +0 -369
  56. package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp.ts +0 -1000
  57. package/typechain-types/contracts/UBI/MultiClaimModule.sol/IModule.ts +0 -196
  58. package/typechain-types/contracts/UBI/MultiClaimModule.sol/MultiClaimModule.ts +0 -242
  59. package/typechain-types/contracts/UBI/MultiClaimModule.sol/index.ts +0 -6
  60. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula__factory.ts +0 -60
  61. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/index.ts +0 -4
  62. package/typechain-types/factories/@uniswap/v3-periphery/contracts/index.ts +0 -4
  63. package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter__factory.ts +0 -263
  64. package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/index.ts +0 -4
  65. package/typechain-types/factories/@uniswap/v3-periphery/index.ts +0 -4
  66. package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp__factory.ts +0 -728
  67. package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IClaimable__factory.ts +0 -33
  68. package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IModule__factory.ts +0 -84
  69. package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/MultiClaimModule__factory.ts +0 -150
  70. package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/index.ts +0 -6
  71. package/typechain-types/factories/contracts/UBI/UBIPool.sol/UBIPool__factory.ts +0 -1835
  72. /package/typechain-types/contracts/GoodCollective/{GoodCollectiveSuperApp.sol → IGoodCollectiveSuperApp.sol}/IRegistry.ts +0 -0
@@ -1,263 +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
- ISwapRouter,
9
- ISwapRouterInterface,
10
- } from "../../../../../@uniswap/v3-periphery/contracts/interfaces/ISwapRouter";
11
-
12
- const _abi = [
13
- {
14
- inputs: [
15
- {
16
- components: [
17
- {
18
- internalType: "bytes",
19
- name: "path",
20
- type: "bytes",
21
- },
22
- {
23
- internalType: "address",
24
- name: "recipient",
25
- type: "address",
26
- },
27
- {
28
- internalType: "uint256",
29
- name: "deadline",
30
- type: "uint256",
31
- },
32
- {
33
- internalType: "uint256",
34
- name: "amountIn",
35
- type: "uint256",
36
- },
37
- {
38
- internalType: "uint256",
39
- name: "amountOutMinimum",
40
- type: "uint256",
41
- },
42
- ],
43
- internalType: "struct ISwapRouter.ExactInputParams",
44
- name: "params",
45
- type: "tuple",
46
- },
47
- ],
48
- name: "exactInput",
49
- outputs: [
50
- {
51
- internalType: "uint256",
52
- name: "amountOut",
53
- type: "uint256",
54
- },
55
- ],
56
- stateMutability: "payable",
57
- type: "function",
58
- },
59
- {
60
- inputs: [
61
- {
62
- components: [
63
- {
64
- internalType: "address",
65
- name: "tokenIn",
66
- type: "address",
67
- },
68
- {
69
- internalType: "address",
70
- name: "tokenOut",
71
- type: "address",
72
- },
73
- {
74
- internalType: "uint24",
75
- name: "fee",
76
- type: "uint24",
77
- },
78
- {
79
- internalType: "address",
80
- name: "recipient",
81
- type: "address",
82
- },
83
- {
84
- internalType: "uint256",
85
- name: "deadline",
86
- type: "uint256",
87
- },
88
- {
89
- internalType: "uint256",
90
- name: "amountIn",
91
- type: "uint256",
92
- },
93
- {
94
- internalType: "uint256",
95
- name: "amountOutMinimum",
96
- type: "uint256",
97
- },
98
- {
99
- internalType: "uint160",
100
- name: "sqrtPriceLimitX96",
101
- type: "uint160",
102
- },
103
- ],
104
- internalType: "struct ISwapRouter.ExactInputSingleParams",
105
- name: "params",
106
- type: "tuple",
107
- },
108
- ],
109
- name: "exactInputSingle",
110
- outputs: [
111
- {
112
- internalType: "uint256",
113
- name: "amountOut",
114
- type: "uint256",
115
- },
116
- ],
117
- stateMutability: "payable",
118
- type: "function",
119
- },
120
- {
121
- inputs: [
122
- {
123
- components: [
124
- {
125
- internalType: "bytes",
126
- name: "path",
127
- type: "bytes",
128
- },
129
- {
130
- internalType: "address",
131
- name: "recipient",
132
- type: "address",
133
- },
134
- {
135
- internalType: "uint256",
136
- name: "deadline",
137
- type: "uint256",
138
- },
139
- {
140
- internalType: "uint256",
141
- name: "amountOut",
142
- type: "uint256",
143
- },
144
- {
145
- internalType: "uint256",
146
- name: "amountInMaximum",
147
- type: "uint256",
148
- },
149
- ],
150
- internalType: "struct ISwapRouter.ExactOutputParams",
151
- name: "params",
152
- type: "tuple",
153
- },
154
- ],
155
- name: "exactOutput",
156
- outputs: [
157
- {
158
- internalType: "uint256",
159
- name: "amountIn",
160
- type: "uint256",
161
- },
162
- ],
163
- stateMutability: "payable",
164
- type: "function",
165
- },
166
- {
167
- inputs: [
168
- {
169
- components: [
170
- {
171
- internalType: "address",
172
- name: "tokenIn",
173
- type: "address",
174
- },
175
- {
176
- internalType: "address",
177
- name: "tokenOut",
178
- type: "address",
179
- },
180
- {
181
- internalType: "uint24",
182
- name: "fee",
183
- type: "uint24",
184
- },
185
- {
186
- internalType: "address",
187
- name: "recipient",
188
- type: "address",
189
- },
190
- {
191
- internalType: "uint256",
192
- name: "deadline",
193
- type: "uint256",
194
- },
195
- {
196
- internalType: "uint256",
197
- name: "amountOut",
198
- type: "uint256",
199
- },
200
- {
201
- internalType: "uint256",
202
- name: "amountInMaximum",
203
- type: "uint256",
204
- },
205
- {
206
- internalType: "uint160",
207
- name: "sqrtPriceLimitX96",
208
- type: "uint160",
209
- },
210
- ],
211
- internalType: "struct ISwapRouter.ExactOutputSingleParams",
212
- name: "params",
213
- type: "tuple",
214
- },
215
- ],
216
- name: "exactOutputSingle",
217
- outputs: [
218
- {
219
- internalType: "uint256",
220
- name: "amountIn",
221
- type: "uint256",
222
- },
223
- ],
224
- stateMutability: "payable",
225
- type: "function",
226
- },
227
- {
228
- inputs: [
229
- {
230
- internalType: "int256",
231
- name: "amount0Delta",
232
- type: "int256",
233
- },
234
- {
235
- internalType: "int256",
236
- name: "amount1Delta",
237
- type: "int256",
238
- },
239
- {
240
- internalType: "bytes",
241
- name: "data",
242
- type: "bytes",
243
- },
244
- ],
245
- name: "uniswapV3SwapCallback",
246
- outputs: [],
247
- stateMutability: "nonpayable",
248
- type: "function",
249
- },
250
- ] as const;
251
-
252
- export class ISwapRouter__factory {
253
- static readonly abi = _abi;
254
- static createInterface(): ISwapRouterInterface {
255
- return new utils.Interface(_abi) as ISwapRouterInterface;
256
- }
257
- static connect(
258
- address: string,
259
- signerOrProvider: Signer | Provider
260
- ): ISwapRouter {
261
- return new Contract(address, _abi, signerOrProvider) as ISwapRouter;
262
- }
263
- }
@@ -1,4 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- export { ISwapRouter__factory } from "./ISwapRouter__factory";
@@ -1,4 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- export * as contracts from "./contracts";