@imtbl/orderbook 2.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +176 -0
- package/README.md +71 -0
- package/dist/browser/index.js +2 -0
- package/dist/node/index.cjs +2 -0
- package/dist/node/index.js +2 -0
- package/dist/types/api-client/api-client-factory.d.ts +8 -0
- package/dist/types/api-client/api-client.d.ts +29 -0
- package/dist/types/api-client/api-client.test.d.ts +1 -0
- package/dist/types/api-client/index.d.ts +2 -0
- package/dist/types/config/config.d.ts +20 -0
- package/dist/types/config/index.d.ts +1 -0
- package/dist/types/constants.d.ts +3 -0
- package/dist/types/erc721/erc721-factory.d.ts +7 -0
- package/dist/types/erc721/erc721.d.ts +7 -0
- package/dist/types/erc721/erc721.test.d.ts +1 -0
- package/dist/types/erc721/index.d.ts +2 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/openapi/mapper.d.ts +10 -0
- package/dist/types/openapi/sdk/OrderBookClient.d.ts +10 -0
- package/dist/types/openapi/sdk/core/ApiError.d.ts +10 -0
- package/dist/types/openapi/sdk/core/ApiRequestOptions.d.ts +13 -0
- package/dist/types/openapi/sdk/core/ApiResult.d.ts +7 -0
- package/dist/types/openapi/sdk/core/AxiosHttpRequest.d.ts +14 -0
- package/dist/types/openapi/sdk/core/BaseHttpRequest.d.ts +8 -0
- package/dist/types/openapi/sdk/core/CancelablePromise.d.ts +26 -0
- package/dist/types/openapi/sdk/core/OpenAPI.d.ts +16 -0
- package/dist/types/openapi/sdk/core/request.d.ts +11 -0
- package/dist/types/openapi/sdk/index.d.ts +53 -0
- package/dist/types/openapi/sdk/models/ActiveOrderStatus.d.ts +6 -0
- package/dist/types/openapi/sdk/models/AssetCollectionItem.d.ts +3 -0
- package/dist/types/openapi/sdk/models/BidResult.d.ts +4 -0
- package/dist/types/openapi/sdk/models/CancelOrdersRequestBody.d.ts +14 -0
- package/dist/types/openapi/sdk/models/CancelOrdersResult.d.ts +4 -0
- package/dist/types/openapi/sdk/models/CancelOrdersResultData.d.ts +15 -0
- package/dist/types/openapi/sdk/models/CancelledOrderStatus.d.ts +24 -0
- package/dist/types/openapi/sdk/models/Chain.d.ts +13 -0
- package/dist/types/openapi/sdk/models/ChainName.d.ts +4 -0
- package/dist/types/openapi/sdk/models/CollectionBidResult.d.ts +4 -0
- package/dist/types/openapi/sdk/models/CreateBidRequestBody.d.ts +37 -0
- package/dist/types/openapi/sdk/models/CreateCollectionBidRequestBody.d.ts +37 -0
- package/dist/types/openapi/sdk/models/CreateListingRequestBody.d.ts +36 -0
- package/dist/types/openapi/sdk/models/ERC1155CollectionItem.d.ts +14 -0
- package/dist/types/openapi/sdk/models/ERC1155Item.d.ts +18 -0
- package/dist/types/openapi/sdk/models/ERC20Item.d.ts +14 -0
- package/dist/types/openapi/sdk/models/ERC721CollectionItem.d.ts +14 -0
- package/dist/types/openapi/sdk/models/ERC721Item.d.ts +14 -0
- package/dist/types/openapi/sdk/models/Error.d.ts +13 -0
- package/dist/types/openapi/sdk/models/ExpiredOrderStatus.d.ts +6 -0
- package/dist/types/openapi/sdk/models/FailedOrderCancellation.d.ts +18 -0
- package/dist/types/openapi/sdk/models/Fee.d.ts +25 -0
- package/dist/types/openapi/sdk/models/FillStatus.d.ts +13 -0
- package/dist/types/openapi/sdk/models/FilledOrderStatus.d.ts +6 -0
- package/dist/types/openapi/sdk/models/FulfillableOrder.d.ts +9 -0
- package/dist/types/openapi/sdk/models/FulfillmentDataRequest.d.ts +13 -0
- package/dist/types/openapi/sdk/models/InactiveOrderStatus.d.ts +14 -0
- package/dist/types/openapi/sdk/models/Item.d.ts +7 -0
- package/dist/types/openapi/sdk/models/ListBidsResult.d.ts +6 -0
- package/dist/types/openapi/sdk/models/ListCollectionBidsResult.d.ts +6 -0
- package/dist/types/openapi/sdk/models/ListListingsResult.d.ts +6 -0
- package/dist/types/openapi/sdk/models/ListTradeResult.d.ts +6 -0
- package/dist/types/openapi/sdk/models/ListingResult.d.ts +4 -0
- package/dist/types/openapi/sdk/models/NativeItem.d.ts +10 -0
- package/dist/types/openapi/sdk/models/Order.d.ts +59 -0
- package/dist/types/openapi/sdk/models/OrderStatus.d.ts +10 -0
- package/dist/types/openapi/sdk/models/OrderStatusName.d.ts +11 -0
- package/dist/types/openapi/sdk/models/Page.d.ts +13 -0
- package/dist/types/openapi/sdk/models/PageCursor.d.ts +4 -0
- package/dist/types/openapi/sdk/models/PageSize.d.ts +4 -0
- package/dist/types/openapi/sdk/models/PendingOrderStatus.d.ts +14 -0
- package/dist/types/openapi/sdk/models/ProtocolData.d.ts +31 -0
- package/dist/types/openapi/sdk/models/Trade.d.ts +40 -0
- package/dist/types/openapi/sdk/models/TradeBlockchainMetadata.d.ts +21 -0
- package/dist/types/openapi/sdk/models/TradeResult.d.ts +4 -0
- package/dist/types/openapi/sdk/models/UnfulfillableOrder.d.ts +14 -0
- package/dist/types/openapi/sdk/services/OrdersService.d.ts +319 -0
- package/dist/types/orderbook.d.ts +193 -0
- package/dist/types/seaport/components.d.ts +8 -0
- package/dist/types/seaport/constants.d.ts +43 -0
- package/dist/types/seaport/index.d.ts +2 -0
- package/dist/types/seaport/lib/bulk-orders.d.ts +6 -0
- package/dist/types/seaport/lib/defaults.d.ts +14 -0
- package/dist/types/seaport/lib/merkle.d.ts +33 -0
- package/dist/types/seaport/lib/utils.d.ts +10 -0
- package/dist/types/seaport/map-to-immutable-order.d.ts +7 -0
- package/dist/types/seaport/map-to-seaport-order.d.ts +6 -0
- package/dist/types/seaport/seaport-lib-factory.d.ts +10 -0
- package/dist/types/seaport/seaport.d.ts +38 -0
- package/dist/types/seaport/seaport.test.d.ts +1 -0
- package/dist/types/seaport/transaction.d.ts +3 -0
- package/dist/types/test/bulk-listings.e2e.d.ts +1 -0
- package/dist/types/test/cancel.e2e.d.ts +1 -0
- package/dist/types/test/create.e2e.d.ts +1 -0
- package/dist/types/test/expiry.demo.d.ts +1 -0
- package/dist/types/test/fulfil.e2e.d.ts +1 -0
- package/dist/types/test/fulfill.demo.d.ts +1 -0
- package/dist/types/test/fulfillBulk.demo.d.ts +1 -0
- package/dist/types/test/helpers/actions.d.ts +3 -0
- package/dist/types/test/helpers/config.d.ts +2 -0
- package/dist/types/test/helpers/erc721.d.ts +6 -0
- package/dist/types/test/helpers/gas.d.ts +4 -0
- package/dist/types/test/helpers/index.d.ts +8 -0
- package/dist/types/test/helpers/order.d.ts +3 -0
- package/dist/types/test/helpers/provider.d.ts +2 -0
- package/dist/types/test/helpers/sign-and-submit.d.ts +7 -0
- package/dist/types/test/helpers/signers.d.ts +3 -0
- package/dist/types/test/helpers/test-token/TestERC721Token.d.ts +715 -0
- package/dist/types/test/helpers/test-token/TestERC721Token__factory.d.ts +1043 -0
- package/dist/types/test/helpers/test-token/common.d.ts +50 -0
- package/dist/types/test/helpers/test-token/index.d.ts +2 -0
- package/dist/types/test/helpers/token.d.ts +1 -0
- package/dist/types/test/list.e2e.d.ts +1 -0
- package/dist/types/typechain/types/ImmutableERC721Base.d.ts +486 -0
- package/dist/types/typechain/types/common.d.ts +50 -0
- package/dist/types/typechain/types/factories/ImmutableERC721Base__factory.d.ts +688 -0
- package/dist/types/typechain/types/factories/index.d.ts +1 -0
- package/dist/types/typechain/types/index.d.ts +3 -0
- package/dist/types/types.d.ts +367 -0
- package/dist/types/utils.d.ts +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { FunctionFragment, Typed, EventFragment, ContractTransaction, ContractTransactionResponse, DeferredTopicFilter, EventLog, TransactionRequest, LogDescription } from "ethers";
|
|
2
|
+
export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> extends DeferredTopicFilter {
|
|
3
|
+
}
|
|
4
|
+
export interface TypedContractEvent<InputTuple extends Array<any> = any, OutputTuple extends Array<any> = any, OutputObject = any> {
|
|
5
|
+
(...args: Partial<InputTuple>): TypedDeferredTopicFilter<TypedContractEvent<InputTuple, OutputTuple, OutputObject>>;
|
|
6
|
+
name: string;
|
|
7
|
+
fragment: EventFragment;
|
|
8
|
+
getFragment(...args: Partial<InputTuple>): EventFragment;
|
|
9
|
+
}
|
|
10
|
+
type __TypechainAOutputTuple<T> = T extends TypedContractEvent<infer _U, infer W> ? W : never;
|
|
11
|
+
type __TypechainOutputObject<T> = T extends TypedContractEvent<infer _U, infer _W, infer V> ? V : never;
|
|
12
|
+
export interface TypedEventLog<TCEvent extends TypedContractEvent> extends Omit<EventLog, "args"> {
|
|
13
|
+
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
|
|
14
|
+
}
|
|
15
|
+
export interface TypedLogDescription<TCEvent extends TypedContractEvent> extends Omit<LogDescription, "args"> {
|
|
16
|
+
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
|
|
17
|
+
}
|
|
18
|
+
export type TypedListener<TCEvent extends TypedContractEvent> = (...listenerArg: [
|
|
19
|
+
...__TypechainAOutputTuple<TCEvent>,
|
|
20
|
+
TypedEventLog<TCEvent>,
|
|
21
|
+
...undefined[]
|
|
22
|
+
]) => void;
|
|
23
|
+
export type MinEthersFactory<C, ARGS> = {
|
|
24
|
+
deploy(...a: ARGS[]): Promise<C>;
|
|
25
|
+
};
|
|
26
|
+
export type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never;
|
|
27
|
+
export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never;
|
|
28
|
+
export type StateMutability = "nonpayable" | "payable" | "view";
|
|
29
|
+
export type BaseOverrides = Omit<TransactionRequest, "to" | "data">;
|
|
30
|
+
export type NonPayableOverrides = Omit<BaseOverrides, "value" | "blockTag" | "enableCcipRead">;
|
|
31
|
+
export type PayableOverrides = Omit<BaseOverrides, "blockTag" | "enableCcipRead">;
|
|
32
|
+
export type ViewOverrides = Omit<TransactionRequest, "to" | "data">;
|
|
33
|
+
export type Overrides<S extends StateMutability> = S extends "nonpayable" ? NonPayableOverrides : S extends "payable" ? PayableOverrides : ViewOverrides;
|
|
34
|
+
export type PostfixOverrides<A extends Array<any>, S extends StateMutability> = A | [...A, Overrides<S>];
|
|
35
|
+
export type ContractMethodArgs<A extends Array<any>, S extends StateMutability> = PostfixOverrides<{
|
|
36
|
+
[I in keyof A]-?: A[I] | Typed;
|
|
37
|
+
}, S>;
|
|
38
|
+
export type DefaultReturnType<R> = R extends Array<any> ? R[0] : R;
|
|
39
|
+
export interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S extends StateMutability = "payable"> {
|
|
40
|
+
(...args: ContractMethodArgs<A, S>): S extends "view" ? Promise<DefaultReturnType<R>> : Promise<ContractTransactionResponse>;
|
|
41
|
+
name: string;
|
|
42
|
+
fragment: FunctionFragment;
|
|
43
|
+
getFragment(...args: ContractMethodArgs<A, S>): FunctionFragment;
|
|
44
|
+
populateTransaction(...args: ContractMethodArgs<A, S>): Promise<ContractTransaction>;
|
|
45
|
+
staticCall(...args: ContractMethodArgs<A, S>): Promise<DefaultReturnType<R>>;
|
|
46
|
+
send(...args: ContractMethodArgs<A, S>): Promise<ContractTransactionResponse>;
|
|
47
|
+
estimateGas(...args: ContractMethodArgs<A, S>): Promise<bigint>;
|
|
48
|
+
staticCallResult(...args: ContractMethodArgs<A, S>): Promise<R>;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getRandomTokenId(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,486 @@
|
|
|
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 ImmutableERC721BaseInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "MINTER_ROLE" | "approve" | "balanceOf" | "baseURI" | "burn" | "contractURI" | "getAdmins" | "getApproved" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "grantMinterRole" | "grantRole" | "hasRole" | "isApprovedForAll" | "mint" | "name" | "ownerOf" | "renounceRole" | "revokeMinterRole" | "revokeRole" | "royaltyAllowlist" | "royaltyInfo" | "safeTransferFrom(address,address,uint256)" | "safeTransferFrom(address,address,uint256,bytes)" | "setApprovalForAll" | "setBaseURI" | "setContractURI" | "setRoyaltyAllowlistRegistry" | "supportsInterface" | "symbol" | "tokenByIndex" | "tokenOfOwnerByIndex" | "tokenURI" | "totalSupply" | "transferFrom"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "Approval" | "ApprovalForAll" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "RoyaltytAllowlistRegistryUpdated" | "Transfer"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "MINTER_ROLE", values?: undefined): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "baseURI", values?: undefined): string;
|
|
11
|
+
encodeFunctionData(functionFragment: "burn", values: [BigNumberish]): string;
|
|
12
|
+
encodeFunctionData(functionFragment: "contractURI", values?: undefined): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "getAdmins", values?: undefined): string;
|
|
14
|
+
encodeFunctionData(functionFragment: "getApproved", values: [BigNumberish]): string;
|
|
15
|
+
encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
|
|
16
|
+
encodeFunctionData(functionFragment: "getRoleMember", values: [BytesLike, BigNumberish]): string;
|
|
17
|
+
encodeFunctionData(functionFragment: "getRoleMemberCount", values: [BytesLike]): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "grantMinterRole", values: [AddressLike]): string;
|
|
19
|
+
encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
|
|
20
|
+
encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
|
|
21
|
+
encodeFunctionData(functionFragment: "isApprovedForAll", values: [AddressLike, AddressLike]): string;
|
|
22
|
+
encodeFunctionData(functionFragment: "mint", values: [AddressLike, BigNumberish]): string;
|
|
23
|
+
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
|
24
|
+
encodeFunctionData(functionFragment: "ownerOf", values: [BigNumberish]): string;
|
|
25
|
+
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
|
26
|
+
encodeFunctionData(functionFragment: "revokeMinterRole", values: [AddressLike]): string;
|
|
27
|
+
encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
|
|
28
|
+
encodeFunctionData(functionFragment: "royaltyAllowlist", values?: undefined): string;
|
|
29
|
+
encodeFunctionData(functionFragment: "royaltyInfo", values: [BigNumberish, BigNumberish]): string;
|
|
30
|
+
encodeFunctionData(functionFragment: "safeTransferFrom(address,address,uint256)", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
31
|
+
encodeFunctionData(functionFragment: "safeTransferFrom(address,address,uint256,bytes)", values: [AddressLike, AddressLike, BigNumberish, BytesLike]): string;
|
|
32
|
+
encodeFunctionData(functionFragment: "setApprovalForAll", values: [AddressLike, boolean]): string;
|
|
33
|
+
encodeFunctionData(functionFragment: "setBaseURI", values: [string]): string;
|
|
34
|
+
encodeFunctionData(functionFragment: "setContractURI", values: [string]): string;
|
|
35
|
+
encodeFunctionData(functionFragment: "setRoyaltyAllowlistRegistry", values: [AddressLike]): string;
|
|
36
|
+
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
37
|
+
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
|
|
38
|
+
encodeFunctionData(functionFragment: "tokenByIndex", values: [BigNumberish]): string;
|
|
39
|
+
encodeFunctionData(functionFragment: "tokenOfOwnerByIndex", values: [AddressLike, BigNumberish]): string;
|
|
40
|
+
encodeFunctionData(functionFragment: "tokenURI", values: [BigNumberish]): string;
|
|
41
|
+
encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
|
|
42
|
+
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
43
|
+
decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result;
|
|
44
|
+
decodeFunctionResult(functionFragment: "MINTER_ROLE", data: BytesLike): Result;
|
|
45
|
+
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
46
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
47
|
+
decodeFunctionResult(functionFragment: "baseURI", data: BytesLike): Result;
|
|
48
|
+
decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result;
|
|
49
|
+
decodeFunctionResult(functionFragment: "contractURI", data: BytesLike): Result;
|
|
50
|
+
decodeFunctionResult(functionFragment: "getAdmins", data: BytesLike): Result;
|
|
51
|
+
decodeFunctionResult(functionFragment: "getApproved", data: BytesLike): Result;
|
|
52
|
+
decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result;
|
|
53
|
+
decodeFunctionResult(functionFragment: "getRoleMember", data: BytesLike): Result;
|
|
54
|
+
decodeFunctionResult(functionFragment: "getRoleMemberCount", data: BytesLike): Result;
|
|
55
|
+
decodeFunctionResult(functionFragment: "grantMinterRole", data: BytesLike): Result;
|
|
56
|
+
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
|
|
57
|
+
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
|
|
58
|
+
decodeFunctionResult(functionFragment: "isApprovedForAll", data: BytesLike): Result;
|
|
59
|
+
decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
|
|
60
|
+
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
|
61
|
+
decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result;
|
|
62
|
+
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
|
|
63
|
+
decodeFunctionResult(functionFragment: "revokeMinterRole", data: BytesLike): Result;
|
|
64
|
+
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
|
|
65
|
+
decodeFunctionResult(functionFragment: "royaltyAllowlist", data: BytesLike): Result;
|
|
66
|
+
decodeFunctionResult(functionFragment: "royaltyInfo", data: BytesLike): Result;
|
|
67
|
+
decodeFunctionResult(functionFragment: "safeTransferFrom(address,address,uint256)", data: BytesLike): Result;
|
|
68
|
+
decodeFunctionResult(functionFragment: "safeTransferFrom(address,address,uint256,bytes)", data: BytesLike): Result;
|
|
69
|
+
decodeFunctionResult(functionFragment: "setApprovalForAll", data: BytesLike): Result;
|
|
70
|
+
decodeFunctionResult(functionFragment: "setBaseURI", data: BytesLike): Result;
|
|
71
|
+
decodeFunctionResult(functionFragment: "setContractURI", data: BytesLike): Result;
|
|
72
|
+
decodeFunctionResult(functionFragment: "setRoyaltyAllowlistRegistry", data: BytesLike): Result;
|
|
73
|
+
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
74
|
+
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
|
75
|
+
decodeFunctionResult(functionFragment: "tokenByIndex", data: BytesLike): Result;
|
|
76
|
+
decodeFunctionResult(functionFragment: "tokenOfOwnerByIndex", data: BytesLike): Result;
|
|
77
|
+
decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result;
|
|
78
|
+
decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
|
|
79
|
+
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
80
|
+
}
|
|
81
|
+
export declare namespace ApprovalEvent {
|
|
82
|
+
type InputTuple = [
|
|
83
|
+
owner: AddressLike,
|
|
84
|
+
approved: AddressLike,
|
|
85
|
+
tokenId: BigNumberish
|
|
86
|
+
];
|
|
87
|
+
type OutputTuple = [owner: string, approved: string, tokenId: bigint];
|
|
88
|
+
interface OutputObject {
|
|
89
|
+
owner: string;
|
|
90
|
+
approved: string;
|
|
91
|
+
tokenId: bigint;
|
|
92
|
+
}
|
|
93
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
94
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
95
|
+
type Log = TypedEventLog<Event>;
|
|
96
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
97
|
+
}
|
|
98
|
+
export declare namespace ApprovalForAllEvent {
|
|
99
|
+
type InputTuple = [
|
|
100
|
+
owner: AddressLike,
|
|
101
|
+
operator: AddressLike,
|
|
102
|
+
approved: boolean
|
|
103
|
+
];
|
|
104
|
+
type OutputTuple = [
|
|
105
|
+
owner: string,
|
|
106
|
+
operator: string,
|
|
107
|
+
approved: boolean
|
|
108
|
+
];
|
|
109
|
+
interface OutputObject {
|
|
110
|
+
owner: string;
|
|
111
|
+
operator: string;
|
|
112
|
+
approved: boolean;
|
|
113
|
+
}
|
|
114
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
115
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
116
|
+
type Log = TypedEventLog<Event>;
|
|
117
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
118
|
+
}
|
|
119
|
+
export declare namespace RoleAdminChangedEvent {
|
|
120
|
+
type InputTuple = [
|
|
121
|
+
role: BytesLike,
|
|
122
|
+
previousAdminRole: BytesLike,
|
|
123
|
+
newAdminRole: BytesLike
|
|
124
|
+
];
|
|
125
|
+
type OutputTuple = [
|
|
126
|
+
role: string,
|
|
127
|
+
previousAdminRole: string,
|
|
128
|
+
newAdminRole: string
|
|
129
|
+
];
|
|
130
|
+
interface OutputObject {
|
|
131
|
+
role: string;
|
|
132
|
+
previousAdminRole: string;
|
|
133
|
+
newAdminRole: string;
|
|
134
|
+
}
|
|
135
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
136
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
137
|
+
type Log = TypedEventLog<Event>;
|
|
138
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
139
|
+
}
|
|
140
|
+
export declare namespace RoleGrantedEvent {
|
|
141
|
+
type InputTuple = [
|
|
142
|
+
role: BytesLike,
|
|
143
|
+
account: AddressLike,
|
|
144
|
+
sender: AddressLike
|
|
145
|
+
];
|
|
146
|
+
type OutputTuple = [role: string, account: string, sender: string];
|
|
147
|
+
interface OutputObject {
|
|
148
|
+
role: string;
|
|
149
|
+
account: string;
|
|
150
|
+
sender: string;
|
|
151
|
+
}
|
|
152
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
153
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
154
|
+
type Log = TypedEventLog<Event>;
|
|
155
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
156
|
+
}
|
|
157
|
+
export declare namespace RoleRevokedEvent {
|
|
158
|
+
type InputTuple = [
|
|
159
|
+
role: BytesLike,
|
|
160
|
+
account: AddressLike,
|
|
161
|
+
sender: AddressLike
|
|
162
|
+
];
|
|
163
|
+
type OutputTuple = [role: string, account: string, sender: string];
|
|
164
|
+
interface OutputObject {
|
|
165
|
+
role: string;
|
|
166
|
+
account: string;
|
|
167
|
+
sender: string;
|
|
168
|
+
}
|
|
169
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
170
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
171
|
+
type Log = TypedEventLog<Event>;
|
|
172
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
173
|
+
}
|
|
174
|
+
export declare namespace RoyaltytAllowlistRegistryUpdatedEvent {
|
|
175
|
+
type InputTuple = [oldRegistry: AddressLike, newRegistry: AddressLike];
|
|
176
|
+
type OutputTuple = [oldRegistry: string, newRegistry: string];
|
|
177
|
+
interface OutputObject {
|
|
178
|
+
oldRegistry: string;
|
|
179
|
+
newRegistry: string;
|
|
180
|
+
}
|
|
181
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
182
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
183
|
+
type Log = TypedEventLog<Event>;
|
|
184
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
185
|
+
}
|
|
186
|
+
export declare namespace TransferEvent {
|
|
187
|
+
type InputTuple = [
|
|
188
|
+
from: AddressLike,
|
|
189
|
+
to: AddressLike,
|
|
190
|
+
tokenId: BigNumberish
|
|
191
|
+
];
|
|
192
|
+
type OutputTuple = [from: string, to: string, tokenId: bigint];
|
|
193
|
+
interface OutputObject {
|
|
194
|
+
from: string;
|
|
195
|
+
to: string;
|
|
196
|
+
tokenId: bigint;
|
|
197
|
+
}
|
|
198
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
199
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
200
|
+
type Log = TypedEventLog<Event>;
|
|
201
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
202
|
+
}
|
|
203
|
+
export interface ImmutableERC721Base extends BaseContract {
|
|
204
|
+
connect(runner?: ContractRunner | null): ImmutableERC721Base;
|
|
205
|
+
waitForDeployment(): Promise<this>;
|
|
206
|
+
interface: ImmutableERC721BaseInterface;
|
|
207
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
208
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
209
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
210
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
211
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
212
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
213
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
214
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
215
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
216
|
+
DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
|
217
|
+
MINTER_ROLE: TypedContractMethod<[], [string], "view">;
|
|
218
|
+
approve: TypedContractMethod<[
|
|
219
|
+
to: AddressLike,
|
|
220
|
+
tokenId: BigNumberish
|
|
221
|
+
], [
|
|
222
|
+
void
|
|
223
|
+
], "nonpayable">;
|
|
224
|
+
balanceOf: TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
225
|
+
baseURI: TypedContractMethod<[], [string], "view">;
|
|
226
|
+
burn: TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">;
|
|
227
|
+
contractURI: TypedContractMethod<[], [string], "view">;
|
|
228
|
+
getAdmins: TypedContractMethod<[], [string[]], "view">;
|
|
229
|
+
getApproved: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
230
|
+
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
231
|
+
getRoleMember: TypedContractMethod<[
|
|
232
|
+
role: BytesLike,
|
|
233
|
+
index: BigNumberish
|
|
234
|
+
], [
|
|
235
|
+
string
|
|
236
|
+
], "view">;
|
|
237
|
+
getRoleMemberCount: TypedContractMethod<[role: BytesLike], [bigint], "view">;
|
|
238
|
+
grantMinterRole: TypedContractMethod<[
|
|
239
|
+
user: AddressLike
|
|
240
|
+
], [
|
|
241
|
+
void
|
|
242
|
+
], "nonpayable">;
|
|
243
|
+
grantRole: TypedContractMethod<[
|
|
244
|
+
role: BytesLike,
|
|
245
|
+
account: AddressLike
|
|
246
|
+
], [
|
|
247
|
+
void
|
|
248
|
+
], "nonpayable">;
|
|
249
|
+
hasRole: TypedContractMethod<[
|
|
250
|
+
role: BytesLike,
|
|
251
|
+
account: AddressLike
|
|
252
|
+
], [
|
|
253
|
+
boolean
|
|
254
|
+
], "view">;
|
|
255
|
+
isApprovedForAll: TypedContractMethod<[
|
|
256
|
+
owner: AddressLike,
|
|
257
|
+
operator: AddressLike
|
|
258
|
+
], [
|
|
259
|
+
boolean
|
|
260
|
+
], "view">;
|
|
261
|
+
mint: TypedContractMethod<[
|
|
262
|
+
to: AddressLike,
|
|
263
|
+
amount: BigNumberish
|
|
264
|
+
], [
|
|
265
|
+
void
|
|
266
|
+
], "nonpayable">;
|
|
267
|
+
name: TypedContractMethod<[], [string], "view">;
|
|
268
|
+
ownerOf: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
269
|
+
renounceRole: TypedContractMethod<[
|
|
270
|
+
role: BytesLike,
|
|
271
|
+
account: AddressLike
|
|
272
|
+
], [
|
|
273
|
+
void
|
|
274
|
+
], "nonpayable">;
|
|
275
|
+
revokeMinterRole: TypedContractMethod<[
|
|
276
|
+
user: AddressLike
|
|
277
|
+
], [
|
|
278
|
+
void
|
|
279
|
+
], "nonpayable">;
|
|
280
|
+
revokeRole: TypedContractMethod<[
|
|
281
|
+
role: BytesLike,
|
|
282
|
+
account: AddressLike
|
|
283
|
+
], [
|
|
284
|
+
void
|
|
285
|
+
], "nonpayable">;
|
|
286
|
+
royaltyAllowlist: TypedContractMethod<[], [string], "view">;
|
|
287
|
+
royaltyInfo: TypedContractMethod<[
|
|
288
|
+
_tokenId: BigNumberish,
|
|
289
|
+
_salePrice: BigNumberish
|
|
290
|
+
], [
|
|
291
|
+
[string, bigint]
|
|
292
|
+
], "view">;
|
|
293
|
+
"safeTransferFrom(address,address,uint256)": TypedContractMethod<[
|
|
294
|
+
from: AddressLike,
|
|
295
|
+
to: AddressLike,
|
|
296
|
+
tokenId: BigNumberish
|
|
297
|
+
], [
|
|
298
|
+
void
|
|
299
|
+
], "nonpayable">;
|
|
300
|
+
"safeTransferFrom(address,address,uint256,bytes)": TypedContractMethod<[
|
|
301
|
+
from: AddressLike,
|
|
302
|
+
to: AddressLike,
|
|
303
|
+
tokenId: BigNumberish,
|
|
304
|
+
data: BytesLike
|
|
305
|
+
], [
|
|
306
|
+
void
|
|
307
|
+
], "nonpayable">;
|
|
308
|
+
setApprovalForAll: TypedContractMethod<[
|
|
309
|
+
operator: AddressLike,
|
|
310
|
+
approved: boolean
|
|
311
|
+
], [
|
|
312
|
+
void
|
|
313
|
+
], "nonpayable">;
|
|
314
|
+
setBaseURI: TypedContractMethod<[baseURI_: string], [void], "nonpayable">;
|
|
315
|
+
setContractURI: TypedContractMethod<[
|
|
316
|
+
_contractURI: string
|
|
317
|
+
], [
|
|
318
|
+
void
|
|
319
|
+
], "nonpayable">;
|
|
320
|
+
setRoyaltyAllowlistRegistry: TypedContractMethod<[
|
|
321
|
+
_royaltyAllowlist: AddressLike
|
|
322
|
+
], [
|
|
323
|
+
void
|
|
324
|
+
], "nonpayable">;
|
|
325
|
+
supportsInterface: TypedContractMethod<[
|
|
326
|
+
interfaceId: BytesLike
|
|
327
|
+
], [
|
|
328
|
+
boolean
|
|
329
|
+
], "view">;
|
|
330
|
+
symbol: TypedContractMethod<[], [string], "view">;
|
|
331
|
+
tokenByIndex: TypedContractMethod<[index: BigNumberish], [bigint], "view">;
|
|
332
|
+
tokenOfOwnerByIndex: TypedContractMethod<[
|
|
333
|
+
owner: AddressLike,
|
|
334
|
+
index: BigNumberish
|
|
335
|
+
], [
|
|
336
|
+
bigint
|
|
337
|
+
], "view">;
|
|
338
|
+
tokenURI: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
339
|
+
totalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
340
|
+
transferFrom: TypedContractMethod<[
|
|
341
|
+
from: AddressLike,
|
|
342
|
+
to: AddressLike,
|
|
343
|
+
tokenId: BigNumberish
|
|
344
|
+
], [
|
|
345
|
+
void
|
|
346
|
+
], "nonpayable">;
|
|
347
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
348
|
+
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
349
|
+
getFunction(nameOrSignature: "MINTER_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
350
|
+
getFunction(nameOrSignature: "approve"): TypedContractMethod<[
|
|
351
|
+
to: AddressLike,
|
|
352
|
+
tokenId: BigNumberish
|
|
353
|
+
], [
|
|
354
|
+
void
|
|
355
|
+
], "nonpayable">;
|
|
356
|
+
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
357
|
+
getFunction(nameOrSignature: "baseURI"): TypedContractMethod<[], [string], "view">;
|
|
358
|
+
getFunction(nameOrSignature: "burn"): TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">;
|
|
359
|
+
getFunction(nameOrSignature: "contractURI"): TypedContractMethod<[], [string], "view">;
|
|
360
|
+
getFunction(nameOrSignature: "getAdmins"): TypedContractMethod<[], [string[]], "view">;
|
|
361
|
+
getFunction(nameOrSignature: "getApproved"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
362
|
+
getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
363
|
+
getFunction(nameOrSignature: "getRoleMember"): TypedContractMethod<[
|
|
364
|
+
role: BytesLike,
|
|
365
|
+
index: BigNumberish
|
|
366
|
+
], [
|
|
367
|
+
string
|
|
368
|
+
], "view">;
|
|
369
|
+
getFunction(nameOrSignature: "getRoleMemberCount"): TypedContractMethod<[role: BytesLike], [bigint], "view">;
|
|
370
|
+
getFunction(nameOrSignature: "grantMinterRole"): TypedContractMethod<[user: AddressLike], [void], "nonpayable">;
|
|
371
|
+
getFunction(nameOrSignature: "grantRole"): TypedContractMethod<[
|
|
372
|
+
role: BytesLike,
|
|
373
|
+
account: AddressLike
|
|
374
|
+
], [
|
|
375
|
+
void
|
|
376
|
+
], "nonpayable">;
|
|
377
|
+
getFunction(nameOrSignature: "hasRole"): TypedContractMethod<[
|
|
378
|
+
role: BytesLike,
|
|
379
|
+
account: AddressLike
|
|
380
|
+
], [
|
|
381
|
+
boolean
|
|
382
|
+
], "view">;
|
|
383
|
+
getFunction(nameOrSignature: "isApprovedForAll"): TypedContractMethod<[
|
|
384
|
+
owner: AddressLike,
|
|
385
|
+
operator: AddressLike
|
|
386
|
+
], [
|
|
387
|
+
boolean
|
|
388
|
+
], "view">;
|
|
389
|
+
getFunction(nameOrSignature: "mint"): TypedContractMethod<[
|
|
390
|
+
to: AddressLike,
|
|
391
|
+
amount: BigNumberish
|
|
392
|
+
], [
|
|
393
|
+
void
|
|
394
|
+
], "nonpayable">;
|
|
395
|
+
getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
|
|
396
|
+
getFunction(nameOrSignature: "ownerOf"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
397
|
+
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
|
398
|
+
role: BytesLike,
|
|
399
|
+
account: AddressLike
|
|
400
|
+
], [
|
|
401
|
+
void
|
|
402
|
+
], "nonpayable">;
|
|
403
|
+
getFunction(nameOrSignature: "revokeMinterRole"): TypedContractMethod<[user: AddressLike], [void], "nonpayable">;
|
|
404
|
+
getFunction(nameOrSignature: "revokeRole"): TypedContractMethod<[
|
|
405
|
+
role: BytesLike,
|
|
406
|
+
account: AddressLike
|
|
407
|
+
], [
|
|
408
|
+
void
|
|
409
|
+
], "nonpayable">;
|
|
410
|
+
getFunction(nameOrSignature: "royaltyAllowlist"): TypedContractMethod<[], [string], "view">;
|
|
411
|
+
getFunction(nameOrSignature: "royaltyInfo"): TypedContractMethod<[
|
|
412
|
+
_tokenId: BigNumberish,
|
|
413
|
+
_salePrice: BigNumberish
|
|
414
|
+
], [
|
|
415
|
+
[string, bigint]
|
|
416
|
+
], "view">;
|
|
417
|
+
getFunction(nameOrSignature: "safeTransferFrom(address,address,uint256)"): TypedContractMethod<[
|
|
418
|
+
from: AddressLike,
|
|
419
|
+
to: AddressLike,
|
|
420
|
+
tokenId: BigNumberish
|
|
421
|
+
], [
|
|
422
|
+
void
|
|
423
|
+
], "nonpayable">;
|
|
424
|
+
getFunction(nameOrSignature: "safeTransferFrom(address,address,uint256,bytes)"): TypedContractMethod<[
|
|
425
|
+
from: AddressLike,
|
|
426
|
+
to: AddressLike,
|
|
427
|
+
tokenId: BigNumberish,
|
|
428
|
+
data: BytesLike
|
|
429
|
+
], [
|
|
430
|
+
void
|
|
431
|
+
], "nonpayable">;
|
|
432
|
+
getFunction(nameOrSignature: "setApprovalForAll"): TypedContractMethod<[
|
|
433
|
+
operator: AddressLike,
|
|
434
|
+
approved: boolean
|
|
435
|
+
], [
|
|
436
|
+
void
|
|
437
|
+
], "nonpayable">;
|
|
438
|
+
getFunction(nameOrSignature: "setBaseURI"): TypedContractMethod<[baseURI_: string], [void], "nonpayable">;
|
|
439
|
+
getFunction(nameOrSignature: "setContractURI"): TypedContractMethod<[_contractURI: string], [void], "nonpayable">;
|
|
440
|
+
getFunction(nameOrSignature: "setRoyaltyAllowlistRegistry"): TypedContractMethod<[
|
|
441
|
+
_royaltyAllowlist: AddressLike
|
|
442
|
+
], [
|
|
443
|
+
void
|
|
444
|
+
], "nonpayable">;
|
|
445
|
+
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
446
|
+
getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">;
|
|
447
|
+
getFunction(nameOrSignature: "tokenByIndex"): TypedContractMethod<[index: BigNumberish], [bigint], "view">;
|
|
448
|
+
getFunction(nameOrSignature: "tokenOfOwnerByIndex"): TypedContractMethod<[
|
|
449
|
+
owner: AddressLike,
|
|
450
|
+
index: BigNumberish
|
|
451
|
+
], [
|
|
452
|
+
bigint
|
|
453
|
+
], "view">;
|
|
454
|
+
getFunction(nameOrSignature: "tokenURI"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
455
|
+
getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
456
|
+
getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
|
|
457
|
+
from: AddressLike,
|
|
458
|
+
to: AddressLike,
|
|
459
|
+
tokenId: BigNumberish
|
|
460
|
+
], [
|
|
461
|
+
void
|
|
462
|
+
], "nonpayable">;
|
|
463
|
+
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
464
|
+
getEvent(key: "ApprovalForAll"): TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
465
|
+
getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
466
|
+
getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
467
|
+
getEvent(key: "RoleRevoked"): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
468
|
+
getEvent(key: "RoyaltytAllowlistRegistryUpdated"): TypedContractEvent<RoyaltytAllowlistRegistryUpdatedEvent.InputTuple, RoyaltytAllowlistRegistryUpdatedEvent.OutputTuple, RoyaltytAllowlistRegistryUpdatedEvent.OutputObject>;
|
|
469
|
+
getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
470
|
+
filters: {
|
|
471
|
+
"Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
472
|
+
Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
473
|
+
"ApprovalForAll(address,address,bool)": TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
474
|
+
ApprovalForAll: TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
475
|
+
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
476
|
+
RoleAdminChanged: TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
477
|
+
"RoleGranted(bytes32,address,address)": TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
478
|
+
RoleGranted: TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
479
|
+
"RoleRevoked(bytes32,address,address)": TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
480
|
+
RoleRevoked: TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
481
|
+
"RoyaltytAllowlistRegistryUpdated(address,address)": TypedContractEvent<RoyaltytAllowlistRegistryUpdatedEvent.InputTuple, RoyaltytAllowlistRegistryUpdatedEvent.OutputTuple, RoyaltytAllowlistRegistryUpdatedEvent.OutputObject>;
|
|
482
|
+
RoyaltytAllowlistRegistryUpdated: TypedContractEvent<RoyaltytAllowlistRegistryUpdatedEvent.InputTuple, RoyaltytAllowlistRegistryUpdatedEvent.OutputTuple, RoyaltytAllowlistRegistryUpdatedEvent.OutputObject>;
|
|
483
|
+
"Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
484
|
+
Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
485
|
+
};
|
|
486
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { FunctionFragment, Typed, EventFragment, ContractTransaction, ContractTransactionResponse, DeferredTopicFilter, EventLog, TransactionRequest, LogDescription } from "ethers";
|
|
2
|
+
export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> extends DeferredTopicFilter {
|
|
3
|
+
}
|
|
4
|
+
export interface TypedContractEvent<InputTuple extends Array<any> = any, OutputTuple extends Array<any> = any, OutputObject = any> {
|
|
5
|
+
(...args: Partial<InputTuple>): TypedDeferredTopicFilter<TypedContractEvent<InputTuple, OutputTuple, OutputObject>>;
|
|
6
|
+
name: string;
|
|
7
|
+
fragment: EventFragment;
|
|
8
|
+
getFragment(...args: Partial<InputTuple>): EventFragment;
|
|
9
|
+
}
|
|
10
|
+
type __TypechainAOutputTuple<T> = T extends TypedContractEvent<infer _U, infer W> ? W : never;
|
|
11
|
+
type __TypechainOutputObject<T> = T extends TypedContractEvent<infer _U, infer _W, infer V> ? V : never;
|
|
12
|
+
export interface TypedEventLog<TCEvent extends TypedContractEvent> extends Omit<EventLog, "args"> {
|
|
13
|
+
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
|
|
14
|
+
}
|
|
15
|
+
export interface TypedLogDescription<TCEvent extends TypedContractEvent> extends Omit<LogDescription, "args"> {
|
|
16
|
+
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
|
|
17
|
+
}
|
|
18
|
+
export type TypedListener<TCEvent extends TypedContractEvent> = (...listenerArg: [
|
|
19
|
+
...__TypechainAOutputTuple<TCEvent>,
|
|
20
|
+
TypedEventLog<TCEvent>,
|
|
21
|
+
...undefined[]
|
|
22
|
+
]) => void;
|
|
23
|
+
export type MinEthersFactory<C, ARGS> = {
|
|
24
|
+
deploy(...a: ARGS[]): Promise<C>;
|
|
25
|
+
};
|
|
26
|
+
export type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never;
|
|
27
|
+
export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never;
|
|
28
|
+
export type StateMutability = "nonpayable" | "payable" | "view";
|
|
29
|
+
export type BaseOverrides = Omit<TransactionRequest, "to" | "data">;
|
|
30
|
+
export type NonPayableOverrides = Omit<BaseOverrides, "value" | "blockTag" | "enableCcipRead">;
|
|
31
|
+
export type PayableOverrides = Omit<BaseOverrides, "blockTag" | "enableCcipRead">;
|
|
32
|
+
export type ViewOverrides = Omit<TransactionRequest, "to" | "data">;
|
|
33
|
+
export type Overrides<S extends StateMutability> = S extends "nonpayable" ? NonPayableOverrides : S extends "payable" ? PayableOverrides : ViewOverrides;
|
|
34
|
+
export type PostfixOverrides<A extends Array<any>, S extends StateMutability> = A | [...A, Overrides<S>];
|
|
35
|
+
export type ContractMethodArgs<A extends Array<any>, S extends StateMutability> = PostfixOverrides<{
|
|
36
|
+
[I in keyof A]-?: A[I] | Typed;
|
|
37
|
+
}, S>;
|
|
38
|
+
export type DefaultReturnType<R> = R extends Array<any> ? R[0] : R;
|
|
39
|
+
export interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S extends StateMutability = "payable"> {
|
|
40
|
+
(...args: ContractMethodArgs<A, S>): S extends "view" ? Promise<DefaultReturnType<R>> : Promise<ContractTransactionResponse>;
|
|
41
|
+
name: string;
|
|
42
|
+
fragment: FunctionFragment;
|
|
43
|
+
getFragment(...args: ContractMethodArgs<A, S>): FunctionFragment;
|
|
44
|
+
populateTransaction(...args: ContractMethodArgs<A, S>): Promise<ContractTransaction>;
|
|
45
|
+
staticCall(...args: ContractMethodArgs<A, "view">): Promise<DefaultReturnType<R>>;
|
|
46
|
+
send(...args: ContractMethodArgs<A, S>): Promise<ContractTransactionResponse>;
|
|
47
|
+
estimateGas(...args: ContractMethodArgs<A, S>): Promise<bigint>;
|
|
48
|
+
staticCallResult(...args: ContractMethodArgs<A, "view">): Promise<R>;
|
|
49
|
+
}
|
|
50
|
+
export {};
|