@zoralabs/protocol-deployments 0.2.0 → 0.2.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.
- package/.turbo/turbo-build.log +43 -34
- package/CHANGELOG.md +13 -0
- package/LICENSE +21 -0
- package/dist/{_esm-ZN7ZVJVO.js → _esm-PPK7XFKN.js} +278 -382
- package/dist/_esm-PPK7XFKN.js.map +1 -0
- package/dist/{ccip-IGMHQQR7.js → ccip-6BNOCQCH.js} +3 -3
- package/dist/{chunk-2FDPSBOH.js → chunk-5JV63AHR.js} +58 -47
- package/dist/chunk-5JV63AHR.js.map +1 -0
- package/dist/{chunk-KIPP2F4J.js → chunk-6M375I5V.js} +956 -216
- package/dist/chunk-6M375I5V.js.map +1 -0
- package/dist/generated/wagmi.d.ts +1350 -73
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +672 -106
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +564 -16
- package/dist/index.js.map +1 -1
- package/dist/{secp256k1-R7PEGLZR.js → secp256k1-5CEPNAX3.js} +109 -87
- package/dist/secp256k1-5CEPNAX3.js.map +1 -0
- package/dist/typedData.d.ts +42 -1
- package/dist/typedData.d.ts.map +1 -1
- package/dist/types.d.ts +2 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/generated/1155.ts +14 -14
- package/src/generated/wagmi.ts +529 -24
- package/src/index.ts +1 -1
- package/src/typedData.ts +73 -0
- package/src/types.ts +8 -0
- package/tsconfig.build.json +1 -1
- package/tsconfig.json +1 -1
- package/dist/_esm-ZN7ZVJVO.js.map +0 -1
- package/dist/chunk-2FDPSBOH.js.map +0 -1
- package/dist/chunk-KIPP2F4J.js.map +0 -1
- package/dist/secp256k1-R7PEGLZR.js.map +0 -1
- /package/dist/{ccip-IGMHQQR7.js.map → ccip-6BNOCQCH.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
getAbiItem,
|
|
4
4
|
keccak256,
|
|
5
5
|
toHex
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-6M375I5V.js";
|
|
7
|
+
import "./chunk-5JV63AHR.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./chunk-3EJPJMEH.js";
|
|
@@ -834,6 +834,42 @@ var iPremintDefinitionsABI = [
|
|
|
834
834
|
outputs: []
|
|
835
835
|
}
|
|
836
836
|
];
|
|
837
|
+
var iSponsoredSparksSpenderActionABI = [
|
|
838
|
+
{
|
|
839
|
+
stateMutability: "nonpayable",
|
|
840
|
+
type: "function",
|
|
841
|
+
inputs: [
|
|
842
|
+
{
|
|
843
|
+
name: "sponsoredMintBatch",
|
|
844
|
+
internalType: "struct SponsoredMintBatch",
|
|
845
|
+
type: "tuple",
|
|
846
|
+
components: [
|
|
847
|
+
{ name: "verifier", internalType: "address", type: "address" },
|
|
848
|
+
{ name: "from", internalType: "address", type: "address" },
|
|
849
|
+
{
|
|
850
|
+
name: "destination",
|
|
851
|
+
internalType: "address payable",
|
|
852
|
+
type: "address"
|
|
853
|
+
},
|
|
854
|
+
{ name: "data", internalType: "bytes", type: "bytes" },
|
|
855
|
+
{
|
|
856
|
+
name: "expectedRedeemAmount",
|
|
857
|
+
internalType: "uint256",
|
|
858
|
+
type: "uint256"
|
|
859
|
+
},
|
|
860
|
+
{ name: "totalAmount", internalType: "uint256", type: "uint256" },
|
|
861
|
+
{ name: "ids", internalType: "uint256[]", type: "uint256[]" },
|
|
862
|
+
{ name: "quantities", internalType: "uint256[]", type: "uint256[]" },
|
|
863
|
+
{ name: "nonce", internalType: "uint256", type: "uint256" },
|
|
864
|
+
{ name: "deadline", internalType: "uint256", type: "uint256" }
|
|
865
|
+
]
|
|
866
|
+
},
|
|
867
|
+
{ name: "signature", internalType: "bytes", type: "bytes" }
|
|
868
|
+
],
|
|
869
|
+
name: "sponsoredMintBatch",
|
|
870
|
+
outputs: []
|
|
871
|
+
}
|
|
872
|
+
];
|
|
837
873
|
var iUnwrapAndForwardActionABI = [
|
|
838
874
|
{
|
|
839
875
|
stateMutability: "payable",
|
|
@@ -1210,6 +1246,380 @@ var protocolRewardsConfig = {
|
|
|
1210
1246
|
address: protocolRewardsAddress,
|
|
1211
1247
|
abi: protocolRewardsABI
|
|
1212
1248
|
};
|
|
1249
|
+
var sponsoredSparksSpenderABI = [
|
|
1250
|
+
{
|
|
1251
|
+
stateMutability: "nonpayable",
|
|
1252
|
+
type: "constructor",
|
|
1253
|
+
inputs: [
|
|
1254
|
+
{
|
|
1255
|
+
name: "_zoraSparks1155",
|
|
1256
|
+
internalType: "contract IZoraSparks1155",
|
|
1257
|
+
type: "address"
|
|
1258
|
+
},
|
|
1259
|
+
{ name: "fundsManager", internalType: "address", type: "address" },
|
|
1260
|
+
{
|
|
1261
|
+
name: "defaultVerifiers",
|
|
1262
|
+
internalType: "address[]",
|
|
1263
|
+
type: "address[]"
|
|
1264
|
+
}
|
|
1265
|
+
]
|
|
1266
|
+
},
|
|
1267
|
+
{ stateMutability: "payable", type: "receive" },
|
|
1268
|
+
{
|
|
1269
|
+
stateMutability: "view",
|
|
1270
|
+
type: "function",
|
|
1271
|
+
inputs: [],
|
|
1272
|
+
name: "NAME",
|
|
1273
|
+
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
stateMutability: "view",
|
|
1277
|
+
type: "function",
|
|
1278
|
+
inputs: [],
|
|
1279
|
+
name: "SPONSORSHIP_TYPEHASH",
|
|
1280
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
stateMutability: "view",
|
|
1284
|
+
type: "function",
|
|
1285
|
+
inputs: [],
|
|
1286
|
+
name: "VERSION",
|
|
1287
|
+
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
stateMutability: "nonpayable",
|
|
1291
|
+
type: "function",
|
|
1292
|
+
inputs: [],
|
|
1293
|
+
name: "acceptOwnership",
|
|
1294
|
+
outputs: []
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
stateMutability: "view",
|
|
1298
|
+
type: "function",
|
|
1299
|
+
inputs: [{ name: "", internalType: "address", type: "address" }],
|
|
1300
|
+
name: "allowedVerifiers",
|
|
1301
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }]
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
stateMutability: "pure",
|
|
1305
|
+
type: "function",
|
|
1306
|
+
inputs: [],
|
|
1307
|
+
name: "contractName",
|
|
1308
|
+
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
stateMutability: "pure",
|
|
1312
|
+
type: "function",
|
|
1313
|
+
inputs: [],
|
|
1314
|
+
name: "contractVersion",
|
|
1315
|
+
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
stateMutability: "view",
|
|
1319
|
+
type: "function",
|
|
1320
|
+
inputs: [],
|
|
1321
|
+
name: "eip712Domain",
|
|
1322
|
+
outputs: [
|
|
1323
|
+
{ name: "fields", internalType: "bytes1", type: "bytes1" },
|
|
1324
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
1325
|
+
{ name: "version", internalType: "string", type: "string" },
|
|
1326
|
+
{ name: "chainId", internalType: "uint256", type: "uint256" },
|
|
1327
|
+
{ name: "verifyingContract", internalType: "address", type: "address" },
|
|
1328
|
+
{ name: "salt", internalType: "bytes32", type: "bytes32" },
|
|
1329
|
+
{ name: "extensions", internalType: "uint256[]", type: "uint256[]" }
|
|
1330
|
+
]
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
stateMutability: "payable",
|
|
1334
|
+
type: "function",
|
|
1335
|
+
inputs: [],
|
|
1336
|
+
name: "fund",
|
|
1337
|
+
outputs: []
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
stateMutability: "view",
|
|
1341
|
+
type: "function",
|
|
1342
|
+
inputs: [
|
|
1343
|
+
{
|
|
1344
|
+
name: "sponsorship",
|
|
1345
|
+
internalType: "struct SponsoredMintBatch",
|
|
1346
|
+
type: "tuple",
|
|
1347
|
+
components: [
|
|
1348
|
+
{ name: "verifier", internalType: "address", type: "address" },
|
|
1349
|
+
{ name: "from", internalType: "address", type: "address" },
|
|
1350
|
+
{
|
|
1351
|
+
name: "destination",
|
|
1352
|
+
internalType: "address payable",
|
|
1353
|
+
type: "address"
|
|
1354
|
+
},
|
|
1355
|
+
{ name: "data", internalType: "bytes", type: "bytes" },
|
|
1356
|
+
{
|
|
1357
|
+
name: "expectedRedeemAmount",
|
|
1358
|
+
internalType: "uint256",
|
|
1359
|
+
type: "uint256"
|
|
1360
|
+
},
|
|
1361
|
+
{ name: "totalAmount", internalType: "uint256", type: "uint256" },
|
|
1362
|
+
{ name: "ids", internalType: "uint256[]", type: "uint256[]" },
|
|
1363
|
+
{ name: "quantities", internalType: "uint256[]", type: "uint256[]" },
|
|
1364
|
+
{ name: "nonce", internalType: "uint256", type: "uint256" },
|
|
1365
|
+
{ name: "deadline", internalType: "uint256", type: "uint256" }
|
|
1366
|
+
]
|
|
1367
|
+
}
|
|
1368
|
+
],
|
|
1369
|
+
name: "hashSponsoredMint",
|
|
1370
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
stateMutability: "nonpayable",
|
|
1374
|
+
type: "function",
|
|
1375
|
+
inputs: [
|
|
1376
|
+
{ name: "", internalType: "address", type: "address" },
|
|
1377
|
+
{ name: "from", internalType: "address", type: "address" },
|
|
1378
|
+
{ name: "ids", internalType: "uint256[]", type: "uint256[]" },
|
|
1379
|
+
{ name: "values", internalType: "uint256[]", type: "uint256[]" },
|
|
1380
|
+
{ name: "data", internalType: "bytes", type: "bytes" }
|
|
1381
|
+
],
|
|
1382
|
+
name: "onERC1155BatchReceived",
|
|
1383
|
+
outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }]
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
stateMutability: "nonpayable",
|
|
1387
|
+
type: "function",
|
|
1388
|
+
inputs: [
|
|
1389
|
+
{ name: "", internalType: "address", type: "address" },
|
|
1390
|
+
{ name: "from", internalType: "address", type: "address" },
|
|
1391
|
+
{ name: "id", internalType: "uint256", type: "uint256" },
|
|
1392
|
+
{ name: "value", internalType: "uint256", type: "uint256" },
|
|
1393
|
+
{ name: "data", internalType: "bytes", type: "bytes" }
|
|
1394
|
+
],
|
|
1395
|
+
name: "onERC1155Received",
|
|
1396
|
+
outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }]
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
stateMutability: "view",
|
|
1400
|
+
type: "function",
|
|
1401
|
+
inputs: [],
|
|
1402
|
+
name: "owner",
|
|
1403
|
+
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
1404
|
+
},
|
|
1405
|
+
{
|
|
1406
|
+
stateMutability: "view",
|
|
1407
|
+
type: "function",
|
|
1408
|
+
inputs: [],
|
|
1409
|
+
name: "pendingOwner",
|
|
1410
|
+
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
stateMutability: "nonpayable",
|
|
1414
|
+
type: "function",
|
|
1415
|
+
inputs: [],
|
|
1416
|
+
name: "renounceOwnership",
|
|
1417
|
+
outputs: []
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
stateMutability: "nonpayable",
|
|
1421
|
+
type: "function",
|
|
1422
|
+
inputs: [
|
|
1423
|
+
{ name: "verifier", internalType: "address", type: "address" },
|
|
1424
|
+
{ name: "enabled", internalType: "bool", type: "bool" }
|
|
1425
|
+
],
|
|
1426
|
+
name: "setVerifierStatus",
|
|
1427
|
+
outputs: []
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
stateMutability: "nonpayable",
|
|
1431
|
+
type: "function",
|
|
1432
|
+
inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
|
|
1433
|
+
name: "transferOwnership",
|
|
1434
|
+
outputs: []
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
stateMutability: "view",
|
|
1438
|
+
type: "function",
|
|
1439
|
+
inputs: [
|
|
1440
|
+
{ name: "", internalType: "address", type: "address" },
|
|
1441
|
+
{ name: "", internalType: "uint256", type: "uint256" }
|
|
1442
|
+
],
|
|
1443
|
+
name: "usedNonces",
|
|
1444
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }]
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
stateMutability: "nonpayable",
|
|
1448
|
+
type: "function",
|
|
1449
|
+
inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
|
|
1450
|
+
name: "withdraw",
|
|
1451
|
+
outputs: []
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
type: "event",
|
|
1455
|
+
anonymous: false,
|
|
1456
|
+
inputs: [
|
|
1457
|
+
{
|
|
1458
|
+
name: "sender",
|
|
1459
|
+
internalType: "address",
|
|
1460
|
+
type: "address",
|
|
1461
|
+
indexed: true
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
name: "amount",
|
|
1465
|
+
internalType: "uint256",
|
|
1466
|
+
type: "uint256",
|
|
1467
|
+
indexed: true
|
|
1468
|
+
}
|
|
1469
|
+
],
|
|
1470
|
+
name: "ContractFunded"
|
|
1471
|
+
},
|
|
1472
|
+
{ type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
|
|
1473
|
+
{
|
|
1474
|
+
type: "event",
|
|
1475
|
+
anonymous: false,
|
|
1476
|
+
inputs: [
|
|
1477
|
+
{
|
|
1478
|
+
name: "previousOwner",
|
|
1479
|
+
internalType: "address",
|
|
1480
|
+
type: "address",
|
|
1481
|
+
indexed: true
|
|
1482
|
+
},
|
|
1483
|
+
{
|
|
1484
|
+
name: "newOwner",
|
|
1485
|
+
internalType: "address",
|
|
1486
|
+
type: "address",
|
|
1487
|
+
indexed: true
|
|
1488
|
+
}
|
|
1489
|
+
],
|
|
1490
|
+
name: "OwnershipTransferStarted"
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
type: "event",
|
|
1494
|
+
anonymous: false,
|
|
1495
|
+
inputs: [
|
|
1496
|
+
{
|
|
1497
|
+
name: "previousOwner",
|
|
1498
|
+
internalType: "address",
|
|
1499
|
+
type: "address",
|
|
1500
|
+
indexed: true
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
name: "newOwner",
|
|
1504
|
+
internalType: "address",
|
|
1505
|
+
type: "address",
|
|
1506
|
+
indexed: true
|
|
1507
|
+
}
|
|
1508
|
+
],
|
|
1509
|
+
name: "OwnershipTransferred"
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
type: "event",
|
|
1513
|
+
anonymous: false,
|
|
1514
|
+
inputs: [
|
|
1515
|
+
{
|
|
1516
|
+
name: "verifier",
|
|
1517
|
+
internalType: "address",
|
|
1518
|
+
type: "address",
|
|
1519
|
+
indexed: true
|
|
1520
|
+
},
|
|
1521
|
+
{ name: "from", internalType: "address", type: "address", indexed: true },
|
|
1522
|
+
{
|
|
1523
|
+
name: "amountSpent",
|
|
1524
|
+
internalType: "uint256",
|
|
1525
|
+
type: "uint256",
|
|
1526
|
+
indexed: false
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
name: "contractValue",
|
|
1530
|
+
internalType: "uint256",
|
|
1531
|
+
type: "uint256",
|
|
1532
|
+
indexed: false
|
|
1533
|
+
}
|
|
1534
|
+
],
|
|
1535
|
+
name: "SentSponsoredCallFromMintBalances"
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
type: "event",
|
|
1539
|
+
anonymous: false,
|
|
1540
|
+
inputs: [
|
|
1541
|
+
{
|
|
1542
|
+
name: "verifier",
|
|
1543
|
+
internalType: "address",
|
|
1544
|
+
type: "address",
|
|
1545
|
+
indexed: true
|
|
1546
|
+
},
|
|
1547
|
+
{ name: "enabled", internalType: "bool", type: "bool", indexed: true }
|
|
1548
|
+
],
|
|
1549
|
+
name: "SetVerifierStatus"
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
type: "error",
|
|
1553
|
+
inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
|
|
1554
|
+
name: "CallFailed"
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
type: "error",
|
|
1558
|
+
inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
|
|
1559
|
+
name: "ERC20NotSupported"
|
|
1560
|
+
},
|
|
1561
|
+
{ type: "error", inputs: [], name: "IdsMismatch" },
|
|
1562
|
+
{ type: "error", inputs: [], name: "InvalidShortString" },
|
|
1563
|
+
{ type: "error", inputs: [], name: "InvalidSignature" },
|
|
1564
|
+
{ type: "error", inputs: [], name: "LengthMismatch" },
|
|
1565
|
+
{ type: "error", inputs: [], name: "NonceUsed" },
|
|
1566
|
+
{ type: "error", inputs: [], name: "NotExpectingReceive" },
|
|
1567
|
+
{ type: "error", inputs: [], name: "NotZoraSparks1155" },
|
|
1568
|
+
{
|
|
1569
|
+
type: "error",
|
|
1570
|
+
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
1571
|
+
name: "OwnableInvalidOwner"
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
type: "error",
|
|
1575
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
1576
|
+
name: "OwnableUnauthorizedAccount"
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
type: "error",
|
|
1580
|
+
inputs: [
|
|
1581
|
+
{
|
|
1582
|
+
name: "expectedRedeemAmount",
|
|
1583
|
+
internalType: "uint256",
|
|
1584
|
+
type: "uint256"
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
name: "transientReceivedAmount",
|
|
1588
|
+
internalType: "uint256",
|
|
1589
|
+
type: "uint256"
|
|
1590
|
+
}
|
|
1591
|
+
],
|
|
1592
|
+
name: "RedeemAmountIsIncorrect"
|
|
1593
|
+
},
|
|
1594
|
+
{ type: "error", inputs: [], name: "SignatureExpired" },
|
|
1595
|
+
{ type: "error", inputs: [], name: "SingleTransferNotSupported" },
|
|
1596
|
+
{
|
|
1597
|
+
type: "error",
|
|
1598
|
+
inputs: [{ name: "str", internalType: "string", type: "string" }],
|
|
1599
|
+
name: "StringTooLong"
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
type: "error",
|
|
1603
|
+
inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
|
|
1604
|
+
name: "TransferFailed"
|
|
1605
|
+
},
|
|
1606
|
+
{ type: "error", inputs: [], name: "UnknownAction" },
|
|
1607
|
+
{ type: "error", inputs: [], name: "UnknownUserAction" },
|
|
1608
|
+
{ type: "error", inputs: [], name: "ValuesMismatch" },
|
|
1609
|
+
{
|
|
1610
|
+
type: "error",
|
|
1611
|
+
inputs: [{ name: "verifier", internalType: "address", type: "address" }],
|
|
1612
|
+
name: "VerifierNotAllowed"
|
|
1613
|
+
},
|
|
1614
|
+
{ type: "error", inputs: [], name: "WithdrawFailed" }
|
|
1615
|
+
];
|
|
1616
|
+
var sponsoredSparksSpenderAddress = {
|
|
1617
|
+
7777777: "0x29b75AbA7dc7FE26d90CD96fbB390B26e04C4EB2"
|
|
1618
|
+
};
|
|
1619
|
+
var sponsoredSparksSpenderConfig = {
|
|
1620
|
+
address: sponsoredSparksSpenderAddress,
|
|
1621
|
+
abi: sponsoredSparksSpenderABI
|
|
1622
|
+
};
|
|
1213
1623
|
var upgradeGateABI = [
|
|
1214
1624
|
{ stateMutability: "nonpayable", type: "constructor", inputs: [] },
|
|
1215
1625
|
{
|
|
@@ -1635,6 +2045,51 @@ var zoraCreator1155FactoryImplABI = [
|
|
|
1635
2045
|
{ name: "", internalType: "contract IMinter1155", type: "address" }
|
|
1636
2046
|
]
|
|
1637
2047
|
},
|
|
2048
|
+
{
|
|
2049
|
+
stateMutability: "nonpayable",
|
|
2050
|
+
type: "function",
|
|
2051
|
+
inputs: [
|
|
2052
|
+
{
|
|
2053
|
+
name: "expectedContractAddress",
|
|
2054
|
+
internalType: "address",
|
|
2055
|
+
type: "address"
|
|
2056
|
+
},
|
|
2057
|
+
{ name: "newContractURI", internalType: "string", type: "string" },
|
|
2058
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
2059
|
+
{
|
|
2060
|
+
name: "defaultRoyaltyConfiguration",
|
|
2061
|
+
internalType: "struct ICreatorRoyaltiesControl.RoyaltyConfiguration",
|
|
2062
|
+
type: "tuple",
|
|
2063
|
+
components: [
|
|
2064
|
+
{
|
|
2065
|
+
name: "royaltyMintSchedule",
|
|
2066
|
+
internalType: "uint32",
|
|
2067
|
+
type: "uint32"
|
|
2068
|
+
},
|
|
2069
|
+
{ name: "royaltyBPS", internalType: "uint32", type: "uint32" },
|
|
2070
|
+
{
|
|
2071
|
+
name: "royaltyRecipient",
|
|
2072
|
+
internalType: "address",
|
|
2073
|
+
type: "address"
|
|
2074
|
+
}
|
|
2075
|
+
]
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
name: "defaultAdmin",
|
|
2079
|
+
internalType: "address payable",
|
|
2080
|
+
type: "address"
|
|
2081
|
+
},
|
|
2082
|
+
{ name: "setupActions", internalType: "bytes[]", type: "bytes[]" }
|
|
2083
|
+
],
|
|
2084
|
+
name: "getOrCreateContractDeterministic",
|
|
2085
|
+
outputs: [
|
|
2086
|
+
{
|
|
2087
|
+
name: "calculatedContractAddress",
|
|
2088
|
+
internalType: "address",
|
|
2089
|
+
type: "address"
|
|
2090
|
+
}
|
|
2091
|
+
]
|
|
2092
|
+
},
|
|
1638
2093
|
{
|
|
1639
2094
|
stateMutability: "view",
|
|
1640
2095
|
type: "function",
|
|
@@ -1771,6 +2226,19 @@ var zoraCreator1155FactoryImplABI = [
|
|
|
1771
2226
|
],
|
|
1772
2227
|
name: "BeaconUpgraded"
|
|
1773
2228
|
},
|
|
2229
|
+
{
|
|
2230
|
+
type: "event",
|
|
2231
|
+
anonymous: false,
|
|
2232
|
+
inputs: [
|
|
2233
|
+
{
|
|
2234
|
+
name: "calculatedContractAddress",
|
|
2235
|
+
internalType: "address",
|
|
2236
|
+
type: "address",
|
|
2237
|
+
indexed: false
|
|
2238
|
+
}
|
|
2239
|
+
],
|
|
2240
|
+
name: "ContractAlreadyExistsSkippingDeploy"
|
|
2241
|
+
},
|
|
1774
2242
|
{ type: "event", anonymous: false, inputs: [], name: "FactorySetup" },
|
|
1775
2243
|
{
|
|
1776
2244
|
type: "event",
|
|
@@ -1907,6 +2375,22 @@ var zoraCreator1155FactoryImplABI = [
|
|
|
1907
2375
|
{ type: "error", inputs: [], name: "ERC1967_NEW_IMPL_NOT_CONTRACT" },
|
|
1908
2376
|
{ type: "error", inputs: [], name: "ERC1967_NEW_IMPL_NOT_UUPS" },
|
|
1909
2377
|
{ type: "error", inputs: [], name: "ERC1967_UNSUPPORTED_PROXIABLEUUID" },
|
|
2378
|
+
{
|
|
2379
|
+
type: "error",
|
|
2380
|
+
inputs: [
|
|
2381
|
+
{
|
|
2382
|
+
name: "expectedContractAddress",
|
|
2383
|
+
internalType: "address",
|
|
2384
|
+
type: "address"
|
|
2385
|
+
},
|
|
2386
|
+
{
|
|
2387
|
+
name: "calculcatedContractAddress",
|
|
2388
|
+
internalType: "address",
|
|
2389
|
+
type: "address"
|
|
2390
|
+
}
|
|
2391
|
+
],
|
|
2392
|
+
name: "ExpectedContractAddressDoesNotMatchCalculatedContractAddress"
|
|
2393
|
+
},
|
|
1910
2394
|
{
|
|
1911
2395
|
type: "error",
|
|
1912
2396
|
inputs: [],
|
|
@@ -8010,6 +8494,64 @@ var mintsSafeTransferBatchTypedDataDefinition = ({
|
|
|
8010
8494
|
verifyingContract: zoraMints1155Address[chainId]
|
|
8011
8495
|
}
|
|
8012
8496
|
});
|
|
8497
|
+
var sponsoredSparksBatchTransferTypedDataType = {
|
|
8498
|
+
SponsoredMintBatch: [
|
|
8499
|
+
{
|
|
8500
|
+
name: "verifier",
|
|
8501
|
+
type: "address"
|
|
8502
|
+
},
|
|
8503
|
+
{
|
|
8504
|
+
name: "from",
|
|
8505
|
+
type: "address"
|
|
8506
|
+
},
|
|
8507
|
+
{
|
|
8508
|
+
name: "destination",
|
|
8509
|
+
type: "address"
|
|
8510
|
+
},
|
|
8511
|
+
{
|
|
8512
|
+
name: "data",
|
|
8513
|
+
type: "bytes"
|
|
8514
|
+
},
|
|
8515
|
+
{
|
|
8516
|
+
name: "expectedRedeemAmount",
|
|
8517
|
+
type: "uint256"
|
|
8518
|
+
},
|
|
8519
|
+
{
|
|
8520
|
+
name: "totalAmount",
|
|
8521
|
+
type: "uint256"
|
|
8522
|
+
},
|
|
8523
|
+
{
|
|
8524
|
+
name: "ids",
|
|
8525
|
+
type: "uint256[]"
|
|
8526
|
+
},
|
|
8527
|
+
{
|
|
8528
|
+
name: "quantities",
|
|
8529
|
+
type: "uint256[]"
|
|
8530
|
+
},
|
|
8531
|
+
{
|
|
8532
|
+
name: "nonce",
|
|
8533
|
+
type: "uint256"
|
|
8534
|
+
},
|
|
8535
|
+
{
|
|
8536
|
+
name: "deadline",
|
|
8537
|
+
type: "uint256"
|
|
8538
|
+
}
|
|
8539
|
+
]
|
|
8540
|
+
};
|
|
8541
|
+
var sponsoredSparksBatchTypedDataDefinition = ({
|
|
8542
|
+
chainId,
|
|
8543
|
+
message
|
|
8544
|
+
}) => ({
|
|
8545
|
+
types: sponsoredSparksBatchTransferTypedDataType,
|
|
8546
|
+
message,
|
|
8547
|
+
primaryType: "SponsoredMintBatch",
|
|
8548
|
+
domain: {
|
|
8549
|
+
chainId,
|
|
8550
|
+
name: "SponsoredSparksSpender",
|
|
8551
|
+
version: "1",
|
|
8552
|
+
verifyingContract: sponsoredSparksSpenderAddress[chainId]
|
|
8553
|
+
}
|
|
8554
|
+
});
|
|
8013
8555
|
|
|
8014
8556
|
// src/generated/1155.ts
|
|
8015
8557
|
var __exports = {};
|
|
@@ -8192,32 +8734,32 @@ var addresses = {
|
|
|
8192
8734
|
timestamp: 1717195052
|
|
8193
8735
|
},
|
|
8194
8736
|
7777777: {
|
|
8195
|
-
CONTRACT_1155_IMPL: "
|
|
8196
|
-
CONTRACT_1155_IMPL_VERSION: "2.
|
|
8737
|
+
CONTRACT_1155_IMPL: "0x9074Ae399235d26B56e3aF1331b033366E4FE072",
|
|
8738
|
+
CONTRACT_1155_IMPL_VERSION: "2.12.2",
|
|
8197
8739
|
ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
8198
|
-
FACTORY_IMPL: "
|
|
8740
|
+
FACTORY_IMPL: "0xD9bC36841C259f07924e73cF08d5a2c92d53639B",
|
|
8199
8741
|
FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
8200
8742
|
FIXED_PRICE_SALE_STRATEGY: "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
|
|
8201
8743
|
MERKLE_MINT_SALE_STRATEGY: "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
|
|
8202
|
-
PREMINTER_IMPL: "
|
|
8744
|
+
PREMINTER_IMPL: "0xa79928cCc270b0208e56BfF0e927ff55034e7C35",
|
|
8203
8745
|
PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
8204
8746
|
REDEEM_MINTER_FACTORY: "0x78964965cF77850224513a367f899435C5B69174",
|
|
8205
8747
|
UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
8206
|
-
timestamp:
|
|
8748
|
+
timestamp: 1721935998
|
|
8207
8749
|
},
|
|
8208
8750
|
11155111: {
|
|
8209
|
-
CONTRACT_1155_IMPL: "
|
|
8210
|
-
CONTRACT_1155_IMPL_VERSION: "2.
|
|
8751
|
+
CONTRACT_1155_IMPL: "0x961b527B5E298569dbD7B1d90630cC515Eb17A4A",
|
|
8752
|
+
CONTRACT_1155_IMPL_VERSION: "2.12.2",
|
|
8211
8753
|
ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
|
|
8212
|
-
FACTORY_IMPL: "
|
|
8754
|
+
FACTORY_IMPL: "0x5Eedeb6e035e68f89B29689625c4720EA7842542",
|
|
8213
8755
|
FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
8214
8756
|
FIXED_PRICE_SALE_STRATEGY: "0x1Cd1C1f3b8B779B50Db23155F2Cb244FCcA06B21",
|
|
8215
8757
|
MERKLE_MINT_SALE_STRATEGY: "0xe770E6f19aecF8ef3145A50087999b5556aB3610",
|
|
8216
|
-
PREMINTER_IMPL: "
|
|
8758
|
+
PREMINTER_IMPL: "0xa79928cCc270b0208e56BfF0e927ff55034e7C35",
|
|
8217
8759
|
PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
8218
8760
|
REDEEM_MINTER_FACTORY: "0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D",
|
|
8219
8761
|
UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
|
|
8220
|
-
timestamp:
|
|
8762
|
+
timestamp: 1721935626
|
|
8221
8763
|
},
|
|
8222
8764
|
168587773: {
|
|
8223
8765
|
CONTRACT_1155_IMPL: "0x437A762fc2a8f898Aa7a2575Be21c41753DC4797",
|
|
@@ -8233,10 +8775,10 @@ var addresses = {
|
|
|
8233
8775
|
timestamp: 1709234007
|
|
8234
8776
|
},
|
|
8235
8777
|
999999999: {
|
|
8236
|
-
CONTRACT_1155_IMPL: "
|
|
8237
|
-
CONTRACT_1155_IMPL_VERSION: "2.12.
|
|
8778
|
+
CONTRACT_1155_IMPL: "0xC542CAdBF84F195226804B62BbE941CF244BF490",
|
|
8779
|
+
CONTRACT_1155_IMPL_VERSION: "2.12.2",
|
|
8238
8780
|
ERC20_MINTER: "0x8Ec7f068A77fa5FC1925110f82381374BA054Ff2",
|
|
8239
|
-
FACTORY_IMPL: "
|
|
8781
|
+
FACTORY_IMPL: "0xF5b2eb84B4BFfcAe4ff1592A6838a2d0fFb7AA68",
|
|
8240
8782
|
FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
|
|
8241
8783
|
FIXED_PRICE_SALE_STRATEGY: "0x6d28164C3CE04A190D5F9f0f8881fc807EAD975A",
|
|
8242
8784
|
MERKLE_MINT_SALE_STRATEGY: "0x5e5fD4b758076BAD940db0284b711A67E8a3B88c",
|
|
@@ -8244,7 +8786,7 @@ var addresses = {
|
|
|
8244
8786
|
PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
|
|
8245
8787
|
REDEEM_MINTER_FACTORY: "0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6",
|
|
8246
8788
|
UPGRADE_GATE: "0x0000000000000000000000000000000000000000",
|
|
8247
|
-
timestamp:
|
|
8789
|
+
timestamp: 1721933261
|
|
8248
8790
|
}
|
|
8249
8791
|
};
|
|
8250
8792
|
|
|
@@ -8288,6 +8830,7 @@ export {
|
|
|
8288
8830
|
erc20MinterAddress,
|
|
8289
8831
|
erc20MinterConfig,
|
|
8290
8832
|
iPremintDefinitionsABI,
|
|
8833
|
+
iSponsoredSparksSpenderActionABI,
|
|
8291
8834
|
iUnwrapAndForwardActionABI,
|
|
8292
8835
|
mintsEthUnwrapperAndCallerABI,
|
|
8293
8836
|
mintsEthUnwrapperAndCallerAddress,
|
|
@@ -8301,6 +8844,11 @@ export {
|
|
|
8301
8844
|
protocolRewardsAddress,
|
|
8302
8845
|
protocolRewardsConfig,
|
|
8303
8846
|
sparks_exports as sparks,
|
|
8847
|
+
sponsoredSparksBatchTransferTypedDataType,
|
|
8848
|
+
sponsoredSparksBatchTypedDataDefinition,
|
|
8849
|
+
sponsoredSparksSpenderABI,
|
|
8850
|
+
sponsoredSparksSpenderAddress,
|
|
8851
|
+
sponsoredSparksSpenderConfig,
|
|
8304
8852
|
upgradeGateABI,
|
|
8305
8853
|
upgradeGateAddress,
|
|
8306
8854
|
upgradeGateConfig,
|