@zoralabs/protocol-deployments 0.3.1 → 0.3.3

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.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./generated/wagmi";
2
2
  export * from "./typedData";
3
3
  export * from "./types";
4
+ export * from "./encoding";
4
5
  export * as contracts1155 from "./generated/1155";
5
6
  export * as sparks from "./generated/sparks";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -2222,6 +2222,49 @@ var secondarySwapABI = [
2222
2222
  ],
2223
2223
  name: "SecondaryBuy"
2224
2224
  },
2225
+ {
2226
+ type: "event",
2227
+ anonymous: false,
2228
+ inputs: [
2229
+ {
2230
+ name: "sender",
2231
+ internalType: "address",
2232
+ type: "address",
2233
+ indexed: true
2234
+ },
2235
+ {
2236
+ name: "collection",
2237
+ internalType: "address",
2238
+ type: "address",
2239
+ indexed: true
2240
+ },
2241
+ {
2242
+ name: "tokenId",
2243
+ internalType: "uint256",
2244
+ type: "uint256",
2245
+ indexed: true
2246
+ },
2247
+ {
2248
+ name: "quantity",
2249
+ internalType: "uint256",
2250
+ type: "uint256",
2251
+ indexed: false
2252
+ },
2253
+ {
2254
+ name: "comment",
2255
+ internalType: "string",
2256
+ type: "string",
2257
+ indexed: false
2258
+ },
2259
+ {
2260
+ name: "secondaryType",
2261
+ internalType: "enum ISecondarySwap.SecondaryType",
2262
+ type: "uint8",
2263
+ indexed: false
2264
+ }
2265
+ ],
2266
+ name: "SecondaryComment"
2267
+ },
2225
2268
  {
2226
2269
  type: "event",
2227
2270
  anonymous: false,
@@ -2911,6 +2954,73 @@ var upgradeGateConfig = {
2911
2954
  address: upgradeGateAddress,
2912
2955
  abi: upgradeGateABI
2913
2956
  };
2957
+ var wethABI = [
2958
+ {
2959
+ stateMutability: "nonpayable",
2960
+ type: "function",
2961
+ inputs: [
2962
+ { name: "guy", internalType: "address", type: "address" },
2963
+ { name: "wad", internalType: "uint256", type: "uint256" }
2964
+ ],
2965
+ name: "approve",
2966
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
2967
+ },
2968
+ {
2969
+ stateMutability: "view",
2970
+ type: "function",
2971
+ inputs: [{ name: "guy", internalType: "address", type: "address" }],
2972
+ name: "balanceOf",
2973
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2974
+ },
2975
+ {
2976
+ stateMutability: "payable",
2977
+ type: "function",
2978
+ inputs: [],
2979
+ name: "deposit",
2980
+ outputs: []
2981
+ },
2982
+ {
2983
+ stateMutability: "nonpayable",
2984
+ type: "function",
2985
+ inputs: [
2986
+ { name: "dst", internalType: "address", type: "address" },
2987
+ { name: "wad", internalType: "uint256", type: "uint256" }
2988
+ ],
2989
+ name: "transfer",
2990
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
2991
+ },
2992
+ {
2993
+ stateMutability: "nonpayable",
2994
+ type: "function",
2995
+ inputs: [
2996
+ { name: "src", internalType: "address", type: "address" },
2997
+ { name: "dst", internalType: "address", type: "address" },
2998
+ { name: "wad", internalType: "uint256", type: "uint256" }
2999
+ ],
3000
+ name: "transferFrom",
3001
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
3002
+ },
3003
+ {
3004
+ stateMutability: "nonpayable",
3005
+ type: "function",
3006
+ inputs: [{ name: "wad", internalType: "uint256", type: "uint256" }],
3007
+ name: "withdraw",
3008
+ outputs: []
3009
+ }
3010
+ ];
3011
+ var wethAddress = {
3012
+ 1: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
3013
+ 10: "0x4200000000000000000000000000000000000006",
3014
+ 8453: "0x4200000000000000000000000000000000000006",
3015
+ 42161: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
3016
+ 81457: "0x4300000000000000000000000000000000000004",
3017
+ 84532: "0x4200000000000000000000000000000000000006",
3018
+ 421614: "0xc556bAe1e86B2aE9c22eA5E036b07E55E7596074",
3019
+ 7777777: "0x4200000000000000000000000000000000000006",
3020
+ 11155111: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
3021
+ 999999999: "0x4200000000000000000000000000000000000006"
3022
+ };
3023
+ var wethConfig = { address: wethAddress, abi: wethABI };
2914
3024
  var zoraCreator1155FactoryImplABI = [
2915
3025
  {
2916
3026
  stateMutability: "nonpayable",
@@ -3714,6 +3824,8 @@ var zoraCreator1155FactoryImplABI = [
3714
3824
  { type: "error", inputs: [], name: "InsufficientFunds" },
3715
3825
  { type: "error", inputs: [], name: "InvalidInitialization" },
3716
3826
  { type: "error", inputs: [], name: "MarketAlreadyLaunched" },
3827
+ { type: "error", inputs: [], name: "MarketMinimumNotReached" },
3828
+ { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
3717
3829
  { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
3718
3830
  { type: "error", inputs: [], name: "NotInitializing" },
3719
3831
  { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
@@ -3735,6 +3847,9 @@ var zoraCreator1155FactoryImplABI = [
3735
3847
  { type: "error", inputs: [], name: "SaleHasNotStarted" },
3736
3848
  { type: "error", inputs: [], name: "SaleInProgress" },
3737
3849
  { type: "error", inputs: [], name: "SaleNotSet" },
3850
+ { type: "error", inputs: [], name: "SaleV2AlreadyStarted" },
3851
+ { type: "error", inputs: [], name: "SaleV2Ended" },
3852
+ { type: "error", inputs: [], name: "SaleV2NotSet" },
3738
3853
  { type: "error", inputs: [], name: "StartTimeCannotBeAfterEndTime" },
3739
3854
  { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
3740
3855
  {
@@ -5130,6 +5245,8 @@ var zoraCreator1155ImplABI = [
5130
5245
  { type: "error", inputs: [], name: "InsufficientFunds" },
5131
5246
  { type: "error", inputs: [], name: "InvalidInitialization" },
5132
5247
  { type: "error", inputs: [], name: "MarketAlreadyLaunched" },
5248
+ { type: "error", inputs: [], name: "MarketMinimumNotReached" },
5249
+ { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
5133
5250
  { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
5134
5251
  { type: "error", inputs: [], name: "NotInitializing" },
5135
5252
  { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
@@ -5151,6 +5268,9 @@ var zoraCreator1155ImplABI = [
5151
5268
  { type: "error", inputs: [], name: "SaleHasNotStarted" },
5152
5269
  { type: "error", inputs: [], name: "SaleInProgress" },
5153
5270
  { type: "error", inputs: [], name: "SaleNotSet" },
5271
+ { type: "error", inputs: [], name: "SaleV2AlreadyStarted" },
5272
+ { type: "error", inputs: [], name: "SaleV2Ended" },
5273
+ { type: "error", inputs: [], name: "SaleV2NotSet" },
5154
5274
  { type: "error", inputs: [], name: "StartTimeCannotBeAfterEndTime" },
5155
5275
  { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
5156
5276
  {
@@ -9896,6 +10016,41 @@ var zoraTimedSaleStrategyABI = [
9896
10016
  }
9897
10017
  ]
9898
10018
  },
10019
+ {
10020
+ stateMutability: "view",
10021
+ type: "function",
10022
+ inputs: [
10023
+ { name: "collection", internalType: "address", type: "address" },
10024
+ { name: "tokenId", internalType: "uint256", type: "uint256" }
10025
+ ],
10026
+ name: "saleV2",
10027
+ outputs: [
10028
+ {
10029
+ name: "",
10030
+ internalType: "struct IZoraTimedSaleStrategy.SaleData",
10031
+ type: "tuple",
10032
+ components: [
10033
+ { name: "saleStart", internalType: "uint64", type: "uint64" },
10034
+ { name: "marketCountdown", internalType: "uint64", type: "uint64" },
10035
+ { name: "saleEnd", internalType: "uint64", type: "uint64" },
10036
+ { name: "secondaryActivated", internalType: "bool", type: "bool" },
10037
+ {
10038
+ name: "minimumMarketEth",
10039
+ internalType: "uint256",
10040
+ type: "uint256"
10041
+ },
10042
+ { name: "poolAddress", internalType: "address", type: "address" },
10043
+ {
10044
+ name: "erc20zAddress",
10045
+ internalType: "address payable",
10046
+ type: "address"
10047
+ },
10048
+ { name: "name", internalType: "string", type: "string" },
10049
+ { name: "symbol", internalType: "string", type: "string" }
10050
+ ]
10051
+ }
10052
+ ]
10053
+ },
9899
10054
  {
9900
10055
  stateMutability: "nonpayable",
9901
10056
  type: "function",
@@ -9916,6 +10071,31 @@ var zoraTimedSaleStrategyABI = [
9916
10071
  name: "setSale",
9917
10072
  outputs: []
9918
10073
  },
10074
+ {
10075
+ stateMutability: "nonpayable",
10076
+ type: "function",
10077
+ inputs: [
10078
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
10079
+ {
10080
+ name: "salesConfig",
10081
+ internalType: "struct IZoraTimedSaleStrategy.SalesConfigV2",
10082
+ type: "tuple",
10083
+ components: [
10084
+ { name: "saleStart", internalType: "uint64", type: "uint64" },
10085
+ { name: "marketCountdown", internalType: "uint64", type: "uint64" },
10086
+ {
10087
+ name: "minimumMarketEth",
10088
+ internalType: "uint256",
10089
+ type: "uint256"
10090
+ },
10091
+ { name: "name", internalType: "string", type: "string" },
10092
+ { name: "symbol", internalType: "string", type: "string" }
10093
+ ]
10094
+ }
10095
+ ],
10096
+ name: "setSaleV2",
10097
+ outputs: []
10098
+ },
9919
10099
  {
9920
10100
  stateMutability: "nonpayable",
9921
10101
  type: "function",
@@ -9954,7 +10134,7 @@ var zoraTimedSaleStrategyABI = [
9954
10134
  inputs: [
9955
10135
  { name: "tokenId", internalType: "uint256", type: "uint256" },
9956
10136
  { name: "newStartTime", internalType: "uint64", type: "uint64" },
9957
- { name: "newEndTime", internalType: "uint64", type: "uint64" }
10137
+ { name: "newMarketCountdown", internalType: "uint64", type: "uint64" }
9958
10138
  ],
9959
10139
  name: "updateSale",
9960
10140
  outputs: []
@@ -10137,6 +10317,56 @@ var zoraTimedSaleStrategyABI = [
10137
10317
  ],
10138
10318
  name: "SaleSet"
10139
10319
  },
10320
+ {
10321
+ type: "event",
10322
+ anonymous: false,
10323
+ inputs: [
10324
+ {
10325
+ name: "collection",
10326
+ internalType: "address",
10327
+ type: "address",
10328
+ indexed: true
10329
+ },
10330
+ {
10331
+ name: "tokenId",
10332
+ internalType: "uint256",
10333
+ type: "uint256",
10334
+ indexed: true
10335
+ },
10336
+ {
10337
+ name: "saleData",
10338
+ internalType: "struct IZoraTimedSaleStrategy.SaleData",
10339
+ type: "tuple",
10340
+ components: [
10341
+ { name: "saleStart", internalType: "uint64", type: "uint64" },
10342
+ { name: "marketCountdown", internalType: "uint64", type: "uint64" },
10343
+ { name: "saleEnd", internalType: "uint64", type: "uint64" },
10344
+ { name: "secondaryActivated", internalType: "bool", type: "bool" },
10345
+ {
10346
+ name: "minimumMarketEth",
10347
+ internalType: "uint256",
10348
+ type: "uint256"
10349
+ },
10350
+ { name: "poolAddress", internalType: "address", type: "address" },
10351
+ {
10352
+ name: "erc20zAddress",
10353
+ internalType: "address payable",
10354
+ type: "address"
10355
+ },
10356
+ { name: "name", internalType: "string", type: "string" },
10357
+ { name: "symbol", internalType: "string", type: "string" }
10358
+ ],
10359
+ indexed: false
10360
+ },
10361
+ {
10362
+ name: "mintFee",
10363
+ internalType: "uint256",
10364
+ type: "uint256",
10365
+ indexed: false
10366
+ }
10367
+ ],
10368
+ name: "SaleSetV2"
10369
+ },
10140
10370
  {
10141
10371
  type: "event",
10142
10372
  anonymous: false,
@@ -10273,6 +10503,8 @@ var zoraTimedSaleStrategyABI = [
10273
10503
  { type: "error", inputs: [], name: "InsufficientFunds" },
10274
10504
  { type: "error", inputs: [], name: "InvalidInitialization" },
10275
10505
  { type: "error", inputs: [], name: "MarketAlreadyLaunched" },
10506
+ { type: "error", inputs: [], name: "MarketMinimumNotReached" },
10507
+ { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
10276
10508
  { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
10277
10509
  { type: "error", inputs: [], name: "NotInitializing" },
10278
10510
  { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
@@ -10294,6 +10526,9 @@ var zoraTimedSaleStrategyABI = [
10294
10526
  { type: "error", inputs: [], name: "SaleHasNotStarted" },
10295
10527
  { type: "error", inputs: [], name: "SaleInProgress" },
10296
10528
  { type: "error", inputs: [], name: "SaleNotSet" },
10529
+ { type: "error", inputs: [], name: "SaleV2AlreadyStarted" },
10530
+ { type: "error", inputs: [], name: "SaleV2Ended" },
10531
+ { type: "error", inputs: [], name: "SaleV2NotSet" },
10297
10532
  { type: "error", inputs: [], name: "StartTimeCannotBeAfterEndTime" },
10298
10533
  { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
10299
10534
  {
@@ -10622,6 +10857,13 @@ var sponsoredSparksBatchTypedDataDefinition = ({
10622
10857
  }
10623
10858
  });
10624
10859
 
10860
+ // src/encoding.ts
10861
+ var safeTransferSwapAbiParameters = [
10862
+ { name: "recipient", internalType: "address payable", type: "address" },
10863
+ { name: "minEthToAcquire", internalType: "uint256", type: "uint256" },
10864
+ { name: "sqrtPriceLimitX96", internalType: "uint160", type: "uint160" }
10865
+ ];
10866
+
10625
10867
  // src/generated/1155.ts
10626
10868
  var __exports = {};
10627
10869
  __export(__exports, {
@@ -10975,6 +11217,7 @@ export {
10975
11217
  protocolRewardsABI,
10976
11218
  protocolRewardsAddress,
10977
11219
  protocolRewardsConfig,
11220
+ safeTransferSwapAbiParameters,
10978
11221
  secondarySwapABI,
10979
11222
  secondarySwapAddress,
10980
11223
  secondarySwapConfig,
@@ -10987,6 +11230,9 @@ export {
10987
11230
  upgradeGateABI,
10988
11231
  upgradeGateAddress,
10989
11232
  upgradeGateConfig,
11233
+ wethABI,
11234
+ wethAddress,
11235
+ wethConfig,
10990
11236
  zoraCreator1155FactoryImplABI,
10991
11237
  zoraCreator1155FactoryImplAddress,
10992
11238
  zoraCreator1155FactoryImplConfig,