@zoralabs/protocol-deployments 0.4.0-DEV.0 → 0.4.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.
package/dist/index.js CHANGED
@@ -1046,8 +1046,9 @@ var cointagABI = [
1046
1046
  {
1047
1047
  type: "constructor",
1048
1048
  inputs: [
1049
- { name: "_protocolRewards", internalType: "address", type: "address" },
1050
- { name: "_weth", internalType: "address", type: "address" }
1049
+ { name: "protocolRewards_", internalType: "address", type: "address" },
1050
+ { name: "weth_", internalType: "address", type: "address" },
1051
+ { name: "upgradeGate_", internalType: "address", type: "address" }
1051
1052
  ],
1052
1053
  stateMutability: "nonpayable"
1053
1054
  },
@@ -1062,42 +1063,66 @@ var cointagABI = [
1062
1063
  {
1063
1064
  type: "function",
1064
1065
  inputs: [],
1065
- name: "REQUIRED_OBSERVATION_CARDINALITY",
1066
- outputs: [{ name: "", internalType: "uint16", type: "uint16" }],
1066
+ name: "UPGRADE_INTERFACE_VERSION",
1067
+ outputs: [{ name: "", internalType: "string", type: "string" }],
1067
1068
  stateMutability: "view"
1068
1069
  },
1069
1070
  {
1070
1071
  type: "function",
1071
1072
  inputs: [],
1072
- name: "SLIPPAGE",
1073
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1074
- stateMutability: "view"
1073
+ name: "acceptOwnership",
1074
+ outputs: [],
1075
+ stateMutability: "nonpayable"
1075
1076
  },
1076
1077
  {
1077
1078
  type: "function",
1078
1079
  inputs: [],
1079
- name: "TIME_WEIGHTED_PRICE_PERIOD",
1080
- outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
1081
- stateMutability: "view"
1080
+ name: "config",
1081
+ outputs: [
1082
+ {
1083
+ name: "cointagStorage",
1084
+ internalType: "struct ICointag.CointagStorageV1",
1085
+ type: "tuple",
1086
+ components: [
1087
+ {
1088
+ name: "creatorRewardRecipient",
1089
+ internalType: "address",
1090
+ type: "address"
1091
+ },
1092
+ { name: "erc20", internalType: "contract IERC20", type: "address" },
1093
+ {
1094
+ name: "pool",
1095
+ internalType: "contract IUniswapV3Pool",
1096
+ type: "address"
1097
+ },
1098
+ {
1099
+ name: "percentageToBuyBurn",
1100
+ internalType: "uint256",
1101
+ type: "uint256"
1102
+ }
1103
+ ]
1104
+ }
1105
+ ],
1106
+ stateMutability: "pure"
1082
1107
  },
1083
1108
  {
1084
1109
  type: "function",
1085
1110
  inputs: [],
1086
- name: "contractVersion",
1111
+ name: "contractName",
1087
1112
  outputs: [{ name: "", internalType: "string", type: "string" }],
1088
1113
  stateMutability: "pure"
1089
1114
  },
1090
1115
  {
1091
1116
  type: "function",
1092
1117
  inputs: [],
1093
- name: "creatorRewardRecipient",
1094
- outputs: [{ name: "", internalType: "address", type: "address" }],
1095
- stateMutability: "view"
1118
+ name: "contractVersion",
1119
+ outputs: [{ name: "", internalType: "string", type: "string" }],
1120
+ stateMutability: "pure"
1096
1121
  },
1097
1122
  {
1098
1123
  type: "function",
1099
1124
  inputs: [],
1100
- name: "ensureObservationCardinality",
1125
+ name: "distribute",
1101
1126
  outputs: [],
1102
1127
  stateMutability: "nonpayable"
1103
1128
  },
@@ -1105,35 +1130,26 @@ var cointagABI = [
1105
1130
  type: "function",
1106
1131
  inputs: [],
1107
1132
  name: "erc20",
1108
- outputs: [
1109
- { name: "", internalType: "contract IBurnableERC20", type: "address" }
1110
- ],
1133
+ outputs: [{ name: "", internalType: "contract IERC20", type: "address" }],
1111
1134
  stateMutability: "view"
1112
1135
  },
1113
1136
  {
1114
1137
  type: "function",
1115
1138
  inputs: [],
1116
- name: "hasEnoughObservationCardinality",
1117
- outputs: [
1118
- { name: "", internalType: "bool", type: "bool" },
1119
- { name: "", internalType: "uint256", type: "uint256" }
1120
- ],
1139
+ name: "implementation",
1140
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1121
1141
  stateMutability: "view"
1122
1142
  },
1123
1143
  {
1124
1144
  type: "function",
1125
1145
  inputs: [
1126
1146
  {
1127
- name: "_creatorRewardRecipient",
1147
+ name: "creatorRewardRecipient",
1128
1148
  internalType: "address",
1129
1149
  type: "address"
1130
1150
  },
1131
- { name: "_pool", internalType: "address", type: "address" },
1132
- {
1133
- name: "_percentageToBuyBurn",
1134
- internalType: "uint256",
1135
- type: "uint256"
1136
- }
1151
+ { name: "pool_", internalType: "address", type: "address" },
1152
+ { name: "percentageToBuyBurn", internalType: "uint256", type: "uint256" }
1137
1153
  ],
1138
1154
  name: "initialize",
1139
1155
  outputs: [],
@@ -1142,8 +1158,15 @@ var cointagABI = [
1142
1158
  {
1143
1159
  type: "function",
1144
1160
  inputs: [],
1145
- name: "percentageToBuyBurn",
1146
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1161
+ name: "owner",
1162
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1163
+ stateMutability: "view"
1164
+ },
1165
+ {
1166
+ type: "function",
1167
+ inputs: [],
1168
+ name: "pendingOwner",
1169
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1147
1170
  stateMutability: "view"
1148
1171
  },
1149
1172
  {
@@ -1164,6 +1187,13 @@ var cointagABI = [
1164
1187
  ],
1165
1188
  stateMutability: "view"
1166
1189
  },
1190
+ {
1191
+ type: "function",
1192
+ inputs: [],
1193
+ name: "proxiableUUID",
1194
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
1195
+ stateMutability: "view"
1196
+ },
1167
1197
  {
1168
1198
  type: "function",
1169
1199
  inputs: [],
@@ -1171,6 +1201,20 @@ var cointagABI = [
1171
1201
  outputs: [],
1172
1202
  stateMutability: "nonpayable"
1173
1203
  },
1204
+ {
1205
+ type: "function",
1206
+ inputs: [],
1207
+ name: "renounceOwnership",
1208
+ outputs: [],
1209
+ stateMutability: "nonpayable"
1210
+ },
1211
+ {
1212
+ type: "function",
1213
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
1214
+ name: "transferOwnership",
1215
+ outputs: [],
1216
+ stateMutability: "nonpayable"
1217
+ },
1174
1218
  {
1175
1219
  type: "function",
1176
1220
  inputs: [
@@ -1182,6 +1226,25 @@ var cointagABI = [
1182
1226
  outputs: [],
1183
1227
  stateMutability: "nonpayable"
1184
1228
  },
1229
+ {
1230
+ type: "function",
1231
+ inputs: [],
1232
+ name: "upgradeGate",
1233
+ outputs: [
1234
+ { name: "", internalType: "contract IUpgradeGate", type: "address" }
1235
+ ],
1236
+ stateMutability: "view"
1237
+ },
1238
+ {
1239
+ type: "function",
1240
+ inputs: [
1241
+ { name: "newImplementation", internalType: "address", type: "address" },
1242
+ { name: "data", internalType: "bytes", type: "bytes" }
1243
+ ],
1244
+ name: "upgradeToAndCall",
1245
+ outputs: [],
1246
+ stateMutability: "payable"
1247
+ },
1185
1248
  {
1186
1249
  type: "function",
1187
1250
  inputs: [],
@@ -1194,31 +1257,31 @@ var cointagABI = [
1194
1257
  anonymous: false,
1195
1258
  inputs: [
1196
1259
  {
1197
- name: "amountERc20Received",
1260
+ name: "amountERC20Received",
1198
1261
  internalType: "uint256",
1199
1262
  type: "uint256",
1200
1263
  indexed: false
1201
1264
  },
1202
1265
  {
1203
- name: "amountERc20Burned",
1266
+ name: "amountERC20Burned",
1204
1267
  internalType: "uint256",
1205
1268
  type: "uint256",
1206
1269
  indexed: false
1207
1270
  },
1208
1271
  {
1209
- name: "amountEthSpent",
1272
+ name: "amountETHSpent",
1210
1273
  internalType: "uint256",
1211
1274
  type: "uint256",
1212
1275
  indexed: false
1213
1276
  },
1214
1277
  {
1215
- name: "amountEthToCreator",
1278
+ name: "amountETHToCreator",
1216
1279
  internalType: "uint256",
1217
1280
  type: "uint256",
1218
1281
  indexed: false
1219
1282
  },
1220
1283
  {
1221
- name: "totalEthReceived",
1284
+ name: "totalETHReceived",
1222
1285
  internalType: "uint256",
1223
1286
  type: "uint256",
1224
1287
  indexed: false
@@ -1238,6 +1301,25 @@ var cointagABI = [
1238
1301
  ],
1239
1302
  name: "BuyBurn"
1240
1303
  },
1304
+ {
1305
+ type: "event",
1306
+ anonymous: false,
1307
+ inputs: [
1308
+ {
1309
+ name: "amount",
1310
+ internalType: "uint256",
1311
+ type: "uint256",
1312
+ indexed: true
1313
+ },
1314
+ {
1315
+ name: "sender",
1316
+ internalType: "address",
1317
+ type: "address",
1318
+ indexed: true
1319
+ }
1320
+ ],
1321
+ name: "EthReceived"
1322
+ },
1241
1323
  {
1242
1324
  type: "event",
1243
1325
  anonymous: false,
@@ -1282,6 +1364,57 @@ var cointagABI = [
1282
1364
  ],
1283
1365
  name: "Initialized"
1284
1366
  },
1367
+ {
1368
+ type: "event",
1369
+ anonymous: false,
1370
+ inputs: [
1371
+ {
1372
+ name: "previousOwner",
1373
+ internalType: "address",
1374
+ type: "address",
1375
+ indexed: true
1376
+ },
1377
+ {
1378
+ name: "newOwner",
1379
+ internalType: "address",
1380
+ type: "address",
1381
+ indexed: true
1382
+ }
1383
+ ],
1384
+ name: "OwnershipTransferStarted"
1385
+ },
1386
+ {
1387
+ type: "event",
1388
+ anonymous: false,
1389
+ inputs: [
1390
+ {
1391
+ name: "previousOwner",
1392
+ internalType: "address",
1393
+ type: "address",
1394
+ indexed: true
1395
+ },
1396
+ {
1397
+ name: "newOwner",
1398
+ internalType: "address",
1399
+ type: "address",
1400
+ indexed: true
1401
+ }
1402
+ ],
1403
+ name: "OwnershipTransferred"
1404
+ },
1405
+ {
1406
+ type: "event",
1407
+ anonymous: false,
1408
+ inputs: [
1409
+ {
1410
+ name: "implementation",
1411
+ internalType: "address",
1412
+ type: "address",
1413
+ indexed: true
1414
+ }
1415
+ ],
1416
+ name: "Upgraded"
1417
+ },
1285
1418
  {
1286
1419
  type: "error",
1287
1420
  inputs: [{ name: "target", internalType: "address", type: "address" }],
@@ -1292,31 +1425,59 @@ var cointagABI = [
1292
1425
  inputs: [{ name: "account", internalType: "address", type: "address" }],
1293
1426
  name: "AddressInsufficientBalance"
1294
1427
  },
1428
+ { type: "error", inputs: [], name: "AddressZero" },
1295
1429
  {
1296
1430
  type: "error",
1297
1431
  inputs: [
1298
- { name: "amountOut", internalType: "uint256", type: "uint256" },
1299
- { name: "amountOutMinimum", internalType: "uint256", type: "uint256" }
1432
+ { name: "implementation", internalType: "address", type: "address" }
1300
1433
  ],
1301
- name: "AmountOutLessThanMinimum"
1434
+ name: "ERC1967InvalidImplementation"
1302
1435
  },
1436
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
1303
1437
  { type: "error", inputs: [], name: "FailedInnerCall" },
1304
1438
  { type: "error", inputs: [], name: "InvalidInitialization" },
1305
1439
  {
1306
1440
  type: "error",
1307
1441
  inputs: [
1308
- { name: "requiredCardinality", internalType: "uint256", type: "uint256" },
1309
- { name: "currentCardinality", internalType: "uint256", type: "uint256" }
1442
+ { name: "oldImpl", internalType: "address", type: "address" },
1443
+ { name: "newImpl", internalType: "address", type: "address" }
1310
1444
  ],
1311
- name: "NotEnoughObservationCardinality"
1445
+ name: "InvalidUpgradePath"
1312
1446
  },
1313
1447
  { type: "error", inputs: [], name: "NotInitializing" },
1314
1448
  { type: "error", inputs: [], name: "OnlyPool" },
1315
1449
  { type: "error", inputs: [], name: "OnlyProtocolRewardsOrWeth" },
1450
+ {
1451
+ type: "error",
1452
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
1453
+ name: "OwnableInvalidOwner"
1454
+ },
1455
+ {
1456
+ type: "error",
1457
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
1458
+ name: "OwnableUnauthorizedAccount"
1459
+ },
1460
+ { type: "error", inputs: [], name: "PoolNeedsOneTokenToBeWETH" },
1316
1461
  {
1317
1462
  type: "error",
1318
1463
  inputs: [{ name: "token", internalType: "address", type: "address" }],
1319
1464
  name: "SafeERC20FailedOperation"
1465
+ },
1466
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
1467
+ {
1468
+ type: "error",
1469
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
1470
+ name: "UUPSUnsupportedProxiableUUID"
1471
+ },
1472
+ { type: "error", inputs: [], name: "UnknownBurnError" },
1473
+ { type: "error", inputs: [], name: "UnknownSwapError" },
1474
+ {
1475
+ type: "error",
1476
+ inputs: [
1477
+ { name: "current", internalType: "string", type: "string" },
1478
+ { name: "newName", internalType: "string", type: "string" }
1479
+ ],
1480
+ name: "UpgradeToMismatchedContractName"
1320
1481
  }
1321
1482
  ];
1322
1483
  var cointagFactoryABI = [
@@ -1393,27 +1554,6 @@ var cointagFactoryABI = [
1393
1554
  outputs: [{ name: "", internalType: "address", type: "address" }],
1394
1555
  stateMutability: "view"
1395
1556
  },
1396
- {
1397
- type: "function",
1398
- inputs: [
1399
- { name: "_implementation", internalType: "address", type: "address" },
1400
- {
1401
- name: "_creatorRewardRecipient",
1402
- internalType: "address",
1403
- type: "address"
1404
- },
1405
- { name: "_pool", internalType: "address", type: "address" },
1406
- {
1407
- name: "_percentageToBuyBurn",
1408
- internalType: "uint256",
1409
- type: "uint256"
1410
- },
1411
- { name: "saltSource", internalType: "bytes", type: "bytes" }
1412
- ],
1413
- name: "getCointagAddressForImpl",
1414
- outputs: [{ name: "", internalType: "address", type: "address" }],
1415
- stateMutability: "view"
1416
- },
1417
1557
  {
1418
1558
  type: "function",
1419
1559
  inputs: [
@@ -1506,6 +1646,15 @@ var cointagFactoryABI = [
1506
1646
  outputs: [],
1507
1647
  stateMutability: "nonpayable"
1508
1648
  },
1649
+ {
1650
+ type: "function",
1651
+ inputs: [],
1652
+ name: "upgradeGate",
1653
+ outputs: [
1654
+ { name: "", internalType: "contract IUpgradeGate", type: "address" }
1655
+ ],
1656
+ stateMutability: "view"
1657
+ },
1509
1658
  {
1510
1659
  type: "function",
1511
1660
  inputs: [
@@ -1629,7 +1778,6 @@ var cointagFactoryABI = [
1629
1778
  name: "AddressEmptyCode"
1630
1779
  },
1631
1780
  { type: "error", inputs: [], name: "AddressZero" },
1632
- { type: "error", inputs: [], name: "ERC1167FailedCreateClone" },
1633
1781
  {
1634
1782
  type: "error",
1635
1783
  inputs: [
@@ -1677,7 +1825,8 @@ var cointagFactoryABI = [
1677
1825
  var cointagFactoryAddress = {
1678
1826
  8453: "0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F",
1679
1827
  84532: "0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F",
1680
- 7777777: "0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F"
1828
+ 7777777: "0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F",
1829
+ 999999999: "0x77777773Bd7Cccb7E704315CA51245707E19B0DE"
1681
1830
  };
1682
1831
  var cointagFactoryConfig = {
1683
1832
  address: cointagFactoryAddress,
@@ -4978,7 +5127,7 @@ var secondarySwapABI = [
4978
5127
  indexed: true
4979
5128
  },
4980
5129
  {
4981
- name: "amountEthSold",
5130
+ name: "amountETHSold",
4982
5131
  internalType: "uint256",
4983
5132
  type: "uint256",
4984
5133
  indexed: false
@@ -5058,7 +5207,7 @@ var secondarySwapABI = [
5058
5207
  indexed: true
5059
5208
  },
5060
5209
  {
5061
- name: "amountEthPurchased",
5210
+ name: "amountETHPurchased",
5062
5211
  internalType: "uint256",
5063
5212
  type: "uint256",
5064
5213
  indexed: false
@@ -12548,6 +12697,8 @@ var zoraSparks1155ABI = [
12548
12697
  { type: "error", inputs: [], name: "TokenNotMintable" }
12549
12698
  ];
12550
12699
  var zoraSparks1155Address = {
12700
+ 8453: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
12701
+ 84532: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
12551
12702
  7777777: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
12552
12703
  999999999: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D"
12553
12704
  };
@@ -12937,6 +13088,8 @@ var zoraSparksManagerImplABI = [
12937
13088
  }
12938
13089
  ];
12939
13090
  var zoraSparksManagerImplAddress = {
13091
+ 8453: "0x77777779acd6a96C0c57272112921A0b833c38fD",
13092
+ 84532: "0x77777779acd6a96C0c57272112921A0b833c38fD",
12940
13093
  7777777: "0x77777779acd6a96C0c57272112921A0b833c38fD",
12941
13094
  999999999: "0x77777779acd6a96C0c57272112921A0b833c38fD"
12942
13095
  };
@@ -14622,9 +14775,13 @@ var addresses2 = {
14622
14775
  SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
14623
14776
  },
14624
14777
  8453: {
14778
+ MINTS_1155: "0x0000000000000000000000000000000000000000",
14625
14779
  MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
14626
- SPARKS_MANAGER_IMPL: "0x0000000000000000000000000000000000000000",
14627
- SPARKS_MANAGER_IMPL_VERSION: "",
14780
+ MINTS_MANAGER: "0x0000000000000000000000000000000000000000",
14781
+ SPARKS_1155: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
14782
+ SPARKS_MANAGER: "0x77777779acd6a96C0c57272112921A0b833c38fD",
14783
+ SPARKS_MANAGER_IMPL: "0x122648369E390009F18c1B2b9B100AfB09B982fc",
14784
+ SPARKS_MANAGER_IMPL_VERSION: "0.2.4",
14628
14785
  SPONSORED_SPARKS_SPENDER: "0x6958A8866A40118e2CC21ab4752353835321b5e6",
14629
14786
  SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
14630
14787
  },
@@ -14643,9 +14800,13 @@ var addresses2 = {
14643
14800
  SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
14644
14801
  },
14645
14802
  84532: {
14803
+ MINTS_1155: "0x0000000000000000000000000000000000000000",
14646
14804
  MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
14647
- SPARKS_MANAGER_IMPL: "0x0000000000000000000000000000000000000000",
14648
- SPARKS_MANAGER_IMPL_VERSION: "",
14805
+ MINTS_MANAGER: "0x0000000000000000000000000000000000000000",
14806
+ SPARKS_1155: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
14807
+ SPARKS_MANAGER: "0x77777779acd6a96C0c57272112921A0b833c38fD",
14808
+ SPARKS_MANAGER_IMPL: "0x122648369E390009F18c1B2b9B100AfB09B982fc",
14809
+ SPARKS_MANAGER_IMPL_VERSION: "0.2.4",
14649
14810
  SPONSORED_SPARKS_SPENDER: "0x23150f60E233F519A01C735C29c1591f9E8353dE",
14650
14811
  SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
14651
14812
  },