@underscore-finance/sdk 1.2.17 → 1.2.19

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