@hypercerts-org/marketplace-sdk 0.5.3 → 0.6.0
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/errors.d.ts +0 -2
- package/dist/index.cjs.js +1 -6
- package/dist/index.esm.js +2 -6
- package/package.json +1 -1
package/dist/errors.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { OrderValidatorCode } from "./types";
|
2
1
|
/** Invalid timestamp format */
|
3
2
|
export declare class ErrorTimestamp extends Error {
|
4
3
|
readonly name = "ErrorTimestamp";
|
@@ -34,4 +33,3 @@ export declare class ErrorCurrency extends Error {
|
|
34
33
|
readonly name = "ErrorCurrency";
|
35
34
|
constructor();
|
36
35
|
}
|
37
|
-
export declare const ACCEPTED_ERROR_CODES: OrderValidatorCode[];
|
package/dist/index.cjs.js
CHANGED
@@ -1335,10 +1335,6 @@ class ErrorCurrency extends Error {
|
|
1335
1335
|
this.name = "ErrorCurrency";
|
1336
1336
|
}
|
1337
1337
|
}
|
1338
|
-
const ACCEPTED_ERROR_CODES = [
|
1339
|
-
exports.OrderValidatorCode.ORDER_EXPECTED_TO_BE_VALID,
|
1340
|
-
exports.OrderValidatorCode.TOO_EARLY_TO_EXECUTE_ORDER,
|
1341
|
-
];
|
1342
1338
|
|
1343
1339
|
var IERC1155 = [
|
1344
1340
|
{
|
@@ -8219,7 +8215,7 @@ class HypercertExchangeClient {
|
|
8219
8215
|
const result = await this.verifyMakerOrders(makers, signatures, undefined, overrides);
|
8220
8216
|
return result.map((res, index) => {
|
8221
8217
|
const order = orders[index];
|
8222
|
-
const valid = res.every((code) =>
|
8218
|
+
const valid = res.every((code) => code === exports.OrderValidatorCode.ORDER_EXPECTED_TO_BE_VALID);
|
8223
8219
|
return { id: order.id, valid, validatorCodes: res, order };
|
8224
8220
|
});
|
8225
8221
|
}
|
@@ -8378,7 +8374,6 @@ const utils = {
|
|
8378
8374
|
...asDeployedChain$1,
|
8379
8375
|
};
|
8380
8376
|
|
8381
|
-
exports.ACCEPTED_ERROR_CODES = ACCEPTED_ERROR_CODES;
|
8382
8377
|
exports.ApiClient = ApiClient;
|
8383
8378
|
exports.Eip712MakerMerkleTree = Eip712MakerMerkleTree;
|
8384
8379
|
exports.Eip712MerkleTree = Eip712MerkleTree;
|
package/dist/index.esm.js
CHANGED
@@ -1333,10 +1333,6 @@ class ErrorCurrency extends Error {
|
|
1333
1333
|
this.name = "ErrorCurrency";
|
1334
1334
|
}
|
1335
1335
|
}
|
1336
|
-
const ACCEPTED_ERROR_CODES = [
|
1337
|
-
OrderValidatorCode.ORDER_EXPECTED_TO_BE_VALID,
|
1338
|
-
OrderValidatorCode.TOO_EARLY_TO_EXECUTE_ORDER,
|
1339
|
-
];
|
1340
1336
|
|
1341
1337
|
var IERC1155 = [
|
1342
1338
|
{
|
@@ -8217,7 +8213,7 @@ class HypercertExchangeClient {
|
|
8217
8213
|
const result = await this.verifyMakerOrders(makers, signatures, undefined, overrides);
|
8218
8214
|
return result.map((res, index) => {
|
8219
8215
|
const order = orders[index];
|
8220
|
-
const valid = res.every((code) =>
|
8216
|
+
const valid = res.every((code) => code === OrderValidatorCode.ORDER_EXPECTED_TO_BE_VALID);
|
8221
8217
|
return { id: order.id, valid, validatorCodes: res, order };
|
8222
8218
|
});
|
8223
8219
|
}
|
@@ -8376,4 +8372,4 @@ const utils = {
|
|
8376
8372
|
...asDeployedChain$1,
|
8377
8373
|
};
|
8378
8374
|
|
8379
|
-
export {
|
8375
|
+
export { ApiClient, ChainId, CollectionType, Eip712MakerMerkleTree, Eip712MerkleTree, ErrorCurrency, ErrorItemId, ErrorMerkleTreeDepth, ErrorQuoteType, ErrorSigner, ErrorStrategyType, ErrorTimestamp, HypercertExchangeClient, IERC1155 as IERC1155Abi, abiIERC20 as IERC20Abi, abiIERC721 as IERC721Abi, LooksRareProtocol as LooksRareProtocolAbi, MAX_ORDERS_PER_TREE, MerkleTreeNodePosition, OrderValidatorCode, OrderValidatorV2A as OrderValidatorV2AAbi, QuoteType, SUPPORTED_CURRENCIES, StrategyType, abiTransferManager as TransferManagerAbi, WETH as WETHAbi, addressesByNetwork, chainInfo, currenciesByNetwork, defaultMerkleTree, utils };
|