@underscore-finance/sdk 1.2.18 → 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 (167) 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.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.map +1 -1
  30. package/dist/contracts/ChequeBook.js +867 -876
  31. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  32. package/dist/contracts/CompoundV3.js +1919 -1943
  33. package/dist/contracts/ConvertVaultToken.d.ts.map +1 -1
  34. package/dist/contracts/ConvertVaultToken.js +31 -31
  35. package/dist/contracts/Curve.d.ts.map +1 -1
  36. package/dist/contracts/Curve.js +787 -802
  37. package/dist/contracts/DefaultsBase.d.ts.map +1 -1
  38. package/dist/contracts/DefaultsBase.js +178 -178
  39. package/dist/contracts/ERC20.d.ts.map +1 -1
  40. package/dist/contracts/ERC20.js +186 -192
  41. package/dist/contracts/EarnVault.d.ts.map +1 -1
  42. package/dist/contracts/EarnVault.js +1262 -1292
  43. package/dist/contracts/EarnVaultAgent.d.ts.map +1 -1
  44. package/dist/contracts/EarnVaultAgent.js +745 -760
  45. package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -1
  46. package/dist/contracts/EarnVaultAgentSigHelper.js +665 -665
  47. package/dist/contracts/Euler.d.ts.map +1 -1
  48. package/dist/contracts/Euler.js +1948 -1975
  49. package/dist/contracts/ExtraFi.d.ts.map +1 -1
  50. package/dist/contracts/ExtraFi.js +1929 -1953
  51. package/dist/contracts/Fluid.d.ts.map +1 -1
  52. package/dist/contracts/Fluid.js +1927 -1951
  53. package/dist/contracts/FortyAcres.d.ts.map +1 -1
  54. package/dist/contracts/FortyAcres.js +1916 -1940
  55. package/dist/contracts/Hatchery.d.ts.map +1 -1
  56. package/dist/contracts/Hatchery.js +255 -264
  57. package/dist/contracts/Helpers.d.ts.map +1 -1
  58. package/dist/contracts/Helpers.js +1069 -1123
  59. package/dist/contracts/HighCommand.d.ts.map +1 -1
  60. package/dist/contracts/HighCommand.js +1395 -1407
  61. package/dist/contracts/Kernel.d.ts.map +1 -1
  62. package/dist/contracts/Kernel.js +224 -236
  63. package/dist/contracts/Ledger.d.ts +9 -12
  64. package/dist/contracts/Ledger.d.ts.map +1 -1
  65. package/dist/contracts/Ledger.js +480 -486
  66. package/dist/contracts/LegoBook.d.ts.map +1 -1
  67. package/dist/contracts/LegoBook.js +1069 -1123
  68. package/dist/contracts/LegoTools.d.ts +16 -22
  69. package/dist/contracts/LegoTools.d.ts.map +1 -1
  70. package/dist/contracts/LegoTools.js +1420 -1426
  71. package/dist/contracts/LevgVault.d.ts.map +1 -1
  72. package/dist/contracts/LevgVault.js +1544 -1580
  73. package/dist/contracts/LevgVaultAgent.d.ts.map +1 -1
  74. package/dist/contracts/LevgVaultAgent.js +1514 -1529
  75. package/dist/contracts/LevgVaultAgentSigHelper.d.ts.map +1 -1
  76. package/dist/contracts/LevgVaultAgentSigHelper.js +1769 -1769
  77. package/dist/contracts/LevgVaultHelper.d.ts.map +1 -1
  78. package/dist/contracts/LevgVaultHelper.js +732 -732
  79. package/dist/contracts/LevgVaultTools.d.ts.map +1 -1
  80. package/dist/contracts/LevgVaultTools.js +2118 -2118
  81. package/dist/contracts/LootDistributor.d.ts.map +1 -1
  82. package/dist/contracts/LootDistributor.js +753 -789
  83. package/dist/contracts/Migrator.d.ts.map +1 -1
  84. package/dist/contracts/Migrator.js +168 -174
  85. package/dist/contracts/MissionControl.d.ts.map +1 -1
  86. package/dist/contracts/MissionControl.js +956 -962
  87. package/dist/contracts/Moonwell.d.ts.map +1 -1
  88. package/dist/contracts/Moonwell.js +1918 -1942
  89. package/dist/contracts/Morpho.d.ts.map +1 -1
  90. package/dist/contracts/Morpho.js +1948 -1975
  91. package/dist/contracts/Paymaster.d.ts.map +1 -1
  92. package/dist/contracts/Paymaster.js +1203 -1224
  93. package/dist/contracts/RipeLego.d.ts.map +1 -1
  94. package/dist/contracts/RipeLego.js +2134 -2176
  95. package/dist/contracts/Sentinel.d.ts +32 -41
  96. package/dist/contracts/Sentinel.d.ts.map +1 -1
  97. package/dist/contracts/Sentinel.js +1398 -1398
  98. package/dist/contracts/SignatureHelper.d.ts.map +1 -1
  99. package/dist/contracts/SignatureHelper.js +3202 -3202
  100. package/dist/contracts/SignatureHelperV1.d.ts.map +1 -1
  101. package/dist/contracts/SignatureHelperV1.js +3202 -3202
  102. package/dist/contracts/SkyPsm.d.ts.map +1 -1
  103. package/dist/contracts/SkyPsm.js +1953 -1980
  104. package/dist/contracts/Switchboard.d.ts.map +1 -1
  105. package/dist/contracts/Switchboard.js +1085 -1139
  106. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  107. package/dist/contracts/SwitchboardAlpha.js +2333 -2474
  108. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
  109. package/dist/contracts/SwitchboardBravo.js +1138 -1216
  110. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
  111. package/dist/contracts/SwitchboardCharlie.js +2295 -2475
  112. package/dist/contracts/UnderscoreLego.d.ts.map +1 -1
  113. package/dist/contracts/UnderscoreLego.js +1894 -1918
  114. package/dist/contracts/UndyAero.d.ts.map +1 -1
  115. package/dist/contracts/UndyAero.js +1342 -1372
  116. package/dist/contracts/UndyBtc.d.ts.map +1 -1
  117. package/dist/contracts/UndyBtc.js +1342 -1372
  118. package/dist/contracts/UndyCbeth.d.ts.map +1 -1
  119. package/dist/contracts/UndyCbeth.js +1342 -1372
  120. package/dist/contracts/UndyEth.d.ts.map +1 -1
  121. package/dist/contracts/UndyEth.js +1342 -1372
  122. package/dist/contracts/UndyEurc.d.ts.map +1 -1
  123. package/dist/contracts/UndyEurc.js +1342 -1372
  124. package/dist/contracts/UndyGho.d.ts.map +1 -1
  125. package/dist/contracts/UndyGho.js +1342 -1372
  126. package/dist/contracts/UndyHq.d.ts.map +1 -1
  127. package/dist/contracts/UndyHq.js +1234 -1300
  128. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  129. package/dist/contracts/UndyRewardsLego.js +1120 -1120
  130. package/dist/contracts/UndyUsd.d.ts.map +1 -1
  131. package/dist/contracts/UndyUsd.js +1342 -1372
  132. package/dist/contracts/UndyUsds.d.ts.map +1 -1
  133. package/dist/contracts/UndyUsds.js +1342 -1372
  134. package/dist/contracts/UndyVirtual.d.ts.map +1 -1
  135. package/dist/contracts/UndyVirtual.js +1363 -1396
  136. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  137. package/dist/contracts/UniswapV2.js +1518 -1533
  138. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  139. package/dist/contracts/UniswapV3.js +1620 -1641
  140. package/dist/contracts/UserWallet.d.ts.map +1 -1
  141. package/dist/contracts/UserWallet.js +1999 -2005
  142. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  143. package/dist/contracts/UserWalletConfig.js +2572 -2593
  144. package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -1
  145. package/dist/contracts/UserWalletConfigV1.js +2327 -2348
  146. package/dist/contracts/UserWalletSignatureHelper.d.ts.map +1 -1
  147. package/dist/contracts/UserWalletSignatureHelper.js +3436 -3436
  148. package/dist/contracts/UserWalletV1.d.ts.map +1 -1
  149. package/dist/contracts/UserWalletV1.js +1914 -1920
  150. package/dist/contracts/VaultRegistry.d.ts +11 -14
  151. package/dist/contracts/VaultRegistry.d.ts.map +1 -1
  152. package/dist/contracts/VaultRegistry.js +2343 -2439
  153. package/dist/contracts/WalletBackpack.d.ts.map +1 -1
  154. package/dist/contracts/WalletBackpack.js +926 -965
  155. package/dist/contracts/Wasabi.d.ts.map +1 -1
  156. package/dist/contracts/Wasabi.js +1916 -1940
  157. package/dist/contracts/sdk.d.ts.map +1 -1
  158. package/dist/index.d.ts.map +1 -1
  159. package/dist/index.js +9 -5
  160. package/package.json +44 -24
  161. package/LICENSE +0 -41
  162. package/dist/contracts/Agent.d.ts +0 -3773
  163. package/dist/contracts/Agent.d.ts.map +0 -1
  164. package/dist/contracts/Agent.js +0 -4942
  165. package/dist/getContracts.d.ts +0 -77
  166. package/dist/getContracts.d.ts.map +0 -1
  167. package/dist/getContracts.js +0 -64
@@ -3,635 +3,635 @@
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: 'DepartmentPauseModified',
10
- inputs: [
9
+ "name": "DepartmentPauseModified",
10
+ "inputs": [
11
11
  {
12
- name: 'isPaused',
13
- type: 'bool',
14
- indexed: false,
15
- },
12
+ "name": "isPaused",
13
+ "type": "bool",
14
+ "indexed": false
15
+ }
16
16
  ],
17
- anonymous: false,
18
- type: 'event',
17
+ "anonymous": false,
18
+ "type": "event"
19
19
  },
20
20
  {
21
- name: 'DepartmentFundsRecovered',
22
- inputs: [
21
+ "name": "DepartmentFundsRecovered",
22
+ "inputs": [
23
23
  {
24
- name: 'asset',
25
- type: 'address',
26
- indexed: true,
24
+ "name": "asset",
25
+ "type": "address",
26
+ "indexed": true
27
27
  },
28
28
  {
29
- name: 'recipient',
30
- type: 'address',
31
- indexed: true,
29
+ "name": "recipient",
30
+ "type": "address",
31
+ "indexed": true
32
32
  },
33
33
  {
34
- name: 'balance',
35
- type: 'uint256',
36
- indexed: false,
37
- },
34
+ "name": "balance",
35
+ "type": "uint256",
36
+ "indexed": false
37
+ }
38
38
  ],
39
- anonymous: false,
40
- type: 'event',
39
+ "anonymous": false,
40
+ "type": "event"
41
41
  },
42
42
  {
43
- stateMutability: 'view',
44
- type: 'function',
45
- name: 'getAddys',
46
- inputs: [],
47
- outputs: [
48
- {
49
- name: '',
50
- type: 'tuple',
51
- components: [
43
+ "stateMutability": "view",
44
+ "type": "function",
45
+ "name": "getAddys",
46
+ "inputs": [],
47
+ "outputs": [
48
+ {
49
+ "name": "",
50
+ "type": "tuple",
51
+ "components": [
52
52
  {
53
- name: 'hq',
54
- type: 'address',
53
+ "name": "hq",
54
+ "type": "address"
55
55
  },
56
56
  {
57
- name: 'undyToken',
58
- type: 'address',
57
+ "name": "undyToken",
58
+ "type": "address"
59
59
  },
60
60
  {
61
- name: 'ledger',
62
- type: 'address',
61
+ "name": "ledger",
62
+ "type": "address"
63
63
  },
64
64
  {
65
- name: 'missionControl',
66
- type: 'address',
65
+ "name": "missionControl",
66
+ "type": "address"
67
67
  },
68
68
  {
69
- name: 'legoBook',
70
- type: 'address',
69
+ "name": "legoBook",
70
+ "type": "address"
71
71
  },
72
72
  {
73
- name: 'switchboard',
74
- type: 'address',
73
+ "name": "switchboard",
74
+ "type": "address"
75
75
  },
76
76
  {
77
- name: 'hatchery',
78
- type: 'address',
77
+ "name": "hatchery",
78
+ "type": "address"
79
79
  },
80
80
  {
81
- name: 'lootDistributor',
82
- type: 'address',
81
+ "name": "lootDistributor",
82
+ "type": "address"
83
83
  },
84
84
  {
85
- name: 'appraiser',
86
- type: 'address',
85
+ "name": "appraiser",
86
+ "type": "address"
87
87
  },
88
88
  {
89
- name: 'walletBackpack',
90
- type: 'address',
89
+ "name": "walletBackpack",
90
+ "type": "address"
91
91
  },
92
92
  {
93
- name: 'billing',
94
- type: 'address',
93
+ "name": "billing",
94
+ "type": "address"
95
95
  },
96
96
  {
97
- name: 'vaultRegistry',
98
- type: 'address',
99
- },
100
- ],
101
- },
102
- ],
97
+ "name": "vaultRegistry",
98
+ "type": "address"
99
+ }
100
+ ]
101
+ }
102
+ ]
103
103
  },
104
104
  {
105
- stateMutability: 'view',
106
- type: 'function',
107
- name: 'getUndyHq',
108
- inputs: [],
109
- outputs: [
110
- {
111
- name: '',
112
- type: 'address',
113
- },
114
- ],
105
+ "stateMutability": "view",
106
+ "type": "function",
107
+ "name": "getUndyHq",
108
+ "inputs": [],
109
+ "outputs": [
110
+ {
111
+ "name": "",
112
+ "type": "address"
113
+ }
114
+ ]
115
115
  },
116
116
  {
117
- stateMutability: 'view',
118
- type: 'function',
119
- name: 'canMintUndy',
120
- inputs: [],
121
- outputs: [
122
- {
123
- name: '',
124
- type: 'bool',
125
- },
126
- ],
117
+ "stateMutability": "view",
118
+ "type": "function",
119
+ "name": "canMintUndy",
120
+ "inputs": [],
121
+ "outputs": [
122
+ {
123
+ "name": "",
124
+ "type": "bool"
125
+ }
126
+ ]
127
127
  },
128
128
  {
129
- stateMutability: 'nonpayable',
130
- type: 'function',
131
- name: 'pause',
132
- inputs: [
129
+ "stateMutability": "nonpayable",
130
+ "type": "function",
131
+ "name": "pause",
132
+ "inputs": [
133
133
  {
134
- name: '_shouldPause',
135
- type: 'bool',
136
- },
134
+ "name": "_shouldPause",
135
+ "type": "bool"
136
+ }
137
137
  ],
138
- outputs: [],
138
+ "outputs": []
139
139
  },
140
140
  {
141
- stateMutability: 'nonpayable',
142
- type: 'function',
143
- name: 'recoverFunds',
144
- inputs: [
141
+ "stateMutability": "nonpayable",
142
+ "type": "function",
143
+ "name": "recoverFunds",
144
+ "inputs": [
145
145
  {
146
- name: '_recipient',
147
- type: 'address',
146
+ "name": "_recipient",
147
+ "type": "address"
148
148
  },
149
149
  {
150
- name: '_asset',
151
- type: 'address',
152
- },
150
+ "name": "_asset",
151
+ "type": "address"
152
+ }
153
153
  ],
154
- outputs: [],
154
+ "outputs": []
155
155
  },
156
156
  {
157
- stateMutability: 'nonpayable',
158
- type: 'function',
159
- name: 'recoverFundsMany',
160
- inputs: [
157
+ "stateMutability": "nonpayable",
158
+ "type": "function",
159
+ "name": "recoverFundsMany",
160
+ "inputs": [
161
161
  {
162
- name: '_recipient',
163
- type: 'address',
162
+ "name": "_recipient",
163
+ "type": "address"
164
164
  },
165
165
  {
166
- name: '_assets',
167
- type: 'address[]',
168
- },
166
+ "name": "_assets",
167
+ "type": "address[]"
168
+ }
169
169
  ],
170
- outputs: [],
170
+ "outputs": []
171
171
  },
172
172
  {
173
- stateMutability: 'view',
174
- type: 'function',
175
- name: 'isPaused',
176
- inputs: [],
177
- outputs: [
178
- {
179
- name: '',
180
- type: 'bool',
181
- },
182
- ],
173
+ "stateMutability": "view",
174
+ "type": "function",
175
+ "name": "isPaused",
176
+ "inputs": [],
177
+ "outputs": [
178
+ {
179
+ "name": "",
180
+ "type": "bool"
181
+ }
182
+ ]
183
183
  },
184
184
  {
185
- stateMutability: 'nonpayable',
186
- type: 'function',
187
- name: 'calculateYieldProfits',
188
- inputs: [
185
+ "stateMutability": "nonpayable",
186
+ "type": "function",
187
+ "name": "calculateYieldProfits",
188
+ "inputs": [
189
189
  {
190
- name: '_asset',
191
- type: 'address',
190
+ "name": "_asset",
191
+ "type": "address"
192
192
  },
193
193
  {
194
- name: '_currentBalance',
195
- type: 'uint256',
194
+ "name": "_currentBalance",
195
+ "type": "uint256"
196
196
  },
197
197
  {
198
- name: '_lastBalance',
199
- type: 'uint256',
198
+ "name": "_lastBalance",
199
+ "type": "uint256"
200
200
  },
201
201
  {
202
- name: '_lastPricePerShare',
203
- type: 'uint256',
202
+ "name": "_lastPricePerShare",
203
+ "type": "uint256"
204
204
  },
205
205
  {
206
- name: '_missionControl',
207
- type: 'address',
206
+ "name": "_missionControl",
207
+ "type": "address"
208
208
  },
209
209
  {
210
- name: '_legoBook',
211
- type: 'address',
212
- },
210
+ "name": "_legoBook",
211
+ "type": "address"
212
+ }
213
213
  ],
214
- outputs: [
214
+ "outputs": [
215
215
  {
216
- name: '',
217
- type: 'uint256',
216
+ "name": "",
217
+ "type": "uint256"
218
218
  },
219
219
  {
220
- name: '',
221
- type: 'uint256',
220
+ "name": "",
221
+ "type": "uint256"
222
222
  },
223
223
  {
224
- name: '',
225
- type: 'uint256',
226
- },
227
- ],
224
+ "name": "",
225
+ "type": "uint256"
226
+ }
227
+ ]
228
228
  },
229
229
  {
230
- stateMutability: 'view',
231
- type: 'function',
232
- name: 'calculateYieldProfitsNoUpdate',
233
- inputs: [
230
+ "stateMutability": "view",
231
+ "type": "function",
232
+ "name": "calculateYieldProfitsNoUpdate",
233
+ "inputs": [
234
234
  {
235
- name: '_legoId',
236
- type: 'uint256',
235
+ "name": "_legoId",
236
+ "type": "uint256"
237
237
  },
238
238
  {
239
- name: '_asset',
240
- type: 'address',
239
+ "name": "_asset",
240
+ "type": "address"
241
241
  },
242
242
  {
243
- name: '_underlyingAsset',
244
- type: 'address',
243
+ "name": "_underlyingAsset",
244
+ "type": "address"
245
245
  },
246
246
  {
247
- name: '_currentBalance',
248
- type: 'uint256',
247
+ "name": "_currentBalance",
248
+ "type": "uint256"
249
249
  },
250
250
  {
251
- name: '_lastBalance',
252
- type: 'uint256',
251
+ "name": "_lastBalance",
252
+ "type": "uint256"
253
253
  },
254
254
  {
255
- name: '_lastPricePerShare',
256
- type: 'uint256',
257
- },
255
+ "name": "_lastPricePerShare",
256
+ "type": "uint256"
257
+ }
258
258
  ],
259
- outputs: [
259
+ "outputs": [
260
260
  {
261
- name: '',
262
- type: 'uint256',
261
+ "name": "",
262
+ "type": "uint256"
263
263
  },
264
264
  {
265
- name: '',
266
- type: 'uint256',
265
+ "name": "",
266
+ "type": "uint256"
267
267
  },
268
268
  {
269
- name: '',
270
- type: 'uint256',
271
- },
272
- ],
269
+ "name": "",
270
+ "type": "uint256"
271
+ }
272
+ ]
273
273
  },
274
274
  {
275
- stateMutability: 'view',
276
- type: 'function',
277
- name: 'lastPricePerShare',
278
- inputs: [
275
+ "stateMutability": "view",
276
+ "type": "function",
277
+ "name": "lastPricePerShare",
278
+ "inputs": [
279
279
  {
280
- name: '_asset',
281
- type: 'address',
282
- },
280
+ "name": "_asset",
281
+ "type": "address"
282
+ }
283
283
  ],
284
- outputs: [
284
+ "outputs": [
285
285
  {
286
- name: '',
287
- type: 'uint256',
288
- },
289
- ],
286
+ "name": "",
287
+ "type": "uint256"
288
+ }
289
+ ]
290
290
  },
291
291
  {
292
- stateMutability: 'view',
293
- type: 'function',
294
- name: 'getUsdValue',
295
- inputs: [
292
+ "stateMutability": "view",
293
+ "type": "function",
294
+ "name": "getUsdValue",
295
+ "inputs": [
296
296
  {
297
- name: '_asset',
298
- type: 'address',
297
+ "name": "_asset",
298
+ "type": "address"
299
299
  },
300
300
  {
301
- name: '_amount',
302
- type: 'uint256',
303
- },
301
+ "name": "_amount",
302
+ "type": "uint256"
303
+ }
304
304
  ],
305
- outputs: [
305
+ "outputs": [
306
306
  {
307
- name: '',
308
- type: 'uint256',
309
- },
310
- ],
307
+ "name": "",
308
+ "type": "uint256"
309
+ }
310
+ ]
311
311
  },
312
312
  {
313
- stateMutability: 'view',
314
- type: 'function',
315
- name: 'getUsdValue',
316
- inputs: [
313
+ "stateMutability": "view",
314
+ "type": "function",
315
+ "name": "getUsdValue",
316
+ "inputs": [
317
317
  {
318
- name: '_asset',
319
- type: 'address',
318
+ "name": "_asset",
319
+ "type": "address"
320
320
  },
321
321
  {
322
- name: '_amount',
323
- type: 'uint256',
322
+ "name": "_amount",
323
+ "type": "uint256"
324
324
  },
325
325
  {
326
- name: '_missionControl',
327
- type: 'address',
328
- },
326
+ "name": "_missionControl",
327
+ "type": "address"
328
+ }
329
329
  ],
330
- outputs: [
330
+ "outputs": [
331
331
  {
332
- name: '',
333
- type: 'uint256',
334
- },
335
- ],
332
+ "name": "",
333
+ "type": "uint256"
334
+ }
335
+ ]
336
336
  },
337
337
  {
338
- stateMutability: 'view',
339
- type: 'function',
340
- name: 'getUsdValue',
341
- inputs: [
338
+ "stateMutability": "view",
339
+ "type": "function",
340
+ "name": "getUsdValue",
341
+ "inputs": [
342
342
  {
343
- name: '_asset',
344
- type: 'address',
343
+ "name": "_asset",
344
+ "type": "address"
345
345
  },
346
346
  {
347
- name: '_amount',
348
- type: 'uint256',
347
+ "name": "_amount",
348
+ "type": "uint256"
349
349
  },
350
350
  {
351
- name: '_missionControl',
352
- type: 'address',
351
+ "name": "_missionControl",
352
+ "type": "address"
353
353
  },
354
354
  {
355
- name: '_legoBook',
356
- type: 'address',
357
- },
355
+ "name": "_legoBook",
356
+ "type": "address"
357
+ }
358
358
  ],
359
- outputs: [
359
+ "outputs": [
360
360
  {
361
- name: '',
362
- type: 'uint256',
363
- },
364
- ],
361
+ "name": "",
362
+ "type": "uint256"
363
+ }
364
+ ]
365
365
  },
366
366
  {
367
- stateMutability: 'view',
368
- type: 'function',
369
- name: 'getUsdValue',
370
- inputs: [
367
+ "stateMutability": "view",
368
+ "type": "function",
369
+ "name": "getUsdValue",
370
+ "inputs": [
371
371
  {
372
- name: '_asset',
373
- type: 'address',
372
+ "name": "_asset",
373
+ "type": "address"
374
374
  },
375
375
  {
376
- name: '_amount',
377
- type: 'uint256',
376
+ "name": "_amount",
377
+ "type": "uint256"
378
378
  },
379
379
  {
380
- name: '_missionControl',
381
- type: 'address',
380
+ "name": "_missionControl",
381
+ "type": "address"
382
382
  },
383
383
  {
384
- name: '_legoBook',
385
- type: 'address',
384
+ "name": "_legoBook",
385
+ "type": "address"
386
386
  },
387
387
  {
388
- name: '_ledger',
389
- type: 'address',
390
- },
388
+ "name": "_ledger",
389
+ "type": "address"
390
+ }
391
391
  ],
392
- outputs: [
392
+ "outputs": [
393
393
  {
394
- name: '',
395
- type: 'uint256',
396
- },
397
- ],
394
+ "name": "",
395
+ "type": "uint256"
396
+ }
397
+ ]
398
398
  },
399
399
  {
400
- stateMutability: 'view',
401
- type: 'function',
402
- name: 'getUnderlyingUsdValue',
403
- inputs: [
400
+ "stateMutability": "view",
401
+ "type": "function",
402
+ "name": "getUnderlyingUsdValue",
403
+ "inputs": [
404
404
  {
405
- name: '_asset',
406
- type: 'address',
405
+ "name": "_asset",
406
+ "type": "address"
407
407
  },
408
408
  {
409
- name: '_amount',
410
- type: 'uint256',
411
- },
409
+ "name": "_amount",
410
+ "type": "uint256"
411
+ }
412
412
  ],
413
- outputs: [
413
+ "outputs": [
414
414
  {
415
- name: '',
416
- type: 'uint256',
417
- },
418
- ],
415
+ "name": "",
416
+ "type": "uint256"
417
+ }
418
+ ]
419
419
  },
420
420
  {
421
- stateMutability: 'nonpayable',
422
- type: 'function',
423
- name: 'updatePriceAndGetUsdValue',
424
- inputs: [
421
+ "stateMutability": "nonpayable",
422
+ "type": "function",
423
+ "name": "updatePriceAndGetUsdValue",
424
+ "inputs": [
425
425
  {
426
- name: '_asset',
427
- type: 'address',
426
+ "name": "_asset",
427
+ "type": "address"
428
428
  },
429
429
  {
430
- name: '_amount',
431
- type: 'uint256',
432
- },
430
+ "name": "_amount",
431
+ "type": "uint256"
432
+ }
433
433
  ],
434
- outputs: [
434
+ "outputs": [
435
435
  {
436
- name: '',
437
- type: 'uint256',
438
- },
439
- ],
436
+ "name": "",
437
+ "type": "uint256"
438
+ }
439
+ ]
440
440
  },
441
441
  {
442
- stateMutability: 'nonpayable',
443
- type: 'function',
444
- name: 'updatePriceAndGetUsdValue',
445
- inputs: [
442
+ "stateMutability": "nonpayable",
443
+ "type": "function",
444
+ "name": "updatePriceAndGetUsdValue",
445
+ "inputs": [
446
446
  {
447
- name: '_asset',
448
- type: 'address',
447
+ "name": "_asset",
448
+ "type": "address"
449
449
  },
450
450
  {
451
- name: '_amount',
452
- type: 'uint256',
451
+ "name": "_amount",
452
+ "type": "uint256"
453
453
  },
454
454
  {
455
- name: '_missionControl',
456
- type: 'address',
457
- },
455
+ "name": "_missionControl",
456
+ "type": "address"
457
+ }
458
458
  ],
459
- outputs: [
459
+ "outputs": [
460
460
  {
461
- name: '',
462
- type: 'uint256',
463
- },
464
- ],
461
+ "name": "",
462
+ "type": "uint256"
463
+ }
464
+ ]
465
465
  },
466
466
  {
467
- stateMutability: 'nonpayable',
468
- type: 'function',
469
- name: 'updatePriceAndGetUsdValue',
470
- inputs: [
467
+ "stateMutability": "nonpayable",
468
+ "type": "function",
469
+ "name": "updatePriceAndGetUsdValue",
470
+ "inputs": [
471
471
  {
472
- name: '_asset',
473
- type: 'address',
472
+ "name": "_asset",
473
+ "type": "address"
474
474
  },
475
475
  {
476
- name: '_amount',
477
- type: 'uint256',
476
+ "name": "_amount",
477
+ "type": "uint256"
478
478
  },
479
479
  {
480
- name: '_missionControl',
481
- type: 'address',
480
+ "name": "_missionControl",
481
+ "type": "address"
482
482
  },
483
483
  {
484
- name: '_legoBook',
485
- type: 'address',
486
- },
484
+ "name": "_legoBook",
485
+ "type": "address"
486
+ }
487
487
  ],
488
- outputs: [
488
+ "outputs": [
489
489
  {
490
- name: '',
491
- type: 'uint256',
492
- },
493
- ],
490
+ "name": "",
491
+ "type": "uint256"
492
+ }
493
+ ]
494
494
  },
495
495
  {
496
- stateMutability: 'nonpayable',
497
- type: 'function',
498
- name: 'updatePriceAndGetUsdValueAndIsYieldAsset',
499
- inputs: [
496
+ "stateMutability": "nonpayable",
497
+ "type": "function",
498
+ "name": "updatePriceAndGetUsdValueAndIsYieldAsset",
499
+ "inputs": [
500
500
  {
501
- name: '_asset',
502
- type: 'address',
501
+ "name": "_asset",
502
+ "type": "address"
503
503
  },
504
504
  {
505
- name: '_amount',
506
- type: 'uint256',
507
- },
505
+ "name": "_amount",
506
+ "type": "uint256"
507
+ }
508
508
  ],
509
- outputs: [
509
+ "outputs": [
510
510
  {
511
- name: '',
512
- type: 'uint256',
511
+ "name": "",
512
+ "type": "uint256"
513
513
  },
514
514
  {
515
- name: '',
516
- type: 'bool',
517
- },
518
- ],
515
+ "name": "",
516
+ "type": "bool"
517
+ }
518
+ ]
519
519
  },
520
520
  {
521
- stateMutability: 'nonpayable',
522
- type: 'function',
523
- name: 'updatePriceAndGetUsdValueAndIsYieldAsset',
524
- inputs: [
521
+ "stateMutability": "nonpayable",
522
+ "type": "function",
523
+ "name": "updatePriceAndGetUsdValueAndIsYieldAsset",
524
+ "inputs": [
525
525
  {
526
- name: '_asset',
527
- type: 'address',
526
+ "name": "_asset",
527
+ "type": "address"
528
528
  },
529
529
  {
530
- name: '_amount',
531
- type: 'uint256',
530
+ "name": "_amount",
531
+ "type": "uint256"
532
532
  },
533
533
  {
534
- name: '_missionControl',
535
- type: 'address',
536
- },
534
+ "name": "_missionControl",
535
+ "type": "address"
536
+ }
537
537
  ],
538
- outputs: [
538
+ "outputs": [
539
539
  {
540
- name: '',
541
- type: 'uint256',
540
+ "name": "",
541
+ "type": "uint256"
542
542
  },
543
543
  {
544
- name: '',
545
- type: 'bool',
546
- },
547
- ],
544
+ "name": "",
545
+ "type": "bool"
546
+ }
547
+ ]
548
548
  },
549
549
  {
550
- stateMutability: 'nonpayable',
551
- type: 'function',
552
- name: 'updatePriceAndGetUsdValueAndIsYieldAsset',
553
- inputs: [
550
+ "stateMutability": "nonpayable",
551
+ "type": "function",
552
+ "name": "updatePriceAndGetUsdValueAndIsYieldAsset",
553
+ "inputs": [
554
554
  {
555
- name: '_asset',
556
- type: 'address',
555
+ "name": "_asset",
556
+ "type": "address"
557
557
  },
558
558
  {
559
- name: '_amount',
560
- type: 'uint256',
559
+ "name": "_amount",
560
+ "type": "uint256"
561
561
  },
562
562
  {
563
- name: '_missionControl',
564
- type: 'address',
563
+ "name": "_missionControl",
564
+ "type": "address"
565
565
  },
566
566
  {
567
- name: '_legoBook',
568
- type: 'address',
569
- },
567
+ "name": "_legoBook",
568
+ "type": "address"
569
+ }
570
570
  ],
571
- outputs: [
571
+ "outputs": [
572
572
  {
573
- name: '',
574
- type: 'uint256',
573
+ "name": "",
574
+ "type": "uint256"
575
575
  },
576
576
  {
577
- name: '',
578
- type: 'bool',
579
- },
580
- ],
577
+ "name": "",
578
+ "type": "bool"
579
+ }
580
+ ]
581
581
  },
582
582
  {
583
- stateMutability: 'view',
584
- type: 'function',
585
- name: 'getRipePrice',
586
- inputs: [
583
+ "stateMutability": "view",
584
+ "type": "function",
585
+ "name": "getRipePrice",
586
+ "inputs": [
587
587
  {
588
- name: '_asset',
589
- type: 'address',
590
- },
588
+ "name": "_asset",
589
+ "type": "address"
590
+ }
591
591
  ],
592
- outputs: [
592
+ "outputs": [
593
593
  {
594
- name: '',
595
- type: 'uint256',
596
- },
597
- ],
594
+ "name": "",
595
+ "type": "uint256"
596
+ }
597
+ ]
598
598
  },
599
599
  {
600
- stateMutability: 'view',
601
- type: 'function',
602
- name: 'getAssetAmountFromRipe',
603
- inputs: [
600
+ "stateMutability": "view",
601
+ "type": "function",
602
+ "name": "getAssetAmountFromRipe",
603
+ "inputs": [
604
604
  {
605
- name: '_asset',
606
- type: 'address',
605
+ "name": "_asset",
606
+ "type": "address"
607
607
  },
608
608
  {
609
- name: '_usdValue',
610
- type: 'uint256',
611
- },
609
+ "name": "_usdValue",
610
+ "type": "uint256"
611
+ }
612
612
  ],
613
- outputs: [
613
+ "outputs": [
614
614
  {
615
- name: '',
616
- type: 'uint256',
617
- },
618
- ],
615
+ "name": "",
616
+ "type": "uint256"
617
+ }
618
+ ]
619
619
  },
620
620
  {
621
- stateMutability: 'nonpayable',
622
- type: 'constructor',
623
- inputs: [
621
+ "stateMutability": "nonpayable",
622
+ "type": "constructor",
623
+ "inputs": [
624
624
  {
625
- name: '_undyHq',
626
- type: 'address',
625
+ "name": "_undyHq",
626
+ "type": "address"
627
627
  },
628
628
  {
629
- name: '_ripeHq',
630
- type: 'address',
631
- },
629
+ "name": "_ripeHq",
630
+ "type": "address"
631
+ }
632
632
  ],
633
- outputs: [],
634
- },
633
+ "outputs": []
634
+ }
635
635
  ];
636
636
  export const deployAddress = '0x8C6521e6f2676a7AdC8484444f161c3538e545e2';
637
637
  function getRequest(method, args, contractAddressOrOptions) {
@@ -710,14 +710,8 @@ export function toSdk(publicClient, walletClient, addressResolver) {
710
710
  deployAddress,
711
711
  abi,
712
712
  events: {
713
- DepartmentPauseModified: {
714
- topic: getEventTopic('DepartmentPauseModified'),
715
- parse: (events) => parseEvents('DepartmentPauseModified', events),
716
- },
717
- DepartmentFundsRecovered: {
718
- topic: getEventTopic('DepartmentFundsRecovered'),
719
- parse: (events) => parseEvents('DepartmentFundsRecovered', events),
720
- },
713
+ DepartmentPauseModified: { topic: getEventTopic('DepartmentPauseModified'), parse: (events) => parseEvents('DepartmentPauseModified', events) },
714
+ DepartmentFundsRecovered: { topic: getEventTopic('DepartmentFundsRecovered'), parse: (events) => parseEvents('DepartmentFundsRecovered', events) },
721
715
  },
722
716
  // Queries
723
717
  getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args), {}, addressResolver),