@gooddollar/goodcollective-contracts 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/DirectPayments/DirectPaymentsPool.sol +12 -2
- package/contracts/GoodCollective/GoodCollectiveSuperApp.sol +264 -0
- package/contracts/GoodCollective/SuperAppBaseFlow.sol +204 -0
- package/contracts/utils/SwapRouterMock.sol +32 -0
- package/package.json +7 -2
- package/releases/deployment.json +7984 -2746
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/AggregatorV3Interface.ts +199 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/CERC20.ts +630 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/ERC20.ts +450 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IAaveIncentivesController.ts +161 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IAdminWallet.ts +189 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IDonationStaking.ts +98 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IERC2917.ts +750 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IFirstClaimPool.ts +144 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IGoodDollar.ts +1033 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IGoodStaking.ts +281 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IHasRouter.ts +81 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentity.ts +598 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentityV2.ts +689 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/ILendingPool.ts +257 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IMultichainRouter.ts +179 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/INameService.ts +100 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IUBIScheme.ts +137 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/ProxyAdmin.ts +278 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/Reserve.ts +117 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/Staking.ts +175 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/Uniswap.ts +464 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapFactory.ts +105 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapPair.ts +209 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/index.ts +26 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/index.ts +7 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula.ts +115 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/index.ts +4 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/token/index.ts +7 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/IGoodDollarCustom.ts +726 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/ISuperGoodDollar.ts +3662 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/index.ts +5 -0
- package/typechain-types/@gooddollar/goodprotocol/contracts/token/superfluid/index.ts +5 -0
- package/typechain-types/@gooddollar/goodprotocol/index.ts +5 -0
- package/typechain-types/@gooddollar/index.ts +5 -0
- package/typechain-types/@openzeppelin/contracts/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts +342 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC20/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721.ts +559 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.ts +619 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC721/index.ts +6 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC777/IERC777.ts +650 -0
- package/typechain-types/@openzeppelin/contracts/token/ERC777/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts/token/index.ts +9 -0
- package/typechain-types/@openzeppelin/contracts/utils/index.ts +5 -0
- package/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.ts +103 -0
- package/typechain-types/@openzeppelin/contracts/utils/introspection/index.ts +4 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/index.ts +5 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IConstantFlowAgreementV1.ts +1390 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IInstantDistributionAgreementV1.ts +1280 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/index.ts +5 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/index.ts +9 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IConstantInflowNFT.ts +876 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IConstantOutflowNFT.ts +945 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IFlowNFTBase.ts +807 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperAgreement.ts +157 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperApp.ts +457 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperToken.ts +2806 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperTokenFactory.ts +465 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluid.ts +1727 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidGovernance.ts +506 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidToken.ts +1010 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/index.ts +13 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/ERC20WithTokenInfo.ts +384 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/TokenInfo.ts +109 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/index.ts +5 -0
- package/typechain-types/@superfluid-finance/ethereum-contracts/index.ts +5 -0
- package/typechain-types/@superfluid-finance/index.ts +5 -0
- package/typechain-types/@uniswap/index.ts +7 -0
- package/typechain-types/@uniswap/v3-core/contracts/index.ts +5 -0
- package/typechain-types/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.ts +122 -0
- package/typechain-types/@uniswap/v3-core/contracts/interfaces/callback/index.ts +4 -0
- package/typechain-types/@uniswap/v3-core/contracts/interfaces/index.ts +5 -0
- package/typechain-types/@uniswap/v3-core/index.ts +5 -0
- package/typechain-types/@uniswap/v3-periphery/contracts/index.ts +5 -0
- package/typechain-types/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.ts +369 -0
- package/typechain-types/@uniswap/v3-periphery/contracts/interfaces/index.ts +4 -0
- package/typechain-types/@uniswap/v3-periphery/index.ts +5 -0
- package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +763 -0
- package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.ts +843 -0
- package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.ts +523 -0
- package/typechain-types/contracts/GoodCollective/index.ts +5 -0
- package/typechain-types/contracts/index.ts +4 -1
- package/typechain-types/contracts/utils/SwapRouterMock.ts +194 -0
- package/typechain-types/contracts/utils/index.ts +4 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/AggregatorV3Interface__factory.ts +121 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/CERC20__factory.ts +384 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/ERC20__factory.ts +288 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IAaveIncentivesController__factory.ts +83 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IAdminWallet__factory.ts +78 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IDonationStaking__factory.ts +33 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IERC2917__factory.ts +496 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IFirstClaimPool__factory.ts +65 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IGoodDollar__factory.ts +598 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IGoodStaking__factory.ts +178 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IHasRouter__factory.ts +39 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentityV2__factory.ts +334 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentity__factory.ts +287 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/ILendingPool__factory.ts +171 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IMultichainRouter__factory.ts +82 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/INameService__factory.ts +45 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IUBIScheme__factory.ts +71 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/ProxyAdmin__factory.ts +131 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/Reserve__factory.ts +55 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/Staking__factory.ts +77 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapFactory__factory.ts +50 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapPair__factory.ts +120 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/Uniswap__factory.ts +275 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/index.ts +26 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/index.ts +5 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula__factory.ts +60 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/index.ts +4 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/index.ts +5 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/IGoodDollarCustom__factory.ts +370 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/ISuperGoodDollar__factory.ts +2301 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/index.ts +5 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/index.ts +4 -0
- package/typechain-types/factories/@gooddollar/goodprotocol/index.ts +4 -0
- package/typechain-types/factories/@gooddollar/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts/index.ts +2 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +206 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/IERC721__factory.ts +311 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.ts +356 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC777/IERC777__factory.ts +417 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/ERC777/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts/token/index.ts +6 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts +45 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.ts +4 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/index.ts +4 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IConstantFlowAgreementV1__factory.ts +986 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IInstantDistributionAgreementV1__factory.ts +1015 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/index.ts +5 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/index.ts +6 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IConstantInflowNFT__factory.ts +551 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IConstantOutflowNFT__factory.ts +614 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IFlowNFTBase__factory.ts +515 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperAgreement__factory.ts +78 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperApp__factory.ts +275 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperTokenFactory__factory.ts +276 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperToken__factory.ts +1839 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidGovernance__factory.ts +264 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidToken__factory.ts +697 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluid__factory.ts +1151 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/index.ts +13 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/ERC20WithTokenInfo__factory.ts +248 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/TokenInfo__factory.ts +65 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/index.ts +5 -0
- package/typechain-types/factories/@superfluid-finance/ethereum-contracts/index.ts +4 -0
- package/typechain-types/factories/@superfluid-finance/index.ts +4 -0
- package/typechain-types/factories/@uniswap/index.ts +5 -0
- package/typechain-types/factories/@uniswap/v3-core/contracts/index.ts +4 -0
- package/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback__factory.ts +53 -0
- package/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/index.ts +4 -0
- package/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/index.ts +4 -0
- package/typechain-types/factories/@uniswap/v3-core/index.ts +4 -0
- package/typechain-types/factories/@uniswap/v3-periphery/contracts/index.ts +4 -0
- package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter__factory.ts +263 -0
- package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/index.ts +4 -0
- package/typechain-types/factories/@uniswap/v3-periphery/index.ts +4 -0
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +1 -1
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +581 -3
- package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts +584 -0
- package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow__factory.ts +335 -0
- package/typechain-types/factories/contracts/GoodCollective/index.ts +5 -0
- package/typechain-types/factories/contracts/index.ts +2 -1
- package/typechain-types/factories/contracts/utils/SwapRouterMock__factory.ts +183 -0
- package/typechain-types/factories/contracts/utils/index.ts +4 -0
- package/typechain-types/factories/index.ts +3 -0
- package/typechain-types/hardhat.d.ts +445 -4
- package/typechain-types/index.ts +106 -4
|
@@ -0,0 +1,369 @@
|
|
|
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
|
+
PayableOverrides,
|
|
13
|
+
PopulatedTransaction,
|
|
14
|
+
Signer,
|
|
15
|
+
utils,
|
|
16
|
+
} from "ethers";
|
|
17
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
18
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
19
|
+
import type {
|
|
20
|
+
TypedEventFilter,
|
|
21
|
+
TypedEvent,
|
|
22
|
+
TypedListener,
|
|
23
|
+
OnEvent,
|
|
24
|
+
PromiseOrValue,
|
|
25
|
+
} from "../../../../common";
|
|
26
|
+
|
|
27
|
+
export declare namespace ISwapRouter {
|
|
28
|
+
export type ExactInputParamsStruct = {
|
|
29
|
+
path: PromiseOrValue<BytesLike>;
|
|
30
|
+
recipient: PromiseOrValue<string>;
|
|
31
|
+
deadline: PromiseOrValue<BigNumberish>;
|
|
32
|
+
amountIn: PromiseOrValue<BigNumberish>;
|
|
33
|
+
amountOutMinimum: PromiseOrValue<BigNumberish>;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type ExactInputParamsStructOutput = [
|
|
37
|
+
string,
|
|
38
|
+
string,
|
|
39
|
+
BigNumber,
|
|
40
|
+
BigNumber,
|
|
41
|
+
BigNumber
|
|
42
|
+
] & {
|
|
43
|
+
path: string;
|
|
44
|
+
recipient: string;
|
|
45
|
+
deadline: BigNumber;
|
|
46
|
+
amountIn: BigNumber;
|
|
47
|
+
amountOutMinimum: BigNumber;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export type ExactInputSingleParamsStruct = {
|
|
51
|
+
tokenIn: PromiseOrValue<string>;
|
|
52
|
+
tokenOut: PromiseOrValue<string>;
|
|
53
|
+
fee: PromiseOrValue<BigNumberish>;
|
|
54
|
+
recipient: PromiseOrValue<string>;
|
|
55
|
+
deadline: PromiseOrValue<BigNumberish>;
|
|
56
|
+
amountIn: PromiseOrValue<BigNumberish>;
|
|
57
|
+
amountOutMinimum: PromiseOrValue<BigNumberish>;
|
|
58
|
+
sqrtPriceLimitX96: PromiseOrValue<BigNumberish>;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export type ExactInputSingleParamsStructOutput = [
|
|
62
|
+
string,
|
|
63
|
+
string,
|
|
64
|
+
number,
|
|
65
|
+
string,
|
|
66
|
+
BigNumber,
|
|
67
|
+
BigNumber,
|
|
68
|
+
BigNumber,
|
|
69
|
+
BigNumber
|
|
70
|
+
] & {
|
|
71
|
+
tokenIn: string;
|
|
72
|
+
tokenOut: string;
|
|
73
|
+
fee: number;
|
|
74
|
+
recipient: string;
|
|
75
|
+
deadline: BigNumber;
|
|
76
|
+
amountIn: BigNumber;
|
|
77
|
+
amountOutMinimum: BigNumber;
|
|
78
|
+
sqrtPriceLimitX96: BigNumber;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export type ExactOutputParamsStruct = {
|
|
82
|
+
path: PromiseOrValue<BytesLike>;
|
|
83
|
+
recipient: PromiseOrValue<string>;
|
|
84
|
+
deadline: PromiseOrValue<BigNumberish>;
|
|
85
|
+
amountOut: PromiseOrValue<BigNumberish>;
|
|
86
|
+
amountInMaximum: PromiseOrValue<BigNumberish>;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export type ExactOutputParamsStructOutput = [
|
|
90
|
+
string,
|
|
91
|
+
string,
|
|
92
|
+
BigNumber,
|
|
93
|
+
BigNumber,
|
|
94
|
+
BigNumber
|
|
95
|
+
] & {
|
|
96
|
+
path: string;
|
|
97
|
+
recipient: string;
|
|
98
|
+
deadline: BigNumber;
|
|
99
|
+
amountOut: BigNumber;
|
|
100
|
+
amountInMaximum: BigNumber;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export type ExactOutputSingleParamsStruct = {
|
|
104
|
+
tokenIn: PromiseOrValue<string>;
|
|
105
|
+
tokenOut: PromiseOrValue<string>;
|
|
106
|
+
fee: PromiseOrValue<BigNumberish>;
|
|
107
|
+
recipient: PromiseOrValue<string>;
|
|
108
|
+
deadline: PromiseOrValue<BigNumberish>;
|
|
109
|
+
amountOut: PromiseOrValue<BigNumberish>;
|
|
110
|
+
amountInMaximum: PromiseOrValue<BigNumberish>;
|
|
111
|
+
sqrtPriceLimitX96: PromiseOrValue<BigNumberish>;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export type ExactOutputSingleParamsStructOutput = [
|
|
115
|
+
string,
|
|
116
|
+
string,
|
|
117
|
+
number,
|
|
118
|
+
string,
|
|
119
|
+
BigNumber,
|
|
120
|
+
BigNumber,
|
|
121
|
+
BigNumber,
|
|
122
|
+
BigNumber
|
|
123
|
+
] & {
|
|
124
|
+
tokenIn: string;
|
|
125
|
+
tokenOut: string;
|
|
126
|
+
fee: number;
|
|
127
|
+
recipient: string;
|
|
128
|
+
deadline: BigNumber;
|
|
129
|
+
amountOut: BigNumber;
|
|
130
|
+
amountInMaximum: BigNumber;
|
|
131
|
+
sqrtPriceLimitX96: BigNumber;
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface ISwapRouterInterface extends utils.Interface {
|
|
136
|
+
functions: {
|
|
137
|
+
"exactInput((bytes,address,uint256,uint256,uint256))": FunctionFragment;
|
|
138
|
+
"exactInputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160))": FunctionFragment;
|
|
139
|
+
"exactOutput((bytes,address,uint256,uint256,uint256))": FunctionFragment;
|
|
140
|
+
"exactOutputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160))": FunctionFragment;
|
|
141
|
+
"uniswapV3SwapCallback(int256,int256,bytes)": FunctionFragment;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
getFunction(
|
|
145
|
+
nameOrSignatureOrTopic:
|
|
146
|
+
| "exactInput"
|
|
147
|
+
| "exactInputSingle"
|
|
148
|
+
| "exactOutput"
|
|
149
|
+
| "exactOutputSingle"
|
|
150
|
+
| "uniswapV3SwapCallback"
|
|
151
|
+
): FunctionFragment;
|
|
152
|
+
|
|
153
|
+
encodeFunctionData(
|
|
154
|
+
functionFragment: "exactInput",
|
|
155
|
+
values: [ISwapRouter.ExactInputParamsStruct]
|
|
156
|
+
): string;
|
|
157
|
+
encodeFunctionData(
|
|
158
|
+
functionFragment: "exactInputSingle",
|
|
159
|
+
values: [ISwapRouter.ExactInputSingleParamsStruct]
|
|
160
|
+
): string;
|
|
161
|
+
encodeFunctionData(
|
|
162
|
+
functionFragment: "exactOutput",
|
|
163
|
+
values: [ISwapRouter.ExactOutputParamsStruct]
|
|
164
|
+
): string;
|
|
165
|
+
encodeFunctionData(
|
|
166
|
+
functionFragment: "exactOutputSingle",
|
|
167
|
+
values: [ISwapRouter.ExactOutputSingleParamsStruct]
|
|
168
|
+
): string;
|
|
169
|
+
encodeFunctionData(
|
|
170
|
+
functionFragment: "uniswapV3SwapCallback",
|
|
171
|
+
values: [
|
|
172
|
+
PromiseOrValue<BigNumberish>,
|
|
173
|
+
PromiseOrValue<BigNumberish>,
|
|
174
|
+
PromiseOrValue<BytesLike>
|
|
175
|
+
]
|
|
176
|
+
): string;
|
|
177
|
+
|
|
178
|
+
decodeFunctionResult(functionFragment: "exactInput", data: BytesLike): Result;
|
|
179
|
+
decodeFunctionResult(
|
|
180
|
+
functionFragment: "exactInputSingle",
|
|
181
|
+
data: BytesLike
|
|
182
|
+
): Result;
|
|
183
|
+
decodeFunctionResult(
|
|
184
|
+
functionFragment: "exactOutput",
|
|
185
|
+
data: BytesLike
|
|
186
|
+
): Result;
|
|
187
|
+
decodeFunctionResult(
|
|
188
|
+
functionFragment: "exactOutputSingle",
|
|
189
|
+
data: BytesLike
|
|
190
|
+
): Result;
|
|
191
|
+
decodeFunctionResult(
|
|
192
|
+
functionFragment: "uniswapV3SwapCallback",
|
|
193
|
+
data: BytesLike
|
|
194
|
+
): Result;
|
|
195
|
+
|
|
196
|
+
events: {};
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export interface ISwapRouter extends BaseContract {
|
|
200
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
201
|
+
attach(addressOrName: string): this;
|
|
202
|
+
deployed(): Promise<this>;
|
|
203
|
+
|
|
204
|
+
interface: ISwapRouterInterface;
|
|
205
|
+
|
|
206
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
207
|
+
event: TypedEventFilter<TEvent>,
|
|
208
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
209
|
+
toBlock?: string | number | undefined
|
|
210
|
+
): Promise<Array<TEvent>>;
|
|
211
|
+
|
|
212
|
+
listeners<TEvent extends TypedEvent>(
|
|
213
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
214
|
+
): Array<TypedListener<TEvent>>;
|
|
215
|
+
listeners(eventName?: string): Array<Listener>;
|
|
216
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
217
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
218
|
+
): this;
|
|
219
|
+
removeAllListeners(eventName?: string): this;
|
|
220
|
+
off: OnEvent<this>;
|
|
221
|
+
on: OnEvent<this>;
|
|
222
|
+
once: OnEvent<this>;
|
|
223
|
+
removeListener: OnEvent<this>;
|
|
224
|
+
|
|
225
|
+
functions: {
|
|
226
|
+
exactInput(
|
|
227
|
+
params: ISwapRouter.ExactInputParamsStruct,
|
|
228
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
229
|
+
): Promise<ContractTransaction>;
|
|
230
|
+
|
|
231
|
+
exactInputSingle(
|
|
232
|
+
params: ISwapRouter.ExactInputSingleParamsStruct,
|
|
233
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
234
|
+
): Promise<ContractTransaction>;
|
|
235
|
+
|
|
236
|
+
exactOutput(
|
|
237
|
+
params: ISwapRouter.ExactOutputParamsStruct,
|
|
238
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
239
|
+
): Promise<ContractTransaction>;
|
|
240
|
+
|
|
241
|
+
exactOutputSingle(
|
|
242
|
+
params: ISwapRouter.ExactOutputSingleParamsStruct,
|
|
243
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
244
|
+
): Promise<ContractTransaction>;
|
|
245
|
+
|
|
246
|
+
uniswapV3SwapCallback(
|
|
247
|
+
amount0Delta: PromiseOrValue<BigNumberish>,
|
|
248
|
+
amount1Delta: PromiseOrValue<BigNumberish>,
|
|
249
|
+
data: PromiseOrValue<BytesLike>,
|
|
250
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
251
|
+
): Promise<ContractTransaction>;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
exactInput(
|
|
255
|
+
params: ISwapRouter.ExactInputParamsStruct,
|
|
256
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
257
|
+
): Promise<ContractTransaction>;
|
|
258
|
+
|
|
259
|
+
exactInputSingle(
|
|
260
|
+
params: ISwapRouter.ExactInputSingleParamsStruct,
|
|
261
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
262
|
+
): Promise<ContractTransaction>;
|
|
263
|
+
|
|
264
|
+
exactOutput(
|
|
265
|
+
params: ISwapRouter.ExactOutputParamsStruct,
|
|
266
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
267
|
+
): Promise<ContractTransaction>;
|
|
268
|
+
|
|
269
|
+
exactOutputSingle(
|
|
270
|
+
params: ISwapRouter.ExactOutputSingleParamsStruct,
|
|
271
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
272
|
+
): Promise<ContractTransaction>;
|
|
273
|
+
|
|
274
|
+
uniswapV3SwapCallback(
|
|
275
|
+
amount0Delta: PromiseOrValue<BigNumberish>,
|
|
276
|
+
amount1Delta: PromiseOrValue<BigNumberish>,
|
|
277
|
+
data: PromiseOrValue<BytesLike>,
|
|
278
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
279
|
+
): Promise<ContractTransaction>;
|
|
280
|
+
|
|
281
|
+
callStatic: {
|
|
282
|
+
exactInput(
|
|
283
|
+
params: ISwapRouter.ExactInputParamsStruct,
|
|
284
|
+
overrides?: CallOverrides
|
|
285
|
+
): Promise<BigNumber>;
|
|
286
|
+
|
|
287
|
+
exactInputSingle(
|
|
288
|
+
params: ISwapRouter.ExactInputSingleParamsStruct,
|
|
289
|
+
overrides?: CallOverrides
|
|
290
|
+
): Promise<BigNumber>;
|
|
291
|
+
|
|
292
|
+
exactOutput(
|
|
293
|
+
params: ISwapRouter.ExactOutputParamsStruct,
|
|
294
|
+
overrides?: CallOverrides
|
|
295
|
+
): Promise<BigNumber>;
|
|
296
|
+
|
|
297
|
+
exactOutputSingle(
|
|
298
|
+
params: ISwapRouter.ExactOutputSingleParamsStruct,
|
|
299
|
+
overrides?: CallOverrides
|
|
300
|
+
): Promise<BigNumber>;
|
|
301
|
+
|
|
302
|
+
uniswapV3SwapCallback(
|
|
303
|
+
amount0Delta: PromiseOrValue<BigNumberish>,
|
|
304
|
+
amount1Delta: PromiseOrValue<BigNumberish>,
|
|
305
|
+
data: PromiseOrValue<BytesLike>,
|
|
306
|
+
overrides?: CallOverrides
|
|
307
|
+
): Promise<void>;
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
filters: {};
|
|
311
|
+
|
|
312
|
+
estimateGas: {
|
|
313
|
+
exactInput(
|
|
314
|
+
params: ISwapRouter.ExactInputParamsStruct,
|
|
315
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
316
|
+
): Promise<BigNumber>;
|
|
317
|
+
|
|
318
|
+
exactInputSingle(
|
|
319
|
+
params: ISwapRouter.ExactInputSingleParamsStruct,
|
|
320
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
321
|
+
): Promise<BigNumber>;
|
|
322
|
+
|
|
323
|
+
exactOutput(
|
|
324
|
+
params: ISwapRouter.ExactOutputParamsStruct,
|
|
325
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
326
|
+
): Promise<BigNumber>;
|
|
327
|
+
|
|
328
|
+
exactOutputSingle(
|
|
329
|
+
params: ISwapRouter.ExactOutputSingleParamsStruct,
|
|
330
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
331
|
+
): Promise<BigNumber>;
|
|
332
|
+
|
|
333
|
+
uniswapV3SwapCallback(
|
|
334
|
+
amount0Delta: PromiseOrValue<BigNumberish>,
|
|
335
|
+
amount1Delta: PromiseOrValue<BigNumberish>,
|
|
336
|
+
data: PromiseOrValue<BytesLike>,
|
|
337
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
338
|
+
): Promise<BigNumber>;
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
populateTransaction: {
|
|
342
|
+
exactInput(
|
|
343
|
+
params: ISwapRouter.ExactInputParamsStruct,
|
|
344
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
345
|
+
): Promise<PopulatedTransaction>;
|
|
346
|
+
|
|
347
|
+
exactInputSingle(
|
|
348
|
+
params: ISwapRouter.ExactInputSingleParamsStruct,
|
|
349
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
350
|
+
): Promise<PopulatedTransaction>;
|
|
351
|
+
|
|
352
|
+
exactOutput(
|
|
353
|
+
params: ISwapRouter.ExactOutputParamsStruct,
|
|
354
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
355
|
+
): Promise<PopulatedTransaction>;
|
|
356
|
+
|
|
357
|
+
exactOutputSingle(
|
|
358
|
+
params: ISwapRouter.ExactOutputSingleParamsStruct,
|
|
359
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
360
|
+
): Promise<PopulatedTransaction>;
|
|
361
|
+
|
|
362
|
+
uniswapV3SwapCallback(
|
|
363
|
+
amount0Delta: PromiseOrValue<BigNumberish>,
|
|
364
|
+
amount1Delta: PromiseOrValue<BigNumberish>,
|
|
365
|
+
data: PromiseOrValue<BytesLike>,
|
|
366
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
367
|
+
): Promise<PopulatedTransaction>;
|
|
368
|
+
};
|
|
369
|
+
}
|