@zoralabs/protocol-deployments 0.4.0 → 0.4.2

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.
@@ -1075,6 +1075,1240 @@ export const callerAndCommenterConfig = {
1075
1075
  abi: callerAndCommenterABI,
1076
1076
  } as const
1077
1077
 
1078
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1079
+ // Coin
1080
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1081
+
1082
+ export const coinABI = [
1083
+ {
1084
+ type: 'constructor',
1085
+ inputs: [
1086
+ {
1087
+ name: '_protocolRewardRecipient',
1088
+ internalType: 'address',
1089
+ type: 'address',
1090
+ },
1091
+ { name: '_protocolRewards', internalType: 'address', type: 'address' },
1092
+ { name: '_weth', internalType: 'address', type: 'address' },
1093
+ {
1094
+ name: '_nonfungiblePositionManager',
1095
+ internalType: 'address',
1096
+ type: 'address',
1097
+ },
1098
+ { name: '_swapRouter', internalType: 'address', type: 'address' },
1099
+ ],
1100
+ stateMutability: 'nonpayable',
1101
+ },
1102
+ { type: 'receive', stateMutability: 'payable' },
1103
+ {
1104
+ type: 'function',
1105
+ inputs: [],
1106
+ name: 'DOMAIN_SEPARATOR',
1107
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1108
+ stateMutability: 'view',
1109
+ },
1110
+ {
1111
+ type: 'function',
1112
+ inputs: [],
1113
+ name: 'MAX_TOTAL_SUPPLY',
1114
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1115
+ stateMutability: 'view',
1116
+ },
1117
+ {
1118
+ type: 'function',
1119
+ inputs: [],
1120
+ name: 'MIN_ORDER_SIZE',
1121
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1122
+ stateMutability: 'view',
1123
+ },
1124
+ {
1125
+ type: 'function',
1126
+ inputs: [],
1127
+ name: 'PLATFORM_REFERRER_FEE_BPS',
1128
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1129
+ stateMutability: 'view',
1130
+ },
1131
+ {
1132
+ type: 'function',
1133
+ inputs: [],
1134
+ name: 'PROTOCOL_FEE_BPS',
1135
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1136
+ stateMutability: 'view',
1137
+ },
1138
+ {
1139
+ type: 'function',
1140
+ inputs: [],
1141
+ name: 'TOKEN_CREATOR_FEE_BPS',
1142
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1143
+ stateMutability: 'view',
1144
+ },
1145
+ {
1146
+ type: 'function',
1147
+ inputs: [],
1148
+ name: 'TOTAL_FEE_BPS',
1149
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1150
+ stateMutability: 'view',
1151
+ },
1152
+ {
1153
+ type: 'function',
1154
+ inputs: [],
1155
+ name: 'TRADE_REFERRER_FEE_BPS',
1156
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1157
+ stateMutability: 'view',
1158
+ },
1159
+ {
1160
+ type: 'function',
1161
+ inputs: [],
1162
+ name: 'WETH',
1163
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1164
+ stateMutability: 'view',
1165
+ },
1166
+ {
1167
+ type: 'function',
1168
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
1169
+ name: 'addOwner',
1170
+ outputs: [],
1171
+ stateMutability: 'nonpayable',
1172
+ },
1173
+ {
1174
+ type: 'function',
1175
+ inputs: [
1176
+ { name: 'accounts', internalType: 'address[]', type: 'address[]' },
1177
+ ],
1178
+ name: 'addOwners',
1179
+ outputs: [],
1180
+ stateMutability: 'nonpayable',
1181
+ },
1182
+ {
1183
+ type: 'function',
1184
+ inputs: [
1185
+ { name: 'owner', internalType: 'address', type: 'address' },
1186
+ { name: 'spender', internalType: 'address', type: 'address' },
1187
+ ],
1188
+ name: 'allowance',
1189
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1190
+ stateMutability: 'view',
1191
+ },
1192
+ {
1193
+ type: 'function',
1194
+ inputs: [
1195
+ { name: 'spender', internalType: 'address', type: 'address' },
1196
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
1197
+ ],
1198
+ name: 'approve',
1199
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1200
+ stateMutability: 'nonpayable',
1201
+ },
1202
+ {
1203
+ type: 'function',
1204
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
1205
+ name: 'balanceOf',
1206
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1207
+ stateMutability: 'view',
1208
+ },
1209
+ {
1210
+ type: 'function',
1211
+ inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
1212
+ name: 'burn',
1213
+ outputs: [],
1214
+ stateMutability: 'nonpayable',
1215
+ },
1216
+ {
1217
+ type: 'function',
1218
+ inputs: [
1219
+ { name: 'recipient', internalType: 'address', type: 'address' },
1220
+ { name: 'orderSize', internalType: 'uint256', type: 'uint256' },
1221
+ { name: 'minAmountOut', internalType: 'uint256', type: 'uint256' },
1222
+ { name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160' },
1223
+ { name: 'tradeReferrer', internalType: 'address', type: 'address' },
1224
+ ],
1225
+ name: 'buy',
1226
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1227
+ stateMutability: 'payable',
1228
+ },
1229
+ {
1230
+ type: 'function',
1231
+ inputs: [{ name: 'pushEthRewards', internalType: 'bool', type: 'bool' }],
1232
+ name: 'claimSecondaryRewards',
1233
+ outputs: [],
1234
+ stateMutability: 'nonpayable',
1235
+ },
1236
+ {
1237
+ type: 'function',
1238
+ inputs: [],
1239
+ name: 'contractURI',
1240
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
1241
+ stateMutability: 'view',
1242
+ },
1243
+ {
1244
+ type: 'function',
1245
+ inputs: [],
1246
+ name: 'contractVersion',
1247
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
1248
+ stateMutability: 'pure',
1249
+ },
1250
+ {
1251
+ type: 'function',
1252
+ inputs: [],
1253
+ name: 'currency',
1254
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1255
+ stateMutability: 'view',
1256
+ },
1257
+ {
1258
+ type: 'function',
1259
+ inputs: [],
1260
+ name: 'decimals',
1261
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
1262
+ stateMutability: 'view',
1263
+ },
1264
+ {
1265
+ type: 'function',
1266
+ inputs: [],
1267
+ name: 'eip712Domain',
1268
+ outputs: [
1269
+ { name: 'fields', internalType: 'bytes1', type: 'bytes1' },
1270
+ { name: 'name', internalType: 'string', type: 'string' },
1271
+ { name: 'version', internalType: 'string', type: 'string' },
1272
+ { name: 'chainId', internalType: 'uint256', type: 'uint256' },
1273
+ { name: 'verifyingContract', internalType: 'address', type: 'address' },
1274
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
1275
+ { name: 'extensions', internalType: 'uint256[]', type: 'uint256[]' },
1276
+ ],
1277
+ stateMutability: 'view',
1278
+ },
1279
+ {
1280
+ type: 'function',
1281
+ inputs: [
1282
+ { name: 'payoutRecipient_', internalType: 'address', type: 'address' },
1283
+ { name: 'owners_', internalType: 'address[]', type: 'address[]' },
1284
+ { name: 'tokenURI_', internalType: 'string', type: 'string' },
1285
+ { name: 'name_', internalType: 'string', type: 'string' },
1286
+ { name: 'symbol_', internalType: 'string', type: 'string' },
1287
+ { name: 'platformReferrer_', internalType: 'address', type: 'address' },
1288
+ { name: 'currency_', internalType: 'address', type: 'address' },
1289
+ { name: 'tickLower_', internalType: 'int24', type: 'int24' },
1290
+ ],
1291
+ name: 'initialize',
1292
+ outputs: [],
1293
+ stateMutability: 'nonpayable',
1294
+ },
1295
+ {
1296
+ type: 'function',
1297
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
1298
+ name: 'isOwner',
1299
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1300
+ stateMutability: 'view',
1301
+ },
1302
+ {
1303
+ type: 'function',
1304
+ inputs: [],
1305
+ name: 'lpTokenId',
1306
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1307
+ stateMutability: 'view',
1308
+ },
1309
+ {
1310
+ type: 'function',
1311
+ inputs: [],
1312
+ name: 'name',
1313
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
1314
+ stateMutability: 'view',
1315
+ },
1316
+ {
1317
+ type: 'function',
1318
+ inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
1319
+ name: 'nonces',
1320
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1321
+ stateMutability: 'view',
1322
+ },
1323
+ {
1324
+ type: 'function',
1325
+ inputs: [],
1326
+ name: 'nonfungiblePositionManager',
1327
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1328
+ stateMutability: 'view',
1329
+ },
1330
+ {
1331
+ type: 'function',
1332
+ inputs: [
1333
+ { name: '', internalType: 'address', type: 'address' },
1334
+ { name: '', internalType: 'address', type: 'address' },
1335
+ { name: '', internalType: 'uint256', type: 'uint256' },
1336
+ { name: '', internalType: 'bytes', type: 'bytes' },
1337
+ ],
1338
+ name: 'onERC721Received',
1339
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
1340
+ stateMutability: 'view',
1341
+ },
1342
+ {
1343
+ type: 'function',
1344
+ inputs: [],
1345
+ name: 'owners',
1346
+ outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
1347
+ stateMutability: 'view',
1348
+ },
1349
+ {
1350
+ type: 'function',
1351
+ inputs: [],
1352
+ name: 'payoutRecipient',
1353
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1354
+ stateMutability: 'view',
1355
+ },
1356
+ {
1357
+ type: 'function',
1358
+ inputs: [
1359
+ { name: 'owner', internalType: 'address', type: 'address' },
1360
+ { name: 'spender', internalType: 'address', type: 'address' },
1361
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
1362
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
1363
+ { name: 'v', internalType: 'uint8', type: 'uint8' },
1364
+ { name: 'r', internalType: 'bytes32', type: 'bytes32' },
1365
+ { name: 's', internalType: 'bytes32', type: 'bytes32' },
1366
+ ],
1367
+ name: 'permit',
1368
+ outputs: [],
1369
+ stateMutability: 'nonpayable',
1370
+ },
1371
+ {
1372
+ type: 'function',
1373
+ inputs: [],
1374
+ name: 'platformReferrer',
1375
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1376
+ stateMutability: 'view',
1377
+ },
1378
+ {
1379
+ type: 'function',
1380
+ inputs: [],
1381
+ name: 'poolAddress',
1382
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1383
+ stateMutability: 'view',
1384
+ },
1385
+ {
1386
+ type: 'function',
1387
+ inputs: [],
1388
+ name: 'protocolRewardRecipient',
1389
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1390
+ stateMutability: 'view',
1391
+ },
1392
+ {
1393
+ type: 'function',
1394
+ inputs: [],
1395
+ name: 'protocolRewards',
1396
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1397
+ stateMutability: 'view',
1398
+ },
1399
+ {
1400
+ type: 'function',
1401
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
1402
+ name: 'removeOwner',
1403
+ outputs: [],
1404
+ stateMutability: 'nonpayable',
1405
+ },
1406
+ {
1407
+ type: 'function',
1408
+ inputs: [
1409
+ { name: 'accounts', internalType: 'address[]', type: 'address[]' },
1410
+ ],
1411
+ name: 'removeOwners',
1412
+ outputs: [],
1413
+ stateMutability: 'nonpayable',
1414
+ },
1415
+ {
1416
+ type: 'function',
1417
+ inputs: [],
1418
+ name: 'revokeOwnership',
1419
+ outputs: [],
1420
+ stateMutability: 'nonpayable',
1421
+ },
1422
+ {
1423
+ type: 'function',
1424
+ inputs: [
1425
+ { name: 'recipient', internalType: 'address', type: 'address' },
1426
+ { name: 'orderSize', internalType: 'uint256', type: 'uint256' },
1427
+ { name: 'minAmountOut', internalType: 'uint256', type: 'uint256' },
1428
+ { name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160' },
1429
+ { name: 'tradeReferrer', internalType: 'address', type: 'address' },
1430
+ ],
1431
+ name: 'sell',
1432
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1433
+ stateMutability: 'nonpayable',
1434
+ },
1435
+ {
1436
+ type: 'function',
1437
+ inputs: [{ name: 'newURI', internalType: 'string', type: 'string' }],
1438
+ name: 'setContractURI',
1439
+ outputs: [],
1440
+ stateMutability: 'nonpayable',
1441
+ },
1442
+ {
1443
+ type: 'function',
1444
+ inputs: [
1445
+ { name: 'newPayoutRecipient', internalType: 'address', type: 'address' },
1446
+ ],
1447
+ name: 'setPayoutRecipient',
1448
+ outputs: [],
1449
+ stateMutability: 'nonpayable',
1450
+ },
1451
+ {
1452
+ type: 'function',
1453
+ inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
1454
+ name: 'supportsInterface',
1455
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1456
+ stateMutability: 'pure',
1457
+ },
1458
+ {
1459
+ type: 'function',
1460
+ inputs: [],
1461
+ name: 'swapRouter',
1462
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1463
+ stateMutability: 'view',
1464
+ },
1465
+ {
1466
+ type: 'function',
1467
+ inputs: [],
1468
+ name: 'symbol',
1469
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
1470
+ stateMutability: 'view',
1471
+ },
1472
+ {
1473
+ type: 'function',
1474
+ inputs: [],
1475
+ name: 'tokenURI',
1476
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
1477
+ stateMutability: 'view',
1478
+ },
1479
+ {
1480
+ type: 'function',
1481
+ inputs: [],
1482
+ name: 'totalSupply',
1483
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1484
+ stateMutability: 'view',
1485
+ },
1486
+ {
1487
+ type: 'function',
1488
+ inputs: [
1489
+ { name: 'to', internalType: 'address', type: 'address' },
1490
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
1491
+ ],
1492
+ name: 'transfer',
1493
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1494
+ stateMutability: 'nonpayable',
1495
+ },
1496
+ {
1497
+ type: 'function',
1498
+ inputs: [
1499
+ { name: 'from', internalType: 'address', type: 'address' },
1500
+ { name: 'to', internalType: 'address', type: 'address' },
1501
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
1502
+ ],
1503
+ name: 'transferFrom',
1504
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1505
+ stateMutability: 'nonpayable',
1506
+ },
1507
+ {
1508
+ type: 'function',
1509
+ inputs: [
1510
+ { name: 'amount0Delta', internalType: 'int256', type: 'int256' },
1511
+ { name: 'amount1Delta', internalType: 'int256', type: 'int256' },
1512
+ { name: '', internalType: 'bytes', type: 'bytes' },
1513
+ ],
1514
+ name: 'uniswapV3SwapCallback',
1515
+ outputs: [],
1516
+ stateMutability: 'nonpayable',
1517
+ },
1518
+ {
1519
+ type: 'event',
1520
+ anonymous: false,
1521
+ inputs: [
1522
+ {
1523
+ name: 'owner',
1524
+ internalType: 'address',
1525
+ type: 'address',
1526
+ indexed: true,
1527
+ },
1528
+ {
1529
+ name: 'spender',
1530
+ internalType: 'address',
1531
+ type: 'address',
1532
+ indexed: true,
1533
+ },
1534
+ {
1535
+ name: 'value',
1536
+ internalType: 'uint256',
1537
+ type: 'uint256',
1538
+ indexed: false,
1539
+ },
1540
+ ],
1541
+ name: 'Approval',
1542
+ },
1543
+ {
1544
+ type: 'event',
1545
+ anonymous: false,
1546
+ inputs: [
1547
+ {
1548
+ name: 'buyer',
1549
+ internalType: 'address',
1550
+ type: 'address',
1551
+ indexed: true,
1552
+ },
1553
+ {
1554
+ name: 'recipient',
1555
+ internalType: 'address',
1556
+ type: 'address',
1557
+ indexed: true,
1558
+ },
1559
+ {
1560
+ name: 'tradeReferrer',
1561
+ internalType: 'address',
1562
+ type: 'address',
1563
+ indexed: true,
1564
+ },
1565
+ {
1566
+ name: 'coinsPurchased',
1567
+ internalType: 'uint256',
1568
+ type: 'uint256',
1569
+ indexed: false,
1570
+ },
1571
+ {
1572
+ name: 'currency',
1573
+ internalType: 'address',
1574
+ type: 'address',
1575
+ indexed: false,
1576
+ },
1577
+ {
1578
+ name: 'amountFee',
1579
+ internalType: 'uint256',
1580
+ type: 'uint256',
1581
+ indexed: false,
1582
+ },
1583
+ {
1584
+ name: 'amountSold',
1585
+ internalType: 'uint256',
1586
+ type: 'uint256',
1587
+ indexed: false,
1588
+ },
1589
+ {
1590
+ name: 'comment',
1591
+ internalType: 'string',
1592
+ type: 'string',
1593
+ indexed: false,
1594
+ },
1595
+ ],
1596
+ name: 'CoinBuy',
1597
+ },
1598
+ {
1599
+ type: 'event',
1600
+ anonymous: false,
1601
+ inputs: [
1602
+ {
1603
+ name: 'creatorPayoutAddress',
1604
+ internalType: 'address',
1605
+ type: 'address',
1606
+ indexed: true,
1607
+ },
1608
+ {
1609
+ name: 'platformReferrer',
1610
+ internalType: 'address',
1611
+ type: 'address',
1612
+ indexed: true,
1613
+ },
1614
+ {
1615
+ name: 'protocolRewardRecipient',
1616
+ internalType: 'address',
1617
+ type: 'address',
1618
+ indexed: false,
1619
+ },
1620
+ {
1621
+ name: 'currency',
1622
+ internalType: 'address',
1623
+ type: 'address',
1624
+ indexed: false,
1625
+ },
1626
+ {
1627
+ name: 'marketRewards',
1628
+ internalType: 'struct ICoin.MarketRewards',
1629
+ type: 'tuple',
1630
+ components: [
1631
+ {
1632
+ name: 'totalAmountCurrency',
1633
+ internalType: 'uint256',
1634
+ type: 'uint256',
1635
+ },
1636
+ { name: 'totalAmountCoin', internalType: 'uint256', type: 'uint256' },
1637
+ {
1638
+ name: 'creatorPayoutAmountCurrency',
1639
+ internalType: 'uint256',
1640
+ type: 'uint256',
1641
+ },
1642
+ {
1643
+ name: 'creatorPayoutAmountCoin',
1644
+ internalType: 'uint256',
1645
+ type: 'uint256',
1646
+ },
1647
+ {
1648
+ name: 'platformReferrerAmountCurrency',
1649
+ internalType: 'uint256',
1650
+ type: 'uint256',
1651
+ },
1652
+ {
1653
+ name: 'platformReferrerAmountCoin',
1654
+ internalType: 'uint256',
1655
+ type: 'uint256',
1656
+ },
1657
+ {
1658
+ name: 'protocolAmountCurrency',
1659
+ internalType: 'uint256',
1660
+ type: 'uint256',
1661
+ },
1662
+ {
1663
+ name: 'protocolAmountCoin',
1664
+ internalType: 'uint256',
1665
+ type: 'uint256',
1666
+ },
1667
+ ],
1668
+ indexed: false,
1669
+ },
1670
+ ],
1671
+ name: 'CoinMarketRewards',
1672
+ },
1673
+ {
1674
+ type: 'event',
1675
+ anonymous: false,
1676
+ inputs: [
1677
+ {
1678
+ name: 'caller',
1679
+ internalType: 'address',
1680
+ type: 'address',
1681
+ indexed: true,
1682
+ },
1683
+ {
1684
+ name: 'prevRecipient',
1685
+ internalType: 'address',
1686
+ type: 'address',
1687
+ indexed: true,
1688
+ },
1689
+ {
1690
+ name: 'newRecipient',
1691
+ internalType: 'address',
1692
+ type: 'address',
1693
+ indexed: true,
1694
+ },
1695
+ ],
1696
+ name: 'CoinPayoutRecipientUpdated',
1697
+ },
1698
+ {
1699
+ type: 'event',
1700
+ anonymous: false,
1701
+ inputs: [
1702
+ {
1703
+ name: 'seller',
1704
+ internalType: 'address',
1705
+ type: 'address',
1706
+ indexed: true,
1707
+ },
1708
+ {
1709
+ name: 'recipient',
1710
+ internalType: 'address',
1711
+ type: 'address',
1712
+ indexed: true,
1713
+ },
1714
+ {
1715
+ name: 'tradeReferrer',
1716
+ internalType: 'address',
1717
+ type: 'address',
1718
+ indexed: true,
1719
+ },
1720
+ {
1721
+ name: 'coinsSold',
1722
+ internalType: 'uint256',
1723
+ type: 'uint256',
1724
+ indexed: false,
1725
+ },
1726
+ {
1727
+ name: 'currency',
1728
+ internalType: 'address',
1729
+ type: 'address',
1730
+ indexed: false,
1731
+ },
1732
+ {
1733
+ name: 'amountFee',
1734
+ internalType: 'uint256',
1735
+ type: 'uint256',
1736
+ indexed: false,
1737
+ },
1738
+ {
1739
+ name: 'amountPurchased',
1740
+ internalType: 'uint256',
1741
+ type: 'uint256',
1742
+ indexed: false,
1743
+ },
1744
+ {
1745
+ name: 'comment',
1746
+ internalType: 'string',
1747
+ type: 'string',
1748
+ indexed: false,
1749
+ },
1750
+ ],
1751
+ name: 'CoinSell',
1752
+ },
1753
+ {
1754
+ type: 'event',
1755
+ anonymous: false,
1756
+ inputs: [
1757
+ {
1758
+ name: 'creatorPayoutRecipient',
1759
+ internalType: 'address',
1760
+ type: 'address',
1761
+ indexed: true,
1762
+ },
1763
+ {
1764
+ name: 'platformReferrer',
1765
+ internalType: 'address',
1766
+ type: 'address',
1767
+ indexed: true,
1768
+ },
1769
+ {
1770
+ name: 'tradeReferrer',
1771
+ internalType: 'address',
1772
+ type: 'address',
1773
+ indexed: true,
1774
+ },
1775
+ {
1776
+ name: 'protocolRewardRecipient',
1777
+ internalType: 'address',
1778
+ type: 'address',
1779
+ indexed: false,
1780
+ },
1781
+ {
1782
+ name: 'creatorReward',
1783
+ internalType: 'uint256',
1784
+ type: 'uint256',
1785
+ indexed: false,
1786
+ },
1787
+ {
1788
+ name: 'platformReferrerReward',
1789
+ internalType: 'uint256',
1790
+ type: 'uint256',
1791
+ indexed: false,
1792
+ },
1793
+ {
1794
+ name: 'traderReferrerReward',
1795
+ internalType: 'uint256',
1796
+ type: 'uint256',
1797
+ indexed: false,
1798
+ },
1799
+ {
1800
+ name: 'protocolReward',
1801
+ internalType: 'uint256',
1802
+ type: 'uint256',
1803
+ indexed: false,
1804
+ },
1805
+ {
1806
+ name: 'currency',
1807
+ internalType: 'address',
1808
+ type: 'address',
1809
+ indexed: false,
1810
+ },
1811
+ ],
1812
+ name: 'CoinTradeRewards',
1813
+ },
1814
+ {
1815
+ type: 'event',
1816
+ anonymous: false,
1817
+ inputs: [
1818
+ {
1819
+ name: 'sender',
1820
+ internalType: 'address',
1821
+ type: 'address',
1822
+ indexed: true,
1823
+ },
1824
+ {
1825
+ name: 'recipient',
1826
+ internalType: 'address',
1827
+ type: 'address',
1828
+ indexed: true,
1829
+ },
1830
+ {
1831
+ name: 'amount',
1832
+ internalType: 'uint256',
1833
+ type: 'uint256',
1834
+ indexed: false,
1835
+ },
1836
+ {
1837
+ name: 'senderBalance',
1838
+ internalType: 'uint256',
1839
+ type: 'uint256',
1840
+ indexed: false,
1841
+ },
1842
+ {
1843
+ name: 'recipientBalance',
1844
+ internalType: 'uint256',
1845
+ type: 'uint256',
1846
+ indexed: false,
1847
+ },
1848
+ ],
1849
+ name: 'CoinTransfer',
1850
+ },
1851
+ {
1852
+ type: 'event',
1853
+ anonymous: false,
1854
+ inputs: [
1855
+ {
1856
+ name: 'caller',
1857
+ internalType: 'address',
1858
+ type: 'address',
1859
+ indexed: true,
1860
+ },
1861
+ {
1862
+ name: 'newURI',
1863
+ internalType: 'string',
1864
+ type: 'string',
1865
+ indexed: false,
1866
+ },
1867
+ { name: 'name', internalType: 'string', type: 'string', indexed: false },
1868
+ ],
1869
+ name: 'ContractMetadataUpdated',
1870
+ },
1871
+ { type: 'event', anonymous: false, inputs: [], name: 'ContractURIUpdated' },
1872
+ { type: 'event', anonymous: false, inputs: [], name: 'EIP712DomainChanged' },
1873
+ {
1874
+ type: 'event',
1875
+ anonymous: false,
1876
+ inputs: [
1877
+ {
1878
+ name: 'version',
1879
+ internalType: 'uint64',
1880
+ type: 'uint64',
1881
+ indexed: false,
1882
+ },
1883
+ ],
1884
+ name: 'Initialized',
1885
+ },
1886
+ {
1887
+ type: 'event',
1888
+ anonymous: false,
1889
+ inputs: [
1890
+ {
1891
+ name: 'caller',
1892
+ internalType: 'address',
1893
+ type: 'address',
1894
+ indexed: true,
1895
+ },
1896
+ {
1897
+ name: 'prevOwner',
1898
+ internalType: 'address',
1899
+ type: 'address',
1900
+ indexed: true,
1901
+ },
1902
+ {
1903
+ name: 'newOwner',
1904
+ internalType: 'address',
1905
+ type: 'address',
1906
+ indexed: true,
1907
+ },
1908
+ ],
1909
+ name: 'OwnerUpdated',
1910
+ },
1911
+ {
1912
+ type: 'event',
1913
+ anonymous: false,
1914
+ inputs: [
1915
+ { name: 'from', internalType: 'address', type: 'address', indexed: true },
1916
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
1917
+ {
1918
+ name: 'value',
1919
+ internalType: 'uint256',
1920
+ type: 'uint256',
1921
+ indexed: false,
1922
+ },
1923
+ ],
1924
+ name: 'Transfer',
1925
+ },
1926
+ {
1927
+ type: 'error',
1928
+ inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
1929
+ name: 'AddressEmptyCode',
1930
+ },
1931
+ {
1932
+ type: 'error',
1933
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
1934
+ name: 'AddressInsufficientBalance',
1935
+ },
1936
+ { type: 'error', inputs: [], name: 'AddressZero' },
1937
+ { type: 'error', inputs: [], name: 'AlreadyOwner' },
1938
+ { type: 'error', inputs: [], name: 'ECDSAInvalidSignature' },
1939
+ {
1940
+ type: 'error',
1941
+ inputs: [{ name: 'length', internalType: 'uint256', type: 'uint256' }],
1942
+ name: 'ECDSAInvalidSignatureLength',
1943
+ },
1944
+ {
1945
+ type: 'error',
1946
+ inputs: [{ name: 's', internalType: 'bytes32', type: 'bytes32' }],
1947
+ name: 'ECDSAInvalidSignatureS',
1948
+ },
1949
+ {
1950
+ type: 'error',
1951
+ inputs: [
1952
+ { name: 'spender', internalType: 'address', type: 'address' },
1953
+ { name: 'allowance', internalType: 'uint256', type: 'uint256' },
1954
+ { name: 'needed', internalType: 'uint256', type: 'uint256' },
1955
+ ],
1956
+ name: 'ERC20InsufficientAllowance',
1957
+ },
1958
+ {
1959
+ type: 'error',
1960
+ inputs: [
1961
+ { name: 'sender', internalType: 'address', type: 'address' },
1962
+ { name: 'balance', internalType: 'uint256', type: 'uint256' },
1963
+ { name: 'needed', internalType: 'uint256', type: 'uint256' },
1964
+ ],
1965
+ name: 'ERC20InsufficientBalance',
1966
+ },
1967
+ {
1968
+ type: 'error',
1969
+ inputs: [{ name: 'approver', internalType: 'address', type: 'address' }],
1970
+ name: 'ERC20InvalidApprover',
1971
+ },
1972
+ {
1973
+ type: 'error',
1974
+ inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }],
1975
+ name: 'ERC20InvalidReceiver',
1976
+ },
1977
+ {
1978
+ type: 'error',
1979
+ inputs: [{ name: 'sender', internalType: 'address', type: 'address' }],
1980
+ name: 'ERC20InvalidSender',
1981
+ },
1982
+ {
1983
+ type: 'error',
1984
+ inputs: [{ name: 'spender', internalType: 'address', type: 'address' }],
1985
+ name: 'ERC20InvalidSpender',
1986
+ },
1987
+ { type: 'error', inputs: [], name: 'ERC20TransferAmountMismatch' },
1988
+ {
1989
+ type: 'error',
1990
+ inputs: [{ name: 'deadline', internalType: 'uint256', type: 'uint256' }],
1991
+ name: 'ERC2612ExpiredSignature',
1992
+ },
1993
+ {
1994
+ type: 'error',
1995
+ inputs: [
1996
+ { name: 'signer', internalType: 'address', type: 'address' },
1997
+ { name: 'owner', internalType: 'address', type: 'address' },
1998
+ ],
1999
+ name: 'ERC2612InvalidSigner',
2000
+ },
2001
+ { type: 'error', inputs: [], name: 'EthAmountMismatch' },
2002
+ { type: 'error', inputs: [], name: 'EthAmountTooSmall' },
2003
+ { type: 'error', inputs: [], name: 'EthTransferFailed' },
2004
+ { type: 'error', inputs: [], name: 'EthTransferInvalid' },
2005
+ { type: 'error', inputs: [], name: 'FailedInnerCall' },
2006
+ { type: 'error', inputs: [], name: 'InitialOrderSizeTooLarge' },
2007
+ { type: 'error', inputs: [], name: 'InsufficientFunds' },
2008
+ { type: 'error', inputs: [], name: 'InsufficientLiquidity' },
2009
+ {
2010
+ type: 'error',
2011
+ inputs: [
2012
+ { name: 'account', internalType: 'address', type: 'address' },
2013
+ { name: 'currentNonce', internalType: 'uint256', type: 'uint256' },
2014
+ ],
2015
+ name: 'InvalidAccountNonce',
2016
+ },
2017
+ { type: 'error', inputs: [], name: 'InvalidCurrencyLowerTick' },
2018
+ { type: 'error', inputs: [], name: 'InvalidInitialization' },
2019
+ { type: 'error', inputs: [], name: 'InvalidMarketType' },
2020
+ { type: 'error', inputs: [], name: 'InvalidWethLowerTick' },
2021
+ { type: 'error', inputs: [], name: 'MarketAlreadyGraduated' },
2022
+ { type: 'error', inputs: [], name: 'MarketNotGraduated' },
2023
+ { type: 'error', inputs: [], name: 'NotInitializing' },
2024
+ { type: 'error', inputs: [], name: 'NotOwner' },
2025
+ { type: 'error', inputs: [], name: 'OneOwnerRequired' },
2026
+ { type: 'error', inputs: [], name: 'OnlyOwner' },
2027
+ { type: 'error', inputs: [], name: 'OnlyPool' },
2028
+ { type: 'error', inputs: [], name: 'OnlyWeth' },
2029
+ { type: 'error', inputs: [], name: 'OwnerCannotBeAddressZero' },
2030
+ { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' },
2031
+ {
2032
+ type: 'error',
2033
+ inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
2034
+ name: 'SafeERC20FailedOperation',
2035
+ },
2036
+ { type: 'error', inputs: [], name: 'SlippageBoundsExceeded' },
2037
+ { type: 'error', inputs: [], name: 'UseRevokeOwnershipToRemoveSelf' },
2038
+ ] as const
2039
+
2040
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2041
+ // CoinFactory
2042
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2043
+
2044
+ /**
2045
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC)
2046
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x1E670515d3A4C75C0860846c0605c84AF0e0db0d)
2047
+ */
2048
+ export const coinFactoryABI = [
2049
+ {
2050
+ type: 'constructor',
2051
+ inputs: [{ name: '_coinImpl', internalType: 'address', type: 'address' }],
2052
+ stateMutability: 'nonpayable',
2053
+ },
2054
+ {
2055
+ type: 'function',
2056
+ inputs: [],
2057
+ name: 'UPGRADE_INTERFACE_VERSION',
2058
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
2059
+ stateMutability: 'view',
2060
+ },
2061
+ {
2062
+ type: 'function',
2063
+ inputs: [],
2064
+ name: 'coinImpl',
2065
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2066
+ stateMutability: 'view',
2067
+ },
2068
+ {
2069
+ type: 'function',
2070
+ inputs: [
2071
+ { name: 'payoutRecipient', internalType: 'address', type: 'address' },
2072
+ { name: 'owners', internalType: 'address[]', type: 'address[]' },
2073
+ { name: 'uri', internalType: 'string', type: 'string' },
2074
+ { name: 'name', internalType: 'string', type: 'string' },
2075
+ { name: 'symbol', internalType: 'string', type: 'string' },
2076
+ { name: 'platformReferrer', internalType: 'address', type: 'address' },
2077
+ { name: 'currency', internalType: 'address', type: 'address' },
2078
+ { name: 'tickLower', internalType: 'int24', type: 'int24' },
2079
+ { name: 'orderSize', internalType: 'uint256', type: 'uint256' },
2080
+ ],
2081
+ name: 'deploy',
2082
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2083
+ stateMutability: 'payable',
2084
+ },
2085
+ {
2086
+ type: 'function',
2087
+ inputs: [],
2088
+ name: 'implementation',
2089
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2090
+ stateMutability: 'view',
2091
+ },
2092
+ {
2093
+ type: 'function',
2094
+ inputs: [
2095
+ { name: 'initialOwner', internalType: 'address', type: 'address' },
2096
+ ],
2097
+ name: 'initialize',
2098
+ outputs: [],
2099
+ stateMutability: 'nonpayable',
2100
+ },
2101
+ {
2102
+ type: 'function',
2103
+ inputs: [],
2104
+ name: 'owner',
2105
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2106
+ stateMutability: 'view',
2107
+ },
2108
+ {
2109
+ type: 'function',
2110
+ inputs: [],
2111
+ name: 'proxiableUUID',
2112
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2113
+ stateMutability: 'view',
2114
+ },
2115
+ {
2116
+ type: 'function',
2117
+ inputs: [],
2118
+ name: 'renounceOwnership',
2119
+ outputs: [],
2120
+ stateMutability: 'nonpayable',
2121
+ },
2122
+ {
2123
+ type: 'function',
2124
+ inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
2125
+ name: 'transferOwnership',
2126
+ outputs: [],
2127
+ stateMutability: 'nonpayable',
2128
+ },
2129
+ {
2130
+ type: 'function',
2131
+ inputs: [
2132
+ { name: 'newImplementation', internalType: 'address', type: 'address' },
2133
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
2134
+ ],
2135
+ name: 'upgradeToAndCall',
2136
+ outputs: [],
2137
+ stateMutability: 'payable',
2138
+ },
2139
+ {
2140
+ type: 'event',
2141
+ anonymous: false,
2142
+ inputs: [
2143
+ {
2144
+ name: 'deployer',
2145
+ internalType: 'address',
2146
+ type: 'address',
2147
+ indexed: true,
2148
+ },
2149
+ {
2150
+ name: 'creator',
2151
+ internalType: 'address',
2152
+ type: 'address',
2153
+ indexed: true,
2154
+ },
2155
+ {
2156
+ name: 'payoutRecipient',
2157
+ internalType: 'address',
2158
+ type: 'address',
2159
+ indexed: true,
2160
+ },
2161
+ {
2162
+ name: 'platformReferrer',
2163
+ internalType: 'address',
2164
+ type: 'address',
2165
+ indexed: false,
2166
+ },
2167
+ {
2168
+ name: 'currency',
2169
+ internalType: 'address',
2170
+ type: 'address',
2171
+ indexed: false,
2172
+ },
2173
+ {
2174
+ name: 'tokenURI',
2175
+ internalType: 'string',
2176
+ type: 'string',
2177
+ indexed: false,
2178
+ },
2179
+ { name: 'name', internalType: 'string', type: 'string', indexed: false },
2180
+ {
2181
+ name: 'symbol',
2182
+ internalType: 'string',
2183
+ type: 'string',
2184
+ indexed: false,
2185
+ },
2186
+ {
2187
+ name: 'coin',
2188
+ internalType: 'address',
2189
+ type: 'address',
2190
+ indexed: false,
2191
+ },
2192
+ {
2193
+ name: 'pool',
2194
+ internalType: 'address',
2195
+ type: 'address',
2196
+ indexed: false,
2197
+ },
2198
+ ],
2199
+ name: 'CoinCreated',
2200
+ },
2201
+ {
2202
+ type: 'event',
2203
+ anonymous: false,
2204
+ inputs: [
2205
+ {
2206
+ name: 'version',
2207
+ internalType: 'uint64',
2208
+ type: 'uint64',
2209
+ indexed: false,
2210
+ },
2211
+ ],
2212
+ name: 'Initialized',
2213
+ },
2214
+ {
2215
+ type: 'event',
2216
+ anonymous: false,
2217
+ inputs: [
2218
+ {
2219
+ name: 'previousOwner',
2220
+ internalType: 'address',
2221
+ type: 'address',
2222
+ indexed: true,
2223
+ },
2224
+ {
2225
+ name: 'newOwner',
2226
+ internalType: 'address',
2227
+ type: 'address',
2228
+ indexed: true,
2229
+ },
2230
+ ],
2231
+ name: 'OwnershipTransferred',
2232
+ },
2233
+ {
2234
+ type: 'event',
2235
+ anonymous: false,
2236
+ inputs: [
2237
+ {
2238
+ name: 'implementation',
2239
+ internalType: 'address',
2240
+ type: 'address',
2241
+ indexed: true,
2242
+ },
2243
+ ],
2244
+ name: 'Upgraded',
2245
+ },
2246
+ {
2247
+ type: 'error',
2248
+ inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
2249
+ name: 'AddressEmptyCode',
2250
+ },
2251
+ {
2252
+ type: 'error',
2253
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
2254
+ name: 'AddressInsufficientBalance',
2255
+ },
2256
+ { type: 'error', inputs: [], name: 'ERC1167FailedCreateClone' },
2257
+ {
2258
+ type: 'error',
2259
+ inputs: [
2260
+ { name: 'implementation', internalType: 'address', type: 'address' },
2261
+ ],
2262
+ name: 'ERC1967InvalidImplementation',
2263
+ },
2264
+ { type: 'error', inputs: [], name: 'ERC1967NonPayable' },
2265
+ { type: 'error', inputs: [], name: 'ERC20TransferAmountMismatch' },
2266
+ { type: 'error', inputs: [], name: 'EthTransferInvalid' },
2267
+ { type: 'error', inputs: [], name: 'FailedInnerCall' },
2268
+ { type: 'error', inputs: [], name: 'InvalidInitialization' },
2269
+ { type: 'error', inputs: [], name: 'NotInitializing' },
2270
+ {
2271
+ type: 'error',
2272
+ inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
2273
+ name: 'OwnableInvalidOwner',
2274
+ },
2275
+ {
2276
+ type: 'error',
2277
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
2278
+ name: 'OwnableUnauthorizedAccount',
2279
+ },
2280
+ { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' },
2281
+ {
2282
+ type: 'error',
2283
+ inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
2284
+ name: 'SafeERC20FailedOperation',
2285
+ },
2286
+ { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' },
2287
+ {
2288
+ type: 'error',
2289
+ inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
2290
+ name: 'UUPSUnsupportedProxiableUUID',
2291
+ },
2292
+ ] as const
2293
+
2294
+ /**
2295
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC)
2296
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x1E670515d3A4C75C0860846c0605c84AF0e0db0d)
2297
+ */
2298
+ export const coinFactoryAddress = {
2299
+ 8453: '0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC',
2300
+ 84532: '0x1E670515d3A4C75C0860846c0605c84AF0e0db0d',
2301
+ } as const
2302
+
2303
+ /**
2304
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC)
2305
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x1E670515d3A4C75C0860846c0605c84AF0e0db0d)
2306
+ */
2307
+ export const coinFactoryConfig = {
2308
+ address: coinFactoryAddress,
2309
+ abi: coinFactoryABI,
2310
+ } as const
2311
+
1078
2312
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1079
2313
  // Cointag
1080
2314
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -1482,6 +2716,7 @@ export const cointagABI = [
1482
2716
  name: 'InvalidUpgradePath',
1483
2717
  },
1484
2718
  { type: 'error', inputs: [], name: 'NotInitializing' },
2719
+ { type: 'error', inputs: [], name: 'NotUniswapV3Pool' },
1485
2720
  { type: 'error', inputs: [], name: 'OnlyPool' },
1486
2721
  { type: 'error', inputs: [], name: 'OnlyProtocolRewardsOrWeth' },
1487
2722
  {