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