@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,287 @@
|
|
|
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
|
+
IIdentity,
|
|
9
|
+
IIdentityInterface,
|
|
10
|
+
} from "../../../../../@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentity";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
anonymous: false,
|
|
15
|
+
inputs: [
|
|
16
|
+
{
|
|
17
|
+
indexed: false,
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "user",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
name: "WhitelistedAdded",
|
|
24
|
+
type: "event",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
inputs: [
|
|
28
|
+
{
|
|
29
|
+
internalType: "address",
|
|
30
|
+
name: "account",
|
|
31
|
+
type: "address",
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
name: "addBlacklisted",
|
|
35
|
+
outputs: [],
|
|
36
|
+
stateMutability: "nonpayable",
|
|
37
|
+
type: "function",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
inputs: [
|
|
41
|
+
{
|
|
42
|
+
internalType: "address",
|
|
43
|
+
name: "account",
|
|
44
|
+
type: "address",
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
name: "addIdentityAdmin",
|
|
48
|
+
outputs: [
|
|
49
|
+
{
|
|
50
|
+
internalType: "bool",
|
|
51
|
+
name: "",
|
|
52
|
+
type: "bool",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
stateMutability: "nonpayable",
|
|
56
|
+
type: "function",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
inputs: [
|
|
60
|
+
{
|
|
61
|
+
internalType: "address",
|
|
62
|
+
name: "account",
|
|
63
|
+
type: "address",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
internalType: "string",
|
|
67
|
+
name: "did",
|
|
68
|
+
type: "string",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
name: "addWhitelistedWithDID",
|
|
72
|
+
outputs: [],
|
|
73
|
+
stateMutability: "nonpayable",
|
|
74
|
+
type: "function",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
inputs: [
|
|
78
|
+
{
|
|
79
|
+
internalType: "address",
|
|
80
|
+
name: "account",
|
|
81
|
+
type: "address",
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
name: "addrToDID",
|
|
85
|
+
outputs: [
|
|
86
|
+
{
|
|
87
|
+
internalType: "string",
|
|
88
|
+
name: "",
|
|
89
|
+
type: "string",
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
stateMutability: "view",
|
|
93
|
+
type: "function",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
inputs: [
|
|
97
|
+
{
|
|
98
|
+
internalType: "bytes32",
|
|
99
|
+
name: "hash",
|
|
100
|
+
type: "bytes32",
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
name: "didHashToAddress",
|
|
104
|
+
outputs: [
|
|
105
|
+
{
|
|
106
|
+
internalType: "address",
|
|
107
|
+
name: "",
|
|
108
|
+
type: "address",
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
stateMutability: "view",
|
|
112
|
+
type: "function",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
inputs: [
|
|
116
|
+
{
|
|
117
|
+
internalType: "address",
|
|
118
|
+
name: "user",
|
|
119
|
+
type: "address",
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
name: "isBlacklisted",
|
|
123
|
+
outputs: [
|
|
124
|
+
{
|
|
125
|
+
internalType: "bool",
|
|
126
|
+
name: "",
|
|
127
|
+
type: "bool",
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
stateMutability: "view",
|
|
131
|
+
type: "function",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
inputs: [
|
|
135
|
+
{
|
|
136
|
+
internalType: "address",
|
|
137
|
+
name: "account",
|
|
138
|
+
type: "address",
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
name: "isDAOContract",
|
|
142
|
+
outputs: [
|
|
143
|
+
{
|
|
144
|
+
internalType: "bool",
|
|
145
|
+
name: "",
|
|
146
|
+
type: "bool",
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
stateMutability: "view",
|
|
150
|
+
type: "function",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
inputs: [
|
|
154
|
+
{
|
|
155
|
+
internalType: "address",
|
|
156
|
+
name: "account",
|
|
157
|
+
type: "address",
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
name: "isIdentityAdmin",
|
|
161
|
+
outputs: [
|
|
162
|
+
{
|
|
163
|
+
internalType: "bool",
|
|
164
|
+
name: "",
|
|
165
|
+
type: "bool",
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
stateMutability: "view",
|
|
169
|
+
type: "function",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
inputs: [
|
|
173
|
+
{
|
|
174
|
+
internalType: "address",
|
|
175
|
+
name: "user",
|
|
176
|
+
type: "address",
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
name: "isWhitelisted",
|
|
180
|
+
outputs: [
|
|
181
|
+
{
|
|
182
|
+
internalType: "bool",
|
|
183
|
+
name: "",
|
|
184
|
+
type: "bool",
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
stateMutability: "view",
|
|
188
|
+
type: "function",
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
inputs: [
|
|
192
|
+
{
|
|
193
|
+
internalType: "address",
|
|
194
|
+
name: "account",
|
|
195
|
+
type: "address",
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
name: "lastAuthenticated",
|
|
199
|
+
outputs: [
|
|
200
|
+
{
|
|
201
|
+
internalType: "uint256",
|
|
202
|
+
name: "",
|
|
203
|
+
type: "uint256",
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
stateMutability: "view",
|
|
207
|
+
type: "function",
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
inputs: [],
|
|
211
|
+
name: "owner",
|
|
212
|
+
outputs: [
|
|
213
|
+
{
|
|
214
|
+
internalType: "address",
|
|
215
|
+
name: "",
|
|
216
|
+
type: "address",
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
stateMutability: "view",
|
|
220
|
+
type: "function",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
inputs: [
|
|
224
|
+
{
|
|
225
|
+
internalType: "address",
|
|
226
|
+
name: "account",
|
|
227
|
+
type: "address",
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
name: "removeBlacklisted",
|
|
231
|
+
outputs: [],
|
|
232
|
+
stateMutability: "nonpayable",
|
|
233
|
+
type: "function",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
inputs: [
|
|
237
|
+
{
|
|
238
|
+
internalType: "address",
|
|
239
|
+
name: "account",
|
|
240
|
+
type: "address",
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
name: "removeContract",
|
|
244
|
+
outputs: [],
|
|
245
|
+
stateMutability: "nonpayable",
|
|
246
|
+
type: "function",
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
inputs: [
|
|
250
|
+
{
|
|
251
|
+
internalType: "address",
|
|
252
|
+
name: "account",
|
|
253
|
+
type: "address",
|
|
254
|
+
},
|
|
255
|
+
],
|
|
256
|
+
name: "removeWhitelisted",
|
|
257
|
+
outputs: [],
|
|
258
|
+
stateMutability: "nonpayable",
|
|
259
|
+
type: "function",
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
inputs: [
|
|
263
|
+
{
|
|
264
|
+
internalType: "address",
|
|
265
|
+
name: "_avatar",
|
|
266
|
+
type: "address",
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
name: "setAvatar",
|
|
270
|
+
outputs: [],
|
|
271
|
+
stateMutability: "nonpayable",
|
|
272
|
+
type: "function",
|
|
273
|
+
},
|
|
274
|
+
] as const;
|
|
275
|
+
|
|
276
|
+
export class IIdentity__factory {
|
|
277
|
+
static readonly abi = _abi;
|
|
278
|
+
static createInterface(): IIdentityInterface {
|
|
279
|
+
return new utils.Interface(_abi) as IIdentityInterface;
|
|
280
|
+
}
|
|
281
|
+
static connect(
|
|
282
|
+
address: string,
|
|
283
|
+
signerOrProvider: Signer | Provider
|
|
284
|
+
): IIdentity {
|
|
285
|
+
return new Contract(address, _abi, signerOrProvider) as IIdentity;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
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
|
+
ILendingPool,
|
|
9
|
+
ILendingPoolInterface,
|
|
10
|
+
} from "../../../../../@gooddollar/goodprotocol/contracts/Interfaces.sol/ILendingPool";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "address",
|
|
17
|
+
name: "asset",
|
|
18
|
+
type: "address",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
internalType: "uint256",
|
|
22
|
+
name: "amount",
|
|
23
|
+
type: "uint256",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
internalType: "address",
|
|
27
|
+
name: "onBehalfOf",
|
|
28
|
+
type: "address",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
internalType: "uint16",
|
|
32
|
+
name: "referralCode",
|
|
33
|
+
type: "uint16",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
name: "deposit",
|
|
37
|
+
outputs: [],
|
|
38
|
+
stateMutability: "nonpayable",
|
|
39
|
+
type: "function",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
inputs: [
|
|
43
|
+
{
|
|
44
|
+
internalType: "address",
|
|
45
|
+
name: "asset",
|
|
46
|
+
type: "address",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
name: "getReserveData",
|
|
50
|
+
outputs: [
|
|
51
|
+
{
|
|
52
|
+
components: [
|
|
53
|
+
{
|
|
54
|
+
components: [
|
|
55
|
+
{
|
|
56
|
+
internalType: "uint256",
|
|
57
|
+
name: "data",
|
|
58
|
+
type: "uint256",
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
internalType: "struct DataTypes.ReserveConfigurationMap",
|
|
62
|
+
name: "configuration",
|
|
63
|
+
type: "tuple",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
internalType: "uint128",
|
|
67
|
+
name: "liquidityIndex",
|
|
68
|
+
type: "uint128",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
internalType: "uint128",
|
|
72
|
+
name: "variableBorrowIndex",
|
|
73
|
+
type: "uint128",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
internalType: "uint128",
|
|
77
|
+
name: "currentLiquidityRate",
|
|
78
|
+
type: "uint128",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
internalType: "uint128",
|
|
82
|
+
name: "currentVariableBorrowRate",
|
|
83
|
+
type: "uint128",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
internalType: "uint128",
|
|
87
|
+
name: "currentStableBorrowRate",
|
|
88
|
+
type: "uint128",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
internalType: "uint40",
|
|
92
|
+
name: "lastUpdateTimestamp",
|
|
93
|
+
type: "uint40",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
internalType: "address",
|
|
97
|
+
name: "aTokenAddress",
|
|
98
|
+
type: "address",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
internalType: "address",
|
|
102
|
+
name: "stableDebtTokenAddress",
|
|
103
|
+
type: "address",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
internalType: "address",
|
|
107
|
+
name: "variableDebtTokenAddress",
|
|
108
|
+
type: "address",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
internalType: "address",
|
|
112
|
+
name: "interestRateStrategyAddress",
|
|
113
|
+
type: "address",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
internalType: "uint8",
|
|
117
|
+
name: "id",
|
|
118
|
+
type: "uint8",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
internalType: "struct DataTypes.ReserveData",
|
|
122
|
+
name: "",
|
|
123
|
+
type: "tuple",
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
stateMutability: "view",
|
|
127
|
+
type: "function",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
inputs: [
|
|
131
|
+
{
|
|
132
|
+
internalType: "address",
|
|
133
|
+
name: "asset",
|
|
134
|
+
type: "address",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
internalType: "uint256",
|
|
138
|
+
name: "amount",
|
|
139
|
+
type: "uint256",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
internalType: "address",
|
|
143
|
+
name: "to",
|
|
144
|
+
type: "address",
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
name: "withdraw",
|
|
148
|
+
outputs: [
|
|
149
|
+
{
|
|
150
|
+
internalType: "uint256",
|
|
151
|
+
name: "",
|
|
152
|
+
type: "uint256",
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
stateMutability: "nonpayable",
|
|
156
|
+
type: "function",
|
|
157
|
+
},
|
|
158
|
+
] as const;
|
|
159
|
+
|
|
160
|
+
export class ILendingPool__factory {
|
|
161
|
+
static readonly abi = _abi;
|
|
162
|
+
static createInterface(): ILendingPoolInterface {
|
|
163
|
+
return new utils.Interface(_abi) as ILendingPoolInterface;
|
|
164
|
+
}
|
|
165
|
+
static connect(
|
|
166
|
+
address: string,
|
|
167
|
+
signerOrProvider: Signer | Provider
|
|
168
|
+
): ILendingPool {
|
|
169
|
+
return new Contract(address, _abi, signerOrProvider) as ILendingPool;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
IMultichainRouter,
|
|
9
|
+
IMultichainRouterInterface,
|
|
10
|
+
} from "../../../../../@gooddollar/goodprotocol/contracts/Interfaces.sol/IMultichainRouter";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "address",
|
|
17
|
+
name: "token",
|
|
18
|
+
type: "address",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
internalType: "address",
|
|
22
|
+
name: "to",
|
|
23
|
+
type: "address",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
internalType: "uint256",
|
|
27
|
+
name: "amount",
|
|
28
|
+
type: "uint256",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
internalType: "uint256",
|
|
32
|
+
name: "toChainID",
|
|
33
|
+
type: "uint256",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
name: "anySwapOut",
|
|
37
|
+
outputs: [],
|
|
38
|
+
stateMutability: "nonpayable",
|
|
39
|
+
type: "function",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
inputs: [
|
|
43
|
+
{
|
|
44
|
+
internalType: "address",
|
|
45
|
+
name: "token",
|
|
46
|
+
type: "address",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
internalType: "address",
|
|
50
|
+
name: "to",
|
|
51
|
+
type: "address",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
internalType: "uint256",
|
|
55
|
+
name: "amount",
|
|
56
|
+
type: "uint256",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
internalType: "uint256",
|
|
60
|
+
name: "toChainID",
|
|
61
|
+
type: "uint256",
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
name: "anySwapOutUnderlying",
|
|
65
|
+
outputs: [],
|
|
66
|
+
stateMutability: "nonpayable",
|
|
67
|
+
type: "function",
|
|
68
|
+
},
|
|
69
|
+
] as const;
|
|
70
|
+
|
|
71
|
+
export class IMultichainRouter__factory {
|
|
72
|
+
static readonly abi = _abi;
|
|
73
|
+
static createInterface(): IMultichainRouterInterface {
|
|
74
|
+
return new utils.Interface(_abi) as IMultichainRouterInterface;
|
|
75
|
+
}
|
|
76
|
+
static connect(
|
|
77
|
+
address: string,
|
|
78
|
+
signerOrProvider: Signer | Provider
|
|
79
|
+
): IMultichainRouter {
|
|
80
|
+
return new Contract(address, _abi, signerOrProvider) as IMultichainRouter;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
INameService,
|
|
9
|
+
INameServiceInterface,
|
|
10
|
+
} from "../../../../../@gooddollar/goodprotocol/contracts/Interfaces.sol/INameService";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "string",
|
|
17
|
+
name: "_name",
|
|
18
|
+
type: "string",
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
name: "getAddress",
|
|
22
|
+
outputs: [
|
|
23
|
+
{
|
|
24
|
+
internalType: "address",
|
|
25
|
+
name: "",
|
|
26
|
+
type: "address",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
stateMutability: "view",
|
|
30
|
+
type: "function",
|
|
31
|
+
},
|
|
32
|
+
] as const;
|
|
33
|
+
|
|
34
|
+
export class INameService__factory {
|
|
35
|
+
static readonly abi = _abi;
|
|
36
|
+
static createInterface(): INameServiceInterface {
|
|
37
|
+
return new utils.Interface(_abi) as INameServiceInterface;
|
|
38
|
+
}
|
|
39
|
+
static connect(
|
|
40
|
+
address: string,
|
|
41
|
+
signerOrProvider: Signer | Provider
|
|
42
|
+
): INameService {
|
|
43
|
+
return new Contract(address, _abi, signerOrProvider) as INameService;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
IUBIScheme,
|
|
9
|
+
IUBISchemeInterface,
|
|
10
|
+
} from "../../../../../@gooddollar/goodprotocol/contracts/Interfaces.sol/IUBIScheme";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [],
|
|
15
|
+
name: "currentDay",
|
|
16
|
+
outputs: [
|
|
17
|
+
{
|
|
18
|
+
internalType: "uint256",
|
|
19
|
+
name: "",
|
|
20
|
+
type: "uint256",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
stateMutability: "view",
|
|
24
|
+
type: "function",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
inputs: [
|
|
28
|
+
{
|
|
29
|
+
internalType: "address",
|
|
30
|
+
name: "claimer",
|
|
31
|
+
type: "address",
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
name: "hasClaimed",
|
|
35
|
+
outputs: [
|
|
36
|
+
{
|
|
37
|
+
internalType: "bool",
|
|
38
|
+
name: "",
|
|
39
|
+
type: "bool",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
stateMutability: "view",
|
|
43
|
+
type: "function",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
inputs: [],
|
|
47
|
+
name: "periodStart",
|
|
48
|
+
outputs: [
|
|
49
|
+
{
|
|
50
|
+
internalType: "uint256",
|
|
51
|
+
name: "",
|
|
52
|
+
type: "uint256",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
stateMutability: "view",
|
|
56
|
+
type: "function",
|
|
57
|
+
},
|
|
58
|
+
] as const;
|
|
59
|
+
|
|
60
|
+
export class IUBIScheme__factory {
|
|
61
|
+
static readonly abi = _abi;
|
|
62
|
+
static createInterface(): IUBISchemeInterface {
|
|
63
|
+
return new utils.Interface(_abi) as IUBISchemeInterface;
|
|
64
|
+
}
|
|
65
|
+
static connect(
|
|
66
|
+
address: string,
|
|
67
|
+
signerOrProvider: Signer | Provider
|
|
68
|
+
): IUBIScheme {
|
|
69
|
+
return new Contract(address, _abi, signerOrProvider) as IUBIScheme;
|
|
70
|
+
}
|
|
71
|
+
}
|