@underscore-finance/sdk 0.3.5 → 1.0.1

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 (244) hide show
  1. package/dist/contracts/AaveV3.d.ts +2120 -0
  2. package/dist/contracts/AaveV3.d.ts.map +1 -0
  3. package/dist/contracts/AaveV3.js +2714 -0
  4. package/dist/contracts/AeroClassic.d.ts +2017 -0
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -0
  6. package/dist/contracts/AeroClassic.js +2567 -0
  7. package/dist/contracts/AeroSlipstream.d.ts +2113 -0
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -0
  9. package/dist/contracts/AeroSlipstream.js +2692 -0
  10. package/dist/contracts/Agent.d.ts +2189 -1138
  11. package/dist/contracts/Agent.d.ts.map +1 -1
  12. package/dist/contracts/Agent.js +2807 -1343
  13. package/dist/contracts/AgentWrapper.d.ts +3760 -0
  14. package/dist/contracts/AgentWrapper.d.ts.map +1 -0
  15. package/dist/contracts/AgentWrapper.js +4922 -0
  16. package/dist/contracts/Appraiser.d.ts +997 -0
  17. package/dist/contracts/Appraiser.d.ts.map +1 -0
  18. package/dist/contracts/Appraiser.js +1285 -0
  19. package/dist/contracts/Billing.d.ts +420 -0
  20. package/dist/contracts/Billing.d.ts.map +1 -0
  21. package/dist/contracts/Billing.js +506 -0
  22. package/dist/contracts/ChequeBook.d.ts +1184 -0
  23. package/dist/contracts/ChequeBook.d.ts.map +1 -0
  24. package/dist/contracts/ChequeBook.js +1352 -0
  25. package/dist/contracts/CompoundV3.d.ts +2158 -0
  26. package/dist/contracts/CompoundV3.d.ts.map +1 -0
  27. package/dist/contracts/CompoundV3.js +2764 -0
  28. package/dist/contracts/Curve.d.ts +1077 -0
  29. package/dist/contracts/Curve.d.ts.map +1 -0
  30. package/dist/contracts/Curve.js +1357 -0
  31. package/dist/contracts/DefaultsBase.d.ts +290 -0
  32. package/dist/contracts/DefaultsBase.d.ts.map +1 -0
  33. package/dist/contracts/DefaultsBase.js +316 -0
  34. package/dist/contracts/Euler.d.ts +2172 -0
  35. package/dist/contracts/Euler.d.ts.map +1 -0
  36. package/dist/contracts/Euler.js +2782 -0
  37. package/dist/contracts/Fluid.d.ts +2106 -0
  38. package/dist/contracts/Fluid.d.ts.map +1 -0
  39. package/dist/contracts/Fluid.js +2696 -0
  40. package/dist/contracts/Hatchery.d.ts +541 -0
  41. package/dist/contracts/Hatchery.d.ts.map +1 -0
  42. package/dist/contracts/Hatchery.js +671 -0
  43. package/dist/contracts/HighCommand.d.ts +1868 -0
  44. package/dist/contracts/HighCommand.d.ts.map +1 -0
  45. package/dist/contracts/HighCommand.js +2149 -0
  46. package/dist/contracts/Kernel.d.ts +354 -0
  47. package/dist/contracts/Kernel.d.ts.map +1 -0
  48. package/dist/contracts/Kernel.js +412 -0
  49. package/dist/contracts/Ledger.d.ts +694 -0
  50. package/dist/contracts/Ledger.d.ts.map +1 -0
  51. package/dist/contracts/Ledger.js +834 -0
  52. package/dist/contracts/LegoBook.d.ts +1424 -0
  53. package/dist/contracts/LegoBook.d.ts.map +1 -0
  54. package/dist/contracts/LegoBook.js +1783 -0
  55. package/dist/contracts/LegoTools.d.ts +1898 -0
  56. package/dist/contracts/LegoTools.d.ts.map +1 -0
  57. package/dist/contracts/LegoTools.js +2378 -0
  58. package/dist/contracts/LegoUniswapV0_2.d.ts +1204 -0
  59. package/dist/contracts/LegoUniswapV0_2.d.ts.map +1 -0
  60. package/dist/contracts/LegoUniswapV0_2.js +1546 -0
  61. package/dist/contracts/LootDistributor.d.ts +996 -0
  62. package/dist/contracts/LootDistributor.d.ts.map +1 -0
  63. package/dist/contracts/LootDistributor.js +1255 -0
  64. package/dist/contracts/Migrator.d.ts +268 -0
  65. package/dist/contracts/Migrator.d.ts.map +1 -0
  66. package/dist/contracts/Migrator.js +324 -0
  67. package/dist/contracts/MissionControl.d.ts +1331 -0
  68. package/dist/contracts/MissionControl.d.ts.map +1 -0
  69. package/dist/contracts/MissionControl.js +1485 -0
  70. package/dist/contracts/Moonwell.d.ts +2137 -0
  71. package/dist/contracts/Moonwell.d.ts.map +1 -0
  72. package/dist/contracts/Moonwell.js +2737 -0
  73. package/dist/contracts/Morpho.d.ts +2172 -0
  74. package/dist/contracts/Morpho.d.ts.map +1 -0
  75. package/dist/contracts/Morpho.js +2782 -0
  76. package/dist/contracts/Paymaster.d.ts +1679 -0
  77. package/dist/contracts/Paymaster.d.ts.map +1 -0
  78. package/dist/contracts/Paymaster.js +2077 -0
  79. package/dist/contracts/RipeLego.d.ts +2263 -0
  80. package/dist/contracts/RipeLego.d.ts.map +1 -0
  81. package/dist/contracts/RipeLego.js +2891 -0
  82. package/dist/contracts/Sentinel.d.ts +1804 -0
  83. package/dist/contracts/Sentinel.d.ts.map +1 -0
  84. package/dist/contracts/Sentinel.js +2152 -0
  85. package/dist/contracts/Switchboard.d.ts +1395 -0
  86. package/dist/contracts/Switchboard.d.ts.map +1 -0
  87. package/dist/contracts/Switchboard.js +1746 -0
  88. package/dist/contracts/SwitchboardAlpha.d.ts +2228 -0
  89. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -0
  90. package/dist/contracts/SwitchboardAlpha.js +2743 -0
  91. package/dist/contracts/SwitchboardBravo.d.ts +1498 -0
  92. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -0
  93. package/dist/contracts/SwitchboardBravo.js +1855 -0
  94. package/dist/contracts/UndyHq.d.ts +1580 -0
  95. package/dist/contracts/UndyHq.d.ts.map +1 -0
  96. package/dist/contracts/UndyHq.js +1986 -0
  97. package/dist/contracts/UniswapV2.d.ts +2017 -0
  98. package/dist/contracts/UniswapV2.d.ts.map +1 -0
  99. package/dist/contracts/UniswapV2.js +2567 -0
  100. package/dist/contracts/UniswapV3.d.ts +2113 -0
  101. package/dist/contracts/UniswapV3.d.ts.map +1 -0
  102. package/dist/contracts/UniswapV3.js +2692 -0
  103. package/dist/contracts/UserWallet.d.ts +1438 -784
  104. package/dist/contracts/UserWallet.d.ts.map +1 -1
  105. package/dist/contracts/UserWallet.js +1854 -935
  106. package/dist/contracts/UserWalletConfig.d.ts +3034 -1231
  107. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  108. package/dist/contracts/UserWalletConfig.js +3395 -1407
  109. package/dist/contracts/WalletBackpack.d.ts +1183 -0
  110. package/dist/contracts/WalletBackpack.d.ts.map +1 -0
  111. package/dist/contracts/WalletBackpack.js +1484 -0
  112. package/dist/contracts/index.d.ts +72 -36
  113. package/dist/contracts/index.d.ts.map +1 -1
  114. package/dist/contracts/index.js +72 -36
  115. package/dist/contracts/sdk.d.ts +146 -72
  116. package/dist/contracts/sdk.d.ts.map +1 -1
  117. package/dist/contracts/sdk.js +146 -72
  118. package/dist/contracts/v0_1_AddyRegistry.d.ts +473 -0
  119. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +1 -0
  120. package/dist/contracts/v0_1_AddyRegistry.js +594 -0
  121. package/dist/contracts/v0_1_Agent.d.ts +2631 -0
  122. package/dist/contracts/v0_1_Agent.d.ts.map +1 -0
  123. package/dist/contracts/v0_1_Agent.js +3372 -0
  124. package/dist/contracts/v0_1_AgentFactory.d.ts +1054 -0
  125. package/dist/contracts/v0_1_AgentFactory.d.ts.map +1 -0
  126. package/dist/contracts/v0_1_AgentFactory.js +1336 -0
  127. package/dist/contracts/v0_1_UserWallet.d.ts +1980 -0
  128. package/dist/contracts/v0_1_UserWallet.d.ts.map +1 -0
  129. package/dist/contracts/v0_1_UserWallet.js +2581 -0
  130. package/dist/contracts/v0_1_UserWalletConfig.d.ts +1400 -0
  131. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +1 -0
  132. package/dist/contracts/v0_1_UserWalletConfig.js +1676 -0
  133. package/dist/contracts/v0_2_AddyRegistry.d.ts +1050 -0
  134. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +1 -0
  135. package/dist/contracts/v0_2_AddyRegistry.js +1313 -0
  136. package/dist/contracts/v0_2_Agent.d.ts +2709 -0
  137. package/dist/contracts/v0_2_Agent.d.ts.map +1 -0
  138. package/dist/contracts/v0_2_Agent.js +3458 -0
  139. package/dist/contracts/v0_2_AgentFactory.d.ts +1275 -0
  140. package/dist/contracts/v0_2_AgentFactory.d.ts.map +1 -0
  141. package/dist/contracts/v0_2_AgentFactory.js +1609 -0
  142. package/dist/contracts/v0_2_UserWallet.d.ts +1958 -0
  143. package/dist/contracts/v0_2_UserWallet.d.ts.map +1 -0
  144. package/dist/contracts/v0_2_UserWallet.js +2553 -0
  145. package/dist/contracts/v0_2_UserWalletConfig.d.ts +1468 -0
  146. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +1 -0
  147. package/dist/contracts/v0_2_UserWalletConfig.js +1764 -0
  148. package/dist/contracts/v0_3_AddyRegistry.d.ts +1109 -0
  149. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +1 -0
  150. package/dist/contracts/v0_3_AddyRegistry.js +1392 -0
  151. package/dist/contracts/v0_3_Agent.d.ts +2709 -0
  152. package/dist/contracts/v0_3_Agent.d.ts.map +1 -0
  153. package/dist/contracts/v0_3_Agent.js +3458 -0
  154. package/dist/contracts/v0_3_AgentFactory.d.ts +1665 -0
  155. package/dist/contracts/v0_3_AgentFactory.d.ts.map +1 -0
  156. package/dist/contracts/v0_3_AgentFactory.js +2078 -0
  157. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +706 -0
  158. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +1 -0
  159. package/dist/contracts/v0_3_ChainlinkFeeds.js +900 -0
  160. package/dist/contracts/v0_3_LegoAaveV3.d.ts +1033 -0
  161. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +1 -0
  162. package/dist/contracts/v0_3_LegoAaveV3.js +1330 -0
  163. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +1204 -0
  164. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +1 -0
  165. package/dist/contracts/v0_3_LegoAeroClassic.js +1546 -0
  166. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +1300 -0
  167. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +1 -0
  168. package/dist/contracts/v0_3_LegoAeroSlipstream.js +1671 -0
  169. package/dist/contracts/v0_3_LegoCommon.d.ts +164 -0
  170. package/dist/contracts/v0_3_LegoCommon.d.ts.map +1 -0
  171. package/dist/contracts/v0_3_LegoCommon.js +202 -0
  172. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +1060 -0
  173. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +1 -0
  174. package/dist/contracts/v0_3_LegoCompoundV3.js +1365 -0
  175. package/dist/contracts/v0_3_LegoCredit.d.ts +140 -0
  176. package/dist/contracts/v0_3_LegoCredit.d.ts.map +1 -0
  177. package/dist/contracts/v0_3_LegoCredit.js +179 -0
  178. package/dist/contracts/v0_3_LegoCurve.d.ts +1189 -0
  179. package/dist/contracts/v0_3_LegoCurve.d.ts.map +1 -0
  180. package/dist/contracts/v0_3_LegoCurve.js +1519 -0
  181. package/dist/contracts/v0_3_LegoDex.d.ts +587 -0
  182. package/dist/contracts/v0_3_LegoDex.d.ts.map +1 -0
  183. package/dist/contracts/v0_3_LegoDex.js +774 -0
  184. package/dist/contracts/v0_3_LegoEuler.d.ts +1074 -0
  185. package/dist/contracts/v0_3_LegoEuler.d.ts.map +1 -0
  186. package/dist/contracts/v0_3_LegoEuler.js +1383 -0
  187. package/dist/contracts/v0_3_LegoFluid.d.ts +1025 -0
  188. package/dist/contracts/v0_3_LegoFluid.d.ts.map +1 -0
  189. package/dist/contracts/v0_3_LegoFluid.js +1320 -0
  190. package/dist/contracts/v0_3_LegoHelper.d.ts +1563 -0
  191. package/dist/contracts/v0_3_LegoHelper.d.ts.map +1 -0
  192. package/dist/contracts/v0_3_LegoHelper.js +1947 -0
  193. package/dist/contracts/v0_3_LegoMoonwell.d.ts +1042 -0
  194. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +1 -0
  195. package/dist/contracts/v0_3_LegoMoonwell.js +1342 -0
  196. package/dist/contracts/v0_3_LegoMorpho.d.ts +1074 -0
  197. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +1 -0
  198. package/dist/contracts/v0_3_LegoMorpho.js +1383 -0
  199. package/dist/contracts/v0_3_LegoRegistry.d.ts +1079 -0
  200. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +1 -0
  201. package/dist/contracts/v0_3_LegoRegistry.js +1368 -0
  202. package/dist/contracts/v0_3_LegoSky.d.ts +923 -0
  203. package/dist/contracts/v0_3_LegoSky.d.ts.map +1 -0
  204. package/dist/contracts/v0_3_LegoSky.js +1180 -0
  205. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +1338 -0
  206. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +1 -0
  207. package/dist/contracts/v0_3_LegoUniswapV3.js +1718 -0
  208. package/dist/contracts/v0_3_LegoYield.d.ts +390 -0
  209. package/dist/contracts/v0_3_LegoYield.d.ts.map +1 -0
  210. package/dist/contracts/v0_3_LegoYield.js +511 -0
  211. package/dist/contracts/v0_3_OracleParser.d.ts +207 -0
  212. package/dist/contracts/v0_3_OracleParser.d.ts.map +1 -0
  213. package/dist/contracts/v0_3_OracleParser.js +264 -0
  214. package/dist/contracts/v0_3_OracleRegistry.d.ts +1221 -0
  215. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +1 -0
  216. package/dist/contracts/v0_3_OracleRegistry.js +1562 -0
  217. package/dist/contracts/v0_3_PriceSheets.d.ts +1127 -0
  218. package/dist/contracts/v0_3_PriceSheets.d.ts.map +1 -0
  219. package/dist/contracts/v0_3_PriceSheets.js +1383 -0
  220. package/dist/contracts/v0_3_PythFeeds.d.ts +640 -0
  221. package/dist/contracts/v0_3_PythFeeds.d.ts.map +1 -0
  222. package/dist/contracts/v0_3_PythFeeds.js +813 -0
  223. package/dist/contracts/v0_3_StorkFeeds.d.ts +640 -0
  224. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +1 -0
  225. package/dist/contracts/v0_3_StorkFeeds.js +813 -0
  226. package/dist/contracts/v0_3_UserWallet.d.ts +1975 -0
  227. package/dist/contracts/v0_3_UserWallet.d.ts.map +1 -0
  228. package/dist/contracts/v0_3_UserWallet.js +2577 -0
  229. package/dist/contracts/v0_3_UserWalletConfig.d.ts +1852 -0
  230. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +1 -0
  231. package/dist/contracts/v0_3_UserWalletConfig.js +2263 -0
  232. package/dist/getContracts.d.ts +77 -0
  233. package/dist/getContracts.d.ts.map +1 -0
  234. package/dist/getContracts.js +67 -0
  235. package/dist/getLegacyContracts.d.ts +69 -0
  236. package/dist/getLegacyContracts.d.ts.map +1 -0
  237. package/dist/getLegacyContracts.js +55 -0
  238. package/dist/getSwapInstructions.d.ts +60 -0
  239. package/dist/getSwapInstructions.d.ts.map +1 -0
  240. package/dist/getSwapInstructions.js +41 -0
  241. package/dist/index.d.ts +3 -475
  242. package/dist/index.d.ts.map +1 -1
  243. package/dist/index.js +8 -182
  244. package/package.json +2 -2
@@ -0,0 +1,2077 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* @ts-nocheck */
5
+ import { singleQuery, mutate } from '@dappql/async';
6
+ export const abi = [
7
+ {
8
+ name: 'PayeeAdded',
9
+ inputs: [
10
+ {
11
+ name: 'user',
12
+ type: 'address',
13
+ indexed: true,
14
+ },
15
+ {
16
+ name: 'payee',
17
+ type: 'address',
18
+ indexed: true,
19
+ },
20
+ {
21
+ name: 'startBlock',
22
+ type: 'uint256',
23
+ indexed: false,
24
+ },
25
+ {
26
+ name: 'expiryBlock',
27
+ type: 'uint256',
28
+ indexed: false,
29
+ },
30
+ {
31
+ name: 'canPull',
32
+ type: 'bool',
33
+ indexed: false,
34
+ },
35
+ {
36
+ name: 'periodLength',
37
+ type: 'uint256',
38
+ indexed: false,
39
+ },
40
+ {
41
+ name: 'maxNumTxsPerPeriod',
42
+ type: 'uint256',
43
+ indexed: false,
44
+ },
45
+ {
46
+ name: 'txCooldownBlocks',
47
+ type: 'uint256',
48
+ indexed: false,
49
+ },
50
+ {
51
+ name: 'failOnZeroPrice',
52
+ type: 'bool',
53
+ indexed: false,
54
+ },
55
+ {
56
+ name: 'primaryAsset',
57
+ type: 'address',
58
+ indexed: false,
59
+ },
60
+ {
61
+ name: 'onlyPrimaryAsset',
62
+ type: 'bool',
63
+ indexed: false,
64
+ },
65
+ {
66
+ name: 'unitPerTxCap',
67
+ type: 'uint256',
68
+ indexed: false,
69
+ },
70
+ {
71
+ name: 'unitPerPeriodCap',
72
+ type: 'uint256',
73
+ indexed: false,
74
+ },
75
+ {
76
+ name: 'unitLifetimeCap',
77
+ type: 'uint256',
78
+ indexed: false,
79
+ },
80
+ {
81
+ name: 'usdPerTxCap',
82
+ type: 'uint256',
83
+ indexed: false,
84
+ },
85
+ {
86
+ name: 'usdPerPeriodCap',
87
+ type: 'uint256',
88
+ indexed: false,
89
+ },
90
+ {
91
+ name: 'usdLifetimeCap',
92
+ type: 'uint256',
93
+ indexed: false,
94
+ },
95
+ ],
96
+ anonymous: false,
97
+ type: 'event',
98
+ },
99
+ {
100
+ name: 'PayeeUpdated',
101
+ inputs: [
102
+ {
103
+ name: 'user',
104
+ type: 'address',
105
+ indexed: true,
106
+ },
107
+ {
108
+ name: 'payee',
109
+ type: 'address',
110
+ indexed: true,
111
+ },
112
+ {
113
+ name: 'startBlock',
114
+ type: 'uint256',
115
+ indexed: false,
116
+ },
117
+ {
118
+ name: 'expiryBlock',
119
+ type: 'uint256',
120
+ indexed: false,
121
+ },
122
+ {
123
+ name: 'canPull',
124
+ type: 'bool',
125
+ indexed: false,
126
+ },
127
+ {
128
+ name: 'periodLength',
129
+ type: 'uint256',
130
+ indexed: false,
131
+ },
132
+ {
133
+ name: 'maxNumTxsPerPeriod',
134
+ type: 'uint256',
135
+ indexed: false,
136
+ },
137
+ {
138
+ name: 'txCooldownBlocks',
139
+ type: 'uint256',
140
+ indexed: false,
141
+ },
142
+ {
143
+ name: 'failOnZeroPrice',
144
+ type: 'bool',
145
+ indexed: false,
146
+ },
147
+ {
148
+ name: 'primaryAsset',
149
+ type: 'address',
150
+ indexed: false,
151
+ },
152
+ {
153
+ name: 'onlyPrimaryAsset',
154
+ type: 'bool',
155
+ indexed: false,
156
+ },
157
+ {
158
+ name: 'unitPerTxCap',
159
+ type: 'uint256',
160
+ indexed: false,
161
+ },
162
+ {
163
+ name: 'unitPerPeriodCap',
164
+ type: 'uint256',
165
+ indexed: false,
166
+ },
167
+ {
168
+ name: 'unitLifetimeCap',
169
+ type: 'uint256',
170
+ indexed: false,
171
+ },
172
+ {
173
+ name: 'usdPerTxCap',
174
+ type: 'uint256',
175
+ indexed: false,
176
+ },
177
+ {
178
+ name: 'usdPerPeriodCap',
179
+ type: 'uint256',
180
+ indexed: false,
181
+ },
182
+ {
183
+ name: 'usdLifetimeCap',
184
+ type: 'uint256',
185
+ indexed: false,
186
+ },
187
+ ],
188
+ anonymous: false,
189
+ type: 'event',
190
+ },
191
+ {
192
+ name: 'PayeeRemoved',
193
+ inputs: [
194
+ {
195
+ name: 'user',
196
+ type: 'address',
197
+ indexed: true,
198
+ },
199
+ {
200
+ name: 'payee',
201
+ type: 'address',
202
+ indexed: true,
203
+ },
204
+ {
205
+ name: 'removedBy',
206
+ type: 'address',
207
+ indexed: true,
208
+ },
209
+ ],
210
+ anonymous: false,
211
+ type: 'event',
212
+ },
213
+ {
214
+ name: 'GlobalPayeeSettingsModified',
215
+ inputs: [
216
+ {
217
+ name: 'user',
218
+ type: 'address',
219
+ indexed: true,
220
+ },
221
+ {
222
+ name: 'defaultPeriodLength',
223
+ type: 'uint256',
224
+ indexed: false,
225
+ },
226
+ {
227
+ name: 'startDelay',
228
+ type: 'uint256',
229
+ indexed: false,
230
+ },
231
+ {
232
+ name: 'activationLength',
233
+ type: 'uint256',
234
+ indexed: false,
235
+ },
236
+ {
237
+ name: 'maxNumTxsPerPeriod',
238
+ type: 'uint256',
239
+ indexed: false,
240
+ },
241
+ {
242
+ name: 'txCooldownBlocks',
243
+ type: 'uint256',
244
+ indexed: false,
245
+ },
246
+ {
247
+ name: 'failOnZeroPrice',
248
+ type: 'bool',
249
+ indexed: false,
250
+ },
251
+ {
252
+ name: 'canPayOwner',
253
+ type: 'bool',
254
+ indexed: false,
255
+ },
256
+ {
257
+ name: 'canPull',
258
+ type: 'bool',
259
+ indexed: false,
260
+ },
261
+ {
262
+ name: 'usdPerTxCap',
263
+ type: 'uint256',
264
+ indexed: false,
265
+ },
266
+ {
267
+ name: 'usdPerPeriodCap',
268
+ type: 'uint256',
269
+ indexed: false,
270
+ },
271
+ {
272
+ name: 'usdLifetimeCap',
273
+ type: 'uint256',
274
+ indexed: false,
275
+ },
276
+ ],
277
+ anonymous: false,
278
+ type: 'event',
279
+ },
280
+ {
281
+ name: 'PayeePending',
282
+ inputs: [
283
+ {
284
+ name: 'user',
285
+ type: 'address',
286
+ indexed: true,
287
+ },
288
+ {
289
+ name: 'payee',
290
+ type: 'address',
291
+ indexed: true,
292
+ },
293
+ {
294
+ name: 'confirmBlock',
295
+ type: 'uint256',
296
+ indexed: false,
297
+ },
298
+ {
299
+ name: 'addedBy',
300
+ type: 'address',
301
+ indexed: true,
302
+ },
303
+ {
304
+ name: 'canPull',
305
+ type: 'bool',
306
+ indexed: false,
307
+ },
308
+ {
309
+ name: 'periodLength',
310
+ type: 'uint256',
311
+ indexed: false,
312
+ },
313
+ {
314
+ name: 'maxNumTxsPerPeriod',
315
+ type: 'uint256',
316
+ indexed: false,
317
+ },
318
+ {
319
+ name: 'txCooldownBlocks',
320
+ type: 'uint256',
321
+ indexed: false,
322
+ },
323
+ {
324
+ name: 'failOnZeroPrice',
325
+ type: 'bool',
326
+ indexed: false,
327
+ },
328
+ {
329
+ name: 'primaryAsset',
330
+ type: 'address',
331
+ indexed: false,
332
+ },
333
+ {
334
+ name: 'onlyPrimaryAsset',
335
+ type: 'bool',
336
+ indexed: false,
337
+ },
338
+ {
339
+ name: 'unitPerTxCap',
340
+ type: 'uint256',
341
+ indexed: false,
342
+ },
343
+ {
344
+ name: 'unitPerPeriodCap',
345
+ type: 'uint256',
346
+ indexed: false,
347
+ },
348
+ {
349
+ name: 'unitLifetimeCap',
350
+ type: 'uint256',
351
+ indexed: false,
352
+ },
353
+ {
354
+ name: 'usdPerTxCap',
355
+ type: 'uint256',
356
+ indexed: false,
357
+ },
358
+ {
359
+ name: 'usdPerPeriodCap',
360
+ type: 'uint256',
361
+ indexed: false,
362
+ },
363
+ {
364
+ name: 'usdLifetimeCap',
365
+ type: 'uint256',
366
+ indexed: false,
367
+ },
368
+ ],
369
+ anonymous: false,
370
+ type: 'event',
371
+ },
372
+ {
373
+ name: 'PayeePendingConfirmed',
374
+ inputs: [
375
+ {
376
+ name: 'user',
377
+ type: 'address',
378
+ indexed: true,
379
+ },
380
+ {
381
+ name: 'payee',
382
+ type: 'address',
383
+ indexed: true,
384
+ },
385
+ {
386
+ name: 'initiatedBlock',
387
+ type: 'uint256',
388
+ indexed: false,
389
+ },
390
+ {
391
+ name: 'confirmBlock',
392
+ type: 'uint256',
393
+ indexed: false,
394
+ },
395
+ {
396
+ name: 'confirmedBy',
397
+ type: 'address',
398
+ indexed: true,
399
+ },
400
+ ],
401
+ anonymous: false,
402
+ type: 'event',
403
+ },
404
+ {
405
+ name: 'PayeePendingCancelled',
406
+ inputs: [
407
+ {
408
+ name: 'user',
409
+ type: 'address',
410
+ indexed: true,
411
+ },
412
+ {
413
+ name: 'payee',
414
+ type: 'address',
415
+ indexed: true,
416
+ },
417
+ {
418
+ name: 'initiatedBlock',
419
+ type: 'uint256',
420
+ indexed: false,
421
+ },
422
+ {
423
+ name: 'confirmBlock',
424
+ type: 'uint256',
425
+ indexed: false,
426
+ },
427
+ {
428
+ name: 'cancelledBy',
429
+ type: 'address',
430
+ indexed: true,
431
+ },
432
+ ],
433
+ anonymous: false,
434
+ type: 'event',
435
+ },
436
+ {
437
+ stateMutability: 'nonpayable',
438
+ type: 'function',
439
+ name: 'setGlobalPayeeSettings',
440
+ inputs: [
441
+ {
442
+ name: '_userWallet',
443
+ type: 'address',
444
+ },
445
+ {
446
+ name: '_defaultPeriodLength',
447
+ type: 'uint256',
448
+ },
449
+ {
450
+ name: '_startDelay',
451
+ type: 'uint256',
452
+ },
453
+ {
454
+ name: '_activationLength',
455
+ type: 'uint256',
456
+ },
457
+ {
458
+ name: '_maxNumTxsPerPeriod',
459
+ type: 'uint256',
460
+ },
461
+ {
462
+ name: '_txCooldownBlocks',
463
+ type: 'uint256',
464
+ },
465
+ {
466
+ name: '_failOnZeroPrice',
467
+ type: 'bool',
468
+ },
469
+ {
470
+ name: '_usdLimits',
471
+ type: 'tuple',
472
+ components: [
473
+ {
474
+ name: 'perTxCap',
475
+ type: 'uint256',
476
+ },
477
+ {
478
+ name: 'perPeriodCap',
479
+ type: 'uint256',
480
+ },
481
+ {
482
+ name: 'lifetimeCap',
483
+ type: 'uint256',
484
+ },
485
+ ],
486
+ },
487
+ {
488
+ name: '_canPayOwner',
489
+ type: 'bool',
490
+ },
491
+ {
492
+ name: '_canPull',
493
+ type: 'bool',
494
+ },
495
+ ],
496
+ outputs: [
497
+ {
498
+ name: '',
499
+ type: 'bool',
500
+ },
501
+ ],
502
+ },
503
+ {
504
+ stateMutability: 'nonpayable',
505
+ type: 'function',
506
+ name: 'addPayee',
507
+ inputs: [
508
+ {
509
+ name: '_userWallet',
510
+ type: 'address',
511
+ },
512
+ {
513
+ name: '_payee',
514
+ type: 'address',
515
+ },
516
+ {
517
+ name: '_canPull',
518
+ type: 'bool',
519
+ },
520
+ {
521
+ name: '_periodLength',
522
+ type: 'uint256',
523
+ },
524
+ {
525
+ name: '_maxNumTxsPerPeriod',
526
+ type: 'uint256',
527
+ },
528
+ {
529
+ name: '_txCooldownBlocks',
530
+ type: 'uint256',
531
+ },
532
+ {
533
+ name: '_failOnZeroPrice',
534
+ type: 'bool',
535
+ },
536
+ {
537
+ name: '_primaryAsset',
538
+ type: 'address',
539
+ },
540
+ {
541
+ name: '_onlyPrimaryAsset',
542
+ type: 'bool',
543
+ },
544
+ {
545
+ name: '_unitLimits',
546
+ type: 'tuple',
547
+ components: [
548
+ {
549
+ name: 'perTxCap',
550
+ type: 'uint256',
551
+ },
552
+ {
553
+ name: 'perPeriodCap',
554
+ type: 'uint256',
555
+ },
556
+ {
557
+ name: 'lifetimeCap',
558
+ type: 'uint256',
559
+ },
560
+ ],
561
+ },
562
+ {
563
+ name: '_usdLimits',
564
+ type: 'tuple',
565
+ components: [
566
+ {
567
+ name: 'perTxCap',
568
+ type: 'uint256',
569
+ },
570
+ {
571
+ name: 'perPeriodCap',
572
+ type: 'uint256',
573
+ },
574
+ {
575
+ name: 'lifetimeCap',
576
+ type: 'uint256',
577
+ },
578
+ ],
579
+ },
580
+ ],
581
+ outputs: [
582
+ {
583
+ name: '',
584
+ type: 'bool',
585
+ },
586
+ ],
587
+ },
588
+ {
589
+ stateMutability: 'nonpayable',
590
+ type: 'function',
591
+ name: 'addPayee',
592
+ inputs: [
593
+ {
594
+ name: '_userWallet',
595
+ type: 'address',
596
+ },
597
+ {
598
+ name: '_payee',
599
+ type: 'address',
600
+ },
601
+ {
602
+ name: '_canPull',
603
+ type: 'bool',
604
+ },
605
+ {
606
+ name: '_periodLength',
607
+ type: 'uint256',
608
+ },
609
+ {
610
+ name: '_maxNumTxsPerPeriod',
611
+ type: 'uint256',
612
+ },
613
+ {
614
+ name: '_txCooldownBlocks',
615
+ type: 'uint256',
616
+ },
617
+ {
618
+ name: '_failOnZeroPrice',
619
+ type: 'bool',
620
+ },
621
+ {
622
+ name: '_primaryAsset',
623
+ type: 'address',
624
+ },
625
+ {
626
+ name: '_onlyPrimaryAsset',
627
+ type: 'bool',
628
+ },
629
+ {
630
+ name: '_unitLimits',
631
+ type: 'tuple',
632
+ components: [
633
+ {
634
+ name: 'perTxCap',
635
+ type: 'uint256',
636
+ },
637
+ {
638
+ name: 'perPeriodCap',
639
+ type: 'uint256',
640
+ },
641
+ {
642
+ name: 'lifetimeCap',
643
+ type: 'uint256',
644
+ },
645
+ ],
646
+ },
647
+ {
648
+ name: '_usdLimits',
649
+ type: 'tuple',
650
+ components: [
651
+ {
652
+ name: 'perTxCap',
653
+ type: 'uint256',
654
+ },
655
+ {
656
+ name: 'perPeriodCap',
657
+ type: 'uint256',
658
+ },
659
+ {
660
+ name: 'lifetimeCap',
661
+ type: 'uint256',
662
+ },
663
+ ],
664
+ },
665
+ {
666
+ name: '_startDelay',
667
+ type: 'uint256',
668
+ },
669
+ ],
670
+ outputs: [
671
+ {
672
+ name: '',
673
+ type: 'bool',
674
+ },
675
+ ],
676
+ },
677
+ {
678
+ stateMutability: 'nonpayable',
679
+ type: 'function',
680
+ name: 'addPayee',
681
+ inputs: [
682
+ {
683
+ name: '_userWallet',
684
+ type: 'address',
685
+ },
686
+ {
687
+ name: '_payee',
688
+ type: 'address',
689
+ },
690
+ {
691
+ name: '_canPull',
692
+ type: 'bool',
693
+ },
694
+ {
695
+ name: '_periodLength',
696
+ type: 'uint256',
697
+ },
698
+ {
699
+ name: '_maxNumTxsPerPeriod',
700
+ type: 'uint256',
701
+ },
702
+ {
703
+ name: '_txCooldownBlocks',
704
+ type: 'uint256',
705
+ },
706
+ {
707
+ name: '_failOnZeroPrice',
708
+ type: 'bool',
709
+ },
710
+ {
711
+ name: '_primaryAsset',
712
+ type: 'address',
713
+ },
714
+ {
715
+ name: '_onlyPrimaryAsset',
716
+ type: 'bool',
717
+ },
718
+ {
719
+ name: '_unitLimits',
720
+ type: 'tuple',
721
+ components: [
722
+ {
723
+ name: 'perTxCap',
724
+ type: 'uint256',
725
+ },
726
+ {
727
+ name: 'perPeriodCap',
728
+ type: 'uint256',
729
+ },
730
+ {
731
+ name: 'lifetimeCap',
732
+ type: 'uint256',
733
+ },
734
+ ],
735
+ },
736
+ {
737
+ name: '_usdLimits',
738
+ type: 'tuple',
739
+ components: [
740
+ {
741
+ name: 'perTxCap',
742
+ type: 'uint256',
743
+ },
744
+ {
745
+ name: 'perPeriodCap',
746
+ type: 'uint256',
747
+ },
748
+ {
749
+ name: 'lifetimeCap',
750
+ type: 'uint256',
751
+ },
752
+ ],
753
+ },
754
+ {
755
+ name: '_startDelay',
756
+ type: 'uint256',
757
+ },
758
+ {
759
+ name: '_activationLength',
760
+ type: 'uint256',
761
+ },
762
+ ],
763
+ outputs: [
764
+ {
765
+ name: '',
766
+ type: 'bool',
767
+ },
768
+ ],
769
+ },
770
+ {
771
+ stateMutability: 'nonpayable',
772
+ type: 'function',
773
+ name: 'updatePayee',
774
+ inputs: [
775
+ {
776
+ name: '_userWallet',
777
+ type: 'address',
778
+ },
779
+ {
780
+ name: '_payee',
781
+ type: 'address',
782
+ },
783
+ {
784
+ name: '_canPull',
785
+ type: 'bool',
786
+ },
787
+ {
788
+ name: '_periodLength',
789
+ type: 'uint256',
790
+ },
791
+ {
792
+ name: '_maxNumTxsPerPeriod',
793
+ type: 'uint256',
794
+ },
795
+ {
796
+ name: '_txCooldownBlocks',
797
+ type: 'uint256',
798
+ },
799
+ {
800
+ name: '_failOnZeroPrice',
801
+ type: 'bool',
802
+ },
803
+ {
804
+ name: '_primaryAsset',
805
+ type: 'address',
806
+ },
807
+ {
808
+ name: '_onlyPrimaryAsset',
809
+ type: 'bool',
810
+ },
811
+ {
812
+ name: '_unitLimits',
813
+ type: 'tuple',
814
+ components: [
815
+ {
816
+ name: 'perTxCap',
817
+ type: 'uint256',
818
+ },
819
+ {
820
+ name: 'perPeriodCap',
821
+ type: 'uint256',
822
+ },
823
+ {
824
+ name: 'lifetimeCap',
825
+ type: 'uint256',
826
+ },
827
+ ],
828
+ },
829
+ {
830
+ name: '_usdLimits',
831
+ type: 'tuple',
832
+ components: [
833
+ {
834
+ name: 'perTxCap',
835
+ type: 'uint256',
836
+ },
837
+ {
838
+ name: 'perPeriodCap',
839
+ type: 'uint256',
840
+ },
841
+ {
842
+ name: 'lifetimeCap',
843
+ type: 'uint256',
844
+ },
845
+ ],
846
+ },
847
+ ],
848
+ outputs: [
849
+ {
850
+ name: '',
851
+ type: 'bool',
852
+ },
853
+ ],
854
+ },
855
+ {
856
+ stateMutability: 'nonpayable',
857
+ type: 'function',
858
+ name: 'removePayee',
859
+ inputs: [
860
+ {
861
+ name: '_userWallet',
862
+ type: 'address',
863
+ },
864
+ {
865
+ name: '_payee',
866
+ type: 'address',
867
+ },
868
+ ],
869
+ outputs: [
870
+ {
871
+ name: '',
872
+ type: 'bool',
873
+ },
874
+ ],
875
+ },
876
+ {
877
+ stateMutability: 'nonpayable',
878
+ type: 'function',
879
+ name: 'addPendingPayee',
880
+ inputs: [
881
+ {
882
+ name: '_userWallet',
883
+ type: 'address',
884
+ },
885
+ {
886
+ name: '_payee',
887
+ type: 'address',
888
+ },
889
+ {
890
+ name: '_canPull',
891
+ type: 'bool',
892
+ },
893
+ {
894
+ name: '_periodLength',
895
+ type: 'uint256',
896
+ },
897
+ {
898
+ name: '_maxNumTxsPerPeriod',
899
+ type: 'uint256',
900
+ },
901
+ {
902
+ name: '_txCooldownBlocks',
903
+ type: 'uint256',
904
+ },
905
+ {
906
+ name: '_failOnZeroPrice',
907
+ type: 'bool',
908
+ },
909
+ {
910
+ name: '_primaryAsset',
911
+ type: 'address',
912
+ },
913
+ {
914
+ name: '_onlyPrimaryAsset',
915
+ type: 'bool',
916
+ },
917
+ {
918
+ name: '_unitLimits',
919
+ type: 'tuple',
920
+ components: [
921
+ {
922
+ name: 'perTxCap',
923
+ type: 'uint256',
924
+ },
925
+ {
926
+ name: 'perPeriodCap',
927
+ type: 'uint256',
928
+ },
929
+ {
930
+ name: 'lifetimeCap',
931
+ type: 'uint256',
932
+ },
933
+ ],
934
+ },
935
+ {
936
+ name: '_usdLimits',
937
+ type: 'tuple',
938
+ components: [
939
+ {
940
+ name: 'perTxCap',
941
+ type: 'uint256',
942
+ },
943
+ {
944
+ name: 'perPeriodCap',
945
+ type: 'uint256',
946
+ },
947
+ {
948
+ name: 'lifetimeCap',
949
+ type: 'uint256',
950
+ },
951
+ ],
952
+ },
953
+ ],
954
+ outputs: [
955
+ {
956
+ name: '',
957
+ type: 'bool',
958
+ },
959
+ ],
960
+ },
961
+ {
962
+ stateMutability: 'nonpayable',
963
+ type: 'function',
964
+ name: 'addPendingPayee',
965
+ inputs: [
966
+ {
967
+ name: '_userWallet',
968
+ type: 'address',
969
+ },
970
+ {
971
+ name: '_payee',
972
+ type: 'address',
973
+ },
974
+ {
975
+ name: '_canPull',
976
+ type: 'bool',
977
+ },
978
+ {
979
+ name: '_periodLength',
980
+ type: 'uint256',
981
+ },
982
+ {
983
+ name: '_maxNumTxsPerPeriod',
984
+ type: 'uint256',
985
+ },
986
+ {
987
+ name: '_txCooldownBlocks',
988
+ type: 'uint256',
989
+ },
990
+ {
991
+ name: '_failOnZeroPrice',
992
+ type: 'bool',
993
+ },
994
+ {
995
+ name: '_primaryAsset',
996
+ type: 'address',
997
+ },
998
+ {
999
+ name: '_onlyPrimaryAsset',
1000
+ type: 'bool',
1001
+ },
1002
+ {
1003
+ name: '_unitLimits',
1004
+ type: 'tuple',
1005
+ components: [
1006
+ {
1007
+ name: 'perTxCap',
1008
+ type: 'uint256',
1009
+ },
1010
+ {
1011
+ name: 'perPeriodCap',
1012
+ type: 'uint256',
1013
+ },
1014
+ {
1015
+ name: 'lifetimeCap',
1016
+ type: 'uint256',
1017
+ },
1018
+ ],
1019
+ },
1020
+ {
1021
+ name: '_usdLimits',
1022
+ type: 'tuple',
1023
+ components: [
1024
+ {
1025
+ name: 'perTxCap',
1026
+ type: 'uint256',
1027
+ },
1028
+ {
1029
+ name: 'perPeriodCap',
1030
+ type: 'uint256',
1031
+ },
1032
+ {
1033
+ name: 'lifetimeCap',
1034
+ type: 'uint256',
1035
+ },
1036
+ ],
1037
+ },
1038
+ {
1039
+ name: '_startDelay',
1040
+ type: 'uint256',
1041
+ },
1042
+ ],
1043
+ outputs: [
1044
+ {
1045
+ name: '',
1046
+ type: 'bool',
1047
+ },
1048
+ ],
1049
+ },
1050
+ {
1051
+ stateMutability: 'nonpayable',
1052
+ type: 'function',
1053
+ name: 'addPendingPayee',
1054
+ inputs: [
1055
+ {
1056
+ name: '_userWallet',
1057
+ type: 'address',
1058
+ },
1059
+ {
1060
+ name: '_payee',
1061
+ type: 'address',
1062
+ },
1063
+ {
1064
+ name: '_canPull',
1065
+ type: 'bool',
1066
+ },
1067
+ {
1068
+ name: '_periodLength',
1069
+ type: 'uint256',
1070
+ },
1071
+ {
1072
+ name: '_maxNumTxsPerPeriod',
1073
+ type: 'uint256',
1074
+ },
1075
+ {
1076
+ name: '_txCooldownBlocks',
1077
+ type: 'uint256',
1078
+ },
1079
+ {
1080
+ name: '_failOnZeroPrice',
1081
+ type: 'bool',
1082
+ },
1083
+ {
1084
+ name: '_primaryAsset',
1085
+ type: 'address',
1086
+ },
1087
+ {
1088
+ name: '_onlyPrimaryAsset',
1089
+ type: 'bool',
1090
+ },
1091
+ {
1092
+ name: '_unitLimits',
1093
+ type: 'tuple',
1094
+ components: [
1095
+ {
1096
+ name: 'perTxCap',
1097
+ type: 'uint256',
1098
+ },
1099
+ {
1100
+ name: 'perPeriodCap',
1101
+ type: 'uint256',
1102
+ },
1103
+ {
1104
+ name: 'lifetimeCap',
1105
+ type: 'uint256',
1106
+ },
1107
+ ],
1108
+ },
1109
+ {
1110
+ name: '_usdLimits',
1111
+ type: 'tuple',
1112
+ components: [
1113
+ {
1114
+ name: 'perTxCap',
1115
+ type: 'uint256',
1116
+ },
1117
+ {
1118
+ name: 'perPeriodCap',
1119
+ type: 'uint256',
1120
+ },
1121
+ {
1122
+ name: 'lifetimeCap',
1123
+ type: 'uint256',
1124
+ },
1125
+ ],
1126
+ },
1127
+ {
1128
+ name: '_startDelay',
1129
+ type: 'uint256',
1130
+ },
1131
+ {
1132
+ name: '_activationLength',
1133
+ type: 'uint256',
1134
+ },
1135
+ ],
1136
+ outputs: [
1137
+ {
1138
+ name: '',
1139
+ type: 'bool',
1140
+ },
1141
+ ],
1142
+ },
1143
+ {
1144
+ stateMutability: 'nonpayable',
1145
+ type: 'function',
1146
+ name: 'confirmPendingPayee',
1147
+ inputs: [
1148
+ {
1149
+ name: '_userWallet',
1150
+ type: 'address',
1151
+ },
1152
+ {
1153
+ name: '_payee',
1154
+ type: 'address',
1155
+ },
1156
+ ],
1157
+ outputs: [
1158
+ {
1159
+ name: '',
1160
+ type: 'bool',
1161
+ },
1162
+ ],
1163
+ },
1164
+ {
1165
+ stateMutability: 'nonpayable',
1166
+ type: 'function',
1167
+ name: 'cancelPendingPayee',
1168
+ inputs: [
1169
+ {
1170
+ name: '_userWallet',
1171
+ type: 'address',
1172
+ },
1173
+ {
1174
+ name: '_payee',
1175
+ type: 'address',
1176
+ },
1177
+ ],
1178
+ outputs: [
1179
+ {
1180
+ name: '',
1181
+ type: 'bool',
1182
+ },
1183
+ ],
1184
+ },
1185
+ {
1186
+ stateMutability: 'view',
1187
+ type: 'function',
1188
+ name: 'isValidNewPayee',
1189
+ inputs: [
1190
+ {
1191
+ name: '_userWallet',
1192
+ type: 'address',
1193
+ },
1194
+ {
1195
+ name: '_payee',
1196
+ type: 'address',
1197
+ },
1198
+ {
1199
+ name: '_canPull',
1200
+ type: 'bool',
1201
+ },
1202
+ {
1203
+ name: '_periodLength',
1204
+ type: 'uint256',
1205
+ },
1206
+ {
1207
+ name: '_maxNumTxsPerPeriod',
1208
+ type: 'uint256',
1209
+ },
1210
+ {
1211
+ name: '_txCooldownBlocks',
1212
+ type: 'uint256',
1213
+ },
1214
+ {
1215
+ name: '_failOnZeroPrice',
1216
+ type: 'bool',
1217
+ },
1218
+ {
1219
+ name: '_primaryAsset',
1220
+ type: 'address',
1221
+ },
1222
+ {
1223
+ name: '_onlyPrimaryAsset',
1224
+ type: 'bool',
1225
+ },
1226
+ {
1227
+ name: '_unitLimits',
1228
+ type: 'tuple',
1229
+ components: [
1230
+ {
1231
+ name: 'perTxCap',
1232
+ type: 'uint256',
1233
+ },
1234
+ {
1235
+ name: 'perPeriodCap',
1236
+ type: 'uint256',
1237
+ },
1238
+ {
1239
+ name: 'lifetimeCap',
1240
+ type: 'uint256',
1241
+ },
1242
+ ],
1243
+ },
1244
+ {
1245
+ name: '_usdLimits',
1246
+ type: 'tuple',
1247
+ components: [
1248
+ {
1249
+ name: 'perTxCap',
1250
+ type: 'uint256',
1251
+ },
1252
+ {
1253
+ name: 'perPeriodCap',
1254
+ type: 'uint256',
1255
+ },
1256
+ {
1257
+ name: 'lifetimeCap',
1258
+ type: 'uint256',
1259
+ },
1260
+ ],
1261
+ },
1262
+ ],
1263
+ outputs: [
1264
+ {
1265
+ name: '',
1266
+ type: 'bool',
1267
+ },
1268
+ ],
1269
+ },
1270
+ {
1271
+ stateMutability: 'view',
1272
+ type: 'function',
1273
+ name: 'isValidNewPayee',
1274
+ inputs: [
1275
+ {
1276
+ name: '_userWallet',
1277
+ type: 'address',
1278
+ },
1279
+ {
1280
+ name: '_payee',
1281
+ type: 'address',
1282
+ },
1283
+ {
1284
+ name: '_canPull',
1285
+ type: 'bool',
1286
+ },
1287
+ {
1288
+ name: '_periodLength',
1289
+ type: 'uint256',
1290
+ },
1291
+ {
1292
+ name: '_maxNumTxsPerPeriod',
1293
+ type: 'uint256',
1294
+ },
1295
+ {
1296
+ name: '_txCooldownBlocks',
1297
+ type: 'uint256',
1298
+ },
1299
+ {
1300
+ name: '_failOnZeroPrice',
1301
+ type: 'bool',
1302
+ },
1303
+ {
1304
+ name: '_primaryAsset',
1305
+ type: 'address',
1306
+ },
1307
+ {
1308
+ name: '_onlyPrimaryAsset',
1309
+ type: 'bool',
1310
+ },
1311
+ {
1312
+ name: '_unitLimits',
1313
+ type: 'tuple',
1314
+ components: [
1315
+ {
1316
+ name: 'perTxCap',
1317
+ type: 'uint256',
1318
+ },
1319
+ {
1320
+ name: 'perPeriodCap',
1321
+ type: 'uint256',
1322
+ },
1323
+ {
1324
+ name: 'lifetimeCap',
1325
+ type: 'uint256',
1326
+ },
1327
+ ],
1328
+ },
1329
+ {
1330
+ name: '_usdLimits',
1331
+ type: 'tuple',
1332
+ components: [
1333
+ {
1334
+ name: 'perTxCap',
1335
+ type: 'uint256',
1336
+ },
1337
+ {
1338
+ name: 'perPeriodCap',
1339
+ type: 'uint256',
1340
+ },
1341
+ {
1342
+ name: 'lifetimeCap',
1343
+ type: 'uint256',
1344
+ },
1345
+ ],
1346
+ },
1347
+ {
1348
+ name: '_startDelay',
1349
+ type: 'uint256',
1350
+ },
1351
+ ],
1352
+ outputs: [
1353
+ {
1354
+ name: '',
1355
+ type: 'bool',
1356
+ },
1357
+ ],
1358
+ },
1359
+ {
1360
+ stateMutability: 'view',
1361
+ type: 'function',
1362
+ name: 'isValidNewPayee',
1363
+ inputs: [
1364
+ {
1365
+ name: '_userWallet',
1366
+ type: 'address',
1367
+ },
1368
+ {
1369
+ name: '_payee',
1370
+ type: 'address',
1371
+ },
1372
+ {
1373
+ name: '_canPull',
1374
+ type: 'bool',
1375
+ },
1376
+ {
1377
+ name: '_periodLength',
1378
+ type: 'uint256',
1379
+ },
1380
+ {
1381
+ name: '_maxNumTxsPerPeriod',
1382
+ type: 'uint256',
1383
+ },
1384
+ {
1385
+ name: '_txCooldownBlocks',
1386
+ type: 'uint256',
1387
+ },
1388
+ {
1389
+ name: '_failOnZeroPrice',
1390
+ type: 'bool',
1391
+ },
1392
+ {
1393
+ name: '_primaryAsset',
1394
+ type: 'address',
1395
+ },
1396
+ {
1397
+ name: '_onlyPrimaryAsset',
1398
+ type: 'bool',
1399
+ },
1400
+ {
1401
+ name: '_unitLimits',
1402
+ type: 'tuple',
1403
+ components: [
1404
+ {
1405
+ name: 'perTxCap',
1406
+ type: 'uint256',
1407
+ },
1408
+ {
1409
+ name: 'perPeriodCap',
1410
+ type: 'uint256',
1411
+ },
1412
+ {
1413
+ name: 'lifetimeCap',
1414
+ type: 'uint256',
1415
+ },
1416
+ ],
1417
+ },
1418
+ {
1419
+ name: '_usdLimits',
1420
+ type: 'tuple',
1421
+ components: [
1422
+ {
1423
+ name: 'perTxCap',
1424
+ type: 'uint256',
1425
+ },
1426
+ {
1427
+ name: 'perPeriodCap',
1428
+ type: 'uint256',
1429
+ },
1430
+ {
1431
+ name: 'lifetimeCap',
1432
+ type: 'uint256',
1433
+ },
1434
+ ],
1435
+ },
1436
+ {
1437
+ name: '_startDelay',
1438
+ type: 'uint256',
1439
+ },
1440
+ {
1441
+ name: '_activationLength',
1442
+ type: 'uint256',
1443
+ },
1444
+ ],
1445
+ outputs: [
1446
+ {
1447
+ name: '',
1448
+ type: 'bool',
1449
+ },
1450
+ ],
1451
+ },
1452
+ {
1453
+ stateMutability: 'view',
1454
+ type: 'function',
1455
+ name: 'isValidPayeeUpdate',
1456
+ inputs: [
1457
+ {
1458
+ name: '_userWallet',
1459
+ type: 'address',
1460
+ },
1461
+ {
1462
+ name: '_payee',
1463
+ type: 'address',
1464
+ },
1465
+ {
1466
+ name: '_canPull',
1467
+ type: 'bool',
1468
+ },
1469
+ {
1470
+ name: '_periodLength',
1471
+ type: 'uint256',
1472
+ },
1473
+ {
1474
+ name: '_maxNumTxsPerPeriod',
1475
+ type: 'uint256',
1476
+ },
1477
+ {
1478
+ name: '_txCooldownBlocks',
1479
+ type: 'uint256',
1480
+ },
1481
+ {
1482
+ name: '_failOnZeroPrice',
1483
+ type: 'bool',
1484
+ },
1485
+ {
1486
+ name: '_primaryAsset',
1487
+ type: 'address',
1488
+ },
1489
+ {
1490
+ name: '_onlyPrimaryAsset',
1491
+ type: 'bool',
1492
+ },
1493
+ {
1494
+ name: '_unitLimits',
1495
+ type: 'tuple',
1496
+ components: [
1497
+ {
1498
+ name: 'perTxCap',
1499
+ type: 'uint256',
1500
+ },
1501
+ {
1502
+ name: 'perPeriodCap',
1503
+ type: 'uint256',
1504
+ },
1505
+ {
1506
+ name: 'lifetimeCap',
1507
+ type: 'uint256',
1508
+ },
1509
+ ],
1510
+ },
1511
+ {
1512
+ name: '_usdLimits',
1513
+ type: 'tuple',
1514
+ components: [
1515
+ {
1516
+ name: 'perTxCap',
1517
+ type: 'uint256',
1518
+ },
1519
+ {
1520
+ name: 'perPeriodCap',
1521
+ type: 'uint256',
1522
+ },
1523
+ {
1524
+ name: 'lifetimeCap',
1525
+ type: 'uint256',
1526
+ },
1527
+ ],
1528
+ },
1529
+ ],
1530
+ outputs: [
1531
+ {
1532
+ name: '',
1533
+ type: 'bool',
1534
+ },
1535
+ ],
1536
+ },
1537
+ {
1538
+ stateMutability: 'view',
1539
+ type: 'function',
1540
+ name: 'canAddPendingPayee',
1541
+ inputs: [
1542
+ {
1543
+ name: '_userWallet',
1544
+ type: 'address',
1545
+ },
1546
+ {
1547
+ name: '_payee',
1548
+ type: 'address',
1549
+ },
1550
+ {
1551
+ name: '_caller',
1552
+ type: 'address',
1553
+ },
1554
+ ],
1555
+ outputs: [
1556
+ {
1557
+ name: '',
1558
+ type: 'bool',
1559
+ },
1560
+ ],
1561
+ },
1562
+ {
1563
+ stateMutability: 'view',
1564
+ type: 'function',
1565
+ name: 'isValidGlobalPayeeSettings',
1566
+ inputs: [
1567
+ {
1568
+ name: '_userWallet',
1569
+ type: 'address',
1570
+ },
1571
+ {
1572
+ name: '_defaultPeriodLength',
1573
+ type: 'uint256',
1574
+ },
1575
+ {
1576
+ name: '_startDelay',
1577
+ type: 'uint256',
1578
+ },
1579
+ {
1580
+ name: '_activationLength',
1581
+ type: 'uint256',
1582
+ },
1583
+ {
1584
+ name: '_maxNumTxsPerPeriod',
1585
+ type: 'uint256',
1586
+ },
1587
+ {
1588
+ name: '_txCooldownBlocks',
1589
+ type: 'uint256',
1590
+ },
1591
+ {
1592
+ name: '_failOnZeroPrice',
1593
+ type: 'bool',
1594
+ },
1595
+ {
1596
+ name: '_usdLimits',
1597
+ type: 'tuple',
1598
+ components: [
1599
+ {
1600
+ name: 'perTxCap',
1601
+ type: 'uint256',
1602
+ },
1603
+ {
1604
+ name: 'perPeriodCap',
1605
+ type: 'uint256',
1606
+ },
1607
+ {
1608
+ name: 'lifetimeCap',
1609
+ type: 'uint256',
1610
+ },
1611
+ ],
1612
+ },
1613
+ {
1614
+ name: '_canPayOwner',
1615
+ type: 'bool',
1616
+ },
1617
+ {
1618
+ name: '_canPull',
1619
+ type: 'bool',
1620
+ },
1621
+ ],
1622
+ outputs: [
1623
+ {
1624
+ name: '',
1625
+ type: 'bool',
1626
+ },
1627
+ ],
1628
+ },
1629
+ {
1630
+ stateMutability: 'view',
1631
+ type: 'function',
1632
+ name: 'getPayeeConfig',
1633
+ inputs: [
1634
+ {
1635
+ name: '_userWallet',
1636
+ type: 'address',
1637
+ },
1638
+ {
1639
+ name: '_payee',
1640
+ type: 'address',
1641
+ },
1642
+ ],
1643
+ outputs: [
1644
+ {
1645
+ name: '',
1646
+ type: 'tuple',
1647
+ components: [
1648
+ {
1649
+ name: 'owner',
1650
+ type: 'address',
1651
+ },
1652
+ {
1653
+ name: 'wallet',
1654
+ type: 'address',
1655
+ },
1656
+ {
1657
+ name: 'isRegisteredPayee',
1658
+ type: 'bool',
1659
+ },
1660
+ {
1661
+ name: 'isWhitelisted',
1662
+ type: 'bool',
1663
+ },
1664
+ {
1665
+ name: 'payeeSettings',
1666
+ type: 'tuple',
1667
+ components: [
1668
+ {
1669
+ name: 'startBlock',
1670
+ type: 'uint256',
1671
+ },
1672
+ {
1673
+ name: 'expiryBlock',
1674
+ type: 'uint256',
1675
+ },
1676
+ {
1677
+ name: 'canPull',
1678
+ type: 'bool',
1679
+ },
1680
+ {
1681
+ name: 'periodLength',
1682
+ type: 'uint256',
1683
+ },
1684
+ {
1685
+ name: 'maxNumTxsPerPeriod',
1686
+ type: 'uint256',
1687
+ },
1688
+ {
1689
+ name: 'txCooldownBlocks',
1690
+ type: 'uint256',
1691
+ },
1692
+ {
1693
+ name: 'failOnZeroPrice',
1694
+ type: 'bool',
1695
+ },
1696
+ {
1697
+ name: 'primaryAsset',
1698
+ type: 'address',
1699
+ },
1700
+ {
1701
+ name: 'onlyPrimaryAsset',
1702
+ type: 'bool',
1703
+ },
1704
+ {
1705
+ name: 'unitLimits',
1706
+ type: 'tuple',
1707
+ components: [
1708
+ {
1709
+ name: 'perTxCap',
1710
+ type: 'uint256',
1711
+ },
1712
+ {
1713
+ name: 'perPeriodCap',
1714
+ type: 'uint256',
1715
+ },
1716
+ {
1717
+ name: 'lifetimeCap',
1718
+ type: 'uint256',
1719
+ },
1720
+ ],
1721
+ },
1722
+ {
1723
+ name: 'usdLimits',
1724
+ type: 'tuple',
1725
+ components: [
1726
+ {
1727
+ name: 'perTxCap',
1728
+ type: 'uint256',
1729
+ },
1730
+ {
1731
+ name: 'perPeriodCap',
1732
+ type: 'uint256',
1733
+ },
1734
+ {
1735
+ name: 'lifetimeCap',
1736
+ type: 'uint256',
1737
+ },
1738
+ ],
1739
+ },
1740
+ ],
1741
+ },
1742
+ {
1743
+ name: 'globalPayeeSettings',
1744
+ type: 'tuple',
1745
+ components: [
1746
+ {
1747
+ name: 'defaultPeriodLength',
1748
+ type: 'uint256',
1749
+ },
1750
+ {
1751
+ name: 'startDelay',
1752
+ type: 'uint256',
1753
+ },
1754
+ {
1755
+ name: 'activationLength',
1756
+ type: 'uint256',
1757
+ },
1758
+ {
1759
+ name: 'maxNumTxsPerPeriod',
1760
+ type: 'uint256',
1761
+ },
1762
+ {
1763
+ name: 'txCooldownBlocks',
1764
+ type: 'uint256',
1765
+ },
1766
+ {
1767
+ name: 'failOnZeroPrice',
1768
+ type: 'bool',
1769
+ },
1770
+ {
1771
+ name: 'usdLimits',
1772
+ type: 'tuple',
1773
+ components: [
1774
+ {
1775
+ name: 'perTxCap',
1776
+ type: 'uint256',
1777
+ },
1778
+ {
1779
+ name: 'perPeriodCap',
1780
+ type: 'uint256',
1781
+ },
1782
+ {
1783
+ name: 'lifetimeCap',
1784
+ type: 'uint256',
1785
+ },
1786
+ ],
1787
+ },
1788
+ {
1789
+ name: 'canPayOwner',
1790
+ type: 'bool',
1791
+ },
1792
+ {
1793
+ name: 'canPull',
1794
+ type: 'bool',
1795
+ },
1796
+ ],
1797
+ },
1798
+ {
1799
+ name: 'timeLock',
1800
+ type: 'uint256',
1801
+ },
1802
+ {
1803
+ name: 'walletConfig',
1804
+ type: 'address',
1805
+ },
1806
+ ],
1807
+ },
1808
+ ],
1809
+ },
1810
+ {
1811
+ stateMutability: 'view',
1812
+ type: 'function',
1813
+ name: 'createDefaultGlobalPayeeSettings',
1814
+ inputs: [
1815
+ {
1816
+ name: '_defaultPeriodLength',
1817
+ type: 'uint256',
1818
+ },
1819
+ {
1820
+ name: '_startDelay',
1821
+ type: 'uint256',
1822
+ },
1823
+ {
1824
+ name: '_activationLength',
1825
+ type: 'uint256',
1826
+ },
1827
+ ],
1828
+ outputs: [
1829
+ {
1830
+ name: '',
1831
+ type: 'tuple',
1832
+ components: [
1833
+ {
1834
+ name: 'defaultPeriodLength',
1835
+ type: 'uint256',
1836
+ },
1837
+ {
1838
+ name: 'startDelay',
1839
+ type: 'uint256',
1840
+ },
1841
+ {
1842
+ name: 'activationLength',
1843
+ type: 'uint256',
1844
+ },
1845
+ {
1846
+ name: 'maxNumTxsPerPeriod',
1847
+ type: 'uint256',
1848
+ },
1849
+ {
1850
+ name: 'txCooldownBlocks',
1851
+ type: 'uint256',
1852
+ },
1853
+ {
1854
+ name: 'failOnZeroPrice',
1855
+ type: 'bool',
1856
+ },
1857
+ {
1858
+ name: 'usdLimits',
1859
+ type: 'tuple',
1860
+ components: [
1861
+ {
1862
+ name: 'perTxCap',
1863
+ type: 'uint256',
1864
+ },
1865
+ {
1866
+ name: 'perPeriodCap',
1867
+ type: 'uint256',
1868
+ },
1869
+ {
1870
+ name: 'lifetimeCap',
1871
+ type: 'uint256',
1872
+ },
1873
+ ],
1874
+ },
1875
+ {
1876
+ name: 'canPayOwner',
1877
+ type: 'bool',
1878
+ },
1879
+ {
1880
+ name: 'canPull',
1881
+ type: 'bool',
1882
+ },
1883
+ ],
1884
+ },
1885
+ ],
1886
+ },
1887
+ {
1888
+ stateMutability: 'view',
1889
+ type: 'function',
1890
+ name: 'UNDY_HQ',
1891
+ inputs: [],
1892
+ outputs: [
1893
+ {
1894
+ name: '',
1895
+ type: 'address',
1896
+ },
1897
+ ],
1898
+ },
1899
+ {
1900
+ stateMutability: 'view',
1901
+ type: 'function',
1902
+ name: 'MIN_PAYEE_PERIOD',
1903
+ inputs: [],
1904
+ outputs: [
1905
+ {
1906
+ name: '',
1907
+ type: 'uint256',
1908
+ },
1909
+ ],
1910
+ },
1911
+ {
1912
+ stateMutability: 'view',
1913
+ type: 'function',
1914
+ name: 'MAX_PAYEE_PERIOD',
1915
+ inputs: [],
1916
+ outputs: [
1917
+ {
1918
+ name: '',
1919
+ type: 'uint256',
1920
+ },
1921
+ ],
1922
+ },
1923
+ {
1924
+ stateMutability: 'view',
1925
+ type: 'function',
1926
+ name: 'MIN_ACTIVATION_LENGTH',
1927
+ inputs: [],
1928
+ outputs: [
1929
+ {
1930
+ name: '',
1931
+ type: 'uint256',
1932
+ },
1933
+ ],
1934
+ },
1935
+ {
1936
+ stateMutability: 'view',
1937
+ type: 'function',
1938
+ name: 'MAX_ACTIVATION_LENGTH',
1939
+ inputs: [],
1940
+ outputs: [
1941
+ {
1942
+ name: '',
1943
+ type: 'uint256',
1944
+ },
1945
+ ],
1946
+ },
1947
+ {
1948
+ stateMutability: 'view',
1949
+ type: 'function',
1950
+ name: 'MAX_START_DELAY',
1951
+ inputs: [],
1952
+ outputs: [
1953
+ {
1954
+ name: '',
1955
+ type: 'uint256',
1956
+ },
1957
+ ],
1958
+ },
1959
+ {
1960
+ stateMutability: 'nonpayable',
1961
+ type: 'constructor',
1962
+ inputs: [
1963
+ {
1964
+ name: '_undyHq',
1965
+ type: 'address',
1966
+ },
1967
+ {
1968
+ name: '_minPayeePeriod',
1969
+ type: 'uint256',
1970
+ },
1971
+ {
1972
+ name: '_maxPayeePeriod',
1973
+ type: 'uint256',
1974
+ },
1975
+ {
1976
+ name: '_minActivationLength',
1977
+ type: 'uint256',
1978
+ },
1979
+ {
1980
+ name: '_maxActivationLength',
1981
+ type: 'uint256',
1982
+ },
1983
+ {
1984
+ name: '_maxStartDelay',
1985
+ type: 'uint256',
1986
+ },
1987
+ ],
1988
+ outputs: [],
1989
+ },
1990
+ ];
1991
+ export const deployAddress = '0x5aDc5a2b5018426243C98Aa52E4696F614274946';
1992
+ function getRequest(method, args, contractAddressOrOptions) {
1993
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1994
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1995
+ const call = {
1996
+ contractName: 'Paymaster',
1997
+ method,
1998
+ args,
1999
+ address,
2000
+ deployAddress,
2001
+ defaultValue,
2002
+ getAbi: () => abi,
2003
+ with: (options) => {
2004
+ call.address = options.contractAddress;
2005
+ call.defaultValue = options.defaultValue;
2006
+ return call;
2007
+ },
2008
+ defaultTo: (defaultValue) => {
2009
+ call.defaultValue = defaultValue;
2010
+ return call;
2011
+ },
2012
+ at: (address) => {
2013
+ call.address = address;
2014
+ return call;
2015
+ },
2016
+ };
2017
+ return call;
2018
+ }
2019
+ export const call = {
2020
+ isValidNewPayee: (...args) => getRequest('isValidNewPayee', args),
2021
+ isValidPayeeUpdate: (...args) => getRequest('isValidPayeeUpdate', args),
2022
+ canAddPendingPayee: (...args) => getRequest('canAddPendingPayee', args),
2023
+ isValidGlobalPayeeSettings: (...args) => getRequest('isValidGlobalPayeeSettings', args),
2024
+ getPayeeConfig: (...args) => getRequest('getPayeeConfig', args),
2025
+ createDefaultGlobalPayeeSettings: (...args) => getRequest('createDefaultGlobalPayeeSettings', args),
2026
+ UNDY_HQ: (...args) => getRequest('UNDY_HQ', args),
2027
+ MIN_PAYEE_PERIOD: (...args) => getRequest('MIN_PAYEE_PERIOD', args),
2028
+ MAX_PAYEE_PERIOD: (...args) => getRequest('MAX_PAYEE_PERIOD', args),
2029
+ MIN_ACTIVATION_LENGTH: (...args) => getRequest('MIN_ACTIVATION_LENGTH', args),
2030
+ MAX_ACTIVATION_LENGTH: (...args) => getRequest('MAX_ACTIVATION_LENGTH', args),
2031
+ MAX_START_DELAY: (...args) => getRequest('MAX_START_DELAY', args),
2032
+ };
2033
+ function getMutation(functionName) {
2034
+ return {
2035
+ contractName: 'Paymaster',
2036
+ functionName,
2037
+ deployAddress,
2038
+ argsType: undefined,
2039
+ getAbi: () => abi,
2040
+ };
2041
+ }
2042
+ export const mutation = {
2043
+ setGlobalPayeeSettings: getMutation('setGlobalPayeeSettings'),
2044
+ addPayee: getMutation('addPayee'),
2045
+ updatePayee: getMutation('updatePayee'),
2046
+ removePayee: getMutation('removePayee'),
2047
+ addPendingPayee: getMutation('addPendingPayee'),
2048
+ confirmPendingPayee: getMutation('confirmPendingPayee'),
2049
+ cancelPendingPayee: getMutation('cancelPendingPayee'),
2050
+ };
2051
+ export function toSdk(publicClient, walletClient) {
2052
+ return {
2053
+ deployAddress,
2054
+ abi,
2055
+ // Queries
2056
+ isValidNewPayee: (...args) => singleQuery(publicClient, call.isValidNewPayee(...args)),
2057
+ isValidPayeeUpdate: (...args) => singleQuery(publicClient, call.isValidPayeeUpdate(...args)),
2058
+ canAddPendingPayee: (...args) => singleQuery(publicClient, call.canAddPendingPayee(...args)),
2059
+ isValidGlobalPayeeSettings: (...args) => singleQuery(publicClient, call.isValidGlobalPayeeSettings(...args)),
2060
+ getPayeeConfig: (...args) => singleQuery(publicClient, call.getPayeeConfig(...args)),
2061
+ createDefaultGlobalPayeeSettings: (...args) => singleQuery(publicClient, call.createDefaultGlobalPayeeSettings(...args)),
2062
+ UNDY_HQ: (...args) => singleQuery(publicClient, call.UNDY_HQ(...args)),
2063
+ MIN_PAYEE_PERIOD: (...args) => singleQuery(publicClient, call.MIN_PAYEE_PERIOD(...args)),
2064
+ MAX_PAYEE_PERIOD: (...args) => singleQuery(publicClient, call.MAX_PAYEE_PERIOD(...args)),
2065
+ MIN_ACTIVATION_LENGTH: (...args) => singleQuery(publicClient, call.MIN_ACTIVATION_LENGTH(...args)),
2066
+ MAX_ACTIVATION_LENGTH: (...args) => singleQuery(publicClient, call.MAX_ACTIVATION_LENGTH(...args)),
2067
+ MAX_START_DELAY: (...args) => singleQuery(publicClient, call.MAX_START_DELAY(...args)),
2068
+ // Mutations
2069
+ setGlobalPayeeSettings: (...args) => mutate(walletClient, mutation.setGlobalPayeeSettings)(...args),
2070
+ addPayee: (...args) => mutate(walletClient, mutation.addPayee)(...args),
2071
+ updatePayee: (...args) => mutate(walletClient, mutation.updatePayee)(...args),
2072
+ removePayee: (...args) => mutate(walletClient, mutation.removePayee)(...args),
2073
+ addPendingPayee: (...args) => mutate(walletClient, mutation.addPendingPayee)(...args),
2074
+ confirmPendingPayee: (...args) => mutate(walletClient, mutation.confirmPendingPayee)(...args),
2075
+ cancelPendingPayee: (...args) => mutate(walletClient, mutation.cancelPendingPayee)(...args),
2076
+ };
2077
+ }