@hypercerts-org/marketplace-sdk 0.0.1
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/LICENSE +4 -0
- package/LICENSE-APACHE +10 -0
- package/LICENSE-MIT +21 -0
- package/README.md +101 -0
- package/dist/LooksRare.d.ts +223 -0
- package/dist/abis/IERC1155.json +276 -0
- package/dist/abis/IERC20.json +185 -0
- package/dist/abis/IERC721.json +268 -0
- package/dist/abis/ILooksRareProtocol.json +677 -0
- package/dist/abis/ITransferManager.json +91 -0
- package/dist/abis/IWETH.json +46 -0
- package/dist/abis/LooksRareProtocol.json +1924 -0
- package/dist/abis/OrderValidatorV2A.json +410 -0
- package/dist/abis/ProtocolHelpers.json +366 -0
- package/dist/abis/TransferManager.json +492 -0
- package/dist/abis/WETH.json +361 -0
- package/dist/abis/index.d.ts +7 -0
- package/dist/abis/index.ts +7 -0
- package/dist/constants/addresses.d.ts +7 -0
- package/dist/constants/chains.d.ts +4 -0
- package/dist/constants/eip712.d.ts +10 -0
- package/dist/constants/index.d.ts +14 -0
- package/dist/errors.d.ts +30 -0
- package/dist/index.cjs.js +5251 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.esm.js +5229 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/AffiliateManager.d.ts +210 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/BatchOrderTypehashRegistry.d.ts +35 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/CreatorFeeManagerWithRoyalties.d.ts +47 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/CurrencyManager.d.ts +247 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/ExecutionManager.d.ts +616 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/LooksRareProtocol.d.ts +1005 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/NonceManager.d.ts +148 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/StrategyManager.d.ts +401 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/TransferManager.d.ts +324 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/TransferSelectorNFT.d.ts +620 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/executionStrategies/BaseStrategy.d.ts +97 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/executionStrategies/StrategyCollectionOffer.d.ts +176 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/executionStrategies/index.d.ts +2 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/helpers/OrderValidatorV2A.d.ts +172 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/helpers/ProtocolHelpers.d.ts +148 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/helpers/index.d.ts +2 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/index.d.ts +16 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IAffiliateManager.d.ts +65 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ICreatorFeeManager.d.ts +47 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ICurrencyManager.d.ts +37 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IExecutionManager.d.ts +64 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ILooksRareProtocol.d.ts +343 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/INonceManager.d.ts +72 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IRoyaltyFeeRegistry.d.ts +41 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategy.d.ts +97 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategyManager.d.ts +85 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ITransferManager.d.ts +80 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/index.d.ts +10 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/index.d.ts +4 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/test/index.d.ts +2 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/test/mock/MockRoyaltyFeeRegistry.d.ts +222 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/test/mock/index.d.ts +1 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/OwnableTwoSteps.d.ts +121 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/PackableReentrancyGuard.d.ts +20 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/index.d.ts +4 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/IOwnableTwoSteps.d.ts +80 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/IReentrancyGuard.d.ts +20 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC1155.d.ts +224 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC1271.d.ts +35 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC165.d.ts +29 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC20.d.ts +129 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC2981.d.ts +49 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC721.d.ts +191 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IWETH.d.ts +43 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/index.d.ts +7 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/index.d.ts +4 -0
- package/dist/typechain/@looksrare/contracts-libs/index.d.ts +2 -0
- package/dist/typechain/@looksrare/index.d.ts +4 -0
- package/dist/typechain/common.d.ts +50 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/AffiliateManager__factory.d.ts +264 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/BatchOrderTypehashRegistry__factory.d.ts +48 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/CreatorFeeManagerWithRoyalties__factory.d.ts +74 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/CurrencyManager__factory.d.ts +307 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/ExecutionManager__factory.d.ts +748 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/LooksRareProtocol__factory.d.ts +1527 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/NonceManager__factory.d.ts +174 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/StrategyManager__factory.d.ts +478 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/TransferManager__factory.d.ts +406 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/TransferSelectorNFT__factory.d.ts +766 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/executionStrategies/BaseStrategy__factory.d.ts +100 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/executionStrategies/StrategyCollectionOffer__factory.d.ts +323 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/executionStrategies/index.d.ts +2 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/helpers/OrderValidatorV2A__factory.d.ts +338 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/helpers/ProtocolHelpers__factory.d.ts +302 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/helpers/index.d.ts +2 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/index.d.ts +13 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IAffiliateManager__factory.d.ts +50 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/ICreatorFeeManager__factory.d.ts +51 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/ICurrencyManager__factory.d.ts +22 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IExecutionManager__factory.d.ts +61 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/ILooksRareProtocol__factory.d.ts +540 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/INonceManager__factory.d.ts +57 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IRoyaltyFeeRegistry__factory.d.ts +29 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategyManager__factory.d.ts +88 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategy__factory.d.ts +100 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/ITransferManager__factory.d.ts +77 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/index.d.ts +10 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/index.d.ts +2 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/test/index.d.ts +1 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/test/mock/MockRoyaltyFeeRegistry__factory.d.ts +278 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/test/mock/index.d.ts +1 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/OwnableTwoSteps__factory.d.ts +130 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/PackableReentrancyGuard__factory.d.ts +11 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/index.d.ts +3 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/IOwnableTwoSteps__factory.d.ts +66 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/IReentrancyGuard__factory.d.ts +11 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC1155__factory.d.ts +222 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC1271__factory.d.ts +25 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC165__factory.d.ts +21 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC20__factory.d.ts +147 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC2981__factory.d.ts +43 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC721__factory.d.ts +213 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IWETH__factory.d.ts +41 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/index.d.ts +7 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/index.d.ts +3 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/index.d.ts +1 -0
- package/dist/typechain/factories/@looksrare/index.d.ts +2 -0
- package/dist/typechain/factories/index.d.ts +3 -0
- package/dist/typechain/factories/solmate/index.d.ts +1 -0
- package/dist/typechain/factories/solmate/src/index.d.ts +1 -0
- package/dist/typechain/factories/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver__factory.d.ts +67 -0
- package/dist/typechain/factories/solmate/src/tokens/ERC1155.sol/ERC1155__factory.d.ts +250 -0
- package/dist/typechain/factories/solmate/src/tokens/ERC1155.sol/index.d.ts +2 -0
- package/dist/typechain/factories/solmate/src/tokens/ERC20__factory.d.ts +235 -0
- package/dist/typechain/factories/solmate/src/tokens/ERC721.sol/ERC721TokenReceiver__factory.d.ts +33 -0
- package/dist/typechain/factories/solmate/src/tokens/ERC721.sol/ERC721__factory.d.ts +261 -0
- package/dist/typechain/factories/solmate/src/tokens/ERC721.sol/index.d.ts +2 -0
- package/dist/typechain/factories/solmate/src/tokens/WETH__factory.d.ts +299 -0
- package/dist/typechain/factories/solmate/src/tokens/index.d.ts +4 -0
- package/dist/typechain/factories/src/contracts/index.d.ts +1 -0
- package/dist/typechain/factories/src/contracts/tests/MockERC1155__factory.d.ts +283 -0
- package/dist/typechain/factories/src/contracts/tests/MockERC721__factory.d.ts +308 -0
- package/dist/typechain/factories/src/contracts/tests/Verifier__factory.d.ts +462 -0
- package/dist/typechain/factories/src/contracts/tests/index.d.ts +3 -0
- package/dist/typechain/factories/src/index.d.ts +1 -0
- package/dist/typechain/index.d.ts +97 -0
- package/dist/typechain/solmate/index.d.ts +2 -0
- package/dist/typechain/solmate/src/index.d.ts +2 -0
- package/dist/typechain/solmate/src/tokens/ERC1155.sol/ERC1155.d.ts +236 -0
- package/dist/typechain/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver.d.ts +67 -0
- package/dist/typechain/solmate/src/tokens/ERC1155.sol/index.d.ts +2 -0
- package/dist/typechain/solmate/src/tokens/ERC20.d.ts +181 -0
- package/dist/typechain/solmate/src/tokens/ERC721.sol/ERC721.d.ts +211 -0
- package/dist/typechain/solmate/src/tokens/ERC721.sol/ERC721TokenReceiver.d.ts +39 -0
- package/dist/typechain/solmate/src/tokens/ERC721.sol/index.d.ts +2 -0
- package/dist/typechain/solmate/src/tokens/WETH.d.ts +219 -0
- package/dist/typechain/solmate/src/tokens/index.d.ts +6 -0
- package/dist/typechain/src/contracts/index.d.ts +2 -0
- package/dist/typechain/src/contracts/tests/MockERC1155.d.ts +252 -0
- package/dist/typechain/src/contracts/tests/MockERC721.d.ts +219 -0
- package/dist/typechain/src/contracts/tests/Verifier.d.ts +174 -0
- package/dist/typechain/src/contracts/tests/index.d.ts +3 -0
- package/dist/typechain/src/index.d.ts +2 -0
- package/dist/types.d.ts +242 -0
- package/dist/utils/Eip712MakerMerkleTree.d.ts +10 -0
- package/dist/utils/Eip712MerkleTree.d.ts +40 -0
- package/dist/utils/calls/exchange.d.ts +10 -0
- package/dist/utils/calls/nonces.d.ts +9 -0
- package/dist/utils/calls/orderValidator.d.ts +3 -0
- package/dist/utils/calls/strategies.d.ts +3 -0
- package/dist/utils/calls/tokens.d.ts +6 -0
- package/dist/utils/calls/transferManager.d.ts +6 -0
- package/dist/utils/eip712.d.ts +12 -0
- package/dist/utils/encodeOrderParams.d.ts +22 -0
- package/dist/utils/signMakerOrders.d.ts +18 -0
- package/package.json +94 -0
package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IAffiliateManager.d.ts
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
import type { BaseContract, BigNumberish, FunctionFragment, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener } from "../../../../common";
|
3
|
+
export interface IAffiliateManagerInterface extends Interface {
|
4
|
+
getEvent(nameOrSignatureOrTopic: "NewAffiliateController" | "NewAffiliateProgramStatus" | "NewAffiliateRate"): EventFragment;
|
5
|
+
}
|
6
|
+
export declare namespace NewAffiliateControllerEvent {
|
7
|
+
type InputTuple = [affiliateController: AddressLike];
|
8
|
+
type OutputTuple = [affiliateController: string];
|
9
|
+
interface OutputObject {
|
10
|
+
affiliateController: string;
|
11
|
+
}
|
12
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
13
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
14
|
+
type Log = TypedEventLog<Event>;
|
15
|
+
type LogDescription = TypedLogDescription<Event>;
|
16
|
+
}
|
17
|
+
export declare namespace NewAffiliateProgramStatusEvent {
|
18
|
+
type InputTuple = [isActive: boolean];
|
19
|
+
type OutputTuple = [isActive: boolean];
|
20
|
+
interface OutputObject {
|
21
|
+
isActive: boolean;
|
22
|
+
}
|
23
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
24
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
25
|
+
type Log = TypedEventLog<Event>;
|
26
|
+
type LogDescription = TypedLogDescription<Event>;
|
27
|
+
}
|
28
|
+
export declare namespace NewAffiliateRateEvent {
|
29
|
+
type InputTuple = [affiliate: AddressLike, rate: BigNumberish];
|
30
|
+
type OutputTuple = [affiliate: string, rate: bigint];
|
31
|
+
interface OutputObject {
|
32
|
+
affiliate: string;
|
33
|
+
rate: bigint;
|
34
|
+
}
|
35
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
36
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
37
|
+
type Log = TypedEventLog<Event>;
|
38
|
+
type LogDescription = TypedLogDescription<Event>;
|
39
|
+
}
|
40
|
+
export interface IAffiliateManager extends BaseContract {
|
41
|
+
connect(runner?: ContractRunner | null): IAffiliateManager;
|
42
|
+
waitForDeployment(): Promise<this>;
|
43
|
+
interface: IAffiliateManagerInterface;
|
44
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
45
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
46
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
47
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
48
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
49
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
50
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
51
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
52
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
53
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
54
|
+
getEvent(key: "NewAffiliateController"): TypedContractEvent<NewAffiliateControllerEvent.InputTuple, NewAffiliateControllerEvent.OutputTuple, NewAffiliateControllerEvent.OutputObject>;
|
55
|
+
getEvent(key: "NewAffiliateProgramStatus"): TypedContractEvent<NewAffiliateProgramStatusEvent.InputTuple, NewAffiliateProgramStatusEvent.OutputTuple, NewAffiliateProgramStatusEvent.OutputObject>;
|
56
|
+
getEvent(key: "NewAffiliateRate"): TypedContractEvent<NewAffiliateRateEvent.InputTuple, NewAffiliateRateEvent.OutputTuple, NewAffiliateRateEvent.OutputObject>;
|
57
|
+
filters: {
|
58
|
+
"NewAffiliateController(address)": TypedContractEvent<NewAffiliateControllerEvent.InputTuple, NewAffiliateControllerEvent.OutputTuple, NewAffiliateControllerEvent.OutputObject>;
|
59
|
+
NewAffiliateController: TypedContractEvent<NewAffiliateControllerEvent.InputTuple, NewAffiliateControllerEvent.OutputTuple, NewAffiliateControllerEvent.OutputObject>;
|
60
|
+
"NewAffiliateProgramStatus(bool)": TypedContractEvent<NewAffiliateProgramStatusEvent.InputTuple, NewAffiliateProgramStatusEvent.OutputTuple, NewAffiliateProgramStatusEvent.OutputObject>;
|
61
|
+
NewAffiliateProgramStatus: TypedContractEvent<NewAffiliateProgramStatusEvent.InputTuple, NewAffiliateProgramStatusEvent.OutputTuple, NewAffiliateProgramStatusEvent.OutputObject>;
|
62
|
+
"NewAffiliateRate(address,uint256)": TypedContractEvent<NewAffiliateRateEvent.InputTuple, NewAffiliateRateEvent.OutputTuple, NewAffiliateRateEvent.OutputObject>;
|
63
|
+
NewAffiliateRate: TypedContractEvent<NewAffiliateRateEvent.InputTuple, NewAffiliateRateEvent.OutputTuple, NewAffiliateRateEvent.OutputObject>;
|
64
|
+
};
|
65
|
+
}
|
package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ICreatorFeeManager.d.ts
ADDED
@@ -0,0 +1,47 @@
|
|
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 ICreatorFeeManagerInterface 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 ICreatorFeeManager extends BaseContract {
|
11
|
+
connect(runner?: ContractRunner | null): ICreatorFeeManager;
|
12
|
+
waitForDeployment(): Promise<this>;
|
13
|
+
interface: ICreatorFeeManagerInterface;
|
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
|
+
}
|
package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ICurrencyManager.d.ts
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
import type { BaseContract, FunctionFragment, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener } from "../../../../common";
|
3
|
+
export interface ICurrencyManagerInterface extends Interface {
|
4
|
+
getEvent(nameOrSignatureOrTopic: "CurrencyStatusUpdated"): EventFragment;
|
5
|
+
}
|
6
|
+
export declare namespace CurrencyStatusUpdatedEvent {
|
7
|
+
type InputTuple = [currency: AddressLike, isAllowed: boolean];
|
8
|
+
type OutputTuple = [currency: string, isAllowed: boolean];
|
9
|
+
interface OutputObject {
|
10
|
+
currency: string;
|
11
|
+
isAllowed: boolean;
|
12
|
+
}
|
13
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
14
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
15
|
+
type Log = TypedEventLog<Event>;
|
16
|
+
type LogDescription = TypedLogDescription<Event>;
|
17
|
+
}
|
18
|
+
export interface ICurrencyManager extends BaseContract {
|
19
|
+
connect(runner?: ContractRunner | null): ICurrencyManager;
|
20
|
+
waitForDeployment(): Promise<this>;
|
21
|
+
interface: ICurrencyManagerInterface;
|
22
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
23
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
24
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
25
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
26
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
27
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
28
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
29
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
30
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
31
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
32
|
+
getEvent(key: "CurrencyStatusUpdated"): TypedContractEvent<CurrencyStatusUpdatedEvent.InputTuple, CurrencyStatusUpdatedEvent.OutputTuple, CurrencyStatusUpdatedEvent.OutputObject>;
|
33
|
+
filters: {
|
34
|
+
"CurrencyStatusUpdated(address,bool)": TypedContractEvent<CurrencyStatusUpdatedEvent.InputTuple, CurrencyStatusUpdatedEvent.OutputTuple, CurrencyStatusUpdatedEvent.OutputObject>;
|
35
|
+
CurrencyStatusUpdated: TypedContractEvent<CurrencyStatusUpdatedEvent.InputTuple, CurrencyStatusUpdatedEvent.OutputTuple, CurrencyStatusUpdatedEvent.OutputObject>;
|
36
|
+
};
|
37
|
+
}
|
package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IExecutionManager.d.ts
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
import type { BaseContract, BigNumberish, FunctionFragment, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener } from "../../../../common";
|
3
|
+
export interface IExecutionManagerInterface extends Interface {
|
4
|
+
getEvent(nameOrSignatureOrTopic: "NewCreatorFeeManager" | "NewMaxCreatorFeeBp" | "NewProtocolFeeRecipient"): EventFragment;
|
5
|
+
}
|
6
|
+
export declare namespace NewCreatorFeeManagerEvent {
|
7
|
+
type InputTuple = [creatorFeeManager: AddressLike];
|
8
|
+
type OutputTuple = [creatorFeeManager: string];
|
9
|
+
interface OutputObject {
|
10
|
+
creatorFeeManager: string;
|
11
|
+
}
|
12
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
13
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
14
|
+
type Log = TypedEventLog<Event>;
|
15
|
+
type LogDescription = TypedLogDescription<Event>;
|
16
|
+
}
|
17
|
+
export declare namespace NewMaxCreatorFeeBpEvent {
|
18
|
+
type InputTuple = [maxCreatorFeeBp: BigNumberish];
|
19
|
+
type OutputTuple = [maxCreatorFeeBp: bigint];
|
20
|
+
interface OutputObject {
|
21
|
+
maxCreatorFeeBp: bigint;
|
22
|
+
}
|
23
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
24
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
25
|
+
type Log = TypedEventLog<Event>;
|
26
|
+
type LogDescription = TypedLogDescription<Event>;
|
27
|
+
}
|
28
|
+
export declare namespace NewProtocolFeeRecipientEvent {
|
29
|
+
type InputTuple = [protocolFeeRecipient: AddressLike];
|
30
|
+
type OutputTuple = [protocolFeeRecipient: string];
|
31
|
+
interface OutputObject {
|
32
|
+
protocolFeeRecipient: string;
|
33
|
+
}
|
34
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
35
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
36
|
+
type Log = TypedEventLog<Event>;
|
37
|
+
type LogDescription = TypedLogDescription<Event>;
|
38
|
+
}
|
39
|
+
export interface IExecutionManager extends BaseContract {
|
40
|
+
connect(runner?: ContractRunner | null): IExecutionManager;
|
41
|
+
waitForDeployment(): Promise<this>;
|
42
|
+
interface: IExecutionManagerInterface;
|
43
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
44
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
45
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
46
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
47
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
48
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
49
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
50
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
51
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
52
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
53
|
+
getEvent(key: "NewCreatorFeeManager"): TypedContractEvent<NewCreatorFeeManagerEvent.InputTuple, NewCreatorFeeManagerEvent.OutputTuple, NewCreatorFeeManagerEvent.OutputObject>;
|
54
|
+
getEvent(key: "NewMaxCreatorFeeBp"): TypedContractEvent<NewMaxCreatorFeeBpEvent.InputTuple, NewMaxCreatorFeeBpEvent.OutputTuple, NewMaxCreatorFeeBpEvent.OutputObject>;
|
55
|
+
getEvent(key: "NewProtocolFeeRecipient"): TypedContractEvent<NewProtocolFeeRecipientEvent.InputTuple, NewProtocolFeeRecipientEvent.OutputTuple, NewProtocolFeeRecipientEvent.OutputObject>;
|
56
|
+
filters: {
|
57
|
+
"NewCreatorFeeManager(address)": TypedContractEvent<NewCreatorFeeManagerEvent.InputTuple, NewCreatorFeeManagerEvent.OutputTuple, NewCreatorFeeManagerEvent.OutputObject>;
|
58
|
+
NewCreatorFeeManager: TypedContractEvent<NewCreatorFeeManagerEvent.InputTuple, NewCreatorFeeManagerEvent.OutputTuple, NewCreatorFeeManagerEvent.OutputObject>;
|
59
|
+
"NewMaxCreatorFeeBp(uint256)": TypedContractEvent<NewMaxCreatorFeeBpEvent.InputTuple, NewMaxCreatorFeeBpEvent.OutputTuple, NewMaxCreatorFeeBpEvent.OutputObject>;
|
60
|
+
NewMaxCreatorFeeBp: TypedContractEvent<NewMaxCreatorFeeBpEvent.InputTuple, NewMaxCreatorFeeBpEvent.OutputTuple, NewMaxCreatorFeeBpEvent.OutputObject>;
|
61
|
+
"NewProtocolFeeRecipient(address)": TypedContractEvent<NewProtocolFeeRecipientEvent.InputTuple, NewProtocolFeeRecipientEvent.OutputTuple, NewProtocolFeeRecipientEvent.OutputObject>;
|
62
|
+
NewProtocolFeeRecipient: TypedContractEvent<NewProtocolFeeRecipientEvent.InputTuple, NewProtocolFeeRecipientEvent.OutputTuple, NewProtocolFeeRecipientEvent.OutputObject>;
|
63
|
+
};
|
64
|
+
}
|
package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ILooksRareProtocol.d.ts
ADDED
@@ -0,0 +1,343 @@
|
|
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 declare namespace ILooksRareProtocol {
|
4
|
+
type NonceInvalidationParametersStruct = {
|
5
|
+
orderHash: BytesLike;
|
6
|
+
orderNonce: BigNumberish;
|
7
|
+
isNonceInvalidated: boolean;
|
8
|
+
};
|
9
|
+
type NonceInvalidationParametersStructOutput = [
|
10
|
+
orderHash: string,
|
11
|
+
orderNonce: bigint,
|
12
|
+
isNonceInvalidated: boolean
|
13
|
+
] & {
|
14
|
+
orderHash: string;
|
15
|
+
orderNonce: bigint;
|
16
|
+
isNonceInvalidated: boolean;
|
17
|
+
};
|
18
|
+
}
|
19
|
+
export declare namespace OrderStructs {
|
20
|
+
type TakerStruct = {
|
21
|
+
recipient: AddressLike;
|
22
|
+
additionalParameters: BytesLike;
|
23
|
+
};
|
24
|
+
type TakerStructOutput = [
|
25
|
+
recipient: string,
|
26
|
+
additionalParameters: string
|
27
|
+
] & {
|
28
|
+
recipient: string;
|
29
|
+
additionalParameters: string;
|
30
|
+
};
|
31
|
+
type MakerStruct = {
|
32
|
+
quoteType: BigNumberish;
|
33
|
+
globalNonce: BigNumberish;
|
34
|
+
subsetNonce: BigNumberish;
|
35
|
+
orderNonce: BigNumberish;
|
36
|
+
strategyId: BigNumberish;
|
37
|
+
collectionType: BigNumberish;
|
38
|
+
collection: AddressLike;
|
39
|
+
currency: AddressLike;
|
40
|
+
signer: AddressLike;
|
41
|
+
startTime: BigNumberish;
|
42
|
+
endTime: BigNumberish;
|
43
|
+
price: BigNumberish;
|
44
|
+
itemIds: BigNumberish[];
|
45
|
+
amounts: BigNumberish[];
|
46
|
+
additionalParameters: BytesLike;
|
47
|
+
};
|
48
|
+
type MakerStructOutput = [
|
49
|
+
quoteType: bigint,
|
50
|
+
globalNonce: bigint,
|
51
|
+
subsetNonce: bigint,
|
52
|
+
orderNonce: bigint,
|
53
|
+
strategyId: bigint,
|
54
|
+
collectionType: bigint,
|
55
|
+
collection: string,
|
56
|
+
currency: string,
|
57
|
+
signer: string,
|
58
|
+
startTime: bigint,
|
59
|
+
endTime: bigint,
|
60
|
+
price: bigint,
|
61
|
+
itemIds: bigint[],
|
62
|
+
amounts: bigint[],
|
63
|
+
additionalParameters: string
|
64
|
+
] & {
|
65
|
+
quoteType: bigint;
|
66
|
+
globalNonce: bigint;
|
67
|
+
subsetNonce: bigint;
|
68
|
+
orderNonce: bigint;
|
69
|
+
strategyId: bigint;
|
70
|
+
collectionType: bigint;
|
71
|
+
collection: string;
|
72
|
+
currency: string;
|
73
|
+
signer: string;
|
74
|
+
startTime: bigint;
|
75
|
+
endTime: bigint;
|
76
|
+
price: bigint;
|
77
|
+
itemIds: bigint[];
|
78
|
+
amounts: bigint[];
|
79
|
+
additionalParameters: string;
|
80
|
+
};
|
81
|
+
type MerkleTreeNodeStruct = {
|
82
|
+
value: BytesLike;
|
83
|
+
position: BigNumberish;
|
84
|
+
};
|
85
|
+
type MerkleTreeNodeStructOutput = [value: string, position: bigint] & {
|
86
|
+
value: string;
|
87
|
+
position: bigint;
|
88
|
+
};
|
89
|
+
type MerkleTreeStruct = {
|
90
|
+
root: BytesLike;
|
91
|
+
proof: OrderStructs.MerkleTreeNodeStruct[];
|
92
|
+
};
|
93
|
+
type MerkleTreeStructOutput = [
|
94
|
+
root: string,
|
95
|
+
proof: OrderStructs.MerkleTreeNodeStructOutput[]
|
96
|
+
] & {
|
97
|
+
root: string;
|
98
|
+
proof: OrderStructs.MerkleTreeNodeStructOutput[];
|
99
|
+
};
|
100
|
+
}
|
101
|
+
export interface ILooksRareProtocolInterface extends Interface {
|
102
|
+
getFunction(nameOrSignature: "executeMultipleTakerBids" | "executeTakerAsk" | "executeTakerBid"): FunctionFragment;
|
103
|
+
getEvent(nameOrSignatureOrTopic: "AffiliatePayment" | "NewDomainSeparator" | "NewGasLimitETHTransfer" | "TakerAsk" | "TakerBid"): EventFragment;
|
104
|
+
encodeFunctionData(functionFragment: "executeMultipleTakerBids", values: [
|
105
|
+
OrderStructs.TakerStruct[],
|
106
|
+
OrderStructs.MakerStruct[],
|
107
|
+
BytesLike[],
|
108
|
+
OrderStructs.MerkleTreeStruct[],
|
109
|
+
AddressLike,
|
110
|
+
boolean
|
111
|
+
]): string;
|
112
|
+
encodeFunctionData(functionFragment: "executeTakerAsk", values: [
|
113
|
+
OrderStructs.TakerStruct,
|
114
|
+
OrderStructs.MakerStruct,
|
115
|
+
BytesLike,
|
116
|
+
OrderStructs.MerkleTreeStruct,
|
117
|
+
AddressLike
|
118
|
+
]): string;
|
119
|
+
encodeFunctionData(functionFragment: "executeTakerBid", values: [
|
120
|
+
OrderStructs.TakerStruct,
|
121
|
+
OrderStructs.MakerStruct,
|
122
|
+
BytesLike,
|
123
|
+
OrderStructs.MerkleTreeStruct,
|
124
|
+
AddressLike
|
125
|
+
]): string;
|
126
|
+
decodeFunctionResult(functionFragment: "executeMultipleTakerBids", data: BytesLike): Result;
|
127
|
+
decodeFunctionResult(functionFragment: "executeTakerAsk", data: BytesLike): Result;
|
128
|
+
decodeFunctionResult(functionFragment: "executeTakerBid", data: BytesLike): Result;
|
129
|
+
}
|
130
|
+
export declare namespace AffiliatePaymentEvent {
|
131
|
+
type InputTuple = [
|
132
|
+
affiliate: AddressLike,
|
133
|
+
currency: AddressLike,
|
134
|
+
affiliateFee: BigNumberish
|
135
|
+
];
|
136
|
+
type OutputTuple = [
|
137
|
+
affiliate: string,
|
138
|
+
currency: string,
|
139
|
+
affiliateFee: bigint
|
140
|
+
];
|
141
|
+
interface OutputObject {
|
142
|
+
affiliate: string;
|
143
|
+
currency: string;
|
144
|
+
affiliateFee: bigint;
|
145
|
+
}
|
146
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
147
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
148
|
+
type Log = TypedEventLog<Event>;
|
149
|
+
type LogDescription = TypedLogDescription<Event>;
|
150
|
+
}
|
151
|
+
export declare namespace NewDomainSeparatorEvent {
|
152
|
+
type InputTuple = [];
|
153
|
+
type OutputTuple = [];
|
154
|
+
interface OutputObject {
|
155
|
+
}
|
156
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
157
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
158
|
+
type Log = TypedEventLog<Event>;
|
159
|
+
type LogDescription = TypedLogDescription<Event>;
|
160
|
+
}
|
161
|
+
export declare namespace NewGasLimitETHTransferEvent {
|
162
|
+
type InputTuple = [gasLimitETHTransfer: BigNumberish];
|
163
|
+
type OutputTuple = [gasLimitETHTransfer: bigint];
|
164
|
+
interface OutputObject {
|
165
|
+
gasLimitETHTransfer: bigint;
|
166
|
+
}
|
167
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
168
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
169
|
+
type Log = TypedEventLog<Event>;
|
170
|
+
type LogDescription = TypedLogDescription<Event>;
|
171
|
+
}
|
172
|
+
export declare namespace TakerAskEvent {
|
173
|
+
type InputTuple = [
|
174
|
+
nonceInvalidationParameters: ILooksRareProtocol.NonceInvalidationParametersStruct,
|
175
|
+
askUser: AddressLike,
|
176
|
+
bidUser: AddressLike,
|
177
|
+
strategyId: BigNumberish,
|
178
|
+
currency: AddressLike,
|
179
|
+
collection: AddressLike,
|
180
|
+
itemIds: BigNumberish[],
|
181
|
+
amounts: BigNumberish[],
|
182
|
+
feeRecipients: [AddressLike, AddressLike],
|
183
|
+
feeAmounts: [BigNumberish, BigNumberish, BigNumberish]
|
184
|
+
];
|
185
|
+
type OutputTuple = [
|
186
|
+
nonceInvalidationParameters: ILooksRareProtocol.NonceInvalidationParametersStructOutput,
|
187
|
+
askUser: string,
|
188
|
+
bidUser: string,
|
189
|
+
strategyId: bigint,
|
190
|
+
currency: string,
|
191
|
+
collection: string,
|
192
|
+
itemIds: bigint[],
|
193
|
+
amounts: bigint[],
|
194
|
+
feeRecipients: [string, string],
|
195
|
+
feeAmounts: [bigint, bigint, bigint]
|
196
|
+
];
|
197
|
+
interface OutputObject {
|
198
|
+
nonceInvalidationParameters: ILooksRareProtocol.NonceInvalidationParametersStructOutput;
|
199
|
+
askUser: string;
|
200
|
+
bidUser: string;
|
201
|
+
strategyId: bigint;
|
202
|
+
currency: string;
|
203
|
+
collection: string;
|
204
|
+
itemIds: bigint[];
|
205
|
+
amounts: bigint[];
|
206
|
+
feeRecipients: [string, string];
|
207
|
+
feeAmounts: [bigint, bigint, bigint];
|
208
|
+
}
|
209
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
210
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
211
|
+
type Log = TypedEventLog<Event>;
|
212
|
+
type LogDescription = TypedLogDescription<Event>;
|
213
|
+
}
|
214
|
+
export declare namespace TakerBidEvent {
|
215
|
+
type InputTuple = [
|
216
|
+
nonceInvalidationParameters: ILooksRareProtocol.NonceInvalidationParametersStruct,
|
217
|
+
bidUser: AddressLike,
|
218
|
+
bidRecipient: AddressLike,
|
219
|
+
strategyId: BigNumberish,
|
220
|
+
currency: AddressLike,
|
221
|
+
collection: AddressLike,
|
222
|
+
itemIds: BigNumberish[],
|
223
|
+
amounts: BigNumberish[],
|
224
|
+
feeRecipients: [AddressLike, AddressLike],
|
225
|
+
feeAmounts: [BigNumberish, BigNumberish, BigNumberish]
|
226
|
+
];
|
227
|
+
type OutputTuple = [
|
228
|
+
nonceInvalidationParameters: ILooksRareProtocol.NonceInvalidationParametersStructOutput,
|
229
|
+
bidUser: string,
|
230
|
+
bidRecipient: string,
|
231
|
+
strategyId: bigint,
|
232
|
+
currency: string,
|
233
|
+
collection: string,
|
234
|
+
itemIds: bigint[],
|
235
|
+
amounts: bigint[],
|
236
|
+
feeRecipients: [string, string],
|
237
|
+
feeAmounts: [bigint, bigint, bigint]
|
238
|
+
];
|
239
|
+
interface OutputObject {
|
240
|
+
nonceInvalidationParameters: ILooksRareProtocol.NonceInvalidationParametersStructOutput;
|
241
|
+
bidUser: string;
|
242
|
+
bidRecipient: string;
|
243
|
+
strategyId: bigint;
|
244
|
+
currency: string;
|
245
|
+
collection: string;
|
246
|
+
itemIds: bigint[];
|
247
|
+
amounts: bigint[];
|
248
|
+
feeRecipients: [string, string];
|
249
|
+
feeAmounts: [bigint, bigint, bigint];
|
250
|
+
}
|
251
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
252
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
253
|
+
type Log = TypedEventLog<Event>;
|
254
|
+
type LogDescription = TypedLogDescription<Event>;
|
255
|
+
}
|
256
|
+
export interface ILooksRareProtocol extends BaseContract {
|
257
|
+
connect(runner?: ContractRunner | null): ILooksRareProtocol;
|
258
|
+
waitForDeployment(): Promise<this>;
|
259
|
+
interface: ILooksRareProtocolInterface;
|
260
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
261
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
262
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
263
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
264
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
265
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
266
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
267
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
268
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
269
|
+
executeMultipleTakerBids: TypedContractMethod<[
|
270
|
+
takerBids: OrderStructs.TakerStruct[],
|
271
|
+
makerAsks: OrderStructs.MakerStruct[],
|
272
|
+
makerSignatures: BytesLike[],
|
273
|
+
merkleTrees: OrderStructs.MerkleTreeStruct[],
|
274
|
+
affiliate: AddressLike,
|
275
|
+
isAtomic: boolean
|
276
|
+
], [
|
277
|
+
void
|
278
|
+
], "payable">;
|
279
|
+
executeTakerAsk: TypedContractMethod<[
|
280
|
+
takerAsk: OrderStructs.TakerStruct,
|
281
|
+
makerBid: OrderStructs.MakerStruct,
|
282
|
+
makerSignature: BytesLike,
|
283
|
+
merkleTree: OrderStructs.MerkleTreeStruct,
|
284
|
+
affiliate: AddressLike
|
285
|
+
], [
|
286
|
+
void
|
287
|
+
], "nonpayable">;
|
288
|
+
executeTakerBid: TypedContractMethod<[
|
289
|
+
takerBid: OrderStructs.TakerStruct,
|
290
|
+
makerAsk: OrderStructs.MakerStruct,
|
291
|
+
makerSignature: BytesLike,
|
292
|
+
merkleTree: OrderStructs.MerkleTreeStruct,
|
293
|
+
affiliate: AddressLike
|
294
|
+
], [
|
295
|
+
void
|
296
|
+
], "payable">;
|
297
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
298
|
+
getFunction(nameOrSignature: "executeMultipleTakerBids"): TypedContractMethod<[
|
299
|
+
takerBids: OrderStructs.TakerStruct[],
|
300
|
+
makerAsks: OrderStructs.MakerStruct[],
|
301
|
+
makerSignatures: BytesLike[],
|
302
|
+
merkleTrees: OrderStructs.MerkleTreeStruct[],
|
303
|
+
affiliate: AddressLike,
|
304
|
+
isAtomic: boolean
|
305
|
+
], [
|
306
|
+
void
|
307
|
+
], "payable">;
|
308
|
+
getFunction(nameOrSignature: "executeTakerAsk"): TypedContractMethod<[
|
309
|
+
takerAsk: OrderStructs.TakerStruct,
|
310
|
+
makerBid: OrderStructs.MakerStruct,
|
311
|
+
makerSignature: BytesLike,
|
312
|
+
merkleTree: OrderStructs.MerkleTreeStruct,
|
313
|
+
affiliate: AddressLike
|
314
|
+
], [
|
315
|
+
void
|
316
|
+
], "nonpayable">;
|
317
|
+
getFunction(nameOrSignature: "executeTakerBid"): TypedContractMethod<[
|
318
|
+
takerBid: OrderStructs.TakerStruct,
|
319
|
+
makerAsk: OrderStructs.MakerStruct,
|
320
|
+
makerSignature: BytesLike,
|
321
|
+
merkleTree: OrderStructs.MerkleTreeStruct,
|
322
|
+
affiliate: AddressLike
|
323
|
+
], [
|
324
|
+
void
|
325
|
+
], "payable">;
|
326
|
+
getEvent(key: "AffiliatePayment"): TypedContractEvent<AffiliatePaymentEvent.InputTuple, AffiliatePaymentEvent.OutputTuple, AffiliatePaymentEvent.OutputObject>;
|
327
|
+
getEvent(key: "NewDomainSeparator"): TypedContractEvent<NewDomainSeparatorEvent.InputTuple, NewDomainSeparatorEvent.OutputTuple, NewDomainSeparatorEvent.OutputObject>;
|
328
|
+
getEvent(key: "NewGasLimitETHTransfer"): TypedContractEvent<NewGasLimitETHTransferEvent.InputTuple, NewGasLimitETHTransferEvent.OutputTuple, NewGasLimitETHTransferEvent.OutputObject>;
|
329
|
+
getEvent(key: "TakerAsk"): TypedContractEvent<TakerAskEvent.InputTuple, TakerAskEvent.OutputTuple, TakerAskEvent.OutputObject>;
|
330
|
+
getEvent(key: "TakerBid"): TypedContractEvent<TakerBidEvent.InputTuple, TakerBidEvent.OutputTuple, TakerBidEvent.OutputObject>;
|
331
|
+
filters: {
|
332
|
+
"AffiliatePayment(address,address,uint256)": TypedContractEvent<AffiliatePaymentEvent.InputTuple, AffiliatePaymentEvent.OutputTuple, AffiliatePaymentEvent.OutputObject>;
|
333
|
+
AffiliatePayment: TypedContractEvent<AffiliatePaymentEvent.InputTuple, AffiliatePaymentEvent.OutputTuple, AffiliatePaymentEvent.OutputObject>;
|
334
|
+
"NewDomainSeparator()": TypedContractEvent<NewDomainSeparatorEvent.InputTuple, NewDomainSeparatorEvent.OutputTuple, NewDomainSeparatorEvent.OutputObject>;
|
335
|
+
NewDomainSeparator: TypedContractEvent<NewDomainSeparatorEvent.InputTuple, NewDomainSeparatorEvent.OutputTuple, NewDomainSeparatorEvent.OutputObject>;
|
336
|
+
"NewGasLimitETHTransfer(uint256)": TypedContractEvent<NewGasLimitETHTransferEvent.InputTuple, NewGasLimitETHTransferEvent.OutputTuple, NewGasLimitETHTransferEvent.OutputObject>;
|
337
|
+
NewGasLimitETHTransfer: TypedContractEvent<NewGasLimitETHTransferEvent.InputTuple, NewGasLimitETHTransferEvent.OutputTuple, NewGasLimitETHTransferEvent.OutputObject>;
|
338
|
+
"TakerAsk(tuple,address,address,uint256,address,address,uint256[],uint256[],address[2],uint256[3])": TypedContractEvent<TakerAskEvent.InputTuple, TakerAskEvent.OutputTuple, TakerAskEvent.OutputObject>;
|
339
|
+
TakerAsk: TypedContractEvent<TakerAskEvent.InputTuple, TakerAskEvent.OutputTuple, TakerAskEvent.OutputObject>;
|
340
|
+
"TakerBid(tuple,address,address,uint256,address,address,uint256[],uint256[],address[2],uint256[3])": TypedContractEvent<TakerBidEvent.InputTuple, TakerBidEvent.OutputTuple, TakerBidEvent.OutputObject>;
|
341
|
+
TakerBid: TypedContractEvent<TakerBidEvent.InputTuple, TakerBidEvent.OutputTuple, TakerBidEvent.OutputObject>;
|
342
|
+
};
|
343
|
+
}
|
package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/INonceManager.d.ts
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
import type { BaseContract, BigNumberish, FunctionFragment, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener } from "../../../../common";
|
3
|
+
export interface INonceManagerInterface extends Interface {
|
4
|
+
getEvent(nameOrSignatureOrTopic: "NewBidAskNonces" | "OrderNoncesCancelled" | "SubsetNoncesCancelled"): EventFragment;
|
5
|
+
}
|
6
|
+
export declare namespace NewBidAskNoncesEvent {
|
7
|
+
type InputTuple = [
|
8
|
+
user: AddressLike,
|
9
|
+
bidNonce: BigNumberish,
|
10
|
+
askNonce: BigNumberish
|
11
|
+
];
|
12
|
+
type OutputTuple = [user: string, bidNonce: bigint, askNonce: bigint];
|
13
|
+
interface OutputObject {
|
14
|
+
user: string;
|
15
|
+
bidNonce: bigint;
|
16
|
+
askNonce: bigint;
|
17
|
+
}
|
18
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
19
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
20
|
+
type Log = TypedEventLog<Event>;
|
21
|
+
type LogDescription = TypedLogDescription<Event>;
|
22
|
+
}
|
23
|
+
export declare namespace OrderNoncesCancelledEvent {
|
24
|
+
type InputTuple = [user: AddressLike, orderNonces: BigNumberish[]];
|
25
|
+
type OutputTuple = [user: string, orderNonces: bigint[]];
|
26
|
+
interface OutputObject {
|
27
|
+
user: string;
|
28
|
+
orderNonces: bigint[];
|
29
|
+
}
|
30
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
31
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
32
|
+
type Log = TypedEventLog<Event>;
|
33
|
+
type LogDescription = TypedLogDescription<Event>;
|
34
|
+
}
|
35
|
+
export declare namespace SubsetNoncesCancelledEvent {
|
36
|
+
type InputTuple = [user: AddressLike, subsetNonces: BigNumberish[]];
|
37
|
+
type OutputTuple = [user: string, subsetNonces: bigint[]];
|
38
|
+
interface OutputObject {
|
39
|
+
user: string;
|
40
|
+
subsetNonces: bigint[];
|
41
|
+
}
|
42
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
43
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
44
|
+
type Log = TypedEventLog<Event>;
|
45
|
+
type LogDescription = TypedLogDescription<Event>;
|
46
|
+
}
|
47
|
+
export interface INonceManager extends BaseContract {
|
48
|
+
connect(runner?: ContractRunner | null): INonceManager;
|
49
|
+
waitForDeployment(): Promise<this>;
|
50
|
+
interface: INonceManagerInterface;
|
51
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
52
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
53
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
54
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
55
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
56
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
57
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
58
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
59
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
60
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
61
|
+
getEvent(key: "NewBidAskNonces"): TypedContractEvent<NewBidAskNoncesEvent.InputTuple, NewBidAskNoncesEvent.OutputTuple, NewBidAskNoncesEvent.OutputObject>;
|
62
|
+
getEvent(key: "OrderNoncesCancelled"): TypedContractEvent<OrderNoncesCancelledEvent.InputTuple, OrderNoncesCancelledEvent.OutputTuple, OrderNoncesCancelledEvent.OutputObject>;
|
63
|
+
getEvent(key: "SubsetNoncesCancelled"): TypedContractEvent<SubsetNoncesCancelledEvent.InputTuple, SubsetNoncesCancelledEvent.OutputTuple, SubsetNoncesCancelledEvent.OutputObject>;
|
64
|
+
filters: {
|
65
|
+
"NewBidAskNonces(address,uint256,uint256)": TypedContractEvent<NewBidAskNoncesEvent.InputTuple, NewBidAskNoncesEvent.OutputTuple, NewBidAskNoncesEvent.OutputObject>;
|
66
|
+
NewBidAskNonces: TypedContractEvent<NewBidAskNoncesEvent.InputTuple, NewBidAskNoncesEvent.OutputTuple, NewBidAskNoncesEvent.OutputObject>;
|
67
|
+
"OrderNoncesCancelled(address,uint256[])": TypedContractEvent<OrderNoncesCancelledEvent.InputTuple, OrderNoncesCancelledEvent.OutputTuple, OrderNoncesCancelledEvent.OutputObject>;
|
68
|
+
OrderNoncesCancelled: TypedContractEvent<OrderNoncesCancelledEvent.InputTuple, OrderNoncesCancelledEvent.OutputTuple, OrderNoncesCancelledEvent.OutputObject>;
|
69
|
+
"SubsetNoncesCancelled(address,uint256[])": TypedContractEvent<SubsetNoncesCancelledEvent.InputTuple, SubsetNoncesCancelledEvent.OutputTuple, SubsetNoncesCancelledEvent.OutputObject>;
|
70
|
+
SubsetNoncesCancelled: TypedContractEvent<SubsetNoncesCancelledEvent.InputTuple, SubsetNoncesCancelledEvent.OutputTuple, SubsetNoncesCancelledEvent.OutputObject>;
|
71
|
+
};
|
72
|
+
}
|