@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.
Files changed (180) hide show
  1. package/contracts/DirectPayments/DirectPaymentsPool.sol +12 -2
  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 +7 -2
  6. package/releases/deployment.json +7984 -2746
  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/DirectPaymentsPool.sol/DirectPaymentsPool.ts +763 -0
  86. package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.ts +843 -0
  87. package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.ts +523 -0
  88. package/typechain-types/contracts/GoodCollective/index.ts +5 -0
  89. package/typechain-types/contracts/index.ts +4 -1
  90. package/typechain-types/contracts/utils/SwapRouterMock.ts +194 -0
  91. package/typechain-types/contracts/utils/index.ts +4 -0
  92. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/AggregatorV3Interface__factory.ts +121 -0
  93. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/CERC20__factory.ts +384 -0
  94. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/ERC20__factory.ts +288 -0
  95. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IAaveIncentivesController__factory.ts +83 -0
  96. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IAdminWallet__factory.ts +78 -0
  97. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IDonationStaking__factory.ts +33 -0
  98. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IERC2917__factory.ts +496 -0
  99. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IFirstClaimPool__factory.ts +65 -0
  100. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IGoodDollar__factory.ts +598 -0
  101. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IGoodStaking__factory.ts +178 -0
  102. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IHasRouter__factory.ts +39 -0
  103. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentityV2__factory.ts +334 -0
  104. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentity__factory.ts +287 -0
  105. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/ILendingPool__factory.ts +171 -0
  106. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IMultichainRouter__factory.ts +82 -0
  107. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/INameService__factory.ts +45 -0
  108. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IUBIScheme__factory.ts +71 -0
  109. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/ProxyAdmin__factory.ts +131 -0
  110. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/Reserve__factory.ts +55 -0
  111. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/Staking__factory.ts +77 -0
  112. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapFactory__factory.ts +50 -0
  113. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapPair__factory.ts +120 -0
  114. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/Uniswap__factory.ts +275 -0
  115. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/index.ts +26 -0
  116. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/index.ts +5 -0
  117. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula__factory.ts +60 -0
  118. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/index.ts +4 -0
  119. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/index.ts +5 -0
  120. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/IGoodDollarCustom__factory.ts +370 -0
  121. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/ISuperGoodDollar__factory.ts +2301 -0
  122. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/index.ts +5 -0
  123. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/index.ts +4 -0
  124. package/typechain-types/factories/@gooddollar/goodprotocol/index.ts +4 -0
  125. package/typechain-types/factories/@gooddollar/index.ts +4 -0
  126. package/typechain-types/factories/@openzeppelin/contracts/index.ts +2 -0
  127. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +206 -0
  128. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts +4 -0
  129. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/IERC721__factory.ts +311 -0
  130. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.ts +356 -0
  131. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/index.ts +4 -0
  132. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/index.ts +5 -0
  133. package/typechain-types/factories/@openzeppelin/contracts/token/ERC777/IERC777__factory.ts +417 -0
  134. package/typechain-types/factories/@openzeppelin/contracts/token/ERC777/index.ts +4 -0
  135. package/typechain-types/factories/@openzeppelin/contracts/token/index.ts +6 -0
  136. package/typechain-types/factories/@openzeppelin/contracts/utils/index.ts +4 -0
  137. package/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts +45 -0
  138. package/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.ts +4 -0
  139. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/index.ts +4 -0
  140. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IConstantFlowAgreementV1__factory.ts +986 -0
  141. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IInstantDistributionAgreementV1__factory.ts +1015 -0
  142. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/index.ts +5 -0
  143. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/index.ts +6 -0
  144. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IConstantInflowNFT__factory.ts +551 -0
  145. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IConstantOutflowNFT__factory.ts +614 -0
  146. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IFlowNFTBase__factory.ts +515 -0
  147. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperAgreement__factory.ts +78 -0
  148. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperApp__factory.ts +275 -0
  149. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperTokenFactory__factory.ts +276 -0
  150. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperToken__factory.ts +1839 -0
  151. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidGovernance__factory.ts +264 -0
  152. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidToken__factory.ts +697 -0
  153. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluid__factory.ts +1151 -0
  154. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/index.ts +13 -0
  155. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/ERC20WithTokenInfo__factory.ts +248 -0
  156. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/TokenInfo__factory.ts +65 -0
  157. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/index.ts +5 -0
  158. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/index.ts +4 -0
  159. package/typechain-types/factories/@superfluid-finance/index.ts +4 -0
  160. package/typechain-types/factories/@uniswap/index.ts +5 -0
  161. package/typechain-types/factories/@uniswap/v3-core/contracts/index.ts +4 -0
  162. package/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback__factory.ts +53 -0
  163. package/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/index.ts +4 -0
  164. package/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/index.ts +4 -0
  165. package/typechain-types/factories/@uniswap/v3-core/index.ts +4 -0
  166. package/typechain-types/factories/@uniswap/v3-periphery/contracts/index.ts +4 -0
  167. package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter__factory.ts +263 -0
  168. package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/index.ts +4 -0
  169. package/typechain-types/factories/@uniswap/v3-periphery/index.ts +4 -0
  170. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +1 -1
  171. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +581 -3
  172. package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts +584 -0
  173. package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow__factory.ts +335 -0
  174. package/typechain-types/factories/contracts/GoodCollective/index.ts +5 -0
  175. package/typechain-types/factories/contracts/index.ts +2 -1
  176. package/typechain-types/factories/contracts/utils/SwapRouterMock__factory.ts +183 -0
  177. package/typechain-types/factories/contracts/utils/index.ts +4 -0
  178. package/typechain-types/factories/index.ts +3 -0
  179. package/typechain-types/hardhat.d.ts +445 -4
  180. package/typechain-types/index.ts +106 -4
@@ -0,0 +1,986 @@
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
+ IConstantFlowAgreementV1,
9
+ IConstantFlowAgreementV1Interface,
10
+ } from "../../../../../../@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IConstantFlowAgreementV1";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "CFA_ACL_FLOW_RATE_ALLOWANCE_EXCEEDED",
16
+ type: "error",
17
+ },
18
+ {
19
+ inputs: [],
20
+ name: "CFA_ACL_NO_NEGATIVE_ALLOWANCE",
21
+ type: "error",
22
+ },
23
+ {
24
+ inputs: [],
25
+ name: "CFA_ACL_NO_SENDER_CREATE",
26
+ type: "error",
27
+ },
28
+ {
29
+ inputs: [],
30
+ name: "CFA_ACL_NO_SENDER_FLOW_OPERATOR",
31
+ type: "error",
32
+ },
33
+ {
34
+ inputs: [],
35
+ name: "CFA_ACL_NO_SENDER_UPDATE",
36
+ type: "error",
37
+ },
38
+ {
39
+ inputs: [],
40
+ name: "CFA_ACL_OPERATOR_NO_CREATE_PERMISSIONS",
41
+ type: "error",
42
+ },
43
+ {
44
+ inputs: [],
45
+ name: "CFA_ACL_OPERATOR_NO_DELETE_PERMISSIONS",
46
+ type: "error",
47
+ },
48
+ {
49
+ inputs: [],
50
+ name: "CFA_ACL_OPERATOR_NO_UPDATE_PERMISSIONS",
51
+ type: "error",
52
+ },
53
+ {
54
+ inputs: [],
55
+ name: "CFA_ACL_UNCLEAN_PERMISSIONS",
56
+ type: "error",
57
+ },
58
+ {
59
+ inputs: [],
60
+ name: "CFA_DEPOSIT_TOO_BIG",
61
+ type: "error",
62
+ },
63
+ {
64
+ inputs: [],
65
+ name: "CFA_FLOW_ALREADY_EXISTS",
66
+ type: "error",
67
+ },
68
+ {
69
+ inputs: [],
70
+ name: "CFA_FLOW_DOES_NOT_EXIST",
71
+ type: "error",
72
+ },
73
+ {
74
+ inputs: [],
75
+ name: "CFA_FLOW_RATE_TOO_BIG",
76
+ type: "error",
77
+ },
78
+ {
79
+ inputs: [],
80
+ name: "CFA_HOOK_OUT_OF_GAS",
81
+ type: "error",
82
+ },
83
+ {
84
+ inputs: [],
85
+ name: "CFA_INSUFFICIENT_BALANCE",
86
+ type: "error",
87
+ },
88
+ {
89
+ inputs: [],
90
+ name: "CFA_INVALID_FLOW_RATE",
91
+ type: "error",
92
+ },
93
+ {
94
+ inputs: [],
95
+ name: "CFA_NON_CRITICAL_SENDER",
96
+ type: "error",
97
+ },
98
+ {
99
+ inputs: [],
100
+ name: "CFA_NO_SELF_FLOW",
101
+ type: "error",
102
+ },
103
+ {
104
+ inputs: [],
105
+ name: "CFA_ZERO_ADDRESS_RECEIVER",
106
+ type: "error",
107
+ },
108
+ {
109
+ inputs: [],
110
+ name: "CFA_ZERO_ADDRESS_SENDER",
111
+ type: "error",
112
+ },
113
+ {
114
+ anonymous: false,
115
+ inputs: [
116
+ {
117
+ indexed: true,
118
+ internalType: "contract ISuperfluidToken",
119
+ name: "token",
120
+ type: "address",
121
+ },
122
+ {
123
+ indexed: true,
124
+ internalType: "address",
125
+ name: "sender",
126
+ type: "address",
127
+ },
128
+ {
129
+ indexed: true,
130
+ internalType: "address",
131
+ name: "flowOperator",
132
+ type: "address",
133
+ },
134
+ {
135
+ indexed: false,
136
+ internalType: "uint8",
137
+ name: "permissions",
138
+ type: "uint8",
139
+ },
140
+ {
141
+ indexed: false,
142
+ internalType: "int96",
143
+ name: "flowRateAllowance",
144
+ type: "int96",
145
+ },
146
+ ],
147
+ name: "FlowOperatorUpdated",
148
+ type: "event",
149
+ },
150
+ {
151
+ anonymous: false,
152
+ inputs: [
153
+ {
154
+ indexed: true,
155
+ internalType: "contract ISuperfluidToken",
156
+ name: "token",
157
+ type: "address",
158
+ },
159
+ {
160
+ indexed: true,
161
+ internalType: "address",
162
+ name: "sender",
163
+ type: "address",
164
+ },
165
+ {
166
+ indexed: true,
167
+ internalType: "address",
168
+ name: "receiver",
169
+ type: "address",
170
+ },
171
+ {
172
+ indexed: false,
173
+ internalType: "int96",
174
+ name: "flowRate",
175
+ type: "int96",
176
+ },
177
+ {
178
+ indexed: false,
179
+ internalType: "int256",
180
+ name: "totalSenderFlowRate",
181
+ type: "int256",
182
+ },
183
+ {
184
+ indexed: false,
185
+ internalType: "int256",
186
+ name: "totalReceiverFlowRate",
187
+ type: "int256",
188
+ },
189
+ {
190
+ indexed: false,
191
+ internalType: "bytes",
192
+ name: "userData",
193
+ type: "bytes",
194
+ },
195
+ ],
196
+ name: "FlowUpdated",
197
+ type: "event",
198
+ },
199
+ {
200
+ anonymous: false,
201
+ inputs: [
202
+ {
203
+ indexed: true,
204
+ internalType: "address",
205
+ name: "flowOperator",
206
+ type: "address",
207
+ },
208
+ {
209
+ indexed: false,
210
+ internalType: "uint256",
211
+ name: "deposit",
212
+ type: "uint256",
213
+ },
214
+ ],
215
+ name: "FlowUpdatedExtension",
216
+ type: "event",
217
+ },
218
+ {
219
+ inputs: [],
220
+ name: "agreementType",
221
+ outputs: [
222
+ {
223
+ internalType: "bytes32",
224
+ name: "",
225
+ type: "bytes32",
226
+ },
227
+ ],
228
+ stateMutability: "pure",
229
+ type: "function",
230
+ },
231
+ {
232
+ inputs: [
233
+ {
234
+ internalType: "contract ISuperfluidToken",
235
+ name: "token",
236
+ type: "address",
237
+ },
238
+ {
239
+ internalType: "address",
240
+ name: "flowOperator",
241
+ type: "address",
242
+ },
243
+ {
244
+ internalType: "bytes",
245
+ name: "ctx",
246
+ type: "bytes",
247
+ },
248
+ ],
249
+ name: "authorizeFlowOperatorWithFullControl",
250
+ outputs: [
251
+ {
252
+ internalType: "bytes",
253
+ name: "newCtx",
254
+ type: "bytes",
255
+ },
256
+ ],
257
+ stateMutability: "nonpayable",
258
+ type: "function",
259
+ },
260
+ {
261
+ inputs: [
262
+ {
263
+ internalType: "contract ISuperfluidToken",
264
+ name: "token",
265
+ type: "address",
266
+ },
267
+ {
268
+ internalType: "address",
269
+ name: "receiver",
270
+ type: "address",
271
+ },
272
+ {
273
+ internalType: "int96",
274
+ name: "flowRate",
275
+ type: "int96",
276
+ },
277
+ {
278
+ internalType: "bytes",
279
+ name: "ctx",
280
+ type: "bytes",
281
+ },
282
+ ],
283
+ name: "createFlow",
284
+ outputs: [
285
+ {
286
+ internalType: "bytes",
287
+ name: "newCtx",
288
+ type: "bytes",
289
+ },
290
+ ],
291
+ stateMutability: "nonpayable",
292
+ type: "function",
293
+ },
294
+ {
295
+ inputs: [
296
+ {
297
+ internalType: "contract ISuperfluidToken",
298
+ name: "token",
299
+ type: "address",
300
+ },
301
+ {
302
+ internalType: "address",
303
+ name: "sender",
304
+ type: "address",
305
+ },
306
+ {
307
+ internalType: "address",
308
+ name: "receiver",
309
+ type: "address",
310
+ },
311
+ {
312
+ internalType: "int96",
313
+ name: "flowRate",
314
+ type: "int96",
315
+ },
316
+ {
317
+ internalType: "bytes",
318
+ name: "ctx",
319
+ type: "bytes",
320
+ },
321
+ ],
322
+ name: "createFlowByOperator",
323
+ outputs: [
324
+ {
325
+ internalType: "bytes",
326
+ name: "newCtx",
327
+ type: "bytes",
328
+ },
329
+ ],
330
+ stateMutability: "nonpayable",
331
+ type: "function",
332
+ },
333
+ {
334
+ inputs: [
335
+ {
336
+ internalType: "contract ISuperfluidToken",
337
+ name: "token",
338
+ type: "address",
339
+ },
340
+ {
341
+ internalType: "address",
342
+ name: "flowOperator",
343
+ type: "address",
344
+ },
345
+ {
346
+ internalType: "int96",
347
+ name: "subtractedFlowRateAllowance",
348
+ type: "int96",
349
+ },
350
+ {
351
+ internalType: "bytes",
352
+ name: "ctx",
353
+ type: "bytes",
354
+ },
355
+ ],
356
+ name: "decreaseFlowRateAllowance",
357
+ outputs: [
358
+ {
359
+ internalType: "bytes",
360
+ name: "newCtx",
361
+ type: "bytes",
362
+ },
363
+ ],
364
+ stateMutability: "nonpayable",
365
+ type: "function",
366
+ },
367
+ {
368
+ inputs: [
369
+ {
370
+ internalType: "contract ISuperfluidToken",
371
+ name: "token",
372
+ type: "address",
373
+ },
374
+ {
375
+ internalType: "address",
376
+ name: "sender",
377
+ type: "address",
378
+ },
379
+ {
380
+ internalType: "address",
381
+ name: "receiver",
382
+ type: "address",
383
+ },
384
+ {
385
+ internalType: "bytes",
386
+ name: "ctx",
387
+ type: "bytes",
388
+ },
389
+ ],
390
+ name: "deleteFlow",
391
+ outputs: [
392
+ {
393
+ internalType: "bytes",
394
+ name: "newCtx",
395
+ type: "bytes",
396
+ },
397
+ ],
398
+ stateMutability: "nonpayable",
399
+ type: "function",
400
+ },
401
+ {
402
+ inputs: [
403
+ {
404
+ internalType: "contract ISuperfluidToken",
405
+ name: "token",
406
+ type: "address",
407
+ },
408
+ {
409
+ internalType: "address",
410
+ name: "sender",
411
+ type: "address",
412
+ },
413
+ {
414
+ internalType: "address",
415
+ name: "receiver",
416
+ type: "address",
417
+ },
418
+ {
419
+ internalType: "bytes",
420
+ name: "ctx",
421
+ type: "bytes",
422
+ },
423
+ ],
424
+ name: "deleteFlowByOperator",
425
+ outputs: [
426
+ {
427
+ internalType: "bytes",
428
+ name: "newCtx",
429
+ type: "bytes",
430
+ },
431
+ ],
432
+ stateMutability: "nonpayable",
433
+ type: "function",
434
+ },
435
+ {
436
+ inputs: [
437
+ {
438
+ internalType: "contract ISuperfluidToken",
439
+ name: "token",
440
+ type: "address",
441
+ },
442
+ {
443
+ internalType: "address",
444
+ name: "account",
445
+ type: "address",
446
+ },
447
+ ],
448
+ name: "getAccountFlowInfo",
449
+ outputs: [
450
+ {
451
+ internalType: "uint256",
452
+ name: "timestamp",
453
+ type: "uint256",
454
+ },
455
+ {
456
+ internalType: "int96",
457
+ name: "flowRate",
458
+ type: "int96",
459
+ },
460
+ {
461
+ internalType: "uint256",
462
+ name: "deposit",
463
+ type: "uint256",
464
+ },
465
+ {
466
+ internalType: "uint256",
467
+ name: "owedDeposit",
468
+ type: "uint256",
469
+ },
470
+ ],
471
+ stateMutability: "view",
472
+ type: "function",
473
+ },
474
+ {
475
+ inputs: [
476
+ {
477
+ internalType: "contract ISuperfluidToken",
478
+ name: "token",
479
+ type: "address",
480
+ },
481
+ {
482
+ internalType: "int96",
483
+ name: "flowRate",
484
+ type: "int96",
485
+ },
486
+ ],
487
+ name: "getDepositRequiredForFlowRate",
488
+ outputs: [
489
+ {
490
+ internalType: "uint256",
491
+ name: "deposit",
492
+ type: "uint256",
493
+ },
494
+ ],
495
+ stateMutability: "view",
496
+ type: "function",
497
+ },
498
+ {
499
+ inputs: [
500
+ {
501
+ internalType: "contract ISuperfluidToken",
502
+ name: "token",
503
+ type: "address",
504
+ },
505
+ {
506
+ internalType: "address",
507
+ name: "sender",
508
+ type: "address",
509
+ },
510
+ {
511
+ internalType: "address",
512
+ name: "receiver",
513
+ type: "address",
514
+ },
515
+ ],
516
+ name: "getFlow",
517
+ outputs: [
518
+ {
519
+ internalType: "uint256",
520
+ name: "timestamp",
521
+ type: "uint256",
522
+ },
523
+ {
524
+ internalType: "int96",
525
+ name: "flowRate",
526
+ type: "int96",
527
+ },
528
+ {
529
+ internalType: "uint256",
530
+ name: "deposit",
531
+ type: "uint256",
532
+ },
533
+ {
534
+ internalType: "uint256",
535
+ name: "owedDeposit",
536
+ type: "uint256",
537
+ },
538
+ ],
539
+ stateMutability: "view",
540
+ type: "function",
541
+ },
542
+ {
543
+ inputs: [
544
+ {
545
+ internalType: "contract ISuperfluidToken",
546
+ name: "token",
547
+ type: "address",
548
+ },
549
+ {
550
+ internalType: "bytes32",
551
+ name: "agreementId",
552
+ type: "bytes32",
553
+ },
554
+ ],
555
+ name: "getFlowByID",
556
+ outputs: [
557
+ {
558
+ internalType: "uint256",
559
+ name: "timestamp",
560
+ type: "uint256",
561
+ },
562
+ {
563
+ internalType: "int96",
564
+ name: "flowRate",
565
+ type: "int96",
566
+ },
567
+ {
568
+ internalType: "uint256",
569
+ name: "deposit",
570
+ type: "uint256",
571
+ },
572
+ {
573
+ internalType: "uint256",
574
+ name: "owedDeposit",
575
+ type: "uint256",
576
+ },
577
+ ],
578
+ stateMutability: "view",
579
+ type: "function",
580
+ },
581
+ {
582
+ inputs: [
583
+ {
584
+ internalType: "contract ISuperfluidToken",
585
+ name: "token",
586
+ type: "address",
587
+ },
588
+ {
589
+ internalType: "address",
590
+ name: "sender",
591
+ type: "address",
592
+ },
593
+ {
594
+ internalType: "address",
595
+ name: "flowOperator",
596
+ type: "address",
597
+ },
598
+ ],
599
+ name: "getFlowOperatorData",
600
+ outputs: [
601
+ {
602
+ internalType: "bytes32",
603
+ name: "flowOperatorId",
604
+ type: "bytes32",
605
+ },
606
+ {
607
+ internalType: "uint8",
608
+ name: "permissions",
609
+ type: "uint8",
610
+ },
611
+ {
612
+ internalType: "int96",
613
+ name: "flowRateAllowance",
614
+ type: "int96",
615
+ },
616
+ ],
617
+ stateMutability: "view",
618
+ type: "function",
619
+ },
620
+ {
621
+ inputs: [
622
+ {
623
+ internalType: "contract ISuperfluidToken",
624
+ name: "token",
625
+ type: "address",
626
+ },
627
+ {
628
+ internalType: "bytes32",
629
+ name: "flowOperatorId",
630
+ type: "bytes32",
631
+ },
632
+ ],
633
+ name: "getFlowOperatorDataByID",
634
+ outputs: [
635
+ {
636
+ internalType: "uint8",
637
+ name: "permissions",
638
+ type: "uint8",
639
+ },
640
+ {
641
+ internalType: "int96",
642
+ name: "flowRateAllowance",
643
+ type: "int96",
644
+ },
645
+ ],
646
+ stateMutability: "view",
647
+ type: "function",
648
+ },
649
+ {
650
+ inputs: [
651
+ {
652
+ internalType: "contract ISuperfluidToken",
653
+ name: "token",
654
+ type: "address",
655
+ },
656
+ {
657
+ internalType: "uint256",
658
+ name: "deposit",
659
+ type: "uint256",
660
+ },
661
+ ],
662
+ name: "getMaximumFlowRateFromDeposit",
663
+ outputs: [
664
+ {
665
+ internalType: "int96",
666
+ name: "flowRate",
667
+ type: "int96",
668
+ },
669
+ ],
670
+ stateMutability: "view",
671
+ type: "function",
672
+ },
673
+ {
674
+ inputs: [
675
+ {
676
+ internalType: "contract ISuperfluidToken",
677
+ name: "token",
678
+ type: "address",
679
+ },
680
+ {
681
+ internalType: "address",
682
+ name: "account",
683
+ type: "address",
684
+ },
685
+ ],
686
+ name: "getNetFlow",
687
+ outputs: [
688
+ {
689
+ internalType: "int96",
690
+ name: "flowRate",
691
+ type: "int96",
692
+ },
693
+ ],
694
+ stateMutability: "view",
695
+ type: "function",
696
+ },
697
+ {
698
+ inputs: [
699
+ {
700
+ internalType: "contract ISuperfluidToken",
701
+ name: "token",
702
+ type: "address",
703
+ },
704
+ {
705
+ internalType: "address",
706
+ name: "flowOperator",
707
+ type: "address",
708
+ },
709
+ {
710
+ internalType: "int96",
711
+ name: "addedFlowRateAllowance",
712
+ type: "int96",
713
+ },
714
+ {
715
+ internalType: "bytes",
716
+ name: "ctx",
717
+ type: "bytes",
718
+ },
719
+ ],
720
+ name: "increaseFlowRateAllowance",
721
+ outputs: [
722
+ {
723
+ internalType: "bytes",
724
+ name: "newCtx",
725
+ type: "bytes",
726
+ },
727
+ ],
728
+ stateMutability: "nonpayable",
729
+ type: "function",
730
+ },
731
+ {
732
+ inputs: [
733
+ {
734
+ internalType: "contract ISuperfluidToken",
735
+ name: "token",
736
+ type: "address",
737
+ },
738
+ {
739
+ internalType: "address",
740
+ name: "account",
741
+ type: "address",
742
+ },
743
+ {
744
+ internalType: "uint256",
745
+ name: "timestamp",
746
+ type: "uint256",
747
+ },
748
+ ],
749
+ name: "isPatricianPeriod",
750
+ outputs: [
751
+ {
752
+ internalType: "bool",
753
+ name: "",
754
+ type: "bool",
755
+ },
756
+ ],
757
+ stateMutability: "view",
758
+ type: "function",
759
+ },
760
+ {
761
+ inputs: [
762
+ {
763
+ internalType: "contract ISuperfluidToken",
764
+ name: "token",
765
+ type: "address",
766
+ },
767
+ {
768
+ internalType: "address",
769
+ name: "account",
770
+ type: "address",
771
+ },
772
+ ],
773
+ name: "isPatricianPeriodNow",
774
+ outputs: [
775
+ {
776
+ internalType: "bool",
777
+ name: "isCurrentlyPatricianPeriod",
778
+ type: "bool",
779
+ },
780
+ {
781
+ internalType: "uint256",
782
+ name: "timestamp",
783
+ type: "uint256",
784
+ },
785
+ ],
786
+ stateMutability: "view",
787
+ type: "function",
788
+ },
789
+ {
790
+ inputs: [
791
+ {
792
+ internalType: "contract ISuperfluidToken",
793
+ name: "token",
794
+ type: "address",
795
+ },
796
+ {
797
+ internalType: "address",
798
+ name: "account",
799
+ type: "address",
800
+ },
801
+ {
802
+ internalType: "uint256",
803
+ name: "time",
804
+ type: "uint256",
805
+ },
806
+ ],
807
+ name: "realtimeBalanceOf",
808
+ outputs: [
809
+ {
810
+ internalType: "int256",
811
+ name: "dynamicBalance",
812
+ type: "int256",
813
+ },
814
+ {
815
+ internalType: "uint256",
816
+ name: "deposit",
817
+ type: "uint256",
818
+ },
819
+ {
820
+ internalType: "uint256",
821
+ name: "owedDeposit",
822
+ type: "uint256",
823
+ },
824
+ ],
825
+ stateMutability: "view",
826
+ type: "function",
827
+ },
828
+ {
829
+ inputs: [
830
+ {
831
+ internalType: "contract ISuperfluidToken",
832
+ name: "token",
833
+ type: "address",
834
+ },
835
+ {
836
+ internalType: "address",
837
+ name: "flowOperator",
838
+ type: "address",
839
+ },
840
+ {
841
+ internalType: "bytes",
842
+ name: "ctx",
843
+ type: "bytes",
844
+ },
845
+ ],
846
+ name: "revokeFlowOperatorWithFullControl",
847
+ outputs: [
848
+ {
849
+ internalType: "bytes",
850
+ name: "newCtx",
851
+ type: "bytes",
852
+ },
853
+ ],
854
+ stateMutability: "nonpayable",
855
+ type: "function",
856
+ },
857
+ {
858
+ inputs: [
859
+ {
860
+ internalType: "contract ISuperfluidToken",
861
+ name: "token",
862
+ type: "address",
863
+ },
864
+ {
865
+ internalType: "address",
866
+ name: "receiver",
867
+ type: "address",
868
+ },
869
+ {
870
+ internalType: "int96",
871
+ name: "flowRate",
872
+ type: "int96",
873
+ },
874
+ {
875
+ internalType: "bytes",
876
+ name: "ctx",
877
+ type: "bytes",
878
+ },
879
+ ],
880
+ name: "updateFlow",
881
+ outputs: [
882
+ {
883
+ internalType: "bytes",
884
+ name: "newCtx",
885
+ type: "bytes",
886
+ },
887
+ ],
888
+ stateMutability: "nonpayable",
889
+ type: "function",
890
+ },
891
+ {
892
+ inputs: [
893
+ {
894
+ internalType: "contract ISuperfluidToken",
895
+ name: "token",
896
+ type: "address",
897
+ },
898
+ {
899
+ internalType: "address",
900
+ name: "sender",
901
+ type: "address",
902
+ },
903
+ {
904
+ internalType: "address",
905
+ name: "receiver",
906
+ type: "address",
907
+ },
908
+ {
909
+ internalType: "int96",
910
+ name: "flowRate",
911
+ type: "int96",
912
+ },
913
+ {
914
+ internalType: "bytes",
915
+ name: "ctx",
916
+ type: "bytes",
917
+ },
918
+ ],
919
+ name: "updateFlowByOperator",
920
+ outputs: [
921
+ {
922
+ internalType: "bytes",
923
+ name: "newCtx",
924
+ type: "bytes",
925
+ },
926
+ ],
927
+ stateMutability: "nonpayable",
928
+ type: "function",
929
+ },
930
+ {
931
+ inputs: [
932
+ {
933
+ internalType: "contract ISuperfluidToken",
934
+ name: "token",
935
+ type: "address",
936
+ },
937
+ {
938
+ internalType: "address",
939
+ name: "flowOperator",
940
+ type: "address",
941
+ },
942
+ {
943
+ internalType: "uint8",
944
+ name: "permissions",
945
+ type: "uint8",
946
+ },
947
+ {
948
+ internalType: "int96",
949
+ name: "flowRateAllowance",
950
+ type: "int96",
951
+ },
952
+ {
953
+ internalType: "bytes",
954
+ name: "ctx",
955
+ type: "bytes",
956
+ },
957
+ ],
958
+ name: "updateFlowOperatorPermissions",
959
+ outputs: [
960
+ {
961
+ internalType: "bytes",
962
+ name: "newCtx",
963
+ type: "bytes",
964
+ },
965
+ ],
966
+ stateMutability: "nonpayable",
967
+ type: "function",
968
+ },
969
+ ] as const;
970
+
971
+ export class IConstantFlowAgreementV1__factory {
972
+ static readonly abi = _abi;
973
+ static createInterface(): IConstantFlowAgreementV1Interface {
974
+ return new utils.Interface(_abi) as IConstantFlowAgreementV1Interface;
975
+ }
976
+ static connect(
977
+ address: string,
978
+ signerOrProvider: Signer | Provider
979
+ ): IConstantFlowAgreementV1 {
980
+ return new Contract(
981
+ address,
982
+ _abi,
983
+ signerOrProvider
984
+ ) as IConstantFlowAgreementV1;
985
+ }
986
+ }