@hypercerts-org/marketplace-sdk 0.3.37 → 0.4.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/HypercertExchangeClient.d.ts +3 -4
- package/dist/abis/IERC20.json +13 -0
- package/dist/abis/OrderValidatorV2A.json +13 -0
- package/dist/index.cjs.js +249 -217
- package/dist/index.esm.js +250 -218
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/helpers/OrderValidatorV2A.d.ts +5 -1
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC20.d.ts +5 -1
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/ExecutionManager__factory.d.ts +1 -1
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/LooksRareProtocol__factory.d.ts +1 -1
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/StrategyManager__factory.d.ts +1 -1
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/TransferSelectorNFT__factory.d.ts +1 -1
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/helpers/OrderValidatorV2A__factory.d.ts +11 -1
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/helpers/ProtocolHelpers__factory.d.ts +1 -1
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC20__factory.d.ts +10 -0
- package/dist/typechain/factories/solmate/src/tokens/WETH__factory.d.ts +1 -1
- package/dist/typechain/factories/src/contracts/tests/Verifier__factory.d.ts +1 -1
- package/dist/types.d.ts +23 -0
- package/dist/utils/api.d.ts +50 -23
- package/dist/utils/graphl.d.ts +4 -3
- package/package.json +3 -5
- package/LICENSE-APACHE +0 -10
- package/LICENSE-MIT +0 -21
- package/dist/utils/hypercerts-database-types.d.ts +0 -568
@@ -1,7 +1,6 @@
|
|
1
1
|
import { BigNumberish, ContractTransactionResponse, Overrides, Provider, Signer, TypedDataDomain } from "ethers";
|
2
|
-
import { Addresses, BatchTransferItem, ChainId, ContractMethods, CreateMakerAskOutput, CreateMakerBidOutput, CreateMakerCollectionOfferInput, CreateMakerCollectionOfferWithProofInput, CreateMakerInput, Currencies, Maker, MerkleTree, OrderValidatorCode, SignMerkleTreeOrdersOutput, StrategyInfo, StrategyType, Taker } from "./types";
|
2
|
+
import { Addresses, BatchTransferItem, ChainId, ContractMethods, CreateMakerAskOutput, CreateMakerBidOutput, CreateMakerCollectionOfferInput, CreateMakerCollectionOfferWithProofInput, CreateMakerInput, Currencies, Maker, MerkleTree, Order, OrderValidatorCode, SignMerkleTreeOrdersOutput, StrategyInfo, StrategyType, Taker } from "./types";
|
3
3
|
import { ApiClient } from "./utils/api";
|
4
|
-
import { Database } from "./utils/hypercerts-database-types";
|
5
4
|
/**
|
6
5
|
* HypercertExchange
|
7
6
|
* This class provides helpers to interact with the HypercertExchange V2 contracts
|
@@ -222,11 +221,11 @@ export declare class HypercertExchangeClient {
|
|
222
221
|
* @param orders List of orders to be checked
|
223
222
|
* @param overrides Call overrides (optional)
|
224
223
|
*/
|
225
|
-
checkOrdersValidity(orders:
|
224
|
+
checkOrdersValidity(orders: Order[], overrides?: Overrides): Promise<{
|
226
225
|
id: string;
|
227
226
|
valid: boolean;
|
228
227
|
validatorCodes: OrderValidatorCode[];
|
229
|
-
order: Omit<
|
228
|
+
order: Omit<Order, "id" | "createdAt" | "invalidated" | "validator_codes">;
|
230
229
|
}[]>;
|
231
230
|
/**
|
232
231
|
* Retrieve strategy info
|
package/dist/abis/IERC20.json
CHANGED
@@ -116,6 +116,19 @@
|
|
116
116
|
"stateMutability": "view",
|
117
117
|
"type": "function"
|
118
118
|
},
|
119
|
+
{
|
120
|
+
"inputs": [],
|
121
|
+
"name": "decimals",
|
122
|
+
"outputs": [
|
123
|
+
{
|
124
|
+
"internalType": "uint8",
|
125
|
+
"name": "",
|
126
|
+
"type": "uint8"
|
127
|
+
}
|
128
|
+
],
|
129
|
+
"stateMutability": "view",
|
130
|
+
"type": "function"
|
131
|
+
},
|
119
132
|
{
|
120
133
|
"inputs": [],
|
121
134
|
"name": "totalSupply",
|
@@ -394,6 +394,19 @@
|
|
394
394
|
"stateMutability": "view",
|
395
395
|
"type": "function"
|
396
396
|
},
|
397
|
+
{
|
398
|
+
"inputs": [],
|
399
|
+
"name": "royaltyFeeRegistry",
|
400
|
+
"outputs": [
|
401
|
+
{
|
402
|
+
"internalType": "contract IRoyaltyFeeRegistry",
|
403
|
+
"name": "",
|
404
|
+
"type": "address"
|
405
|
+
}
|
406
|
+
],
|
407
|
+
"stateMutability": "view",
|
408
|
+
"type": "function"
|
409
|
+
},
|
397
410
|
{
|
398
411
|
"inputs": [],
|
399
412
|
"name": "transferManager",
|