@funkit/core 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/README.md +110 -0
  2. package/dist/fetch-polyfill.d.ts +1 -0
  3. package/dist/fetch-polyfill.js +35 -0
  4. package/dist/fetch-polyfill.js.map +1 -0
  5. package/dist/index.d.ts +12 -0
  6. package/dist/index.js +29 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/src/abis/ApproveAndExec.json +1 -0
  9. package/dist/src/abis/ApproveAndSwap.json +1 -0
  10. package/dist/src/abis/ERC20.json +1 -0
  11. package/dist/src/abis/ERC721.json +1 -0
  12. package/dist/src/abis/EntryPoint.json +1 -0
  13. package/dist/src/abis/EstimationPaymaster.json +1 -0
  14. package/dist/src/abis/FeePercentOracle.json +1 -0
  15. package/dist/src/abis/FunWallet.json +1 -0
  16. package/dist/src/abis/FunWalletFactory.json +1 -0
  17. package/dist/src/abis/GaslessPaymaster.json +1 -0
  18. package/dist/src/abis/LidoWithdrawQueue.json +1 -0
  19. package/dist/src/abis/RoleBasedAccessControl.json +1 -0
  20. package/dist/src/abis/TestNFT.json +1 -0
  21. package/dist/src/abis/TokenPaymaster.json +1 -0
  22. package/dist/src/abis/TokenPriceOracle.json +1 -0
  23. package/dist/src/abis/UniswapV2Factory.json +1 -0
  24. package/dist/src/abis/UniswapV2Router02.json +1 -0
  25. package/dist/src/abis/UniswapV3LimitOrder.json +1 -0
  26. package/dist/src/abis/UserAuthentication.json +1 -0
  27. package/dist/src/abis/univ3factory.json +1 -0
  28. package/dist/src/abis/univ3quoter.json +1 -0
  29. package/dist/src/abis/univ3router.json +1 -0
  30. package/dist/src/actions/AccessControl.d.ts +9 -0
  31. package/dist/src/actions/AccessControl.js +88 -0
  32. package/dist/src/actions/AccessControl.js.map +1 -0
  33. package/dist/src/actions/BatchActions.d.ts +3 -0
  34. package/dist/src/actions/BatchActions.js +12 -0
  35. package/dist/src/actions/BatchActions.js.map +1 -0
  36. package/dist/src/actions/FirstClassActions.d.ts +161 -0
  37. package/dist/src/actions/FirstClassActions.js +347 -0
  38. package/dist/src/actions/FirstClassActions.js.map +1 -0
  39. package/dist/src/actions/Group.d.ts +6 -0
  40. package/dist/src/actions/Group.js +44 -0
  41. package/dist/src/actions/Group.js.map +1 -0
  42. package/dist/src/actions/LimitOrder.d.ts +4 -0
  43. package/dist/src/actions/LimitOrder.js +45 -0
  44. package/dist/src/actions/LimitOrder.js.map +1 -0
  45. package/dist/src/actions/Stake.d.ts +8 -0
  46. package/dist/src/actions/Stake.js +124 -0
  47. package/dist/src/actions/Stake.js.map +1 -0
  48. package/dist/src/actions/Swap.d.ts +9 -0
  49. package/dist/src/actions/Swap.js +169 -0
  50. package/dist/src/actions/Swap.js.map +1 -0
  51. package/dist/src/actions/Token.d.ts +12 -0
  52. package/dist/src/actions/Token.js +102 -0
  53. package/dist/src/actions/Token.js.map +1 -0
  54. package/dist/src/actions/index.d.ts +7 -0
  55. package/dist/src/actions/index.js +24 -0
  56. package/dist/src/actions/index.js.map +1 -0
  57. package/dist/src/actions/types.d.ts +117 -0
  58. package/dist/src/actions/types.js +11 -0
  59. package/dist/src/actions/types.js.map +1 -0
  60. package/dist/src/apis/AccessControlApis.d.ts +5 -0
  61. package/dist/src/apis/AccessControlApis.js +22 -0
  62. package/dist/src/apis/AccessControlApis.js.map +1 -0
  63. package/dist/src/apis/AssetApis.d.ts +79 -0
  64. package/dist/src/apis/AssetApis.js +100 -0
  65. package/dist/src/apis/AssetApis.js.map +1 -0
  66. package/dist/src/apis/ContractApis.d.ts +1 -0
  67. package/dist/src/apis/ContractApis.js +11 -0
  68. package/dist/src/apis/ContractApis.js.map +1 -0
  69. package/dist/src/apis/GroupApis.d.ts +8 -0
  70. package/dist/src/apis/GroupApis.js +45 -0
  71. package/dist/src/apis/GroupApis.js.map +1 -0
  72. package/dist/src/apis/InfoApis.d.ts +6 -0
  73. package/dist/src/apis/InfoApis.js +59 -0
  74. package/dist/src/apis/InfoApis.js.map +1 -0
  75. package/dist/src/apis/ListenerApis.d.ts +3 -0
  76. package/dist/src/apis/ListenerApis.js +36 -0
  77. package/dist/src/apis/ListenerApis.js.map +1 -0
  78. package/dist/src/apis/NFTApis.d.ts +22 -0
  79. package/dist/src/apis/NFTApis.js +34 -0
  80. package/dist/src/apis/NFTApis.js.map +1 -0
  81. package/dist/src/apis/OnOffRampApis.d.ts +2 -0
  82. package/dist/src/apis/OnOffRampApis.js +23 -0
  83. package/dist/src/apis/OnOffRampApis.js.map +1 -0
  84. package/dist/src/apis/OnOffRampUtils.d.ts +2 -0
  85. package/dist/src/apis/OnOffRampUtils.js +23 -0
  86. package/dist/src/apis/OnOffRampUtils.js.map +1 -0
  87. package/dist/src/apis/OperationApis.d.ts +14 -0
  88. package/dist/src/apis/OperationApis.js +77 -0
  89. package/dist/src/apis/OperationApis.js.map +1 -0
  90. package/dist/src/apis/PaymasterApis.d.ts +15 -0
  91. package/dist/src/apis/PaymasterApis.js +89 -0
  92. package/dist/src/apis/PaymasterApis.js.map +1 -0
  93. package/dist/src/apis/UserApis.d.ts +12 -0
  94. package/dist/src/apis/UserApis.js +77 -0
  95. package/dist/src/apis/UserApis.js.map +1 -0
  96. package/dist/src/apis/index.d.ts +10 -0
  97. package/dist/src/apis/index.js +27 -0
  98. package/dist/src/apis/index.js.map +1 -0
  99. package/dist/src/apis/types.d.ts +49 -0
  100. package/dist/src/apis/types.js +3 -0
  101. package/dist/src/apis/types.js.map +1 -0
  102. package/dist/src/auth/Auth.d.ts +81 -0
  103. package/dist/src/auth/Auth.js +317 -0
  104. package/dist/src/auth/Auth.js.map +1 -0
  105. package/dist/src/auth/SessionKeyAuth.d.ts +19 -0
  106. package/dist/src/auth/SessionKeyAuth.js +118 -0
  107. package/dist/src/auth/SessionKeyAuth.js.map +1 -0
  108. package/dist/src/auth/index.d.ts +2 -0
  109. package/dist/src/auth/index.js +19 -0
  110. package/dist/src/auth/index.js.map +1 -0
  111. package/dist/src/auth/types.d.ts +20 -0
  112. package/dist/src/auth/types.js +3 -0
  113. package/dist/src/auth/types.js.map +1 -0
  114. package/dist/src/common/constants.d.ts +1072 -0
  115. package/dist/src/common/constants.js +153 -0
  116. package/dist/src/common/constants.js.map +1 -0
  117. package/dist/src/common/index.d.ts +2 -0
  118. package/dist/src/common/index.js +19 -0
  119. package/dist/src/common/index.js.map +1 -0
  120. package/dist/src/common/types.d.ts +32 -0
  121. package/dist/src/common/types.js +3 -0
  122. package/dist/src/common/types.js.map +1 -0
  123. package/dist/src/config/Config.d.ts +3 -0
  124. package/dist/src/config/Config.js +46 -0
  125. package/dist/src/config/Config.js.map +1 -0
  126. package/dist/src/config/index.d.ts +2 -0
  127. package/dist/src/config/index.js +19 -0
  128. package/dist/src/config/index.js.map +1 -0
  129. package/dist/src/config/types.d.ts +21 -0
  130. package/dist/src/config/types.js +3 -0
  131. package/dist/src/config/types.js.map +1 -0
  132. package/dist/src/data/Chain.d.ts +29 -0
  133. package/dist/src/data/Chain.js +174 -0
  134. package/dist/src/data/Chain.js.map +1 -0
  135. package/dist/src/data/NFT.d.ts +24 -0
  136. package/dist/src/data/NFT.js +104 -0
  137. package/dist/src/data/NFT.js.map +1 -0
  138. package/dist/src/data/Operation.d.ts +33 -0
  139. package/dist/src/data/Operation.js +68 -0
  140. package/dist/src/data/Operation.js.map +1 -0
  141. package/dist/src/data/SolidityData.d.ts +8 -0
  142. package/dist/src/data/SolidityData.js +72 -0
  143. package/dist/src/data/SolidityData.js.map +1 -0
  144. package/dist/src/data/Token.d.ts +26 -0
  145. package/dist/src/data/Token.js +122 -0
  146. package/dist/src/data/Token.js.map +1 -0
  147. package/dist/src/data/index.d.ts +6 -0
  148. package/dist/src/data/index.js +23 -0
  149. package/dist/src/data/index.js.map +1 -0
  150. package/dist/src/data/types.d.ts +112 -0
  151. package/dist/src/data/types.js +25 -0
  152. package/dist/src/data/types.js.map +1 -0
  153. package/dist/src/errors/BaseError.d.ts +9 -0
  154. package/dist/src/errors/BaseError.js +23 -0
  155. package/dist/src/errors/BaseError.js.map +1 -0
  156. package/dist/src/errors/ClientError.d.ts +22 -0
  157. package/dist/src/errors/ClientError.js +75 -0
  158. package/dist/src/errors/ClientError.js.map +1 -0
  159. package/dist/src/errors/ServerError.d.ts +7 -0
  160. package/dist/src/errors/ServerError.js +18 -0
  161. package/dist/src/errors/ServerError.js.map +1 -0
  162. package/dist/src/errors/index.d.ts +4 -0
  163. package/dist/src/errors/index.js +21 -0
  164. package/dist/src/errors/index.js.map +1 -0
  165. package/dist/src/errors/types.d.ts +54 -0
  166. package/dist/src/errors/types.js +45 -0
  167. package/dist/src/errors/types.js.map +1 -0
  168. package/dist/src/sponsors/GaslessSponsor.d.ts +19 -0
  169. package/dist/src/sponsors/GaslessSponsor.js +91 -0
  170. package/dist/src/sponsors/GaslessSponsor.js.map +1 -0
  171. package/dist/src/sponsors/Sponsor.d.ts +31 -0
  172. package/dist/src/sponsors/Sponsor.js +94 -0
  173. package/dist/src/sponsors/Sponsor.js.map +1 -0
  174. package/dist/src/sponsors/TokenSponsor.d.ts +40 -0
  175. package/dist/src/sponsors/TokenSponsor.js +271 -0
  176. package/dist/src/sponsors/TokenSponsor.js.map +1 -0
  177. package/dist/src/sponsors/index.d.ts +3 -0
  178. package/dist/src/sponsors/index.js +20 -0
  179. package/dist/src/sponsors/index.js.map +1 -0
  180. package/dist/src/sponsors/types.d.ts +9 -0
  181. package/dist/src/sponsors/types.js +10 -0
  182. package/dist/src/sponsors/types.js.map +1 -0
  183. package/dist/src/utils/ApiUtils.d.ts +19 -0
  184. package/dist/src/utils/ApiUtils.js +97 -0
  185. package/dist/src/utils/ApiUtils.js.map +1 -0
  186. package/dist/src/utils/AuthUtils.d.ts +4 -0
  187. package/dist/src/utils/AuthUtils.js +54 -0
  188. package/dist/src/utils/AuthUtils.js.map +1 -0
  189. package/dist/src/utils/ChainUtils.d.ts +12 -0
  190. package/dist/src/utils/ChainUtils.js +89 -0
  191. package/dist/src/utils/ChainUtils.js.map +1 -0
  192. package/dist/src/utils/MerkleUtils.d.ts +18 -0
  193. package/dist/src/utils/MerkleUtils.js +96 -0
  194. package/dist/src/utils/MerkleUtils.js.map +1 -0
  195. package/dist/src/utils/PaymasterUtils.d.ts +3 -0
  196. package/dist/src/utils/PaymasterUtils.js +17 -0
  197. package/dist/src/utils/PaymasterUtils.js.map +1 -0
  198. package/dist/src/utils/SwapUtils.d.ts +35 -0
  199. package/dist/src/utils/SwapUtils.js +193 -0
  200. package/dist/src/utils/SwapUtils.js.map +1 -0
  201. package/dist/src/utils/TypeUtils.d.ts +1 -0
  202. package/dist/src/utils/TypeUtils.js +13 -0
  203. package/dist/src/utils/TypeUtils.js.map +1 -0
  204. package/dist/src/utils/UserOpUtils.d.ts +12 -0
  205. package/dist/src/utils/UserOpUtils.js +166 -0
  206. package/dist/src/utils/UserOpUtils.js.map +1 -0
  207. package/dist/src/utils/ViemUtils.d.ts +9 -0
  208. package/dist/src/utils/ViemUtils.js +30 -0
  209. package/dist/src/utils/ViemUtils.js.map +1 -0
  210. package/dist/src/utils/WalletUtils.d.ts +11 -0
  211. package/dist/src/utils/WalletUtils.js +61 -0
  212. package/dist/src/utils/WalletUtils.js.map +1 -0
  213. package/dist/src/utils/index.d.ts +7 -0
  214. package/dist/src/utils/index.js +24 -0
  215. package/dist/src/utils/index.js.map +1 -0
  216. package/dist/src/viem/ContractInterface.d.ts +19 -0
  217. package/dist/src/viem/ContractInterface.js +88 -0
  218. package/dist/src/viem/ContractInterface.js.map +1 -0
  219. package/dist/src/viem/Converter.d.ts +1770 -0
  220. package/dist/src/viem/Converter.js +50 -0
  221. package/dist/src/viem/Converter.js.map +1 -0
  222. package/dist/src/viem/index.d.ts +2 -0
  223. package/dist/src/viem/index.js +19 -0
  224. package/dist/src/viem/index.js.map +1 -0
  225. package/dist/src/wallet/FunWallet.d.ts +185 -0
  226. package/dist/src/wallet/FunWallet.js +720 -0
  227. package/dist/src/wallet/FunWallet.js.map +1 -0
  228. package/dist/src/wallet/index.d.ts +2 -0
  229. package/dist/src/wallet/index.js +19 -0
  230. package/dist/src/wallet/index.js.map +1 -0
  231. package/dist/src/wallet/types.d.ts +13 -0
  232. package/dist/src/wallet/types.js +3 -0
  233. package/dist/src/wallet/types.js.map +1 -0
  234. package/package.json +89 -0
@@ -0,0 +1,1072 @@
1
+ import { ContractInterface } from "../viem/ContractInterface";
2
+ export declare const LOCAL_API_URL = "http://127.0.0.1:3000";
3
+ declare let API_URL: string;
4
+ export { API_URL };
5
+ export declare const DASHBOARD_API_URL = "https://api.fun.xyz/dashboard";
6
+ export declare const BASE_WRAP_TOKEN_ADDR: {
7
+ "1": {
8
+ weth: string;
9
+ };
10
+ "5": {
11
+ weth: string;
12
+ };
13
+ "10": {
14
+ weth: string;
15
+ };
16
+ "137": {
17
+ wmatic: string;
18
+ };
19
+ "8453": {
20
+ weth: string;
21
+ };
22
+ "36865": {
23
+ weth: string;
24
+ };
25
+ "42161": {
26
+ weth: string;
27
+ };
28
+ "43113": {
29
+ weth: string;
30
+ };
31
+ };
32
+ export declare const FUN_GASLESS_SPONSOR_ADDRESS = "0xCB5D0b4569A39C217c243a436AC3feEe5dFeb9Ad";
33
+ export declare const FUN_TOKEN_SPONSOR_ADDRESS = "0x40C0cCa76088D45106c2D74D0B4B6405865f22De";
34
+ export declare const TOKEN_SPONSOR_SUPPORT_CHAINS: string[];
35
+ export declare const GASLESS_SPONSOR_SUPPORT_CHAINS: string[];
36
+ export declare const AddressZero: `0x${string}`;
37
+ export declare const HashZero: `0x${string}`;
38
+ export declare const APPROVE_AND_EXEC_ABI: ({
39
+ anonymous: boolean;
40
+ inputs: {
41
+ indexed: boolean;
42
+ internalType: string;
43
+ name: string;
44
+ type: string;
45
+ }[];
46
+ name: string;
47
+ type: string;
48
+ outputs?: undefined;
49
+ stateMutability?: undefined;
50
+ } | {
51
+ inputs: {
52
+ internalType: string;
53
+ name: string;
54
+ type: string;
55
+ }[];
56
+ name: string;
57
+ outputs: {
58
+ internalType: string;
59
+ name: string;
60
+ type: string;
61
+ }[];
62
+ stateMutability: string;
63
+ type: string;
64
+ anonymous?: undefined;
65
+ })[];
66
+ export declare const APPROVE_AND_SWAP_ABI: ({
67
+ inputs: {
68
+ internalType: string;
69
+ name: string;
70
+ type: string;
71
+ }[];
72
+ stateMutability: string;
73
+ type: string;
74
+ anonymous?: undefined;
75
+ name?: undefined;
76
+ outputs?: undefined;
77
+ } | {
78
+ anonymous: boolean;
79
+ inputs: {
80
+ indexed: boolean;
81
+ internalType: string;
82
+ name: string;
83
+ type: string;
84
+ }[];
85
+ name: string;
86
+ type: string;
87
+ stateMutability?: undefined;
88
+ outputs?: undefined;
89
+ } | {
90
+ inputs: {
91
+ internalType: string;
92
+ name: string;
93
+ type: string;
94
+ }[];
95
+ name: string;
96
+ outputs: {
97
+ internalType: string;
98
+ name: string;
99
+ type: string;
100
+ }[];
101
+ stateMutability: string;
102
+ type: string;
103
+ anonymous?: undefined;
104
+ })[];
105
+ export declare const ENTRYPOINT_ABI: ({
106
+ name: string;
107
+ type: string;
108
+ inputs: {
109
+ name: string;
110
+ type: string;
111
+ internalType: string;
112
+ }[];
113
+ anonymous?: undefined;
114
+ outputs?: undefined;
115
+ stateMutability?: undefined;
116
+ } | {
117
+ name: string;
118
+ type: string;
119
+ inputs: {
120
+ name: string;
121
+ components: ({
122
+ name: string;
123
+ type: string;
124
+ internalType: string;
125
+ components?: undefined;
126
+ } | {
127
+ name: string;
128
+ components: {
129
+ name: string;
130
+ type: string;
131
+ internalType: string;
132
+ }[];
133
+ internalType: string;
134
+ type: string;
135
+ })[];
136
+ internalType: string;
137
+ type: string;
138
+ }[];
139
+ anonymous?: undefined;
140
+ outputs?: undefined;
141
+ stateMutability?: undefined;
142
+ } | {
143
+ name: string;
144
+ anonymous: boolean;
145
+ type: string;
146
+ inputs: {
147
+ name: string;
148
+ internalType: string;
149
+ type: string;
150
+ indexed: boolean;
151
+ }[];
152
+ outputs?: undefined;
153
+ stateMutability?: undefined;
154
+ } | {
155
+ name: string;
156
+ outputs: {
157
+ name: string;
158
+ components: {
159
+ name: string;
160
+ type: string;
161
+ internalType: string;
162
+ }[];
163
+ internalType: string;
164
+ type: string;
165
+ }[];
166
+ stateMutability: string;
167
+ type: string;
168
+ inputs: {
169
+ name: string;
170
+ type: string;
171
+ internalType: string;
172
+ }[];
173
+ anonymous?: undefined;
174
+ } | {
175
+ name: string;
176
+ outputs: {
177
+ name: string;
178
+ type: string;
179
+ internalType: string;
180
+ }[];
181
+ stateMutability: string;
182
+ type: string;
183
+ inputs: ({
184
+ name: string;
185
+ type: string;
186
+ internalType: string;
187
+ components?: undefined;
188
+ } | {
189
+ name: string;
190
+ components: ({
191
+ name: string;
192
+ components: {
193
+ name: string;
194
+ type: string;
195
+ internalType: string;
196
+ }[];
197
+ internalType: string;
198
+ type: string;
199
+ } | {
200
+ name: string;
201
+ type: string;
202
+ internalType: string;
203
+ components?: undefined;
204
+ })[];
205
+ internalType: string;
206
+ type: string;
207
+ })[];
208
+ anonymous?: undefined;
209
+ } | {
210
+ type: string;
211
+ stateMutability: string;
212
+ name?: undefined;
213
+ inputs?: undefined;
214
+ anonymous?: undefined;
215
+ outputs?: undefined;
216
+ })[];
217
+ export declare const ERC20_ABI: ({
218
+ inputs: {
219
+ internalType: string;
220
+ name: string;
221
+ type: string;
222
+ }[];
223
+ stateMutability: string;
224
+ type: string;
225
+ anonymous?: undefined;
226
+ name?: undefined;
227
+ outputs?: undefined;
228
+ } | {
229
+ anonymous: boolean;
230
+ inputs: {
231
+ indexed: boolean;
232
+ internalType: string;
233
+ name: string;
234
+ type: string;
235
+ }[];
236
+ name: string;
237
+ type: string;
238
+ stateMutability?: undefined;
239
+ outputs?: undefined;
240
+ } | {
241
+ inputs: {
242
+ internalType: string;
243
+ name: string;
244
+ type: string;
245
+ }[];
246
+ name: string;
247
+ outputs: {
248
+ internalType: string;
249
+ name: string;
250
+ type: string;
251
+ }[];
252
+ stateMutability: string;
253
+ type: string;
254
+ anonymous?: undefined;
255
+ })[];
256
+ export declare const WALLET_ABI: ({
257
+ inputs: never[];
258
+ stateMutability: string;
259
+ type: string;
260
+ anonymous?: undefined;
261
+ name?: undefined;
262
+ outputs?: undefined;
263
+ } | {
264
+ anonymous: boolean;
265
+ inputs: ({
266
+ indexed: boolean;
267
+ internalType: string;
268
+ name: string;
269
+ type: string;
270
+ components?: undefined;
271
+ } | {
272
+ components: {
273
+ internalType: string;
274
+ name: string;
275
+ type: string;
276
+ }[];
277
+ indexed: boolean;
278
+ internalType: string;
279
+ name: string;
280
+ type: string;
281
+ })[];
282
+ name: string;
283
+ type: string;
284
+ stateMutability?: undefined;
285
+ outputs?: undefined;
286
+ } | {
287
+ inputs: ({
288
+ components: {
289
+ internalType: string;
290
+ name: string;
291
+ type: string;
292
+ }[];
293
+ internalType: string;
294
+ name: string;
295
+ type: string;
296
+ } | {
297
+ internalType: string;
298
+ name: string;
299
+ type: string;
300
+ components?: undefined;
301
+ })[];
302
+ name: string;
303
+ outputs: {
304
+ internalType: string;
305
+ name: string;
306
+ type: string;
307
+ }[];
308
+ stateMutability: string;
309
+ type: string;
310
+ anonymous?: undefined;
311
+ } | {
312
+ stateMutability: string;
313
+ type: string;
314
+ inputs?: undefined;
315
+ anonymous?: undefined;
316
+ name?: undefined;
317
+ outputs?: undefined;
318
+ })[];
319
+ export declare const FACTORY_ABI: ({
320
+ inputs: {
321
+ internalType: string;
322
+ name: string;
323
+ type: string;
324
+ }[];
325
+ stateMutability: string;
326
+ type: string;
327
+ anonymous?: undefined;
328
+ name?: undefined;
329
+ outputs?: undefined;
330
+ } | {
331
+ anonymous: boolean;
332
+ inputs: {
333
+ indexed: boolean;
334
+ internalType: string;
335
+ name: string;
336
+ type: string;
337
+ }[];
338
+ name: string;
339
+ type: string;
340
+ stateMutability?: undefined;
341
+ outputs?: undefined;
342
+ } | {
343
+ inputs: {
344
+ internalType: string;
345
+ name: string;
346
+ type: string;
347
+ }[];
348
+ name: string;
349
+ outputs: {
350
+ internalType: string;
351
+ name: string;
352
+ type: string;
353
+ }[];
354
+ stateMutability: string;
355
+ type: string;
356
+ anonymous?: undefined;
357
+ })[];
358
+ export declare const GASLESS_PAYMASTER_ABI: ({
359
+ inputs: {
360
+ internalType: string;
361
+ name: string;
362
+ type: string;
363
+ }[];
364
+ stateMutability: string;
365
+ type: string;
366
+ anonymous?: undefined;
367
+ name?: undefined;
368
+ outputs?: undefined;
369
+ } | {
370
+ anonymous: boolean;
371
+ inputs: {
372
+ indexed: boolean;
373
+ internalType: string;
374
+ name: string;
375
+ type: string;
376
+ }[];
377
+ name: string;
378
+ type: string;
379
+ stateMutability?: undefined;
380
+ outputs?: undefined;
381
+ } | {
382
+ inputs: ({
383
+ components: {
384
+ internalType: string;
385
+ name: string;
386
+ type: string;
387
+ }[];
388
+ internalType: string;
389
+ name: string;
390
+ type: string;
391
+ } | {
392
+ internalType: string;
393
+ name: string;
394
+ type: string;
395
+ components?: undefined;
396
+ })[];
397
+ name: string;
398
+ outputs: {
399
+ internalType: string;
400
+ name: string;
401
+ type: string;
402
+ }[];
403
+ stateMutability: string;
404
+ type: string;
405
+ anonymous?: undefined;
406
+ })[];
407
+ export declare const TOKEN_PAYMASTER_ABI: ({
408
+ inputs: {
409
+ internalType: string;
410
+ name: string;
411
+ type: string;
412
+ }[];
413
+ stateMutability: string;
414
+ type: string;
415
+ anonymous?: undefined;
416
+ name?: undefined;
417
+ outputs?: undefined;
418
+ } | {
419
+ anonymous: boolean;
420
+ inputs: {
421
+ indexed: boolean;
422
+ internalType: string;
423
+ name: string;
424
+ type: string;
425
+ }[];
426
+ name: string;
427
+ type: string;
428
+ stateMutability?: undefined;
429
+ outputs?: undefined;
430
+ } | {
431
+ anonymous: boolean;
432
+ inputs: {
433
+ components: {
434
+ internalType: string;
435
+ name: string;
436
+ type: string;
437
+ }[];
438
+ indexed: boolean;
439
+ internalType: string;
440
+ name: string;
441
+ type: string;
442
+ }[];
443
+ name: string;
444
+ type: string;
445
+ stateMutability?: undefined;
446
+ outputs?: undefined;
447
+ } | {
448
+ inputs: {
449
+ internalType: string;
450
+ name: string;
451
+ type: string;
452
+ }[];
453
+ name: string;
454
+ outputs: {
455
+ components: {
456
+ internalType: string;
457
+ name: string;
458
+ type: string;
459
+ }[];
460
+ internalType: string;
461
+ name: string;
462
+ type: string;
463
+ }[];
464
+ stateMutability: string;
465
+ type: string;
466
+ anonymous?: undefined;
467
+ } | {
468
+ inputs: ({
469
+ components: {
470
+ internalType: string;
471
+ name: string;
472
+ type: string;
473
+ }[];
474
+ internalType: string;
475
+ name: string;
476
+ type: string;
477
+ } | {
478
+ internalType: string;
479
+ name: string;
480
+ type: string;
481
+ components?: undefined;
482
+ })[];
483
+ name: string;
484
+ outputs: {
485
+ internalType: string;
486
+ name: string;
487
+ type: string;
488
+ }[];
489
+ stateMutability: string;
490
+ type: string;
491
+ anonymous?: undefined;
492
+ })[];
493
+ export declare const WITHDRAW_QUEUE_ABI: ({
494
+ inputs: {
495
+ internalType: string;
496
+ name: string;
497
+ type: string;
498
+ }[];
499
+ stateMutability: string;
500
+ type: string;
501
+ name?: undefined;
502
+ anonymous?: undefined;
503
+ outputs?: undefined;
504
+ } | {
505
+ inputs: {
506
+ internalType: string;
507
+ name: string;
508
+ type: string;
509
+ }[];
510
+ name: string;
511
+ type: string;
512
+ stateMutability?: undefined;
513
+ anonymous?: undefined;
514
+ outputs?: undefined;
515
+ } | {
516
+ anonymous: boolean;
517
+ inputs: {
518
+ indexed: boolean;
519
+ internalType: string;
520
+ name: string;
521
+ type: string;
522
+ }[];
523
+ name: string;
524
+ type: string;
525
+ stateMutability?: undefined;
526
+ outputs?: undefined;
527
+ } | {
528
+ inputs: ({
529
+ internalType: string;
530
+ name: string;
531
+ type: string;
532
+ components?: undefined;
533
+ } | {
534
+ components: {
535
+ internalType: string;
536
+ name: string;
537
+ type: string;
538
+ }[];
539
+ internalType: string;
540
+ name: string;
541
+ type: string;
542
+ })[];
543
+ name: string;
544
+ outputs: {
545
+ components: {
546
+ internalType: string;
547
+ name: string;
548
+ type: string;
549
+ }[];
550
+ internalType: string;
551
+ name: string;
552
+ type: string;
553
+ }[];
554
+ stateMutability: string;
555
+ type: string;
556
+ anonymous?: undefined;
557
+ } | {
558
+ inputs: ({
559
+ internalType: string;
560
+ name: string;
561
+ type: string;
562
+ components?: undefined;
563
+ } | {
564
+ components: {
565
+ internalType: string;
566
+ name: string;
567
+ type: string;
568
+ }[];
569
+ internalType: string;
570
+ name: string;
571
+ type: string;
572
+ })[];
573
+ name: string;
574
+ outputs: {
575
+ internalType: string;
576
+ name: string;
577
+ type: string;
578
+ }[];
579
+ stateMutability: string;
580
+ type: string;
581
+ anonymous?: undefined;
582
+ })[];
583
+ export declare const ERC_721_ABI: ({
584
+ inputs: never[];
585
+ stateMutability: string;
586
+ type: string;
587
+ anonymous?: undefined;
588
+ name?: undefined;
589
+ outputs?: undefined;
590
+ } | {
591
+ anonymous: boolean;
592
+ inputs: {
593
+ indexed: boolean;
594
+ internalType: string;
595
+ name: string;
596
+ type: string;
597
+ }[];
598
+ name: string;
599
+ type: string;
600
+ stateMutability?: undefined;
601
+ outputs?: undefined;
602
+ } | {
603
+ inputs: {
604
+ internalType: string;
605
+ name: string;
606
+ type: string;
607
+ }[];
608
+ name: string;
609
+ outputs: {
610
+ internalType: string;
611
+ name: string;
612
+ type: string;
613
+ }[];
614
+ stateMutability: string;
615
+ type: string;
616
+ anonymous?: undefined;
617
+ })[];
618
+ export declare const UNISWAP_V3_LIMIT_ORDER_ABI: ({
619
+ inputs: {
620
+ internalType: string;
621
+ name: string;
622
+ type: string;
623
+ }[];
624
+ stateMutability: string;
625
+ type: string;
626
+ name?: undefined;
627
+ outputs?: undefined;
628
+ } | {
629
+ inputs: {
630
+ internalType: string;
631
+ name: string;
632
+ type: string;
633
+ }[];
634
+ name: string;
635
+ outputs: {
636
+ internalType: string;
637
+ name: string;
638
+ type: string;
639
+ }[];
640
+ stateMutability: string;
641
+ type: string;
642
+ })[];
643
+ export declare const UNISWAPV2FACTORY_ABI: ({
644
+ inputs: {
645
+ internalType: string;
646
+ name: string;
647
+ type: string;
648
+ }[];
649
+ payable: boolean;
650
+ stateMutability: string;
651
+ type: string;
652
+ anonymous?: undefined;
653
+ name?: undefined;
654
+ constant?: undefined;
655
+ outputs?: undefined;
656
+ } | {
657
+ anonymous: boolean;
658
+ inputs: {
659
+ indexed: boolean;
660
+ internalType: string;
661
+ name: string;
662
+ type: string;
663
+ }[];
664
+ name: string;
665
+ type: string;
666
+ payable?: undefined;
667
+ stateMutability?: undefined;
668
+ constant?: undefined;
669
+ outputs?: undefined;
670
+ } | {
671
+ constant: boolean;
672
+ inputs: {
673
+ internalType: string;
674
+ name: string;
675
+ type: string;
676
+ }[];
677
+ name: string;
678
+ outputs: {
679
+ internalType: string;
680
+ name: string;
681
+ type: string;
682
+ }[];
683
+ payable: boolean;
684
+ stateMutability: string;
685
+ type: string;
686
+ anonymous?: undefined;
687
+ })[];
688
+ export declare const UNISWAPV2ROUTER02_ABI: ({
689
+ inputs: {
690
+ internalType: string;
691
+ name: string;
692
+ type: string;
693
+ }[];
694
+ stateMutability: string;
695
+ type: string;
696
+ name?: undefined;
697
+ outputs?: undefined;
698
+ } | {
699
+ inputs: {
700
+ internalType: string;
701
+ name: string;
702
+ type: string;
703
+ }[];
704
+ name: string;
705
+ outputs: {
706
+ internalType: string;
707
+ name: string;
708
+ type: string;
709
+ }[];
710
+ stateMutability: string;
711
+ type: string;
712
+ } | {
713
+ stateMutability: string;
714
+ type: string;
715
+ inputs?: undefined;
716
+ name?: undefined;
717
+ outputs?: undefined;
718
+ })[];
719
+ export declare const ROLE_BASED_ACCESS_CONTROL_ABI: ({
720
+ anonymous: boolean;
721
+ inputs: ({
722
+ indexed: boolean;
723
+ internalType: string;
724
+ name: string;
725
+ type: string;
726
+ components?: undefined;
727
+ } | {
728
+ components: {
729
+ internalType: string;
730
+ name: string;
731
+ type: string;
732
+ }[];
733
+ indexed: boolean;
734
+ internalType: string;
735
+ name: string;
736
+ type: string;
737
+ })[];
738
+ name: string;
739
+ type: string;
740
+ outputs?: undefined;
741
+ stateMutability?: undefined;
742
+ } | {
743
+ inputs: ({
744
+ components: {
745
+ internalType: string;
746
+ name: string;
747
+ type: string;
748
+ }[];
749
+ internalType: string;
750
+ name: string;
751
+ type: string;
752
+ } | {
753
+ internalType: string;
754
+ name: string;
755
+ type: string;
756
+ components?: undefined;
757
+ })[];
758
+ name: string;
759
+ outputs: {
760
+ internalType: string;
761
+ name: string;
762
+ type: string;
763
+ }[];
764
+ stateMutability: string;
765
+ type: string;
766
+ anonymous?: undefined;
767
+ } | {
768
+ inputs: {
769
+ internalType: string;
770
+ name: string;
771
+ type: string;
772
+ }[];
773
+ name: string;
774
+ outputs: {
775
+ components: {
776
+ internalType: string;
777
+ name: string;
778
+ type: string;
779
+ }[];
780
+ internalType: string;
781
+ name: string;
782
+ type: string;
783
+ }[];
784
+ stateMutability: string;
785
+ type: string;
786
+ anonymous?: undefined;
787
+ })[];
788
+ export declare const USER_AUTHENTICATION_ABI: ({
789
+ anonymous: boolean;
790
+ inputs: ({
791
+ indexed: boolean;
792
+ internalType: string;
793
+ name: string;
794
+ type: string;
795
+ components?: undefined;
796
+ } | {
797
+ components: {
798
+ internalType: string;
799
+ name: string;
800
+ type: string;
801
+ }[];
802
+ indexed: boolean;
803
+ internalType: string;
804
+ name: string;
805
+ type: string;
806
+ })[];
807
+ name: string;
808
+ type: string;
809
+ outputs?: undefined;
810
+ stateMutability?: undefined;
811
+ } | {
812
+ inputs: ({
813
+ components: {
814
+ internalType: string;
815
+ name: string;
816
+ type: string;
817
+ }[];
818
+ internalType: string;
819
+ name: string;
820
+ type: string;
821
+ } | {
822
+ internalType: string;
823
+ name: string;
824
+ type: string;
825
+ components?: undefined;
826
+ })[];
827
+ name: string;
828
+ outputs: {
829
+ internalType: string;
830
+ name: string;
831
+ type: string;
832
+ }[];
833
+ stateMutability: string;
834
+ type: string;
835
+ anonymous?: undefined;
836
+ })[];
837
+ export declare const ESTIMATION_PAYMASTER_ABI: ({
838
+ inputs: {
839
+ internalType: string;
840
+ name: string;
841
+ type: string;
842
+ }[];
843
+ stateMutability: string;
844
+ type: string;
845
+ anonymous?: undefined;
846
+ name?: undefined;
847
+ outputs?: undefined;
848
+ } | {
849
+ anonymous: boolean;
850
+ inputs: {
851
+ indexed: boolean;
852
+ internalType: string;
853
+ name: string;
854
+ type: string;
855
+ }[];
856
+ name: string;
857
+ type: string;
858
+ stateMutability?: undefined;
859
+ outputs?: undefined;
860
+ } | {
861
+ inputs: ({
862
+ components: {
863
+ internalType: string;
864
+ name: string;
865
+ type: string;
866
+ }[];
867
+ internalType: string;
868
+ name: string;
869
+ type: string;
870
+ } | {
871
+ internalType: string;
872
+ name: string;
873
+ type: string;
874
+ components?: undefined;
875
+ })[];
876
+ name: string;
877
+ outputs: {
878
+ internalType: string;
879
+ name: string;
880
+ type: string;
881
+ }[];
882
+ stateMutability: string;
883
+ type: string;
884
+ anonymous?: undefined;
885
+ })[];
886
+ export declare const ENTRYPOINT_CONTRACT_INTERFACE: ContractInterface;
887
+ export declare const ERC721_CONTRACT_INTERFACE: ContractInterface;
888
+ export declare const ERC20_CONTRACT_INTERFACE: ContractInterface;
889
+ export declare const FACTORY_CONTRACT_INTERFACE: ContractInterface;
890
+ export declare const GASLESS_PAYMASTER_CONTRACT_INTERFACE: ContractInterface;
891
+ export declare const TOKEN_PAYMASTER_CONTRACT_INTERFACE: ContractInterface;
892
+ export declare const WALLET_CONTRACT_INTERFACE: ContractInterface;
893
+ export declare const POOL_CONTRACT_INTERFACE: ContractInterface;
894
+ export declare const APPROVE_AND_EXEC_CONTRACT_INTERFACE: ContractInterface;
895
+ export declare const UNISWAPV2FACTORY_INTERFACE: ContractInterface;
896
+ export declare const UNISWAPV2ROUTER02_INTERFACE: ContractInterface;
897
+ export declare const RBAC_CONTRACT_INTERFACE: ContractInterface;
898
+ export declare const USER_AUTHENTICATION_CONTRACT_INTERFACE: ContractInterface;
899
+ export declare const UNISWAP_V3_LIMIT_ORDER_CONTRACT_INTERFACE: ContractInterface;
900
+ export declare const CONTRACT_ADDRESSES: {
901
+ approveAndExecAddress: {
902
+ "1": string;
903
+ "5": string;
904
+ "10": string;
905
+ "137": string;
906
+ "8453": string;
907
+ "36865": string;
908
+ "42161": string;
909
+ };
910
+ tokenSwapAddress: {
911
+ "1": string;
912
+ "5": string;
913
+ "10": string;
914
+ "137": string;
915
+ "8453": string;
916
+ "36865": string;
917
+ "42161": string;
918
+ };
919
+ entryPointAddress: {
920
+ "1": string;
921
+ "5": string;
922
+ "10": string;
923
+ "137": string;
924
+ "8453": string;
925
+ "36865": string;
926
+ "42161": string;
927
+ };
928
+ factoryAddress: {
929
+ "1": string;
930
+ "5": string;
931
+ "10": string;
932
+ "137": string;
933
+ "8453": string;
934
+ "36865": string;
935
+ "42161": string;
936
+ };
937
+ gaslessPaymasterAddress: {
938
+ "1": string;
939
+ "5": string;
940
+ "10": string;
941
+ "137": string;
942
+ "8453": string;
943
+ "36865": string;
944
+ "42161": string;
945
+ };
946
+ estimationPaymasterAddress: {
947
+ "1": string;
948
+ "5": string;
949
+ "10": string;
950
+ "137": string;
951
+ "8453": string;
952
+ "42161": string;
953
+ };
954
+ tokenPaymasterAddress: {
955
+ "1": string;
956
+ "5": string;
957
+ "10": string;
958
+ "137": string;
959
+ "8453": string;
960
+ "36865": string;
961
+ "42161": string;
962
+ };
963
+ oracle: {
964
+ "1": string;
965
+ "5": string;
966
+ "10": string;
967
+ "137": string;
968
+ "8453": string;
969
+ "36865": string;
970
+ "42161": string;
971
+ };
972
+ userAuthAddress: {
973
+ "1": string;
974
+ "5": string;
975
+ "10": string;
976
+ "137": string;
977
+ "8453": string;
978
+ "36865": string;
979
+ "42161": string;
980
+ };
981
+ rbacAddress: {
982
+ "1": string;
983
+ "5": string;
984
+ "10": string;
985
+ "137": string;
986
+ "8453": string;
987
+ "36865": string;
988
+ "42161": string;
989
+ };
990
+ feeOracle: {
991
+ "1": string;
992
+ "5": string;
993
+ "10": string;
994
+ "137": string;
995
+ "8453": string;
996
+ "36865": string;
997
+ "42161": string;
998
+ };
999
+ uniswapv3LimitOrder: {
1000
+ "1": string;
1001
+ "5": string;
1002
+ "10": string;
1003
+ "137": string;
1004
+ "8453": string;
1005
+ "36865": string;
1006
+ "42161": string;
1007
+ };
1008
+ univ3factory: {
1009
+ "5": string;
1010
+ "10": string;
1011
+ "137": string;
1012
+ "8453": string;
1013
+ "36865": string;
1014
+ "42161": string;
1015
+ };
1016
+ univ3quoter: {
1017
+ "5": string;
1018
+ "10": string;
1019
+ "137": string;
1020
+ "8453": string;
1021
+ "36865": string;
1022
+ "42161": string;
1023
+ };
1024
+ univ3router: {
1025
+ "5": string;
1026
+ "10": string;
1027
+ "137": string;
1028
+ "8453": string;
1029
+ "36865": string;
1030
+ "42161": string;
1031
+ };
1032
+ UniswapV2Factory: {
1033
+ "5": string;
1034
+ "31337": string;
1035
+ "36865": string;
1036
+ "84531": string;
1037
+ };
1038
+ UniswapV2Router02: {
1039
+ "5": string;
1040
+ "36865": string;
1041
+ };
1042
+ TestNFT: {
1043
+ "1": string;
1044
+ "5": string;
1045
+ "10": string;
1046
+ "137": string;
1047
+ "8453": string;
1048
+ "36865": string;
1049
+ "42161": string;
1050
+ };
1051
+ funGaslessSponsorAddress: {
1052
+ "5": string;
1053
+ };
1054
+ funTokenSponsorAddress: {
1055
+ "1": string;
1056
+ "5": string;
1057
+ "10": string;
1058
+ "137": string;
1059
+ "8453": string;
1060
+ "42161": string;
1061
+ };
1062
+ };
1063
+ export declare const gasSpecificChain: {
1064
+ "137": {
1065
+ gasStationUrl: string;
1066
+ backupPriorityFee: string;
1067
+ backupFee: string;
1068
+ };
1069
+ };
1070
+ export declare const ETH_TRANSFER_SELECTOR = "0x00000000";
1071
+ export declare const VALID_PRIVATE_KEY_LENGTH = 64;
1072
+ export declare const BYTES32_LENGTH = 66;