@underscore-finance/sdk 0.3.4 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/dist/contracts/AaveV3.d.ts +2120 -0
  2. package/dist/contracts/AaveV3.d.ts.map +1 -0
  3. package/dist/contracts/AaveV3.js +2714 -0
  4. package/dist/contracts/AeroClassic.d.ts +2017 -0
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -0
  6. package/dist/contracts/AeroClassic.js +2567 -0
  7. package/dist/contracts/AeroSlipstream.d.ts +2113 -0
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -0
  9. package/dist/contracts/AeroSlipstream.js +2692 -0
  10. package/dist/contracts/Agent.d.ts +2189 -1138
  11. package/dist/contracts/Agent.d.ts.map +1 -1
  12. package/dist/contracts/Agent.js +2807 -1343
  13. package/dist/contracts/AgentWrapper.d.ts +3760 -0
  14. package/dist/contracts/AgentWrapper.d.ts.map +1 -0
  15. package/dist/contracts/AgentWrapper.js +4922 -0
  16. package/dist/contracts/Appraiser.d.ts +997 -0
  17. package/dist/contracts/Appraiser.d.ts.map +1 -0
  18. package/dist/contracts/Appraiser.js +1285 -0
  19. package/dist/contracts/Billing.d.ts +420 -0
  20. package/dist/contracts/Billing.d.ts.map +1 -0
  21. package/dist/contracts/Billing.js +506 -0
  22. package/dist/contracts/ChequeBook.d.ts +1184 -0
  23. package/dist/contracts/ChequeBook.d.ts.map +1 -0
  24. package/dist/contracts/ChequeBook.js +1352 -0
  25. package/dist/contracts/CompoundV3.d.ts +2158 -0
  26. package/dist/contracts/CompoundV3.d.ts.map +1 -0
  27. package/dist/contracts/CompoundV3.js +2764 -0
  28. package/dist/contracts/Curve.d.ts +1077 -0
  29. package/dist/contracts/Curve.d.ts.map +1 -0
  30. package/dist/contracts/Curve.js +1357 -0
  31. package/dist/contracts/DefaultsBase.d.ts +290 -0
  32. package/dist/contracts/DefaultsBase.d.ts.map +1 -0
  33. package/dist/contracts/DefaultsBase.js +316 -0
  34. package/dist/contracts/Euler.d.ts +2172 -0
  35. package/dist/contracts/Euler.d.ts.map +1 -0
  36. package/dist/contracts/Euler.js +2782 -0
  37. package/dist/contracts/Fluid.d.ts +2106 -0
  38. package/dist/contracts/Fluid.d.ts.map +1 -0
  39. package/dist/contracts/Fluid.js +2696 -0
  40. package/dist/contracts/Hatchery.d.ts +541 -0
  41. package/dist/contracts/Hatchery.d.ts.map +1 -0
  42. package/dist/contracts/Hatchery.js +671 -0
  43. package/dist/contracts/HighCommand.d.ts +1868 -0
  44. package/dist/contracts/HighCommand.d.ts.map +1 -0
  45. package/dist/contracts/HighCommand.js +2149 -0
  46. package/dist/contracts/Kernel.d.ts +354 -0
  47. package/dist/contracts/Kernel.d.ts.map +1 -0
  48. package/dist/contracts/Kernel.js +412 -0
  49. package/dist/contracts/Ledger.d.ts +694 -0
  50. package/dist/contracts/Ledger.d.ts.map +1 -0
  51. package/dist/contracts/Ledger.js +834 -0
  52. package/dist/contracts/LegoBook.d.ts +1424 -0
  53. package/dist/contracts/LegoBook.d.ts.map +1 -0
  54. package/dist/contracts/LegoBook.js +1783 -0
  55. package/dist/contracts/LegoTools.d.ts +1898 -0
  56. package/dist/contracts/LegoTools.d.ts.map +1 -0
  57. package/dist/contracts/LegoTools.js +2378 -0
  58. package/dist/contracts/LegoUniswapV0_2.d.ts +1204 -0
  59. package/dist/contracts/LegoUniswapV0_2.d.ts.map +1 -0
  60. package/dist/contracts/LegoUniswapV0_2.js +1546 -0
  61. package/dist/contracts/LootDistributor.d.ts +996 -0
  62. package/dist/contracts/LootDistributor.d.ts.map +1 -0
  63. package/dist/contracts/LootDistributor.js +1255 -0
  64. package/dist/contracts/Migrator.d.ts +268 -0
  65. package/dist/contracts/Migrator.d.ts.map +1 -0
  66. package/dist/contracts/Migrator.js +324 -0
  67. package/dist/contracts/MissionControl.d.ts +1331 -0
  68. package/dist/contracts/MissionControl.d.ts.map +1 -0
  69. package/dist/contracts/MissionControl.js +1485 -0
  70. package/dist/contracts/Moonwell.d.ts +2137 -0
  71. package/dist/contracts/Moonwell.d.ts.map +1 -0
  72. package/dist/contracts/Moonwell.js +2737 -0
  73. package/dist/contracts/Morpho.d.ts +2172 -0
  74. package/dist/contracts/Morpho.d.ts.map +1 -0
  75. package/dist/contracts/Morpho.js +2782 -0
  76. package/dist/contracts/Paymaster.d.ts +1679 -0
  77. package/dist/contracts/Paymaster.d.ts.map +1 -0
  78. package/dist/contracts/Paymaster.js +2077 -0
  79. package/dist/contracts/RipeLego.d.ts +2263 -0
  80. package/dist/contracts/RipeLego.d.ts.map +1 -0
  81. package/dist/contracts/RipeLego.js +2891 -0
  82. package/dist/contracts/Sentinel.d.ts +1804 -0
  83. package/dist/contracts/Sentinel.d.ts.map +1 -0
  84. package/dist/contracts/Sentinel.js +2152 -0
  85. package/dist/contracts/Switchboard.d.ts +1395 -0
  86. package/dist/contracts/Switchboard.d.ts.map +1 -0
  87. package/dist/contracts/Switchboard.js +1746 -0
  88. package/dist/contracts/SwitchboardAlpha.d.ts +2228 -0
  89. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -0
  90. package/dist/contracts/SwitchboardAlpha.js +2743 -0
  91. package/dist/contracts/SwitchboardBravo.d.ts +1498 -0
  92. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -0
  93. package/dist/contracts/SwitchboardBravo.js +1855 -0
  94. package/dist/contracts/UndyHq.d.ts +1580 -0
  95. package/dist/contracts/UndyHq.d.ts.map +1 -0
  96. package/dist/contracts/UndyHq.js +1986 -0
  97. package/dist/contracts/UniswapV2.d.ts +2017 -0
  98. package/dist/contracts/UniswapV2.d.ts.map +1 -0
  99. package/dist/contracts/UniswapV2.js +2567 -0
  100. package/dist/contracts/UniswapV3.d.ts +2113 -0
  101. package/dist/contracts/UniswapV3.d.ts.map +1 -0
  102. package/dist/contracts/UniswapV3.js +2692 -0
  103. package/dist/contracts/UserWallet.d.ts +1438 -784
  104. package/dist/contracts/UserWallet.d.ts.map +1 -1
  105. package/dist/contracts/UserWallet.js +1854 -935
  106. package/dist/contracts/UserWalletConfig.d.ts +3034 -1231
  107. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  108. package/dist/contracts/UserWalletConfig.js +3395 -1407
  109. package/dist/contracts/WalletBackpack.d.ts +1183 -0
  110. package/dist/contracts/WalletBackpack.d.ts.map +1 -0
  111. package/dist/contracts/WalletBackpack.js +1484 -0
  112. package/dist/contracts/index.d.ts +72 -36
  113. package/dist/contracts/index.d.ts.map +1 -1
  114. package/dist/contracts/index.js +72 -36
  115. package/dist/contracts/sdk.d.ts +146 -72
  116. package/dist/contracts/sdk.d.ts.map +1 -1
  117. package/dist/contracts/sdk.js +146 -72
  118. package/dist/contracts/v0_1_AddyRegistry.d.ts +473 -0
  119. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +1 -0
  120. package/dist/contracts/v0_1_AddyRegistry.js +594 -0
  121. package/dist/contracts/v0_1_Agent.d.ts +2631 -0
  122. package/dist/contracts/v0_1_Agent.d.ts.map +1 -0
  123. package/dist/contracts/v0_1_Agent.js +3372 -0
  124. package/dist/contracts/v0_1_AgentFactory.d.ts +1054 -0
  125. package/dist/contracts/v0_1_AgentFactory.d.ts.map +1 -0
  126. package/dist/contracts/v0_1_AgentFactory.js +1336 -0
  127. package/dist/contracts/v0_1_UserWallet.d.ts +1980 -0
  128. package/dist/contracts/v0_1_UserWallet.d.ts.map +1 -0
  129. package/dist/contracts/v0_1_UserWallet.js +2581 -0
  130. package/dist/contracts/v0_1_UserWalletConfig.d.ts +1400 -0
  131. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +1 -0
  132. package/dist/contracts/v0_1_UserWalletConfig.js +1676 -0
  133. package/dist/contracts/v0_2_AddyRegistry.d.ts +1050 -0
  134. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +1 -0
  135. package/dist/contracts/v0_2_AddyRegistry.js +1313 -0
  136. package/dist/contracts/v0_2_Agent.d.ts +2709 -0
  137. package/dist/contracts/v0_2_Agent.d.ts.map +1 -0
  138. package/dist/contracts/v0_2_Agent.js +3458 -0
  139. package/dist/contracts/v0_2_AgentFactory.d.ts +1275 -0
  140. package/dist/contracts/v0_2_AgentFactory.d.ts.map +1 -0
  141. package/dist/contracts/v0_2_AgentFactory.js +1609 -0
  142. package/dist/contracts/v0_2_UserWallet.d.ts +1958 -0
  143. package/dist/contracts/v0_2_UserWallet.d.ts.map +1 -0
  144. package/dist/contracts/v0_2_UserWallet.js +2553 -0
  145. package/dist/contracts/v0_2_UserWalletConfig.d.ts +1468 -0
  146. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +1 -0
  147. package/dist/contracts/v0_2_UserWalletConfig.js +1764 -0
  148. package/dist/contracts/v0_3_AddyRegistry.d.ts +1109 -0
  149. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +1 -0
  150. package/dist/contracts/v0_3_AddyRegistry.js +1392 -0
  151. package/dist/contracts/v0_3_Agent.d.ts +2709 -0
  152. package/dist/contracts/v0_3_Agent.d.ts.map +1 -0
  153. package/dist/contracts/v0_3_Agent.js +3458 -0
  154. package/dist/contracts/v0_3_AgentFactory.d.ts +1665 -0
  155. package/dist/contracts/v0_3_AgentFactory.d.ts.map +1 -0
  156. package/dist/contracts/v0_3_AgentFactory.js +2078 -0
  157. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +706 -0
  158. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +1 -0
  159. package/dist/contracts/v0_3_ChainlinkFeeds.js +900 -0
  160. package/dist/contracts/v0_3_LegoAaveV3.d.ts +1033 -0
  161. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +1 -0
  162. package/dist/contracts/v0_3_LegoAaveV3.js +1330 -0
  163. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +1204 -0
  164. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +1 -0
  165. package/dist/contracts/v0_3_LegoAeroClassic.js +1546 -0
  166. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +1300 -0
  167. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +1 -0
  168. package/dist/contracts/v0_3_LegoAeroSlipstream.js +1671 -0
  169. package/dist/contracts/v0_3_LegoCommon.d.ts +164 -0
  170. package/dist/contracts/v0_3_LegoCommon.d.ts.map +1 -0
  171. package/dist/contracts/v0_3_LegoCommon.js +202 -0
  172. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +1060 -0
  173. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +1 -0
  174. package/dist/contracts/v0_3_LegoCompoundV3.js +1365 -0
  175. package/dist/contracts/v0_3_LegoCredit.d.ts +140 -0
  176. package/dist/contracts/v0_3_LegoCredit.d.ts.map +1 -0
  177. package/dist/contracts/v0_3_LegoCredit.js +179 -0
  178. package/dist/contracts/v0_3_LegoCurve.d.ts +1189 -0
  179. package/dist/contracts/v0_3_LegoCurve.d.ts.map +1 -0
  180. package/dist/contracts/v0_3_LegoCurve.js +1519 -0
  181. package/dist/contracts/v0_3_LegoDex.d.ts +587 -0
  182. package/dist/contracts/v0_3_LegoDex.d.ts.map +1 -0
  183. package/dist/contracts/v0_3_LegoDex.js +774 -0
  184. package/dist/contracts/v0_3_LegoEuler.d.ts +1074 -0
  185. package/dist/contracts/v0_3_LegoEuler.d.ts.map +1 -0
  186. package/dist/contracts/v0_3_LegoEuler.js +1383 -0
  187. package/dist/contracts/v0_3_LegoFluid.d.ts +1025 -0
  188. package/dist/contracts/v0_3_LegoFluid.d.ts.map +1 -0
  189. package/dist/contracts/v0_3_LegoFluid.js +1320 -0
  190. package/dist/contracts/v0_3_LegoHelper.d.ts +1563 -0
  191. package/dist/contracts/v0_3_LegoHelper.d.ts.map +1 -0
  192. package/dist/contracts/v0_3_LegoHelper.js +1947 -0
  193. package/dist/contracts/v0_3_LegoMoonwell.d.ts +1042 -0
  194. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +1 -0
  195. package/dist/contracts/v0_3_LegoMoonwell.js +1342 -0
  196. package/dist/contracts/v0_3_LegoMorpho.d.ts +1074 -0
  197. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +1 -0
  198. package/dist/contracts/v0_3_LegoMorpho.js +1383 -0
  199. package/dist/contracts/v0_3_LegoRegistry.d.ts +1079 -0
  200. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +1 -0
  201. package/dist/contracts/v0_3_LegoRegistry.js +1368 -0
  202. package/dist/contracts/v0_3_LegoSky.d.ts +923 -0
  203. package/dist/contracts/v0_3_LegoSky.d.ts.map +1 -0
  204. package/dist/contracts/v0_3_LegoSky.js +1180 -0
  205. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +1338 -0
  206. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +1 -0
  207. package/dist/contracts/v0_3_LegoUniswapV3.js +1718 -0
  208. package/dist/contracts/v0_3_LegoYield.d.ts +390 -0
  209. package/dist/contracts/v0_3_LegoYield.d.ts.map +1 -0
  210. package/dist/contracts/v0_3_LegoYield.js +511 -0
  211. package/dist/contracts/v0_3_OracleParser.d.ts +207 -0
  212. package/dist/contracts/v0_3_OracleParser.d.ts.map +1 -0
  213. package/dist/contracts/v0_3_OracleParser.js +264 -0
  214. package/dist/contracts/v0_3_OracleRegistry.d.ts +1221 -0
  215. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +1 -0
  216. package/dist/contracts/v0_3_OracleRegistry.js +1562 -0
  217. package/dist/contracts/v0_3_PriceSheets.d.ts +1127 -0
  218. package/dist/contracts/v0_3_PriceSheets.d.ts.map +1 -0
  219. package/dist/contracts/v0_3_PriceSheets.js +1383 -0
  220. package/dist/contracts/v0_3_PythFeeds.d.ts +640 -0
  221. package/dist/contracts/v0_3_PythFeeds.d.ts.map +1 -0
  222. package/dist/contracts/v0_3_PythFeeds.js +813 -0
  223. package/dist/contracts/v0_3_StorkFeeds.d.ts +640 -0
  224. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +1 -0
  225. package/dist/contracts/v0_3_StorkFeeds.js +813 -0
  226. package/dist/contracts/v0_3_UserWallet.d.ts +1975 -0
  227. package/dist/contracts/v0_3_UserWallet.d.ts.map +1 -0
  228. package/dist/contracts/v0_3_UserWallet.js +2577 -0
  229. package/dist/contracts/v0_3_UserWalletConfig.d.ts +1852 -0
  230. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +1 -0
  231. package/dist/contracts/v0_3_UserWalletConfig.js +2263 -0
  232. package/dist/getContracts.d.ts +77 -0
  233. package/dist/getContracts.d.ts.map +1 -0
  234. package/dist/getContracts.js +67 -0
  235. package/dist/getLegacyContracts.d.ts +69 -0
  236. package/dist/getLegacyContracts.d.ts.map +1 -0
  237. package/dist/getLegacyContracts.js +55 -0
  238. package/dist/getSwapInstructions.d.ts +60 -0
  239. package/dist/getSwapInstructions.d.ts.map +1 -0
  240. package/dist/getSwapInstructions.js +41 -0
  241. package/dist/index.d.ts +7 -477
  242. package/dist/index.d.ts.map +1 -1
  243. package/dist/index.js +8 -182
  244. package/package.json +2 -2
@@ -0,0 +1,268 @@
1
+ import { PublicClient, WalletClient } from 'viem';
2
+ type ExtractArgs<T> = T extends (...args: infer P) => any ? P : never;
3
+ type Address = `0x${string}`;
4
+ export declare const abi: readonly [{
5
+ readonly name: "FundsMigrated";
6
+ readonly inputs: readonly [{
7
+ readonly name: "fromWallet";
8
+ readonly type: "address";
9
+ readonly indexed: true;
10
+ }, {
11
+ readonly name: "toWallet";
12
+ readonly type: "address";
13
+ readonly indexed: true;
14
+ }, {
15
+ readonly name: "numAssetsMigrated";
16
+ readonly type: "uint256";
17
+ readonly indexed: false;
18
+ }, {
19
+ readonly name: "totalUsdValue";
20
+ readonly type: "uint256";
21
+ readonly indexed: false;
22
+ }];
23
+ readonly anonymous: false;
24
+ readonly type: "event";
25
+ }, {
26
+ readonly name: "ConfigCloned";
27
+ readonly inputs: readonly [{
28
+ readonly name: "fromWallet";
29
+ readonly type: "address";
30
+ readonly indexed: true;
31
+ }, {
32
+ readonly name: "toWallet";
33
+ readonly type: "address";
34
+ readonly indexed: true;
35
+ }, {
36
+ readonly name: "numManagersCopied";
37
+ readonly type: "uint256";
38
+ readonly indexed: false;
39
+ }, {
40
+ readonly name: "numPayeesCopied";
41
+ readonly type: "uint256";
42
+ readonly indexed: false;
43
+ }, {
44
+ readonly name: "numWhitelistCopied";
45
+ readonly type: "uint256";
46
+ readonly indexed: false;
47
+ }];
48
+ readonly anonymous: false;
49
+ readonly type: "event";
50
+ }, {
51
+ readonly stateMutability: "nonpayable";
52
+ readonly type: "function";
53
+ readonly name: "migrateAll";
54
+ readonly inputs: readonly [{
55
+ readonly name: "_fromWallet";
56
+ readonly type: "address";
57
+ }, {
58
+ readonly name: "_toWallet";
59
+ readonly type: "address";
60
+ }];
61
+ readonly outputs: readonly [{
62
+ readonly name: "";
63
+ readonly type: "uint256";
64
+ }, {
65
+ readonly name: "";
66
+ readonly type: "bool";
67
+ }];
68
+ }, {
69
+ readonly stateMutability: "nonpayable";
70
+ readonly type: "function";
71
+ readonly name: "migrateFunds";
72
+ readonly inputs: readonly [{
73
+ readonly name: "_fromWallet";
74
+ readonly type: "address";
75
+ }, {
76
+ readonly name: "_toWallet";
77
+ readonly type: "address";
78
+ }];
79
+ readonly outputs: readonly [{
80
+ readonly name: "";
81
+ readonly type: "uint256";
82
+ }];
83
+ }, {
84
+ readonly stateMutability: "view";
85
+ readonly type: "function";
86
+ readonly name: "canMigrateFundsToNewWallet";
87
+ readonly inputs: readonly [{
88
+ readonly name: "_fromWallet";
89
+ readonly type: "address";
90
+ }, {
91
+ readonly name: "_toWallet";
92
+ readonly type: "address";
93
+ }, {
94
+ readonly name: "_caller";
95
+ readonly type: "address";
96
+ }];
97
+ readonly outputs: readonly [{
98
+ readonly name: "";
99
+ readonly type: "bool";
100
+ }];
101
+ }, {
102
+ readonly stateMutability: "nonpayable";
103
+ readonly type: "function";
104
+ readonly name: "cloneConfig";
105
+ readonly inputs: readonly [{
106
+ readonly name: "_fromWallet";
107
+ readonly type: "address";
108
+ }, {
109
+ readonly name: "_toWallet";
110
+ readonly type: "address";
111
+ }];
112
+ readonly outputs: readonly [{
113
+ readonly name: "";
114
+ readonly type: "bool";
115
+ }];
116
+ }, {
117
+ readonly stateMutability: "view";
118
+ readonly type: "function";
119
+ readonly name: "canCopyWalletConfig";
120
+ readonly inputs: readonly [{
121
+ readonly name: "_fromWallet";
122
+ readonly type: "address";
123
+ }, {
124
+ readonly name: "_toWallet";
125
+ readonly type: "address";
126
+ }, {
127
+ readonly name: "_caller";
128
+ readonly type: "address";
129
+ }];
130
+ readonly outputs: readonly [{
131
+ readonly name: "";
132
+ readonly type: "bool";
133
+ }];
134
+ }, {
135
+ readonly stateMutability: "view";
136
+ readonly type: "function";
137
+ readonly name: "getMigrationConfigBundle";
138
+ readonly inputs: readonly [{
139
+ readonly name: "_userWallet";
140
+ readonly type: "address";
141
+ }];
142
+ readonly outputs: readonly [{
143
+ readonly name: "";
144
+ readonly type: "tuple";
145
+ readonly components: readonly [{
146
+ readonly name: "owner";
147
+ readonly type: "address";
148
+ }, {
149
+ readonly name: "isFrozen";
150
+ readonly type: "bool";
151
+ }, {
152
+ readonly name: "numPayees";
153
+ readonly type: "uint256";
154
+ }, {
155
+ readonly name: "numWhitelisted";
156
+ readonly type: "uint256";
157
+ }, {
158
+ readonly name: "numManagers";
159
+ readonly type: "uint256";
160
+ }, {
161
+ readonly name: "startingAgent";
162
+ readonly type: "address";
163
+ }, {
164
+ readonly name: "startingAgentIndex";
165
+ readonly type: "uint256";
166
+ }, {
167
+ readonly name: "hasPendingOwnerChange";
168
+ readonly type: "bool";
169
+ }, {
170
+ readonly name: "groupId";
171
+ readonly type: "uint256";
172
+ }];
173
+ }];
174
+ }, {
175
+ readonly stateMutability: "view";
176
+ readonly type: "function";
177
+ readonly name: "UNDY_HQ";
178
+ readonly inputs: readonly [];
179
+ readonly outputs: readonly [{
180
+ readonly name: "";
181
+ readonly type: "address";
182
+ }];
183
+ }, {
184
+ readonly stateMutability: "nonpayable";
185
+ readonly type: "constructor";
186
+ readonly inputs: readonly [{
187
+ readonly name: "_undyHq";
188
+ readonly type: "address";
189
+ }];
190
+ readonly outputs: readonly [];
191
+ }];
192
+ export declare const deployAddress: Address | undefined;
193
+ export type Contract = {
194
+ calls: {
195
+ canMigrateFundsToNewWallet: (fromWallet: `0x${string}`, toWallet: `0x${string}`, caller: `0x${string}`) => Promise<boolean>;
196
+ canCopyWalletConfig: (fromWallet: `0x${string}`, toWallet: `0x${string}`, caller: `0x${string}`) => Promise<boolean>;
197
+ getMigrationConfigBundle: (userWallet: `0x${string}`) => Promise<{
198
+ owner: `0x${string}`;
199
+ isFrozen: boolean;
200
+ numPayees: bigint;
201
+ numWhitelisted: bigint;
202
+ numManagers: bigint;
203
+ startingAgent: `0x${string}`;
204
+ startingAgentIndex: bigint;
205
+ hasPendingOwnerChange: boolean;
206
+ groupId: bigint;
207
+ }>;
208
+ UNDY_HQ: () => Promise<`0x${string}`>;
209
+ };
210
+ mutations: {
211
+ migrateAll: (fromWallet: `0x${string}`, toWallet: `0x${string}`) => Promise<[bigint, boolean]>;
212
+ migrateFunds: (fromWallet: `0x${string}`, toWallet: `0x${string}`) => Promise<bigint>;
213
+ cloneConfig: (fromWallet: `0x${string}`, toWallet: `0x${string}`) => Promise<boolean>;
214
+ };
215
+ events: {
216
+ FundsMigrated: (fromWallet: `0x${string}`, toWallet: `0x${string}`, numAssetsMigrated: bigint, totalUsdValue: bigint) => Promise<void>;
217
+ ConfigCloned: (fromWallet: `0x${string}`, toWallet: `0x${string}`, numManagersCopied: bigint, numPayeesCopied: bigint, numWhitelistCopied: bigint) => Promise<void>;
218
+ };
219
+ };
220
+ export type Calls = keyof Contract['calls'];
221
+ export type Request<M extends Calls> = {
222
+ contractName: 'Migrator';
223
+ method: M;
224
+ args: ExtractArgs<Contract['calls'][M]>;
225
+ address: Address | undefined;
226
+ deployAddress: Address | undefined;
227
+ defaultValue: Awaited<ReturnType<Contract['calls'][M]>> | undefined;
228
+ getAbi: () => typeof abi;
229
+ with: (options: {
230
+ contractAddress?: Address;
231
+ defaultValue?: Awaited<ReturnType<Contract['calls'][M]>>;
232
+ }) => Request<M>;
233
+ defaultTo: (defaultValue: Awaited<ReturnType<Contract['calls'][M]>>) => Request<M>;
234
+ at: (address: Address) => Request<M>;
235
+ };
236
+ export type CallReturn<M extends Calls> = NonNullable<Request<M>['defaultValue']>;
237
+ declare function getRequest<M extends Calls>(method: M, args: ExtractArgs<Contract['calls'][M]>, contractAddressOrOptions?: Address | {
238
+ contractAddress?: Address;
239
+ defaultValue?: Awaited<ReturnType<Contract['calls'][M]>>;
240
+ }): Request<M>;
241
+ type CallType = {
242
+ [K in Calls]: (...args: ExtractArgs<Contract['calls'][K]>) => ReturnType<typeof getRequest<K>>;
243
+ };
244
+ export declare const call: CallType;
245
+ export type Mutations = keyof Contract['mutations'];
246
+ export declare const mutation: {
247
+ [K in Mutations]: {
248
+ contractName: 'Migrator';
249
+ deployAddress: Address | undefined;
250
+ getAbi: () => typeof abi;
251
+ functionName: K;
252
+ argsType: ExtractArgs<Contract['mutations'][K]> | undefined;
253
+ };
254
+ };
255
+ export type SDK = {
256
+ deployAddress: Address | undefined;
257
+ abi: typeof abi;
258
+ canMigrateFundsToNewWallet: (...args: ExtractArgs<Contract['calls']['canMigrateFundsToNewWallet']>) => Promise<CallReturn<'canMigrateFundsToNewWallet'>>;
259
+ canCopyWalletConfig: (...args: ExtractArgs<Contract['calls']['canCopyWalletConfig']>) => Promise<CallReturn<'canCopyWalletConfig'>>;
260
+ getMigrationConfigBundle: (...args: ExtractArgs<Contract['calls']['getMigrationConfigBundle']>) => Promise<CallReturn<'getMigrationConfigBundle'>>;
261
+ UNDY_HQ: (...args: ExtractArgs<Contract['calls']['UNDY_HQ']>) => Promise<CallReturn<'UNDY_HQ'>>;
262
+ migrateAll: (...args: ExtractArgs<Contract['mutations']['migrateAll']>) => Promise<Address>;
263
+ migrateFunds: (...args: ExtractArgs<Contract['mutations']['migrateFunds']>) => Promise<Address>;
264
+ cloneConfig: (...args: ExtractArgs<Contract['mutations']['cloneConfig']>) => Promise<Address>;
265
+ };
266
+ export declare function toSdk(publicClient?: PublicClient, walletClient?: WalletClient): SDK;
267
+ export {};
268
+ //# sourceMappingURL=Migrator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Migrator.d.ts","sourceRoot":"","sources":["../../src/contracts/Migrator.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAEjD,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,KAAK,CAAA;AACrE,KAAK,OAAO,GAAG,KAAK,MAAM,EAAE,CAAA;AAE5B,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+PN,CAAA;AAEV,eAAO,MAAM,aAAa,EAAE,OAAO,GAAG,SAAwD,CAAA;AAE9F,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE;QACL,0BAA0B,EAAE,CAC1B,UAAU,EAAE,KAAK,MAAM,EAAE,EACzB,QAAQ,EAAE,KAAK,MAAM,EAAE,EACvB,MAAM,EAAE,KAAK,MAAM,EAAE,KAClB,OAAO,CAAC,OAAO,CAAC,CAAA;QACrB,mBAAmB,EAAE,CAAC,UAAU,EAAE,KAAK,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;QACpH,wBAAwB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,mBAAmB,EAAE,CACnB,GAAG,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,qBAAqB,CAAC,CAAC,KAC3D,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC,CAAA;IAC/C,wBAAwB,EAAE,CACxB,GAAG,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,0BAA0B,CAAC,CAAC,KAChE,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC,CAAA;IACpD,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAA;IAC/F,UAAU,EAAE,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IAC3F,YAAY,EAAE,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,cAAc,CAAC,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IAC/F,WAAW,EAAE,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,aAAa,CAAC,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;CAC9F,CAAA;AAED,wBAAgB,KAAK,CAAC,YAAY,CAAC,EAAE,YAAY,EAAE,YAAY,CAAC,EAAE,YAAY,GAAG,GAAG,CA0BnF"}
@@ -0,0 +1,324 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* @ts-nocheck */
5
+ import { singleQuery, mutate } from '@dappql/async';
6
+ export const abi = [
7
+ {
8
+ name: 'FundsMigrated',
9
+ inputs: [
10
+ {
11
+ name: 'fromWallet',
12
+ type: 'address',
13
+ indexed: true,
14
+ },
15
+ {
16
+ name: 'toWallet',
17
+ type: 'address',
18
+ indexed: true,
19
+ },
20
+ {
21
+ name: 'numAssetsMigrated',
22
+ type: 'uint256',
23
+ indexed: false,
24
+ },
25
+ {
26
+ name: 'totalUsdValue',
27
+ type: 'uint256',
28
+ indexed: false,
29
+ },
30
+ ],
31
+ anonymous: false,
32
+ type: 'event',
33
+ },
34
+ {
35
+ name: 'ConfigCloned',
36
+ inputs: [
37
+ {
38
+ name: 'fromWallet',
39
+ type: 'address',
40
+ indexed: true,
41
+ },
42
+ {
43
+ name: 'toWallet',
44
+ type: 'address',
45
+ indexed: true,
46
+ },
47
+ {
48
+ name: 'numManagersCopied',
49
+ type: 'uint256',
50
+ indexed: false,
51
+ },
52
+ {
53
+ name: 'numPayeesCopied',
54
+ type: 'uint256',
55
+ indexed: false,
56
+ },
57
+ {
58
+ name: 'numWhitelistCopied',
59
+ type: 'uint256',
60
+ indexed: false,
61
+ },
62
+ ],
63
+ anonymous: false,
64
+ type: 'event',
65
+ },
66
+ {
67
+ stateMutability: 'nonpayable',
68
+ type: 'function',
69
+ name: 'migrateAll',
70
+ inputs: [
71
+ {
72
+ name: '_fromWallet',
73
+ type: 'address',
74
+ },
75
+ {
76
+ name: '_toWallet',
77
+ type: 'address',
78
+ },
79
+ ],
80
+ outputs: [
81
+ {
82
+ name: '',
83
+ type: 'uint256',
84
+ },
85
+ {
86
+ name: '',
87
+ type: 'bool',
88
+ },
89
+ ],
90
+ },
91
+ {
92
+ stateMutability: 'nonpayable',
93
+ type: 'function',
94
+ name: 'migrateFunds',
95
+ inputs: [
96
+ {
97
+ name: '_fromWallet',
98
+ type: 'address',
99
+ },
100
+ {
101
+ name: '_toWallet',
102
+ type: 'address',
103
+ },
104
+ ],
105
+ outputs: [
106
+ {
107
+ name: '',
108
+ type: 'uint256',
109
+ },
110
+ ],
111
+ },
112
+ {
113
+ stateMutability: 'view',
114
+ type: 'function',
115
+ name: 'canMigrateFundsToNewWallet',
116
+ inputs: [
117
+ {
118
+ name: '_fromWallet',
119
+ type: 'address',
120
+ },
121
+ {
122
+ name: '_toWallet',
123
+ type: 'address',
124
+ },
125
+ {
126
+ name: '_caller',
127
+ type: 'address',
128
+ },
129
+ ],
130
+ outputs: [
131
+ {
132
+ name: '',
133
+ type: 'bool',
134
+ },
135
+ ],
136
+ },
137
+ {
138
+ stateMutability: 'nonpayable',
139
+ type: 'function',
140
+ name: 'cloneConfig',
141
+ inputs: [
142
+ {
143
+ name: '_fromWallet',
144
+ type: 'address',
145
+ },
146
+ {
147
+ name: '_toWallet',
148
+ type: 'address',
149
+ },
150
+ ],
151
+ outputs: [
152
+ {
153
+ name: '',
154
+ type: 'bool',
155
+ },
156
+ ],
157
+ },
158
+ {
159
+ stateMutability: 'view',
160
+ type: 'function',
161
+ name: 'canCopyWalletConfig',
162
+ inputs: [
163
+ {
164
+ name: '_fromWallet',
165
+ type: 'address',
166
+ },
167
+ {
168
+ name: '_toWallet',
169
+ type: 'address',
170
+ },
171
+ {
172
+ name: '_caller',
173
+ type: 'address',
174
+ },
175
+ ],
176
+ outputs: [
177
+ {
178
+ name: '',
179
+ type: 'bool',
180
+ },
181
+ ],
182
+ },
183
+ {
184
+ stateMutability: 'view',
185
+ type: 'function',
186
+ name: 'getMigrationConfigBundle',
187
+ inputs: [
188
+ {
189
+ name: '_userWallet',
190
+ type: 'address',
191
+ },
192
+ ],
193
+ outputs: [
194
+ {
195
+ name: '',
196
+ type: 'tuple',
197
+ components: [
198
+ {
199
+ name: 'owner',
200
+ type: 'address',
201
+ },
202
+ {
203
+ name: 'isFrozen',
204
+ type: 'bool',
205
+ },
206
+ {
207
+ name: 'numPayees',
208
+ type: 'uint256',
209
+ },
210
+ {
211
+ name: 'numWhitelisted',
212
+ type: 'uint256',
213
+ },
214
+ {
215
+ name: 'numManagers',
216
+ type: 'uint256',
217
+ },
218
+ {
219
+ name: 'startingAgent',
220
+ type: 'address',
221
+ },
222
+ {
223
+ name: 'startingAgentIndex',
224
+ type: 'uint256',
225
+ },
226
+ {
227
+ name: 'hasPendingOwnerChange',
228
+ type: 'bool',
229
+ },
230
+ {
231
+ name: 'groupId',
232
+ type: 'uint256',
233
+ },
234
+ ],
235
+ },
236
+ ],
237
+ },
238
+ {
239
+ stateMutability: 'view',
240
+ type: 'function',
241
+ name: 'UNDY_HQ',
242
+ inputs: [],
243
+ outputs: [
244
+ {
245
+ name: '',
246
+ type: 'address',
247
+ },
248
+ ],
249
+ },
250
+ {
251
+ stateMutability: 'nonpayable',
252
+ type: 'constructor',
253
+ inputs: [
254
+ {
255
+ name: '_undyHq',
256
+ type: 'address',
257
+ },
258
+ ],
259
+ outputs: [],
260
+ },
261
+ ];
262
+ export const deployAddress = '0xD30961C917709FE4bC2690A2B69E185acef392bD';
263
+ function getRequest(method, args, contractAddressOrOptions) {
264
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
265
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
266
+ const call = {
267
+ contractName: 'Migrator',
268
+ method,
269
+ args,
270
+ address,
271
+ deployAddress,
272
+ defaultValue,
273
+ getAbi: () => abi,
274
+ with: (options) => {
275
+ call.address = options.contractAddress;
276
+ call.defaultValue = options.defaultValue;
277
+ return call;
278
+ },
279
+ defaultTo: (defaultValue) => {
280
+ call.defaultValue = defaultValue;
281
+ return call;
282
+ },
283
+ at: (address) => {
284
+ call.address = address;
285
+ return call;
286
+ },
287
+ };
288
+ return call;
289
+ }
290
+ export const call = {
291
+ canMigrateFundsToNewWallet: (...args) => getRequest('canMigrateFundsToNewWallet', args),
292
+ canCopyWalletConfig: (...args) => getRequest('canCopyWalletConfig', args),
293
+ getMigrationConfigBundle: (...args) => getRequest('getMigrationConfigBundle', args),
294
+ UNDY_HQ: (...args) => getRequest('UNDY_HQ', args),
295
+ };
296
+ function getMutation(functionName) {
297
+ return {
298
+ contractName: 'Migrator',
299
+ functionName,
300
+ deployAddress,
301
+ argsType: undefined,
302
+ getAbi: () => abi,
303
+ };
304
+ }
305
+ export const mutation = {
306
+ migrateAll: getMutation('migrateAll'),
307
+ migrateFunds: getMutation('migrateFunds'),
308
+ cloneConfig: getMutation('cloneConfig'),
309
+ };
310
+ export function toSdk(publicClient, walletClient) {
311
+ return {
312
+ deployAddress,
313
+ abi,
314
+ // Queries
315
+ canMigrateFundsToNewWallet: (...args) => singleQuery(publicClient, call.canMigrateFundsToNewWallet(...args)),
316
+ canCopyWalletConfig: (...args) => singleQuery(publicClient, call.canCopyWalletConfig(...args)),
317
+ getMigrationConfigBundle: (...args) => singleQuery(publicClient, call.getMigrationConfigBundle(...args)),
318
+ UNDY_HQ: (...args) => singleQuery(publicClient, call.UNDY_HQ(...args)),
319
+ // Mutations
320
+ migrateAll: (...args) => mutate(walletClient, mutation.migrateAll)(...args),
321
+ migrateFunds: (...args) => mutate(walletClient, mutation.migrateFunds)(...args),
322
+ cloneConfig: (...args) => mutate(walletClient, mutation.cloneConfig)(...args),
323
+ };
324
+ }