@hypercerts-org/marketplace-sdk 0.0.7 → 0.0.8

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.cjs.js CHANGED
@@ -1060,16 +1060,16 @@ var signMakerOrders = /*#__PURE__*/Object.freeze({
1060
1060
  signMerkleTreeOrders: signMerkleTreeOrders
1061
1061
  });
1062
1062
 
1063
- function asChainId(chainId) {
1063
+ const asDeployedChain = (chainId) => {
1064
1064
  if (!Object.values(exports.ChainId).includes(chainId)) {
1065
1065
  throw new Error(`Invalid chainId: ${chainId}`);
1066
1066
  }
1067
1067
  return chainId;
1068
- }
1068
+ };
1069
1069
 
1070
- var asChainId$1 = /*#__PURE__*/Object.freeze({
1070
+ var asDeployedChain$1 = /*#__PURE__*/Object.freeze({
1071
1071
  __proto__: null,
1072
- asChainId: asChainId
1072
+ asDeployedChain: asDeployedChain
1073
1073
  });
1074
1074
 
1075
1075
  const goerliAddresses = {
@@ -5195,7 +5195,7 @@ const utils = {
5195
5195
  ...encode,
5196
5196
  ...signMakerOrders,
5197
5197
  ...eip712,
5198
- ...asChainId$1,
5198
+ ...asDeployedChain$1,
5199
5199
  };
5200
5200
 
5201
5201
  exports.Eip712MakerMerkleTree = Eip712MakerMerkleTree;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  declare const utils: {
2
- asChainId(chainId: number): import("./types").ChainId;
2
+ asDeployedChain: (chainId: number) => import("./types").ChainId;
3
3
  MAKER_HASH: "0x003c1bce41a2de73dfe64d6eeb2b3d7f15f1c0c382d9d963c2c6daeb75f0e539";
4
4
  hashingMakerTypes: string[];
5
5
  makerTypes: import("./types").EIP712TypedData;
package/dist/index.esm.js CHANGED
@@ -1058,16 +1058,16 @@ var signMakerOrders = /*#__PURE__*/Object.freeze({
1058
1058
  signMerkleTreeOrders: signMerkleTreeOrders
1059
1059
  });
1060
1060
 
1061
- function asChainId(chainId) {
1061
+ const asDeployedChain = (chainId) => {
1062
1062
  if (!Object.values(ChainId).includes(chainId)) {
1063
1063
  throw new Error(`Invalid chainId: ${chainId}`);
1064
1064
  }
1065
1065
  return chainId;
1066
- }
1066
+ };
1067
1067
 
1068
- var asChainId$1 = /*#__PURE__*/Object.freeze({
1068
+ var asDeployedChain$1 = /*#__PURE__*/Object.freeze({
1069
1069
  __proto__: null,
1070
- asChainId: asChainId
1070
+ asDeployedChain: asDeployedChain
1071
1071
  });
1072
1072
 
1073
1073
  const goerliAddresses = {
@@ -5193,7 +5193,7 @@ const utils = {
5193
5193
  ...encode,
5194
5194
  ...signMakerOrders,
5195
5195
  ...eip712,
5196
- ...asChainId$1,
5196
+ ...asDeployedChain$1,
5197
5197
  };
5198
5198
 
5199
5199
  export { ChainId, CollectionType, Eip712MakerMerkleTree, Eip712MerkleTree, ErrorItemId, ErrorMerkleTreeDepth, ErrorQuoteType, ErrorSigner, ErrorStrategyType, ErrorTimestamp, IERC1155 as IERC1155Abi, abiIERC20 as IERC20Abi, abiIERC721 as IERC721Abi, LooksRare, LooksRareProtocol as LooksRareProtocolAbi, MAX_ORDERS_PER_TREE, MerkleTreeNodePosition, OrderValidatorCode, OrderValidatorV2A as OrderValidatorV2AAbi, QuoteType, StrategyType, TransferManager as TransferManagerAbi, WETH as WETHAbi, addressesByNetwork, chainInfo, defaultMerkleTree, utils };
@@ -0,0 +1,2 @@
1
+ import { ChainId } from "../types";
2
+ export declare const asDeployedChain: (chainId: number) => ChainId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypercerts-org/marketplace-sdk",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -1,2 +0,0 @@
1
- import { ChainId } from "../types";
2
- export declare function asChainId(chainId: number): ChainId;