@dzapio/sdk 2.0.7 → 2.0.8

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 (221) hide show
  1. package/dist/api/index.d.ts +2 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.m.js +1 -1
  4. package/dist/index.umd.js +1 -1
  5. package/dist/types/zap/broadcast.d.ts +15 -0
  6. package/package.json +1 -1
  7. package/dist/examples/chain-utils.d.ts +0 -1
  8. package/dist/examples/chain-utils.js +0 -20
  9. package/dist/examples/permit-utils.d.ts +0 -1
  10. package/dist/examples/permit-utils.js +0 -90
  11. package/dist/examples/token-utils.d.ts +0 -1
  12. package/dist/examples/token-utils.js +0 -41
  13. package/dist/examples/trade-operations.d.ts +0 -1
  14. package/dist/examples/trade-operations.js +0 -89
  15. package/dist/examples/zap-operations.d.ts +0 -1
  16. package/dist/examples/zap-operations.js +0 -69
  17. package/dist/src/api/index.d.ts +0 -27
  18. package/dist/src/api/index.js +0 -146
  19. package/dist/src/artifacts/ERC20Permit.d.ts +0 -374
  20. package/dist/src/artifacts/ERC20Permit.js +0 -469
  21. package/dist/src/artifacts/Permit2.d.ts +0 -700
  22. package/dist/src/artifacts/Permit2.js +0 -904
  23. package/dist/src/artifacts/Permit2Proxy.d.ts +0 -416
  24. package/dist/src/artifacts/Permit2Proxy.js +0 -206
  25. package/dist/src/artifacts/default/DZapCoreAbi.d.ts +0 -2
  26. package/dist/src/artifacts/default/DZapCoreAbi.js +0 -3079
  27. package/dist/src/artifacts/default/DZapCoreV2Abi.d.ts +0 -2
  28. package/dist/src/artifacts/default/DZapCoreV2Abi.js +0 -3719
  29. package/dist/src/artifacts/default/DZapDcaAbi.d.ts +0 -2
  30. package/dist/src/artifacts/default/DZapDcaAbi.js +0 -1829
  31. package/dist/src/artifacts/default/Permit2Abi.d.ts +0 -700
  32. package/dist/src/artifacts/default/Permit2Abi.js +0 -904
  33. package/dist/src/artifacts/default/erc20Abi.d.ts +0 -165
  34. package/dist/src/artifacts/default/erc20Abi.js +0 -220
  35. package/dist/src/artifacts/default/index.d.ts +0 -6
  36. package/dist/src/artifacts/default/index.js +0 -13
  37. package/dist/src/artifacts/index.d.ts +0 -2
  38. package/dist/src/artifacts/index.js +0 -9
  39. package/dist/src/artifacts/staging/DZapCoreSwapAbi.d.ts +0 -2
  40. package/dist/src/artifacts/staging/DZapCoreSwapAbi.js +0 -3079
  41. package/dist/src/artifacts/staging/index.d.ts +0 -2
  42. package/dist/src/artifacts/staging/index.js +0 -5
  43. package/dist/src/axios/baseClient.d.ts +0 -2
  44. package/dist/src/axios/baseClient.js +0 -7
  45. package/dist/src/axios/index.d.ts +0 -8
  46. package/dist/src/axios/index.js +0 -34
  47. package/dist/src/chains/definitions/arthera.d.ts +0 -35
  48. package/dist/src/chains/definitions/arthera.js +0 -28
  49. package/dist/src/chains/definitions/fiveIre.d.ts +0 -35
  50. package/dist/src/chains/definitions/fiveIre.js +0 -28
  51. package/dist/src/chains/definitions/hyperEvm.d.ts +0 -35
  52. package/dist/src/chains/definitions/hyperEvm.js +0 -26
  53. package/dist/src/chains/definitions/hyperliquid.d.ts +0 -35
  54. package/dist/src/chains/definitions/hyperliquid.js +0 -26
  55. package/dist/src/chains/definitions/stable.d.ts +0 -36
  56. package/dist/src/chains/definitions/stable.js +0 -31
  57. package/dist/src/chains/index.d.ts +0 -179
  58. package/dist/src/chains/index.js +0 -24
  59. package/dist/src/config/index.d.ts +0 -36
  60. package/dist/src/config/index.js +0 -59
  61. package/dist/src/constants/address.d.ts +0 -13
  62. package/dist/src/constants/address.js +0 -29
  63. package/dist/src/constants/approval.d.ts +0 -7
  64. package/dist/src/constants/approval.js +0 -17
  65. package/dist/src/constants/axios.d.ts +0 -2
  66. package/dist/src/constants/axios.js +0 -5
  67. package/dist/src/constants/chains.d.ts +0 -31
  68. package/dist/src/constants/chains.js +0 -34
  69. package/dist/src/constants/contract.d.ts +0 -6
  70. package/dist/src/constants/contract.js +0 -18
  71. package/dist/src/constants/erc20.d.ts +0 -25
  72. package/dist/src/constants/erc20.js +0 -28
  73. package/dist/src/constants/httpMethods.d.ts +0 -2
  74. package/dist/src/constants/httpMethods.js +0 -5
  75. package/dist/src/constants/index.d.ts +0 -48
  76. package/dist/src/constants/index.js +0 -53
  77. package/dist/src/constants/permit.d.ts +0 -29
  78. package/dist/src/constants/permit.js +0 -33
  79. package/dist/src/constants/permit2.d.ts +0 -2
  80. package/dist/src/constants/permit2.js +0 -5
  81. package/dist/src/constants/rpc.d.ts +0 -2
  82. package/dist/src/constants/rpc.js +0 -5
  83. package/dist/src/constants/urlConstants.d.ts +0 -15
  84. package/dist/src/constants/urlConstants.js +0 -18
  85. package/dist/src/dZapClient/index.d.ts +0 -1015
  86. package/dist/src/dZapClient/index.js +0 -255
  87. package/dist/src/enums/index.d.ts +0 -46
  88. package/dist/src/enums/index.js +0 -57
  89. package/dist/src/index.d.ts +0 -17
  90. package/dist/src/index.js +0 -48
  91. package/dist/src/service/cache/cacheProvider.d.ts +0 -10
  92. package/dist/src/service/cache/cacheProvider.js +0 -72
  93. package/dist/src/service/cache/constant.d.ts +0 -2
  94. package/dist/src/service/cache/constant.js +0 -6
  95. package/dist/src/service/price/index.d.ts +0 -16
  96. package/dist/src/service/price/index.js +0 -80
  97. package/dist/src/service/price/provider/coingecko/config.d.ts +0 -6
  98. package/dist/src/service/price/provider/coingecko/config.js +0 -9
  99. package/dist/src/service/price/provider/coingecko/index.d.ts +0 -9
  100. package/dist/src/service/price/provider/coingecko/index.js +0 -66
  101. package/dist/src/service/price/provider/defiLlama/config.d.ts +0 -3
  102. package/dist/src/service/price/provider/defiLlama/config.js +0 -6
  103. package/dist/src/service/price/provider/defiLlama/index.d.ts +0 -9
  104. package/dist/src/service/price/provider/defiLlama/index.js +0 -60
  105. package/dist/src/service/price/provider/defiLlama/types.d.ts +0 -11
  106. package/dist/src/service/price/provider/defiLlama/types.js +0 -2
  107. package/dist/src/service/price/provider/dzap/index.d.ts +0 -6
  108. package/dist/src/service/price/provider/dzap/index.js +0 -22
  109. package/dist/src/service/price/types/IPriceProvider.d.ts +0 -14
  110. package/dist/src/service/price/types/IPriceProvider.js +0 -8
  111. package/dist/src/transactionHandlers/generic.d.ts +0 -24
  112. package/dist/src/transactionHandlers/generic.js +0 -48
  113. package/dist/src/transactionHandlers/permit.d.ts +0 -61
  114. package/dist/src/transactionHandlers/permit.js +0 -177
  115. package/dist/src/transactionHandlers/trade.d.ts +0 -24
  116. package/dist/src/transactionHandlers/trade.js +0 -263
  117. package/dist/src/transactionHandlers/zap.d.ts +0 -37
  118. package/dist/src/transactionHandlers/zap.js +0 -135
  119. package/dist/src/types/axiosClient.d.ts +0 -6
  120. package/dist/src/types/axiosClient.js +0 -2
  121. package/dist/src/types/btc.d.ts +0 -45
  122. package/dist/src/types/btc.js +0 -2
  123. package/dist/src/types/chains.d.ts +0 -3
  124. package/dist/src/types/chains.js +0 -2
  125. package/dist/src/types/contract.d.ts +0 -14
  126. package/dist/src/types/contract.js +0 -2
  127. package/dist/src/types/eip-2612.d.ts +0 -24
  128. package/dist/src/types/eip-2612.js +0 -58
  129. package/dist/src/types/index.d.ts +0 -489
  130. package/dist/src/types/index.js +0 -8
  131. package/dist/src/types/permit.d.ts +0 -191
  132. package/dist/src/types/permit.js +0 -54
  133. package/dist/src/types/wallet.d.ts +0 -2
  134. package/dist/src/types/wallet.js +0 -2
  135. package/dist/src/types/zap/build.d.ts +0 -44
  136. package/dist/src/types/zap/build.js +0 -2
  137. package/dist/src/types/zap/index.d.ts +0 -34
  138. package/dist/src/types/zap/index.js +0 -23
  139. package/dist/src/types/zap/path.d.ts +0 -33
  140. package/dist/src/types/zap/path.js +0 -2
  141. package/dist/src/types/zap/pool.d.ts +0 -39
  142. package/dist/src/types/zap/pool.js +0 -2
  143. package/dist/src/types/zap/position.d.ts +0 -27
  144. package/dist/src/types/zap/position.js +0 -2
  145. package/dist/src/types/zap/quote.d.ts +0 -7
  146. package/dist/src/types/zap/quote.js +0 -2
  147. package/dist/src/types/zap/status.d.ts +0 -28
  148. package/dist/src/types/zap/status.js +0 -2
  149. package/dist/src/types/zap/step.d.ts +0 -23
  150. package/dist/src/types/zap/step.js +0 -2
  151. package/dist/src/utils/amount.d.ts +0 -82
  152. package/dist/src/utils/amount.js +0 -71
  153. package/dist/src/utils/axios.d.ts +0 -13
  154. package/dist/src/utils/axios.js +0 -42
  155. package/dist/src/utils/date.d.ts +0 -1
  156. package/dist/src/utils/date.js +0 -8
  157. package/dist/src/utils/decoder/swap/abis.d.ts +0 -643
  158. package/dist/src/utils/decoder/swap/abis.js +0 -831
  159. package/dist/src/utils/decoder/swap/inputDataDecoder.d.ts +0 -14
  160. package/dist/src/utils/decoder/swap/inputDataDecoder.js +0 -124
  161. package/dist/src/utils/eip-2612/eip2612Permit.d.ts +0 -23
  162. package/dist/src/utils/eip-2612/eip2612Permit.js +0 -121
  163. package/dist/src/utils/eip-5792/batchApproveTokens.d.ts +0 -21
  164. package/dist/src/utils/eip-5792/batchApproveTokens.js +0 -49
  165. package/dist/src/utils/eip-5792/index.d.ts +0 -3
  166. package/dist/src/utils/eip-5792/index.js +0 -9
  167. package/dist/src/utils/eip-5792/isBatchTxnSupportedByWallet.d.ts +0 -6
  168. package/dist/src/utils/eip-5792/isBatchTxnSupportedByWallet.js +0 -22
  169. package/dist/src/utils/eip-5792/sendBatchCalls.d.ts +0 -10
  170. package/dist/src/utils/eip-5792/sendBatchCalls.js +0 -25
  171. package/dist/src/utils/eip-5792/waitForBatchTransactionReceipt.d.ts +0 -4
  172. package/dist/src/utils/eip-5792/waitForBatchTransactionReceipt.js +0 -26
  173. package/dist/src/utils/encodeApproveCall.d.ts +0 -6
  174. package/dist/src/utils/encodeApproveCall.js +0 -13
  175. package/dist/src/utils/erc20.d.ts +0 -65
  176. package/dist/src/utils/erc20.js +0 -153
  177. package/dist/src/utils/errors.d.ts +0 -17
  178. package/dist/src/utils/errors.js +0 -78
  179. package/dist/src/utils/index.d.ts +0 -4566
  180. package/dist/src/utils/index.js +0 -196
  181. package/dist/src/utils/multicall.d.ts +0 -14
  182. package/dist/src/utils/multicall.js +0 -25
  183. package/dist/src/utils/permit2/domain.d.ts +0 -2
  184. package/dist/src/utils/permit2/domain.js +0 -11
  185. package/dist/src/utils/permit2/index.d.ts +0 -4
  186. package/dist/src/utils/permit2/index.js +0 -97
  187. package/dist/src/utils/permit2/nonce.d.ts +0 -15
  188. package/dist/src/utils/permit2/nonce.js +0 -61
  189. package/dist/src/utils/permit2/permitData.d.ts +0 -23
  190. package/dist/src/utils/permit2/permitData.js +0 -85
  191. package/dist/src/utils/permit2/values.d.ts +0 -54
  192. package/dist/src/utils/permit2/values.js +0 -88
  193. package/dist/src/utils/permit2/witnessData.d.ts +0 -4
  194. package/dist/src/utils/permit2/witnessData.js +0 -48
  195. package/dist/src/utils/signIntent/custom.d.ts +0 -11
  196. package/dist/src/utils/signIntent/custom.js +0 -31
  197. package/dist/src/utils/signIntent/gasless.d.ts +0 -12
  198. package/dist/src/utils/signIntent/gasless.js +0 -101
  199. package/dist/src/utils/signTypedData.d.ts +0 -11
  200. package/dist/src/utils/signTypedData.js +0 -21
  201. package/dist/src/utils/tokens.d.ts +0 -8
  202. package/dist/src/utils/tokens.js +0 -73
  203. package/dist/src/utils/updateQuotes.d.ts +0 -3
  204. package/dist/src/utils/updateQuotes.js +0 -69
  205. package/dist/src/zap/constants/index.d.ts +0 -2
  206. package/dist/src/zap/constants/index.js +0 -18
  207. package/dist/src/zap/constants/path.d.ts +0 -8
  208. package/dist/src/zap/constants/path.js +0 -11
  209. package/dist/src/zap/constants/step.d.ts +0 -3
  210. package/dist/src/zap/constants/step.js +0 -6
  211. package/dist/src/zap/constants/urls.d.ts +0 -13
  212. package/dist/src/zap/constants/urls.js +0 -16
  213. package/dist/test/build.test.d.ts +0 -1
  214. package/dist/test/build.test.js +0 -65
  215. package/dist/test/permit/permit2Nonce.test.d.ts +0 -2
  216. package/dist/test/permit/permit2Nonce.test.js +0 -96
  217. package/dist/test/quotes.test.d.ts +0 -1
  218. package/dist/test/quotes.test.js +0 -59
  219. package/dist/test/status.test.d.ts +0 -1
  220. package/dist/test/status.test.js +0 -37
  221. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,416 +0,0 @@
1
- export declare const permit2ProxyAbi: readonly [{
2
- readonly inputs: readonly [{
3
- readonly internalType: "address";
4
- readonly name: "_lifiDiamond";
5
- readonly type: "address";
6
- }, {
7
- readonly internalType: "contract ISignatureTransfer";
8
- readonly name: "_permit2";
9
- readonly type: "address";
10
- }, {
11
- readonly internalType: "address";
12
- readonly name: "_owner";
13
- readonly type: "address";
14
- }];
15
- readonly stateMutability: "nonpayable";
16
- readonly type: "constructor";
17
- }, {
18
- readonly inputs: readonly [{
19
- readonly internalType: "bytes";
20
- readonly name: "";
21
- readonly type: "bytes";
22
- }];
23
- readonly name: "CallToDiamondFailed";
24
- readonly type: "error";
25
- }, {
26
- readonly inputs: readonly [];
27
- readonly name: "ExternalCallFailed";
28
- readonly type: "error";
29
- }, {
30
- readonly inputs: readonly [];
31
- readonly name: "InvalidReceiver";
32
- readonly type: "error";
33
- }, {
34
- readonly inputs: readonly [];
35
- readonly name: "NewOwnerMustNotBeSelf";
36
- readonly type: "error";
37
- }, {
38
- readonly inputs: readonly [];
39
- readonly name: "NoNullOwner";
40
- readonly type: "error";
41
- }, {
42
- readonly inputs: readonly [];
43
- readonly name: "NoPendingOwnershipTransfer";
44
- readonly type: "error";
45
- }, {
46
- readonly inputs: readonly [];
47
- readonly name: "NotPendingOwner";
48
- readonly type: "error";
49
- }, {
50
- readonly inputs: readonly [];
51
- readonly name: "NullAddrIsNotAValidSpender";
52
- readonly type: "error";
53
- }, {
54
- readonly inputs: readonly [];
55
- readonly name: "NullAddrIsNotAnERC20Token";
56
- readonly type: "error";
57
- }, {
58
- readonly inputs: readonly [];
59
- readonly name: "UnAuthorized";
60
- readonly type: "error";
61
- }, {
62
- readonly anonymous: false;
63
- readonly inputs: readonly [{
64
- readonly indexed: true;
65
- readonly internalType: "address";
66
- readonly name: "_from";
67
- readonly type: "address";
68
- }, {
69
- readonly indexed: true;
70
- readonly internalType: "address";
71
- readonly name: "_to";
72
- readonly type: "address";
73
- }];
74
- readonly name: "OwnershipTransferRequested";
75
- readonly type: "event";
76
- }, {
77
- readonly anonymous: false;
78
- readonly inputs: readonly [{
79
- readonly indexed: true;
80
- readonly internalType: "address";
81
- readonly name: "previousOwner";
82
- readonly type: "address";
83
- }, {
84
- readonly indexed: true;
85
- readonly internalType: "address";
86
- readonly name: "newOwner";
87
- readonly type: "address";
88
- }];
89
- readonly name: "OwnershipTransferred";
90
- readonly type: "event";
91
- }, {
92
- readonly anonymous: false;
93
- readonly inputs: readonly [{
94
- readonly indexed: false;
95
- readonly internalType: "address";
96
- readonly name: "assetId";
97
- readonly type: "address";
98
- }, {
99
- readonly indexed: false;
100
- readonly internalType: "address payable";
101
- readonly name: "receiver";
102
- readonly type: "address";
103
- }, {
104
- readonly indexed: false;
105
- readonly internalType: "uint256";
106
- readonly name: "amount";
107
- readonly type: "uint256";
108
- }];
109
- readonly name: "TokensWithdrawn";
110
- readonly type: "event";
111
- }, {
112
- readonly inputs: readonly [];
113
- readonly name: "LIFI_DIAMOND";
114
- readonly outputs: readonly [{
115
- readonly internalType: "address";
116
- readonly name: "";
117
- readonly type: "address";
118
- }];
119
- readonly stateMutability: "view";
120
- readonly type: "function";
121
- }, {
122
- readonly inputs: readonly [];
123
- readonly name: "PERMIT2";
124
- readonly outputs: readonly [{
125
- readonly internalType: "contract ISignatureTransfer";
126
- readonly name: "";
127
- readonly type: "address";
128
- }];
129
- readonly stateMutability: "view";
130
- readonly type: "function";
131
- }, {
132
- readonly inputs: readonly [];
133
- readonly name: "PERMIT_WITH_WITNESS_TYPEHASH";
134
- readonly outputs: readonly [{
135
- readonly internalType: "bytes32";
136
- readonly name: "";
137
- readonly type: "bytes32";
138
- }];
139
- readonly stateMutability: "view";
140
- readonly type: "function";
141
- }, {
142
- readonly inputs: readonly [];
143
- readonly name: "WITNESS_TYPEHASH";
144
- readonly outputs: readonly [{
145
- readonly internalType: "bytes32";
146
- readonly name: "";
147
- readonly type: "bytes32";
148
- }];
149
- readonly stateMutability: "view";
150
- readonly type: "function";
151
- }, {
152
- readonly inputs: readonly [];
153
- readonly name: "WITNESS_TYPE_STRING";
154
- readonly outputs: readonly [{
155
- readonly internalType: "string";
156
- readonly name: "";
157
- readonly type: "string";
158
- }];
159
- readonly stateMutability: "view";
160
- readonly type: "function";
161
- }, {
162
- readonly inputs: readonly [{
163
- readonly internalType: "address";
164
- readonly name: "tokenAddress";
165
- readonly type: "address";
166
- }, {
167
- readonly internalType: "uint256";
168
- readonly name: "amount";
169
- readonly type: "uint256";
170
- }, {
171
- readonly internalType: "uint256";
172
- readonly name: "deadline";
173
- readonly type: "uint256";
174
- }, {
175
- readonly internalType: "uint8";
176
- readonly name: "v";
177
- readonly type: "uint8";
178
- }, {
179
- readonly internalType: "bytes32";
180
- readonly name: "r";
181
- readonly type: "bytes32";
182
- }, {
183
- readonly internalType: "bytes32";
184
- readonly name: "s";
185
- readonly type: "bytes32";
186
- }, {
187
- readonly internalType: "bytes";
188
- readonly name: "diamondCalldata";
189
- readonly type: "bytes";
190
- }];
191
- readonly name: "callDiamondWithEIP2612Signature";
192
- readonly outputs: readonly [{
193
- readonly internalType: "bytes";
194
- readonly name: "";
195
- readonly type: "bytes";
196
- }];
197
- readonly stateMutability: "payable";
198
- readonly type: "function";
199
- }, {
200
- readonly inputs: readonly [{
201
- readonly internalType: "bytes";
202
- readonly name: "_diamondCalldata";
203
- readonly type: "bytes";
204
- }, {
205
- readonly components: readonly [{
206
- readonly components: readonly [{
207
- readonly internalType: "address";
208
- readonly name: "token";
209
- readonly type: "address";
210
- }, {
211
- readonly internalType: "uint256";
212
- readonly name: "amount";
213
- readonly type: "uint256";
214
- }];
215
- readonly internalType: "struct ISignatureTransfer.TokenPermissions";
216
- readonly name: "permitted";
217
- readonly type: "tuple";
218
- }, {
219
- readonly internalType: "uint256";
220
- readonly name: "nonce";
221
- readonly type: "uint256";
222
- }, {
223
- readonly internalType: "uint256";
224
- readonly name: "deadline";
225
- readonly type: "uint256";
226
- }];
227
- readonly internalType: "struct ISignatureTransfer.PermitTransferFrom";
228
- readonly name: "_permit";
229
- readonly type: "tuple";
230
- }, {
231
- readonly internalType: "bytes";
232
- readonly name: "_signature";
233
- readonly type: "bytes";
234
- }];
235
- readonly name: "callDiamondWithPermit2";
236
- readonly outputs: readonly [{
237
- readonly internalType: "bytes";
238
- readonly name: "";
239
- readonly type: "bytes";
240
- }];
241
- readonly stateMutability: "payable";
242
- readonly type: "function";
243
- }, {
244
- readonly inputs: readonly [{
245
- readonly internalType: "bytes";
246
- readonly name: "_diamondCalldata";
247
- readonly type: "bytes";
248
- }, {
249
- readonly internalType: "address";
250
- readonly name: "_signer";
251
- readonly type: "address";
252
- }, {
253
- readonly components: readonly [{
254
- readonly components: readonly [{
255
- readonly internalType: "address";
256
- readonly name: "token";
257
- readonly type: "address";
258
- }, {
259
- readonly internalType: "uint256";
260
- readonly name: "amount";
261
- readonly type: "uint256";
262
- }];
263
- readonly internalType: "struct ISignatureTransfer.TokenPermissions";
264
- readonly name: "permitted";
265
- readonly type: "tuple";
266
- }, {
267
- readonly internalType: "uint256";
268
- readonly name: "nonce";
269
- readonly type: "uint256";
270
- }, {
271
- readonly internalType: "uint256";
272
- readonly name: "deadline";
273
- readonly type: "uint256";
274
- }];
275
- readonly internalType: "struct ISignatureTransfer.PermitTransferFrom";
276
- readonly name: "_permit";
277
- readonly type: "tuple";
278
- }, {
279
- readonly internalType: "bytes";
280
- readonly name: "_signature";
281
- readonly type: "bytes";
282
- }];
283
- readonly name: "callDiamondWithPermit2Witness";
284
- readonly outputs: readonly [{
285
- readonly internalType: "bytes";
286
- readonly name: "";
287
- readonly type: "bytes";
288
- }];
289
- readonly stateMutability: "payable";
290
- readonly type: "function";
291
- }, {
292
- readonly inputs: readonly [];
293
- readonly name: "cancelOwnershipTransfer";
294
- readonly outputs: readonly [];
295
- readonly stateMutability: "nonpayable";
296
- readonly type: "function";
297
- }, {
298
- readonly inputs: readonly [];
299
- readonly name: "confirmOwnershipTransfer";
300
- readonly outputs: readonly [];
301
- readonly stateMutability: "nonpayable";
302
- readonly type: "function";
303
- }, {
304
- readonly inputs: readonly [{
305
- readonly internalType: "bytes";
306
- readonly name: "_diamondCalldata";
307
- readonly type: "bytes";
308
- }, {
309
- readonly internalType: "address";
310
- readonly name: "_assetId";
311
- readonly type: "address";
312
- }, {
313
- readonly internalType: "uint256";
314
- readonly name: "_amount";
315
- readonly type: "uint256";
316
- }, {
317
- readonly internalType: "uint256";
318
- readonly name: "_nonce";
319
- readonly type: "uint256";
320
- }, {
321
- readonly internalType: "uint256";
322
- readonly name: "_deadline";
323
- readonly type: "uint256";
324
- }];
325
- readonly name: "getPermit2MsgHash";
326
- readonly outputs: readonly [{
327
- readonly internalType: "bytes32";
328
- readonly name: "msgHash";
329
- readonly type: "bytes32";
330
- }];
331
- readonly stateMutability: "view";
332
- readonly type: "function";
333
- }, {
334
- readonly inputs: readonly [{
335
- readonly internalType: "address";
336
- readonly name: "owner";
337
- readonly type: "address";
338
- }];
339
- readonly name: "nextNonce";
340
- readonly outputs: readonly [{
341
- readonly internalType: "uint256";
342
- readonly name: "nonce";
343
- readonly type: "uint256";
344
- }];
345
- readonly stateMutability: "view";
346
- readonly type: "function";
347
- }, {
348
- readonly inputs: readonly [{
349
- readonly internalType: "address";
350
- readonly name: "owner";
351
- readonly type: "address";
352
- }, {
353
- readonly internalType: "uint256";
354
- readonly name: "start";
355
- readonly type: "uint256";
356
- }];
357
- readonly name: "nextNonceAfter";
358
- readonly outputs: readonly [{
359
- readonly internalType: "uint256";
360
- readonly name: "nonce";
361
- readonly type: "uint256";
362
- }];
363
- readonly stateMutability: "view";
364
- readonly type: "function";
365
- }, {
366
- readonly inputs: readonly [];
367
- readonly name: "owner";
368
- readonly outputs: readonly [{
369
- readonly internalType: "address";
370
- readonly name: "";
371
- readonly type: "address";
372
- }];
373
- readonly stateMutability: "view";
374
- readonly type: "function";
375
- }, {
376
- readonly inputs: readonly [];
377
- readonly name: "pendingOwner";
378
- readonly outputs: readonly [{
379
- readonly internalType: "address";
380
- readonly name: "";
381
- readonly type: "address";
382
- }];
383
- readonly stateMutability: "view";
384
- readonly type: "function";
385
- }, {
386
- readonly inputs: readonly [{
387
- readonly internalType: "address";
388
- readonly name: "_newOwner";
389
- readonly type: "address";
390
- }];
391
- readonly name: "transferOwnership";
392
- readonly outputs: readonly [];
393
- readonly stateMutability: "nonpayable";
394
- readonly type: "function";
395
- }, {
396
- readonly inputs: readonly [{
397
- readonly internalType: "address";
398
- readonly name: "assetId";
399
- readonly type: "address";
400
- }, {
401
- readonly internalType: "address payable";
402
- readonly name: "receiver";
403
- readonly type: "address";
404
- }, {
405
- readonly internalType: "uint256";
406
- readonly name: "amount";
407
- readonly type: "uint256";
408
- }];
409
- readonly name: "withdrawToken";
410
- readonly outputs: readonly [];
411
- readonly stateMutability: "nonpayable";
412
- readonly type: "function";
413
- }, {
414
- readonly stateMutability: "payable";
415
- readonly type: "receive";
416
- }];
@@ -1,206 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.permit2ProxyAbi = void 0;
4
- exports.permit2ProxyAbi = [
5
- {
6
- inputs: [
7
- { internalType: 'address', name: '_lifiDiamond', type: 'address' },
8
- { internalType: 'contract ISignatureTransfer', name: '_permit2', type: 'address' },
9
- { internalType: 'address', name: '_owner', type: 'address' },
10
- ],
11
- stateMutability: 'nonpayable',
12
- type: 'constructor',
13
- },
14
- { inputs: [{ internalType: 'bytes', name: '', type: 'bytes' }], name: 'CallToDiamondFailed', type: 'error' },
15
- { inputs: [], name: 'ExternalCallFailed', type: 'error' },
16
- { inputs: [], name: 'InvalidReceiver', type: 'error' },
17
- { inputs: [], name: 'NewOwnerMustNotBeSelf', type: 'error' },
18
- { inputs: [], name: 'NoNullOwner', type: 'error' },
19
- { inputs: [], name: 'NoPendingOwnershipTransfer', type: 'error' },
20
- { inputs: [], name: 'NotPendingOwner', type: 'error' },
21
- { inputs: [], name: 'NullAddrIsNotAValidSpender', type: 'error' },
22
- { inputs: [], name: 'NullAddrIsNotAnERC20Token', type: 'error' },
23
- { inputs: [], name: 'UnAuthorized', type: 'error' },
24
- {
25
- anonymous: false,
26
- inputs: [
27
- { indexed: true, internalType: 'address', name: '_from', type: 'address' },
28
- { indexed: true, internalType: 'address', name: '_to', type: 'address' },
29
- ],
30
- name: 'OwnershipTransferRequested',
31
- type: 'event',
32
- },
33
- {
34
- anonymous: false,
35
- inputs: [
36
- { indexed: true, internalType: 'address', name: 'previousOwner', type: 'address' },
37
- { indexed: true, internalType: 'address', name: 'newOwner', type: 'address' },
38
- ],
39
- name: 'OwnershipTransferred',
40
- type: 'event',
41
- },
42
- {
43
- anonymous: false,
44
- inputs: [
45
- { indexed: false, internalType: 'address', name: 'assetId', type: 'address' },
46
- { indexed: false, internalType: 'address payable', name: 'receiver', type: 'address' },
47
- { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
48
- ],
49
- name: 'TokensWithdrawn',
50
- type: 'event',
51
- },
52
- { inputs: [], name: 'LIFI_DIAMOND', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function' },
53
- {
54
- inputs: [],
55
- name: 'PERMIT2',
56
- outputs: [{ internalType: 'contract ISignatureTransfer', name: '', type: 'address' }],
57
- stateMutability: 'view',
58
- type: 'function',
59
- },
60
- {
61
- inputs: [],
62
- name: 'PERMIT_WITH_WITNESS_TYPEHASH',
63
- outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
64
- stateMutability: 'view',
65
- type: 'function',
66
- },
67
- {
68
- inputs: [],
69
- name: 'WITNESS_TYPEHASH',
70
- outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
71
- stateMutability: 'view',
72
- type: 'function',
73
- },
74
- {
75
- inputs: [],
76
- name: 'WITNESS_TYPE_STRING',
77
- outputs: [{ internalType: 'string', name: '', type: 'string' }],
78
- stateMutability: 'view',
79
- type: 'function',
80
- },
81
- {
82
- inputs: [
83
- { internalType: 'address', name: 'tokenAddress', type: 'address' },
84
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
85
- { internalType: 'uint256', name: 'deadline', type: 'uint256' },
86
- { internalType: 'uint8', name: 'v', type: 'uint8' },
87
- { internalType: 'bytes32', name: 'r', type: 'bytes32' },
88
- { internalType: 'bytes32', name: 's', type: 'bytes32' },
89
- { internalType: 'bytes', name: 'diamondCalldata', type: 'bytes' },
90
- ],
91
- name: 'callDiamondWithEIP2612Signature',
92
- outputs: [{ internalType: 'bytes', name: '', type: 'bytes' }],
93
- stateMutability: 'payable',
94
- type: 'function',
95
- },
96
- {
97
- inputs: [
98
- { internalType: 'bytes', name: '_diamondCalldata', type: 'bytes' },
99
- {
100
- components: [
101
- {
102
- components: [
103
- { internalType: 'address', name: 'token', type: 'address' },
104
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
105
- ],
106
- internalType: 'struct ISignatureTransfer.TokenPermissions',
107
- name: 'permitted',
108
- type: 'tuple',
109
- },
110
- { internalType: 'uint256', name: 'nonce', type: 'uint256' },
111
- { internalType: 'uint256', name: 'deadline', type: 'uint256' },
112
- ],
113
- internalType: 'struct ISignatureTransfer.PermitTransferFrom',
114
- name: '_permit',
115
- type: 'tuple',
116
- },
117
- { internalType: 'bytes', name: '_signature', type: 'bytes' },
118
- ],
119
- name: 'callDiamondWithPermit2',
120
- outputs: [{ internalType: 'bytes', name: '', type: 'bytes' }],
121
- stateMutability: 'payable',
122
- type: 'function',
123
- },
124
- {
125
- inputs: [
126
- { internalType: 'bytes', name: '_diamondCalldata', type: 'bytes' },
127
- { internalType: 'address', name: '_signer', type: 'address' },
128
- {
129
- components: [
130
- {
131
- components: [
132
- { internalType: 'address', name: 'token', type: 'address' },
133
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
134
- ],
135
- internalType: 'struct ISignatureTransfer.TokenPermissions',
136
- name: 'permitted',
137
- type: 'tuple',
138
- },
139
- { internalType: 'uint256', name: 'nonce', type: 'uint256' },
140
- { internalType: 'uint256', name: 'deadline', type: 'uint256' },
141
- ],
142
- internalType: 'struct ISignatureTransfer.PermitTransferFrom',
143
- name: '_permit',
144
- type: 'tuple',
145
- },
146
- { internalType: 'bytes', name: '_signature', type: 'bytes' },
147
- ],
148
- name: 'callDiamondWithPermit2Witness',
149
- outputs: [{ internalType: 'bytes', name: '', type: 'bytes' }],
150
- stateMutability: 'payable',
151
- type: 'function',
152
- },
153
- { inputs: [], name: 'cancelOwnershipTransfer', outputs: [], stateMutability: 'nonpayable', type: 'function' },
154
- { inputs: [], name: 'confirmOwnershipTransfer', outputs: [], stateMutability: 'nonpayable', type: 'function' },
155
- {
156
- inputs: [
157
- { internalType: 'bytes', name: '_diamondCalldata', type: 'bytes' },
158
- { internalType: 'address', name: '_assetId', type: 'address' },
159
- { internalType: 'uint256', name: '_amount', type: 'uint256' },
160
- { internalType: 'uint256', name: '_nonce', type: 'uint256' },
161
- { internalType: 'uint256', name: '_deadline', type: 'uint256' },
162
- ],
163
- name: 'getPermit2MsgHash',
164
- outputs: [{ internalType: 'bytes32', name: 'msgHash', type: 'bytes32' }],
165
- stateMutability: 'view',
166
- type: 'function',
167
- },
168
- {
169
- inputs: [{ internalType: 'address', name: 'owner', type: 'address' }],
170
- name: 'nextNonce',
171
- outputs: [{ internalType: 'uint256', name: 'nonce', type: 'uint256' }],
172
- stateMutability: 'view',
173
- type: 'function',
174
- },
175
- {
176
- inputs: [
177
- { internalType: 'address', name: 'owner', type: 'address' },
178
- { internalType: 'uint256', name: 'start', type: 'uint256' },
179
- ],
180
- name: 'nextNonceAfter',
181
- outputs: [{ internalType: 'uint256', name: 'nonce', type: 'uint256' }],
182
- stateMutability: 'view',
183
- type: 'function',
184
- },
185
- { inputs: [], name: 'owner', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function' },
186
- { inputs: [], name: 'pendingOwner', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function' },
187
- {
188
- inputs: [{ internalType: 'address', name: '_newOwner', type: 'address' }],
189
- name: 'transferOwnership',
190
- outputs: [],
191
- stateMutability: 'nonpayable',
192
- type: 'function',
193
- },
194
- {
195
- inputs: [
196
- { internalType: 'address', name: 'assetId', type: 'address' },
197
- { internalType: 'address payable', name: 'receiver', type: 'address' },
198
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
199
- ],
200
- name: 'withdrawToken',
201
- outputs: [],
202
- stateMutability: 'nonpayable',
203
- type: 'function',
204
- },
205
- { stateMutability: 'payable', type: 'receive' },
206
- ];
@@ -1,2 +0,0 @@
1
- import { Abi } from 'viem';
2
- export declare const abi: Abi;