@gooddollar/goodcollective-contracts 1.1.0 → 1.2.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.
- package/README.md +14 -1
- package/contracts/DirectPayments/DirectPaymentsFactory.sol +13 -10
- package/contracts/DirectPayments/DirectPaymentsPool.sol +13 -4
- package/contracts/GoodCollective/GoodCollectiveSuperApp.sol +31 -55
- package/contracts/GoodCollective/IGoodCollectiveSuperApp.sol +6 -0
- package/contracts/UBI/UBIPool.sol +48 -36
- package/contracts/UBI/UBIPoolFactory.sol +10 -1
- package/contracts/test/HelperLibraryTest.sol +16 -0
- package/contracts/utils/HelperLibrary.sol +73 -5
- package/package.json +4 -3
- package/releases/deployment.json +21841 -565
- package/typechain-types/@uniswap/index.ts +0 -2
- package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory.ts +1327 -0
- package/typechain-types/contracts/{GoodCollective/GoodCollectiveSuperApp.sol → DirectPayments/DirectPaymentsFactory.sol}/index.ts +1 -1
- package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.ts +40 -5
- package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +49 -0
- package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.ts +49 -0
- package/typechain-types/contracts/{UBI/MultiClaimModule.sol/IClaimable.ts → GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry.ts} +33 -23
- package/typechain-types/{factories/@uniswap/v3-periphery/contracts → contracts/GoodCollective/IGoodCollectiveSuperApp.sol}/index.ts +1 -1
- package/typechain-types/contracts/GoodCollective/index.ts +3 -2
- package/typechain-types/contracts/UBI/UBIPool.sol/UBIPool.ts +104 -49
- package/typechain-types/contracts/UBI/UBIPoolFactory.ts +43 -5
- package/typechain-types/contracts/UBI/index.ts +0 -2
- package/typechain-types/contracts/index.ts +2 -0
- package/typechain-types/contracts/test/HelperLibraryTest.ts +147 -0
- package/typechain-types/{@uniswap/v3-periphery/contracts/interfaces → contracts/test}/index.ts +1 -1
- package/typechain-types/factories/@uniswap/index.ts +0 -1
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory__factory.ts +1004 -0
- package/typechain-types/factories/contracts/{GoodCollective/GoodCollectiveSuperApp.sol → DirectPayments/DirectPaymentsFactory.sol}/IRegistry__factory.ts +1 -1
- package/typechain-types/factories/contracts/{GoodCollective/GoodCollectiveSuperApp.sol → DirectPayments/DirectPaymentsFactory.sol}/index.ts +1 -1
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +15 -2
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +57 -1
- package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts +57 -1
- package/typechain-types/factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry__factory.ts +52 -0
- package/typechain-types/{@gooddollar/goodprotocol/contracts/token/FeesFormula.sol → factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol}/index.ts +1 -1
- package/typechain-types/factories/contracts/GoodCollective/index.ts +2 -1
- package/typechain-types/factories/contracts/UBI/UBIPool.sol/UBIPool__factory.ts +109 -28
- package/typechain-types/factories/contracts/UBI/UBIPoolFactory__factory.ts +32 -4
- package/typechain-types/factories/contracts/UBI/index.ts +0 -1
- package/typechain-types/factories/contracts/index.ts +1 -0
- package/typechain-types/factories/contracts/test/HelperLibraryTest__factory.ts +154 -0
- package/typechain-types/{@uniswap/v3-periphery → factories/contracts/test}/index.ts +1 -2
- package/typechain-types/factories/contracts/utils/HelperLibrary__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +4 -31
- package/typechain-types/index.ts +6 -12
- package/contracts/UBI/MultiClaimModule.sol +0 -78
- package/typechain-types/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula.ts +0 -115
- package/typechain-types/@uniswap/v3-periphery/contracts/index.ts +0 -5
- package/typechain-types/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.ts +0 -369
- package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp.ts +0 -1000
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/IModule.ts +0 -196
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/MultiClaimModule.ts +0 -242
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/index.ts +0 -6
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula__factory.ts +0 -60
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/index.ts +0 -4
- package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter__factory.ts +0 -263
- package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/index.ts +0 -4
- package/typechain-types/factories/@uniswap/v3-periphery/index.ts +0 -4
- package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp__factory.ts +0 -728
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IClaimable__factory.ts +0 -33
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IModule__factory.ts +0 -84
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/MultiClaimModule__factory.ts +0 -150
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/index.ts +0 -6
- /package/typechain-types/contracts/{GoodCollective/GoodCollectiveSuperApp.sol → DirectPayments/DirectPaymentsFactory.sol}/IRegistry.ts +0 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
12
|
+
PopulatedTransaction,
|
|
13
|
+
Signer,
|
|
14
|
+
utils,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
17
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
18
|
+
import type {
|
|
19
|
+
TypedEventFilter,
|
|
20
|
+
TypedEvent,
|
|
21
|
+
TypedListener,
|
|
22
|
+
OnEvent,
|
|
23
|
+
PromiseOrValue,
|
|
24
|
+
} from "../../common";
|
|
25
|
+
|
|
26
|
+
export declare namespace HelperLibrary {
|
|
27
|
+
export type SwapDataStruct = {
|
|
28
|
+
swapFrom: PromiseOrValue<string>;
|
|
29
|
+
amount: PromiseOrValue<BigNumberish>;
|
|
30
|
+
minReturn: PromiseOrValue<BigNumberish>;
|
|
31
|
+
deadline: PromiseOrValue<BigNumberish>;
|
|
32
|
+
path: PromiseOrValue<BytesLike>;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type SwapDataStructOutput = [
|
|
36
|
+
string,
|
|
37
|
+
BigNumber,
|
|
38
|
+
BigNumber,
|
|
39
|
+
BigNumber,
|
|
40
|
+
string
|
|
41
|
+
] & {
|
|
42
|
+
swapFrom: string;
|
|
43
|
+
amount: BigNumber;
|
|
44
|
+
minReturn: BigNumber;
|
|
45
|
+
deadline: BigNumber;
|
|
46
|
+
path: string;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface HelperLibraryTestInterface extends utils.Interface {
|
|
51
|
+
functions: {
|
|
52
|
+
"handleSwap(address,(address,uint256,uint256,uint256,bytes),address,address)": FunctionFragment;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
getFunction(nameOrSignatureOrTopic: "handleSwap"): FunctionFragment;
|
|
56
|
+
|
|
57
|
+
encodeFunctionData(
|
|
58
|
+
functionFragment: "handleSwap",
|
|
59
|
+
values: [
|
|
60
|
+
PromiseOrValue<string>,
|
|
61
|
+
HelperLibrary.SwapDataStruct,
|
|
62
|
+
PromiseOrValue<string>,
|
|
63
|
+
PromiseOrValue<string>
|
|
64
|
+
]
|
|
65
|
+
): string;
|
|
66
|
+
|
|
67
|
+
decodeFunctionResult(functionFragment: "handleSwap", data: BytesLike): Result;
|
|
68
|
+
|
|
69
|
+
events: {};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface HelperLibraryTest extends BaseContract {
|
|
73
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
74
|
+
attach(addressOrName: string): this;
|
|
75
|
+
deployed(): Promise<this>;
|
|
76
|
+
|
|
77
|
+
interface: HelperLibraryTestInterface;
|
|
78
|
+
|
|
79
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
80
|
+
event: TypedEventFilter<TEvent>,
|
|
81
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
82
|
+
toBlock?: string | number | undefined
|
|
83
|
+
): Promise<Array<TEvent>>;
|
|
84
|
+
|
|
85
|
+
listeners<TEvent extends TypedEvent>(
|
|
86
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
87
|
+
): Array<TypedListener<TEvent>>;
|
|
88
|
+
listeners(eventName?: string): Array<Listener>;
|
|
89
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
90
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
91
|
+
): this;
|
|
92
|
+
removeAllListeners(eventName?: string): this;
|
|
93
|
+
off: OnEvent<this>;
|
|
94
|
+
on: OnEvent<this>;
|
|
95
|
+
once: OnEvent<this>;
|
|
96
|
+
removeListener: OnEvent<this>;
|
|
97
|
+
|
|
98
|
+
functions: {
|
|
99
|
+
handleSwap(
|
|
100
|
+
swapRouter: PromiseOrValue<string>,
|
|
101
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
102
|
+
outTokenIfNoPath: PromiseOrValue<string>,
|
|
103
|
+
_sender: PromiseOrValue<string>,
|
|
104
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
105
|
+
): Promise<ContractTransaction>;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
handleSwap(
|
|
109
|
+
swapRouter: PromiseOrValue<string>,
|
|
110
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
111
|
+
outTokenIfNoPath: PromiseOrValue<string>,
|
|
112
|
+
_sender: PromiseOrValue<string>,
|
|
113
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
114
|
+
): Promise<ContractTransaction>;
|
|
115
|
+
|
|
116
|
+
callStatic: {
|
|
117
|
+
handleSwap(
|
|
118
|
+
swapRouter: PromiseOrValue<string>,
|
|
119
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
120
|
+
outTokenIfNoPath: PromiseOrValue<string>,
|
|
121
|
+
_sender: PromiseOrValue<string>,
|
|
122
|
+
overrides?: CallOverrides
|
|
123
|
+
): Promise<BigNumber>;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
filters: {};
|
|
127
|
+
|
|
128
|
+
estimateGas: {
|
|
129
|
+
handleSwap(
|
|
130
|
+
swapRouter: PromiseOrValue<string>,
|
|
131
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
132
|
+
outTokenIfNoPath: PromiseOrValue<string>,
|
|
133
|
+
_sender: PromiseOrValue<string>,
|
|
134
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
135
|
+
): Promise<BigNumber>;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
populateTransaction: {
|
|
139
|
+
handleSwap(
|
|
140
|
+
swapRouter: PromiseOrValue<string>,
|
|
141
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
142
|
+
outTokenIfNoPath: PromiseOrValue<string>,
|
|
143
|
+
_sender: PromiseOrValue<string>,
|
|
144
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
145
|
+
): Promise<PopulatedTransaction>;
|
|
146
|
+
};
|
|
147
|
+
}
|