@zoralabs/protocol-deployments 0.3.11-DEV.3 → 0.3.11-DEV.6

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
@@ -1059,6 +1059,34 @@ var cointagABI = [
1059
1059
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1060
1060
  stateMutability: "view"
1061
1061
  },
1062
+ {
1063
+ type: "function",
1064
+ inputs: [],
1065
+ name: "REQUIRED_OBSERVATION_CARDINALITY",
1066
+ outputs: [{ name: "", internalType: "uint16", type: "uint16" }],
1067
+ stateMutability: "view"
1068
+ },
1069
+ {
1070
+ type: "function",
1071
+ inputs: [],
1072
+ name: "SLIPPAGE",
1073
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1074
+ stateMutability: "view"
1075
+ },
1076
+ {
1077
+ type: "function",
1078
+ inputs: [],
1079
+ name: "TIME_WEIGHTED_PRICE_PERIOD",
1080
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
1081
+ stateMutability: "view"
1082
+ },
1083
+ {
1084
+ type: "function",
1085
+ inputs: [],
1086
+ name: "contractVersion",
1087
+ outputs: [{ name: "", internalType: "string", type: "string" }],
1088
+ stateMutability: "pure"
1089
+ },
1062
1090
  {
1063
1091
  type: "function",
1064
1092
  inputs: [],
@@ -1066,6 +1094,13 @@ var cointagABI = [
1066
1094
  outputs: [{ name: "", internalType: "address", type: "address" }],
1067
1095
  stateMutability: "view"
1068
1096
  },
1097
+ {
1098
+ type: "function",
1099
+ inputs: [],
1100
+ name: "ensureObservationCardinality",
1101
+ outputs: [],
1102
+ stateMutability: "nonpayable"
1103
+ },
1069
1104
  {
1070
1105
  type: "function",
1071
1106
  inputs: [],
@@ -1075,6 +1110,16 @@ var cointagABI = [
1075
1110
  ],
1076
1111
  stateMutability: "view"
1077
1112
  },
1113
+ {
1114
+ type: "function",
1115
+ inputs: [],
1116
+ name: "hasEnoughObservationCardinality",
1117
+ outputs: [
1118
+ { name: "", internalType: "bool", type: "bool" },
1119
+ { name: "", internalType: "uint256", type: "uint256" }
1120
+ ],
1121
+ stateMutability: "view"
1122
+ },
1078
1123
  {
1079
1124
  type: "function",
1080
1125
  inputs: [
@@ -1119,6 +1164,13 @@ var cointagABI = [
1119
1164
  ],
1120
1165
  stateMutability: "view"
1121
1166
  },
1167
+ {
1168
+ type: "function",
1169
+ inputs: [],
1170
+ name: "pull",
1171
+ outputs: [],
1172
+ stateMutability: "nonpayable"
1173
+ },
1122
1174
  {
1123
1175
  type: "function",
1124
1176
  inputs: [
@@ -1137,13 +1189,6 @@ var cointagABI = [
1137
1189
  outputs: [{ name: "", internalType: "contract IWETH", type: "address" }],
1138
1190
  stateMutability: "view"
1139
1191
  },
1140
- {
1141
- type: "function",
1142
- inputs: [],
1143
- name: "withdraw",
1144
- outputs: [],
1145
- stateMutability: "nonpayable"
1146
- },
1147
1192
  {
1148
1193
  type: "event",
1149
1194
  anonymous: false,
@@ -1247,11 +1292,27 @@ var cointagABI = [
1247
1292
  inputs: [{ name: "account", internalType: "address", type: "address" }],
1248
1293
  name: "AddressInsufficientBalance"
1249
1294
  },
1295
+ {
1296
+ type: "error",
1297
+ inputs: [
1298
+ { name: "amountOut", internalType: "uint256", type: "uint256" },
1299
+ { name: "amountOutMinimum", internalType: "uint256", type: "uint256" }
1300
+ ],
1301
+ name: "AmountOutLessThanMinimum"
1302
+ },
1250
1303
  { type: "error", inputs: [], name: "FailedInnerCall" },
1251
1304
  { type: "error", inputs: [], name: "InvalidInitialization" },
1305
+ {
1306
+ type: "error",
1307
+ inputs: [
1308
+ { name: "requiredCardinality", internalType: "uint256", type: "uint256" },
1309
+ { name: "currentCardinality", internalType: "uint256", type: "uint256" }
1310
+ ],
1311
+ name: "NotEnoughObservationCardinality"
1312
+ },
1252
1313
  { type: "error", inputs: [], name: "NotInitializing" },
1253
- { type: "error", inputs: [], name: "ONLY_POOL" },
1254
- { type: "error", inputs: [], name: "ONLY_PROTOCOL_REWARDS_OR_WETH" },
1314
+ { type: "error", inputs: [], name: "OnlyPool" },
1315
+ { type: "error", inputs: [], name: "OnlyProtocolRewardsOrWeth" },
1255
1316
  {
1256
1317
  type: "error",
1257
1318
  inputs: [{ name: "token", internalType: "address", type: "address" }],
@@ -1330,8 +1391,28 @@ var cointagFactoryABI = [
1330
1391
  },
1331
1392
  { name: "saltSource", internalType: "bytes", type: "bytes" }
1332
1393
  ],
1333
- name: "getOrCreateCointag",
1394
+ name: "getCointagAddress",
1334
1395
  outputs: [{ name: "", internalType: "address", type: "address" }],
1396
+ stateMutability: "view"
1397
+ },
1398
+ {
1399
+ type: "function",
1400
+ inputs: [
1401
+ {
1402
+ name: "_creatorRewardRecipient",
1403
+ internalType: "address",
1404
+ type: "address"
1405
+ },
1406
+ { name: "_pool", internalType: "address", type: "address" },
1407
+ {
1408
+ name: "_percentageToBuyBurn",
1409
+ internalType: "uint256",
1410
+ type: "uint256"
1411
+ },
1412
+ { name: "saltSource", internalType: "bytes", type: "bytes" }
1413
+ ],
1414
+ name: "getOrCreateCointag",
1415
+ outputs: [{ name: "", internalType: "contract Cointag", type: "address" }],
1335
1416
  stateMutability: "nonpayable"
1336
1417
  },
1337
1418
  {
@@ -1560,6 +1641,7 @@ var cointagFactoryABI = [
1560
1641
  }
1561
1642
  ];
1562
1643
  var cointagFactoryAddress = {
1644
+ 8453: "0x77777779A8ed7943134E4E2D5C48698bCcBE8Be8",
1563
1645
  84532: "0x77777779A8ed7943134E4E2D5C48698bCcBE8Be8"
1564
1646
  };
1565
1647
  var cointagFactoryConfig = {
@@ -4228,6 +4310,118 @@ var iSponsoredSparksSpenderActionABI = [
4228
4310
  stateMutability: "nonpayable"
4229
4311
  }
4230
4312
  ];
4313
+ var iUniswapV3PoolABI = [
4314
+ {
4315
+ type: "function",
4316
+ inputs: [],
4317
+ name: "fee",
4318
+ outputs: [{ name: "", internalType: "uint24", type: "uint24" }],
4319
+ stateMutability: "view"
4320
+ },
4321
+ {
4322
+ type: "function",
4323
+ inputs: [],
4324
+ name: "feeGrowthGlobal0X128",
4325
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4326
+ stateMutability: "view"
4327
+ },
4328
+ {
4329
+ type: "function",
4330
+ inputs: [],
4331
+ name: "feeGrowthGlobal1X128",
4332
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4333
+ stateMutability: "view"
4334
+ },
4335
+ {
4336
+ type: "function",
4337
+ inputs: [
4338
+ {
4339
+ name: "observationCardinalityNext",
4340
+ internalType: "uint16",
4341
+ type: "uint16"
4342
+ }
4343
+ ],
4344
+ name: "increaseObservationCardinalityNext",
4345
+ outputs: [],
4346
+ stateMutability: "nonpayable"
4347
+ },
4348
+ {
4349
+ type: "function",
4350
+ inputs: [
4351
+ { name: "secondsAgos", internalType: "uint32[]", type: "uint32[]" }
4352
+ ],
4353
+ name: "observe",
4354
+ outputs: [
4355
+ { name: "tickCumulatives", internalType: "int56[]", type: "int56[]" },
4356
+ {
4357
+ name: "secondsPerLiquidityCumulativeX128s",
4358
+ internalType: "uint160[]",
4359
+ type: "uint160[]"
4360
+ }
4361
+ ],
4362
+ stateMutability: "view"
4363
+ },
4364
+ {
4365
+ type: "function",
4366
+ inputs: [],
4367
+ name: "slot0",
4368
+ outputs: [
4369
+ {
4370
+ name: "slot0",
4371
+ internalType: "struct IUniswapV3Pool.Slot0",
4372
+ type: "tuple",
4373
+ components: [
4374
+ { name: "sqrtPriceX96", internalType: "uint160", type: "uint160" },
4375
+ { name: "tick", internalType: "int24", type: "int24" },
4376
+ { name: "observationIndex", internalType: "uint16", type: "uint16" },
4377
+ {
4378
+ name: "observationCardinality",
4379
+ internalType: "uint16",
4380
+ type: "uint16"
4381
+ },
4382
+ {
4383
+ name: "observationCardinalityNext",
4384
+ internalType: "uint16",
4385
+ type: "uint16"
4386
+ },
4387
+ { name: "feeProtocol", internalType: "uint8", type: "uint8" },
4388
+ { name: "unlocked", internalType: "bool", type: "bool" }
4389
+ ]
4390
+ }
4391
+ ],
4392
+ stateMutability: "view"
4393
+ },
4394
+ {
4395
+ type: "function",
4396
+ inputs: [
4397
+ { name: "recipient", internalType: "address", type: "address" },
4398
+ { name: "zeroForOne", internalType: "bool", type: "bool" },
4399
+ { name: "amountSpecified", internalType: "int256", type: "int256" },
4400
+ { name: "sqrtPriceLimitX96", internalType: "uint160", type: "uint160" },
4401
+ { name: "data", internalType: "bytes", type: "bytes" }
4402
+ ],
4403
+ name: "swap",
4404
+ outputs: [
4405
+ { name: "amount0", internalType: "int256", type: "int256" },
4406
+ { name: "amount1", internalType: "int256", type: "int256" }
4407
+ ],
4408
+ stateMutability: "nonpayable"
4409
+ },
4410
+ {
4411
+ type: "function",
4412
+ inputs: [],
4413
+ name: "token0",
4414
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4415
+ stateMutability: "view"
4416
+ },
4417
+ {
4418
+ type: "function",
4419
+ inputs: [],
4420
+ name: "token1",
4421
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4422
+ stateMutability: "view"
4423
+ }
4424
+ ];
4231
4425
  var iUnwrapAndForwardActionABI = [
4232
4426
  {
4233
4427
  type: "function",
@@ -5328,6 +5522,92 @@ var sponsoredSparksSpenderConfig = {
5328
5522
  address: sponsoredSparksSpenderAddress,
5329
5523
  abi: sponsoredSparksSpenderABI
5330
5524
  };
5525
+ var uniswapV3SwapRouterABI = [
5526
+ {
5527
+ type: "function",
5528
+ inputs: [
5529
+ {
5530
+ name: "params",
5531
+ internalType: "struct ISwapRouter.ExactInputSingleParams",
5532
+ type: "tuple",
5533
+ components: [
5534
+ { name: "tokenIn", internalType: "address", type: "address" },
5535
+ { name: "tokenOut", internalType: "address", type: "address" },
5536
+ { name: "fee", internalType: "uint24", type: "uint24" },
5537
+ { name: "recipient", internalType: "address", type: "address" },
5538
+ { name: "amountIn", internalType: "uint256", type: "uint256" },
5539
+ {
5540
+ name: "amountOutMinimum",
5541
+ internalType: "uint256",
5542
+ type: "uint256"
5543
+ },
5544
+ {
5545
+ name: "sqrtPriceLimitX96",
5546
+ internalType: "uint160",
5547
+ type: "uint160"
5548
+ }
5549
+ ]
5550
+ }
5551
+ ],
5552
+ name: "exactInputSingle",
5553
+ outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
5554
+ stateMutability: "payable"
5555
+ },
5556
+ {
5557
+ type: "function",
5558
+ inputs: [
5559
+ {
5560
+ name: "params",
5561
+ internalType: "struct ISwapRouter.ExactOutputSingleParams",
5562
+ type: "tuple",
5563
+ components: [
5564
+ { name: "tokenIn", internalType: "address", type: "address" },
5565
+ { name: "tokenOut", internalType: "address", type: "address" },
5566
+ { name: "fee", internalType: "uint24", type: "uint24" },
5567
+ { name: "recipient", internalType: "address", type: "address" },
5568
+ { name: "amountOut", internalType: "uint256", type: "uint256" },
5569
+ { name: "amountInMaximum", internalType: "uint256", type: "uint256" },
5570
+ {
5571
+ name: "sqrtPriceLimitX96",
5572
+ internalType: "uint160",
5573
+ type: "uint160"
5574
+ }
5575
+ ]
5576
+ }
5577
+ ],
5578
+ name: "exactOutputSingle",
5579
+ outputs: [{ name: "amountIn", internalType: "uint256", type: "uint256" }],
5580
+ stateMutability: "payable"
5581
+ },
5582
+ {
5583
+ type: "function",
5584
+ inputs: [
5585
+ { name: "amount0Delta", internalType: "int256", type: "int256" },
5586
+ { name: "amount1Delta", internalType: "int256", type: "int256" },
5587
+ { name: "data", internalType: "bytes", type: "bytes" }
5588
+ ],
5589
+ name: "uniswapV3SwapCallback",
5590
+ outputs: [],
5591
+ stateMutability: "nonpayable"
5592
+ }
5593
+ ];
5594
+ var uniswapV3SwapRouterAddress = {
5595
+ 1: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
5596
+ 10: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
5597
+ 8453: "0x2626664c2603336E57B271c5C0b26F421741e481",
5598
+ 42161: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
5599
+ 81457: "0x549FEB8c9bd4c12Ad2AB27022dA12492aC452B66",
5600
+ 84532: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
5601
+ 421614: "0x101F443B4d1b059569D643917553c771E1b9663E",
5602
+ 7777777: "0x7De04c96BE5159c3b5CeffC82aa176dc81281557",
5603
+ 11155111: "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
5604
+ 11155420: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
5605
+ 999999999: "0x6B36d761981d82B1e07cF3c4daF4cB4615c4850a"
5606
+ };
5607
+ var uniswapV3SwapRouterConfig = {
5608
+ address: uniswapV3SwapRouterAddress,
5609
+ abi: uniswapV3SwapRouterABI
5610
+ };
5331
5611
  var upgradeGateABI = [
5332
5612
  { type: "constructor", inputs: [], stateMutability: "nonpayable" },
5333
5613
  {
@@ -12708,6 +12988,35 @@ var zoraTimedSaleStrategyABI = [
12708
12988
  ],
12709
12989
  stateMutability: "pure"
12710
12990
  },
12991
+ {
12992
+ type: "function",
12993
+ inputs: [{ name: "quantity", internalType: "uint256", type: "uint256" }],
12994
+ name: "computeRewardsV2",
12995
+ outputs: [
12996
+ {
12997
+ name: "",
12998
+ internalType: "struct IZoraTimedSaleStrategy.RewardsSettings",
12999
+ type: "tuple",
13000
+ components: [
13001
+ { name: "totalReward", internalType: "uint256", type: "uint256" },
13002
+ { name: "creatorReward", internalType: "uint256", type: "uint256" },
13003
+ {
13004
+ name: "createReferralReward",
13005
+ internalType: "uint256",
13006
+ type: "uint256"
13007
+ },
13008
+ {
13009
+ name: "mintReferralReward",
13010
+ internalType: "uint256",
13011
+ type: "uint256"
13012
+ },
13013
+ { name: "marketReward", internalType: "uint256", type: "uint256" },
13014
+ { name: "zoraReward", internalType: "uint256", type: "uint256" }
13015
+ ]
13016
+ }
13017
+ ],
13018
+ stateMutability: "pure"
13019
+ },
12711
13020
  {
12712
13021
  type: "function",
12713
13022
  inputs: [],
@@ -14352,6 +14661,7 @@ export {
14352
14661
  erc20ZRoyaltiesConfig,
14353
14662
  iPremintDefinitionsABI,
14354
14663
  iSponsoredSparksSpenderActionABI,
14664
+ iUniswapV3PoolABI,
14355
14665
  iUnwrapAndForwardActionABI,
14356
14666
  mintsEthUnwrapperAndCallerABI,
14357
14667
  mintsEthUnwrapperAndCallerAddress,
@@ -14379,6 +14689,9 @@ export {
14379
14689
  sponsoredSparksSpenderABI,
14380
14690
  sponsoredSparksSpenderAddress,
14381
14691
  sponsoredSparksSpenderConfig,
14692
+ uniswapV3SwapRouterABI,
14693
+ uniswapV3SwapRouterAddress,
14694
+ uniswapV3SwapRouterConfig,
14382
14695
  upgradeGateABI,
14383
14696
  upgradeGateAddress,
14384
14697
  upgradeGateConfig,