@zoralabs/protocol-deployments 0.3.2 → 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
@@ -2085,8 +2085,7 @@ var secondarySwapABI = [
2085
2085
  type: "address"
2086
2086
  },
2087
2087
  { name: "maxEthToSpend", internalType: "uint256", type: "uint256" },
2088
- { name: "sqrtPriceLimitX96", internalType: "uint160", type: "uint160" },
2089
- { name: "comment", internalType: "string", type: "string" }
2088
+ { name: "sqrtPriceLimitX96", internalType: "uint160", type: "uint160" }
2090
2089
  ],
2091
2090
  name: "buy1155",
2092
2091
  outputs: []
@@ -2145,8 +2144,7 @@ var secondarySwapABI = [
2145
2144
  { name: "num1155ToSell", internalType: "uint256", type: "uint256" },
2146
2145
  { name: "recipient", internalType: "address payable", type: "address" },
2147
2146
  { name: "minEthToAcquire", internalType: "uint256", type: "uint256" },
2148
- { name: "sqrtPriceLimitX96", internalType: "uint160", type: "uint160" },
2149
- { name: "comment", internalType: "string", type: "string" }
2147
+ { name: "sqrtPriceLimitX96", internalType: "uint160", type: "uint160" }
2150
2148
  ],
2151
2149
  name: "sell1155",
2152
2150
  outputs: []
@@ -2956,6 +2954,73 @@ var upgradeGateConfig = {
2956
2954
  address: upgradeGateAddress,
2957
2955
  abi: upgradeGateABI
2958
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 };
2959
3024
  var zoraCreator1155FactoryImplABI = [
2960
3025
  {
2961
3026
  stateMutability: "nonpayable",
@@ -10792,6 +10857,13 @@ var sponsoredSparksBatchTypedDataDefinition = ({
10792
10857
  }
10793
10858
  });
10794
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
+
10795
10867
  // src/generated/1155.ts
10796
10868
  var __exports = {};
10797
10869
  __export(__exports, {
@@ -11145,6 +11217,7 @@ export {
11145
11217
  protocolRewardsABI,
11146
11218
  protocolRewardsAddress,
11147
11219
  protocolRewardsConfig,
11220
+ safeTransferSwapAbiParameters,
11148
11221
  secondarySwapABI,
11149
11222
  secondarySwapAddress,
11150
11223
  secondarySwapConfig,
@@ -11157,6 +11230,9 @@ export {
11157
11230
  upgradeGateABI,
11158
11231
  upgradeGateAddress,
11159
11232
  upgradeGateConfig,
11233
+ wethABI,
11234
+ wethAddress,
11235
+ wethConfig,
11160
11236
  zoraCreator1155FactoryImplABI,
11161
11237
  zoraCreator1155FactoryImplAddress,
11162
11238
  zoraCreator1155FactoryImplConfig,