@zoralabs/protocol-deployments 0.5.8 → 0.5.10

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
@@ -22,7 +22,8 @@ var buySupplyWithSwapRouterHookABI = [
22
22
  internalType: "contract IZoraFactory",
23
23
  type: "address"
24
24
  },
25
- { name: "_swapRouter", internalType: "address", type: "address" }
25
+ { name: "_swapRouter", internalType: "address", type: "address" },
26
+ { name: "_poolManager", internalType: "address", type: "address" }
26
27
  ],
27
28
  stateMutability: "nonpayable"
28
29
  },
@@ -53,16 +54,29 @@ var buySupplyWithSwapRouterHookABI = [
53
54
  outputs: [{ name: "", internalType: "bool", type: "bool" }],
54
55
  stateMutability: "pure"
55
56
  },
57
+ {
58
+ type: "function",
59
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
60
+ name: "unlockCallback",
61
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
62
+ stateMutability: "nonpayable"
63
+ },
56
64
  { type: "error", inputs: [], name: "AddressZero" },
57
65
  {
58
66
  type: "error",
59
67
  inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
60
68
  name: "CoinBalanceNot0"
61
69
  },
70
+ {
71
+ type: "error",
72
+ inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
73
+ name: "CurrencyBalanceNot0"
74
+ },
62
75
  { type: "error", inputs: [], name: "Erc20NotReceived" },
63
76
  { type: "error", inputs: [], name: "HookNotImplemented" },
64
77
  { type: "error", inputs: [], name: "InvalidSwapRouterCall" },
65
78
  { type: "error", inputs: [], name: "NotFactory" },
79
+ { type: "error", inputs: [], name: "OnlyPoolManager" },
66
80
  {
67
81
  type: "error",
68
82
  inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
@@ -70,7 +84,7 @@ var buySupplyWithSwapRouterHookABI = [
70
84
  }
71
85
  ];
72
86
  var buySupplyWithSwapRouterHookAddress = {
73
- 8453: "0x98fbEab71999b9777fE14E9Eb20832570c7fE1ed",
87
+ 8453: "0xd77038a7f400E8242d2916f7EB5741e689d4aE25",
74
88
  84532: "0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE"
75
89
  };
76
90
  var buySupplyWithSwapRouterHookConfig = {
@@ -1250,7 +1264,7 @@ var coinABI = [
1250
1264
  {
1251
1265
  type: "function",
1252
1266
  inputs: [],
1253
- name: "doppler",
1267
+ name: "dopplerFeeRecipient",
1254
1268
  outputs: [{ name: "", internalType: "address", type: "address" }],
1255
1269
  stateMutability: "view"
1256
1270
  },
@@ -2717,7 +2731,7 @@ var coinV4ABI = [
2717
2731
  {
2718
2732
  type: "function",
2719
2733
  inputs: [],
2720
- name: "doppler",
2734
+ name: "dopplerFeeRecipient",
2721
2735
  outputs: [{ name: "", internalType: "address", type: "address" }],
2722
2736
  stateMutability: "view"
2723
2737
  },
@@ -5355,6 +5369,83 @@ var commentsConfig = {
5355
5369
  address: commentsAddress,
5356
5370
  abi: commentsABI
5357
5371
  };
5372
+ var devBuySupplyWithSwapRouterHookABI = [
5373
+ {
5374
+ type: "constructor",
5375
+ inputs: [
5376
+ {
5377
+ name: "_factory",
5378
+ internalType: "contract IZoraFactory",
5379
+ type: "address"
5380
+ },
5381
+ { name: "_swapRouter", internalType: "address", type: "address" },
5382
+ { name: "_poolManager", internalType: "address", type: "address" }
5383
+ ],
5384
+ stateMutability: "nonpayable"
5385
+ },
5386
+ {
5387
+ type: "function",
5388
+ inputs: [
5389
+ { name: "sender", internalType: "address", type: "address" },
5390
+ { name: "coin", internalType: "contract ICoin", type: "address" },
5391
+ { name: "hookData", internalType: "bytes", type: "bytes" }
5392
+ ],
5393
+ name: "afterCoinDeploy",
5394
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
5395
+ stateMutability: "payable"
5396
+ },
5397
+ {
5398
+ type: "function",
5399
+ inputs: [],
5400
+ name: "factory",
5401
+ outputs: [
5402
+ { name: "", internalType: "contract IZoraFactory", type: "address" }
5403
+ ],
5404
+ stateMutability: "view"
5405
+ },
5406
+ {
5407
+ type: "function",
5408
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
5409
+ name: "supportsInterface",
5410
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
5411
+ stateMutability: "pure"
5412
+ },
5413
+ {
5414
+ type: "function",
5415
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
5416
+ name: "unlockCallback",
5417
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
5418
+ stateMutability: "nonpayable"
5419
+ },
5420
+ { type: "error", inputs: [], name: "AddressZero" },
5421
+ {
5422
+ type: "error",
5423
+ inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
5424
+ name: "CoinBalanceNot0"
5425
+ },
5426
+ {
5427
+ type: "error",
5428
+ inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
5429
+ name: "CurrencyBalanceNot0"
5430
+ },
5431
+ { type: "error", inputs: [], name: "Erc20NotReceived" },
5432
+ { type: "error", inputs: [], name: "HookNotImplemented" },
5433
+ { type: "error", inputs: [], name: "InvalidSwapRouterCall" },
5434
+ { type: "error", inputs: [], name: "NotFactory" },
5435
+ { type: "error", inputs: [], name: "OnlyPoolManager" },
5436
+ {
5437
+ type: "error",
5438
+ inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
5439
+ name: "SwapReverted"
5440
+ }
5441
+ ];
5442
+ var devBuySupplyWithSwapRouterHookAddress = {
5443
+ 8453: "0x0a747629609b22E348d0ea9865fC2A5a04ED945d"
5444
+ };
5445
+ var devBuySupplyWithSwapRouterHookConfig = {
5446
+ address: devBuySupplyWithSwapRouterHookAddress,
5447
+ abi: devBuySupplyWithSwapRouterHookABI
5448
+ };
5358
5449
  var devCoinFactoryABI = [
5359
5450
  {
5360
5451
  type: "constructor",
@@ -18585,6 +18676,9 @@ export {
18585
18676
  commentsConfig,
18586
18677
  __exports as contracts1155,
18587
18678
  decodeBuySupplyWithSwapRouterHookReturn,
18679
+ devBuySupplyWithSwapRouterHookABI,
18680
+ devBuySupplyWithSwapRouterHookAddress,
18681
+ devBuySupplyWithSwapRouterHookConfig,
18588
18682
  devCoinFactoryABI,
18589
18683
  devCoinFactoryAddress,
18590
18684
  devCoinFactoryConfig,