@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,1280 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ BytesLike,
9
+ CallOverrides,
10
+ ContractTransaction,
11
+ Overrides,
12
+ PopulatedTransaction,
13
+ Signer,
14
+ utils,
15
+ } from "ethers";
16
+ import type {
17
+ FunctionFragment,
18
+ Result,
19
+ EventFragment,
20
+ } from "@ethersproject/abi";
21
+ import type { Listener, Provider } from "@ethersproject/providers";
22
+ import type {
23
+ TypedEventFilter,
24
+ TypedEvent,
25
+ TypedListener,
26
+ OnEvent,
27
+ PromiseOrValue,
28
+ } from "../../../../../common";
29
+
30
+ export interface IInstantDistributionAgreementV1Interface
31
+ extends utils.Interface {
32
+ functions: {
33
+ "agreementType()": FunctionFragment;
34
+ "approveSubscription(address,address,uint32,bytes)": FunctionFragment;
35
+ "calculateDistribution(address,address,uint32,uint256)": FunctionFragment;
36
+ "claim(address,address,uint32,address,bytes)": FunctionFragment;
37
+ "createIndex(address,uint32,bytes)": FunctionFragment;
38
+ "deleteSubscription(address,address,uint32,address,bytes)": FunctionFragment;
39
+ "distribute(address,uint32,uint256,bytes)": FunctionFragment;
40
+ "getIndex(address,address,uint32)": FunctionFragment;
41
+ "getSubscription(address,address,uint32,address)": FunctionFragment;
42
+ "getSubscriptionByID(address,bytes32)": FunctionFragment;
43
+ "listSubscriptions(address,address)": FunctionFragment;
44
+ "realtimeBalanceOf(address,address,uint256)": FunctionFragment;
45
+ "revokeSubscription(address,address,uint32,bytes)": FunctionFragment;
46
+ "updateIndex(address,uint32,uint128,bytes)": FunctionFragment;
47
+ "updateSubscription(address,uint32,address,uint128,bytes)": FunctionFragment;
48
+ };
49
+
50
+ getFunction(
51
+ nameOrSignatureOrTopic:
52
+ | "agreementType"
53
+ | "approveSubscription"
54
+ | "calculateDistribution"
55
+ | "claim"
56
+ | "createIndex"
57
+ | "deleteSubscription"
58
+ | "distribute"
59
+ | "getIndex"
60
+ | "getSubscription"
61
+ | "getSubscriptionByID"
62
+ | "listSubscriptions"
63
+ | "realtimeBalanceOf"
64
+ | "revokeSubscription"
65
+ | "updateIndex"
66
+ | "updateSubscription"
67
+ ): FunctionFragment;
68
+
69
+ encodeFunctionData(
70
+ functionFragment: "agreementType",
71
+ values?: undefined
72
+ ): string;
73
+ encodeFunctionData(
74
+ functionFragment: "approveSubscription",
75
+ values: [
76
+ PromiseOrValue<string>,
77
+ PromiseOrValue<string>,
78
+ PromiseOrValue<BigNumberish>,
79
+ PromiseOrValue<BytesLike>
80
+ ]
81
+ ): string;
82
+ encodeFunctionData(
83
+ functionFragment: "calculateDistribution",
84
+ values: [
85
+ PromiseOrValue<string>,
86
+ PromiseOrValue<string>,
87
+ PromiseOrValue<BigNumberish>,
88
+ PromiseOrValue<BigNumberish>
89
+ ]
90
+ ): string;
91
+ encodeFunctionData(
92
+ functionFragment: "claim",
93
+ values: [
94
+ PromiseOrValue<string>,
95
+ PromiseOrValue<string>,
96
+ PromiseOrValue<BigNumberish>,
97
+ PromiseOrValue<string>,
98
+ PromiseOrValue<BytesLike>
99
+ ]
100
+ ): string;
101
+ encodeFunctionData(
102
+ functionFragment: "createIndex",
103
+ values: [
104
+ PromiseOrValue<string>,
105
+ PromiseOrValue<BigNumberish>,
106
+ PromiseOrValue<BytesLike>
107
+ ]
108
+ ): string;
109
+ encodeFunctionData(
110
+ functionFragment: "deleteSubscription",
111
+ values: [
112
+ PromiseOrValue<string>,
113
+ PromiseOrValue<string>,
114
+ PromiseOrValue<BigNumberish>,
115
+ PromiseOrValue<string>,
116
+ PromiseOrValue<BytesLike>
117
+ ]
118
+ ): string;
119
+ encodeFunctionData(
120
+ functionFragment: "distribute",
121
+ values: [
122
+ PromiseOrValue<string>,
123
+ PromiseOrValue<BigNumberish>,
124
+ PromiseOrValue<BigNumberish>,
125
+ PromiseOrValue<BytesLike>
126
+ ]
127
+ ): string;
128
+ encodeFunctionData(
129
+ functionFragment: "getIndex",
130
+ values: [
131
+ PromiseOrValue<string>,
132
+ PromiseOrValue<string>,
133
+ PromiseOrValue<BigNumberish>
134
+ ]
135
+ ): string;
136
+ encodeFunctionData(
137
+ functionFragment: "getSubscription",
138
+ values: [
139
+ PromiseOrValue<string>,
140
+ PromiseOrValue<string>,
141
+ PromiseOrValue<BigNumberish>,
142
+ PromiseOrValue<string>
143
+ ]
144
+ ): string;
145
+ encodeFunctionData(
146
+ functionFragment: "getSubscriptionByID",
147
+ values: [PromiseOrValue<string>, PromiseOrValue<BytesLike>]
148
+ ): string;
149
+ encodeFunctionData(
150
+ functionFragment: "listSubscriptions",
151
+ values: [PromiseOrValue<string>, PromiseOrValue<string>]
152
+ ): string;
153
+ encodeFunctionData(
154
+ functionFragment: "realtimeBalanceOf",
155
+ values: [
156
+ PromiseOrValue<string>,
157
+ PromiseOrValue<string>,
158
+ PromiseOrValue<BigNumberish>
159
+ ]
160
+ ): string;
161
+ encodeFunctionData(
162
+ functionFragment: "revokeSubscription",
163
+ values: [
164
+ PromiseOrValue<string>,
165
+ PromiseOrValue<string>,
166
+ PromiseOrValue<BigNumberish>,
167
+ PromiseOrValue<BytesLike>
168
+ ]
169
+ ): string;
170
+ encodeFunctionData(
171
+ functionFragment: "updateIndex",
172
+ values: [
173
+ PromiseOrValue<string>,
174
+ PromiseOrValue<BigNumberish>,
175
+ PromiseOrValue<BigNumberish>,
176
+ PromiseOrValue<BytesLike>
177
+ ]
178
+ ): string;
179
+ encodeFunctionData(
180
+ functionFragment: "updateSubscription",
181
+ values: [
182
+ PromiseOrValue<string>,
183
+ PromiseOrValue<BigNumberish>,
184
+ PromiseOrValue<string>,
185
+ PromiseOrValue<BigNumberish>,
186
+ PromiseOrValue<BytesLike>
187
+ ]
188
+ ): string;
189
+
190
+ decodeFunctionResult(
191
+ functionFragment: "agreementType",
192
+ data: BytesLike
193
+ ): Result;
194
+ decodeFunctionResult(
195
+ functionFragment: "approveSubscription",
196
+ data: BytesLike
197
+ ): Result;
198
+ decodeFunctionResult(
199
+ functionFragment: "calculateDistribution",
200
+ data: BytesLike
201
+ ): Result;
202
+ decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result;
203
+ decodeFunctionResult(
204
+ functionFragment: "createIndex",
205
+ data: BytesLike
206
+ ): Result;
207
+ decodeFunctionResult(
208
+ functionFragment: "deleteSubscription",
209
+ data: BytesLike
210
+ ): Result;
211
+ decodeFunctionResult(functionFragment: "distribute", data: BytesLike): Result;
212
+ decodeFunctionResult(functionFragment: "getIndex", data: BytesLike): Result;
213
+ decodeFunctionResult(
214
+ functionFragment: "getSubscription",
215
+ data: BytesLike
216
+ ): Result;
217
+ decodeFunctionResult(
218
+ functionFragment: "getSubscriptionByID",
219
+ data: BytesLike
220
+ ): Result;
221
+ decodeFunctionResult(
222
+ functionFragment: "listSubscriptions",
223
+ data: BytesLike
224
+ ): Result;
225
+ decodeFunctionResult(
226
+ functionFragment: "realtimeBalanceOf",
227
+ data: BytesLike
228
+ ): Result;
229
+ decodeFunctionResult(
230
+ functionFragment: "revokeSubscription",
231
+ data: BytesLike
232
+ ): Result;
233
+ decodeFunctionResult(
234
+ functionFragment: "updateIndex",
235
+ data: BytesLike
236
+ ): Result;
237
+ decodeFunctionResult(
238
+ functionFragment: "updateSubscription",
239
+ data: BytesLike
240
+ ): Result;
241
+
242
+ events: {
243
+ "IndexCreated(address,address,uint32,bytes)": EventFragment;
244
+ "IndexDistributionClaimed(address,address,uint32,address,uint256)": EventFragment;
245
+ "IndexSubscribed(address,address,uint32,address,bytes)": EventFragment;
246
+ "IndexUnitsUpdated(address,address,uint32,address,uint128,bytes)": EventFragment;
247
+ "IndexUnsubscribed(address,address,uint32,address,bytes)": EventFragment;
248
+ "IndexUpdated(address,address,uint32,uint128,uint128,uint128,uint128,bytes)": EventFragment;
249
+ "SubscriptionApproved(address,address,address,uint32,bytes)": EventFragment;
250
+ "SubscriptionDistributionClaimed(address,address,address,uint32,uint256)": EventFragment;
251
+ "SubscriptionRevoked(address,address,address,uint32,bytes)": EventFragment;
252
+ "SubscriptionUnitsUpdated(address,address,address,uint32,uint128,bytes)": EventFragment;
253
+ };
254
+
255
+ getEvent(nameOrSignatureOrTopic: "IndexCreated"): EventFragment;
256
+ getEvent(nameOrSignatureOrTopic: "IndexDistributionClaimed"): EventFragment;
257
+ getEvent(nameOrSignatureOrTopic: "IndexSubscribed"): EventFragment;
258
+ getEvent(nameOrSignatureOrTopic: "IndexUnitsUpdated"): EventFragment;
259
+ getEvent(nameOrSignatureOrTopic: "IndexUnsubscribed"): EventFragment;
260
+ getEvent(nameOrSignatureOrTopic: "IndexUpdated"): EventFragment;
261
+ getEvent(nameOrSignatureOrTopic: "SubscriptionApproved"): EventFragment;
262
+ getEvent(
263
+ nameOrSignatureOrTopic: "SubscriptionDistributionClaimed"
264
+ ): EventFragment;
265
+ getEvent(nameOrSignatureOrTopic: "SubscriptionRevoked"): EventFragment;
266
+ getEvent(nameOrSignatureOrTopic: "SubscriptionUnitsUpdated"): EventFragment;
267
+ }
268
+
269
+ export interface IndexCreatedEventObject {
270
+ token: string;
271
+ publisher: string;
272
+ indexId: number;
273
+ userData: string;
274
+ }
275
+ export type IndexCreatedEvent = TypedEvent<
276
+ [string, string, number, string],
277
+ IndexCreatedEventObject
278
+ >;
279
+
280
+ export type IndexCreatedEventFilter = TypedEventFilter<IndexCreatedEvent>;
281
+
282
+ export interface IndexDistributionClaimedEventObject {
283
+ token: string;
284
+ publisher: string;
285
+ indexId: number;
286
+ subscriber: string;
287
+ amount: BigNumber;
288
+ }
289
+ export type IndexDistributionClaimedEvent = TypedEvent<
290
+ [string, string, number, string, BigNumber],
291
+ IndexDistributionClaimedEventObject
292
+ >;
293
+
294
+ export type IndexDistributionClaimedEventFilter =
295
+ TypedEventFilter<IndexDistributionClaimedEvent>;
296
+
297
+ export interface IndexSubscribedEventObject {
298
+ token: string;
299
+ publisher: string;
300
+ indexId: number;
301
+ subscriber: string;
302
+ userData: string;
303
+ }
304
+ export type IndexSubscribedEvent = TypedEvent<
305
+ [string, string, number, string, string],
306
+ IndexSubscribedEventObject
307
+ >;
308
+
309
+ export type IndexSubscribedEventFilter = TypedEventFilter<IndexSubscribedEvent>;
310
+
311
+ export interface IndexUnitsUpdatedEventObject {
312
+ token: string;
313
+ publisher: string;
314
+ indexId: number;
315
+ subscriber: string;
316
+ units: BigNumber;
317
+ userData: string;
318
+ }
319
+ export type IndexUnitsUpdatedEvent = TypedEvent<
320
+ [string, string, number, string, BigNumber, string],
321
+ IndexUnitsUpdatedEventObject
322
+ >;
323
+
324
+ export type IndexUnitsUpdatedEventFilter =
325
+ TypedEventFilter<IndexUnitsUpdatedEvent>;
326
+
327
+ export interface IndexUnsubscribedEventObject {
328
+ token: string;
329
+ publisher: string;
330
+ indexId: number;
331
+ subscriber: string;
332
+ userData: string;
333
+ }
334
+ export type IndexUnsubscribedEvent = TypedEvent<
335
+ [string, string, number, string, string],
336
+ IndexUnsubscribedEventObject
337
+ >;
338
+
339
+ export type IndexUnsubscribedEventFilter =
340
+ TypedEventFilter<IndexUnsubscribedEvent>;
341
+
342
+ export interface IndexUpdatedEventObject {
343
+ token: string;
344
+ publisher: string;
345
+ indexId: number;
346
+ oldIndexValue: BigNumber;
347
+ newIndexValue: BigNumber;
348
+ totalUnitsPending: BigNumber;
349
+ totalUnitsApproved: BigNumber;
350
+ userData: string;
351
+ }
352
+ export type IndexUpdatedEvent = TypedEvent<
353
+ [string, string, number, BigNumber, BigNumber, BigNumber, BigNumber, string],
354
+ IndexUpdatedEventObject
355
+ >;
356
+
357
+ export type IndexUpdatedEventFilter = TypedEventFilter<IndexUpdatedEvent>;
358
+
359
+ export interface SubscriptionApprovedEventObject {
360
+ token: string;
361
+ subscriber: string;
362
+ publisher: string;
363
+ indexId: number;
364
+ userData: string;
365
+ }
366
+ export type SubscriptionApprovedEvent = TypedEvent<
367
+ [string, string, string, number, string],
368
+ SubscriptionApprovedEventObject
369
+ >;
370
+
371
+ export type SubscriptionApprovedEventFilter =
372
+ TypedEventFilter<SubscriptionApprovedEvent>;
373
+
374
+ export interface SubscriptionDistributionClaimedEventObject {
375
+ token: string;
376
+ subscriber: string;
377
+ publisher: string;
378
+ indexId: number;
379
+ amount: BigNumber;
380
+ }
381
+ export type SubscriptionDistributionClaimedEvent = TypedEvent<
382
+ [string, string, string, number, BigNumber],
383
+ SubscriptionDistributionClaimedEventObject
384
+ >;
385
+
386
+ export type SubscriptionDistributionClaimedEventFilter =
387
+ TypedEventFilter<SubscriptionDistributionClaimedEvent>;
388
+
389
+ export interface SubscriptionRevokedEventObject {
390
+ token: string;
391
+ subscriber: string;
392
+ publisher: string;
393
+ indexId: number;
394
+ userData: string;
395
+ }
396
+ export type SubscriptionRevokedEvent = TypedEvent<
397
+ [string, string, string, number, string],
398
+ SubscriptionRevokedEventObject
399
+ >;
400
+
401
+ export type SubscriptionRevokedEventFilter =
402
+ TypedEventFilter<SubscriptionRevokedEvent>;
403
+
404
+ export interface SubscriptionUnitsUpdatedEventObject {
405
+ token: string;
406
+ subscriber: string;
407
+ publisher: string;
408
+ indexId: number;
409
+ units: BigNumber;
410
+ userData: string;
411
+ }
412
+ export type SubscriptionUnitsUpdatedEvent = TypedEvent<
413
+ [string, string, string, number, BigNumber, string],
414
+ SubscriptionUnitsUpdatedEventObject
415
+ >;
416
+
417
+ export type SubscriptionUnitsUpdatedEventFilter =
418
+ TypedEventFilter<SubscriptionUnitsUpdatedEvent>;
419
+
420
+ export interface IInstantDistributionAgreementV1 extends BaseContract {
421
+ connect(signerOrProvider: Signer | Provider | string): this;
422
+ attach(addressOrName: string): this;
423
+ deployed(): Promise<this>;
424
+
425
+ interface: IInstantDistributionAgreementV1Interface;
426
+
427
+ queryFilter<TEvent extends TypedEvent>(
428
+ event: TypedEventFilter<TEvent>,
429
+ fromBlockOrBlockhash?: string | number | undefined,
430
+ toBlock?: string | number | undefined
431
+ ): Promise<Array<TEvent>>;
432
+
433
+ listeners<TEvent extends TypedEvent>(
434
+ eventFilter?: TypedEventFilter<TEvent>
435
+ ): Array<TypedListener<TEvent>>;
436
+ listeners(eventName?: string): Array<Listener>;
437
+ removeAllListeners<TEvent extends TypedEvent>(
438
+ eventFilter: TypedEventFilter<TEvent>
439
+ ): this;
440
+ removeAllListeners(eventName?: string): this;
441
+ off: OnEvent<this>;
442
+ on: OnEvent<this>;
443
+ once: OnEvent<this>;
444
+ removeListener: OnEvent<this>;
445
+
446
+ functions: {
447
+ agreementType(overrides?: CallOverrides): Promise<[string]>;
448
+
449
+ approveSubscription(
450
+ token: PromiseOrValue<string>,
451
+ publisher: PromiseOrValue<string>,
452
+ indexId: PromiseOrValue<BigNumberish>,
453
+ ctx: PromiseOrValue<BytesLike>,
454
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
455
+ ): Promise<ContractTransaction>;
456
+
457
+ calculateDistribution(
458
+ token: PromiseOrValue<string>,
459
+ publisher: PromiseOrValue<string>,
460
+ indexId: PromiseOrValue<BigNumberish>,
461
+ amount: PromiseOrValue<BigNumberish>,
462
+ overrides?: CallOverrides
463
+ ): Promise<
464
+ [BigNumber, BigNumber] & {
465
+ actualAmount: BigNumber;
466
+ newIndexValue: BigNumber;
467
+ }
468
+ >;
469
+
470
+ claim(
471
+ token: PromiseOrValue<string>,
472
+ publisher: PromiseOrValue<string>,
473
+ indexId: PromiseOrValue<BigNumberish>,
474
+ subscriber: PromiseOrValue<string>,
475
+ ctx: PromiseOrValue<BytesLike>,
476
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
477
+ ): Promise<ContractTransaction>;
478
+
479
+ createIndex(
480
+ token: PromiseOrValue<string>,
481
+ indexId: PromiseOrValue<BigNumberish>,
482
+ ctx: PromiseOrValue<BytesLike>,
483
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
484
+ ): Promise<ContractTransaction>;
485
+
486
+ deleteSubscription(
487
+ token: PromiseOrValue<string>,
488
+ publisher: PromiseOrValue<string>,
489
+ indexId: PromiseOrValue<BigNumberish>,
490
+ subscriber: PromiseOrValue<string>,
491
+ ctx: PromiseOrValue<BytesLike>,
492
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
493
+ ): Promise<ContractTransaction>;
494
+
495
+ distribute(
496
+ token: PromiseOrValue<string>,
497
+ indexId: PromiseOrValue<BigNumberish>,
498
+ amount: PromiseOrValue<BigNumberish>,
499
+ ctx: PromiseOrValue<BytesLike>,
500
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
501
+ ): Promise<ContractTransaction>;
502
+
503
+ getIndex(
504
+ token: PromiseOrValue<string>,
505
+ publisher: PromiseOrValue<string>,
506
+ indexId: PromiseOrValue<BigNumberish>,
507
+ overrides?: CallOverrides
508
+ ): Promise<
509
+ [boolean, BigNumber, BigNumber, BigNumber] & {
510
+ exist: boolean;
511
+ indexValue: BigNumber;
512
+ totalUnitsApproved: BigNumber;
513
+ totalUnitsPending: BigNumber;
514
+ }
515
+ >;
516
+
517
+ getSubscription(
518
+ token: PromiseOrValue<string>,
519
+ publisher: PromiseOrValue<string>,
520
+ indexId: PromiseOrValue<BigNumberish>,
521
+ subscriber: PromiseOrValue<string>,
522
+ overrides?: CallOverrides
523
+ ): Promise<
524
+ [boolean, boolean, BigNumber, BigNumber] & {
525
+ exist: boolean;
526
+ approved: boolean;
527
+ units: BigNumber;
528
+ pendingDistribution: BigNumber;
529
+ }
530
+ >;
531
+
532
+ getSubscriptionByID(
533
+ token: PromiseOrValue<string>,
534
+ agreementId: PromiseOrValue<BytesLike>,
535
+ overrides?: CallOverrides
536
+ ): Promise<
537
+ [string, number, boolean, BigNumber, BigNumber] & {
538
+ publisher: string;
539
+ indexId: number;
540
+ approved: boolean;
541
+ units: BigNumber;
542
+ pendingDistribution: BigNumber;
543
+ }
544
+ >;
545
+
546
+ listSubscriptions(
547
+ token: PromiseOrValue<string>,
548
+ subscriber: PromiseOrValue<string>,
549
+ overrides?: CallOverrides
550
+ ): Promise<
551
+ [string[], number[], BigNumber[]] & {
552
+ publishers: string[];
553
+ indexIds: number[];
554
+ unitsList: BigNumber[];
555
+ }
556
+ >;
557
+
558
+ realtimeBalanceOf(
559
+ token: PromiseOrValue<string>,
560
+ account: PromiseOrValue<string>,
561
+ time: PromiseOrValue<BigNumberish>,
562
+ overrides?: CallOverrides
563
+ ): Promise<
564
+ [BigNumber, BigNumber, BigNumber] & {
565
+ dynamicBalance: BigNumber;
566
+ deposit: BigNumber;
567
+ owedDeposit: BigNumber;
568
+ }
569
+ >;
570
+
571
+ revokeSubscription(
572
+ token: PromiseOrValue<string>,
573
+ publisher: PromiseOrValue<string>,
574
+ indexId: PromiseOrValue<BigNumberish>,
575
+ ctx: PromiseOrValue<BytesLike>,
576
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
577
+ ): Promise<ContractTransaction>;
578
+
579
+ updateIndex(
580
+ token: PromiseOrValue<string>,
581
+ indexId: PromiseOrValue<BigNumberish>,
582
+ indexValue: PromiseOrValue<BigNumberish>,
583
+ ctx: PromiseOrValue<BytesLike>,
584
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
585
+ ): Promise<ContractTransaction>;
586
+
587
+ updateSubscription(
588
+ token: PromiseOrValue<string>,
589
+ indexId: PromiseOrValue<BigNumberish>,
590
+ subscriber: PromiseOrValue<string>,
591
+ units: PromiseOrValue<BigNumberish>,
592
+ ctx: PromiseOrValue<BytesLike>,
593
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
594
+ ): Promise<ContractTransaction>;
595
+ };
596
+
597
+ agreementType(overrides?: CallOverrides): Promise<string>;
598
+
599
+ approveSubscription(
600
+ token: PromiseOrValue<string>,
601
+ publisher: PromiseOrValue<string>,
602
+ indexId: PromiseOrValue<BigNumberish>,
603
+ ctx: PromiseOrValue<BytesLike>,
604
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
605
+ ): Promise<ContractTransaction>;
606
+
607
+ calculateDistribution(
608
+ token: PromiseOrValue<string>,
609
+ publisher: PromiseOrValue<string>,
610
+ indexId: PromiseOrValue<BigNumberish>,
611
+ amount: PromiseOrValue<BigNumberish>,
612
+ overrides?: CallOverrides
613
+ ): Promise<
614
+ [BigNumber, BigNumber] & {
615
+ actualAmount: BigNumber;
616
+ newIndexValue: BigNumber;
617
+ }
618
+ >;
619
+
620
+ claim(
621
+ token: PromiseOrValue<string>,
622
+ publisher: PromiseOrValue<string>,
623
+ indexId: PromiseOrValue<BigNumberish>,
624
+ subscriber: PromiseOrValue<string>,
625
+ ctx: PromiseOrValue<BytesLike>,
626
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
627
+ ): Promise<ContractTransaction>;
628
+
629
+ createIndex(
630
+ token: PromiseOrValue<string>,
631
+ indexId: PromiseOrValue<BigNumberish>,
632
+ ctx: PromiseOrValue<BytesLike>,
633
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
634
+ ): Promise<ContractTransaction>;
635
+
636
+ deleteSubscription(
637
+ token: PromiseOrValue<string>,
638
+ publisher: PromiseOrValue<string>,
639
+ indexId: PromiseOrValue<BigNumberish>,
640
+ subscriber: PromiseOrValue<string>,
641
+ ctx: PromiseOrValue<BytesLike>,
642
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
643
+ ): Promise<ContractTransaction>;
644
+
645
+ distribute(
646
+ token: PromiseOrValue<string>,
647
+ indexId: PromiseOrValue<BigNumberish>,
648
+ amount: PromiseOrValue<BigNumberish>,
649
+ ctx: PromiseOrValue<BytesLike>,
650
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
651
+ ): Promise<ContractTransaction>;
652
+
653
+ getIndex(
654
+ token: PromiseOrValue<string>,
655
+ publisher: PromiseOrValue<string>,
656
+ indexId: PromiseOrValue<BigNumberish>,
657
+ overrides?: CallOverrides
658
+ ): Promise<
659
+ [boolean, BigNumber, BigNumber, BigNumber] & {
660
+ exist: boolean;
661
+ indexValue: BigNumber;
662
+ totalUnitsApproved: BigNumber;
663
+ totalUnitsPending: BigNumber;
664
+ }
665
+ >;
666
+
667
+ getSubscription(
668
+ token: PromiseOrValue<string>,
669
+ publisher: PromiseOrValue<string>,
670
+ indexId: PromiseOrValue<BigNumberish>,
671
+ subscriber: PromiseOrValue<string>,
672
+ overrides?: CallOverrides
673
+ ): Promise<
674
+ [boolean, boolean, BigNumber, BigNumber] & {
675
+ exist: boolean;
676
+ approved: boolean;
677
+ units: BigNumber;
678
+ pendingDistribution: BigNumber;
679
+ }
680
+ >;
681
+
682
+ getSubscriptionByID(
683
+ token: PromiseOrValue<string>,
684
+ agreementId: PromiseOrValue<BytesLike>,
685
+ overrides?: CallOverrides
686
+ ): Promise<
687
+ [string, number, boolean, BigNumber, BigNumber] & {
688
+ publisher: string;
689
+ indexId: number;
690
+ approved: boolean;
691
+ units: BigNumber;
692
+ pendingDistribution: BigNumber;
693
+ }
694
+ >;
695
+
696
+ listSubscriptions(
697
+ token: PromiseOrValue<string>,
698
+ subscriber: PromiseOrValue<string>,
699
+ overrides?: CallOverrides
700
+ ): Promise<
701
+ [string[], number[], BigNumber[]] & {
702
+ publishers: string[];
703
+ indexIds: number[];
704
+ unitsList: BigNumber[];
705
+ }
706
+ >;
707
+
708
+ realtimeBalanceOf(
709
+ token: PromiseOrValue<string>,
710
+ account: PromiseOrValue<string>,
711
+ time: PromiseOrValue<BigNumberish>,
712
+ overrides?: CallOverrides
713
+ ): Promise<
714
+ [BigNumber, BigNumber, BigNumber] & {
715
+ dynamicBalance: BigNumber;
716
+ deposit: BigNumber;
717
+ owedDeposit: BigNumber;
718
+ }
719
+ >;
720
+
721
+ revokeSubscription(
722
+ token: PromiseOrValue<string>,
723
+ publisher: PromiseOrValue<string>,
724
+ indexId: PromiseOrValue<BigNumberish>,
725
+ ctx: PromiseOrValue<BytesLike>,
726
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
727
+ ): Promise<ContractTransaction>;
728
+
729
+ updateIndex(
730
+ token: PromiseOrValue<string>,
731
+ indexId: PromiseOrValue<BigNumberish>,
732
+ indexValue: PromiseOrValue<BigNumberish>,
733
+ ctx: PromiseOrValue<BytesLike>,
734
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
735
+ ): Promise<ContractTransaction>;
736
+
737
+ updateSubscription(
738
+ token: PromiseOrValue<string>,
739
+ indexId: PromiseOrValue<BigNumberish>,
740
+ subscriber: PromiseOrValue<string>,
741
+ units: PromiseOrValue<BigNumberish>,
742
+ ctx: PromiseOrValue<BytesLike>,
743
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
744
+ ): Promise<ContractTransaction>;
745
+
746
+ callStatic: {
747
+ agreementType(overrides?: CallOverrides): Promise<string>;
748
+
749
+ approveSubscription(
750
+ token: PromiseOrValue<string>,
751
+ publisher: PromiseOrValue<string>,
752
+ indexId: PromiseOrValue<BigNumberish>,
753
+ ctx: PromiseOrValue<BytesLike>,
754
+ overrides?: CallOverrides
755
+ ): Promise<string>;
756
+
757
+ calculateDistribution(
758
+ token: PromiseOrValue<string>,
759
+ publisher: PromiseOrValue<string>,
760
+ indexId: PromiseOrValue<BigNumberish>,
761
+ amount: PromiseOrValue<BigNumberish>,
762
+ overrides?: CallOverrides
763
+ ): Promise<
764
+ [BigNumber, BigNumber] & {
765
+ actualAmount: BigNumber;
766
+ newIndexValue: BigNumber;
767
+ }
768
+ >;
769
+
770
+ claim(
771
+ token: PromiseOrValue<string>,
772
+ publisher: PromiseOrValue<string>,
773
+ indexId: PromiseOrValue<BigNumberish>,
774
+ subscriber: PromiseOrValue<string>,
775
+ ctx: PromiseOrValue<BytesLike>,
776
+ overrides?: CallOverrides
777
+ ): Promise<string>;
778
+
779
+ createIndex(
780
+ token: PromiseOrValue<string>,
781
+ indexId: PromiseOrValue<BigNumberish>,
782
+ ctx: PromiseOrValue<BytesLike>,
783
+ overrides?: CallOverrides
784
+ ): Promise<string>;
785
+
786
+ deleteSubscription(
787
+ token: PromiseOrValue<string>,
788
+ publisher: PromiseOrValue<string>,
789
+ indexId: PromiseOrValue<BigNumberish>,
790
+ subscriber: PromiseOrValue<string>,
791
+ ctx: PromiseOrValue<BytesLike>,
792
+ overrides?: CallOverrides
793
+ ): Promise<string>;
794
+
795
+ distribute(
796
+ token: PromiseOrValue<string>,
797
+ indexId: PromiseOrValue<BigNumberish>,
798
+ amount: PromiseOrValue<BigNumberish>,
799
+ ctx: PromiseOrValue<BytesLike>,
800
+ overrides?: CallOverrides
801
+ ): Promise<string>;
802
+
803
+ getIndex(
804
+ token: PromiseOrValue<string>,
805
+ publisher: PromiseOrValue<string>,
806
+ indexId: PromiseOrValue<BigNumberish>,
807
+ overrides?: CallOverrides
808
+ ): Promise<
809
+ [boolean, BigNumber, BigNumber, BigNumber] & {
810
+ exist: boolean;
811
+ indexValue: BigNumber;
812
+ totalUnitsApproved: BigNumber;
813
+ totalUnitsPending: BigNumber;
814
+ }
815
+ >;
816
+
817
+ getSubscription(
818
+ token: PromiseOrValue<string>,
819
+ publisher: PromiseOrValue<string>,
820
+ indexId: PromiseOrValue<BigNumberish>,
821
+ subscriber: PromiseOrValue<string>,
822
+ overrides?: CallOverrides
823
+ ): Promise<
824
+ [boolean, boolean, BigNumber, BigNumber] & {
825
+ exist: boolean;
826
+ approved: boolean;
827
+ units: BigNumber;
828
+ pendingDistribution: BigNumber;
829
+ }
830
+ >;
831
+
832
+ getSubscriptionByID(
833
+ token: PromiseOrValue<string>,
834
+ agreementId: PromiseOrValue<BytesLike>,
835
+ overrides?: CallOverrides
836
+ ): Promise<
837
+ [string, number, boolean, BigNumber, BigNumber] & {
838
+ publisher: string;
839
+ indexId: number;
840
+ approved: boolean;
841
+ units: BigNumber;
842
+ pendingDistribution: BigNumber;
843
+ }
844
+ >;
845
+
846
+ listSubscriptions(
847
+ token: PromiseOrValue<string>,
848
+ subscriber: PromiseOrValue<string>,
849
+ overrides?: CallOverrides
850
+ ): Promise<
851
+ [string[], number[], BigNumber[]] & {
852
+ publishers: string[];
853
+ indexIds: number[];
854
+ unitsList: BigNumber[];
855
+ }
856
+ >;
857
+
858
+ realtimeBalanceOf(
859
+ token: PromiseOrValue<string>,
860
+ account: PromiseOrValue<string>,
861
+ time: PromiseOrValue<BigNumberish>,
862
+ overrides?: CallOverrides
863
+ ): Promise<
864
+ [BigNumber, BigNumber, BigNumber] & {
865
+ dynamicBalance: BigNumber;
866
+ deposit: BigNumber;
867
+ owedDeposit: BigNumber;
868
+ }
869
+ >;
870
+
871
+ revokeSubscription(
872
+ token: PromiseOrValue<string>,
873
+ publisher: PromiseOrValue<string>,
874
+ indexId: PromiseOrValue<BigNumberish>,
875
+ ctx: PromiseOrValue<BytesLike>,
876
+ overrides?: CallOverrides
877
+ ): Promise<string>;
878
+
879
+ updateIndex(
880
+ token: PromiseOrValue<string>,
881
+ indexId: PromiseOrValue<BigNumberish>,
882
+ indexValue: PromiseOrValue<BigNumberish>,
883
+ ctx: PromiseOrValue<BytesLike>,
884
+ overrides?: CallOverrides
885
+ ): Promise<string>;
886
+
887
+ updateSubscription(
888
+ token: PromiseOrValue<string>,
889
+ indexId: PromiseOrValue<BigNumberish>,
890
+ subscriber: PromiseOrValue<string>,
891
+ units: PromiseOrValue<BigNumberish>,
892
+ ctx: PromiseOrValue<BytesLike>,
893
+ overrides?: CallOverrides
894
+ ): Promise<string>;
895
+ };
896
+
897
+ filters: {
898
+ "IndexCreated(address,address,uint32,bytes)"(
899
+ token?: PromiseOrValue<string> | null,
900
+ publisher?: PromiseOrValue<string> | null,
901
+ indexId?: PromiseOrValue<BigNumberish> | null,
902
+ userData?: null
903
+ ): IndexCreatedEventFilter;
904
+ IndexCreated(
905
+ token?: PromiseOrValue<string> | null,
906
+ publisher?: PromiseOrValue<string> | null,
907
+ indexId?: PromiseOrValue<BigNumberish> | null,
908
+ userData?: null
909
+ ): IndexCreatedEventFilter;
910
+
911
+ "IndexDistributionClaimed(address,address,uint32,address,uint256)"(
912
+ token?: PromiseOrValue<string> | null,
913
+ publisher?: PromiseOrValue<string> | null,
914
+ indexId?: PromiseOrValue<BigNumberish> | null,
915
+ subscriber?: null,
916
+ amount?: null
917
+ ): IndexDistributionClaimedEventFilter;
918
+ IndexDistributionClaimed(
919
+ token?: PromiseOrValue<string> | null,
920
+ publisher?: PromiseOrValue<string> | null,
921
+ indexId?: PromiseOrValue<BigNumberish> | null,
922
+ subscriber?: null,
923
+ amount?: null
924
+ ): IndexDistributionClaimedEventFilter;
925
+
926
+ "IndexSubscribed(address,address,uint32,address,bytes)"(
927
+ token?: PromiseOrValue<string> | null,
928
+ publisher?: PromiseOrValue<string> | null,
929
+ indexId?: PromiseOrValue<BigNumberish> | null,
930
+ subscriber?: null,
931
+ userData?: null
932
+ ): IndexSubscribedEventFilter;
933
+ IndexSubscribed(
934
+ token?: PromiseOrValue<string> | null,
935
+ publisher?: PromiseOrValue<string> | null,
936
+ indexId?: PromiseOrValue<BigNumberish> | null,
937
+ subscriber?: null,
938
+ userData?: null
939
+ ): IndexSubscribedEventFilter;
940
+
941
+ "IndexUnitsUpdated(address,address,uint32,address,uint128,bytes)"(
942
+ token?: PromiseOrValue<string> | null,
943
+ publisher?: PromiseOrValue<string> | null,
944
+ indexId?: PromiseOrValue<BigNumberish> | null,
945
+ subscriber?: null,
946
+ units?: null,
947
+ userData?: null
948
+ ): IndexUnitsUpdatedEventFilter;
949
+ IndexUnitsUpdated(
950
+ token?: PromiseOrValue<string> | null,
951
+ publisher?: PromiseOrValue<string> | null,
952
+ indexId?: PromiseOrValue<BigNumberish> | null,
953
+ subscriber?: null,
954
+ units?: null,
955
+ userData?: null
956
+ ): IndexUnitsUpdatedEventFilter;
957
+
958
+ "IndexUnsubscribed(address,address,uint32,address,bytes)"(
959
+ token?: PromiseOrValue<string> | null,
960
+ publisher?: PromiseOrValue<string> | null,
961
+ indexId?: PromiseOrValue<BigNumberish> | null,
962
+ subscriber?: null,
963
+ userData?: null
964
+ ): IndexUnsubscribedEventFilter;
965
+ IndexUnsubscribed(
966
+ token?: PromiseOrValue<string> | null,
967
+ publisher?: PromiseOrValue<string> | null,
968
+ indexId?: PromiseOrValue<BigNumberish> | null,
969
+ subscriber?: null,
970
+ userData?: null
971
+ ): IndexUnsubscribedEventFilter;
972
+
973
+ "IndexUpdated(address,address,uint32,uint128,uint128,uint128,uint128,bytes)"(
974
+ token?: PromiseOrValue<string> | null,
975
+ publisher?: PromiseOrValue<string> | null,
976
+ indexId?: PromiseOrValue<BigNumberish> | null,
977
+ oldIndexValue?: null,
978
+ newIndexValue?: null,
979
+ totalUnitsPending?: null,
980
+ totalUnitsApproved?: null,
981
+ userData?: null
982
+ ): IndexUpdatedEventFilter;
983
+ IndexUpdated(
984
+ token?: PromiseOrValue<string> | null,
985
+ publisher?: PromiseOrValue<string> | null,
986
+ indexId?: PromiseOrValue<BigNumberish> | null,
987
+ oldIndexValue?: null,
988
+ newIndexValue?: null,
989
+ totalUnitsPending?: null,
990
+ totalUnitsApproved?: null,
991
+ userData?: null
992
+ ): IndexUpdatedEventFilter;
993
+
994
+ "SubscriptionApproved(address,address,address,uint32,bytes)"(
995
+ token?: PromiseOrValue<string> | null,
996
+ subscriber?: PromiseOrValue<string> | null,
997
+ publisher?: null,
998
+ indexId?: null,
999
+ userData?: null
1000
+ ): SubscriptionApprovedEventFilter;
1001
+ SubscriptionApproved(
1002
+ token?: PromiseOrValue<string> | null,
1003
+ subscriber?: PromiseOrValue<string> | null,
1004
+ publisher?: null,
1005
+ indexId?: null,
1006
+ userData?: null
1007
+ ): SubscriptionApprovedEventFilter;
1008
+
1009
+ "SubscriptionDistributionClaimed(address,address,address,uint32,uint256)"(
1010
+ token?: PromiseOrValue<string> | null,
1011
+ subscriber?: PromiseOrValue<string> | null,
1012
+ publisher?: null,
1013
+ indexId?: null,
1014
+ amount?: null
1015
+ ): SubscriptionDistributionClaimedEventFilter;
1016
+ SubscriptionDistributionClaimed(
1017
+ token?: PromiseOrValue<string> | null,
1018
+ subscriber?: PromiseOrValue<string> | null,
1019
+ publisher?: null,
1020
+ indexId?: null,
1021
+ amount?: null
1022
+ ): SubscriptionDistributionClaimedEventFilter;
1023
+
1024
+ "SubscriptionRevoked(address,address,address,uint32,bytes)"(
1025
+ token?: PromiseOrValue<string> | null,
1026
+ subscriber?: PromiseOrValue<string> | null,
1027
+ publisher?: null,
1028
+ indexId?: null,
1029
+ userData?: null
1030
+ ): SubscriptionRevokedEventFilter;
1031
+ SubscriptionRevoked(
1032
+ token?: PromiseOrValue<string> | null,
1033
+ subscriber?: PromiseOrValue<string> | null,
1034
+ publisher?: null,
1035
+ indexId?: null,
1036
+ userData?: null
1037
+ ): SubscriptionRevokedEventFilter;
1038
+
1039
+ "SubscriptionUnitsUpdated(address,address,address,uint32,uint128,bytes)"(
1040
+ token?: PromiseOrValue<string> | null,
1041
+ subscriber?: PromiseOrValue<string> | null,
1042
+ publisher?: null,
1043
+ indexId?: null,
1044
+ units?: null,
1045
+ userData?: null
1046
+ ): SubscriptionUnitsUpdatedEventFilter;
1047
+ SubscriptionUnitsUpdated(
1048
+ token?: PromiseOrValue<string> | null,
1049
+ subscriber?: PromiseOrValue<string> | null,
1050
+ publisher?: null,
1051
+ indexId?: null,
1052
+ units?: null,
1053
+ userData?: null
1054
+ ): SubscriptionUnitsUpdatedEventFilter;
1055
+ };
1056
+
1057
+ estimateGas: {
1058
+ agreementType(overrides?: CallOverrides): Promise<BigNumber>;
1059
+
1060
+ approveSubscription(
1061
+ token: PromiseOrValue<string>,
1062
+ publisher: PromiseOrValue<string>,
1063
+ indexId: PromiseOrValue<BigNumberish>,
1064
+ ctx: PromiseOrValue<BytesLike>,
1065
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1066
+ ): Promise<BigNumber>;
1067
+
1068
+ calculateDistribution(
1069
+ token: PromiseOrValue<string>,
1070
+ publisher: PromiseOrValue<string>,
1071
+ indexId: PromiseOrValue<BigNumberish>,
1072
+ amount: PromiseOrValue<BigNumberish>,
1073
+ overrides?: CallOverrides
1074
+ ): Promise<BigNumber>;
1075
+
1076
+ claim(
1077
+ token: PromiseOrValue<string>,
1078
+ publisher: PromiseOrValue<string>,
1079
+ indexId: PromiseOrValue<BigNumberish>,
1080
+ subscriber: PromiseOrValue<string>,
1081
+ ctx: PromiseOrValue<BytesLike>,
1082
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1083
+ ): Promise<BigNumber>;
1084
+
1085
+ createIndex(
1086
+ token: PromiseOrValue<string>,
1087
+ indexId: PromiseOrValue<BigNumberish>,
1088
+ ctx: PromiseOrValue<BytesLike>,
1089
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1090
+ ): Promise<BigNumber>;
1091
+
1092
+ deleteSubscription(
1093
+ token: PromiseOrValue<string>,
1094
+ publisher: PromiseOrValue<string>,
1095
+ indexId: PromiseOrValue<BigNumberish>,
1096
+ subscriber: PromiseOrValue<string>,
1097
+ ctx: PromiseOrValue<BytesLike>,
1098
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1099
+ ): Promise<BigNumber>;
1100
+
1101
+ distribute(
1102
+ token: PromiseOrValue<string>,
1103
+ indexId: PromiseOrValue<BigNumberish>,
1104
+ amount: PromiseOrValue<BigNumberish>,
1105
+ ctx: PromiseOrValue<BytesLike>,
1106
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1107
+ ): Promise<BigNumber>;
1108
+
1109
+ getIndex(
1110
+ token: PromiseOrValue<string>,
1111
+ publisher: PromiseOrValue<string>,
1112
+ indexId: PromiseOrValue<BigNumberish>,
1113
+ overrides?: CallOverrides
1114
+ ): Promise<BigNumber>;
1115
+
1116
+ getSubscription(
1117
+ token: PromiseOrValue<string>,
1118
+ publisher: PromiseOrValue<string>,
1119
+ indexId: PromiseOrValue<BigNumberish>,
1120
+ subscriber: PromiseOrValue<string>,
1121
+ overrides?: CallOverrides
1122
+ ): Promise<BigNumber>;
1123
+
1124
+ getSubscriptionByID(
1125
+ token: PromiseOrValue<string>,
1126
+ agreementId: PromiseOrValue<BytesLike>,
1127
+ overrides?: CallOverrides
1128
+ ): Promise<BigNumber>;
1129
+
1130
+ listSubscriptions(
1131
+ token: PromiseOrValue<string>,
1132
+ subscriber: PromiseOrValue<string>,
1133
+ overrides?: CallOverrides
1134
+ ): Promise<BigNumber>;
1135
+
1136
+ realtimeBalanceOf(
1137
+ token: PromiseOrValue<string>,
1138
+ account: PromiseOrValue<string>,
1139
+ time: PromiseOrValue<BigNumberish>,
1140
+ overrides?: CallOverrides
1141
+ ): Promise<BigNumber>;
1142
+
1143
+ revokeSubscription(
1144
+ token: PromiseOrValue<string>,
1145
+ publisher: PromiseOrValue<string>,
1146
+ indexId: PromiseOrValue<BigNumberish>,
1147
+ ctx: PromiseOrValue<BytesLike>,
1148
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1149
+ ): Promise<BigNumber>;
1150
+
1151
+ updateIndex(
1152
+ token: PromiseOrValue<string>,
1153
+ indexId: PromiseOrValue<BigNumberish>,
1154
+ indexValue: PromiseOrValue<BigNumberish>,
1155
+ ctx: PromiseOrValue<BytesLike>,
1156
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1157
+ ): Promise<BigNumber>;
1158
+
1159
+ updateSubscription(
1160
+ token: PromiseOrValue<string>,
1161
+ indexId: PromiseOrValue<BigNumberish>,
1162
+ subscriber: PromiseOrValue<string>,
1163
+ units: PromiseOrValue<BigNumberish>,
1164
+ ctx: PromiseOrValue<BytesLike>,
1165
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1166
+ ): Promise<BigNumber>;
1167
+ };
1168
+
1169
+ populateTransaction: {
1170
+ agreementType(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1171
+
1172
+ approveSubscription(
1173
+ token: PromiseOrValue<string>,
1174
+ publisher: PromiseOrValue<string>,
1175
+ indexId: PromiseOrValue<BigNumberish>,
1176
+ ctx: PromiseOrValue<BytesLike>,
1177
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1178
+ ): Promise<PopulatedTransaction>;
1179
+
1180
+ calculateDistribution(
1181
+ token: PromiseOrValue<string>,
1182
+ publisher: PromiseOrValue<string>,
1183
+ indexId: PromiseOrValue<BigNumberish>,
1184
+ amount: PromiseOrValue<BigNumberish>,
1185
+ overrides?: CallOverrides
1186
+ ): Promise<PopulatedTransaction>;
1187
+
1188
+ claim(
1189
+ token: PromiseOrValue<string>,
1190
+ publisher: PromiseOrValue<string>,
1191
+ indexId: PromiseOrValue<BigNumberish>,
1192
+ subscriber: PromiseOrValue<string>,
1193
+ ctx: PromiseOrValue<BytesLike>,
1194
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1195
+ ): Promise<PopulatedTransaction>;
1196
+
1197
+ createIndex(
1198
+ token: PromiseOrValue<string>,
1199
+ indexId: PromiseOrValue<BigNumberish>,
1200
+ ctx: PromiseOrValue<BytesLike>,
1201
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1202
+ ): Promise<PopulatedTransaction>;
1203
+
1204
+ deleteSubscription(
1205
+ token: PromiseOrValue<string>,
1206
+ publisher: PromiseOrValue<string>,
1207
+ indexId: PromiseOrValue<BigNumberish>,
1208
+ subscriber: PromiseOrValue<string>,
1209
+ ctx: PromiseOrValue<BytesLike>,
1210
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1211
+ ): Promise<PopulatedTransaction>;
1212
+
1213
+ distribute(
1214
+ token: PromiseOrValue<string>,
1215
+ indexId: PromiseOrValue<BigNumberish>,
1216
+ amount: PromiseOrValue<BigNumberish>,
1217
+ ctx: PromiseOrValue<BytesLike>,
1218
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1219
+ ): Promise<PopulatedTransaction>;
1220
+
1221
+ getIndex(
1222
+ token: PromiseOrValue<string>,
1223
+ publisher: PromiseOrValue<string>,
1224
+ indexId: PromiseOrValue<BigNumberish>,
1225
+ overrides?: CallOverrides
1226
+ ): Promise<PopulatedTransaction>;
1227
+
1228
+ getSubscription(
1229
+ token: PromiseOrValue<string>,
1230
+ publisher: PromiseOrValue<string>,
1231
+ indexId: PromiseOrValue<BigNumberish>,
1232
+ subscriber: PromiseOrValue<string>,
1233
+ overrides?: CallOverrides
1234
+ ): Promise<PopulatedTransaction>;
1235
+
1236
+ getSubscriptionByID(
1237
+ token: PromiseOrValue<string>,
1238
+ agreementId: PromiseOrValue<BytesLike>,
1239
+ overrides?: CallOverrides
1240
+ ): Promise<PopulatedTransaction>;
1241
+
1242
+ listSubscriptions(
1243
+ token: PromiseOrValue<string>,
1244
+ subscriber: PromiseOrValue<string>,
1245
+ overrides?: CallOverrides
1246
+ ): Promise<PopulatedTransaction>;
1247
+
1248
+ realtimeBalanceOf(
1249
+ token: PromiseOrValue<string>,
1250
+ account: PromiseOrValue<string>,
1251
+ time: PromiseOrValue<BigNumberish>,
1252
+ overrides?: CallOverrides
1253
+ ): Promise<PopulatedTransaction>;
1254
+
1255
+ revokeSubscription(
1256
+ token: PromiseOrValue<string>,
1257
+ publisher: PromiseOrValue<string>,
1258
+ indexId: PromiseOrValue<BigNumberish>,
1259
+ ctx: PromiseOrValue<BytesLike>,
1260
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1261
+ ): Promise<PopulatedTransaction>;
1262
+
1263
+ updateIndex(
1264
+ token: PromiseOrValue<string>,
1265
+ indexId: PromiseOrValue<BigNumberish>,
1266
+ indexValue: PromiseOrValue<BigNumberish>,
1267
+ ctx: PromiseOrValue<BytesLike>,
1268
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1269
+ ): Promise<PopulatedTransaction>;
1270
+
1271
+ updateSubscription(
1272
+ token: PromiseOrValue<string>,
1273
+ indexId: PromiseOrValue<BigNumberish>,
1274
+ subscriber: PromiseOrValue<string>,
1275
+ units: PromiseOrValue<BigNumberish>,
1276
+ ctx: PromiseOrValue<BytesLike>,
1277
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1278
+ ): Promise<PopulatedTransaction>;
1279
+ };
1280
+ }