@underscore-finance/sdk 1.2.18 → 1.2.20-next.0

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 (177) hide show
  1. package/AGENTS.md +162 -0
  2. package/README.md +17 -116
  3. package/abis.json +181875 -0
  4. package/addresses.json +76 -0
  5. package/dist/contracts/AaveV3.d.ts.map +1 -1
  6. package/dist/contracts/AaveV3.js +1898 -1919
  7. package/dist/contracts/AeroClassic.d.ts.map +1 -1
  8. package/dist/contracts/AeroClassic.js +1518 -1533
  9. package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
  10. package/dist/contracts/AeroSlipstream.js +1620 -1641
  11. package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -1
  12. package/dist/contracts/AgentSenderGeneric.js +3059 -3074
  13. package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -1
  14. package/dist/contracts/AgentSenderSpecial.js +1474 -1489
  15. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts.map +1 -1
  16. package/dist/contracts/AgentSenderSpecialSigHelper.js +1728 -1728
  17. package/dist/contracts/AgentWrapper.d.ts.map +1 -1
  18. package/dist/contracts/AgentWrapper.js +1899 -1902
  19. package/dist/contracts/AgentWrapperV1.d.ts.map +1 -1
  20. package/dist/contracts/AgentWrapperV1.js +2693 -2708
  21. package/dist/contracts/AgentWrapperV2.d.ts.map +1 -1
  22. package/dist/contracts/AgentWrapperV2.js +1806 -1809
  23. package/dist/contracts/Appraiser.d.ts.map +1 -1
  24. package/dist/contracts/Appraiser.js +404 -410
  25. package/dist/contracts/Avantis.d.ts.map +1 -1
  26. package/dist/contracts/Avantis.js +1905 -1929
  27. package/dist/contracts/Billing.d.ts.map +1 -1
  28. package/dist/contracts/Billing.js +235 -247
  29. package/dist/contracts/ChequeBook.d.ts +294 -0
  30. package/dist/contracts/ChequeBook.d.ts.map +1 -1
  31. package/dist/contracts/ChequeBook.js +1198 -866
  32. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  33. package/dist/contracts/CompoundV3.js +1919 -1943
  34. package/dist/contracts/ConvertVaultToken.d.ts.map +1 -1
  35. package/dist/contracts/ConvertVaultToken.js +31 -31
  36. package/dist/contracts/Curve.d.ts.map +1 -1
  37. package/dist/contracts/Curve.js +787 -802
  38. package/dist/contracts/DefaultsBase.d.ts.map +1 -1
  39. package/dist/contracts/DefaultsBase.js +178 -178
  40. package/dist/contracts/ERC20.d.ts.map +1 -1
  41. package/dist/contracts/ERC20.js +186 -192
  42. package/dist/contracts/EarnVault.d.ts.map +1 -1
  43. package/dist/contracts/EarnVault.js +1262 -1292
  44. package/dist/contracts/EarnVaultAgent.d.ts.map +1 -1
  45. package/dist/contracts/EarnVaultAgent.js +745 -760
  46. package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -1
  47. package/dist/contracts/EarnVaultAgentSigHelper.js +665 -665
  48. package/dist/contracts/Euler.d.ts.map +1 -1
  49. package/dist/contracts/Euler.js +1948 -1975
  50. package/dist/contracts/ExtraFi.d.ts.map +1 -1
  51. package/dist/contracts/ExtraFi.js +1929 -1953
  52. package/dist/contracts/Fluid.d.ts.map +1 -1
  53. package/dist/contracts/Fluid.js +1927 -1951
  54. package/dist/contracts/FortyAcres.d.ts.map +1 -1
  55. package/dist/contracts/FortyAcres.js +1916 -1940
  56. package/dist/contracts/Hatchery.d.ts.map +1 -1
  57. package/dist/contracts/Hatchery.js +255 -264
  58. package/dist/contracts/Helpers.d.ts.map +1 -1
  59. package/dist/contracts/Helpers.js +1069 -1123
  60. package/dist/contracts/HighCommand.d.ts.map +1 -1
  61. package/dist/contracts/HighCommand.js +1395 -1407
  62. package/dist/contracts/Kernel.d.ts.map +1 -1
  63. package/dist/contracts/Kernel.js +224 -236
  64. package/dist/contracts/Ledger.d.ts +9 -12
  65. package/dist/contracts/Ledger.d.ts.map +1 -1
  66. package/dist/contracts/Ledger.js +480 -486
  67. package/dist/contracts/LegoBook.d.ts.map +1 -1
  68. package/dist/contracts/LegoBook.js +1069 -1123
  69. package/dist/contracts/LegoTools.d.ts +16 -22
  70. package/dist/contracts/LegoTools.d.ts.map +1 -1
  71. package/dist/contracts/LegoTools.js +1420 -1426
  72. package/dist/contracts/LevgVault.d.ts.map +1 -1
  73. package/dist/contracts/LevgVault.js +1544 -1580
  74. package/dist/contracts/LevgVaultAgent.d.ts.map +1 -1
  75. package/dist/contracts/LevgVaultAgent.js +1514 -1529
  76. package/dist/contracts/LevgVaultAgentSigHelper.d.ts.map +1 -1
  77. package/dist/contracts/LevgVaultAgentSigHelper.js +1769 -1769
  78. package/dist/contracts/LevgVaultHelper.d.ts.map +1 -1
  79. package/dist/contracts/LevgVaultHelper.js +732 -732
  80. package/dist/contracts/LevgVaultTools.d.ts.map +1 -1
  81. package/dist/contracts/LevgVaultTools.js +2118 -2118
  82. package/dist/contracts/LootDistributor.d.ts.map +1 -1
  83. package/dist/contracts/LootDistributor.js +754 -790
  84. package/dist/contracts/Migrator.d.ts.map +1 -1
  85. package/dist/contracts/Migrator.js +168 -174
  86. package/dist/contracts/MissionControl.d.ts.map +1 -1
  87. package/dist/contracts/MissionControl.js +956 -962
  88. package/dist/contracts/Moonwell.d.ts.map +1 -1
  89. package/dist/contracts/Moonwell.js +1918 -1942
  90. package/dist/contracts/Morpho.d.ts.map +1 -1
  91. package/dist/contracts/Morpho.js +1948 -1975
  92. package/dist/contracts/Paymaster.d.ts.map +1 -1
  93. package/dist/contracts/Paymaster.js +1203 -1224
  94. package/dist/contracts/RipeLego.d.ts.map +1 -1
  95. package/dist/contracts/RipeLego.js +2135 -2177
  96. package/dist/contracts/Sentinel.d.ts +32 -41
  97. package/dist/contracts/Sentinel.d.ts.map +1 -1
  98. package/dist/contracts/Sentinel.js +1398 -1398
  99. package/dist/contracts/SignatureHelper.d.ts.map +1 -1
  100. package/dist/contracts/SignatureHelper.js +3202 -3202
  101. package/dist/contracts/SignatureHelperV1.d.ts.map +1 -1
  102. package/dist/contracts/SignatureHelperV1.js +3202 -3202
  103. package/dist/contracts/SkyPsm.d.ts.map +1 -1
  104. package/dist/contracts/SkyPsm.js +1953 -1980
  105. package/dist/contracts/Switchboard.d.ts.map +1 -1
  106. package/dist/contracts/Switchboard.js +1085 -1139
  107. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  108. package/dist/contracts/SwitchboardAlpha.js +2333 -2474
  109. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
  110. package/dist/contracts/SwitchboardBravo.js +1138 -1216
  111. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
  112. package/dist/contracts/SwitchboardCharlie.js +2296 -2476
  113. package/dist/contracts/UnderscoreLego.d.ts.map +1 -1
  114. package/dist/contracts/UnderscoreLego.js +1894 -1918
  115. package/dist/contracts/UndyAero.d.ts.map +1 -1
  116. package/dist/contracts/UndyAero.js +1342 -1372
  117. package/dist/contracts/UndyBtc.d.ts.map +1 -1
  118. package/dist/contracts/UndyBtc.js +1342 -1372
  119. package/dist/contracts/UndyCbeth.d.ts.map +1 -1
  120. package/dist/contracts/UndyCbeth.js +1342 -1372
  121. package/dist/contracts/UndyEth.d.ts.map +1 -1
  122. package/dist/contracts/UndyEth.js +1342 -1372
  123. package/dist/contracts/UndyEurc.d.ts.map +1 -1
  124. package/dist/contracts/UndyEurc.js +1342 -1372
  125. package/dist/contracts/UndyGho.d.ts.map +1 -1
  126. package/dist/contracts/UndyGho.js +1342 -1372
  127. package/dist/contracts/UndyHq.d.ts.map +1 -1
  128. package/dist/contracts/UndyHq.js +1234 -1300
  129. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  130. package/dist/contracts/UndyRewardsLego.js +1120 -1120
  131. package/dist/contracts/UndyUsd.d.ts.map +1 -1
  132. package/dist/contracts/UndyUsd.js +1342 -1372
  133. package/dist/contracts/UndyUsdV2.d.ts +1762 -0
  134. package/dist/contracts/UndyUsdV2.d.ts.map +1 -0
  135. package/dist/contracts/UndyUsdV2.js +2267 -0
  136. package/dist/contracts/UndyUsds.d.ts.map +1 -1
  137. package/dist/contracts/UndyUsds.js +1342 -1372
  138. package/dist/contracts/UndyVirtual.d.ts.map +1 -1
  139. package/dist/contracts/UndyVirtual.js +1363 -1396
  140. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  141. package/dist/contracts/UniswapV2.js +1518 -1533
  142. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  143. package/dist/contracts/UniswapV3.js +1620 -1641
  144. package/dist/contracts/UserWallet.d.ts.map +1 -1
  145. package/dist/contracts/UserWallet.js +1999 -2005
  146. package/dist/contracts/UserWalletConfig.d.ts +67 -0
  147. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  148. package/dist/contracts/UserWalletConfig.js +2649 -2592
  149. package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -1
  150. package/dist/contracts/UserWalletConfigV1.js +2327 -2348
  151. package/dist/contracts/UserWalletSignatureHelper.d.ts.map +1 -1
  152. package/dist/contracts/UserWalletSignatureHelper.js +3436 -3436
  153. package/dist/contracts/UserWalletV1.d.ts.map +1 -1
  154. package/dist/contracts/UserWalletV1.js +1914 -1920
  155. package/dist/contracts/VaultRegistry.d.ts +11 -14
  156. package/dist/contracts/VaultRegistry.d.ts.map +1 -1
  157. package/dist/contracts/VaultRegistry.js +2343 -2439
  158. package/dist/contracts/WalletBackpack.d.ts.map +1 -1
  159. package/dist/contracts/WalletBackpack.js +926 -965
  160. package/dist/contracts/Wasabi.d.ts.map +1 -1
  161. package/dist/contracts/Wasabi.js +1917 -1941
  162. package/dist/contracts/index.d.ts +1 -0
  163. package/dist/contracts/index.d.ts.map +1 -1
  164. package/dist/contracts/index.js +1 -0
  165. package/dist/contracts/sdk.d.ts +2 -0
  166. package/dist/contracts/sdk.d.ts.map +1 -1
  167. package/dist/contracts/sdk.js +2 -0
  168. package/dist/index.d.ts.map +1 -1
  169. package/dist/index.js +9 -5
  170. package/package.json +44 -24
  171. package/LICENSE +0 -41
  172. package/dist/contracts/Agent.d.ts +0 -3773
  173. package/dist/contracts/Agent.d.ts.map +0 -1
  174. package/dist/contracts/Agent.js +0 -4942
  175. package/dist/getContracts.d.ts +0 -77
  176. package/dist/getContracts.d.ts.map +0 -1
  177. package/dist/getContracts.js +0 -64
@@ -5,2422 +5,2422 @@
5
5
  import { singleQuery } from '@dappql/async';
6
6
  export const abi = [
7
7
  {
8
- stateMutability: 'view',
9
- type: 'function',
10
- name: 'canSignerPerformAction',
11
- inputs: [
8
+ "stateMutability": "view",
9
+ "type": "function",
10
+ "name": "canSignerPerformAction",
11
+ "inputs": [
12
12
  {
13
- name: '_user',
14
- type: 'address',
13
+ "name": "_user",
14
+ "type": "address"
15
15
  },
16
16
  {
17
- name: '_signer',
18
- type: 'address',
17
+ "name": "_signer",
18
+ "type": "address"
19
19
  },
20
20
  {
21
- name: '_action',
22
- type: 'uint256',
23
- },
21
+ "name": "_action",
22
+ "type": "uint256"
23
+ }
24
24
  ],
25
- outputs: [
25
+ "outputs": [
26
26
  {
27
- name: '',
28
- type: 'bool',
29
- },
30
- ],
27
+ "name": "",
28
+ "type": "bool"
29
+ }
30
+ ]
31
31
  },
32
32
  {
33
- stateMutability: 'view',
34
- type: 'function',
35
- name: 'canSignerPerformAction',
36
- inputs: [
33
+ "stateMutability": "view",
34
+ "type": "function",
35
+ "name": "canSignerPerformAction",
36
+ "inputs": [
37
37
  {
38
- name: '_user',
39
- type: 'address',
38
+ "name": "_user",
39
+ "type": "address"
40
40
  },
41
41
  {
42
- name: '_signer',
43
- type: 'address',
42
+ "name": "_signer",
43
+ "type": "address"
44
44
  },
45
45
  {
46
- name: '_action',
47
- type: 'uint256',
46
+ "name": "_action",
47
+ "type": "uint256"
48
48
  },
49
49
  {
50
- name: '_assets',
51
- type: 'address[]',
52
- },
50
+ "name": "_assets",
51
+ "type": "address[]"
52
+ }
53
53
  ],
54
- outputs: [
54
+ "outputs": [
55
55
  {
56
- name: '',
57
- type: 'bool',
58
- },
59
- ],
56
+ "name": "",
57
+ "type": "bool"
58
+ }
59
+ ]
60
60
  },
61
61
  {
62
- stateMutability: 'view',
63
- type: 'function',
64
- name: 'canSignerPerformAction',
65
- inputs: [
62
+ "stateMutability": "view",
63
+ "type": "function",
64
+ "name": "canSignerPerformAction",
65
+ "inputs": [
66
66
  {
67
- name: '_user',
68
- type: 'address',
67
+ "name": "_user",
68
+ "type": "address"
69
69
  },
70
70
  {
71
- name: '_signer',
72
- type: 'address',
71
+ "name": "_signer",
72
+ "type": "address"
73
73
  },
74
74
  {
75
- name: '_action',
76
- type: 'uint256',
75
+ "name": "_action",
76
+ "type": "uint256"
77
77
  },
78
78
  {
79
- name: '_assets',
80
- type: 'address[]',
79
+ "name": "_assets",
80
+ "type": "address[]"
81
81
  },
82
82
  {
83
- name: '_legoIds',
84
- type: 'uint256[]',
85
- },
83
+ "name": "_legoIds",
84
+ "type": "uint256[]"
85
+ }
86
86
  ],
87
- outputs: [
87
+ "outputs": [
88
88
  {
89
- name: '',
90
- type: 'bool',
91
- },
92
- ],
89
+ "name": "",
90
+ "type": "bool"
91
+ }
92
+ ]
93
93
  },
94
94
  {
95
- stateMutability: 'view',
96
- type: 'function',
97
- name: 'canSignerPerformAction',
98
- inputs: [
95
+ "stateMutability": "view",
96
+ "type": "function",
97
+ "name": "canSignerPerformAction",
98
+ "inputs": [
99
99
  {
100
- name: '_user',
101
- type: 'address',
100
+ "name": "_user",
101
+ "type": "address"
102
102
  },
103
103
  {
104
- name: '_signer',
105
- type: 'address',
104
+ "name": "_signer",
105
+ "type": "address"
106
106
  },
107
107
  {
108
- name: '_action',
109
- type: 'uint256',
108
+ "name": "_action",
109
+ "type": "uint256"
110
110
  },
111
111
  {
112
- name: '_assets',
113
- type: 'address[]',
112
+ "name": "_assets",
113
+ "type": "address[]"
114
114
  },
115
115
  {
116
- name: '_legoIds',
117
- type: 'uint256[]',
116
+ "name": "_legoIds",
117
+ "type": "uint256[]"
118
118
  },
119
119
  {
120
- name: '_txRecipient',
121
- type: 'address',
122
- },
120
+ "name": "_txRecipient",
121
+ "type": "address"
122
+ }
123
123
  ],
124
- outputs: [
124
+ "outputs": [
125
125
  {
126
- name: '',
127
- type: 'bool',
128
- },
129
- ],
126
+ "name": "",
127
+ "type": "bool"
128
+ }
129
+ ]
130
130
  },
131
131
  {
132
- stateMutability: 'view',
133
- type: 'function',
134
- name: 'canSignerPerformActionWithConfig',
135
- inputs: [
132
+ "stateMutability": "view",
133
+ "type": "function",
134
+ "name": "canSignerPerformActionWithConfig",
135
+ "inputs": [
136
136
  {
137
- name: '_isOwner',
138
- type: 'bool',
137
+ "name": "_isOwner",
138
+ "type": "bool"
139
139
  },
140
140
  {
141
- name: '_isManager',
142
- type: 'bool',
141
+ "name": "_isManager",
142
+ "type": "bool"
143
143
  },
144
144
  {
145
- name: '_managerData',
146
- type: 'tuple',
147
- components: [
145
+ "name": "_managerData",
146
+ "type": "tuple",
147
+ "components": [
148
148
  {
149
- name: 'numTxsInPeriod',
150
- type: 'uint256',
149
+ "name": "numTxsInPeriod",
150
+ "type": "uint256"
151
151
  },
152
152
  {
153
- name: 'totalUsdValueInPeriod',
154
- type: 'uint256',
153
+ "name": "totalUsdValueInPeriod",
154
+ "type": "uint256"
155
155
  },
156
156
  {
157
- name: 'totalNumTxs',
158
- type: 'uint256',
157
+ "name": "totalNumTxs",
158
+ "type": "uint256"
159
159
  },
160
160
  {
161
- name: 'totalUsdValue',
162
- type: 'uint256',
161
+ "name": "totalUsdValue",
162
+ "type": "uint256"
163
163
  },
164
164
  {
165
- name: 'lastTxBlock',
166
- type: 'uint256',
165
+ "name": "lastTxBlock",
166
+ "type": "uint256"
167
167
  },
168
168
  {
169
- name: 'periodStartBlock',
170
- type: 'uint256',
169
+ "name": "periodStartBlock",
170
+ "type": "uint256"
171
171
  },
172
172
  {
173
- name: 'numSwapsInPeriod',
174
- type: 'uint256',
175
- },
176
- ],
173
+ "name": "numSwapsInPeriod",
174
+ "type": "uint256"
175
+ }
176
+ ]
177
177
  },
178
178
  {
179
- name: '_config',
180
- type: 'tuple',
181
- components: [
179
+ "name": "_config",
180
+ "type": "tuple",
181
+ "components": [
182
182
  {
183
- name: 'startBlock',
184
- type: 'uint256',
183
+ "name": "startBlock",
184
+ "type": "uint256"
185
185
  },
186
186
  {
187
- name: 'expiryBlock',
188
- type: 'uint256',
187
+ "name": "expiryBlock",
188
+ "type": "uint256"
189
189
  },
190
190
  {
191
- name: 'limits',
192
- type: 'tuple',
193
- components: [
191
+ "name": "limits",
192
+ "type": "tuple",
193
+ "components": [
194
194
  {
195
- name: 'maxUsdValuePerTx',
196
- type: 'uint256',
195
+ "name": "maxUsdValuePerTx",
196
+ "type": "uint256"
197
197
  },
198
198
  {
199
- name: 'maxUsdValuePerPeriod',
200
- type: 'uint256',
199
+ "name": "maxUsdValuePerPeriod",
200
+ "type": "uint256"
201
201
  },
202
202
  {
203
- name: 'maxUsdValueLifetime',
204
- type: 'uint256',
203
+ "name": "maxUsdValueLifetime",
204
+ "type": "uint256"
205
205
  },
206
206
  {
207
- name: 'maxNumTxsPerPeriod',
208
- type: 'uint256',
207
+ "name": "maxNumTxsPerPeriod",
208
+ "type": "uint256"
209
209
  },
210
210
  {
211
- name: 'txCooldownBlocks',
212
- type: 'uint256',
211
+ "name": "txCooldownBlocks",
212
+ "type": "uint256"
213
213
  },
214
214
  {
215
- name: 'failOnZeroPrice',
216
- type: 'bool',
217
- },
218
- ],
215
+ "name": "failOnZeroPrice",
216
+ "type": "bool"
217
+ }
218
+ ]
219
219
  },
220
220
  {
221
- name: 'legoPerms',
222
- type: 'tuple',
223
- components: [
221
+ "name": "legoPerms",
222
+ "type": "tuple",
223
+ "components": [
224
224
  {
225
- name: 'canManageYield',
226
- type: 'bool',
225
+ "name": "canManageYield",
226
+ "type": "bool"
227
227
  },
228
228
  {
229
- name: 'canBuyAndSell',
230
- type: 'bool',
229
+ "name": "canBuyAndSell",
230
+ "type": "bool"
231
231
  },
232
232
  {
233
- name: 'canManageDebt',
234
- type: 'bool',
233
+ "name": "canManageDebt",
234
+ "type": "bool"
235
235
  },
236
236
  {
237
- name: 'canManageLiq',
238
- type: 'bool',
237
+ "name": "canManageLiq",
238
+ "type": "bool"
239
239
  },
240
240
  {
241
- name: 'canClaimRewards',
242
- type: 'bool',
241
+ "name": "canClaimRewards",
242
+ "type": "bool"
243
243
  },
244
244
  {
245
- name: 'onlyApprovedYieldOpps',
246
- type: 'bool',
245
+ "name": "onlyApprovedYieldOpps",
246
+ "type": "bool"
247
247
  },
248
248
  {
249
- name: 'allowedLegos',
250
- type: 'uint256[]',
251
- },
252
- ],
249
+ "name": "allowedLegos",
250
+ "type": "uint256[]"
251
+ }
252
+ ]
253
253
  },
254
254
  {
255
- name: 'swapPerms',
256
- type: 'tuple',
257
- components: [
255
+ "name": "swapPerms",
256
+ "type": "tuple",
257
+ "components": [
258
258
  {
259
- name: 'mustHaveUsdValue',
260
- type: 'bool',
259
+ "name": "mustHaveUsdValue",
260
+ "type": "bool"
261
261
  },
262
262
  {
263
- name: 'maxNumSwapsPerPeriod',
264
- type: 'uint256',
263
+ "name": "maxNumSwapsPerPeriod",
264
+ "type": "uint256"
265
265
  },
266
266
  {
267
- name: 'maxSlippage',
268
- type: 'uint256',
269
- },
270
- ],
267
+ "name": "maxSlippage",
268
+ "type": "uint256"
269
+ }
270
+ ]
271
271
  },
272
272
  {
273
- name: 'whitelistPerms',
274
- type: 'tuple',
275
- components: [
273
+ "name": "whitelistPerms",
274
+ "type": "tuple",
275
+ "components": [
276
276
  {
277
- name: 'canAddPending',
278
- type: 'bool',
277
+ "name": "canAddPending",
278
+ "type": "bool"
279
279
  },
280
280
  {
281
- name: 'canConfirm',
282
- type: 'bool',
281
+ "name": "canConfirm",
282
+ "type": "bool"
283
283
  },
284
284
  {
285
- name: 'canCancel',
286
- type: 'bool',
285
+ "name": "canCancel",
286
+ "type": "bool"
287
287
  },
288
288
  {
289
- name: 'canRemove',
290
- type: 'bool',
291
- },
292
- ],
289
+ "name": "canRemove",
290
+ "type": "bool"
291
+ }
292
+ ]
293
293
  },
294
294
  {
295
- name: 'transferPerms',
296
- type: 'tuple',
297
- components: [
295
+ "name": "transferPerms",
296
+ "type": "tuple",
297
+ "components": [
298
298
  {
299
- name: 'canTransfer',
300
- type: 'bool',
299
+ "name": "canTransfer",
300
+ "type": "bool"
301
301
  },
302
302
  {
303
- name: 'canCreateCheque',
304
- type: 'bool',
303
+ "name": "canCreateCheque",
304
+ "type": "bool"
305
305
  },
306
306
  {
307
- name: 'canAddPendingPayee',
308
- type: 'bool',
307
+ "name": "canAddPendingPayee",
308
+ "type": "bool"
309
309
  },
310
310
  {
311
- name: 'allowedPayees',
312
- type: 'address[]',
313
- },
314
- ],
311
+ "name": "allowedPayees",
312
+ "type": "address[]"
313
+ }
314
+ ]
315
315
  },
316
316
  {
317
- name: 'allowedAssets',
318
- type: 'address[]',
317
+ "name": "allowedAssets",
318
+ "type": "address[]"
319
319
  },
320
320
  {
321
- name: 'canClaimLoot',
322
- type: 'bool',
323
- },
324
- ],
321
+ "name": "canClaimLoot",
322
+ "type": "bool"
323
+ }
324
+ ]
325
325
  },
326
326
  {
327
- name: '_globalConfig',
328
- type: 'tuple',
329
- components: [
327
+ "name": "_globalConfig",
328
+ "type": "tuple",
329
+ "components": [
330
330
  {
331
- name: 'managerPeriod',
332
- type: 'uint256',
331
+ "name": "managerPeriod",
332
+ "type": "uint256"
333
333
  },
334
334
  {
335
- name: 'startDelay',
336
- type: 'uint256',
335
+ "name": "startDelay",
336
+ "type": "uint256"
337
337
  },
338
338
  {
339
- name: 'activationLength',
340
- type: 'uint256',
339
+ "name": "activationLength",
340
+ "type": "uint256"
341
341
  },
342
342
  {
343
- name: 'canOwnerManage',
344
- type: 'bool',
343
+ "name": "canOwnerManage",
344
+ "type": "bool"
345
345
  },
346
346
  {
347
- name: 'limits',
348
- type: 'tuple',
349
- components: [
347
+ "name": "limits",
348
+ "type": "tuple",
349
+ "components": [
350
350
  {
351
- name: 'maxUsdValuePerTx',
352
- type: 'uint256',
351
+ "name": "maxUsdValuePerTx",
352
+ "type": "uint256"
353
353
  },
354
354
  {
355
- name: 'maxUsdValuePerPeriod',
356
- type: 'uint256',
355
+ "name": "maxUsdValuePerPeriod",
356
+ "type": "uint256"
357
357
  },
358
358
  {
359
- name: 'maxUsdValueLifetime',
360
- type: 'uint256',
359
+ "name": "maxUsdValueLifetime",
360
+ "type": "uint256"
361
361
  },
362
362
  {
363
- name: 'maxNumTxsPerPeriod',
364
- type: 'uint256',
363
+ "name": "maxNumTxsPerPeriod",
364
+ "type": "uint256"
365
365
  },
366
366
  {
367
- name: 'txCooldownBlocks',
368
- type: 'uint256',
367
+ "name": "txCooldownBlocks",
368
+ "type": "uint256"
369
369
  },
370
370
  {
371
- name: 'failOnZeroPrice',
372
- type: 'bool',
373
- },
374
- ],
371
+ "name": "failOnZeroPrice",
372
+ "type": "bool"
373
+ }
374
+ ]
375
375
  },
376
376
  {
377
- name: 'legoPerms',
378
- type: 'tuple',
379
- components: [
377
+ "name": "legoPerms",
378
+ "type": "tuple",
379
+ "components": [
380
380
  {
381
- name: 'canManageYield',
382
- type: 'bool',
381
+ "name": "canManageYield",
382
+ "type": "bool"
383
383
  },
384
384
  {
385
- name: 'canBuyAndSell',
386
- type: 'bool',
385
+ "name": "canBuyAndSell",
386
+ "type": "bool"
387
387
  },
388
388
  {
389
- name: 'canManageDebt',
390
- type: 'bool',
389
+ "name": "canManageDebt",
390
+ "type": "bool"
391
391
  },
392
392
  {
393
- name: 'canManageLiq',
394
- type: 'bool',
393
+ "name": "canManageLiq",
394
+ "type": "bool"
395
395
  },
396
396
  {
397
- name: 'canClaimRewards',
398
- type: 'bool',
397
+ "name": "canClaimRewards",
398
+ "type": "bool"
399
399
  },
400
400
  {
401
- name: 'onlyApprovedYieldOpps',
402
- type: 'bool',
401
+ "name": "onlyApprovedYieldOpps",
402
+ "type": "bool"
403
403
  },
404
404
  {
405
- name: 'allowedLegos',
406
- type: 'uint256[]',
407
- },
408
- ],
405
+ "name": "allowedLegos",
406
+ "type": "uint256[]"
407
+ }
408
+ ]
409
409
  },
410
410
  {
411
- name: 'swapPerms',
412
- type: 'tuple',
413
- components: [
411
+ "name": "swapPerms",
412
+ "type": "tuple",
413
+ "components": [
414
414
  {
415
- name: 'mustHaveUsdValue',
416
- type: 'bool',
415
+ "name": "mustHaveUsdValue",
416
+ "type": "bool"
417
417
  },
418
418
  {
419
- name: 'maxNumSwapsPerPeriod',
420
- type: 'uint256',
419
+ "name": "maxNumSwapsPerPeriod",
420
+ "type": "uint256"
421
421
  },
422
422
  {
423
- name: 'maxSlippage',
424
- type: 'uint256',
425
- },
426
- ],
423
+ "name": "maxSlippage",
424
+ "type": "uint256"
425
+ }
426
+ ]
427
427
  },
428
428
  {
429
- name: 'whitelistPerms',
430
- type: 'tuple',
431
- components: [
429
+ "name": "whitelistPerms",
430
+ "type": "tuple",
431
+ "components": [
432
432
  {
433
- name: 'canAddPending',
434
- type: 'bool',
433
+ "name": "canAddPending",
434
+ "type": "bool"
435
435
  },
436
436
  {
437
- name: 'canConfirm',
438
- type: 'bool',
437
+ "name": "canConfirm",
438
+ "type": "bool"
439
439
  },
440
440
  {
441
- name: 'canCancel',
442
- type: 'bool',
441
+ "name": "canCancel",
442
+ "type": "bool"
443
443
  },
444
444
  {
445
- name: 'canRemove',
446
- type: 'bool',
447
- },
448
- ],
445
+ "name": "canRemove",
446
+ "type": "bool"
447
+ }
448
+ ]
449
449
  },
450
450
  {
451
- name: 'transferPerms',
452
- type: 'tuple',
453
- components: [
451
+ "name": "transferPerms",
452
+ "type": "tuple",
453
+ "components": [
454
454
  {
455
- name: 'canTransfer',
456
- type: 'bool',
455
+ "name": "canTransfer",
456
+ "type": "bool"
457
457
  },
458
458
  {
459
- name: 'canCreateCheque',
460
- type: 'bool',
459
+ "name": "canCreateCheque",
460
+ "type": "bool"
461
461
  },
462
462
  {
463
- name: 'canAddPendingPayee',
464
- type: 'bool',
463
+ "name": "canAddPendingPayee",
464
+ "type": "bool"
465
465
  },
466
466
  {
467
- name: 'allowedPayees',
468
- type: 'address[]',
469
- },
470
- ],
467
+ "name": "allowedPayees",
468
+ "type": "address[]"
469
+ }
470
+ ]
471
471
  },
472
472
  {
473
- name: 'allowedAssets',
474
- type: 'address[]',
475
- },
476
- ],
473
+ "name": "allowedAssets",
474
+ "type": "address[]"
475
+ }
476
+ ]
477
477
  },
478
478
  {
479
- name: '_action',
480
- type: 'uint256',
481
- },
479
+ "name": "_action",
480
+ "type": "uint256"
481
+ }
482
482
  ],
483
- outputs: [
483
+ "outputs": [
484
484
  {
485
- name: '',
486
- type: 'bool',
487
- },
488
- ],
485
+ "name": "",
486
+ "type": "bool"
487
+ }
488
+ ]
489
489
  },
490
490
  {
491
- stateMutability: 'view',
492
- type: 'function',
493
- name: 'canSignerPerformActionWithConfig',
494
- inputs: [
491
+ "stateMutability": "view",
492
+ "type": "function",
493
+ "name": "canSignerPerformActionWithConfig",
494
+ "inputs": [
495
495
  {
496
- name: '_isOwner',
497
- type: 'bool',
496
+ "name": "_isOwner",
497
+ "type": "bool"
498
498
  },
499
499
  {
500
- name: '_isManager',
501
- type: 'bool',
500
+ "name": "_isManager",
501
+ "type": "bool"
502
502
  },
503
503
  {
504
- name: '_managerData',
505
- type: 'tuple',
506
- components: [
504
+ "name": "_managerData",
505
+ "type": "tuple",
506
+ "components": [
507
507
  {
508
- name: 'numTxsInPeriod',
509
- type: 'uint256',
508
+ "name": "numTxsInPeriod",
509
+ "type": "uint256"
510
510
  },
511
511
  {
512
- name: 'totalUsdValueInPeriod',
513
- type: 'uint256',
512
+ "name": "totalUsdValueInPeriod",
513
+ "type": "uint256"
514
514
  },
515
515
  {
516
- name: 'totalNumTxs',
517
- type: 'uint256',
516
+ "name": "totalNumTxs",
517
+ "type": "uint256"
518
518
  },
519
519
  {
520
- name: 'totalUsdValue',
521
- type: 'uint256',
520
+ "name": "totalUsdValue",
521
+ "type": "uint256"
522
522
  },
523
523
  {
524
- name: 'lastTxBlock',
525
- type: 'uint256',
524
+ "name": "lastTxBlock",
525
+ "type": "uint256"
526
526
  },
527
527
  {
528
- name: 'periodStartBlock',
529
- type: 'uint256',
528
+ "name": "periodStartBlock",
529
+ "type": "uint256"
530
530
  },
531
531
  {
532
- name: 'numSwapsInPeriod',
533
- type: 'uint256',
534
- },
535
- ],
532
+ "name": "numSwapsInPeriod",
533
+ "type": "uint256"
534
+ }
535
+ ]
536
536
  },
537
537
  {
538
- name: '_config',
539
- type: 'tuple',
540
- components: [
538
+ "name": "_config",
539
+ "type": "tuple",
540
+ "components": [
541
541
  {
542
- name: 'startBlock',
543
- type: 'uint256',
542
+ "name": "startBlock",
543
+ "type": "uint256"
544
544
  },
545
545
  {
546
- name: 'expiryBlock',
547
- type: 'uint256',
546
+ "name": "expiryBlock",
547
+ "type": "uint256"
548
548
  },
549
549
  {
550
- name: 'limits',
551
- type: 'tuple',
552
- components: [
550
+ "name": "limits",
551
+ "type": "tuple",
552
+ "components": [
553
553
  {
554
- name: 'maxUsdValuePerTx',
555
- type: 'uint256',
554
+ "name": "maxUsdValuePerTx",
555
+ "type": "uint256"
556
556
  },
557
557
  {
558
- name: 'maxUsdValuePerPeriod',
559
- type: 'uint256',
558
+ "name": "maxUsdValuePerPeriod",
559
+ "type": "uint256"
560
560
  },
561
561
  {
562
- name: 'maxUsdValueLifetime',
563
- type: 'uint256',
562
+ "name": "maxUsdValueLifetime",
563
+ "type": "uint256"
564
564
  },
565
565
  {
566
- name: 'maxNumTxsPerPeriod',
567
- type: 'uint256',
566
+ "name": "maxNumTxsPerPeriod",
567
+ "type": "uint256"
568
568
  },
569
569
  {
570
- name: 'txCooldownBlocks',
571
- type: 'uint256',
570
+ "name": "txCooldownBlocks",
571
+ "type": "uint256"
572
572
  },
573
573
  {
574
- name: 'failOnZeroPrice',
575
- type: 'bool',
576
- },
577
- ],
574
+ "name": "failOnZeroPrice",
575
+ "type": "bool"
576
+ }
577
+ ]
578
578
  },
579
579
  {
580
- name: 'legoPerms',
581
- type: 'tuple',
582
- components: [
580
+ "name": "legoPerms",
581
+ "type": "tuple",
582
+ "components": [
583
583
  {
584
- name: 'canManageYield',
585
- type: 'bool',
584
+ "name": "canManageYield",
585
+ "type": "bool"
586
586
  },
587
587
  {
588
- name: 'canBuyAndSell',
589
- type: 'bool',
588
+ "name": "canBuyAndSell",
589
+ "type": "bool"
590
590
  },
591
591
  {
592
- name: 'canManageDebt',
593
- type: 'bool',
592
+ "name": "canManageDebt",
593
+ "type": "bool"
594
594
  },
595
595
  {
596
- name: 'canManageLiq',
597
- type: 'bool',
596
+ "name": "canManageLiq",
597
+ "type": "bool"
598
598
  },
599
599
  {
600
- name: 'canClaimRewards',
601
- type: 'bool',
600
+ "name": "canClaimRewards",
601
+ "type": "bool"
602
602
  },
603
603
  {
604
- name: 'onlyApprovedYieldOpps',
605
- type: 'bool',
604
+ "name": "onlyApprovedYieldOpps",
605
+ "type": "bool"
606
606
  },
607
607
  {
608
- name: 'allowedLegos',
609
- type: 'uint256[]',
610
- },
611
- ],
608
+ "name": "allowedLegos",
609
+ "type": "uint256[]"
610
+ }
611
+ ]
612
612
  },
613
613
  {
614
- name: 'swapPerms',
615
- type: 'tuple',
616
- components: [
614
+ "name": "swapPerms",
615
+ "type": "tuple",
616
+ "components": [
617
617
  {
618
- name: 'mustHaveUsdValue',
619
- type: 'bool',
618
+ "name": "mustHaveUsdValue",
619
+ "type": "bool"
620
620
  },
621
621
  {
622
- name: 'maxNumSwapsPerPeriod',
623
- type: 'uint256',
622
+ "name": "maxNumSwapsPerPeriod",
623
+ "type": "uint256"
624
624
  },
625
625
  {
626
- name: 'maxSlippage',
627
- type: 'uint256',
628
- },
629
- ],
626
+ "name": "maxSlippage",
627
+ "type": "uint256"
628
+ }
629
+ ]
630
630
  },
631
631
  {
632
- name: 'whitelistPerms',
633
- type: 'tuple',
634
- components: [
632
+ "name": "whitelistPerms",
633
+ "type": "tuple",
634
+ "components": [
635
635
  {
636
- name: 'canAddPending',
637
- type: 'bool',
636
+ "name": "canAddPending",
637
+ "type": "bool"
638
638
  },
639
639
  {
640
- name: 'canConfirm',
641
- type: 'bool',
640
+ "name": "canConfirm",
641
+ "type": "bool"
642
642
  },
643
643
  {
644
- name: 'canCancel',
645
- type: 'bool',
644
+ "name": "canCancel",
645
+ "type": "bool"
646
646
  },
647
647
  {
648
- name: 'canRemove',
649
- type: 'bool',
650
- },
651
- ],
648
+ "name": "canRemove",
649
+ "type": "bool"
650
+ }
651
+ ]
652
652
  },
653
653
  {
654
- name: 'transferPerms',
655
- type: 'tuple',
656
- components: [
654
+ "name": "transferPerms",
655
+ "type": "tuple",
656
+ "components": [
657
657
  {
658
- name: 'canTransfer',
659
- type: 'bool',
658
+ "name": "canTransfer",
659
+ "type": "bool"
660
660
  },
661
661
  {
662
- name: 'canCreateCheque',
663
- type: 'bool',
662
+ "name": "canCreateCheque",
663
+ "type": "bool"
664
664
  },
665
665
  {
666
- name: 'canAddPendingPayee',
667
- type: 'bool',
666
+ "name": "canAddPendingPayee",
667
+ "type": "bool"
668
668
  },
669
669
  {
670
- name: 'allowedPayees',
671
- type: 'address[]',
672
- },
673
- ],
670
+ "name": "allowedPayees",
671
+ "type": "address[]"
672
+ }
673
+ ]
674
674
  },
675
675
  {
676
- name: 'allowedAssets',
677
- type: 'address[]',
676
+ "name": "allowedAssets",
677
+ "type": "address[]"
678
678
  },
679
679
  {
680
- name: 'canClaimLoot',
681
- type: 'bool',
682
- },
683
- ],
680
+ "name": "canClaimLoot",
681
+ "type": "bool"
682
+ }
683
+ ]
684
684
  },
685
685
  {
686
- name: '_globalConfig',
687
- type: 'tuple',
688
- components: [
686
+ "name": "_globalConfig",
687
+ "type": "tuple",
688
+ "components": [
689
689
  {
690
- name: 'managerPeriod',
691
- type: 'uint256',
690
+ "name": "managerPeriod",
691
+ "type": "uint256"
692
692
  },
693
693
  {
694
- name: 'startDelay',
695
- type: 'uint256',
694
+ "name": "startDelay",
695
+ "type": "uint256"
696
696
  },
697
697
  {
698
- name: 'activationLength',
699
- type: 'uint256',
698
+ "name": "activationLength",
699
+ "type": "uint256"
700
700
  },
701
701
  {
702
- name: 'canOwnerManage',
703
- type: 'bool',
702
+ "name": "canOwnerManage",
703
+ "type": "bool"
704
704
  },
705
705
  {
706
- name: 'limits',
707
- type: 'tuple',
708
- components: [
706
+ "name": "limits",
707
+ "type": "tuple",
708
+ "components": [
709
709
  {
710
- name: 'maxUsdValuePerTx',
711
- type: 'uint256',
710
+ "name": "maxUsdValuePerTx",
711
+ "type": "uint256"
712
712
  },
713
713
  {
714
- name: 'maxUsdValuePerPeriod',
715
- type: 'uint256',
714
+ "name": "maxUsdValuePerPeriod",
715
+ "type": "uint256"
716
716
  },
717
717
  {
718
- name: 'maxUsdValueLifetime',
719
- type: 'uint256',
718
+ "name": "maxUsdValueLifetime",
719
+ "type": "uint256"
720
720
  },
721
721
  {
722
- name: 'maxNumTxsPerPeriod',
723
- type: 'uint256',
722
+ "name": "maxNumTxsPerPeriod",
723
+ "type": "uint256"
724
724
  },
725
725
  {
726
- name: 'txCooldownBlocks',
727
- type: 'uint256',
726
+ "name": "txCooldownBlocks",
727
+ "type": "uint256"
728
728
  },
729
729
  {
730
- name: 'failOnZeroPrice',
731
- type: 'bool',
732
- },
733
- ],
730
+ "name": "failOnZeroPrice",
731
+ "type": "bool"
732
+ }
733
+ ]
734
734
  },
735
735
  {
736
- name: 'legoPerms',
737
- type: 'tuple',
738
- components: [
736
+ "name": "legoPerms",
737
+ "type": "tuple",
738
+ "components": [
739
739
  {
740
- name: 'canManageYield',
741
- type: 'bool',
740
+ "name": "canManageYield",
741
+ "type": "bool"
742
742
  },
743
743
  {
744
- name: 'canBuyAndSell',
745
- type: 'bool',
744
+ "name": "canBuyAndSell",
745
+ "type": "bool"
746
746
  },
747
747
  {
748
- name: 'canManageDebt',
749
- type: 'bool',
748
+ "name": "canManageDebt",
749
+ "type": "bool"
750
750
  },
751
751
  {
752
- name: 'canManageLiq',
753
- type: 'bool',
752
+ "name": "canManageLiq",
753
+ "type": "bool"
754
754
  },
755
755
  {
756
- name: 'canClaimRewards',
757
- type: 'bool',
756
+ "name": "canClaimRewards",
757
+ "type": "bool"
758
758
  },
759
759
  {
760
- name: 'onlyApprovedYieldOpps',
761
- type: 'bool',
760
+ "name": "onlyApprovedYieldOpps",
761
+ "type": "bool"
762
762
  },
763
763
  {
764
- name: 'allowedLegos',
765
- type: 'uint256[]',
766
- },
767
- ],
764
+ "name": "allowedLegos",
765
+ "type": "uint256[]"
766
+ }
767
+ ]
768
768
  },
769
769
  {
770
- name: 'swapPerms',
771
- type: 'tuple',
772
- components: [
770
+ "name": "swapPerms",
771
+ "type": "tuple",
772
+ "components": [
773
773
  {
774
- name: 'mustHaveUsdValue',
775
- type: 'bool',
774
+ "name": "mustHaveUsdValue",
775
+ "type": "bool"
776
776
  },
777
777
  {
778
- name: 'maxNumSwapsPerPeriod',
779
- type: 'uint256',
778
+ "name": "maxNumSwapsPerPeriod",
779
+ "type": "uint256"
780
780
  },
781
781
  {
782
- name: 'maxSlippage',
783
- type: 'uint256',
784
- },
785
- ],
782
+ "name": "maxSlippage",
783
+ "type": "uint256"
784
+ }
785
+ ]
786
786
  },
787
787
  {
788
- name: 'whitelistPerms',
789
- type: 'tuple',
790
- components: [
788
+ "name": "whitelistPerms",
789
+ "type": "tuple",
790
+ "components": [
791
791
  {
792
- name: 'canAddPending',
793
- type: 'bool',
792
+ "name": "canAddPending",
793
+ "type": "bool"
794
794
  },
795
795
  {
796
- name: 'canConfirm',
797
- type: 'bool',
796
+ "name": "canConfirm",
797
+ "type": "bool"
798
798
  },
799
799
  {
800
- name: 'canCancel',
801
- type: 'bool',
800
+ "name": "canCancel",
801
+ "type": "bool"
802
802
  },
803
803
  {
804
- name: 'canRemove',
805
- type: 'bool',
806
- },
807
- ],
804
+ "name": "canRemove",
805
+ "type": "bool"
806
+ }
807
+ ]
808
808
  },
809
809
  {
810
- name: 'transferPerms',
811
- type: 'tuple',
812
- components: [
810
+ "name": "transferPerms",
811
+ "type": "tuple",
812
+ "components": [
813
813
  {
814
- name: 'canTransfer',
815
- type: 'bool',
814
+ "name": "canTransfer",
815
+ "type": "bool"
816
816
  },
817
817
  {
818
- name: 'canCreateCheque',
819
- type: 'bool',
818
+ "name": "canCreateCheque",
819
+ "type": "bool"
820
820
  },
821
821
  {
822
- name: 'canAddPendingPayee',
823
- type: 'bool',
822
+ "name": "canAddPendingPayee",
823
+ "type": "bool"
824
824
  },
825
825
  {
826
- name: 'allowedPayees',
827
- type: 'address[]',
828
- },
829
- ],
826
+ "name": "allowedPayees",
827
+ "type": "address[]"
828
+ }
829
+ ]
830
830
  },
831
831
  {
832
- name: 'allowedAssets',
833
- type: 'address[]',
834
- },
835
- ],
832
+ "name": "allowedAssets",
833
+ "type": "address[]"
834
+ }
835
+ ]
836
836
  },
837
837
  {
838
- name: '_action',
839
- type: 'uint256',
838
+ "name": "_action",
839
+ "type": "uint256"
840
840
  },
841
841
  {
842
- name: '_assets',
843
- type: 'address[]',
844
- },
842
+ "name": "_assets",
843
+ "type": "address[]"
844
+ }
845
845
  ],
846
- outputs: [
846
+ "outputs": [
847
847
  {
848
- name: '',
849
- type: 'bool',
850
- },
851
- ],
848
+ "name": "",
849
+ "type": "bool"
850
+ }
851
+ ]
852
852
  },
853
853
  {
854
- stateMutability: 'view',
855
- type: 'function',
856
- name: 'canSignerPerformActionWithConfig',
857
- inputs: [
854
+ "stateMutability": "view",
855
+ "type": "function",
856
+ "name": "canSignerPerformActionWithConfig",
857
+ "inputs": [
858
858
  {
859
- name: '_isOwner',
860
- type: 'bool',
859
+ "name": "_isOwner",
860
+ "type": "bool"
861
861
  },
862
862
  {
863
- name: '_isManager',
864
- type: 'bool',
863
+ "name": "_isManager",
864
+ "type": "bool"
865
865
  },
866
866
  {
867
- name: '_managerData',
868
- type: 'tuple',
869
- components: [
867
+ "name": "_managerData",
868
+ "type": "tuple",
869
+ "components": [
870
870
  {
871
- name: 'numTxsInPeriod',
872
- type: 'uint256',
871
+ "name": "numTxsInPeriod",
872
+ "type": "uint256"
873
873
  },
874
874
  {
875
- name: 'totalUsdValueInPeriod',
876
- type: 'uint256',
875
+ "name": "totalUsdValueInPeriod",
876
+ "type": "uint256"
877
877
  },
878
878
  {
879
- name: 'totalNumTxs',
880
- type: 'uint256',
879
+ "name": "totalNumTxs",
880
+ "type": "uint256"
881
881
  },
882
882
  {
883
- name: 'totalUsdValue',
884
- type: 'uint256',
883
+ "name": "totalUsdValue",
884
+ "type": "uint256"
885
885
  },
886
886
  {
887
- name: 'lastTxBlock',
888
- type: 'uint256',
887
+ "name": "lastTxBlock",
888
+ "type": "uint256"
889
889
  },
890
890
  {
891
- name: 'periodStartBlock',
892
- type: 'uint256',
891
+ "name": "periodStartBlock",
892
+ "type": "uint256"
893
893
  },
894
894
  {
895
- name: 'numSwapsInPeriod',
896
- type: 'uint256',
897
- },
898
- ],
895
+ "name": "numSwapsInPeriod",
896
+ "type": "uint256"
897
+ }
898
+ ]
899
899
  },
900
900
  {
901
- name: '_config',
902
- type: 'tuple',
903
- components: [
901
+ "name": "_config",
902
+ "type": "tuple",
903
+ "components": [
904
904
  {
905
- name: 'startBlock',
906
- type: 'uint256',
905
+ "name": "startBlock",
906
+ "type": "uint256"
907
907
  },
908
908
  {
909
- name: 'expiryBlock',
910
- type: 'uint256',
909
+ "name": "expiryBlock",
910
+ "type": "uint256"
911
911
  },
912
912
  {
913
- name: 'limits',
914
- type: 'tuple',
915
- components: [
913
+ "name": "limits",
914
+ "type": "tuple",
915
+ "components": [
916
916
  {
917
- name: 'maxUsdValuePerTx',
918
- type: 'uint256',
917
+ "name": "maxUsdValuePerTx",
918
+ "type": "uint256"
919
919
  },
920
920
  {
921
- name: 'maxUsdValuePerPeriod',
922
- type: 'uint256',
921
+ "name": "maxUsdValuePerPeriod",
922
+ "type": "uint256"
923
923
  },
924
924
  {
925
- name: 'maxUsdValueLifetime',
926
- type: 'uint256',
925
+ "name": "maxUsdValueLifetime",
926
+ "type": "uint256"
927
927
  },
928
928
  {
929
- name: 'maxNumTxsPerPeriod',
930
- type: 'uint256',
929
+ "name": "maxNumTxsPerPeriod",
930
+ "type": "uint256"
931
931
  },
932
932
  {
933
- name: 'txCooldownBlocks',
934
- type: 'uint256',
933
+ "name": "txCooldownBlocks",
934
+ "type": "uint256"
935
935
  },
936
936
  {
937
- name: 'failOnZeroPrice',
938
- type: 'bool',
939
- },
940
- ],
937
+ "name": "failOnZeroPrice",
938
+ "type": "bool"
939
+ }
940
+ ]
941
941
  },
942
942
  {
943
- name: 'legoPerms',
944
- type: 'tuple',
945
- components: [
943
+ "name": "legoPerms",
944
+ "type": "tuple",
945
+ "components": [
946
946
  {
947
- name: 'canManageYield',
948
- type: 'bool',
947
+ "name": "canManageYield",
948
+ "type": "bool"
949
949
  },
950
950
  {
951
- name: 'canBuyAndSell',
952
- type: 'bool',
951
+ "name": "canBuyAndSell",
952
+ "type": "bool"
953
953
  },
954
954
  {
955
- name: 'canManageDebt',
956
- type: 'bool',
955
+ "name": "canManageDebt",
956
+ "type": "bool"
957
957
  },
958
958
  {
959
- name: 'canManageLiq',
960
- type: 'bool',
959
+ "name": "canManageLiq",
960
+ "type": "bool"
961
961
  },
962
962
  {
963
- name: 'canClaimRewards',
964
- type: 'bool',
963
+ "name": "canClaimRewards",
964
+ "type": "bool"
965
965
  },
966
966
  {
967
- name: 'onlyApprovedYieldOpps',
968
- type: 'bool',
967
+ "name": "onlyApprovedYieldOpps",
968
+ "type": "bool"
969
969
  },
970
970
  {
971
- name: 'allowedLegos',
972
- type: 'uint256[]',
973
- },
974
- ],
971
+ "name": "allowedLegos",
972
+ "type": "uint256[]"
973
+ }
974
+ ]
975
975
  },
976
976
  {
977
- name: 'swapPerms',
978
- type: 'tuple',
979
- components: [
977
+ "name": "swapPerms",
978
+ "type": "tuple",
979
+ "components": [
980
980
  {
981
- name: 'mustHaveUsdValue',
982
- type: 'bool',
981
+ "name": "mustHaveUsdValue",
982
+ "type": "bool"
983
983
  },
984
984
  {
985
- name: 'maxNumSwapsPerPeriod',
986
- type: 'uint256',
985
+ "name": "maxNumSwapsPerPeriod",
986
+ "type": "uint256"
987
987
  },
988
988
  {
989
- name: 'maxSlippage',
990
- type: 'uint256',
991
- },
992
- ],
989
+ "name": "maxSlippage",
990
+ "type": "uint256"
991
+ }
992
+ ]
993
993
  },
994
994
  {
995
- name: 'whitelistPerms',
996
- type: 'tuple',
997
- components: [
995
+ "name": "whitelistPerms",
996
+ "type": "tuple",
997
+ "components": [
998
998
  {
999
- name: 'canAddPending',
1000
- type: 'bool',
999
+ "name": "canAddPending",
1000
+ "type": "bool"
1001
1001
  },
1002
1002
  {
1003
- name: 'canConfirm',
1004
- type: 'bool',
1003
+ "name": "canConfirm",
1004
+ "type": "bool"
1005
1005
  },
1006
1006
  {
1007
- name: 'canCancel',
1008
- type: 'bool',
1007
+ "name": "canCancel",
1008
+ "type": "bool"
1009
1009
  },
1010
1010
  {
1011
- name: 'canRemove',
1012
- type: 'bool',
1013
- },
1014
- ],
1011
+ "name": "canRemove",
1012
+ "type": "bool"
1013
+ }
1014
+ ]
1015
1015
  },
1016
1016
  {
1017
- name: 'transferPerms',
1018
- type: 'tuple',
1019
- components: [
1017
+ "name": "transferPerms",
1018
+ "type": "tuple",
1019
+ "components": [
1020
1020
  {
1021
- name: 'canTransfer',
1022
- type: 'bool',
1021
+ "name": "canTransfer",
1022
+ "type": "bool"
1023
1023
  },
1024
1024
  {
1025
- name: 'canCreateCheque',
1026
- type: 'bool',
1025
+ "name": "canCreateCheque",
1026
+ "type": "bool"
1027
1027
  },
1028
1028
  {
1029
- name: 'canAddPendingPayee',
1030
- type: 'bool',
1029
+ "name": "canAddPendingPayee",
1030
+ "type": "bool"
1031
1031
  },
1032
1032
  {
1033
- name: 'allowedPayees',
1034
- type: 'address[]',
1035
- },
1036
- ],
1033
+ "name": "allowedPayees",
1034
+ "type": "address[]"
1035
+ }
1036
+ ]
1037
1037
  },
1038
1038
  {
1039
- name: 'allowedAssets',
1040
- type: 'address[]',
1039
+ "name": "allowedAssets",
1040
+ "type": "address[]"
1041
1041
  },
1042
1042
  {
1043
- name: 'canClaimLoot',
1044
- type: 'bool',
1045
- },
1046
- ],
1043
+ "name": "canClaimLoot",
1044
+ "type": "bool"
1045
+ }
1046
+ ]
1047
1047
  },
1048
1048
  {
1049
- name: '_globalConfig',
1050
- type: 'tuple',
1051
- components: [
1049
+ "name": "_globalConfig",
1050
+ "type": "tuple",
1051
+ "components": [
1052
1052
  {
1053
- name: 'managerPeriod',
1054
- type: 'uint256',
1053
+ "name": "managerPeriod",
1054
+ "type": "uint256"
1055
1055
  },
1056
1056
  {
1057
- name: 'startDelay',
1058
- type: 'uint256',
1057
+ "name": "startDelay",
1058
+ "type": "uint256"
1059
1059
  },
1060
1060
  {
1061
- name: 'activationLength',
1062
- type: 'uint256',
1061
+ "name": "activationLength",
1062
+ "type": "uint256"
1063
1063
  },
1064
1064
  {
1065
- name: 'canOwnerManage',
1066
- type: 'bool',
1065
+ "name": "canOwnerManage",
1066
+ "type": "bool"
1067
1067
  },
1068
1068
  {
1069
- name: 'limits',
1070
- type: 'tuple',
1071
- components: [
1069
+ "name": "limits",
1070
+ "type": "tuple",
1071
+ "components": [
1072
1072
  {
1073
- name: 'maxUsdValuePerTx',
1074
- type: 'uint256',
1073
+ "name": "maxUsdValuePerTx",
1074
+ "type": "uint256"
1075
1075
  },
1076
1076
  {
1077
- name: 'maxUsdValuePerPeriod',
1078
- type: 'uint256',
1077
+ "name": "maxUsdValuePerPeriod",
1078
+ "type": "uint256"
1079
1079
  },
1080
1080
  {
1081
- name: 'maxUsdValueLifetime',
1082
- type: 'uint256',
1081
+ "name": "maxUsdValueLifetime",
1082
+ "type": "uint256"
1083
1083
  },
1084
1084
  {
1085
- name: 'maxNumTxsPerPeriod',
1086
- type: 'uint256',
1085
+ "name": "maxNumTxsPerPeriod",
1086
+ "type": "uint256"
1087
1087
  },
1088
1088
  {
1089
- name: 'txCooldownBlocks',
1090
- type: 'uint256',
1089
+ "name": "txCooldownBlocks",
1090
+ "type": "uint256"
1091
1091
  },
1092
1092
  {
1093
- name: 'failOnZeroPrice',
1094
- type: 'bool',
1095
- },
1096
- ],
1093
+ "name": "failOnZeroPrice",
1094
+ "type": "bool"
1095
+ }
1096
+ ]
1097
1097
  },
1098
1098
  {
1099
- name: 'legoPerms',
1100
- type: 'tuple',
1101
- components: [
1099
+ "name": "legoPerms",
1100
+ "type": "tuple",
1101
+ "components": [
1102
1102
  {
1103
- name: 'canManageYield',
1104
- type: 'bool',
1103
+ "name": "canManageYield",
1104
+ "type": "bool"
1105
1105
  },
1106
1106
  {
1107
- name: 'canBuyAndSell',
1108
- type: 'bool',
1107
+ "name": "canBuyAndSell",
1108
+ "type": "bool"
1109
1109
  },
1110
1110
  {
1111
- name: 'canManageDebt',
1112
- type: 'bool',
1111
+ "name": "canManageDebt",
1112
+ "type": "bool"
1113
1113
  },
1114
1114
  {
1115
- name: 'canManageLiq',
1116
- type: 'bool',
1115
+ "name": "canManageLiq",
1116
+ "type": "bool"
1117
1117
  },
1118
1118
  {
1119
- name: 'canClaimRewards',
1120
- type: 'bool',
1119
+ "name": "canClaimRewards",
1120
+ "type": "bool"
1121
1121
  },
1122
1122
  {
1123
- name: 'onlyApprovedYieldOpps',
1124
- type: 'bool',
1123
+ "name": "onlyApprovedYieldOpps",
1124
+ "type": "bool"
1125
1125
  },
1126
1126
  {
1127
- name: 'allowedLegos',
1128
- type: 'uint256[]',
1129
- },
1130
- ],
1127
+ "name": "allowedLegos",
1128
+ "type": "uint256[]"
1129
+ }
1130
+ ]
1131
1131
  },
1132
1132
  {
1133
- name: 'swapPerms',
1134
- type: 'tuple',
1135
- components: [
1133
+ "name": "swapPerms",
1134
+ "type": "tuple",
1135
+ "components": [
1136
1136
  {
1137
- name: 'mustHaveUsdValue',
1138
- type: 'bool',
1137
+ "name": "mustHaveUsdValue",
1138
+ "type": "bool"
1139
1139
  },
1140
1140
  {
1141
- name: 'maxNumSwapsPerPeriod',
1142
- type: 'uint256',
1141
+ "name": "maxNumSwapsPerPeriod",
1142
+ "type": "uint256"
1143
1143
  },
1144
1144
  {
1145
- name: 'maxSlippage',
1146
- type: 'uint256',
1147
- },
1148
- ],
1145
+ "name": "maxSlippage",
1146
+ "type": "uint256"
1147
+ }
1148
+ ]
1149
1149
  },
1150
1150
  {
1151
- name: 'whitelistPerms',
1152
- type: 'tuple',
1153
- components: [
1151
+ "name": "whitelistPerms",
1152
+ "type": "tuple",
1153
+ "components": [
1154
1154
  {
1155
- name: 'canAddPending',
1156
- type: 'bool',
1155
+ "name": "canAddPending",
1156
+ "type": "bool"
1157
1157
  },
1158
1158
  {
1159
- name: 'canConfirm',
1160
- type: 'bool',
1159
+ "name": "canConfirm",
1160
+ "type": "bool"
1161
1161
  },
1162
1162
  {
1163
- name: 'canCancel',
1164
- type: 'bool',
1163
+ "name": "canCancel",
1164
+ "type": "bool"
1165
1165
  },
1166
1166
  {
1167
- name: 'canRemove',
1168
- type: 'bool',
1169
- },
1170
- ],
1167
+ "name": "canRemove",
1168
+ "type": "bool"
1169
+ }
1170
+ ]
1171
1171
  },
1172
1172
  {
1173
- name: 'transferPerms',
1174
- type: 'tuple',
1175
- components: [
1173
+ "name": "transferPerms",
1174
+ "type": "tuple",
1175
+ "components": [
1176
1176
  {
1177
- name: 'canTransfer',
1178
- type: 'bool',
1177
+ "name": "canTransfer",
1178
+ "type": "bool"
1179
1179
  },
1180
1180
  {
1181
- name: 'canCreateCheque',
1182
- type: 'bool',
1181
+ "name": "canCreateCheque",
1182
+ "type": "bool"
1183
1183
  },
1184
1184
  {
1185
- name: 'canAddPendingPayee',
1186
- type: 'bool',
1185
+ "name": "canAddPendingPayee",
1186
+ "type": "bool"
1187
1187
  },
1188
1188
  {
1189
- name: 'allowedPayees',
1190
- type: 'address[]',
1191
- },
1192
- ],
1189
+ "name": "allowedPayees",
1190
+ "type": "address[]"
1191
+ }
1192
+ ]
1193
1193
  },
1194
1194
  {
1195
- name: 'allowedAssets',
1196
- type: 'address[]',
1197
- },
1198
- ],
1195
+ "name": "allowedAssets",
1196
+ "type": "address[]"
1197
+ }
1198
+ ]
1199
1199
  },
1200
1200
  {
1201
- name: '_action',
1202
- type: 'uint256',
1201
+ "name": "_action",
1202
+ "type": "uint256"
1203
1203
  },
1204
1204
  {
1205
- name: '_assets',
1206
- type: 'address[]',
1205
+ "name": "_assets",
1206
+ "type": "address[]"
1207
1207
  },
1208
1208
  {
1209
- name: '_legoIds',
1210
- type: 'uint256[]',
1211
- },
1209
+ "name": "_legoIds",
1210
+ "type": "uint256[]"
1211
+ }
1212
1212
  ],
1213
- outputs: [
1213
+ "outputs": [
1214
1214
  {
1215
- name: '',
1216
- type: 'bool',
1217
- },
1218
- ],
1215
+ "name": "",
1216
+ "type": "bool"
1217
+ }
1218
+ ]
1219
1219
  },
1220
1220
  {
1221
- stateMutability: 'view',
1222
- type: 'function',
1223
- name: 'canSignerPerformActionWithConfig',
1224
- inputs: [
1221
+ "stateMutability": "view",
1222
+ "type": "function",
1223
+ "name": "canSignerPerformActionWithConfig",
1224
+ "inputs": [
1225
1225
  {
1226
- name: '_isOwner',
1227
- type: 'bool',
1226
+ "name": "_isOwner",
1227
+ "type": "bool"
1228
1228
  },
1229
1229
  {
1230
- name: '_isManager',
1231
- type: 'bool',
1230
+ "name": "_isManager",
1231
+ "type": "bool"
1232
1232
  },
1233
1233
  {
1234
- name: '_managerData',
1235
- type: 'tuple',
1236
- components: [
1234
+ "name": "_managerData",
1235
+ "type": "tuple",
1236
+ "components": [
1237
1237
  {
1238
- name: 'numTxsInPeriod',
1239
- type: 'uint256',
1238
+ "name": "numTxsInPeriod",
1239
+ "type": "uint256"
1240
1240
  },
1241
1241
  {
1242
- name: 'totalUsdValueInPeriod',
1243
- type: 'uint256',
1242
+ "name": "totalUsdValueInPeriod",
1243
+ "type": "uint256"
1244
1244
  },
1245
1245
  {
1246
- name: 'totalNumTxs',
1247
- type: 'uint256',
1246
+ "name": "totalNumTxs",
1247
+ "type": "uint256"
1248
1248
  },
1249
1249
  {
1250
- name: 'totalUsdValue',
1251
- type: 'uint256',
1250
+ "name": "totalUsdValue",
1251
+ "type": "uint256"
1252
1252
  },
1253
1253
  {
1254
- name: 'lastTxBlock',
1255
- type: 'uint256',
1254
+ "name": "lastTxBlock",
1255
+ "type": "uint256"
1256
1256
  },
1257
1257
  {
1258
- name: 'periodStartBlock',
1259
- type: 'uint256',
1258
+ "name": "periodStartBlock",
1259
+ "type": "uint256"
1260
1260
  },
1261
1261
  {
1262
- name: 'numSwapsInPeriod',
1263
- type: 'uint256',
1264
- },
1265
- ],
1262
+ "name": "numSwapsInPeriod",
1263
+ "type": "uint256"
1264
+ }
1265
+ ]
1266
1266
  },
1267
1267
  {
1268
- name: '_config',
1269
- type: 'tuple',
1270
- components: [
1268
+ "name": "_config",
1269
+ "type": "tuple",
1270
+ "components": [
1271
1271
  {
1272
- name: 'startBlock',
1273
- type: 'uint256',
1272
+ "name": "startBlock",
1273
+ "type": "uint256"
1274
1274
  },
1275
1275
  {
1276
- name: 'expiryBlock',
1277
- type: 'uint256',
1276
+ "name": "expiryBlock",
1277
+ "type": "uint256"
1278
1278
  },
1279
1279
  {
1280
- name: 'limits',
1281
- type: 'tuple',
1282
- components: [
1280
+ "name": "limits",
1281
+ "type": "tuple",
1282
+ "components": [
1283
1283
  {
1284
- name: 'maxUsdValuePerTx',
1285
- type: 'uint256',
1284
+ "name": "maxUsdValuePerTx",
1285
+ "type": "uint256"
1286
1286
  },
1287
1287
  {
1288
- name: 'maxUsdValuePerPeriod',
1289
- type: 'uint256',
1288
+ "name": "maxUsdValuePerPeriod",
1289
+ "type": "uint256"
1290
1290
  },
1291
1291
  {
1292
- name: 'maxUsdValueLifetime',
1293
- type: 'uint256',
1292
+ "name": "maxUsdValueLifetime",
1293
+ "type": "uint256"
1294
1294
  },
1295
1295
  {
1296
- name: 'maxNumTxsPerPeriod',
1297
- type: 'uint256',
1296
+ "name": "maxNumTxsPerPeriod",
1297
+ "type": "uint256"
1298
1298
  },
1299
1299
  {
1300
- name: 'txCooldownBlocks',
1301
- type: 'uint256',
1300
+ "name": "txCooldownBlocks",
1301
+ "type": "uint256"
1302
1302
  },
1303
1303
  {
1304
- name: 'failOnZeroPrice',
1305
- type: 'bool',
1306
- },
1307
- ],
1304
+ "name": "failOnZeroPrice",
1305
+ "type": "bool"
1306
+ }
1307
+ ]
1308
1308
  },
1309
1309
  {
1310
- name: 'legoPerms',
1311
- type: 'tuple',
1312
- components: [
1310
+ "name": "legoPerms",
1311
+ "type": "tuple",
1312
+ "components": [
1313
1313
  {
1314
- name: 'canManageYield',
1315
- type: 'bool',
1314
+ "name": "canManageYield",
1315
+ "type": "bool"
1316
1316
  },
1317
1317
  {
1318
- name: 'canBuyAndSell',
1319
- type: 'bool',
1318
+ "name": "canBuyAndSell",
1319
+ "type": "bool"
1320
1320
  },
1321
1321
  {
1322
- name: 'canManageDebt',
1323
- type: 'bool',
1322
+ "name": "canManageDebt",
1323
+ "type": "bool"
1324
1324
  },
1325
1325
  {
1326
- name: 'canManageLiq',
1327
- type: 'bool',
1326
+ "name": "canManageLiq",
1327
+ "type": "bool"
1328
1328
  },
1329
1329
  {
1330
- name: 'canClaimRewards',
1331
- type: 'bool',
1330
+ "name": "canClaimRewards",
1331
+ "type": "bool"
1332
1332
  },
1333
1333
  {
1334
- name: 'onlyApprovedYieldOpps',
1335
- type: 'bool',
1334
+ "name": "onlyApprovedYieldOpps",
1335
+ "type": "bool"
1336
1336
  },
1337
1337
  {
1338
- name: 'allowedLegos',
1339
- type: 'uint256[]',
1340
- },
1341
- ],
1338
+ "name": "allowedLegos",
1339
+ "type": "uint256[]"
1340
+ }
1341
+ ]
1342
1342
  },
1343
1343
  {
1344
- name: 'swapPerms',
1345
- type: 'tuple',
1346
- components: [
1344
+ "name": "swapPerms",
1345
+ "type": "tuple",
1346
+ "components": [
1347
1347
  {
1348
- name: 'mustHaveUsdValue',
1349
- type: 'bool',
1348
+ "name": "mustHaveUsdValue",
1349
+ "type": "bool"
1350
1350
  },
1351
1351
  {
1352
- name: 'maxNumSwapsPerPeriod',
1353
- type: 'uint256',
1352
+ "name": "maxNumSwapsPerPeriod",
1353
+ "type": "uint256"
1354
1354
  },
1355
1355
  {
1356
- name: 'maxSlippage',
1357
- type: 'uint256',
1358
- },
1359
- ],
1356
+ "name": "maxSlippage",
1357
+ "type": "uint256"
1358
+ }
1359
+ ]
1360
1360
  },
1361
1361
  {
1362
- name: 'whitelistPerms',
1363
- type: 'tuple',
1364
- components: [
1362
+ "name": "whitelistPerms",
1363
+ "type": "tuple",
1364
+ "components": [
1365
1365
  {
1366
- name: 'canAddPending',
1367
- type: 'bool',
1366
+ "name": "canAddPending",
1367
+ "type": "bool"
1368
1368
  },
1369
1369
  {
1370
- name: 'canConfirm',
1371
- type: 'bool',
1370
+ "name": "canConfirm",
1371
+ "type": "bool"
1372
1372
  },
1373
1373
  {
1374
- name: 'canCancel',
1375
- type: 'bool',
1374
+ "name": "canCancel",
1375
+ "type": "bool"
1376
1376
  },
1377
1377
  {
1378
- name: 'canRemove',
1379
- type: 'bool',
1380
- },
1381
- ],
1378
+ "name": "canRemove",
1379
+ "type": "bool"
1380
+ }
1381
+ ]
1382
1382
  },
1383
1383
  {
1384
- name: 'transferPerms',
1385
- type: 'tuple',
1386
- components: [
1384
+ "name": "transferPerms",
1385
+ "type": "tuple",
1386
+ "components": [
1387
1387
  {
1388
- name: 'canTransfer',
1389
- type: 'bool',
1388
+ "name": "canTransfer",
1389
+ "type": "bool"
1390
1390
  },
1391
1391
  {
1392
- name: 'canCreateCheque',
1393
- type: 'bool',
1392
+ "name": "canCreateCheque",
1393
+ "type": "bool"
1394
1394
  },
1395
1395
  {
1396
- name: 'canAddPendingPayee',
1397
- type: 'bool',
1396
+ "name": "canAddPendingPayee",
1397
+ "type": "bool"
1398
1398
  },
1399
1399
  {
1400
- name: 'allowedPayees',
1401
- type: 'address[]',
1402
- },
1403
- ],
1400
+ "name": "allowedPayees",
1401
+ "type": "address[]"
1402
+ }
1403
+ ]
1404
1404
  },
1405
1405
  {
1406
- name: 'allowedAssets',
1407
- type: 'address[]',
1406
+ "name": "allowedAssets",
1407
+ "type": "address[]"
1408
1408
  },
1409
1409
  {
1410
- name: 'canClaimLoot',
1411
- type: 'bool',
1412
- },
1413
- ],
1410
+ "name": "canClaimLoot",
1411
+ "type": "bool"
1412
+ }
1413
+ ]
1414
1414
  },
1415
1415
  {
1416
- name: '_globalConfig',
1417
- type: 'tuple',
1418
- components: [
1416
+ "name": "_globalConfig",
1417
+ "type": "tuple",
1418
+ "components": [
1419
1419
  {
1420
- name: 'managerPeriod',
1421
- type: 'uint256',
1420
+ "name": "managerPeriod",
1421
+ "type": "uint256"
1422
1422
  },
1423
1423
  {
1424
- name: 'startDelay',
1425
- type: 'uint256',
1424
+ "name": "startDelay",
1425
+ "type": "uint256"
1426
1426
  },
1427
1427
  {
1428
- name: 'activationLength',
1429
- type: 'uint256',
1428
+ "name": "activationLength",
1429
+ "type": "uint256"
1430
1430
  },
1431
1431
  {
1432
- name: 'canOwnerManage',
1433
- type: 'bool',
1432
+ "name": "canOwnerManage",
1433
+ "type": "bool"
1434
1434
  },
1435
1435
  {
1436
- name: 'limits',
1437
- type: 'tuple',
1438
- components: [
1436
+ "name": "limits",
1437
+ "type": "tuple",
1438
+ "components": [
1439
1439
  {
1440
- name: 'maxUsdValuePerTx',
1441
- type: 'uint256',
1440
+ "name": "maxUsdValuePerTx",
1441
+ "type": "uint256"
1442
1442
  },
1443
1443
  {
1444
- name: 'maxUsdValuePerPeriod',
1445
- type: 'uint256',
1444
+ "name": "maxUsdValuePerPeriod",
1445
+ "type": "uint256"
1446
1446
  },
1447
1447
  {
1448
- name: 'maxUsdValueLifetime',
1449
- type: 'uint256',
1448
+ "name": "maxUsdValueLifetime",
1449
+ "type": "uint256"
1450
1450
  },
1451
1451
  {
1452
- name: 'maxNumTxsPerPeriod',
1453
- type: 'uint256',
1452
+ "name": "maxNumTxsPerPeriod",
1453
+ "type": "uint256"
1454
1454
  },
1455
1455
  {
1456
- name: 'txCooldownBlocks',
1457
- type: 'uint256',
1456
+ "name": "txCooldownBlocks",
1457
+ "type": "uint256"
1458
1458
  },
1459
1459
  {
1460
- name: 'failOnZeroPrice',
1461
- type: 'bool',
1462
- },
1463
- ],
1460
+ "name": "failOnZeroPrice",
1461
+ "type": "bool"
1462
+ }
1463
+ ]
1464
1464
  },
1465
1465
  {
1466
- name: 'legoPerms',
1467
- type: 'tuple',
1468
- components: [
1466
+ "name": "legoPerms",
1467
+ "type": "tuple",
1468
+ "components": [
1469
1469
  {
1470
- name: 'canManageYield',
1471
- type: 'bool',
1470
+ "name": "canManageYield",
1471
+ "type": "bool"
1472
1472
  },
1473
1473
  {
1474
- name: 'canBuyAndSell',
1475
- type: 'bool',
1474
+ "name": "canBuyAndSell",
1475
+ "type": "bool"
1476
1476
  },
1477
1477
  {
1478
- name: 'canManageDebt',
1479
- type: 'bool',
1478
+ "name": "canManageDebt",
1479
+ "type": "bool"
1480
1480
  },
1481
1481
  {
1482
- name: 'canManageLiq',
1483
- type: 'bool',
1482
+ "name": "canManageLiq",
1483
+ "type": "bool"
1484
1484
  },
1485
1485
  {
1486
- name: 'canClaimRewards',
1487
- type: 'bool',
1486
+ "name": "canClaimRewards",
1487
+ "type": "bool"
1488
1488
  },
1489
1489
  {
1490
- name: 'onlyApprovedYieldOpps',
1491
- type: 'bool',
1490
+ "name": "onlyApprovedYieldOpps",
1491
+ "type": "bool"
1492
1492
  },
1493
1493
  {
1494
- name: 'allowedLegos',
1495
- type: 'uint256[]',
1496
- },
1497
- ],
1494
+ "name": "allowedLegos",
1495
+ "type": "uint256[]"
1496
+ }
1497
+ ]
1498
1498
  },
1499
1499
  {
1500
- name: 'swapPerms',
1501
- type: 'tuple',
1502
- components: [
1500
+ "name": "swapPerms",
1501
+ "type": "tuple",
1502
+ "components": [
1503
1503
  {
1504
- name: 'mustHaveUsdValue',
1505
- type: 'bool',
1504
+ "name": "mustHaveUsdValue",
1505
+ "type": "bool"
1506
1506
  },
1507
1507
  {
1508
- name: 'maxNumSwapsPerPeriod',
1509
- type: 'uint256',
1508
+ "name": "maxNumSwapsPerPeriod",
1509
+ "type": "uint256"
1510
1510
  },
1511
1511
  {
1512
- name: 'maxSlippage',
1513
- type: 'uint256',
1514
- },
1515
- ],
1512
+ "name": "maxSlippage",
1513
+ "type": "uint256"
1514
+ }
1515
+ ]
1516
1516
  },
1517
1517
  {
1518
- name: 'whitelistPerms',
1519
- type: 'tuple',
1520
- components: [
1518
+ "name": "whitelistPerms",
1519
+ "type": "tuple",
1520
+ "components": [
1521
1521
  {
1522
- name: 'canAddPending',
1523
- type: 'bool',
1522
+ "name": "canAddPending",
1523
+ "type": "bool"
1524
1524
  },
1525
1525
  {
1526
- name: 'canConfirm',
1527
- type: 'bool',
1526
+ "name": "canConfirm",
1527
+ "type": "bool"
1528
1528
  },
1529
1529
  {
1530
- name: 'canCancel',
1531
- type: 'bool',
1530
+ "name": "canCancel",
1531
+ "type": "bool"
1532
1532
  },
1533
1533
  {
1534
- name: 'canRemove',
1535
- type: 'bool',
1536
- },
1537
- ],
1534
+ "name": "canRemove",
1535
+ "type": "bool"
1536
+ }
1537
+ ]
1538
1538
  },
1539
1539
  {
1540
- name: 'transferPerms',
1541
- type: 'tuple',
1542
- components: [
1540
+ "name": "transferPerms",
1541
+ "type": "tuple",
1542
+ "components": [
1543
1543
  {
1544
- name: 'canTransfer',
1545
- type: 'bool',
1544
+ "name": "canTransfer",
1545
+ "type": "bool"
1546
1546
  },
1547
1547
  {
1548
- name: 'canCreateCheque',
1549
- type: 'bool',
1548
+ "name": "canCreateCheque",
1549
+ "type": "bool"
1550
1550
  },
1551
1551
  {
1552
- name: 'canAddPendingPayee',
1553
- type: 'bool',
1552
+ "name": "canAddPendingPayee",
1553
+ "type": "bool"
1554
1554
  },
1555
1555
  {
1556
- name: 'allowedPayees',
1557
- type: 'address[]',
1558
- },
1559
- ],
1556
+ "name": "allowedPayees",
1557
+ "type": "address[]"
1558
+ }
1559
+ ]
1560
1560
  },
1561
1561
  {
1562
- name: 'allowedAssets',
1563
- type: 'address[]',
1564
- },
1565
- ],
1562
+ "name": "allowedAssets",
1563
+ "type": "address[]"
1564
+ }
1565
+ ]
1566
1566
  },
1567
1567
  {
1568
- name: '_action',
1569
- type: 'uint256',
1568
+ "name": "_action",
1569
+ "type": "uint256"
1570
1570
  },
1571
1571
  {
1572
- name: '_assets',
1573
- type: 'address[]',
1572
+ "name": "_assets",
1573
+ "type": "address[]"
1574
1574
  },
1575
1575
  {
1576
- name: '_legoIds',
1577
- type: 'uint256[]',
1576
+ "name": "_legoIds",
1577
+ "type": "uint256[]"
1578
1578
  },
1579
1579
  {
1580
- name: '_txRecipient',
1581
- type: 'address',
1582
- },
1580
+ "name": "_txRecipient",
1581
+ "type": "address"
1582
+ }
1583
1583
  ],
1584
- outputs: [
1584
+ "outputs": [
1585
1585
  {
1586
- name: '',
1587
- type: 'bool',
1588
- },
1589
- ],
1586
+ "name": "",
1587
+ "type": "bool"
1588
+ }
1589
+ ]
1590
1590
  },
1591
1591
  {
1592
- stateMutability: 'view',
1593
- type: 'function',
1594
- name: 'canManagerFinishTx',
1595
- inputs: [
1592
+ "stateMutability": "view",
1593
+ "type": "function",
1594
+ "name": "canManagerFinishTx",
1595
+ "inputs": [
1596
1596
  {
1597
- name: '_user',
1598
- type: 'address',
1597
+ "name": "_user",
1598
+ "type": "address"
1599
1599
  },
1600
1600
  {
1601
- name: '_manager',
1602
- type: 'address',
1601
+ "name": "_manager",
1602
+ "type": "address"
1603
1603
  },
1604
1604
  {
1605
- name: '_txUsdValue',
1606
- type: 'uint256',
1605
+ "name": "_txUsdValue",
1606
+ "type": "uint256"
1607
1607
  },
1608
1608
  {
1609
- name: '_underlyingAsset',
1610
- type: 'address',
1609
+ "name": "_underlyingAsset",
1610
+ "type": "address"
1611
1611
  },
1612
1612
  {
1613
- name: '_vaultToken',
1614
- type: 'address',
1613
+ "name": "_vaultToken",
1614
+ "type": "address"
1615
1615
  },
1616
1616
  {
1617
- name: '_shouldCheckSwap',
1618
- type: 'bool',
1617
+ "name": "_shouldCheckSwap",
1618
+ "type": "bool"
1619
1619
  },
1620
1620
  {
1621
- name: '_specificSwapPerms',
1622
- type: 'tuple',
1623
- components: [
1621
+ "name": "_specificSwapPerms",
1622
+ "type": "tuple",
1623
+ "components": [
1624
1624
  {
1625
- name: 'mustHaveUsdValue',
1626
- type: 'bool',
1625
+ "name": "mustHaveUsdValue",
1626
+ "type": "bool"
1627
1627
  },
1628
1628
  {
1629
- name: 'maxNumSwapsPerPeriod',
1630
- type: 'uint256',
1629
+ "name": "maxNumSwapsPerPeriod",
1630
+ "type": "uint256"
1631
1631
  },
1632
1632
  {
1633
- name: 'maxSlippage',
1634
- type: 'uint256',
1635
- },
1636
- ],
1633
+ "name": "maxSlippage",
1634
+ "type": "uint256"
1635
+ }
1636
+ ]
1637
1637
  },
1638
1638
  {
1639
- name: '_globalSwapPerms',
1640
- type: 'tuple',
1641
- components: [
1639
+ "name": "_globalSwapPerms",
1640
+ "type": "tuple",
1641
+ "components": [
1642
1642
  {
1643
- name: 'mustHaveUsdValue',
1644
- type: 'bool',
1643
+ "name": "mustHaveUsdValue",
1644
+ "type": "bool"
1645
1645
  },
1646
1646
  {
1647
- name: 'maxNumSwapsPerPeriod',
1648
- type: 'uint256',
1647
+ "name": "maxNumSwapsPerPeriod",
1648
+ "type": "uint256"
1649
1649
  },
1650
1650
  {
1651
- name: 'maxSlippage',
1652
- type: 'uint256',
1653
- },
1654
- ],
1651
+ "name": "maxSlippage",
1652
+ "type": "uint256"
1653
+ }
1654
+ ]
1655
1655
  },
1656
1656
  {
1657
- name: '_fromAssetUsdValue',
1658
- type: 'uint256',
1657
+ "name": "_fromAssetUsdValue",
1658
+ "type": "uint256"
1659
1659
  },
1660
1660
  {
1661
- name: '_toAssetUsdValue',
1662
- type: 'uint256',
1661
+ "name": "_toAssetUsdValue",
1662
+ "type": "uint256"
1663
1663
  },
1664
1664
  {
1665
- name: '_vaultRegistry',
1666
- type: 'address',
1667
- },
1665
+ "name": "_vaultRegistry",
1666
+ "type": "address"
1667
+ }
1668
1668
  ],
1669
- outputs: [
1669
+ "outputs": [
1670
1670
  {
1671
- name: '',
1672
- type: 'bool',
1673
- },
1674
- ],
1671
+ "name": "",
1672
+ "type": "bool"
1673
+ }
1674
+ ]
1675
1675
  },
1676
1676
  {
1677
- stateMutability: 'view',
1678
- type: 'function',
1679
- name: 'checkManagerLimitsPostTx',
1680
- inputs: [
1677
+ "stateMutability": "view",
1678
+ "type": "function",
1679
+ "name": "checkManagerLimitsPostTx",
1680
+ "inputs": [
1681
1681
  {
1682
- name: '_txUsdValue',
1683
- type: 'uint256',
1682
+ "name": "_txUsdValue",
1683
+ "type": "uint256"
1684
1684
  },
1685
1685
  {
1686
- name: '_specificLimits',
1687
- type: 'tuple',
1688
- components: [
1686
+ "name": "_specificLimits",
1687
+ "type": "tuple",
1688
+ "components": [
1689
1689
  {
1690
- name: 'maxUsdValuePerTx',
1691
- type: 'uint256',
1690
+ "name": "maxUsdValuePerTx",
1691
+ "type": "uint256"
1692
1692
  },
1693
1693
  {
1694
- name: 'maxUsdValuePerPeriod',
1695
- type: 'uint256',
1694
+ "name": "maxUsdValuePerPeriod",
1695
+ "type": "uint256"
1696
1696
  },
1697
1697
  {
1698
- name: 'maxUsdValueLifetime',
1699
- type: 'uint256',
1698
+ "name": "maxUsdValueLifetime",
1699
+ "type": "uint256"
1700
1700
  },
1701
1701
  {
1702
- name: 'maxNumTxsPerPeriod',
1703
- type: 'uint256',
1702
+ "name": "maxNumTxsPerPeriod",
1703
+ "type": "uint256"
1704
1704
  },
1705
1705
  {
1706
- name: 'txCooldownBlocks',
1707
- type: 'uint256',
1706
+ "name": "txCooldownBlocks",
1707
+ "type": "uint256"
1708
1708
  },
1709
1709
  {
1710
- name: 'failOnZeroPrice',
1711
- type: 'bool',
1712
- },
1713
- ],
1710
+ "name": "failOnZeroPrice",
1711
+ "type": "bool"
1712
+ }
1713
+ ]
1714
1714
  },
1715
1715
  {
1716
- name: '_globalLimits',
1717
- type: 'tuple',
1718
- components: [
1716
+ "name": "_globalLimits",
1717
+ "type": "tuple",
1718
+ "components": [
1719
1719
  {
1720
- name: 'maxUsdValuePerTx',
1721
- type: 'uint256',
1720
+ "name": "maxUsdValuePerTx",
1721
+ "type": "uint256"
1722
1722
  },
1723
1723
  {
1724
- name: 'maxUsdValuePerPeriod',
1725
- type: 'uint256',
1724
+ "name": "maxUsdValuePerPeriod",
1725
+ "type": "uint256"
1726
1726
  },
1727
1727
  {
1728
- name: 'maxUsdValueLifetime',
1729
- type: 'uint256',
1728
+ "name": "maxUsdValueLifetime",
1729
+ "type": "uint256"
1730
1730
  },
1731
1731
  {
1732
- name: 'maxNumTxsPerPeriod',
1733
- type: 'uint256',
1732
+ "name": "maxNumTxsPerPeriod",
1733
+ "type": "uint256"
1734
1734
  },
1735
1735
  {
1736
- name: 'txCooldownBlocks',
1737
- type: 'uint256',
1736
+ "name": "txCooldownBlocks",
1737
+ "type": "uint256"
1738
1738
  },
1739
1739
  {
1740
- name: 'failOnZeroPrice',
1741
- type: 'bool',
1742
- },
1743
- ],
1740
+ "name": "failOnZeroPrice",
1741
+ "type": "bool"
1742
+ }
1743
+ ]
1744
1744
  },
1745
1745
  {
1746
- name: '_managerPeriod',
1747
- type: 'uint256',
1746
+ "name": "_managerPeriod",
1747
+ "type": "uint256"
1748
1748
  },
1749
1749
  {
1750
- name: '_managerData',
1751
- type: 'tuple',
1752
- components: [
1750
+ "name": "_managerData",
1751
+ "type": "tuple",
1752
+ "components": [
1753
1753
  {
1754
- name: 'numTxsInPeriod',
1755
- type: 'uint256',
1754
+ "name": "numTxsInPeriod",
1755
+ "type": "uint256"
1756
1756
  },
1757
1757
  {
1758
- name: 'totalUsdValueInPeriod',
1759
- type: 'uint256',
1758
+ "name": "totalUsdValueInPeriod",
1759
+ "type": "uint256"
1760
1760
  },
1761
1761
  {
1762
- name: 'totalNumTxs',
1763
- type: 'uint256',
1762
+ "name": "totalNumTxs",
1763
+ "type": "uint256"
1764
1764
  },
1765
1765
  {
1766
- name: 'totalUsdValue',
1767
- type: 'uint256',
1766
+ "name": "totalUsdValue",
1767
+ "type": "uint256"
1768
1768
  },
1769
1769
  {
1770
- name: 'lastTxBlock',
1771
- type: 'uint256',
1770
+ "name": "lastTxBlock",
1771
+ "type": "uint256"
1772
1772
  },
1773
1773
  {
1774
- name: 'periodStartBlock',
1775
- type: 'uint256',
1774
+ "name": "periodStartBlock",
1775
+ "type": "uint256"
1776
1776
  },
1777
1777
  {
1778
- name: 'numSwapsInPeriod',
1779
- type: 'uint256',
1780
- },
1781
- ],
1778
+ "name": "numSwapsInPeriod",
1779
+ "type": "uint256"
1780
+ }
1781
+ ]
1782
1782
  },
1783
1783
  {
1784
- name: '_requiresVaultApproval',
1785
- type: 'bool',
1784
+ "name": "_requiresVaultApproval",
1785
+ "type": "bool"
1786
1786
  },
1787
1787
  {
1788
- name: '_underlyingAsset',
1789
- type: 'address',
1788
+ "name": "_underlyingAsset",
1789
+ "type": "address"
1790
1790
  },
1791
1791
  {
1792
- name: '_vaultToken',
1793
- type: 'address',
1792
+ "name": "_vaultToken",
1793
+ "type": "address"
1794
1794
  },
1795
1795
  {
1796
- name: '_shouldCheckSwap',
1797
- type: 'bool',
1796
+ "name": "_shouldCheckSwap",
1797
+ "type": "bool"
1798
1798
  },
1799
1799
  {
1800
- name: '_specificSwapPerms',
1801
- type: 'tuple',
1802
- components: [
1800
+ "name": "_specificSwapPerms",
1801
+ "type": "tuple",
1802
+ "components": [
1803
1803
  {
1804
- name: 'mustHaveUsdValue',
1805
- type: 'bool',
1804
+ "name": "mustHaveUsdValue",
1805
+ "type": "bool"
1806
1806
  },
1807
1807
  {
1808
- name: 'maxNumSwapsPerPeriod',
1809
- type: 'uint256',
1808
+ "name": "maxNumSwapsPerPeriod",
1809
+ "type": "uint256"
1810
1810
  },
1811
1811
  {
1812
- name: 'maxSlippage',
1813
- type: 'uint256',
1814
- },
1815
- ],
1812
+ "name": "maxSlippage",
1813
+ "type": "uint256"
1814
+ }
1815
+ ]
1816
1816
  },
1817
1817
  {
1818
- name: '_globalSwapPerms',
1819
- type: 'tuple',
1820
- components: [
1818
+ "name": "_globalSwapPerms",
1819
+ "type": "tuple",
1820
+ "components": [
1821
1821
  {
1822
- name: 'mustHaveUsdValue',
1823
- type: 'bool',
1822
+ "name": "mustHaveUsdValue",
1823
+ "type": "bool"
1824
1824
  },
1825
1825
  {
1826
- name: 'maxNumSwapsPerPeriod',
1827
- type: 'uint256',
1826
+ "name": "maxNumSwapsPerPeriod",
1827
+ "type": "uint256"
1828
1828
  },
1829
1829
  {
1830
- name: 'maxSlippage',
1831
- type: 'uint256',
1832
- },
1833
- ],
1830
+ "name": "maxSlippage",
1831
+ "type": "uint256"
1832
+ }
1833
+ ]
1834
1834
  },
1835
1835
  {
1836
- name: '_fromAssetUsdValue',
1837
- type: 'uint256',
1836
+ "name": "_fromAssetUsdValue",
1837
+ "type": "uint256"
1838
1838
  },
1839
1839
  {
1840
- name: '_toAssetUsdValue',
1841
- type: 'uint256',
1840
+ "name": "_toAssetUsdValue",
1841
+ "type": "uint256"
1842
1842
  },
1843
1843
  {
1844
- name: '_vaultRegistry',
1845
- type: 'address',
1846
- },
1844
+ "name": "_vaultRegistry",
1845
+ "type": "address"
1846
+ }
1847
1847
  ],
1848
- outputs: [
1848
+ "outputs": [
1849
1849
  {
1850
- name: '',
1851
- type: 'bool',
1850
+ "name": "",
1851
+ "type": "bool"
1852
1852
  },
1853
1853
  {
1854
- name: '',
1855
- type: 'tuple',
1856
- components: [
1854
+ "name": "",
1855
+ "type": "tuple",
1856
+ "components": [
1857
1857
  {
1858
- name: 'numTxsInPeriod',
1859
- type: 'uint256',
1858
+ "name": "numTxsInPeriod",
1859
+ "type": "uint256"
1860
1860
  },
1861
1861
  {
1862
- name: 'totalUsdValueInPeriod',
1863
- type: 'uint256',
1862
+ "name": "totalUsdValueInPeriod",
1863
+ "type": "uint256"
1864
1864
  },
1865
1865
  {
1866
- name: 'totalNumTxs',
1867
- type: 'uint256',
1866
+ "name": "totalNumTxs",
1867
+ "type": "uint256"
1868
1868
  },
1869
1869
  {
1870
- name: 'totalUsdValue',
1871
- type: 'uint256',
1870
+ "name": "totalUsdValue",
1871
+ "type": "uint256"
1872
1872
  },
1873
1873
  {
1874
- name: 'lastTxBlock',
1875
- type: 'uint256',
1874
+ "name": "lastTxBlock",
1875
+ "type": "uint256"
1876
1876
  },
1877
1877
  {
1878
- name: 'periodStartBlock',
1879
- type: 'uint256',
1878
+ "name": "periodStartBlock",
1879
+ "type": "uint256"
1880
1880
  },
1881
1881
  {
1882
- name: 'numSwapsInPeriod',
1883
- type: 'uint256',
1884
- },
1885
- ],
1886
- },
1887
- ],
1882
+ "name": "numSwapsInPeriod",
1883
+ "type": "uint256"
1884
+ }
1885
+ ]
1886
+ }
1887
+ ]
1888
1888
  },
1889
1889
  {
1890
- stateMutability: 'view',
1891
- type: 'function',
1892
- name: 'isValidPayee',
1893
- inputs: [
1890
+ "stateMutability": "view",
1891
+ "type": "function",
1892
+ "name": "isValidPayee",
1893
+ "inputs": [
1894
1894
  {
1895
- name: '_user',
1896
- type: 'address',
1895
+ "name": "_user",
1896
+ "type": "address"
1897
1897
  },
1898
1898
  {
1899
- name: '_recipient',
1900
- type: 'address',
1899
+ "name": "_recipient",
1900
+ "type": "address"
1901
1901
  },
1902
1902
  {
1903
- name: '_asset',
1904
- type: 'address',
1903
+ "name": "_asset",
1904
+ "type": "address"
1905
1905
  },
1906
1906
  {
1907
- name: '_amount',
1908
- type: 'uint256',
1907
+ "name": "_amount",
1908
+ "type": "uint256"
1909
1909
  },
1910
1910
  {
1911
- name: '_txUsdValue',
1912
- type: 'uint256',
1913
- },
1911
+ "name": "_txUsdValue",
1912
+ "type": "uint256"
1913
+ }
1914
1914
  ],
1915
- outputs: [
1915
+ "outputs": [
1916
1916
  {
1917
- name: '',
1918
- type: 'bool',
1919
- },
1920
- ],
1917
+ "name": "",
1918
+ "type": "bool"
1919
+ }
1920
+ ]
1921
1921
  },
1922
1922
  {
1923
- stateMutability: 'view',
1924
- type: 'function',
1925
- name: 'isValidPayeeAndGetData',
1926
- inputs: [
1923
+ "stateMutability": "view",
1924
+ "type": "function",
1925
+ "name": "isValidPayeeAndGetData",
1926
+ "inputs": [
1927
1927
  {
1928
- name: '_isWhitelisted',
1929
- type: 'bool',
1928
+ "name": "_isWhitelisted",
1929
+ "type": "bool"
1930
1930
  },
1931
1931
  {
1932
- name: '_isOwner',
1933
- type: 'bool',
1932
+ "name": "_isOwner",
1933
+ "type": "bool"
1934
1934
  },
1935
1935
  {
1936
- name: '_isPayee',
1937
- type: 'bool',
1936
+ "name": "_isPayee",
1937
+ "type": "bool"
1938
1938
  },
1939
1939
  {
1940
- name: '_asset',
1941
- type: 'address',
1940
+ "name": "_asset",
1941
+ "type": "address"
1942
1942
  },
1943
1943
  {
1944
- name: '_amount',
1945
- type: 'uint256',
1944
+ "name": "_amount",
1945
+ "type": "uint256"
1946
1946
  },
1947
1947
  {
1948
- name: '_txUsdValue',
1949
- type: 'uint256',
1948
+ "name": "_txUsdValue",
1949
+ "type": "uint256"
1950
1950
  },
1951
1951
  {
1952
- name: '_config',
1953
- type: 'tuple',
1954
- components: [
1952
+ "name": "_config",
1953
+ "type": "tuple",
1954
+ "components": [
1955
1955
  {
1956
- name: 'startBlock',
1957
- type: 'uint256',
1956
+ "name": "startBlock",
1957
+ "type": "uint256"
1958
1958
  },
1959
1959
  {
1960
- name: 'expiryBlock',
1961
- type: 'uint256',
1960
+ "name": "expiryBlock",
1961
+ "type": "uint256"
1962
1962
  },
1963
1963
  {
1964
- name: 'canPull',
1965
- type: 'bool',
1964
+ "name": "canPull",
1965
+ "type": "bool"
1966
1966
  },
1967
1967
  {
1968
- name: 'periodLength',
1969
- type: 'uint256',
1968
+ "name": "periodLength",
1969
+ "type": "uint256"
1970
1970
  },
1971
1971
  {
1972
- name: 'maxNumTxsPerPeriod',
1973
- type: 'uint256',
1972
+ "name": "maxNumTxsPerPeriod",
1973
+ "type": "uint256"
1974
1974
  },
1975
1975
  {
1976
- name: 'txCooldownBlocks',
1977
- type: 'uint256',
1976
+ "name": "txCooldownBlocks",
1977
+ "type": "uint256"
1978
1978
  },
1979
1979
  {
1980
- name: 'failOnZeroPrice',
1981
- type: 'bool',
1980
+ "name": "failOnZeroPrice",
1981
+ "type": "bool"
1982
1982
  },
1983
1983
  {
1984
- name: 'primaryAsset',
1985
- type: 'address',
1984
+ "name": "primaryAsset",
1985
+ "type": "address"
1986
1986
  },
1987
1987
  {
1988
- name: 'onlyPrimaryAsset',
1989
- type: 'bool',
1988
+ "name": "onlyPrimaryAsset",
1989
+ "type": "bool"
1990
1990
  },
1991
1991
  {
1992
- name: 'unitLimits',
1993
- type: 'tuple',
1994
- components: [
1992
+ "name": "unitLimits",
1993
+ "type": "tuple",
1994
+ "components": [
1995
1995
  {
1996
- name: 'perTxCap',
1997
- type: 'uint256',
1996
+ "name": "perTxCap",
1997
+ "type": "uint256"
1998
1998
  },
1999
1999
  {
2000
- name: 'perPeriodCap',
2001
- type: 'uint256',
2000
+ "name": "perPeriodCap",
2001
+ "type": "uint256"
2002
2002
  },
2003
2003
  {
2004
- name: 'lifetimeCap',
2005
- type: 'uint256',
2006
- },
2007
- ],
2004
+ "name": "lifetimeCap",
2005
+ "type": "uint256"
2006
+ }
2007
+ ]
2008
2008
  },
2009
2009
  {
2010
- name: 'usdLimits',
2011
- type: 'tuple',
2012
- components: [
2010
+ "name": "usdLimits",
2011
+ "type": "tuple",
2012
+ "components": [
2013
2013
  {
2014
- name: 'perTxCap',
2015
- type: 'uint256',
2014
+ "name": "perTxCap",
2015
+ "type": "uint256"
2016
2016
  },
2017
2017
  {
2018
- name: 'perPeriodCap',
2019
- type: 'uint256',
2018
+ "name": "perPeriodCap",
2019
+ "type": "uint256"
2020
2020
  },
2021
2021
  {
2022
- name: 'lifetimeCap',
2023
- type: 'uint256',
2024
- },
2025
- ],
2026
- },
2027
- ],
2022
+ "name": "lifetimeCap",
2023
+ "type": "uint256"
2024
+ }
2025
+ ]
2026
+ }
2027
+ ]
2028
2028
  },
2029
2029
  {
2030
- name: '_globalConfig',
2031
- type: 'tuple',
2032
- components: [
2030
+ "name": "_globalConfig",
2031
+ "type": "tuple",
2032
+ "components": [
2033
2033
  {
2034
- name: 'defaultPeriodLength',
2035
- type: 'uint256',
2034
+ "name": "defaultPeriodLength",
2035
+ "type": "uint256"
2036
2036
  },
2037
2037
  {
2038
- name: 'startDelay',
2039
- type: 'uint256',
2038
+ "name": "startDelay",
2039
+ "type": "uint256"
2040
2040
  },
2041
2041
  {
2042
- name: 'activationLength',
2043
- type: 'uint256',
2042
+ "name": "activationLength",
2043
+ "type": "uint256"
2044
2044
  },
2045
2045
  {
2046
- name: 'maxNumTxsPerPeriod',
2047
- type: 'uint256',
2046
+ "name": "maxNumTxsPerPeriod",
2047
+ "type": "uint256"
2048
2048
  },
2049
2049
  {
2050
- name: 'txCooldownBlocks',
2051
- type: 'uint256',
2050
+ "name": "txCooldownBlocks",
2051
+ "type": "uint256"
2052
2052
  },
2053
2053
  {
2054
- name: 'failOnZeroPrice',
2055
- type: 'bool',
2054
+ "name": "failOnZeroPrice",
2055
+ "type": "bool"
2056
2056
  },
2057
2057
  {
2058
- name: 'usdLimits',
2059
- type: 'tuple',
2060
- components: [
2058
+ "name": "usdLimits",
2059
+ "type": "tuple",
2060
+ "components": [
2061
2061
  {
2062
- name: 'perTxCap',
2063
- type: 'uint256',
2062
+ "name": "perTxCap",
2063
+ "type": "uint256"
2064
2064
  },
2065
2065
  {
2066
- name: 'perPeriodCap',
2067
- type: 'uint256',
2066
+ "name": "perPeriodCap",
2067
+ "type": "uint256"
2068
2068
  },
2069
2069
  {
2070
- name: 'lifetimeCap',
2071
- type: 'uint256',
2072
- },
2073
- ],
2070
+ "name": "lifetimeCap",
2071
+ "type": "uint256"
2072
+ }
2073
+ ]
2074
2074
  },
2075
2075
  {
2076
- name: 'canPayOwner',
2077
- type: 'bool',
2076
+ "name": "canPayOwner",
2077
+ "type": "bool"
2078
2078
  },
2079
2079
  {
2080
- name: 'canPull',
2081
- type: 'bool',
2082
- },
2083
- ],
2080
+ "name": "canPull",
2081
+ "type": "bool"
2082
+ }
2083
+ ]
2084
2084
  },
2085
2085
  {
2086
- name: '_payeeData',
2087
- type: 'tuple',
2088
- components: [
2086
+ "name": "_payeeData",
2087
+ "type": "tuple",
2088
+ "components": [
2089
2089
  {
2090
- name: 'numTxsInPeriod',
2091
- type: 'uint256',
2090
+ "name": "numTxsInPeriod",
2091
+ "type": "uint256"
2092
2092
  },
2093
2093
  {
2094
- name: 'totalUnitsInPeriod',
2095
- type: 'uint256',
2094
+ "name": "totalUnitsInPeriod",
2095
+ "type": "uint256"
2096
2096
  },
2097
2097
  {
2098
- name: 'totalUsdValueInPeriod',
2099
- type: 'uint256',
2098
+ "name": "totalUsdValueInPeriod",
2099
+ "type": "uint256"
2100
2100
  },
2101
2101
  {
2102
- name: 'totalNumTxs',
2103
- type: 'uint256',
2102
+ "name": "totalNumTxs",
2103
+ "type": "uint256"
2104
2104
  },
2105
2105
  {
2106
- name: 'totalUnits',
2107
- type: 'uint256',
2106
+ "name": "totalUnits",
2107
+ "type": "uint256"
2108
2108
  },
2109
2109
  {
2110
- name: 'totalUsdValue',
2111
- type: 'uint256',
2110
+ "name": "totalUsdValue",
2111
+ "type": "uint256"
2112
2112
  },
2113
2113
  {
2114
- name: 'lastTxBlock',
2115
- type: 'uint256',
2114
+ "name": "lastTxBlock",
2115
+ "type": "uint256"
2116
2116
  },
2117
2117
  {
2118
- name: 'periodStartBlock',
2119
- type: 'uint256',
2120
- },
2121
- ],
2122
- },
2118
+ "name": "periodStartBlock",
2119
+ "type": "uint256"
2120
+ }
2121
+ ]
2122
+ }
2123
2123
  ],
2124
- outputs: [
2124
+ "outputs": [
2125
2125
  {
2126
- name: '',
2127
- type: 'bool',
2126
+ "name": "",
2127
+ "type": "bool"
2128
2128
  },
2129
2129
  {
2130
- name: '',
2131
- type: 'tuple',
2132
- components: [
2130
+ "name": "",
2131
+ "type": "tuple",
2132
+ "components": [
2133
2133
  {
2134
- name: 'numTxsInPeriod',
2135
- type: 'uint256',
2134
+ "name": "numTxsInPeriod",
2135
+ "type": "uint256"
2136
2136
  },
2137
2137
  {
2138
- name: 'totalUnitsInPeriod',
2139
- type: 'uint256',
2138
+ "name": "totalUnitsInPeriod",
2139
+ "type": "uint256"
2140
2140
  },
2141
2141
  {
2142
- name: 'totalUsdValueInPeriod',
2143
- type: 'uint256',
2142
+ "name": "totalUsdValueInPeriod",
2143
+ "type": "uint256"
2144
2144
  },
2145
2145
  {
2146
- name: 'totalNumTxs',
2147
- type: 'uint256',
2146
+ "name": "totalNumTxs",
2147
+ "type": "uint256"
2148
2148
  },
2149
2149
  {
2150
- name: 'totalUnits',
2151
- type: 'uint256',
2150
+ "name": "totalUnits",
2151
+ "type": "uint256"
2152
2152
  },
2153
2153
  {
2154
- name: 'totalUsdValue',
2155
- type: 'uint256',
2154
+ "name": "totalUsdValue",
2155
+ "type": "uint256"
2156
2156
  },
2157
2157
  {
2158
- name: 'lastTxBlock',
2159
- type: 'uint256',
2158
+ "name": "lastTxBlock",
2159
+ "type": "uint256"
2160
2160
  },
2161
2161
  {
2162
- name: 'periodStartBlock',
2163
- type: 'uint256',
2164
- },
2165
- ],
2166
- },
2167
- ],
2162
+ "name": "periodStartBlock",
2163
+ "type": "uint256"
2164
+ }
2165
+ ]
2166
+ }
2167
+ ]
2168
2168
  },
2169
2169
  {
2170
- stateMutability: 'view',
2171
- type: 'function',
2172
- name: 'isValidChequeAndGetData',
2173
- inputs: [
2170
+ "stateMutability": "view",
2171
+ "type": "function",
2172
+ "name": "isValidChequeAndGetData",
2173
+ "inputs": [
2174
2174
  {
2175
- name: '_asset',
2176
- type: 'address',
2175
+ "name": "_asset",
2176
+ "type": "address"
2177
2177
  },
2178
2178
  {
2179
- name: '_amount',
2180
- type: 'uint256',
2179
+ "name": "_amount",
2180
+ "type": "uint256"
2181
2181
  },
2182
2182
  {
2183
- name: '_txUsdValue',
2184
- type: 'uint256',
2183
+ "name": "_txUsdValue",
2184
+ "type": "uint256"
2185
2185
  },
2186
2186
  {
2187
- name: '_cheque',
2188
- type: 'tuple',
2189
- components: [
2187
+ "name": "_cheque",
2188
+ "type": "tuple",
2189
+ "components": [
2190
2190
  {
2191
- name: 'recipient',
2192
- type: 'address',
2191
+ "name": "recipient",
2192
+ "type": "address"
2193
2193
  },
2194
2194
  {
2195
- name: 'asset',
2196
- type: 'address',
2195
+ "name": "asset",
2196
+ "type": "address"
2197
2197
  },
2198
2198
  {
2199
- name: 'amount',
2200
- type: 'uint256',
2199
+ "name": "amount",
2200
+ "type": "uint256"
2201
2201
  },
2202
2202
  {
2203
- name: 'creationBlock',
2204
- type: 'uint256',
2203
+ "name": "creationBlock",
2204
+ "type": "uint256"
2205
2205
  },
2206
2206
  {
2207
- name: 'unlockBlock',
2208
- type: 'uint256',
2207
+ "name": "unlockBlock",
2208
+ "type": "uint256"
2209
2209
  },
2210
2210
  {
2211
- name: 'expiryBlock',
2212
- type: 'uint256',
2211
+ "name": "expiryBlock",
2212
+ "type": "uint256"
2213
2213
  },
2214
2214
  {
2215
- name: 'usdValueOnCreation',
2216
- type: 'uint256',
2215
+ "name": "usdValueOnCreation",
2216
+ "type": "uint256"
2217
2217
  },
2218
2218
  {
2219
- name: 'canManagerPay',
2220
- type: 'bool',
2219
+ "name": "canManagerPay",
2220
+ "type": "bool"
2221
2221
  },
2222
2222
  {
2223
- name: 'canBePulled',
2224
- type: 'bool',
2223
+ "name": "canBePulled",
2224
+ "type": "bool"
2225
2225
  },
2226
2226
  {
2227
- name: 'creator',
2228
- type: 'address',
2227
+ "name": "creator",
2228
+ "type": "address"
2229
2229
  },
2230
2230
  {
2231
- name: 'active',
2232
- type: 'bool',
2233
- },
2234
- ],
2231
+ "name": "active",
2232
+ "type": "bool"
2233
+ }
2234
+ ]
2235
2235
  },
2236
2236
  {
2237
- name: '_globalConfig',
2238
- type: 'tuple',
2239
- components: [
2237
+ "name": "_globalConfig",
2238
+ "type": "tuple",
2239
+ "components": [
2240
2240
  {
2241
- name: 'maxNumActiveCheques',
2242
- type: 'uint256',
2241
+ "name": "maxNumActiveCheques",
2242
+ "type": "uint256"
2243
2243
  },
2244
2244
  {
2245
- name: 'maxChequeUsdValue',
2246
- type: 'uint256',
2245
+ "name": "maxChequeUsdValue",
2246
+ "type": "uint256"
2247
2247
  },
2248
2248
  {
2249
- name: 'instantUsdThreshold',
2250
- type: 'uint256',
2249
+ "name": "instantUsdThreshold",
2250
+ "type": "uint256"
2251
2251
  },
2252
2252
  {
2253
- name: 'perPeriodPaidUsdCap',
2254
- type: 'uint256',
2253
+ "name": "perPeriodPaidUsdCap",
2254
+ "type": "uint256"
2255
2255
  },
2256
2256
  {
2257
- name: 'maxNumChequesPaidPerPeriod',
2258
- type: 'uint256',
2257
+ "name": "maxNumChequesPaidPerPeriod",
2258
+ "type": "uint256"
2259
2259
  },
2260
2260
  {
2261
- name: 'payCooldownBlocks',
2262
- type: 'uint256',
2261
+ "name": "payCooldownBlocks",
2262
+ "type": "uint256"
2263
2263
  },
2264
2264
  {
2265
- name: 'perPeriodCreatedUsdCap',
2266
- type: 'uint256',
2265
+ "name": "perPeriodCreatedUsdCap",
2266
+ "type": "uint256"
2267
2267
  },
2268
2268
  {
2269
- name: 'maxNumChequesCreatedPerPeriod',
2270
- type: 'uint256',
2269
+ "name": "maxNumChequesCreatedPerPeriod",
2270
+ "type": "uint256"
2271
2271
  },
2272
2272
  {
2273
- name: 'createCooldownBlocks',
2274
- type: 'uint256',
2273
+ "name": "createCooldownBlocks",
2274
+ "type": "uint256"
2275
2275
  },
2276
2276
  {
2277
- name: 'periodLength',
2278
- type: 'uint256',
2277
+ "name": "periodLength",
2278
+ "type": "uint256"
2279
2279
  },
2280
2280
  {
2281
- name: 'expensiveDelayBlocks',
2282
- type: 'uint256',
2281
+ "name": "expensiveDelayBlocks",
2282
+ "type": "uint256"
2283
2283
  },
2284
2284
  {
2285
- name: 'defaultExpiryBlocks',
2286
- type: 'uint256',
2285
+ "name": "defaultExpiryBlocks",
2286
+ "type": "uint256"
2287
2287
  },
2288
2288
  {
2289
- name: 'allowedAssets',
2290
- type: 'address[]',
2289
+ "name": "allowedAssets",
2290
+ "type": "address[]"
2291
2291
  },
2292
2292
  {
2293
- name: 'canManagersCreateCheques',
2294
- type: 'bool',
2293
+ "name": "canManagersCreateCheques",
2294
+ "type": "bool"
2295
2295
  },
2296
2296
  {
2297
- name: 'canManagerPay',
2298
- type: 'bool',
2297
+ "name": "canManagerPay",
2298
+ "type": "bool"
2299
2299
  },
2300
2300
  {
2301
- name: 'canBePulled',
2302
- type: 'bool',
2303
- },
2304
- ],
2301
+ "name": "canBePulled",
2302
+ "type": "bool"
2303
+ }
2304
+ ]
2305
2305
  },
2306
2306
  {
2307
- name: '_chequeData',
2308
- type: 'tuple',
2309
- components: [
2307
+ "name": "_chequeData",
2308
+ "type": "tuple",
2309
+ "components": [
2310
2310
  {
2311
- name: 'numChequesPaidInPeriod',
2312
- type: 'uint256',
2311
+ "name": "numChequesPaidInPeriod",
2312
+ "type": "uint256"
2313
2313
  },
2314
2314
  {
2315
- name: 'totalUsdValuePaidInPeriod',
2316
- type: 'uint256',
2315
+ "name": "totalUsdValuePaidInPeriod",
2316
+ "type": "uint256"
2317
2317
  },
2318
2318
  {
2319
- name: 'totalNumChequesPaid',
2320
- type: 'uint256',
2319
+ "name": "totalNumChequesPaid",
2320
+ "type": "uint256"
2321
2321
  },
2322
2322
  {
2323
- name: 'totalUsdValuePaid',
2324
- type: 'uint256',
2323
+ "name": "totalUsdValuePaid",
2324
+ "type": "uint256"
2325
2325
  },
2326
2326
  {
2327
- name: 'lastChequePaidBlock',
2328
- type: 'uint256',
2327
+ "name": "lastChequePaidBlock",
2328
+ "type": "uint256"
2329
2329
  },
2330
2330
  {
2331
- name: 'numChequesCreatedInPeriod',
2332
- type: 'uint256',
2331
+ "name": "numChequesCreatedInPeriod",
2332
+ "type": "uint256"
2333
2333
  },
2334
2334
  {
2335
- name: 'totalUsdValueCreatedInPeriod',
2336
- type: 'uint256',
2335
+ "name": "totalUsdValueCreatedInPeriod",
2336
+ "type": "uint256"
2337
2337
  },
2338
2338
  {
2339
- name: 'totalNumChequesCreated',
2340
- type: 'uint256',
2339
+ "name": "totalNumChequesCreated",
2340
+ "type": "uint256"
2341
2341
  },
2342
2342
  {
2343
- name: 'totalUsdValueCreated',
2344
- type: 'uint256',
2343
+ "name": "totalUsdValueCreated",
2344
+ "type": "uint256"
2345
2345
  },
2346
2346
  {
2347
- name: 'lastChequeCreatedBlock',
2348
- type: 'uint256',
2347
+ "name": "lastChequeCreatedBlock",
2348
+ "type": "uint256"
2349
2349
  },
2350
2350
  {
2351
- name: 'periodStartBlock',
2352
- type: 'uint256',
2353
- },
2354
- ],
2351
+ "name": "periodStartBlock",
2352
+ "type": "uint256"
2353
+ }
2354
+ ]
2355
2355
  },
2356
2356
  {
2357
- name: '_isManager',
2358
- type: 'bool',
2359
- },
2357
+ "name": "_isManager",
2358
+ "type": "bool"
2359
+ }
2360
2360
  ],
2361
- outputs: [
2361
+ "outputs": [
2362
2362
  {
2363
- name: '',
2364
- type: 'bool',
2363
+ "name": "",
2364
+ "type": "bool"
2365
2365
  },
2366
2366
  {
2367
- name: '',
2368
- type: 'tuple',
2369
- components: [
2367
+ "name": "",
2368
+ "type": "tuple",
2369
+ "components": [
2370
2370
  {
2371
- name: 'numChequesPaidInPeriod',
2372
- type: 'uint256',
2371
+ "name": "numChequesPaidInPeriod",
2372
+ "type": "uint256"
2373
2373
  },
2374
2374
  {
2375
- name: 'totalUsdValuePaidInPeriod',
2376
- type: 'uint256',
2375
+ "name": "totalUsdValuePaidInPeriod",
2376
+ "type": "uint256"
2377
2377
  },
2378
2378
  {
2379
- name: 'totalNumChequesPaid',
2380
- type: 'uint256',
2379
+ "name": "totalNumChequesPaid",
2380
+ "type": "uint256"
2381
2381
  },
2382
2382
  {
2383
- name: 'totalUsdValuePaid',
2384
- type: 'uint256',
2383
+ "name": "totalUsdValuePaid",
2384
+ "type": "uint256"
2385
2385
  },
2386
2386
  {
2387
- name: 'lastChequePaidBlock',
2388
- type: 'uint256',
2387
+ "name": "lastChequePaidBlock",
2388
+ "type": "uint256"
2389
2389
  },
2390
2390
  {
2391
- name: 'numChequesCreatedInPeriod',
2392
- type: 'uint256',
2391
+ "name": "numChequesCreatedInPeriod",
2392
+ "type": "uint256"
2393
2393
  },
2394
2394
  {
2395
- name: 'totalUsdValueCreatedInPeriod',
2396
- type: 'uint256',
2395
+ "name": "totalUsdValueCreatedInPeriod",
2396
+ "type": "uint256"
2397
2397
  },
2398
2398
  {
2399
- name: 'totalNumChequesCreated',
2400
- type: 'uint256',
2399
+ "name": "totalNumChequesCreated",
2400
+ "type": "uint256"
2401
2401
  },
2402
2402
  {
2403
- name: 'totalUsdValueCreated',
2404
- type: 'uint256',
2403
+ "name": "totalUsdValueCreated",
2404
+ "type": "uint256"
2405
2405
  },
2406
2406
  {
2407
- name: 'lastChequeCreatedBlock',
2408
- type: 'uint256',
2407
+ "name": "lastChequeCreatedBlock",
2408
+ "type": "uint256"
2409
2409
  },
2410
2410
  {
2411
- name: 'periodStartBlock',
2412
- type: 'uint256',
2413
- },
2414
- ],
2415
- },
2416
- ],
2411
+ "name": "periodStartBlock",
2412
+ "type": "uint256"
2413
+ }
2414
+ ]
2415
+ }
2416
+ ]
2417
2417
  },
2418
2418
  {
2419
- stateMutability: 'nonpayable',
2420
- type: 'constructor',
2421
- inputs: [],
2422
- outputs: [],
2423
- },
2419
+ "stateMutability": "nonpayable",
2420
+ "type": "constructor",
2421
+ "inputs": [],
2422
+ "outputs": []
2423
+ }
2424
2424
  ];
2425
2425
  export const deployAddress = '0xB566EdDbB1d8fEBCD60D194b62a14aFc9a65795b';
2426
2426
  function getRequest(method, args, contractAddressOrOptions) {