@zoralabs/coins 0.7.1 → 1.0.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 (167) hide show
  1. package/.turbo/turbo-build.log +106 -84
  2. package/CHANGELOG.md +68 -0
  3. package/abis/BadImpl.json +15 -0
  4. package/abis/BalanceDeltaLibrary.json +15 -0
  5. package/abis/BaseCoin.json +1350 -0
  6. package/abis/BaseCoinDeployHook.json +78 -0
  7. package/abis/BaseHook.json +897 -0
  8. package/abis/BaseTest.json +60 -91
  9. package/abis/BeforeSwapDeltaLibrary.json +15 -0
  10. package/abis/BuySupplyWithSwapRouterHook.json +126 -0
  11. package/abis/Coin.json +214 -150
  12. package/abis/CoinConstants.json +65 -0
  13. package/abis/CoinDopplerMultiCurve.json +38 -0
  14. package/abis/CoinRewardsV4.json +54 -0
  15. package/abis/CoinTest.json +66 -111
  16. package/abis/CoinUniV4Test.json +1053 -0
  17. package/abis/CoinV4.json +1687 -0
  18. package/abis/CurrencyLibrary.json +25 -0
  19. package/abis/DeployHooks.json +9 -0
  20. package/abis/DeployScript.json +47 -0
  21. package/abis/DeployedCoinVersionLookup.json +21 -0
  22. package/abis/DeployedCoinVersionLookupTest.json +716 -0
  23. package/abis/DifferentNamespaceVersionLookup.json +39 -0
  24. package/abis/DopplerUniswapV3Test.json +62 -184
  25. package/abis/ERC20.json +310 -0
  26. package/abis/FactoryTest.json +98 -98
  27. package/abis/FakeHookNoInterface.json +21 -0
  28. package/abis/FeeEstimatorHook.json +1528 -0
  29. package/abis/Hooks.json +28 -0
  30. package/abis/HooksDeployment.json +23 -0
  31. package/abis/HooksTest.json +698 -0
  32. package/abis/IAllowanceTransfer.json +486 -0
  33. package/abis/ICoin.json +62 -69
  34. package/abis/ICoinDeployHook.json +31 -0
  35. package/abis/ICoinV3.json +879 -0
  36. package/abis/ICoinV4.json +915 -0
  37. package/abis/IContractMetadata.json +28 -0
  38. package/abis/IDeployedCoinVersionLookup.json +21 -0
  39. package/abis/IEIP712.json +15 -0
  40. package/abis/IEIP712_v4.json +15 -0
  41. package/abis/IERC20Minimal.json +172 -0
  42. package/abis/IERC6909Claims.json +288 -0
  43. package/abis/IERC721.json +36 -36
  44. package/abis/IERC721Permit_v4.json +88 -0
  45. package/abis/IExtsload.json +64 -0
  46. package/abis/IExttload.json +40 -0
  47. package/abis/IHasAfterCoinDeploy.json +31 -0
  48. package/abis/IHasContractName.json +15 -0
  49. package/abis/IHasPoolKey.json +42 -0
  50. package/abis/IHasRewardsRecipients.json +54 -0
  51. package/abis/IHasSwapPath.json +60 -0
  52. package/abis/IHooks.json +789 -0
  53. package/abis/IImmutableState.json +15 -0
  54. package/abis/IMsgSender.json +15 -0
  55. package/abis/IMulticall_v4.json +21 -0
  56. package/abis/INotifier.json +187 -0
  57. package/abis/IPermit2.json +865 -0
  58. package/abis/IPermit2Forwarder.json +138 -0
  59. package/abis/IPoolConfigEncoding.json +46 -0
  60. package/abis/IPoolInitializer_v4.json +53 -0
  61. package/abis/IPoolManager.json +1286 -0
  62. package/abis/IPositionManager.json +712 -0
  63. package/abis/IProtocolFees.json +174 -0
  64. package/abis/ISignatureTransfer.json +394 -0
  65. package/abis/ISubscriber.json +89 -0
  66. package/abis/ISwapPathRouter.json +92 -0
  67. package/abis/ISwapRouter.json +82 -0
  68. package/abis/IUniversalRouter.json +61 -0
  69. package/abis/IUnlockCallback.json +21 -0
  70. package/abis/IUnorderedNonce.json +44 -0
  71. package/abis/IV4Quoter.json +310 -0
  72. package/abis/IV4Router.json +47 -0
  73. package/abis/IZoraFactory.json +328 -4
  74. package/abis/IZoraV4CoinHook.json +427 -0
  75. package/abis/ImmutableState.json +36 -0
  76. package/abis/LPFeeLibrary.json +65 -0
  77. package/abis/MockERC20.json +21 -0
  78. package/abis/MultiOwnableTest.json +60 -91
  79. package/abis/{CoinConfigurationVersions.json → Position.json} +1 -1
  80. package/abis/PrintUpgradeCommand.json +9 -0
  81. package/abis/ProxyShim.json +24 -0
  82. package/abis/Simulate.json +0 -91
  83. package/abis/StateLibrary.json +80 -0
  84. package/abis/TestDeployedCoinVersionLookupImplementation.json +39 -0
  85. package/abis/TestV4Swap.json +9 -0
  86. package/abis/{CoinSetup.json → UniV3BuySell.json} +5 -0
  87. package/abis/UniV3Errors.json +32 -0
  88. package/abis/UpgradeCoinImpl.json +47 -0
  89. package/abis/UpgradeFactoryImpl.json +9 -0
  90. package/abis/UpgradesTest.json +671 -0
  91. package/abis/Vm.json +1482 -111
  92. package/abis/VmSafe.json +856 -32
  93. package/abis/ZoraFactoryImpl.json +450 -1
  94. package/abis/ZoraV4CoinHook.json +1439 -0
  95. package/addresses/8453.json +8 -3
  96. package/addresses/84532.json +8 -3
  97. package/dist/index.cjs +1998 -184
  98. package/dist/index.cjs.map +1 -1
  99. package/dist/index.js +1989 -178
  100. package/dist/index.js.map +1 -1
  101. package/dist/wagmiGenerated.d.ts +2852 -688
  102. package/dist/wagmiGenerated.d.ts.map +1 -1
  103. package/package/wagmiGenerated.ts +1992 -173
  104. package/package.json +7 -2
  105. package/remappings.txt +6 -1
  106. package/script/CoinsDeployerBase.sol +105 -10
  107. package/script/DeployDevFactory.s.sol +21 -0
  108. package/script/DeployHooks.s.sol +22 -0
  109. package/script/PrintUpgradeCommand.s.sol +13 -0
  110. package/script/Simulate.s.sol +4 -12
  111. package/script/TestBackingCoinSwap.s.sol +146 -0
  112. package/script/TestV4Swap.s.sol +136 -0
  113. package/script/UpgradeCoinImpl.sol +2 -2
  114. package/script/UpgradeFactoryImpl.s.sol +23 -0
  115. package/src/BaseCoin.sol +176 -0
  116. package/src/Coin.sol +93 -515
  117. package/src/CoinV4.sol +121 -0
  118. package/src/ZoraFactoryImpl.sol +257 -57
  119. package/src/hooks/ZoraV4CoinHook.sol +195 -0
  120. package/src/hooks/deployment/BaseCoinDeployHook.sol +62 -0
  121. package/src/hooks/deployment/BuySupplyWithSwapRouterHook.sol +80 -0
  122. package/src/interfaces/ICoin.sol +35 -39
  123. package/src/interfaces/ICoinDeployHook.sol +8 -0
  124. package/src/interfaces/ICoinV3.sol +71 -0
  125. package/src/interfaces/ICoinV4.sol +69 -0
  126. package/src/interfaces/IDeployedCoinVersionLookup.sol +11 -0
  127. package/src/interfaces/IMsgSender.sol +9 -0
  128. package/src/interfaces/IPoolConfigEncoding.sol +14 -0
  129. package/src/interfaces/ISwapPathRouter.sol +14 -0
  130. package/src/interfaces/ISwapRouter.sol +1 -35
  131. package/src/interfaces/IZoraFactory.sol +97 -7
  132. package/src/interfaces/IZoraV4CoinHook.sol +116 -0
  133. package/src/libs/CoinCommon.sol +15 -0
  134. package/src/libs/CoinConfigurationVersions.sol +116 -1
  135. package/src/{utils → libs}/CoinConstants.sol +11 -6
  136. package/src/libs/CoinDopplerMultiCurve.sol +134 -0
  137. package/src/libs/CoinDopplerUniV3.sol +19 -171
  138. package/src/libs/CoinRewards.sol +195 -0
  139. package/src/libs/CoinRewardsV4.sol +180 -0
  140. package/src/libs/CoinSetup.sol +40 -20
  141. package/src/libs/CoinSetupV3.sol +50 -0
  142. package/src/libs/DopplerMath.sol +156 -0
  143. package/src/libs/HooksDeployment.sol +84 -0
  144. package/src/libs/MarketConstants.sol +4 -0
  145. package/src/libs/PoolStateReader.sol +22 -0
  146. package/src/libs/UniV3BuySell.sol +231 -0
  147. package/src/libs/UniV3Errors.sol +11 -0
  148. package/src/libs/UniV4SwapHelper.sol +65 -0
  149. package/src/libs/UniV4SwapToCurrency.sol +109 -0
  150. package/src/libs/V4Liquidity.sol +129 -0
  151. package/src/types/PoolConfiguration.sol +15 -0
  152. package/src/utils/DeployedCoinVersionLookup.sol +52 -0
  153. package/src/version/ContractVersionBase.sol +1 -1
  154. package/test/Coin.t.sol +94 -101
  155. package/test/CoinDopplerUniV3.t.sol +35 -184
  156. package/test/CoinUniV4.t.sol +752 -0
  157. package/test/DeploymentHooks.t.sol +270 -0
  158. package/test/Factory.t.sol +84 -50
  159. package/test/MultiOwnable.t.sol +6 -3
  160. package/test/Upgrades.t.sol +68 -0
  161. package/test/mocks/MockERC20.sol +12 -0
  162. package/test/utils/BaseTest.sol +124 -59
  163. package/test/utils/DeployedCoinVersionLookup.t.sol +127 -0
  164. package/test/utils/FeeEstimatorHook.sol +84 -0
  165. package/test/utils/ProxyShim.sol +17 -0
  166. package/wagmi.config.ts +10 -9
  167. package/src/libs/CoinLegacy.sol +0 -48
@@ -0,0 +1,427 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "getPoolCoin",
5
+ "inputs": [
6
+ {
7
+ "name": "key",
8
+ "type": "tuple",
9
+ "internalType": "struct PoolKey",
10
+ "components": [
11
+ {
12
+ "name": "currency0",
13
+ "type": "address",
14
+ "internalType": "Currency"
15
+ },
16
+ {
17
+ "name": "currency1",
18
+ "type": "address",
19
+ "internalType": "Currency"
20
+ },
21
+ {
22
+ "name": "fee",
23
+ "type": "uint24",
24
+ "internalType": "uint24"
25
+ },
26
+ {
27
+ "name": "tickSpacing",
28
+ "type": "int24",
29
+ "internalType": "int24"
30
+ },
31
+ {
32
+ "name": "hooks",
33
+ "type": "address",
34
+ "internalType": "contract IHooks"
35
+ }
36
+ ]
37
+ }
38
+ ],
39
+ "outputs": [
40
+ {
41
+ "name": "",
42
+ "type": "tuple",
43
+ "internalType": "struct IZoraV4CoinHook.PoolCoin",
44
+ "components": [
45
+ {
46
+ "name": "coin",
47
+ "type": "address",
48
+ "internalType": "address"
49
+ },
50
+ {
51
+ "name": "positions",
52
+ "type": "tuple[]",
53
+ "internalType": "struct LpPosition[]",
54
+ "components": [
55
+ {
56
+ "name": "tickLower",
57
+ "type": "int24",
58
+ "internalType": "int24"
59
+ },
60
+ {
61
+ "name": "tickUpper",
62
+ "type": "int24",
63
+ "internalType": "int24"
64
+ },
65
+ {
66
+ "name": "liquidity",
67
+ "type": "uint128",
68
+ "internalType": "uint128"
69
+ }
70
+ ]
71
+ }
72
+ ]
73
+ }
74
+ ],
75
+ "stateMutability": "view"
76
+ },
77
+ {
78
+ "type": "function",
79
+ "name": "getPoolCoinByHash",
80
+ "inputs": [
81
+ {
82
+ "name": "poolKeyHash",
83
+ "type": "bytes23",
84
+ "internalType": "bytes23"
85
+ }
86
+ ],
87
+ "outputs": [
88
+ {
89
+ "name": "",
90
+ "type": "tuple",
91
+ "internalType": "struct IZoraV4CoinHook.PoolCoin",
92
+ "components": [
93
+ {
94
+ "name": "coin",
95
+ "type": "address",
96
+ "internalType": "address"
97
+ },
98
+ {
99
+ "name": "positions",
100
+ "type": "tuple[]",
101
+ "internalType": "struct LpPosition[]",
102
+ "components": [
103
+ {
104
+ "name": "tickLower",
105
+ "type": "int24",
106
+ "internalType": "int24"
107
+ },
108
+ {
109
+ "name": "tickUpper",
110
+ "type": "int24",
111
+ "internalType": "int24"
112
+ },
113
+ {
114
+ "name": "liquidity",
115
+ "type": "uint128",
116
+ "internalType": "uint128"
117
+ }
118
+ ]
119
+ }
120
+ ]
121
+ }
122
+ ],
123
+ "stateMutability": "view"
124
+ },
125
+ {
126
+ "type": "function",
127
+ "name": "isTrustedMessageSender",
128
+ "inputs": [
129
+ {
130
+ "name": "sender",
131
+ "type": "address",
132
+ "internalType": "address"
133
+ }
134
+ ],
135
+ "outputs": [
136
+ {
137
+ "name": "",
138
+ "type": "bool",
139
+ "internalType": "bool"
140
+ }
141
+ ],
142
+ "stateMutability": "view"
143
+ },
144
+ {
145
+ "type": "event",
146
+ "name": "CoinMarketRewardsV4",
147
+ "inputs": [
148
+ {
149
+ "name": "coin",
150
+ "type": "address",
151
+ "indexed": false,
152
+ "internalType": "address"
153
+ },
154
+ {
155
+ "name": "currency",
156
+ "type": "address",
157
+ "indexed": false,
158
+ "internalType": "address"
159
+ },
160
+ {
161
+ "name": "payoutRecipient",
162
+ "type": "address",
163
+ "indexed": false,
164
+ "internalType": "address"
165
+ },
166
+ {
167
+ "name": "platformReferrer",
168
+ "type": "address",
169
+ "indexed": false,
170
+ "internalType": "address"
171
+ },
172
+ {
173
+ "name": "tradeReferrer",
174
+ "type": "address",
175
+ "indexed": false,
176
+ "internalType": "address"
177
+ },
178
+ {
179
+ "name": "protocolRewardRecipient",
180
+ "type": "address",
181
+ "indexed": false,
182
+ "internalType": "address"
183
+ },
184
+ {
185
+ "name": "dopplerRecipient",
186
+ "type": "address",
187
+ "indexed": false,
188
+ "internalType": "address"
189
+ },
190
+ {
191
+ "name": "marketRewards",
192
+ "type": "tuple",
193
+ "indexed": false,
194
+ "internalType": "struct IZoraV4CoinHook.MarketRewardsV4",
195
+ "components": [
196
+ {
197
+ "name": "creatorPayoutAmountCurrency",
198
+ "type": "uint256",
199
+ "internalType": "uint256"
200
+ },
201
+ {
202
+ "name": "creatorPayoutAmountCoin",
203
+ "type": "uint256",
204
+ "internalType": "uint256"
205
+ },
206
+ {
207
+ "name": "platformReferrerAmountCurrency",
208
+ "type": "uint256",
209
+ "internalType": "uint256"
210
+ },
211
+ {
212
+ "name": "platformReferrerAmountCoin",
213
+ "type": "uint256",
214
+ "internalType": "uint256"
215
+ },
216
+ {
217
+ "name": "tradeReferrerAmountCurrency",
218
+ "type": "uint256",
219
+ "internalType": "uint256"
220
+ },
221
+ {
222
+ "name": "tradeReferrerAmountCoin",
223
+ "type": "uint256",
224
+ "internalType": "uint256"
225
+ },
226
+ {
227
+ "name": "protocolAmountCurrency",
228
+ "type": "uint256",
229
+ "internalType": "uint256"
230
+ },
231
+ {
232
+ "name": "protocolAmountCoin",
233
+ "type": "uint256",
234
+ "internalType": "uint256"
235
+ },
236
+ {
237
+ "name": "dopplerAmountCurrency",
238
+ "type": "uint256",
239
+ "internalType": "uint256"
240
+ },
241
+ {
242
+ "name": "dopplerAmountCoin",
243
+ "type": "uint256",
244
+ "internalType": "uint256"
245
+ }
246
+ ]
247
+ }
248
+ ],
249
+ "anonymous": false
250
+ },
251
+ {
252
+ "type": "event",
253
+ "name": "Swapped",
254
+ "inputs": [
255
+ {
256
+ "name": "sender",
257
+ "type": "address",
258
+ "indexed": true,
259
+ "internalType": "address"
260
+ },
261
+ {
262
+ "name": "swapSender",
263
+ "type": "address",
264
+ "indexed": true,
265
+ "internalType": "address"
266
+ },
267
+ {
268
+ "name": "isTrustedSwapSenderAddress",
269
+ "type": "bool",
270
+ "indexed": false,
271
+ "internalType": "bool"
272
+ },
273
+ {
274
+ "name": "key",
275
+ "type": "tuple",
276
+ "indexed": false,
277
+ "internalType": "struct PoolKey",
278
+ "components": [
279
+ {
280
+ "name": "currency0",
281
+ "type": "address",
282
+ "internalType": "Currency"
283
+ },
284
+ {
285
+ "name": "currency1",
286
+ "type": "address",
287
+ "internalType": "Currency"
288
+ },
289
+ {
290
+ "name": "fee",
291
+ "type": "uint24",
292
+ "internalType": "uint24"
293
+ },
294
+ {
295
+ "name": "tickSpacing",
296
+ "type": "int24",
297
+ "internalType": "int24"
298
+ },
299
+ {
300
+ "name": "hooks",
301
+ "type": "address",
302
+ "internalType": "contract IHooks"
303
+ }
304
+ ]
305
+ },
306
+ {
307
+ "name": "poolKeyHash",
308
+ "type": "bytes32",
309
+ "indexed": true,
310
+ "internalType": "bytes32"
311
+ },
312
+ {
313
+ "name": "params",
314
+ "type": "tuple",
315
+ "indexed": false,
316
+ "internalType": "struct SwapParams",
317
+ "components": [
318
+ {
319
+ "name": "zeroForOne",
320
+ "type": "bool",
321
+ "internalType": "bool"
322
+ },
323
+ {
324
+ "name": "amountSpecified",
325
+ "type": "int256",
326
+ "internalType": "int256"
327
+ },
328
+ {
329
+ "name": "sqrtPriceLimitX96",
330
+ "type": "uint160",
331
+ "internalType": "uint160"
332
+ }
333
+ ]
334
+ },
335
+ {
336
+ "name": "amount0",
337
+ "type": "int128",
338
+ "indexed": false,
339
+ "internalType": "int128"
340
+ },
341
+ {
342
+ "name": "amount1",
343
+ "type": "int128",
344
+ "indexed": false,
345
+ "internalType": "int128"
346
+ },
347
+ {
348
+ "name": "isCoinBuy",
349
+ "type": "bool",
350
+ "indexed": false,
351
+ "internalType": "bool"
352
+ },
353
+ {
354
+ "name": "hookData",
355
+ "type": "bytes",
356
+ "indexed": false,
357
+ "internalType": "bytes"
358
+ },
359
+ {
360
+ "name": "sqrtPriceX96",
361
+ "type": "uint160",
362
+ "indexed": false,
363
+ "internalType": "uint160"
364
+ }
365
+ ],
366
+ "anonymous": false
367
+ },
368
+ {
369
+ "type": "error",
370
+ "name": "CoinVersionLookupCannotBeZeroAddress",
371
+ "inputs": []
372
+ },
373
+ {
374
+ "type": "error",
375
+ "name": "NoCoinForHook",
376
+ "inputs": [
377
+ {
378
+ "name": "key",
379
+ "type": "tuple",
380
+ "internalType": "struct PoolKey",
381
+ "components": [
382
+ {
383
+ "name": "currency0",
384
+ "type": "address",
385
+ "internalType": "Currency"
386
+ },
387
+ {
388
+ "name": "currency1",
389
+ "type": "address",
390
+ "internalType": "Currency"
391
+ },
392
+ {
393
+ "name": "fee",
394
+ "type": "uint24",
395
+ "internalType": "uint24"
396
+ },
397
+ {
398
+ "name": "tickSpacing",
399
+ "type": "int24",
400
+ "internalType": "int24"
401
+ },
402
+ {
403
+ "name": "hooks",
404
+ "type": "address",
405
+ "internalType": "contract IHooks"
406
+ }
407
+ ]
408
+ }
409
+ ]
410
+ },
411
+ {
412
+ "type": "error",
413
+ "name": "NotACoin",
414
+ "inputs": [
415
+ {
416
+ "name": "coin",
417
+ "type": "address",
418
+ "internalType": "address"
419
+ }
420
+ ]
421
+ },
422
+ {
423
+ "type": "error",
424
+ "name": "PathMustHaveAtLeastOneStep",
425
+ "inputs": []
426
+ }
427
+ ]
@@ -0,0 +1,36 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "_factory",
7
+ "type": "address",
8
+ "internalType": "contract IZoraFactory"
9
+ }
10
+ ],
11
+ "stateMutability": "nonpayable"
12
+ },
13
+ {
14
+ "type": "function",
15
+ "name": "factory",
16
+ "inputs": [],
17
+ "outputs": [
18
+ {
19
+ "name": "",
20
+ "type": "address",
21
+ "internalType": "contract IZoraFactory"
22
+ }
23
+ ],
24
+ "stateMutability": "view"
25
+ },
26
+ {
27
+ "type": "error",
28
+ "name": "AddressZero",
29
+ "inputs": []
30
+ },
31
+ {
32
+ "type": "error",
33
+ "name": "NotFactory",
34
+ "inputs": []
35
+ }
36
+ ]
@@ -0,0 +1,65 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "DYNAMIC_FEE_FLAG",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "",
9
+ "type": "uint24",
10
+ "internalType": "uint24"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "MAX_LP_FEE",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "",
22
+ "type": "uint24",
23
+ "internalType": "uint24"
24
+ }
25
+ ],
26
+ "stateMutability": "view"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "OVERRIDE_FEE_FLAG",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "uint24",
36
+ "internalType": "uint24"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "REMOVE_OVERRIDE_MASK",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "uint24",
49
+ "internalType": "uint24"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "error",
56
+ "name": "LPFeeTooLarge",
57
+ "inputs": [
58
+ {
59
+ "name": "fee",
60
+ "type": "uint24",
61
+ "internalType": "uint24"
62
+ }
63
+ ]
64
+ }
65
+ ]
@@ -319,4 +319,25 @@
319
319
  ],
320
320
  "anonymous": false
321
321
  }
322
+ ]error",
323
+ "name": "ERC20InvalidSender",
324
+ "inputs": [
325
+ {
326
+ "name": "sender",
327
+ "type": "address",
328
+ "internalType": "address"
329
+ }
330
+ ]
331
+ },
332
+ {
333
+ "type": "error",
334
+ "name": "ERC20InvalidSpender",
335
+ "inputs": [
336
+ {
337
+ "name": "spender",
338
+ "type": "address",
339
+ "internalType": "address"
340
+ }
341
+ ]
342
+ }
322
343
  ]