@hypercerts-org/marketplace-sdk 0.0.13 → 0.0.14
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/LooksRare.d.ts +3 -3
- package/dist/index.cjs.js +4 -18
- package/dist/index.d.ts +6 -6
- package/dist/index.esm.js +6 -20
- package/dist/types.d.ts +5 -7
- package/dist/utils/calls/exchange.d.ts +6 -7
- package/package.json +1 -1
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/AffiliateManager.d.ts +0 -210
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/BatchOrderTypehashRegistry.d.ts +0 -35
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/CreatorFeeManagerWithRoyalties.d.ts +0 -47
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/CurrencyManager.d.ts +0 -247
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/ExecutionManager.d.ts +0 -616
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/LooksRareProtocol.d.ts +0 -1005
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/NonceManager.d.ts +0 -148
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/StrategyManager.d.ts +0 -401
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/TransferManager.d.ts +0 -324
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/TransferSelectorNFT.d.ts +0 -620
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/executionStrategies/BaseStrategy.d.ts +0 -97
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/executionStrategies/StrategyCollectionOffer.d.ts +0 -176
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/executionStrategies/index.d.ts +0 -2
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/helpers/OrderValidatorV2A.d.ts +0 -172
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/helpers/ProtocolHelpers.d.ts +0 -148
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/helpers/index.d.ts +0 -2
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/index.d.ts +0 -16
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IAffiliateManager.d.ts +0 -65
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ICreatorFeeManager.d.ts +0 -47
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ICurrencyManager.d.ts +0 -37
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IExecutionManager.d.ts +0 -64
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ILooksRareProtocol.d.ts +0 -343
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/INonceManager.d.ts +0 -72
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IRoyaltyFeeRegistry.d.ts +0 -41
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategy.d.ts +0 -97
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategyManager.d.ts +0 -85
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ITransferManager.d.ts +0 -80
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/index.d.ts +0 -10
- package/dist/typechain/@looksrare/contracts-exchange-v2/index.d.ts +0 -4
- package/dist/typechain/@looksrare/contracts-exchange-v2/test/index.d.ts +0 -2
- package/dist/typechain/@looksrare/contracts-exchange-v2/test/mock/MockRoyaltyFeeRegistry.d.ts +0 -222
- package/dist/typechain/@looksrare/contracts-exchange-v2/test/mock/index.d.ts +0 -1
- package/dist/typechain/@looksrare/contracts-libs/contracts/OwnableTwoSteps.d.ts +0 -121
- package/dist/typechain/@looksrare/contracts-libs/contracts/PackableReentrancyGuard.d.ts +0 -20
- package/dist/typechain/@looksrare/contracts-libs/contracts/index.d.ts +0 -4
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/IOwnableTwoSteps.d.ts +0 -80
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/IReentrancyGuard.d.ts +0 -20
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC1155.d.ts +0 -224
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC1271.d.ts +0 -35
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC165.d.ts +0 -29
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC20.d.ts +0 -129
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC2981.d.ts +0 -49
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC721.d.ts +0 -191
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IWETH.d.ts +0 -43
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/index.d.ts +0 -7
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/index.d.ts +0 -4
- package/dist/typechain/@looksrare/contracts-libs/index.d.ts +0 -2
- package/dist/typechain/@looksrare/index.d.ts +0 -4
- package/dist/typechain/common.d.ts +0 -50
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/AffiliateManager__factory.d.ts +0 -264
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/BatchOrderTypehashRegistry__factory.d.ts +0 -48
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/CreatorFeeManagerWithRoyalties__factory.d.ts +0 -74
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/CurrencyManager__factory.d.ts +0 -307
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/ExecutionManager__factory.d.ts +0 -748
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/LooksRareProtocol__factory.d.ts +0 -1527
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/NonceManager__factory.d.ts +0 -174
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/StrategyManager__factory.d.ts +0 -478
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/TransferManager__factory.d.ts +0 -406
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/TransferSelectorNFT__factory.d.ts +0 -766
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/executionStrategies/BaseStrategy__factory.d.ts +0 -100
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/executionStrategies/StrategyCollectionOffer__factory.d.ts +0 -323
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/executionStrategies/index.d.ts +0 -2
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/helpers/OrderValidatorV2A__factory.d.ts +0 -338
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/helpers/ProtocolHelpers__factory.d.ts +0 -302
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/helpers/index.d.ts +0 -2
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/index.d.ts +0 -13
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IAffiliateManager__factory.d.ts +0 -50
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/ICreatorFeeManager__factory.d.ts +0 -51
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/ICurrencyManager__factory.d.ts +0 -22
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IExecutionManager__factory.d.ts +0 -61
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/ILooksRareProtocol__factory.d.ts +0 -540
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/INonceManager__factory.d.ts +0 -57
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IRoyaltyFeeRegistry__factory.d.ts +0 -29
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategyManager__factory.d.ts +0 -88
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategy__factory.d.ts +0 -100
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/ITransferManager__factory.d.ts +0 -77
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/index.d.ts +0 -10
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/index.d.ts +0 -2
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/test/index.d.ts +0 -1
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/test/mock/MockRoyaltyFeeRegistry__factory.d.ts +0 -278
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/test/mock/index.d.ts +0 -1
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/OwnableTwoSteps__factory.d.ts +0 -130
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/PackableReentrancyGuard__factory.d.ts +0 -11
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/index.d.ts +0 -3
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/IOwnableTwoSteps__factory.d.ts +0 -66
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/IReentrancyGuard__factory.d.ts +0 -11
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC1155__factory.d.ts +0 -222
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC1271__factory.d.ts +0 -25
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC165__factory.d.ts +0 -21
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC20__factory.d.ts +0 -147
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC2981__factory.d.ts +0 -43
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC721__factory.d.ts +0 -213
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IWETH__factory.d.ts +0 -41
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/index.d.ts +0 -7
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/index.d.ts +0 -3
- package/dist/typechain/factories/@looksrare/contracts-libs/index.d.ts +0 -1
- package/dist/typechain/factories/@looksrare/index.d.ts +0 -2
- package/dist/typechain/factories/index.d.ts +0 -3
- package/dist/typechain/factories/solmate/index.d.ts +0 -1
- package/dist/typechain/factories/solmate/src/index.d.ts +0 -1
- package/dist/typechain/factories/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver__factory.d.ts +0 -67
- package/dist/typechain/factories/solmate/src/tokens/ERC1155.sol/ERC1155__factory.d.ts +0 -250
- package/dist/typechain/factories/solmate/src/tokens/ERC1155.sol/index.d.ts +0 -2
- package/dist/typechain/factories/solmate/src/tokens/ERC20__factory.d.ts +0 -235
- package/dist/typechain/factories/solmate/src/tokens/ERC721.sol/ERC721TokenReceiver__factory.d.ts +0 -33
- package/dist/typechain/factories/solmate/src/tokens/ERC721.sol/ERC721__factory.d.ts +0 -261
- package/dist/typechain/factories/solmate/src/tokens/ERC721.sol/index.d.ts +0 -2
- package/dist/typechain/factories/solmate/src/tokens/WETH__factory.d.ts +0 -299
- package/dist/typechain/factories/solmate/src/tokens/index.d.ts +0 -4
- package/dist/typechain/factories/src/contracts/index.d.ts +0 -1
- package/dist/typechain/factories/src/contracts/tests/MockERC1155__factory.d.ts +0 -283
- package/dist/typechain/factories/src/contracts/tests/MockERC721__factory.d.ts +0 -308
- package/dist/typechain/factories/src/contracts/tests/Verifier__factory.d.ts +0 -462
- package/dist/typechain/factories/src/contracts/tests/index.d.ts +0 -3
- package/dist/typechain/factories/src/index.d.ts +0 -1
- package/dist/typechain/index.d.ts +0 -97
- package/dist/typechain/solmate/index.d.ts +0 -2
- package/dist/typechain/solmate/src/index.d.ts +0 -2
- package/dist/typechain/solmate/src/tokens/ERC1155.sol/ERC1155.d.ts +0 -236
- package/dist/typechain/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver.d.ts +0 -67
- package/dist/typechain/solmate/src/tokens/ERC1155.sol/index.d.ts +0 -2
- package/dist/typechain/solmate/src/tokens/ERC20.d.ts +0 -181
- package/dist/typechain/solmate/src/tokens/ERC721.sol/ERC721.d.ts +0 -211
- package/dist/typechain/solmate/src/tokens/ERC721.sol/ERC721TokenReceiver.d.ts +0 -39
- package/dist/typechain/solmate/src/tokens/ERC721.sol/index.d.ts +0 -2
- package/dist/typechain/solmate/src/tokens/WETH.d.ts +0 -219
- package/dist/typechain/solmate/src/tokens/index.d.ts +0 -6
- package/dist/typechain/src/contracts/index.d.ts +0 -2
- package/dist/typechain/src/contracts/tests/MockERC1155.d.ts +0 -252
- package/dist/typechain/src/contracts/tests/MockERC721.d.ts +0 -219
- package/dist/typechain/src/contracts/tests/Verifier.d.ts +0 -174
- package/dist/typechain/src/contracts/tests/index.d.ts +0 -3
- package/dist/typechain/src/index.d.ts +0 -2
package/dist/LooksRare.d.ts
CHANGED
@@ -135,14 +135,14 @@ export declare class LooksRare {
|
|
135
135
|
signature: string;
|
136
136
|
merkleTree?: MerkleTree;
|
137
137
|
}[], isAtomic: boolean, overrides?: Overrides): {
|
138
|
-
call: (additionalOverrides?:
|
138
|
+
call: (additionalOverrides?: any) => any;
|
139
139
|
/**
|
140
140
|
* Validate a timestamp format (seconds)
|
141
141
|
* @param timestamp
|
142
142
|
* @returns boolean
|
143
143
|
*/
|
144
|
-
estimateGas: (additionalOverrides?:
|
145
|
-
callStatic: (additionalOverrides?:
|
144
|
+
estimateGas: (additionalOverrides?: any) => any;
|
145
|
+
callStatic: (additionalOverrides?: any) => any;
|
146
146
|
};
|
147
147
|
/**
|
148
148
|
* Cancell all maker bid and/or ask orders for the current user
|
package/dist/index.cjs.js
CHANGED
@@ -687,9 +687,7 @@ var strategies = /*#__PURE__*/Object.freeze({
|
|
687
687
|
/** List of supported chains */
|
688
688
|
exports.ChainId = void 0;
|
689
689
|
(function (ChainId) {
|
690
|
-
ChainId[ChainId["GOERLI"] = 5] = "GOERLI";
|
691
690
|
ChainId[ChainId["SEPOLIA"] = 11155111] = "SEPOLIA";
|
692
|
-
ChainId[ChainId["HARDHAT"] = 31337] = "HARDHAT";
|
693
691
|
})(exports.ChainId || (exports.ChainId = {}));
|
694
692
|
/** List of collection types supported by the protocol */
|
695
693
|
exports.CollectionType = void 0;
|
@@ -1094,7 +1092,7 @@ const fetchOrderNonce = async ({ address, chainId }) => {
|
|
1094
1092
|
};
|
1095
1093
|
const createOrder = async ({ order, signer, signature, quoteType, chainId, }) => {
|
1096
1094
|
const { globalNonce, ...orderWithoutGlobalNonce } = order;
|
1097
|
-
return fetch(`${HYPERCERTS_MARKETPLACE_API_URL}/marketplace/order
|
1095
|
+
return fetch(`${HYPERCERTS_MARKETPLACE_API_URL}/marketplace/order/`, {
|
1098
1096
|
method: "POST",
|
1099
1097
|
headers: {
|
1100
1098
|
"Content-Type": "application/json",
|
@@ -1127,28 +1125,16 @@ var api = /*#__PURE__*/Object.freeze({
|
|
1127
1125
|
supabaseHypercerts: supabaseHypercerts
|
1128
1126
|
});
|
1129
1127
|
|
1130
|
-
const goerliAddresses = {
|
1131
|
-
EXCHANGE_V2: contracts.deployments[5].HypercertExchange,
|
1132
|
-
TRANSFER_MANAGER_V2: contracts.deployments[5].TransferManager,
|
1133
|
-
WETH: "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",
|
1134
|
-
ORDER_VALIDATOR_V2: contracts.deployments[5].OrderValidatorV2A,
|
1135
|
-
};
|
1136
1128
|
const sepoliaAddresses = {
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
// TRANSFER_MANAGER_V2: deployments[11155111].TransferManager as string,
|
1141
|
-
TRANSFER_MANAGER_V2: "0xF0983523e44A0c1EE3a02E7F6e7E53A3FBc52aD8",
|
1129
|
+
EXCHANGE_V2: sdk.deployments[11155111].addresses?.HypercertExchange,
|
1130
|
+
TRANSFER_MANAGER_V2: sdk.deployments[11155111].addresses?.TransferManager,
|
1131
|
+
ORDER_VALIDATOR_V2: sdk.deployments[11155111].addresses?.OrderValidator,
|
1142
1132
|
WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
|
1143
|
-
// ORDER_VALIDATOR_V2: deployments[11155111].OrderValidatorV2A as string,
|
1144
|
-
ORDER_VALIDATOR_V2: "0x45cae10e94d31f9d04f007fafd989d2cf7193ba6",
|
1145
1133
|
};
|
1146
1134
|
/**
|
1147
1135
|
* List of useful contract addresses
|
1148
1136
|
*/
|
1149
1137
|
const addressesByNetwork = {
|
1150
|
-
[exports.ChainId.GOERLI]: goerliAddresses,
|
1151
|
-
[exports.ChainId.HARDHAT]: goerliAddresses,
|
1152
1138
|
[exports.ChainId.SEPOLIA]: sepoliaAddresses,
|
1153
1139
|
};
|
1154
1140
|
|
package/dist/index.d.ts
CHANGED
@@ -25,12 +25,12 @@ declare const utils: {
|
|
25
25
|
cancelOrderNonces: (signer: import("ethers").Signer, address: string, nonces: import("ethers").BigNumberish[], overrides?: import("ethers").Overrides | undefined) => import("./types").ContractMethods;
|
26
26
|
cancelSubsetNonces: (signer: import("ethers").Signer, address: string, nonces: import("ethers").BigNumberish[], overrides?: import("ethers").Overrides | undefined) => import("./types").ContractMethods;
|
27
27
|
incrementBidAskNonces: (signer: import("ethers").Signer, address: string, bid: boolean, ask: boolean, overrides?: import("ethers").Overrides | undefined) => import("./types").ContractMethods;
|
28
|
-
executeTakerBid: (signer: import("ethers").Signer, address: string, taker: import("./types").Taker, maker: import("./types").Maker, makerSignature: string, merkleTree: import("./types").MerkleTree, overrides?:
|
29
|
-
executeTakerAsk: (signer: import("ethers").Signer, address: string, taker: import("./types").Taker, maker: import("./types").Maker, makerSignature: string, merkleTree: import("./types").MerkleTree, overrides?:
|
30
|
-
executeMultipleTakerBids: (signer: import("ethers").Signer, address: string, taker: import("./types").Taker[], maker: import("./types").Maker[], makerSignature: string[], isAtomic: boolean, merkleTree: import("./types").MerkleTree[], overrides?:
|
31
|
-
call: (additionalOverrides?:
|
32
|
-
estimateGas: (additionalOverrides?:
|
33
|
-
callStatic: (additionalOverrides?:
|
28
|
+
executeTakerBid: (signer: import("ethers").Signer, address: string, taker: import("./types").Taker, maker: import("./types").Maker, makerSignature: string, merkleTree: import("./types").MerkleTree, overrides?: any) => import("./types").ContractMethods;
|
29
|
+
executeTakerAsk: (signer: import("ethers").Signer, address: string, taker: import("./types").Taker, maker: import("./types").Maker, makerSignature: string, merkleTree: import("./types").MerkleTree, overrides?: any) => import("./types").ContractMethods;
|
30
|
+
executeMultipleTakerBids: (signer: import("ethers").Signer, address: string, taker: import("./types").Taker[], maker: import("./types").Maker[], makerSignature: string[], isAtomic: boolean, merkleTree: import("./types").MerkleTree[], overrides?: any) => {
|
31
|
+
call: (additionalOverrides?: any) => any;
|
32
|
+
estimateGas: (additionalOverrides?: any) => any;
|
33
|
+
callStatic: (additionalOverrides?: any) => any;
|
34
34
|
};
|
35
35
|
setApprovalForAll: (signer: import("ethers").Signer, collection: string, operator: string, approved: boolean, overrides?: import("ethers").Overrides | undefined) => Promise<import("ethers").ContractTransactionResponse>;
|
36
36
|
isApprovedForAll: (signerOrProvider: import("ethers").Signer | import("ethers").Provider, collection: string, account: string, operator: string, overrides?: import("ethers").Overrides | undefined) => Promise<boolean>;
|
package/dist/index.esm.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Contract, ZeroAddress, AbiCoder, TypedDataEncoder, keccak256, solidityPackedKeccak256, ethers, ZeroHash, MaxUint256 } from 'ethers';
|
2
|
-
import { HypercertExchangeAbi, TransferManagerAbi, OrderValidatorV2A as OrderValidatorV2A$1
|
2
|
+
import { HypercertExchangeAbi, TransferManagerAbi, OrderValidatorV2A as OrderValidatorV2A$1 } from '@hypercerts-org/contracts';
|
3
3
|
import { MerkleTree } from 'merkletreejs';
|
4
4
|
import { createClient } from '@supabase/supabase-js';
|
5
|
-
import { HypercertClient } from '@hypercerts-org/sdk';
|
5
|
+
import { HypercertClient, deployments } from '@hypercerts-org/sdk';
|
6
6
|
import { keccak256 as keccak256$1 } from 'js-sha3';
|
7
7
|
|
8
8
|
var abiIERC721 = [
|
@@ -685,9 +685,7 @@ var strategies = /*#__PURE__*/Object.freeze({
|
|
685
685
|
/** List of supported chains */
|
686
686
|
var ChainId;
|
687
687
|
(function (ChainId) {
|
688
|
-
ChainId[ChainId["GOERLI"] = 5] = "GOERLI";
|
689
688
|
ChainId[ChainId["SEPOLIA"] = 11155111] = "SEPOLIA";
|
690
|
-
ChainId[ChainId["HARDHAT"] = 31337] = "HARDHAT";
|
691
689
|
})(ChainId || (ChainId = {}));
|
692
690
|
/** List of collection types supported by the protocol */
|
693
691
|
var CollectionType;
|
@@ -1092,7 +1090,7 @@ const fetchOrderNonce = async ({ address, chainId }) => {
|
|
1092
1090
|
};
|
1093
1091
|
const createOrder = async ({ order, signer, signature, quoteType, chainId, }) => {
|
1094
1092
|
const { globalNonce, ...orderWithoutGlobalNonce } = order;
|
1095
|
-
return fetch(`${HYPERCERTS_MARKETPLACE_API_URL}/marketplace/order
|
1093
|
+
return fetch(`${HYPERCERTS_MARKETPLACE_API_URL}/marketplace/order/`, {
|
1096
1094
|
method: "POST",
|
1097
1095
|
headers: {
|
1098
1096
|
"Content-Type": "application/json",
|
@@ -1125,28 +1123,16 @@ var api = /*#__PURE__*/Object.freeze({
|
|
1125
1123
|
supabaseHypercerts: supabaseHypercerts
|
1126
1124
|
});
|
1127
1125
|
|
1128
|
-
const goerliAddresses = {
|
1129
|
-
EXCHANGE_V2: deployments[5].HypercertExchange,
|
1130
|
-
TRANSFER_MANAGER_V2: deployments[5].TransferManager,
|
1131
|
-
WETH: "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",
|
1132
|
-
ORDER_VALIDATOR_V2: deployments[5].OrderValidatorV2A,
|
1133
|
-
};
|
1134
1126
|
const sepoliaAddresses = {
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
// TRANSFER_MANAGER_V2: deployments[11155111].TransferManager as string,
|
1139
|
-
TRANSFER_MANAGER_V2: "0xF0983523e44A0c1EE3a02E7F6e7E53A3FBc52aD8",
|
1127
|
+
EXCHANGE_V2: deployments[11155111].addresses?.HypercertExchange,
|
1128
|
+
TRANSFER_MANAGER_V2: deployments[11155111].addresses?.TransferManager,
|
1129
|
+
ORDER_VALIDATOR_V2: deployments[11155111].addresses?.OrderValidator,
|
1140
1130
|
WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
|
1141
|
-
// ORDER_VALIDATOR_V2: deployments[11155111].OrderValidatorV2A as string,
|
1142
|
-
ORDER_VALIDATOR_V2: "0x45cae10e94d31f9d04f007fafd989d2cf7193ba6",
|
1143
1131
|
};
|
1144
1132
|
/**
|
1145
1133
|
* List of useful contract addresses
|
1146
1134
|
*/
|
1147
1135
|
const addressesByNetwork = {
|
1148
|
-
[ChainId.GOERLI]: goerliAddresses,
|
1149
|
-
[ChainId.HARDHAT]: goerliAddresses,
|
1150
1136
|
[ChainId.SEPOLIA]: sepoliaAddresses,
|
1151
1137
|
};
|
1152
1138
|
|
package/dist/types.d.ts
CHANGED
@@ -2,16 +2,14 @@ import { BigNumberish, BytesLike, Overrides, TypedDataField, ContractTransaction
|
|
2
2
|
import { Eip712MakerMerkleTree } from "./utils/Eip712MakerMerkleTree";
|
3
3
|
/** Addresses used to create a LooksRare instance */
|
4
4
|
export interface Addresses {
|
5
|
-
EXCHANGE_V2: string
|
6
|
-
TRANSFER_MANAGER_V2: string
|
7
|
-
WETH: string
|
8
|
-
ORDER_VALIDATOR_V2: string
|
5
|
+
EXCHANGE_V2: `0x${string}`;
|
6
|
+
TRANSFER_MANAGER_V2: `0x${string}`;
|
7
|
+
WETH: `0x${string}`;
|
8
|
+
ORDER_VALIDATOR_V2: `0x${string}`;
|
9
9
|
}
|
10
10
|
/** List of supported chains */
|
11
11
|
export declare enum ChainId {
|
12
|
-
|
13
|
-
SEPOLIA = 11155111,
|
14
|
-
HARDHAT = 31337
|
12
|
+
SEPOLIA = 11155111
|
15
13
|
}
|
16
14
|
/** ChainInfo data used to interact with LooksRare ecosystem */
|
17
15
|
export interface ChainInfo {
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { Signer } from "ethers";
|
2
2
|
import { Maker, MerkleTree, Taker, ContractMethods } from "../../types";
|
3
|
-
|
4
|
-
export declare const
|
5
|
-
export declare const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
callStatic: (additionalOverrides?: PayableOverrides) => any;
|
3
|
+
export declare const executeTakerBid: (signer: Signer, address: string, taker: Taker, maker: Maker, makerSignature: string, merkleTree: MerkleTree, overrides?: any) => ContractMethods;
|
4
|
+
export declare const executeTakerAsk: (signer: Signer, address: string, taker: Taker, maker: Maker, makerSignature: string, merkleTree: MerkleTree, overrides?: any) => ContractMethods;
|
5
|
+
export declare const executeMultipleTakerBids: (signer: Signer, address: string, taker: Taker[], maker: Maker[], makerSignature: string[], isAtomic: boolean, merkleTree: MerkleTree[], overrides?: any) => {
|
6
|
+
call: (additionalOverrides?: any) => any;
|
7
|
+
estimateGas: (additionalOverrides?: any) => any;
|
8
|
+
callStatic: (additionalOverrides?: any) => any;
|
10
9
|
};
|
package/package.json
CHANGED
@@ -1,210 +0,0 @@
|
|
1
|
-
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
2
|
-
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../common";
|
3
|
-
export interface AffiliateManagerInterface extends Interface {
|
4
|
-
getFunction(nameOrSignature: "affiliateController" | "affiliateRates" | "cancelOwnershipTransfer" | "confirmOwnershipRenouncement" | "confirmOwnershipTransfer" | "initiateOwnershipRenouncement" | "initiateOwnershipTransfer" | "isAffiliateProgramActive" | "owner" | "ownershipStatus" | "potentialOwner" | "updateAffiliateController" | "updateAffiliateProgramStatus" | "updateAffiliateRate"): FunctionFragment;
|
5
|
-
getEvent(nameOrSignatureOrTopic: "CancelOwnershipTransfer" | "InitiateOwnershipRenouncement" | "InitiateOwnershipTransfer" | "NewAffiliateController" | "NewAffiliateProgramStatus" | "NewAffiliateRate" | "NewOwner"): EventFragment;
|
6
|
-
encodeFunctionData(functionFragment: "affiliateController", values?: undefined): string;
|
7
|
-
encodeFunctionData(functionFragment: "affiliateRates", values: [AddressLike]): string;
|
8
|
-
encodeFunctionData(functionFragment: "cancelOwnershipTransfer", values?: undefined): string;
|
9
|
-
encodeFunctionData(functionFragment: "confirmOwnershipRenouncement", values?: undefined): string;
|
10
|
-
encodeFunctionData(functionFragment: "confirmOwnershipTransfer", values?: undefined): string;
|
11
|
-
encodeFunctionData(functionFragment: "initiateOwnershipRenouncement", values?: undefined): string;
|
12
|
-
encodeFunctionData(functionFragment: "initiateOwnershipTransfer", values: [AddressLike]): string;
|
13
|
-
encodeFunctionData(functionFragment: "isAffiliateProgramActive", values?: undefined): string;
|
14
|
-
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
15
|
-
encodeFunctionData(functionFragment: "ownershipStatus", values?: undefined): string;
|
16
|
-
encodeFunctionData(functionFragment: "potentialOwner", values?: undefined): string;
|
17
|
-
encodeFunctionData(functionFragment: "updateAffiliateController", values: [AddressLike]): string;
|
18
|
-
encodeFunctionData(functionFragment: "updateAffiliateProgramStatus", values: [boolean]): string;
|
19
|
-
encodeFunctionData(functionFragment: "updateAffiliateRate", values: [AddressLike, BigNumberish]): string;
|
20
|
-
decodeFunctionResult(functionFragment: "affiliateController", data: BytesLike): Result;
|
21
|
-
decodeFunctionResult(functionFragment: "affiliateRates", data: BytesLike): Result;
|
22
|
-
decodeFunctionResult(functionFragment: "cancelOwnershipTransfer", data: BytesLike): Result;
|
23
|
-
decodeFunctionResult(functionFragment: "confirmOwnershipRenouncement", data: BytesLike): Result;
|
24
|
-
decodeFunctionResult(functionFragment: "confirmOwnershipTransfer", data: BytesLike): Result;
|
25
|
-
decodeFunctionResult(functionFragment: "initiateOwnershipRenouncement", data: BytesLike): Result;
|
26
|
-
decodeFunctionResult(functionFragment: "initiateOwnershipTransfer", data: BytesLike): Result;
|
27
|
-
decodeFunctionResult(functionFragment: "isAffiliateProgramActive", data: BytesLike): Result;
|
28
|
-
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
29
|
-
decodeFunctionResult(functionFragment: "ownershipStatus", data: BytesLike): Result;
|
30
|
-
decodeFunctionResult(functionFragment: "potentialOwner", data: BytesLike): Result;
|
31
|
-
decodeFunctionResult(functionFragment: "updateAffiliateController", data: BytesLike): Result;
|
32
|
-
decodeFunctionResult(functionFragment: "updateAffiliateProgramStatus", data: BytesLike): Result;
|
33
|
-
decodeFunctionResult(functionFragment: "updateAffiliateRate", data: BytesLike): Result;
|
34
|
-
}
|
35
|
-
export declare namespace CancelOwnershipTransferEvent {
|
36
|
-
type InputTuple = [];
|
37
|
-
type OutputTuple = [];
|
38
|
-
interface OutputObject {
|
39
|
-
}
|
40
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
41
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
42
|
-
type Log = TypedEventLog<Event>;
|
43
|
-
type LogDescription = TypedLogDescription<Event>;
|
44
|
-
}
|
45
|
-
export declare namespace InitiateOwnershipRenouncementEvent {
|
46
|
-
type InputTuple = [];
|
47
|
-
type OutputTuple = [];
|
48
|
-
interface OutputObject {
|
49
|
-
}
|
50
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
51
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
52
|
-
type Log = TypedEventLog<Event>;
|
53
|
-
type LogDescription = TypedLogDescription<Event>;
|
54
|
-
}
|
55
|
-
export declare namespace InitiateOwnershipTransferEvent {
|
56
|
-
type InputTuple = [
|
57
|
-
previousOwner: AddressLike,
|
58
|
-
potentialOwner: AddressLike
|
59
|
-
];
|
60
|
-
type OutputTuple = [previousOwner: string, potentialOwner: string];
|
61
|
-
interface OutputObject {
|
62
|
-
previousOwner: string;
|
63
|
-
potentialOwner: string;
|
64
|
-
}
|
65
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
66
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
67
|
-
type Log = TypedEventLog<Event>;
|
68
|
-
type LogDescription = TypedLogDescription<Event>;
|
69
|
-
}
|
70
|
-
export declare namespace NewAffiliateControllerEvent {
|
71
|
-
type InputTuple = [affiliateController: AddressLike];
|
72
|
-
type OutputTuple = [affiliateController: string];
|
73
|
-
interface OutputObject {
|
74
|
-
affiliateController: string;
|
75
|
-
}
|
76
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
77
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
78
|
-
type Log = TypedEventLog<Event>;
|
79
|
-
type LogDescription = TypedLogDescription<Event>;
|
80
|
-
}
|
81
|
-
export declare namespace NewAffiliateProgramStatusEvent {
|
82
|
-
type InputTuple = [isActive: boolean];
|
83
|
-
type OutputTuple = [isActive: boolean];
|
84
|
-
interface OutputObject {
|
85
|
-
isActive: boolean;
|
86
|
-
}
|
87
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
88
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
89
|
-
type Log = TypedEventLog<Event>;
|
90
|
-
type LogDescription = TypedLogDescription<Event>;
|
91
|
-
}
|
92
|
-
export declare namespace NewAffiliateRateEvent {
|
93
|
-
type InputTuple = [affiliate: AddressLike, rate: BigNumberish];
|
94
|
-
type OutputTuple = [affiliate: string, rate: bigint];
|
95
|
-
interface OutputObject {
|
96
|
-
affiliate: string;
|
97
|
-
rate: bigint;
|
98
|
-
}
|
99
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
100
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
101
|
-
type Log = TypedEventLog<Event>;
|
102
|
-
type LogDescription = TypedLogDescription<Event>;
|
103
|
-
}
|
104
|
-
export declare namespace NewOwnerEvent {
|
105
|
-
type InputTuple = [newOwner: AddressLike];
|
106
|
-
type OutputTuple = [newOwner: string];
|
107
|
-
interface OutputObject {
|
108
|
-
newOwner: string;
|
109
|
-
}
|
110
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
111
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
112
|
-
type Log = TypedEventLog<Event>;
|
113
|
-
type LogDescription = TypedLogDescription<Event>;
|
114
|
-
}
|
115
|
-
export interface AffiliateManager extends BaseContract {
|
116
|
-
connect(runner?: ContractRunner | null): AffiliateManager;
|
117
|
-
waitForDeployment(): Promise<this>;
|
118
|
-
interface: AffiliateManagerInterface;
|
119
|
-
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
120
|
-
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
121
|
-
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
122
|
-
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
123
|
-
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
124
|
-
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
125
|
-
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
126
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
127
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
128
|
-
affiliateController: TypedContractMethod<[], [string], "view">;
|
129
|
-
affiliateRates: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
130
|
-
cancelOwnershipTransfer: TypedContractMethod<[], [void], "nonpayable">;
|
131
|
-
confirmOwnershipRenouncement: TypedContractMethod<[], [void], "nonpayable">;
|
132
|
-
confirmOwnershipTransfer: TypedContractMethod<[], [void], "nonpayable">;
|
133
|
-
initiateOwnershipRenouncement: TypedContractMethod<[], [void], "nonpayable">;
|
134
|
-
initiateOwnershipTransfer: TypedContractMethod<[
|
135
|
-
newPotentialOwner: AddressLike
|
136
|
-
], [
|
137
|
-
void
|
138
|
-
], "nonpayable">;
|
139
|
-
isAffiliateProgramActive: TypedContractMethod<[], [boolean], "view">;
|
140
|
-
owner: TypedContractMethod<[], [string], "view">;
|
141
|
-
ownershipStatus: TypedContractMethod<[], [bigint], "view">;
|
142
|
-
potentialOwner: TypedContractMethod<[], [string], "view">;
|
143
|
-
updateAffiliateController: TypedContractMethod<[
|
144
|
-
newAffiliateController: AddressLike
|
145
|
-
], [
|
146
|
-
void
|
147
|
-
], "nonpayable">;
|
148
|
-
updateAffiliateProgramStatus: TypedContractMethod<[
|
149
|
-
isActive: boolean
|
150
|
-
], [
|
151
|
-
void
|
152
|
-
], "nonpayable">;
|
153
|
-
updateAffiliateRate: TypedContractMethod<[
|
154
|
-
affiliate: AddressLike,
|
155
|
-
bp: BigNumberish
|
156
|
-
], [
|
157
|
-
void
|
158
|
-
], "nonpayable">;
|
159
|
-
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
160
|
-
getFunction(nameOrSignature: "affiliateController"): TypedContractMethod<[], [string], "view">;
|
161
|
-
getFunction(nameOrSignature: "affiliateRates"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
162
|
-
getFunction(nameOrSignature: "cancelOwnershipTransfer"): TypedContractMethod<[], [void], "nonpayable">;
|
163
|
-
getFunction(nameOrSignature: "confirmOwnershipRenouncement"): TypedContractMethod<[], [void], "nonpayable">;
|
164
|
-
getFunction(nameOrSignature: "confirmOwnershipTransfer"): TypedContractMethod<[], [void], "nonpayable">;
|
165
|
-
getFunction(nameOrSignature: "initiateOwnershipRenouncement"): TypedContractMethod<[], [void], "nonpayable">;
|
166
|
-
getFunction(nameOrSignature: "initiateOwnershipTransfer"): TypedContractMethod<[
|
167
|
-
newPotentialOwner: AddressLike
|
168
|
-
], [
|
169
|
-
void
|
170
|
-
], "nonpayable">;
|
171
|
-
getFunction(nameOrSignature: "isAffiliateProgramActive"): TypedContractMethod<[], [boolean], "view">;
|
172
|
-
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
173
|
-
getFunction(nameOrSignature: "ownershipStatus"): TypedContractMethod<[], [bigint], "view">;
|
174
|
-
getFunction(nameOrSignature: "potentialOwner"): TypedContractMethod<[], [string], "view">;
|
175
|
-
getFunction(nameOrSignature: "updateAffiliateController"): TypedContractMethod<[
|
176
|
-
newAffiliateController: AddressLike
|
177
|
-
], [
|
178
|
-
void
|
179
|
-
], "nonpayable">;
|
180
|
-
getFunction(nameOrSignature: "updateAffiliateProgramStatus"): TypedContractMethod<[isActive: boolean], [void], "nonpayable">;
|
181
|
-
getFunction(nameOrSignature: "updateAffiliateRate"): TypedContractMethod<[
|
182
|
-
affiliate: AddressLike,
|
183
|
-
bp: BigNumberish
|
184
|
-
], [
|
185
|
-
void
|
186
|
-
], "nonpayable">;
|
187
|
-
getEvent(key: "CancelOwnershipTransfer"): TypedContractEvent<CancelOwnershipTransferEvent.InputTuple, CancelOwnershipTransferEvent.OutputTuple, CancelOwnershipTransferEvent.OutputObject>;
|
188
|
-
getEvent(key: "InitiateOwnershipRenouncement"): TypedContractEvent<InitiateOwnershipRenouncementEvent.InputTuple, InitiateOwnershipRenouncementEvent.OutputTuple, InitiateOwnershipRenouncementEvent.OutputObject>;
|
189
|
-
getEvent(key: "InitiateOwnershipTransfer"): TypedContractEvent<InitiateOwnershipTransferEvent.InputTuple, InitiateOwnershipTransferEvent.OutputTuple, InitiateOwnershipTransferEvent.OutputObject>;
|
190
|
-
getEvent(key: "NewAffiliateController"): TypedContractEvent<NewAffiliateControllerEvent.InputTuple, NewAffiliateControllerEvent.OutputTuple, NewAffiliateControllerEvent.OutputObject>;
|
191
|
-
getEvent(key: "NewAffiliateProgramStatus"): TypedContractEvent<NewAffiliateProgramStatusEvent.InputTuple, NewAffiliateProgramStatusEvent.OutputTuple, NewAffiliateProgramStatusEvent.OutputObject>;
|
192
|
-
getEvent(key: "NewAffiliateRate"): TypedContractEvent<NewAffiliateRateEvent.InputTuple, NewAffiliateRateEvent.OutputTuple, NewAffiliateRateEvent.OutputObject>;
|
193
|
-
getEvent(key: "NewOwner"): TypedContractEvent<NewOwnerEvent.InputTuple, NewOwnerEvent.OutputTuple, NewOwnerEvent.OutputObject>;
|
194
|
-
filters: {
|
195
|
-
"CancelOwnershipTransfer()": TypedContractEvent<CancelOwnershipTransferEvent.InputTuple, CancelOwnershipTransferEvent.OutputTuple, CancelOwnershipTransferEvent.OutputObject>;
|
196
|
-
CancelOwnershipTransfer: TypedContractEvent<CancelOwnershipTransferEvent.InputTuple, CancelOwnershipTransferEvent.OutputTuple, CancelOwnershipTransferEvent.OutputObject>;
|
197
|
-
"InitiateOwnershipRenouncement()": TypedContractEvent<InitiateOwnershipRenouncementEvent.InputTuple, InitiateOwnershipRenouncementEvent.OutputTuple, InitiateOwnershipRenouncementEvent.OutputObject>;
|
198
|
-
InitiateOwnershipRenouncement: TypedContractEvent<InitiateOwnershipRenouncementEvent.InputTuple, InitiateOwnershipRenouncementEvent.OutputTuple, InitiateOwnershipRenouncementEvent.OutputObject>;
|
199
|
-
"InitiateOwnershipTransfer(address,address)": TypedContractEvent<InitiateOwnershipTransferEvent.InputTuple, InitiateOwnershipTransferEvent.OutputTuple, InitiateOwnershipTransferEvent.OutputObject>;
|
200
|
-
InitiateOwnershipTransfer: TypedContractEvent<InitiateOwnershipTransferEvent.InputTuple, InitiateOwnershipTransferEvent.OutputTuple, InitiateOwnershipTransferEvent.OutputObject>;
|
201
|
-
"NewAffiliateController(address)": TypedContractEvent<NewAffiliateControllerEvent.InputTuple, NewAffiliateControllerEvent.OutputTuple, NewAffiliateControllerEvent.OutputObject>;
|
202
|
-
NewAffiliateController: TypedContractEvent<NewAffiliateControllerEvent.InputTuple, NewAffiliateControllerEvent.OutputTuple, NewAffiliateControllerEvent.OutputObject>;
|
203
|
-
"NewAffiliateProgramStatus(bool)": TypedContractEvent<NewAffiliateProgramStatusEvent.InputTuple, NewAffiliateProgramStatusEvent.OutputTuple, NewAffiliateProgramStatusEvent.OutputObject>;
|
204
|
-
NewAffiliateProgramStatus: TypedContractEvent<NewAffiliateProgramStatusEvent.InputTuple, NewAffiliateProgramStatusEvent.OutputTuple, NewAffiliateProgramStatusEvent.OutputObject>;
|
205
|
-
"NewAffiliateRate(address,uint256)": TypedContractEvent<NewAffiliateRateEvent.InputTuple, NewAffiliateRateEvent.OutputTuple, NewAffiliateRateEvent.OutputObject>;
|
206
|
-
NewAffiliateRate: TypedContractEvent<NewAffiliateRateEvent.InputTuple, NewAffiliateRateEvent.OutputTuple, NewAffiliateRateEvent.OutputObject>;
|
207
|
-
"NewOwner(address)": TypedContractEvent<NewOwnerEvent.InputTuple, NewOwnerEvent.OutputTuple, NewOwnerEvent.OutputObject>;
|
208
|
-
NewOwner: TypedContractEvent<NewOwnerEvent.InputTuple, NewOwnerEvent.OutputTuple, NewOwnerEvent.OutputObject>;
|
209
|
-
};
|
210
|
-
}
|
package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/BatchOrderTypehashRegistry.d.ts
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
2
|
-
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
|
3
|
-
export interface BatchOrderTypehashRegistryInterface extends Interface {
|
4
|
-
getFunction(nameOrSignature: "hashBatchOrder"): FunctionFragment;
|
5
|
-
encodeFunctionData(functionFragment: "hashBatchOrder", values: [BytesLike, BigNumberish]): string;
|
6
|
-
decodeFunctionResult(functionFragment: "hashBatchOrder", data: BytesLike): Result;
|
7
|
-
}
|
8
|
-
export interface BatchOrderTypehashRegistry extends BaseContract {
|
9
|
-
connect(runner?: ContractRunner | null): BatchOrderTypehashRegistry;
|
10
|
-
waitForDeployment(): Promise<this>;
|
11
|
-
interface: BatchOrderTypehashRegistryInterface;
|
12
|
-
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
13
|
-
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
14
|
-
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
15
|
-
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
16
|
-
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
17
|
-
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
18
|
-
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
19
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
20
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
21
|
-
hashBatchOrder: TypedContractMethod<[
|
22
|
-
root: BytesLike,
|
23
|
-
proofLength: BigNumberish
|
24
|
-
], [
|
25
|
-
string
|
26
|
-
], "view">;
|
27
|
-
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
28
|
-
getFunction(nameOrSignature: "hashBatchOrder"): TypedContractMethod<[
|
29
|
-
root: BytesLike,
|
30
|
-
proofLength: BigNumberish
|
31
|
-
], [
|
32
|
-
string
|
33
|
-
], "view">;
|
34
|
-
filters: {};
|
35
|
-
}
|
@@ -1,47 +0,0 @@
|
|
1
|
-
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
2
|
-
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
|
3
|
-
export interface CreatorFeeManagerWithRoyaltiesInterface extends Interface {
|
4
|
-
getFunction(nameOrSignature: "royaltyFeeRegistry" | "viewCreatorFeeInfo"): FunctionFragment;
|
5
|
-
encodeFunctionData(functionFragment: "royaltyFeeRegistry", values?: undefined): string;
|
6
|
-
encodeFunctionData(functionFragment: "viewCreatorFeeInfo", values: [AddressLike, BigNumberish, BigNumberish[]]): string;
|
7
|
-
decodeFunctionResult(functionFragment: "royaltyFeeRegistry", data: BytesLike): Result;
|
8
|
-
decodeFunctionResult(functionFragment: "viewCreatorFeeInfo", data: BytesLike): Result;
|
9
|
-
}
|
10
|
-
export interface CreatorFeeManagerWithRoyalties extends BaseContract {
|
11
|
-
connect(runner?: ContractRunner | null): CreatorFeeManagerWithRoyalties;
|
12
|
-
waitForDeployment(): Promise<this>;
|
13
|
-
interface: CreatorFeeManagerWithRoyaltiesInterface;
|
14
|
-
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
15
|
-
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
16
|
-
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
17
|
-
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
18
|
-
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
19
|
-
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
20
|
-
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
21
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
22
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
23
|
-
royaltyFeeRegistry: TypedContractMethod<[], [string], "view">;
|
24
|
-
viewCreatorFeeInfo: TypedContractMethod<[
|
25
|
-
collection: AddressLike,
|
26
|
-
price: BigNumberish,
|
27
|
-
itemIds: BigNumberish[]
|
28
|
-
], [
|
29
|
-
[string, bigint] & {
|
30
|
-
creator: string;
|
31
|
-
creatorFeeAmount: bigint;
|
32
|
-
}
|
33
|
-
], "view">;
|
34
|
-
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
35
|
-
getFunction(nameOrSignature: "royaltyFeeRegistry"): TypedContractMethod<[], [string], "view">;
|
36
|
-
getFunction(nameOrSignature: "viewCreatorFeeInfo"): TypedContractMethod<[
|
37
|
-
collection: AddressLike,
|
38
|
-
price: BigNumberish,
|
39
|
-
itemIds: BigNumberish[]
|
40
|
-
], [
|
41
|
-
[string, bigint] & {
|
42
|
-
creator: string;
|
43
|
-
creatorFeeAmount: bigint;
|
44
|
-
}
|
45
|
-
], "view">;
|
46
|
-
filters: {};
|
47
|
-
}
|