@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,722 +3,722 @@
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: [
43
+ "stateMutability": "view",
44
+ "type": "function",
45
+ "name": "getAddys",
46
+ "inputs": [],
47
+ "outputs": [
48
48
  {
49
- name: '',
50
- type: 'tuple',
51
- components: [
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',
95
- },
96
- ],
97
- },
98
- ],
93
+ "name": "billing",
94
+ "type": "address"
95
+ }
96
+ ]
97
+ }
98
+ ]
99
99
  },
100
100
  {
101
- stateMutability: 'view',
102
- type: 'function',
103
- name: 'getUndyHq',
104
- inputs: [],
105
- outputs: [
101
+ "stateMutability": "view",
102
+ "type": "function",
103
+ "name": "getUndyHq",
104
+ "inputs": [],
105
+ "outputs": [
106
106
  {
107
- name: '',
108
- type: 'address',
109
- },
110
- ],
107
+ "name": "",
108
+ "type": "address"
109
+ }
110
+ ]
111
111
  },
112
112
  {
113
- stateMutability: 'view',
114
- type: 'function',
115
- name: 'canMintUndy',
116
- inputs: [],
117
- outputs: [
113
+ "stateMutability": "view",
114
+ "type": "function",
115
+ "name": "canMintUndy",
116
+ "inputs": [],
117
+ "outputs": [
118
118
  {
119
- name: '',
120
- type: 'bool',
121
- },
122
- ],
119
+ "name": "",
120
+ "type": "bool"
121
+ }
122
+ ]
123
123
  },
124
124
  {
125
- stateMutability: 'nonpayable',
126
- type: 'function',
127
- name: 'pause',
128
- inputs: [
125
+ "stateMutability": "nonpayable",
126
+ "type": "function",
127
+ "name": "pause",
128
+ "inputs": [
129
129
  {
130
- name: '_shouldPause',
131
- type: 'bool',
132
- },
130
+ "name": "_shouldPause",
131
+ "type": "bool"
132
+ }
133
133
  ],
134
- outputs: [],
134
+ "outputs": []
135
135
  },
136
136
  {
137
- stateMutability: 'nonpayable',
138
- type: 'function',
139
- name: 'recoverFunds',
140
- inputs: [
137
+ "stateMutability": "nonpayable",
138
+ "type": "function",
139
+ "name": "recoverFunds",
140
+ "inputs": [
141
141
  {
142
- name: '_recipient',
143
- type: 'address',
142
+ "name": "_recipient",
143
+ "type": "address"
144
144
  },
145
145
  {
146
- name: '_asset',
147
- type: 'address',
148
- },
146
+ "name": "_asset",
147
+ "type": "address"
148
+ }
149
149
  ],
150
- outputs: [],
150
+ "outputs": []
151
151
  },
152
152
  {
153
- stateMutability: 'nonpayable',
154
- type: 'function',
155
- name: 'recoverFundsMany',
156
- inputs: [
153
+ "stateMutability": "nonpayable",
154
+ "type": "function",
155
+ "name": "recoverFundsMany",
156
+ "inputs": [
157
157
  {
158
- name: '_recipient',
159
- type: 'address',
158
+ "name": "_recipient",
159
+ "type": "address"
160
160
  },
161
161
  {
162
- name: '_assets',
163
- type: 'address[]',
164
- },
162
+ "name": "_assets",
163
+ "type": "address[]"
164
+ }
165
165
  ],
166
- outputs: [],
166
+ "outputs": []
167
167
  },
168
168
  {
169
- stateMutability: 'view',
170
- type: 'function',
171
- name: 'isPaused',
172
- inputs: [],
173
- outputs: [
169
+ "stateMutability": "view",
170
+ "type": "function",
171
+ "name": "isPaused",
172
+ "inputs": [],
173
+ "outputs": [
174
174
  {
175
- name: '',
176
- type: 'bool',
177
- },
178
- ],
175
+ "name": "",
176
+ "type": "bool"
177
+ }
178
+ ]
179
179
  },
180
180
  {
181
- stateMutability: 'nonpayable',
182
- type: 'function',
183
- name: 'createUserWallet',
184
- inputs: [
181
+ "stateMutability": "nonpayable",
182
+ "type": "function",
183
+ "name": "createUserWallet",
184
+ "inputs": [
185
185
  {
186
- name: '_user',
187
- type: 'address',
186
+ "name": "_user",
187
+ "type": "address"
188
188
  },
189
189
  {
190
- name: '_ambassador',
191
- type: 'address',
192
- },
190
+ "name": "_ambassador",
191
+ "type": "address"
192
+ }
193
193
  ],
194
- outputs: [],
194
+ "outputs": []
195
195
  },
196
196
  {
197
- stateMutability: 'view',
198
- type: 'function',
199
- name: 'getNumUserWallets',
200
- inputs: [],
201
- outputs: [
197
+ "stateMutability": "view",
198
+ "type": "function",
199
+ "name": "getNumUserWallets",
200
+ "inputs": [],
201
+ "outputs": [
202
202
  {
203
- name: '',
204
- type: 'uint256',
205
- },
206
- ],
203
+ "name": "",
204
+ "type": "uint256"
205
+ }
206
+ ]
207
207
  },
208
208
  {
209
- stateMutability: 'view',
210
- type: 'function',
211
- name: 'isUserWallet',
212
- inputs: [
209
+ "stateMutability": "view",
210
+ "type": "function",
211
+ "name": "isUserWallet",
212
+ "inputs": [
213
213
  {
214
- name: '_user',
215
- type: 'address',
216
- },
214
+ "name": "_user",
215
+ "type": "address"
216
+ }
217
217
  ],
218
- outputs: [
218
+ "outputs": [
219
219
  {
220
- name: '',
221
- type: 'bool',
222
- },
223
- ],
220
+ "name": "",
221
+ "type": "bool"
222
+ }
223
+ ]
224
224
  },
225
225
  {
226
- stateMutability: 'nonpayable',
227
- type: 'function',
228
- name: 'setUserPoints',
229
- inputs: [
226
+ "stateMutability": "nonpayable",
227
+ "type": "function",
228
+ "name": "setUserPoints",
229
+ "inputs": [
230
230
  {
231
- name: '_user',
232
- type: 'address',
231
+ "name": "_user",
232
+ "type": "address"
233
233
  },
234
234
  {
235
- name: '_data',
236
- type: 'tuple',
237
- components: [
235
+ "name": "_data",
236
+ "type": "tuple",
237
+ "components": [
238
238
  {
239
- name: 'usdValue',
240
- type: 'uint256',
239
+ "name": "usdValue",
240
+ "type": "uint256"
241
241
  },
242
242
  {
243
- name: 'depositPoints',
244
- type: 'uint256',
243
+ "name": "depositPoints",
244
+ "type": "uint256"
245
245
  },
246
246
  {
247
- name: 'lastUpdate',
248
- type: 'uint256',
249
- },
250
- ],
251
- },
247
+ "name": "lastUpdate",
248
+ "type": "uint256"
249
+ }
250
+ ]
251
+ }
252
252
  ],
253
- outputs: [],
253
+ "outputs": []
254
254
  },
255
255
  {
256
- stateMutability: 'nonpayable',
257
- type: 'function',
258
- name: 'setGlobalPoints',
259
- inputs: [
256
+ "stateMutability": "nonpayable",
257
+ "type": "function",
258
+ "name": "setGlobalPoints",
259
+ "inputs": [
260
260
  {
261
- name: '_data',
262
- type: 'tuple',
263
- components: [
261
+ "name": "_data",
262
+ "type": "tuple",
263
+ "components": [
264
264
  {
265
- name: 'usdValue',
266
- type: 'uint256',
265
+ "name": "usdValue",
266
+ "type": "uint256"
267
267
  },
268
268
  {
269
- name: 'depositPoints',
270
- type: 'uint256',
269
+ "name": "depositPoints",
270
+ "type": "uint256"
271
271
  },
272
272
  {
273
- name: 'lastUpdate',
274
- type: 'uint256',
275
- },
276
- ],
277
- },
273
+ "name": "lastUpdate",
274
+ "type": "uint256"
275
+ }
276
+ ]
277
+ }
278
278
  ],
279
- outputs: [],
279
+ "outputs": []
280
280
  },
281
281
  {
282
- stateMutability: 'nonpayable',
283
- type: 'function',
284
- name: 'setUserAndGlobalPoints',
285
- inputs: [
282
+ "stateMutability": "nonpayable",
283
+ "type": "function",
284
+ "name": "setUserAndGlobalPoints",
285
+ "inputs": [
286
286
  {
287
- name: '_user',
288
- type: 'address',
287
+ "name": "_user",
288
+ "type": "address"
289
289
  },
290
290
  {
291
- name: '_userData',
292
- type: 'tuple',
293
- components: [
291
+ "name": "_userData",
292
+ "type": "tuple",
293
+ "components": [
294
294
  {
295
- name: 'usdValue',
296
- type: 'uint256',
295
+ "name": "usdValue",
296
+ "type": "uint256"
297
297
  },
298
298
  {
299
- name: 'depositPoints',
300
- type: 'uint256',
299
+ "name": "depositPoints",
300
+ "type": "uint256"
301
301
  },
302
302
  {
303
- name: 'lastUpdate',
304
- type: 'uint256',
305
- },
306
- ],
303
+ "name": "lastUpdate",
304
+ "type": "uint256"
305
+ }
306
+ ]
307
307
  },
308
308
  {
309
- name: '_globalData',
310
- type: 'tuple',
311
- components: [
309
+ "name": "_globalData",
310
+ "type": "tuple",
311
+ "components": [
312
312
  {
313
- name: 'usdValue',
314
- type: 'uint256',
313
+ "name": "usdValue",
314
+ "type": "uint256"
315
315
  },
316
316
  {
317
- name: 'depositPoints',
318
- type: 'uint256',
317
+ "name": "depositPoints",
318
+ "type": "uint256"
319
319
  },
320
320
  {
321
- name: 'lastUpdate',
322
- type: 'uint256',
323
- },
324
- ],
325
- },
321
+ "name": "lastUpdate",
322
+ "type": "uint256"
323
+ }
324
+ ]
325
+ }
326
326
  ],
327
- outputs: [],
327
+ "outputs": []
328
328
  },
329
329
  {
330
- stateMutability: 'view',
331
- type: 'function',
332
- name: 'getLastTotalUsdValue',
333
- inputs: [
330
+ "stateMutability": "view",
331
+ "type": "function",
332
+ "name": "getLastTotalUsdValue",
333
+ "inputs": [
334
334
  {
335
- name: '_user',
336
- type: 'address',
337
- },
335
+ "name": "_user",
336
+ "type": "address"
337
+ }
338
338
  ],
339
- outputs: [
339
+ "outputs": [
340
340
  {
341
- name: '',
342
- type: 'uint256',
343
- },
344
- ],
341
+ "name": "",
342
+ "type": "uint256"
343
+ }
344
+ ]
345
345
  },
346
346
  {
347
- stateMutability: 'view',
348
- type: 'function',
349
- name: 'getUserAndGlobalPoints',
350
- inputs: [
347
+ "stateMutability": "view",
348
+ "type": "function",
349
+ "name": "getUserAndGlobalPoints",
350
+ "inputs": [
351
351
  {
352
- name: '_user',
353
- type: 'address',
354
- },
352
+ "name": "_user",
353
+ "type": "address"
354
+ }
355
355
  ],
356
- outputs: [
356
+ "outputs": [
357
357
  {
358
- name: '',
359
- type: 'tuple',
360
- components: [
358
+ "name": "",
359
+ "type": "tuple",
360
+ "components": [
361
361
  {
362
- name: 'usdValue',
363
- type: 'uint256',
362
+ "name": "usdValue",
363
+ "type": "uint256"
364
364
  },
365
365
  {
366
- name: 'depositPoints',
367
- type: 'uint256',
366
+ "name": "depositPoints",
367
+ "type": "uint256"
368
368
  },
369
369
  {
370
- name: 'lastUpdate',
371
- type: 'uint256',
372
- },
373
- ],
370
+ "name": "lastUpdate",
371
+ "type": "uint256"
372
+ }
373
+ ]
374
374
  },
375
375
  {
376
- name: '',
377
- type: 'tuple',
378
- components: [
376
+ "name": "",
377
+ "type": "tuple",
378
+ "components": [
379
379
  {
380
- name: 'usdValue',
381
- type: 'uint256',
380
+ "name": "usdValue",
381
+ "type": "uint256"
382
382
  },
383
383
  {
384
- name: 'depositPoints',
385
- type: 'uint256',
384
+ "name": "depositPoints",
385
+ "type": "uint256"
386
386
  },
387
387
  {
388
- name: 'lastUpdate',
389
- type: 'uint256',
390
- },
391
- ],
392
- },
393
- ],
388
+ "name": "lastUpdate",
389
+ "type": "uint256"
390
+ }
391
+ ]
392
+ }
393
+ ]
394
394
  },
395
395
  {
396
- stateMutability: 'view',
397
- type: 'function',
398
- name: 'isRegisteredVaultToken',
399
- inputs: [
396
+ "stateMutability": "view",
397
+ "type": "function",
398
+ "name": "isRegisteredVaultToken",
399
+ "inputs": [
400
400
  {
401
- name: '_vaultToken',
402
- type: 'address',
403
- },
401
+ "name": "_vaultToken",
402
+ "type": "address"
403
+ }
404
404
  ],
405
- outputs: [
405
+ "outputs": [
406
406
  {
407
- name: '',
408
- type: 'bool',
409
- },
410
- ],
407
+ "name": "",
408
+ "type": "bool"
409
+ }
410
+ ]
411
411
  },
412
412
  {
413
- stateMutability: 'nonpayable',
414
- type: 'function',
415
- name: 'setVaultToken',
416
- inputs: [
413
+ "stateMutability": "nonpayable",
414
+ "type": "function",
415
+ "name": "setVaultToken",
416
+ "inputs": [
417
417
  {
418
- name: '_vaultToken',
419
- type: 'address',
418
+ "name": "_vaultToken",
419
+ "type": "address"
420
420
  },
421
421
  {
422
- name: '_legoId',
423
- type: 'uint256',
422
+ "name": "_legoId",
423
+ "type": "uint256"
424
424
  },
425
425
  {
426
- name: '_underlyingAsset',
427
- type: 'address',
426
+ "name": "_underlyingAsset",
427
+ "type": "address"
428
428
  },
429
429
  {
430
- name: '_decimals',
431
- type: 'uint256',
430
+ "name": "_decimals",
431
+ "type": "uint256"
432
432
  },
433
433
  {
434
- name: '_isRebasing',
435
- type: 'bool',
436
- },
434
+ "name": "_isRebasing",
435
+ "type": "bool"
436
+ }
437
437
  ],
438
- outputs: [],
438
+ "outputs": []
439
439
  },
440
440
  {
441
- stateMutability: 'nonpayable',
442
- type: 'function',
443
- name: 'registerBackpackItem',
444
- inputs: [
441
+ "stateMutability": "nonpayable",
442
+ "type": "function",
443
+ "name": "registerBackpackItem",
444
+ "inputs": [
445
445
  {
446
- name: '_addr',
447
- type: 'address',
448
- },
446
+ "name": "_addr",
447
+ "type": "address"
448
+ }
449
449
  ],
450
- outputs: [],
450
+ "outputs": []
451
451
  },
452
452
  {
453
- stateMutability: 'nonpayable',
454
- type: 'function',
455
- name: 'createAgent',
456
- inputs: [
453
+ "stateMutability": "nonpayable",
454
+ "type": "function",
455
+ "name": "createAgent",
456
+ "inputs": [
457
457
  {
458
- name: '_agent',
459
- type: 'address',
460
- },
458
+ "name": "_agent",
459
+ "type": "address"
460
+ }
461
461
  ],
462
- outputs: [],
462
+ "outputs": []
463
463
  },
464
464
  {
465
- stateMutability: 'view',
466
- type: 'function',
467
- name: 'getNumAgents',
468
- inputs: [],
469
- outputs: [
465
+ "stateMutability": "view",
466
+ "type": "function",
467
+ "name": "getNumAgents",
468
+ "inputs": [],
469
+ "outputs": [
470
470
  {
471
- name: '',
472
- type: 'uint256',
473
- },
474
- ],
471
+ "name": "",
472
+ "type": "uint256"
473
+ }
474
+ ]
475
475
  },
476
476
  {
477
- stateMutability: 'view',
478
- type: 'function',
479
- name: 'isAgent',
480
- inputs: [
477
+ "stateMutability": "view",
478
+ "type": "function",
479
+ "name": "isAgent",
480
+ "inputs": [
481
481
  {
482
- name: '_agent',
483
- type: 'address',
484
- },
482
+ "name": "_agent",
483
+ "type": "address"
484
+ }
485
485
  ],
486
- outputs: [
486
+ "outputs": [
487
487
  {
488
- name: '',
489
- type: 'bool',
490
- },
491
- ],
488
+ "name": "",
489
+ "type": "bool"
490
+ }
491
+ ]
492
492
  },
493
493
  {
494
- stateMutability: 'view',
495
- type: 'function',
496
- name: 'userPoints',
497
- inputs: [
494
+ "stateMutability": "view",
495
+ "type": "function",
496
+ "name": "userPoints",
497
+ "inputs": [
498
498
  {
499
- name: 'arg0',
500
- type: 'address',
501
- },
499
+ "name": "arg0",
500
+ "type": "address"
501
+ }
502
502
  ],
503
- outputs: [
503
+ "outputs": [
504
504
  {
505
- name: '',
506
- type: 'tuple',
507
- components: [
505
+ "name": "",
506
+ "type": "tuple",
507
+ "components": [
508
508
  {
509
- name: 'usdValue',
510
- type: 'uint256',
509
+ "name": "usdValue",
510
+ "type": "uint256"
511
511
  },
512
512
  {
513
- name: 'depositPoints',
514
- type: 'uint256',
513
+ "name": "depositPoints",
514
+ "type": "uint256"
515
515
  },
516
516
  {
517
- name: 'lastUpdate',
518
- type: 'uint256',
519
- },
520
- ],
521
- },
522
- ],
517
+ "name": "lastUpdate",
518
+ "type": "uint256"
519
+ }
520
+ ]
521
+ }
522
+ ]
523
523
  },
524
524
  {
525
- stateMutability: 'view',
526
- type: 'function',
527
- name: 'globalPoints',
528
- inputs: [],
529
- outputs: [
525
+ "stateMutability": "view",
526
+ "type": "function",
527
+ "name": "globalPoints",
528
+ "inputs": [],
529
+ "outputs": [
530
530
  {
531
- name: '',
532
- type: 'tuple',
533
- components: [
531
+ "name": "",
532
+ "type": "tuple",
533
+ "components": [
534
534
  {
535
- name: 'usdValue',
536
- type: 'uint256',
535
+ "name": "usdValue",
536
+ "type": "uint256"
537
537
  },
538
538
  {
539
- name: 'depositPoints',
540
- type: 'uint256',
539
+ "name": "depositPoints",
540
+ "type": "uint256"
541
541
  },
542
542
  {
543
- name: 'lastUpdate',
544
- type: 'uint256',
545
- },
546
- ],
547
- },
548
- ],
543
+ "name": "lastUpdate",
544
+ "type": "uint256"
545
+ }
546
+ ]
547
+ }
548
+ ]
549
549
  },
550
550
  {
551
- stateMutability: 'view',
552
- type: 'function',
553
- name: 'userWallets',
554
- inputs: [
551
+ "stateMutability": "view",
552
+ "type": "function",
553
+ "name": "userWallets",
554
+ "inputs": [
555
555
  {
556
- name: 'arg0',
557
- type: 'uint256',
558
- },
556
+ "name": "arg0",
557
+ "type": "uint256"
558
+ }
559
559
  ],
560
- outputs: [
560
+ "outputs": [
561
561
  {
562
- name: '',
563
- type: 'address',
564
- },
565
- ],
562
+ "name": "",
563
+ "type": "address"
564
+ }
565
+ ]
566
566
  },
567
567
  {
568
- stateMutability: 'view',
569
- type: 'function',
570
- name: 'indexOfUserWallet',
571
- inputs: [
568
+ "stateMutability": "view",
569
+ "type": "function",
570
+ "name": "indexOfUserWallet",
571
+ "inputs": [
572
572
  {
573
- name: 'arg0',
574
- type: 'address',
575
- },
573
+ "name": "arg0",
574
+ "type": "address"
575
+ }
576
576
  ],
577
- outputs: [
577
+ "outputs": [
578
578
  {
579
- name: '',
580
- type: 'uint256',
581
- },
582
- ],
579
+ "name": "",
580
+ "type": "uint256"
581
+ }
582
+ ]
583
583
  },
584
584
  {
585
- stateMutability: 'view',
586
- type: 'function',
587
- name: 'numUserWallets',
588
- inputs: [],
589
- outputs: [
585
+ "stateMutability": "view",
586
+ "type": "function",
587
+ "name": "numUserWallets",
588
+ "inputs": [],
589
+ "outputs": [
590
590
  {
591
- name: '',
592
- type: 'uint256',
593
- },
594
- ],
591
+ "name": "",
592
+ "type": "uint256"
593
+ }
594
+ ]
595
595
  },
596
596
  {
597
- stateMutability: 'view',
598
- type: 'function',
599
- name: 'ambassadors',
600
- inputs: [
597
+ "stateMutability": "view",
598
+ "type": "function",
599
+ "name": "ambassadors",
600
+ "inputs": [
601
601
  {
602
- name: 'arg0',
603
- type: 'address',
604
- },
602
+ "name": "arg0",
603
+ "type": "address"
604
+ }
605
605
  ],
606
- outputs: [
606
+ "outputs": [
607
607
  {
608
- name: '',
609
- type: 'address',
610
- },
611
- ],
608
+ "name": "",
609
+ "type": "address"
610
+ }
611
+ ]
612
612
  },
613
613
  {
614
- stateMutability: 'view',
615
- type: 'function',
616
- name: 'agents',
617
- inputs: [
614
+ "stateMutability": "view",
615
+ "type": "function",
616
+ "name": "agents",
617
+ "inputs": [
618
618
  {
619
- name: 'arg0',
620
- type: 'uint256',
621
- },
619
+ "name": "arg0",
620
+ "type": "uint256"
621
+ }
622
622
  ],
623
- outputs: [
623
+ "outputs": [
624
624
  {
625
- name: '',
626
- type: 'address',
627
- },
628
- ],
625
+ "name": "",
626
+ "type": "address"
627
+ }
628
+ ]
629
629
  },
630
630
  {
631
- stateMutability: 'view',
632
- type: 'function',
633
- name: 'indexOfAgent',
634
- inputs: [
631
+ "stateMutability": "view",
632
+ "type": "function",
633
+ "name": "indexOfAgent",
634
+ "inputs": [
635
635
  {
636
- name: 'arg0',
637
- type: 'address',
638
- },
636
+ "name": "arg0",
637
+ "type": "address"
638
+ }
639
639
  ],
640
- outputs: [
640
+ "outputs": [
641
641
  {
642
- name: '',
643
- type: 'uint256',
644
- },
645
- ],
642
+ "name": "",
643
+ "type": "uint256"
644
+ }
645
+ ]
646
646
  },
647
647
  {
648
- stateMutability: 'view',
649
- type: 'function',
650
- name: 'numAgents',
651
- inputs: [],
652
- outputs: [
648
+ "stateMutability": "view",
649
+ "type": "function",
650
+ "name": "numAgents",
651
+ "inputs": [],
652
+ "outputs": [
653
653
  {
654
- name: '',
655
- type: 'uint256',
656
- },
657
- ],
654
+ "name": "",
655
+ "type": "uint256"
656
+ }
657
+ ]
658
658
  },
659
659
  {
660
- stateMutability: 'view',
661
- type: 'function',
662
- name: 'vaultTokens',
663
- inputs: [
660
+ "stateMutability": "view",
661
+ "type": "function",
662
+ "name": "vaultTokens",
663
+ "inputs": [
664
664
  {
665
- name: 'arg0',
666
- type: 'address',
667
- },
665
+ "name": "arg0",
666
+ "type": "address"
667
+ }
668
668
  ],
669
- outputs: [
669
+ "outputs": [
670
670
  {
671
- name: '',
672
- type: 'tuple',
673
- components: [
671
+ "name": "",
672
+ "type": "tuple",
673
+ "components": [
674
674
  {
675
- name: 'legoId',
676
- type: 'uint256',
675
+ "name": "legoId",
676
+ "type": "uint256"
677
677
  },
678
678
  {
679
- name: 'underlyingAsset',
680
- type: 'address',
679
+ "name": "underlyingAsset",
680
+ "type": "address"
681
681
  },
682
682
  {
683
- name: 'decimals',
684
- type: 'uint256',
683
+ "name": "decimals",
684
+ "type": "uint256"
685
685
  },
686
686
  {
687
- name: 'isRebasing',
688
- type: 'bool',
689
- },
690
- ],
691
- },
692
- ],
687
+ "name": "isRebasing",
688
+ "type": "bool"
689
+ }
690
+ ]
691
+ }
692
+ ]
693
693
  },
694
694
  {
695
- stateMutability: 'view',
696
- type: 'function',
697
- name: 'isRegisteredBackpackItem',
698
- inputs: [
695
+ "stateMutability": "view",
696
+ "type": "function",
697
+ "name": "isRegisteredBackpackItem",
698
+ "inputs": [
699
699
  {
700
- name: 'arg0',
701
- type: 'address',
702
- },
700
+ "name": "arg0",
701
+ "type": "address"
702
+ }
703
703
  ],
704
- outputs: [
704
+ "outputs": [
705
705
  {
706
- name: '',
707
- type: 'bool',
708
- },
709
- ],
706
+ "name": "",
707
+ "type": "bool"
708
+ }
709
+ ]
710
710
  },
711
711
  {
712
- stateMutability: 'nonpayable',
713
- type: 'constructor',
714
- inputs: [
712
+ "stateMutability": "nonpayable",
713
+ "type": "constructor",
714
+ "inputs": [
715
715
  {
716
- name: '_undyHq',
717
- type: 'address',
718
- },
716
+ "name": "_undyHq",
717
+ "type": "address"
718
+ }
719
719
  ],
720
- outputs: [],
721
- },
720
+ "outputs": []
721
+ }
722
722
  ];
723
723
  export const deployAddress = '0x9e97A2e527890E690c7FA978696A88EFA868c5D0';
724
724
  function getRequest(method, args, contractAddressOrOptions) {
@@ -813,14 +813,8 @@ export function toSdk(publicClient, walletClient, addressResolver) {
813
813
  deployAddress,
814
814
  abi,
815
815
  events: {
816
- DepartmentPauseModified: {
817
- topic: getEventTopic('DepartmentPauseModified'),
818
- parse: (events) => parseEvents('DepartmentPauseModified', events),
819
- },
820
- DepartmentFundsRecovered: {
821
- topic: getEventTopic('DepartmentFundsRecovered'),
822
- parse: (events) => parseEvents('DepartmentFundsRecovered', events),
823
- },
816
+ DepartmentPauseModified: { topic: getEventTopic('DepartmentPauseModified'), parse: (events) => parseEvents('DepartmentPauseModified', events) },
817
+ DepartmentFundsRecovered: { topic: getEventTopic('DepartmentFundsRecovered'), parse: (events) => parseEvents('DepartmentFundsRecovered', events) },
824
818
  },
825
819
  // Queries
826
820
  getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args), {}, addressResolver),