@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
@@ -0,0 +1,41 @@
|
|
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 IRoyaltyFeeRegistryInterface extends Interface {
|
4
|
+
getFunction(nameOrSignature: "royaltyInfo"): FunctionFragment;
|
5
|
+
encodeFunctionData(functionFragment: "royaltyInfo", values: [AddressLike, BigNumberish]): string;
|
6
|
+
decodeFunctionResult(functionFragment: "royaltyInfo", data: BytesLike): Result;
|
7
|
+
}
|
8
|
+
export interface IRoyaltyFeeRegistry extends BaseContract {
|
9
|
+
connect(runner?: ContractRunner | null): IRoyaltyFeeRegistry;
|
10
|
+
waitForDeployment(): Promise<this>;
|
11
|
+
interface: IRoyaltyFeeRegistryInterface;
|
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
|
+
royaltyInfo: TypedContractMethod<[
|
22
|
+
collection: AddressLike,
|
23
|
+
price: BigNumberish
|
24
|
+
], [
|
25
|
+
[string, bigint] & {
|
26
|
+
receiver: string;
|
27
|
+
royaltyFee: bigint;
|
28
|
+
}
|
29
|
+
], "view">;
|
30
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
31
|
+
getFunction(nameOrSignature: "royaltyInfo"): TypedContractMethod<[
|
32
|
+
collection: AddressLike,
|
33
|
+
price: BigNumberish
|
34
|
+
], [
|
35
|
+
[string, bigint] & {
|
36
|
+
receiver: string;
|
37
|
+
royaltyFee: bigint;
|
38
|
+
}
|
39
|
+
], "view">;
|
40
|
+
filters: {};
|
41
|
+
}
|
@@ -0,0 +1,97 @@
|
|
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 declare namespace OrderStructs {
|
4
|
+
type MakerStruct = {
|
5
|
+
quoteType: BigNumberish;
|
6
|
+
globalNonce: BigNumberish;
|
7
|
+
subsetNonce: BigNumberish;
|
8
|
+
orderNonce: BigNumberish;
|
9
|
+
strategyId: BigNumberish;
|
10
|
+
collectionType: BigNumberish;
|
11
|
+
collection: AddressLike;
|
12
|
+
currency: AddressLike;
|
13
|
+
signer: AddressLike;
|
14
|
+
startTime: BigNumberish;
|
15
|
+
endTime: BigNumberish;
|
16
|
+
price: BigNumberish;
|
17
|
+
itemIds: BigNumberish[];
|
18
|
+
amounts: BigNumberish[];
|
19
|
+
additionalParameters: BytesLike;
|
20
|
+
};
|
21
|
+
type MakerStructOutput = [
|
22
|
+
quoteType: bigint,
|
23
|
+
globalNonce: bigint,
|
24
|
+
subsetNonce: bigint,
|
25
|
+
orderNonce: bigint,
|
26
|
+
strategyId: bigint,
|
27
|
+
collectionType: bigint,
|
28
|
+
collection: string,
|
29
|
+
currency: string,
|
30
|
+
signer: string,
|
31
|
+
startTime: bigint,
|
32
|
+
endTime: bigint,
|
33
|
+
price: bigint,
|
34
|
+
itemIds: bigint[],
|
35
|
+
amounts: bigint[],
|
36
|
+
additionalParameters: string
|
37
|
+
] & {
|
38
|
+
quoteType: bigint;
|
39
|
+
globalNonce: bigint;
|
40
|
+
subsetNonce: bigint;
|
41
|
+
orderNonce: bigint;
|
42
|
+
strategyId: bigint;
|
43
|
+
collectionType: bigint;
|
44
|
+
collection: string;
|
45
|
+
currency: string;
|
46
|
+
signer: string;
|
47
|
+
startTime: bigint;
|
48
|
+
endTime: bigint;
|
49
|
+
price: bigint;
|
50
|
+
itemIds: bigint[];
|
51
|
+
amounts: bigint[];
|
52
|
+
additionalParameters: string;
|
53
|
+
};
|
54
|
+
}
|
55
|
+
export interface IStrategyInterface extends Interface {
|
56
|
+
getFunction(nameOrSignature: "isLooksRareV2Strategy" | "isMakerOrderValid"): FunctionFragment;
|
57
|
+
encodeFunctionData(functionFragment: "isLooksRareV2Strategy", values?: undefined): string;
|
58
|
+
encodeFunctionData(functionFragment: "isMakerOrderValid", values: [OrderStructs.MakerStruct, BytesLike]): string;
|
59
|
+
decodeFunctionResult(functionFragment: "isLooksRareV2Strategy", data: BytesLike): Result;
|
60
|
+
decodeFunctionResult(functionFragment: "isMakerOrderValid", data: BytesLike): Result;
|
61
|
+
}
|
62
|
+
export interface IStrategy extends BaseContract {
|
63
|
+
connect(runner?: ContractRunner | null): IStrategy;
|
64
|
+
waitForDeployment(): Promise<this>;
|
65
|
+
interface: IStrategyInterface;
|
66
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
67
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
68
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
69
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
70
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
71
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
72
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
73
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
74
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
75
|
+
isLooksRareV2Strategy: TypedContractMethod<[], [boolean], "view">;
|
76
|
+
isMakerOrderValid: TypedContractMethod<[
|
77
|
+
makerOrder: OrderStructs.MakerStruct,
|
78
|
+
functionSelector: BytesLike
|
79
|
+
], [
|
80
|
+
[boolean, string] & {
|
81
|
+
isValid: boolean;
|
82
|
+
errorSelector: string;
|
83
|
+
}
|
84
|
+
], "view">;
|
85
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
86
|
+
getFunction(nameOrSignature: "isLooksRareV2Strategy"): TypedContractMethod<[], [boolean], "view">;
|
87
|
+
getFunction(nameOrSignature: "isMakerOrderValid"): TypedContractMethod<[
|
88
|
+
makerOrder: OrderStructs.MakerStruct,
|
89
|
+
functionSelector: BytesLike
|
90
|
+
], [
|
91
|
+
[boolean, string] & {
|
92
|
+
isValid: boolean;
|
93
|
+
errorSelector: string;
|
94
|
+
}
|
95
|
+
], "view">;
|
96
|
+
filters: {};
|
97
|
+
}
|
package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategyManager.d.ts
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener } from "../../../../common";
|
3
|
+
export interface IStrategyManagerInterface extends Interface {
|
4
|
+
getEvent(nameOrSignatureOrTopic: "NewStrategy" | "StrategyUpdated"): EventFragment;
|
5
|
+
}
|
6
|
+
export declare namespace NewStrategyEvent {
|
7
|
+
type InputTuple = [
|
8
|
+
strategyId: BigNumberish,
|
9
|
+
standardProtocolFeeBp: BigNumberish,
|
10
|
+
minTotalFeeBp: BigNumberish,
|
11
|
+
maxProtocolFeeBp: BigNumberish,
|
12
|
+
selector: BytesLike,
|
13
|
+
isMakerBid: boolean,
|
14
|
+
implementation: AddressLike
|
15
|
+
];
|
16
|
+
type OutputTuple = [
|
17
|
+
strategyId: bigint,
|
18
|
+
standardProtocolFeeBp: bigint,
|
19
|
+
minTotalFeeBp: bigint,
|
20
|
+
maxProtocolFeeBp: bigint,
|
21
|
+
selector: string,
|
22
|
+
isMakerBid: boolean,
|
23
|
+
implementation: string
|
24
|
+
];
|
25
|
+
interface OutputObject {
|
26
|
+
strategyId: bigint;
|
27
|
+
standardProtocolFeeBp: bigint;
|
28
|
+
minTotalFeeBp: bigint;
|
29
|
+
maxProtocolFeeBp: bigint;
|
30
|
+
selector: string;
|
31
|
+
isMakerBid: boolean;
|
32
|
+
implementation: 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 declare namespace StrategyUpdatedEvent {
|
40
|
+
type InputTuple = [
|
41
|
+
strategyId: BigNumberish,
|
42
|
+
isActive: boolean,
|
43
|
+
standardProtocolFeeBp: BigNumberish,
|
44
|
+
minTotalFeeBp: BigNumberish
|
45
|
+
];
|
46
|
+
type OutputTuple = [
|
47
|
+
strategyId: bigint,
|
48
|
+
isActive: boolean,
|
49
|
+
standardProtocolFeeBp: bigint,
|
50
|
+
minTotalFeeBp: bigint
|
51
|
+
];
|
52
|
+
interface OutputObject {
|
53
|
+
strategyId: bigint;
|
54
|
+
isActive: boolean;
|
55
|
+
standardProtocolFeeBp: bigint;
|
56
|
+
minTotalFeeBp: bigint;
|
57
|
+
}
|
58
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
59
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
60
|
+
type Log = TypedEventLog<Event>;
|
61
|
+
type LogDescription = TypedLogDescription<Event>;
|
62
|
+
}
|
63
|
+
export interface IStrategyManager extends BaseContract {
|
64
|
+
connect(runner?: ContractRunner | null): IStrategyManager;
|
65
|
+
waitForDeployment(): Promise<this>;
|
66
|
+
interface: IStrategyManagerInterface;
|
67
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
68
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
69
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
70
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
71
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
72
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
73
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
74
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
75
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
76
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
77
|
+
getEvent(key: "NewStrategy"): TypedContractEvent<NewStrategyEvent.InputTuple, NewStrategyEvent.OutputTuple, NewStrategyEvent.OutputObject>;
|
78
|
+
getEvent(key: "StrategyUpdated"): TypedContractEvent<StrategyUpdatedEvent.InputTuple, StrategyUpdatedEvent.OutputTuple, StrategyUpdatedEvent.OutputObject>;
|
79
|
+
filters: {
|
80
|
+
"NewStrategy(uint256,uint16,uint16,uint16,bytes4,bool,address)": TypedContractEvent<NewStrategyEvent.InputTuple, NewStrategyEvent.OutputTuple, NewStrategyEvent.OutputObject>;
|
81
|
+
NewStrategy: TypedContractEvent<NewStrategyEvent.InputTuple, NewStrategyEvent.OutputTuple, NewStrategyEvent.OutputObject>;
|
82
|
+
"StrategyUpdated(uint256,bool,uint16,uint16)": TypedContractEvent<StrategyUpdatedEvent.InputTuple, StrategyUpdatedEvent.OutputTuple, StrategyUpdatedEvent.OutputObject>;
|
83
|
+
StrategyUpdated: TypedContractEvent<StrategyUpdatedEvent.InputTuple, StrategyUpdatedEvent.OutputTuple, StrategyUpdatedEvent.OutputObject>;
|
84
|
+
};
|
85
|
+
}
|
package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ITransferManager.d.ts
ADDED
@@ -0,0 +1,80 @@
|
|
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 ITransferManagerInterface extends Interface {
|
4
|
+
getEvent(nameOrSignatureOrTopic: "ApprovalsGranted" | "ApprovalsRemoved" | "OperatorAllowed" | "OperatorRemoved"): EventFragment;
|
5
|
+
}
|
6
|
+
export declare namespace ApprovalsGrantedEvent {
|
7
|
+
type InputTuple = [user: AddressLike, operators: AddressLike[]];
|
8
|
+
type OutputTuple = [user: string, operators: string[]];
|
9
|
+
interface OutputObject {
|
10
|
+
user: string;
|
11
|
+
operators: string[];
|
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 declare namespace ApprovalsRemovedEvent {
|
19
|
+
type InputTuple = [user: AddressLike, operators: AddressLike[]];
|
20
|
+
type OutputTuple = [user: string, operators: string[]];
|
21
|
+
interface OutputObject {
|
22
|
+
user: string;
|
23
|
+
operators: string[];
|
24
|
+
}
|
25
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
26
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
27
|
+
type Log = TypedEventLog<Event>;
|
28
|
+
type LogDescription = TypedLogDescription<Event>;
|
29
|
+
}
|
30
|
+
export declare namespace OperatorAllowedEvent {
|
31
|
+
type InputTuple = [operator: AddressLike];
|
32
|
+
type OutputTuple = [operator: string];
|
33
|
+
interface OutputObject {
|
34
|
+
operator: string;
|
35
|
+
}
|
36
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
37
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
38
|
+
type Log = TypedEventLog<Event>;
|
39
|
+
type LogDescription = TypedLogDescription<Event>;
|
40
|
+
}
|
41
|
+
export declare namespace OperatorRemovedEvent {
|
42
|
+
type InputTuple = [operator: AddressLike];
|
43
|
+
type OutputTuple = [operator: string];
|
44
|
+
interface OutputObject {
|
45
|
+
operator: string;
|
46
|
+
}
|
47
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
48
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
49
|
+
type Log = TypedEventLog<Event>;
|
50
|
+
type LogDescription = TypedLogDescription<Event>;
|
51
|
+
}
|
52
|
+
export interface ITransferManager extends BaseContract {
|
53
|
+
connect(runner?: ContractRunner | null): ITransferManager;
|
54
|
+
waitForDeployment(): Promise<this>;
|
55
|
+
interface: ITransferManagerInterface;
|
56
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
57
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
58
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
59
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
60
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
61
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
62
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
63
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
64
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
65
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
66
|
+
getEvent(key: "ApprovalsGranted"): TypedContractEvent<ApprovalsGrantedEvent.InputTuple, ApprovalsGrantedEvent.OutputTuple, ApprovalsGrantedEvent.OutputObject>;
|
67
|
+
getEvent(key: "ApprovalsRemoved"): TypedContractEvent<ApprovalsRemovedEvent.InputTuple, ApprovalsRemovedEvent.OutputTuple, ApprovalsRemovedEvent.OutputObject>;
|
68
|
+
getEvent(key: "OperatorAllowed"): TypedContractEvent<OperatorAllowedEvent.InputTuple, OperatorAllowedEvent.OutputTuple, OperatorAllowedEvent.OutputObject>;
|
69
|
+
getEvent(key: "OperatorRemoved"): TypedContractEvent<OperatorRemovedEvent.InputTuple, OperatorRemovedEvent.OutputTuple, OperatorRemovedEvent.OutputObject>;
|
70
|
+
filters: {
|
71
|
+
"ApprovalsGranted(address,address[])": TypedContractEvent<ApprovalsGrantedEvent.InputTuple, ApprovalsGrantedEvent.OutputTuple, ApprovalsGrantedEvent.OutputObject>;
|
72
|
+
ApprovalsGranted: TypedContractEvent<ApprovalsGrantedEvent.InputTuple, ApprovalsGrantedEvent.OutputTuple, ApprovalsGrantedEvent.OutputObject>;
|
73
|
+
"ApprovalsRemoved(address,address[])": TypedContractEvent<ApprovalsRemovedEvent.InputTuple, ApprovalsRemovedEvent.OutputTuple, ApprovalsRemovedEvent.OutputObject>;
|
74
|
+
ApprovalsRemoved: TypedContractEvent<ApprovalsRemovedEvent.InputTuple, ApprovalsRemovedEvent.OutputTuple, ApprovalsRemovedEvent.OutputObject>;
|
75
|
+
"OperatorAllowed(address)": TypedContractEvent<OperatorAllowedEvent.InputTuple, OperatorAllowedEvent.OutputTuple, OperatorAllowedEvent.OutputObject>;
|
76
|
+
OperatorAllowed: TypedContractEvent<OperatorAllowedEvent.InputTuple, OperatorAllowedEvent.OutputTuple, OperatorAllowedEvent.OutputObject>;
|
77
|
+
"OperatorRemoved(address)": TypedContractEvent<OperatorRemovedEvent.InputTuple, OperatorRemovedEvent.OutputTuple, OperatorRemovedEvent.OutputObject>;
|
78
|
+
OperatorRemoved: TypedContractEvent<OperatorRemovedEvent.InputTuple, OperatorRemovedEvent.OutputTuple, OperatorRemovedEvent.OutputObject>;
|
79
|
+
};
|
80
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export type { IAffiliateManager } from "./IAffiliateManager";
|
2
|
+
export type { ICreatorFeeManager } from "./ICreatorFeeManager";
|
3
|
+
export type { ICurrencyManager } from "./ICurrencyManager";
|
4
|
+
export type { IExecutionManager } from "./IExecutionManager";
|
5
|
+
export type { ILooksRareProtocol } from "./ILooksRareProtocol";
|
6
|
+
export type { INonceManager } from "./INonceManager";
|
7
|
+
export type { IRoyaltyFeeRegistry } from "./IRoyaltyFeeRegistry";
|
8
|
+
export type { IStrategy } from "./IStrategy";
|
9
|
+
export type { IStrategyManager } from "./IStrategyManager";
|
10
|
+
export type { ITransferManager } from "./ITransferManager";
|
@@ -0,0 +1,222 @@
|
|
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 MockRoyaltyFeeRegistryInterface extends Interface {
|
4
|
+
getFunction(nameOrSignature: "cancelOwnershipTransfer" | "confirmOwnershipRenouncement" | "confirmOwnershipTransfer" | "initiateOwnershipRenouncement" | "initiateOwnershipTransfer" | "owner" | "ownershipStatus" | "potentialOwner" | "royaltyFeeInfoCollection" | "royaltyFeeLimit" | "royaltyInfo" | "updateRoyaltyFeeLimit" | "updateRoyaltyInfoForCollection"): FunctionFragment;
|
5
|
+
getEvent(nameOrSignatureOrTopic: "CancelOwnershipTransfer" | "InitiateOwnershipRenouncement" | "InitiateOwnershipTransfer" | "NewOwner" | "NewRoyaltyFeeLimit" | "RoyaltyFeeUpdate"): EventFragment;
|
6
|
+
encodeFunctionData(functionFragment: "cancelOwnershipTransfer", values?: undefined): string;
|
7
|
+
encodeFunctionData(functionFragment: "confirmOwnershipRenouncement", values?: undefined): string;
|
8
|
+
encodeFunctionData(functionFragment: "confirmOwnershipTransfer", values?: undefined): string;
|
9
|
+
encodeFunctionData(functionFragment: "initiateOwnershipRenouncement", values?: undefined): string;
|
10
|
+
encodeFunctionData(functionFragment: "initiateOwnershipTransfer", values: [AddressLike]): string;
|
11
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
12
|
+
encodeFunctionData(functionFragment: "ownershipStatus", values?: undefined): string;
|
13
|
+
encodeFunctionData(functionFragment: "potentialOwner", values?: undefined): string;
|
14
|
+
encodeFunctionData(functionFragment: "royaltyFeeInfoCollection", values: [AddressLike]): string;
|
15
|
+
encodeFunctionData(functionFragment: "royaltyFeeLimit", values?: undefined): string;
|
16
|
+
encodeFunctionData(functionFragment: "royaltyInfo", values: [AddressLike, BigNumberish]): string;
|
17
|
+
encodeFunctionData(functionFragment: "updateRoyaltyFeeLimit", values: [BigNumberish]): string;
|
18
|
+
encodeFunctionData(functionFragment: "updateRoyaltyInfoForCollection", values: [AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
19
|
+
decodeFunctionResult(functionFragment: "cancelOwnershipTransfer", data: BytesLike): Result;
|
20
|
+
decodeFunctionResult(functionFragment: "confirmOwnershipRenouncement", data: BytesLike): Result;
|
21
|
+
decodeFunctionResult(functionFragment: "confirmOwnershipTransfer", data: BytesLike): Result;
|
22
|
+
decodeFunctionResult(functionFragment: "initiateOwnershipRenouncement", data: BytesLike): Result;
|
23
|
+
decodeFunctionResult(functionFragment: "initiateOwnershipTransfer", data: BytesLike): Result;
|
24
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
25
|
+
decodeFunctionResult(functionFragment: "ownershipStatus", data: BytesLike): Result;
|
26
|
+
decodeFunctionResult(functionFragment: "potentialOwner", data: BytesLike): Result;
|
27
|
+
decodeFunctionResult(functionFragment: "royaltyFeeInfoCollection", data: BytesLike): Result;
|
28
|
+
decodeFunctionResult(functionFragment: "royaltyFeeLimit", data: BytesLike): Result;
|
29
|
+
decodeFunctionResult(functionFragment: "royaltyInfo", data: BytesLike): Result;
|
30
|
+
decodeFunctionResult(functionFragment: "updateRoyaltyFeeLimit", data: BytesLike): Result;
|
31
|
+
decodeFunctionResult(functionFragment: "updateRoyaltyInfoForCollection", data: BytesLike): Result;
|
32
|
+
}
|
33
|
+
export declare namespace CancelOwnershipTransferEvent {
|
34
|
+
type InputTuple = [];
|
35
|
+
type OutputTuple = [];
|
36
|
+
interface OutputObject {
|
37
|
+
}
|
38
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
39
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
40
|
+
type Log = TypedEventLog<Event>;
|
41
|
+
type LogDescription = TypedLogDescription<Event>;
|
42
|
+
}
|
43
|
+
export declare namespace InitiateOwnershipRenouncementEvent {
|
44
|
+
type InputTuple = [];
|
45
|
+
type OutputTuple = [];
|
46
|
+
interface OutputObject {
|
47
|
+
}
|
48
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
49
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
50
|
+
type Log = TypedEventLog<Event>;
|
51
|
+
type LogDescription = TypedLogDescription<Event>;
|
52
|
+
}
|
53
|
+
export declare namespace InitiateOwnershipTransferEvent {
|
54
|
+
type InputTuple = [
|
55
|
+
previousOwner: AddressLike,
|
56
|
+
potentialOwner: AddressLike
|
57
|
+
];
|
58
|
+
type OutputTuple = [previousOwner: string, potentialOwner: string];
|
59
|
+
interface OutputObject {
|
60
|
+
previousOwner: string;
|
61
|
+
potentialOwner: string;
|
62
|
+
}
|
63
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
64
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
65
|
+
type Log = TypedEventLog<Event>;
|
66
|
+
type LogDescription = TypedLogDescription<Event>;
|
67
|
+
}
|
68
|
+
export declare namespace NewOwnerEvent {
|
69
|
+
type InputTuple = [newOwner: AddressLike];
|
70
|
+
type OutputTuple = [newOwner: string];
|
71
|
+
interface OutputObject {
|
72
|
+
newOwner: string;
|
73
|
+
}
|
74
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
75
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
76
|
+
type Log = TypedEventLog<Event>;
|
77
|
+
type LogDescription = TypedLogDescription<Event>;
|
78
|
+
}
|
79
|
+
export declare namespace NewRoyaltyFeeLimitEvent {
|
80
|
+
type InputTuple = [royaltyFeeLimit: BigNumberish];
|
81
|
+
type OutputTuple = [royaltyFeeLimit: bigint];
|
82
|
+
interface OutputObject {
|
83
|
+
royaltyFeeLimit: bigint;
|
84
|
+
}
|
85
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
86
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
87
|
+
type Log = TypedEventLog<Event>;
|
88
|
+
type LogDescription = TypedLogDescription<Event>;
|
89
|
+
}
|
90
|
+
export declare namespace RoyaltyFeeUpdateEvent {
|
91
|
+
type InputTuple = [
|
92
|
+
collection: AddressLike,
|
93
|
+
setter: AddressLike,
|
94
|
+
receiver: AddressLike,
|
95
|
+
fee: BigNumberish
|
96
|
+
];
|
97
|
+
type OutputTuple = [
|
98
|
+
collection: string,
|
99
|
+
setter: string,
|
100
|
+
receiver: string,
|
101
|
+
fee: bigint
|
102
|
+
];
|
103
|
+
interface OutputObject {
|
104
|
+
collection: string;
|
105
|
+
setter: string;
|
106
|
+
receiver: string;
|
107
|
+
fee: bigint;
|
108
|
+
}
|
109
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
110
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
111
|
+
type Log = TypedEventLog<Event>;
|
112
|
+
type LogDescription = TypedLogDescription<Event>;
|
113
|
+
}
|
114
|
+
export interface MockRoyaltyFeeRegistry extends BaseContract {
|
115
|
+
connect(runner?: ContractRunner | null): MockRoyaltyFeeRegistry;
|
116
|
+
waitForDeployment(): Promise<this>;
|
117
|
+
interface: MockRoyaltyFeeRegistryInterface;
|
118
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
119
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
120
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
121
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
122
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
123
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
124
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
125
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
126
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
127
|
+
cancelOwnershipTransfer: TypedContractMethod<[], [void], "nonpayable">;
|
128
|
+
confirmOwnershipRenouncement: TypedContractMethod<[], [void], "nonpayable">;
|
129
|
+
confirmOwnershipTransfer: TypedContractMethod<[], [void], "nonpayable">;
|
130
|
+
initiateOwnershipRenouncement: TypedContractMethod<[], [void], "nonpayable">;
|
131
|
+
initiateOwnershipTransfer: TypedContractMethod<[
|
132
|
+
newPotentialOwner: AddressLike
|
133
|
+
], [
|
134
|
+
void
|
135
|
+
], "nonpayable">;
|
136
|
+
owner: TypedContractMethod<[], [string], "view">;
|
137
|
+
ownershipStatus: TypedContractMethod<[], [bigint], "view">;
|
138
|
+
potentialOwner: TypedContractMethod<[], [string], "view">;
|
139
|
+
royaltyFeeInfoCollection: TypedContractMethod<[
|
140
|
+
collection: AddressLike
|
141
|
+
], [
|
142
|
+
[string, string, bigint]
|
143
|
+
], "view">;
|
144
|
+
royaltyFeeLimit: TypedContractMethod<[], [bigint], "view">;
|
145
|
+
royaltyInfo: TypedContractMethod<[
|
146
|
+
collection: AddressLike,
|
147
|
+
amount: BigNumberish
|
148
|
+
], [
|
149
|
+
[string, bigint]
|
150
|
+
], "view">;
|
151
|
+
updateRoyaltyFeeLimit: TypedContractMethod<[
|
152
|
+
_royaltyFeeLimit: BigNumberish
|
153
|
+
], [
|
154
|
+
void
|
155
|
+
], "nonpayable">;
|
156
|
+
updateRoyaltyInfoForCollection: TypedContractMethod<[
|
157
|
+
collection: AddressLike,
|
158
|
+
setter: AddressLike,
|
159
|
+
receiver: AddressLike,
|
160
|
+
fee: BigNumberish
|
161
|
+
], [
|
162
|
+
void
|
163
|
+
], "nonpayable">;
|
164
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
165
|
+
getFunction(nameOrSignature: "cancelOwnershipTransfer"): TypedContractMethod<[], [void], "nonpayable">;
|
166
|
+
getFunction(nameOrSignature: "confirmOwnershipRenouncement"): TypedContractMethod<[], [void], "nonpayable">;
|
167
|
+
getFunction(nameOrSignature: "confirmOwnershipTransfer"): TypedContractMethod<[], [void], "nonpayable">;
|
168
|
+
getFunction(nameOrSignature: "initiateOwnershipRenouncement"): TypedContractMethod<[], [void], "nonpayable">;
|
169
|
+
getFunction(nameOrSignature: "initiateOwnershipTransfer"): TypedContractMethod<[
|
170
|
+
newPotentialOwner: AddressLike
|
171
|
+
], [
|
172
|
+
void
|
173
|
+
], "nonpayable">;
|
174
|
+
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
175
|
+
getFunction(nameOrSignature: "ownershipStatus"): TypedContractMethod<[], [bigint], "view">;
|
176
|
+
getFunction(nameOrSignature: "potentialOwner"): TypedContractMethod<[], [string], "view">;
|
177
|
+
getFunction(nameOrSignature: "royaltyFeeInfoCollection"): TypedContractMethod<[
|
178
|
+
collection: AddressLike
|
179
|
+
], [
|
180
|
+
[string, string, bigint]
|
181
|
+
], "view">;
|
182
|
+
getFunction(nameOrSignature: "royaltyFeeLimit"): TypedContractMethod<[], [bigint], "view">;
|
183
|
+
getFunction(nameOrSignature: "royaltyInfo"): TypedContractMethod<[
|
184
|
+
collection: AddressLike,
|
185
|
+
amount: BigNumberish
|
186
|
+
], [
|
187
|
+
[string, bigint]
|
188
|
+
], "view">;
|
189
|
+
getFunction(nameOrSignature: "updateRoyaltyFeeLimit"): TypedContractMethod<[
|
190
|
+
_royaltyFeeLimit: BigNumberish
|
191
|
+
], [
|
192
|
+
void
|
193
|
+
], "nonpayable">;
|
194
|
+
getFunction(nameOrSignature: "updateRoyaltyInfoForCollection"): TypedContractMethod<[
|
195
|
+
collection: AddressLike,
|
196
|
+
setter: AddressLike,
|
197
|
+
receiver: AddressLike,
|
198
|
+
fee: BigNumberish
|
199
|
+
], [
|
200
|
+
void
|
201
|
+
], "nonpayable">;
|
202
|
+
getEvent(key: "CancelOwnershipTransfer"): TypedContractEvent<CancelOwnershipTransferEvent.InputTuple, CancelOwnershipTransferEvent.OutputTuple, CancelOwnershipTransferEvent.OutputObject>;
|
203
|
+
getEvent(key: "InitiateOwnershipRenouncement"): TypedContractEvent<InitiateOwnershipRenouncementEvent.InputTuple, InitiateOwnershipRenouncementEvent.OutputTuple, InitiateOwnershipRenouncementEvent.OutputObject>;
|
204
|
+
getEvent(key: "InitiateOwnershipTransfer"): TypedContractEvent<InitiateOwnershipTransferEvent.InputTuple, InitiateOwnershipTransferEvent.OutputTuple, InitiateOwnershipTransferEvent.OutputObject>;
|
205
|
+
getEvent(key: "NewOwner"): TypedContractEvent<NewOwnerEvent.InputTuple, NewOwnerEvent.OutputTuple, NewOwnerEvent.OutputObject>;
|
206
|
+
getEvent(key: "NewRoyaltyFeeLimit"): TypedContractEvent<NewRoyaltyFeeLimitEvent.InputTuple, NewRoyaltyFeeLimitEvent.OutputTuple, NewRoyaltyFeeLimitEvent.OutputObject>;
|
207
|
+
getEvent(key: "RoyaltyFeeUpdate"): TypedContractEvent<RoyaltyFeeUpdateEvent.InputTuple, RoyaltyFeeUpdateEvent.OutputTuple, RoyaltyFeeUpdateEvent.OutputObject>;
|
208
|
+
filters: {
|
209
|
+
"CancelOwnershipTransfer()": TypedContractEvent<CancelOwnershipTransferEvent.InputTuple, CancelOwnershipTransferEvent.OutputTuple, CancelOwnershipTransferEvent.OutputObject>;
|
210
|
+
CancelOwnershipTransfer: TypedContractEvent<CancelOwnershipTransferEvent.InputTuple, CancelOwnershipTransferEvent.OutputTuple, CancelOwnershipTransferEvent.OutputObject>;
|
211
|
+
"InitiateOwnershipRenouncement()": TypedContractEvent<InitiateOwnershipRenouncementEvent.InputTuple, InitiateOwnershipRenouncementEvent.OutputTuple, InitiateOwnershipRenouncementEvent.OutputObject>;
|
212
|
+
InitiateOwnershipRenouncement: TypedContractEvent<InitiateOwnershipRenouncementEvent.InputTuple, InitiateOwnershipRenouncementEvent.OutputTuple, InitiateOwnershipRenouncementEvent.OutputObject>;
|
213
|
+
"InitiateOwnershipTransfer(address,address)": TypedContractEvent<InitiateOwnershipTransferEvent.InputTuple, InitiateOwnershipTransferEvent.OutputTuple, InitiateOwnershipTransferEvent.OutputObject>;
|
214
|
+
InitiateOwnershipTransfer: TypedContractEvent<InitiateOwnershipTransferEvent.InputTuple, InitiateOwnershipTransferEvent.OutputTuple, InitiateOwnershipTransferEvent.OutputObject>;
|
215
|
+
"NewOwner(address)": TypedContractEvent<NewOwnerEvent.InputTuple, NewOwnerEvent.OutputTuple, NewOwnerEvent.OutputObject>;
|
216
|
+
NewOwner: TypedContractEvent<NewOwnerEvent.InputTuple, NewOwnerEvent.OutputTuple, NewOwnerEvent.OutputObject>;
|
217
|
+
"NewRoyaltyFeeLimit(uint256)": TypedContractEvent<NewRoyaltyFeeLimitEvent.InputTuple, NewRoyaltyFeeLimitEvent.OutputTuple, NewRoyaltyFeeLimitEvent.OutputObject>;
|
218
|
+
NewRoyaltyFeeLimit: TypedContractEvent<NewRoyaltyFeeLimitEvent.InputTuple, NewRoyaltyFeeLimitEvent.OutputTuple, NewRoyaltyFeeLimitEvent.OutputObject>;
|
219
|
+
"RoyaltyFeeUpdate(address,address,address,uint256)": TypedContractEvent<RoyaltyFeeUpdateEvent.InputTuple, RoyaltyFeeUpdateEvent.OutputTuple, RoyaltyFeeUpdateEvent.OutputObject>;
|
220
|
+
RoyaltyFeeUpdate: TypedContractEvent<RoyaltyFeeUpdateEvent.InputTuple, RoyaltyFeeUpdateEvent.OutputTuple, RoyaltyFeeUpdateEvent.OutputObject>;
|
221
|
+
};
|
222
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type { MockRoyaltyFeeRegistry } from "./MockRoyaltyFeeRegistry";
|