@zoralabs/protocol-deployments 0.3.11-DEV.4 → 0.3.11

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoralabs/protocol-deployments",
3
- "version": "0.3.11-DEV.4",
3
+ "version": "0.3.11",
4
4
  "repository": "https://github.com/ourzora/zora-protocol",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1075,571 +1075,6 @@ export const callerAndCommenterConfig = {
1075
1075
  abi: callerAndCommenterABI,
1076
1076
  } as const
1077
1077
 
1078
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1079
- // Cointag
1080
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1081
-
1082
- export const cointagABI = [
1083
- {
1084
- type: 'constructor',
1085
- inputs: [
1086
- { name: '_protocolRewards', internalType: 'address', type: 'address' },
1087
- { name: '_weth', internalType: 'address', type: 'address' },
1088
- ],
1089
- stateMutability: 'nonpayable',
1090
- },
1091
- { type: 'receive', stateMutability: 'payable' },
1092
- {
1093
- type: 'function',
1094
- inputs: [],
1095
- name: 'PERCENTAGE_BASIS',
1096
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1097
- stateMutability: 'view',
1098
- },
1099
- {
1100
- type: 'function',
1101
- inputs: [],
1102
- name: 'creatorRewardRecipient',
1103
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
1104
- stateMutability: 'view',
1105
- },
1106
- {
1107
- type: 'function',
1108
- inputs: [],
1109
- name: 'erc20',
1110
- outputs: [
1111
- { name: '', internalType: 'contract IBurnableERC20', type: 'address' },
1112
- ],
1113
- stateMutability: 'view',
1114
- },
1115
- {
1116
- type: 'function',
1117
- inputs: [
1118
- {
1119
- name: '_creatorRewardRecipient',
1120
- internalType: 'address',
1121
- type: 'address',
1122
- },
1123
- { name: '_pool', internalType: 'address', type: 'address' },
1124
- {
1125
- name: '_percentageToBuyBurn',
1126
- internalType: 'uint256',
1127
- type: 'uint256',
1128
- },
1129
- ],
1130
- name: 'initialize',
1131
- outputs: [],
1132
- stateMutability: 'nonpayable',
1133
- },
1134
- {
1135
- type: 'function',
1136
- inputs: [],
1137
- name: 'percentageToBuyBurn',
1138
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1139
- stateMutability: 'view',
1140
- },
1141
- {
1142
- type: 'function',
1143
- inputs: [],
1144
- name: 'pool',
1145
- outputs: [
1146
- { name: '', internalType: 'contract IUniswapV3Pool', type: 'address' },
1147
- ],
1148
- stateMutability: 'view',
1149
- },
1150
- {
1151
- type: 'function',
1152
- inputs: [],
1153
- name: 'protocolRewards',
1154
- outputs: [
1155
- { name: '', internalType: 'contract IProtocolRewards', type: 'address' },
1156
- ],
1157
- stateMutability: 'view',
1158
- },
1159
- {
1160
- type: 'function',
1161
- inputs: [
1162
- { name: 'amount0Delta', internalType: 'int256', type: 'int256' },
1163
- { name: 'amount1Delta', internalType: 'int256', type: 'int256' },
1164
- { name: '', internalType: 'bytes', type: 'bytes' },
1165
- ],
1166
- name: 'uniswapV3SwapCallback',
1167
- outputs: [],
1168
- stateMutability: 'nonpayable',
1169
- },
1170
- {
1171
- type: 'function',
1172
- inputs: [],
1173
- name: 'weth',
1174
- outputs: [{ name: '', internalType: 'contract IWETH', type: 'address' }],
1175
- stateMutability: 'view',
1176
- },
1177
- {
1178
- type: 'function',
1179
- inputs: [],
1180
- name: 'withdraw',
1181
- outputs: [],
1182
- stateMutability: 'nonpayable',
1183
- },
1184
- {
1185
- type: 'event',
1186
- anonymous: false,
1187
- inputs: [
1188
- {
1189
- name: 'amountERc20Received',
1190
- internalType: 'uint256',
1191
- type: 'uint256',
1192
- indexed: false,
1193
- },
1194
- {
1195
- name: 'amountERc20Burned',
1196
- internalType: 'uint256',
1197
- type: 'uint256',
1198
- indexed: false,
1199
- },
1200
- {
1201
- name: 'amountEthSpent',
1202
- internalType: 'uint256',
1203
- type: 'uint256',
1204
- indexed: false,
1205
- },
1206
- {
1207
- name: 'amountEthToCreator',
1208
- internalType: 'uint256',
1209
- type: 'uint256',
1210
- indexed: false,
1211
- },
1212
- {
1213
- name: 'totalEthReceived',
1214
- internalType: 'uint256',
1215
- type: 'uint256',
1216
- indexed: false,
1217
- },
1218
- {
1219
- name: 'buyFailureError',
1220
- internalType: 'bytes',
1221
- type: 'bytes',
1222
- indexed: false,
1223
- },
1224
- {
1225
- name: 'burnFailureError',
1226
- internalType: 'bytes',
1227
- type: 'bytes',
1228
- indexed: false,
1229
- },
1230
- ],
1231
- name: 'BuyBurn',
1232
- },
1233
- {
1234
- type: 'event',
1235
- anonymous: false,
1236
- inputs: [
1237
- {
1238
- name: 'version',
1239
- internalType: 'uint64',
1240
- type: 'uint64',
1241
- indexed: false,
1242
- },
1243
- ],
1244
- name: 'Initialized',
1245
- },
1246
- {
1247
- type: 'event',
1248
- anonymous: false,
1249
- inputs: [
1250
- {
1251
- name: 'creatorRewardRecipient',
1252
- internalType: 'address',
1253
- type: 'address',
1254
- indexed: false,
1255
- },
1256
- {
1257
- name: 'erc20',
1258
- internalType: 'address',
1259
- type: 'address',
1260
- indexed: false,
1261
- },
1262
- {
1263
- name: 'pool',
1264
- internalType: 'address',
1265
- type: 'address',
1266
- indexed: false,
1267
- },
1268
- {
1269
- name: 'percentageToBuyBurn',
1270
- internalType: 'uint256',
1271
- type: 'uint256',
1272
- indexed: false,
1273
- },
1274
- ],
1275
- name: 'Initialized',
1276
- },
1277
- {
1278
- type: 'error',
1279
- inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
1280
- name: 'AddressEmptyCode',
1281
- },
1282
- {
1283
- type: 'error',
1284
- inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
1285
- name: 'AddressInsufficientBalance',
1286
- },
1287
- { type: 'error', inputs: [], name: 'FailedInnerCall' },
1288
- { type: 'error', inputs: [], name: 'InvalidInitialization' },
1289
- { type: 'error', inputs: [], name: 'NotInitializing' },
1290
- { type: 'error', inputs: [], name: 'ONLY_POOL' },
1291
- { type: 'error', inputs: [], name: 'ONLY_PROTOCOL_REWARDS_OR_WETH' },
1292
- {
1293
- type: 'error',
1294
- inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
1295
- name: 'SafeERC20FailedOperation',
1296
- },
1297
- ] as const
1298
-
1299
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1300
- // CointagFactory
1301
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1302
-
1303
- /**
1304
- * [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x77777779A8ed7943134E4E2D5C48698bCcBE8Be8)
1305
- */
1306
- export const cointagFactoryABI = [
1307
- {
1308
- type: 'constructor',
1309
- inputs: [
1310
- { name: '_protocolRewards', internalType: 'address', type: 'address' },
1311
- { name: '_weth', internalType: 'address', type: 'address' },
1312
- {
1313
- name: '_cointagImplementation',
1314
- internalType: 'address',
1315
- type: 'address',
1316
- },
1317
- ],
1318
- stateMutability: 'nonpayable',
1319
- },
1320
- {
1321
- type: 'function',
1322
- inputs: [],
1323
- name: 'UPGRADE_INTERFACE_VERSION',
1324
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
1325
- stateMutability: 'view',
1326
- },
1327
- {
1328
- type: 'function',
1329
- inputs: [],
1330
- name: 'acceptOwnership',
1331
- outputs: [],
1332
- stateMutability: 'nonpayable',
1333
- },
1334
- {
1335
- type: 'function',
1336
- inputs: [],
1337
- name: 'cointagImplementation',
1338
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
1339
- stateMutability: 'view',
1340
- },
1341
- {
1342
- type: 'function',
1343
- inputs: [],
1344
- name: 'contractName',
1345
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
1346
- stateMutability: 'pure',
1347
- },
1348
- {
1349
- type: 'function',
1350
- inputs: [],
1351
- name: 'contractURI',
1352
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
1353
- stateMutability: 'pure',
1354
- },
1355
- {
1356
- type: 'function',
1357
- inputs: [],
1358
- name: 'contractVersion',
1359
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
1360
- stateMutability: 'pure',
1361
- },
1362
- {
1363
- type: 'function',
1364
- inputs: [
1365
- {
1366
- name: '_creatorRewardRecipient',
1367
- internalType: 'address',
1368
- type: 'address',
1369
- },
1370
- { name: '_pool', internalType: 'address', type: 'address' },
1371
- {
1372
- name: '_percentageToBuyBurn',
1373
- internalType: 'uint256',
1374
- type: 'uint256',
1375
- },
1376
- { name: 'saltSource', internalType: 'bytes', type: 'bytes' },
1377
- ],
1378
- name: 'getCointagAddress',
1379
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
1380
- stateMutability: 'view',
1381
- },
1382
- {
1383
- type: 'function',
1384
- inputs: [
1385
- {
1386
- name: '_creatorRewardRecipient',
1387
- internalType: 'address',
1388
- type: 'address',
1389
- },
1390
- { name: '_pool', internalType: 'address', type: 'address' },
1391
- {
1392
- name: '_percentageToBuyBurn',
1393
- internalType: 'uint256',
1394
- type: 'uint256',
1395
- },
1396
- { name: 'saltSource', internalType: 'bytes', type: 'bytes' },
1397
- ],
1398
- name: 'getOrCreateCointag',
1399
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
1400
- stateMutability: 'nonpayable',
1401
- },
1402
- {
1403
- type: 'function',
1404
- inputs: [],
1405
- name: 'implementation',
1406
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
1407
- stateMutability: 'view',
1408
- },
1409
- {
1410
- type: 'function',
1411
- inputs: [
1412
- { name: '_defaultOwner', internalType: 'address', type: 'address' },
1413
- ],
1414
- name: 'initialize',
1415
- outputs: [],
1416
- stateMutability: 'nonpayable',
1417
- },
1418
- {
1419
- type: 'function',
1420
- inputs: [],
1421
- name: 'owner',
1422
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
1423
- stateMutability: 'view',
1424
- },
1425
- {
1426
- type: 'function',
1427
- inputs: [],
1428
- name: 'pendingOwner',
1429
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
1430
- stateMutability: 'view',
1431
- },
1432
- {
1433
- type: 'function',
1434
- inputs: [],
1435
- name: 'protocolRewards',
1436
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
1437
- stateMutability: 'view',
1438
- },
1439
- {
1440
- type: 'function',
1441
- inputs: [],
1442
- name: 'proxiableUUID',
1443
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1444
- stateMutability: 'view',
1445
- },
1446
- {
1447
- type: 'function',
1448
- inputs: [],
1449
- name: 'renounceOwnership',
1450
- outputs: [],
1451
- stateMutability: 'nonpayable',
1452
- },
1453
- {
1454
- type: 'function',
1455
- inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
1456
- name: 'transferOwnership',
1457
- outputs: [],
1458
- stateMutability: 'nonpayable',
1459
- },
1460
- {
1461
- type: 'function',
1462
- inputs: [
1463
- { name: 'newImplementation', internalType: 'address', type: 'address' },
1464
- { name: 'data', internalType: 'bytes', type: 'bytes' },
1465
- ],
1466
- name: 'upgradeToAndCall',
1467
- outputs: [],
1468
- stateMutability: 'payable',
1469
- },
1470
- {
1471
- type: 'function',
1472
- inputs: [],
1473
- name: 'weth',
1474
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
1475
- stateMutability: 'view',
1476
- },
1477
- {
1478
- type: 'event',
1479
- anonymous: false,
1480
- inputs: [
1481
- {
1482
- name: 'version',
1483
- internalType: 'uint64',
1484
- type: 'uint64',
1485
- indexed: false,
1486
- },
1487
- ],
1488
- name: 'Initialized',
1489
- },
1490
- {
1491
- type: 'event',
1492
- anonymous: false,
1493
- inputs: [
1494
- {
1495
- name: 'previousOwner',
1496
- internalType: 'address',
1497
- type: 'address',
1498
- indexed: true,
1499
- },
1500
- {
1501
- name: 'newOwner',
1502
- internalType: 'address',
1503
- type: 'address',
1504
- indexed: true,
1505
- },
1506
- ],
1507
- name: 'OwnershipTransferStarted',
1508
- },
1509
- {
1510
- type: 'event',
1511
- anonymous: false,
1512
- inputs: [
1513
- {
1514
- name: 'previousOwner',
1515
- internalType: 'address',
1516
- type: 'address',
1517
- indexed: true,
1518
- },
1519
- {
1520
- name: 'newOwner',
1521
- internalType: 'address',
1522
- type: 'address',
1523
- indexed: true,
1524
- },
1525
- ],
1526
- name: 'OwnershipTransferred',
1527
- },
1528
- {
1529
- type: 'event',
1530
- anonymous: false,
1531
- inputs: [
1532
- {
1533
- name: 'cointag',
1534
- internalType: 'address',
1535
- type: 'address',
1536
- indexed: true,
1537
- },
1538
- {
1539
- name: 'creatorRewardRecipient',
1540
- internalType: 'address',
1541
- type: 'address',
1542
- indexed: true,
1543
- },
1544
- {
1545
- name: 'erc20',
1546
- internalType: 'address',
1547
- type: 'address',
1548
- indexed: true,
1549
- },
1550
- {
1551
- name: 'pool',
1552
- internalType: 'address',
1553
- type: 'address',
1554
- indexed: false,
1555
- },
1556
- {
1557
- name: 'percentageToBuyBurn',
1558
- internalType: 'uint256',
1559
- type: 'uint256',
1560
- indexed: false,
1561
- },
1562
- {
1563
- name: 'saltSource',
1564
- internalType: 'bytes',
1565
- type: 'bytes',
1566
- indexed: false,
1567
- },
1568
- ],
1569
- name: 'SetupNewCointag',
1570
- },
1571
- {
1572
- type: 'event',
1573
- anonymous: false,
1574
- inputs: [
1575
- {
1576
- name: 'implementation',
1577
- internalType: 'address',
1578
- type: 'address',
1579
- indexed: true,
1580
- },
1581
- ],
1582
- name: 'Upgraded',
1583
- },
1584
- {
1585
- type: 'error',
1586
- inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
1587
- name: 'AddressEmptyCode',
1588
- },
1589
- { type: 'error', inputs: [], name: 'AddressZero' },
1590
- { type: 'error', inputs: [], name: 'ERC1167FailedCreateClone' },
1591
- {
1592
- type: 'error',
1593
- inputs: [
1594
- { name: 'implementation', internalType: 'address', type: 'address' },
1595
- ],
1596
- name: 'ERC1967InvalidImplementation',
1597
- },
1598
- { type: 'error', inputs: [], name: 'ERC1967NonPayable' },
1599
- { type: 'error', inputs: [], name: 'FailedInnerCall' },
1600
- { type: 'error', inputs: [], name: 'InvalidInitialization' },
1601
- { type: 'error', inputs: [], name: 'NotInitializing' },
1602
- {
1603
- type: 'error',
1604
- inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
1605
- name: 'OwnableInvalidOwner',
1606
- },
1607
- {
1608
- type: 'error',
1609
- inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
1610
- name: 'OwnableUnauthorizedAccount',
1611
- },
1612
- { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' },
1613
- {
1614
- type: 'error',
1615
- inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
1616
- name: 'UUPSUnsupportedProxiableUUID',
1617
- },
1618
- {
1619
- type: 'error',
1620
- inputs: [
1621
- { name: 'currentName', internalType: 'string', type: 'string' },
1622
- { name: 'newName', internalType: 'string', type: 'string' },
1623
- ],
1624
- name: 'UpgradeToMismatchedContractName',
1625
- },
1626
- ] as const
1627
-
1628
- /**
1629
- * [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x77777779A8ed7943134E4E2D5C48698bCcBE8Be8)
1630
- */
1631
- export const cointagFactoryAddress = {
1632
- 84532: '0x77777779A8ed7943134E4E2D5C48698bCcBE8Be8',
1633
- } as const
1634
-
1635
- /**
1636
- * [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x77777779A8ed7943134E4E2D5C48698bCcBE8Be8)
1637
- */
1638
- export const cointagFactoryConfig = {
1639
- address: cointagFactoryAddress,
1640
- abi: cointagFactoryABI,
1641
- } as const
1642
-
1643
1078
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1644
1079
  // Comments
1645
1080
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -13526,6 +12961,35 @@ export const zoraTimedSaleStrategyABI = [
13526
12961
  ],
13527
12962
  stateMutability: 'pure',
13528
12963
  },
12964
+ {
12965
+ type: 'function',
12966
+ inputs: [{ name: 'quantity', internalType: 'uint256', type: 'uint256' }],
12967
+ name: 'computeRewardsV2',
12968
+ outputs: [
12969
+ {
12970
+ name: '',
12971
+ internalType: 'struct IZoraTimedSaleStrategy.RewardsSettings',
12972
+ type: 'tuple',
12973
+ components: [
12974
+ { name: 'totalReward', internalType: 'uint256', type: 'uint256' },
12975
+ { name: 'creatorReward', internalType: 'uint256', type: 'uint256' },
12976
+ {
12977
+ name: 'createReferralReward',
12978
+ internalType: 'uint256',
12979
+ type: 'uint256',
12980
+ },
12981
+ {
12982
+ name: 'mintReferralReward',
12983
+ internalType: 'uint256',
12984
+ type: 'uint256',
12985
+ },
12986
+ { name: 'marketReward', internalType: 'uint256', type: 'uint256' },
12987
+ { name: 'zoraReward', internalType: 'uint256', type: 'uint256' },
12988
+ ],
12989
+ },
12990
+ ],
12991
+ stateMutability: 'pure',
12992
+ },
13529
12993
  {
13530
12994
  type: 'function',
13531
12995
  inputs: [],