@zoralabs/protocol-deployments 0.3.1 → 0.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoralabs/protocol-deployments",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "repository": "https://github.com/ourzora/zora-protocol",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -2247,6 +2247,7 @@ export const secondarySwapABI = [
2247
2247
  },
2248
2248
  { name: 'maxEthToSpend', internalType: 'uint256', type: 'uint256' },
2249
2249
  { name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160' },
2250
+ { name: 'comment', internalType: 'string', type: 'string' },
2250
2251
  ],
2251
2252
  name: 'buy1155',
2252
2253
  outputs: [],
@@ -2306,6 +2307,7 @@ export const secondarySwapABI = [
2306
2307
  { name: 'recipient', internalType: 'address payable', type: 'address' },
2307
2308
  { name: 'minEthToAcquire', internalType: 'uint256', type: 'uint256' },
2308
2309
  { name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160' },
2310
+ { name: 'comment', internalType: 'string', type: 'string' },
2309
2311
  ],
2310
2312
  name: 'sell1155',
2311
2313
  outputs: [],
@@ -2383,6 +2385,49 @@ export const secondarySwapABI = [
2383
2385
  ],
2384
2386
  name: 'SecondaryBuy',
2385
2387
  },
2388
+ {
2389
+ type: 'event',
2390
+ anonymous: false,
2391
+ inputs: [
2392
+ {
2393
+ name: 'sender',
2394
+ internalType: 'address',
2395
+ type: 'address',
2396
+ indexed: true,
2397
+ },
2398
+ {
2399
+ name: 'collection',
2400
+ internalType: 'address',
2401
+ type: 'address',
2402
+ indexed: true,
2403
+ },
2404
+ {
2405
+ name: 'tokenId',
2406
+ internalType: 'uint256',
2407
+ type: 'uint256',
2408
+ indexed: true,
2409
+ },
2410
+ {
2411
+ name: 'quantity',
2412
+ internalType: 'uint256',
2413
+ type: 'uint256',
2414
+ indexed: false,
2415
+ },
2416
+ {
2417
+ name: 'comment',
2418
+ internalType: 'string',
2419
+ type: 'string',
2420
+ indexed: false,
2421
+ },
2422
+ {
2423
+ name: 'secondaryType',
2424
+ internalType: 'enum ISecondarySwap.SecondaryType',
2425
+ type: 'uint8',
2426
+ indexed: false,
2427
+ },
2428
+ ],
2429
+ name: 'SecondaryComment',
2430
+ },
2386
2431
  {
2387
2432
  type: 'event',
2388
2433
  anonymous: false,
@@ -3967,6 +4012,8 @@ export const zoraCreator1155FactoryImplABI = [
3967
4012
  { type: 'error', inputs: [], name: 'InsufficientFunds' },
3968
4013
  { type: 'error', inputs: [], name: 'InvalidInitialization' },
3969
4014
  { type: 'error', inputs: [], name: 'MarketAlreadyLaunched' },
4015
+ { type: 'error', inputs: [], name: 'MarketMinimumNotReached' },
4016
+ { type: 'error', inputs: [], name: 'MinimumMarketEthNotMet' },
3970
4017
  { type: 'error', inputs: [], name: 'NeedsToBeAtLeastOneSaleToStartMarket' },
3971
4018
  { type: 'error', inputs: [], name: 'NotInitializing' },
3972
4019
  { type: 'error', inputs: [], name: 'OnlyZoraRewardRecipient' },
@@ -3988,6 +4035,9 @@ export const zoraCreator1155FactoryImplABI = [
3988
4035
  { type: 'error', inputs: [], name: 'SaleHasNotStarted' },
3989
4036
  { type: 'error', inputs: [], name: 'SaleInProgress' },
3990
4037
  { type: 'error', inputs: [], name: 'SaleNotSet' },
4038
+ { type: 'error', inputs: [], name: 'SaleV2AlreadyStarted' },
4039
+ { type: 'error', inputs: [], name: 'SaleV2Ended' },
4040
+ { type: 'error', inputs: [], name: 'SaleV2NotSet' },
3991
4041
  { type: 'error', inputs: [], name: 'StartTimeCannotBeAfterEndTime' },
3992
4042
  { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' },
3993
4043
  {
@@ -5414,6 +5464,8 @@ export const zoraCreator1155ImplABI = [
5414
5464
  { type: 'error', inputs: [], name: 'InsufficientFunds' },
5415
5465
  { type: 'error', inputs: [], name: 'InvalidInitialization' },
5416
5466
  { type: 'error', inputs: [], name: 'MarketAlreadyLaunched' },
5467
+ { type: 'error', inputs: [], name: 'MarketMinimumNotReached' },
5468
+ { type: 'error', inputs: [], name: 'MinimumMarketEthNotMet' },
5417
5469
  { type: 'error', inputs: [], name: 'NeedsToBeAtLeastOneSaleToStartMarket' },
5418
5470
  { type: 'error', inputs: [], name: 'NotInitializing' },
5419
5471
  { type: 'error', inputs: [], name: 'OnlyZoraRewardRecipient' },
@@ -5435,6 +5487,9 @@ export const zoraCreator1155ImplABI = [
5435
5487
  { type: 'error', inputs: [], name: 'SaleHasNotStarted' },
5436
5488
  { type: 'error', inputs: [], name: 'SaleInProgress' },
5437
5489
  { type: 'error', inputs: [], name: 'SaleNotSet' },
5490
+ { type: 'error', inputs: [], name: 'SaleV2AlreadyStarted' },
5491
+ { type: 'error', inputs: [], name: 'SaleV2Ended' },
5492
+ { type: 'error', inputs: [], name: 'SaleV2NotSet' },
5438
5493
  { type: 'error', inputs: [], name: 'StartTimeCannotBeAfterEndTime' },
5439
5494
  { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' },
5440
5495
  {
@@ -10446,6 +10501,41 @@ export const zoraTimedSaleStrategyABI = [
10446
10501
  },
10447
10502
  ],
10448
10503
  },
10504
+ {
10505
+ stateMutability: 'view',
10506
+ type: 'function',
10507
+ inputs: [
10508
+ { name: 'collection', internalType: 'address', type: 'address' },
10509
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
10510
+ ],
10511
+ name: 'saleV2',
10512
+ outputs: [
10513
+ {
10514
+ name: '',
10515
+ internalType: 'struct IZoraTimedSaleStrategy.SaleData',
10516
+ type: 'tuple',
10517
+ components: [
10518
+ { name: 'saleStart', internalType: 'uint64', type: 'uint64' },
10519
+ { name: 'marketCountdown', internalType: 'uint64', type: 'uint64' },
10520
+ { name: 'saleEnd', internalType: 'uint64', type: 'uint64' },
10521
+ { name: 'secondaryActivated', internalType: 'bool', type: 'bool' },
10522
+ {
10523
+ name: 'minimumMarketEth',
10524
+ internalType: 'uint256',
10525
+ type: 'uint256',
10526
+ },
10527
+ { name: 'poolAddress', internalType: 'address', type: 'address' },
10528
+ {
10529
+ name: 'erc20zAddress',
10530
+ internalType: 'address payable',
10531
+ type: 'address',
10532
+ },
10533
+ { name: 'name', internalType: 'string', type: 'string' },
10534
+ { name: 'symbol', internalType: 'string', type: 'string' },
10535
+ ],
10536
+ },
10537
+ ],
10538
+ },
10449
10539
  {
10450
10540
  stateMutability: 'nonpayable',
10451
10541
  type: 'function',
@@ -10466,6 +10556,31 @@ export const zoraTimedSaleStrategyABI = [
10466
10556
  name: 'setSale',
10467
10557
  outputs: [],
10468
10558
  },
10559
+ {
10560
+ stateMutability: 'nonpayable',
10561
+ type: 'function',
10562
+ inputs: [
10563
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
10564
+ {
10565
+ name: 'salesConfig',
10566
+ internalType: 'struct IZoraTimedSaleStrategy.SalesConfigV2',
10567
+ type: 'tuple',
10568
+ components: [
10569
+ { name: 'saleStart', internalType: 'uint64', type: 'uint64' },
10570
+ { name: 'marketCountdown', internalType: 'uint64', type: 'uint64' },
10571
+ {
10572
+ name: 'minimumMarketEth',
10573
+ internalType: 'uint256',
10574
+ type: 'uint256',
10575
+ },
10576
+ { name: 'name', internalType: 'string', type: 'string' },
10577
+ { name: 'symbol', internalType: 'string', type: 'string' },
10578
+ ],
10579
+ },
10580
+ ],
10581
+ name: 'setSaleV2',
10582
+ outputs: [],
10583
+ },
10469
10584
  {
10470
10585
  stateMutability: 'nonpayable',
10471
10586
  type: 'function',
@@ -10504,7 +10619,7 @@ export const zoraTimedSaleStrategyABI = [
10504
10619
  inputs: [
10505
10620
  { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
10506
10621
  { name: 'newStartTime', internalType: 'uint64', type: 'uint64' },
10507
- { name: 'newEndTime', internalType: 'uint64', type: 'uint64' },
10622
+ { name: 'newMarketCountdown', internalType: 'uint64', type: 'uint64' },
10508
10623
  ],
10509
10624
  name: 'updateSale',
10510
10625
  outputs: [],
@@ -10687,6 +10802,56 @@ export const zoraTimedSaleStrategyABI = [
10687
10802
  ],
10688
10803
  name: 'SaleSet',
10689
10804
  },
10805
+ {
10806
+ type: 'event',
10807
+ anonymous: false,
10808
+ inputs: [
10809
+ {
10810
+ name: 'collection',
10811
+ internalType: 'address',
10812
+ type: 'address',
10813
+ indexed: true,
10814
+ },
10815
+ {
10816
+ name: 'tokenId',
10817
+ internalType: 'uint256',
10818
+ type: 'uint256',
10819
+ indexed: true,
10820
+ },
10821
+ {
10822
+ name: 'saleData',
10823
+ internalType: 'struct IZoraTimedSaleStrategy.SaleData',
10824
+ type: 'tuple',
10825
+ components: [
10826
+ { name: 'saleStart', internalType: 'uint64', type: 'uint64' },
10827
+ { name: 'marketCountdown', internalType: 'uint64', type: 'uint64' },
10828
+ { name: 'saleEnd', internalType: 'uint64', type: 'uint64' },
10829
+ { name: 'secondaryActivated', internalType: 'bool', type: 'bool' },
10830
+ {
10831
+ name: 'minimumMarketEth',
10832
+ internalType: 'uint256',
10833
+ type: 'uint256',
10834
+ },
10835
+ { name: 'poolAddress', internalType: 'address', type: 'address' },
10836
+ {
10837
+ name: 'erc20zAddress',
10838
+ internalType: 'address payable',
10839
+ type: 'address',
10840
+ },
10841
+ { name: 'name', internalType: 'string', type: 'string' },
10842
+ { name: 'symbol', internalType: 'string', type: 'string' },
10843
+ ],
10844
+ indexed: false,
10845
+ },
10846
+ {
10847
+ name: 'mintFee',
10848
+ internalType: 'uint256',
10849
+ type: 'uint256',
10850
+ indexed: false,
10851
+ },
10852
+ ],
10853
+ name: 'SaleSetV2',
10854
+ },
10690
10855
  {
10691
10856
  type: 'event',
10692
10857
  anonymous: false,
@@ -10823,6 +10988,8 @@ export const zoraTimedSaleStrategyABI = [
10823
10988
  { type: 'error', inputs: [], name: 'InsufficientFunds' },
10824
10989
  { type: 'error', inputs: [], name: 'InvalidInitialization' },
10825
10990
  { type: 'error', inputs: [], name: 'MarketAlreadyLaunched' },
10991
+ { type: 'error', inputs: [], name: 'MarketMinimumNotReached' },
10992
+ { type: 'error', inputs: [], name: 'MinimumMarketEthNotMet' },
10826
10993
  { type: 'error', inputs: [], name: 'NeedsToBeAtLeastOneSaleToStartMarket' },
10827
10994
  { type: 'error', inputs: [], name: 'NotInitializing' },
10828
10995
  { type: 'error', inputs: [], name: 'OnlyZoraRewardRecipient' },
@@ -10844,6 +11011,9 @@ export const zoraTimedSaleStrategyABI = [
10844
11011
  { type: 'error', inputs: [], name: 'SaleHasNotStarted' },
10845
11012
  { type: 'error', inputs: [], name: 'SaleInProgress' },
10846
11013
  { type: 'error', inputs: [], name: 'SaleNotSet' },
11014
+ { type: 'error', inputs: [], name: 'SaleV2AlreadyStarted' },
11015
+ { type: 'error', inputs: [], name: 'SaleV2Ended' },
11016
+ { type: 'error', inputs: [], name: 'SaleV2NotSet' },
10847
11017
  { type: 'error', inputs: [], name: 'StartTimeCannotBeAfterEndTime' },
10848
11018
  { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' },
10849
11019
  {