anchor-sdk 0.1.36
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 +21 -0
- package/README.md +735 -0
- package/dist/AnchorApiClient.d.ts +203 -0
- package/dist/AnchorApiClient.js +279 -0
- package/dist/AnchorApiClientV2.d.ts +270 -0
- package/dist/AnchorApiClientV2.js +424 -0
- package/dist/AnchorERC1155Client.d.ts +85 -0
- package/dist/AnchorERC1155Client.js +280 -0
- package/dist/AnchorPayClient.d.ts +79 -0
- package/dist/AnchorPayClient.js +217 -0
- package/dist/abi/AnchorERC1155.d.ts +1359 -0
- package/dist/abi/AnchorERC1155.js +1122 -0
- package/dist/abi/AnchorPay.json +452 -0
- package/dist/api/AnchorApiHttpClient.d.ts +210 -0
- package/dist/api/AnchorApiHttpClient.js +411 -0
- package/dist/api/types.d.ts +764 -0
- package/dist/api/types.js +2 -0
- package/dist/constants.d.ts +49 -0
- package/dist/constants.js +221 -0
- package/dist/generated/Api.d.ts +1083 -0
- package/dist/generated/Api.js +571 -0
- package/dist/index.d.ts +341 -0
- package/dist/index.js +1377 -0
- package/dist/react/AnchorReactSDK.d.ts +59 -0
- package/dist/react/AnchorReactSDK.js +181 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +8 -0
- package/dist/typechain/AnchorERC1155.d.ts +999 -0
- package/dist/typechain/AnchorERC1155.js +2 -0
- package/dist/typechain/AnchorPay.d.ts +242 -0
- package/dist/typechain/AnchorPay.js +2 -0
- package/dist/typechain/common.d.ts +50 -0
- package/dist/typechain/common.js +2 -0
- package/dist/typechain/factories/AnchorERC1155__factory.d.ts +1365 -0
- package/dist/typechain/factories/AnchorERC1155__factory.js +1766 -0
- package/dist/typechain/factories/AnchorPay__factory.d.ts +358 -0
- package/dist/typechain/factories/AnchorPay__factory.js +469 -0
- package/dist/typechain/factories/index.d.ts +2 -0
- package/dist/typechain/factories/index.js +10 -0
- package/dist/typechain/index.d.ts +5 -0
- package/dist/typechain/index.js +41 -0
- package/dist/types.d.ts +109 -0
- package/dist/types.js +2 -0
- package/package.json +87 -0
|
@@ -0,0 +1,999 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common";
|
|
3
|
+
export declare namespace AnchorDataTypes {
|
|
4
|
+
type MintRequestStruct = {
|
|
5
|
+
to: AddressLike;
|
|
6
|
+
tokenId: BigNumberish;
|
|
7
|
+
quantity: BigNumberish;
|
|
8
|
+
price: BigNumberish;
|
|
9
|
+
currency: AddressLike;
|
|
10
|
+
validityStartTimestamp: BigNumberish;
|
|
11
|
+
validityEndTimestamp: BigNumberish;
|
|
12
|
+
uid: BytesLike;
|
|
13
|
+
chainId: BigNumberish;
|
|
14
|
+
projectHandle: BytesLike;
|
|
15
|
+
};
|
|
16
|
+
type MintRequestStructOutput = [
|
|
17
|
+
to: string,
|
|
18
|
+
tokenId: bigint,
|
|
19
|
+
quantity: bigint,
|
|
20
|
+
price: bigint,
|
|
21
|
+
currency: string,
|
|
22
|
+
validityStartTimestamp: bigint,
|
|
23
|
+
validityEndTimestamp: bigint,
|
|
24
|
+
uid: string,
|
|
25
|
+
chainId: bigint,
|
|
26
|
+
projectHandle: string
|
|
27
|
+
] & {
|
|
28
|
+
to: string;
|
|
29
|
+
tokenId: bigint;
|
|
30
|
+
quantity: bigint;
|
|
31
|
+
price: bigint;
|
|
32
|
+
currency: string;
|
|
33
|
+
validityStartTimestamp: bigint;
|
|
34
|
+
validityEndTimestamp: bigint;
|
|
35
|
+
uid: string;
|
|
36
|
+
chainId: bigint;
|
|
37
|
+
projectHandle: string;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface AnchorERC1155Interface extends Interface {
|
|
41
|
+
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "UPGRADE_INTERFACE_VERSION" | "badgeToProject" | "balanceOf" | "balanceOfBatch" | "burnBatch" | "calculateProjectTokenId" | "createBatch(bytes32,address,uint256[],string[],uint256[])" | "createBatch(address,uint256[],string[],uint256[])" | "eip712Domain" | "exists" | "getRoleAdmin" | "grantAdminRole" | "grantProjectOperator" | "grantRole" | "hasRole" | "initialize" | "isApprovedForAll" | "isProjectOperator" | "mintWithSignature" | "multicall" | "name" | "nextTokenIdToMint" | "owner" | "projectTotalSupply" | "proxiableUUID" | "renounceRole" | "revokeProjectOperator" | "revokeRole" | "safeBatchTransferFrom" | "safeTransferFrom" | "setApprovalForAll" | "setMaxSupply" | "setRegistry" | "setURIs" | "setup" | "supportsInterface" | "symbol" | "tokenReceived" | "totalSupply()" | "totalSupply(uint256)" | "upgradeTo" | "upgradeToAndCall" | "uri" | "version"): FunctionFragment;
|
|
42
|
+
getEvent(nameOrSignatureOrTopic: "AnchorInitialized" | "ApprovalForAll" | "BatchBurned" | "BatchCreated" | "BatchURI" | "EIP712DomainChanged" | "Initialized" | "MaxSupplyUpdated" | "Minted" | "ProjectOperatorGranted" | "ProjectOperatorRevoked" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "TransferBatch" | "TransferSingle" | "URI" | "Upgraded"): EventFragment;
|
|
43
|
+
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
44
|
+
encodeFunctionData(functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined): string;
|
|
45
|
+
encodeFunctionData(functionFragment: "badgeToProject", values: [BigNumberish]): string;
|
|
46
|
+
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike, BigNumberish]): string;
|
|
47
|
+
encodeFunctionData(functionFragment: "balanceOfBatch", values: [AddressLike[], BigNumberish[]]): string;
|
|
48
|
+
encodeFunctionData(functionFragment: "burnBatch", values: [AddressLike, BigNumberish[], BigNumberish[]]): string;
|
|
49
|
+
encodeFunctionData(functionFragment: "calculateProjectTokenId", values: [BytesLike, BigNumberish]): string;
|
|
50
|
+
encodeFunctionData(functionFragment: "createBatch(bytes32,address,uint256[],string[],uint256[])", values: [BytesLike, AddressLike, BigNumberish[], string[], BigNumberish[]]): string;
|
|
51
|
+
encodeFunctionData(functionFragment: "createBatch(address,uint256[],string[],uint256[])", values: [AddressLike, BigNumberish[], string[], BigNumberish[]]): string;
|
|
52
|
+
encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
|
|
53
|
+
encodeFunctionData(functionFragment: "exists", values: [BigNumberish]): string;
|
|
54
|
+
encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
|
|
55
|
+
encodeFunctionData(functionFragment: "grantAdminRole", values: [AddressLike]): string;
|
|
56
|
+
encodeFunctionData(functionFragment: "grantProjectOperator", values: [BytesLike, AddressLike]): string;
|
|
57
|
+
encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
|
|
58
|
+
encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
|
|
59
|
+
encodeFunctionData(functionFragment: "initialize", values: [AddressLike, string, string, string, string]): string;
|
|
60
|
+
encodeFunctionData(functionFragment: "isApprovedForAll", values: [AddressLike, AddressLike]): string;
|
|
61
|
+
encodeFunctionData(functionFragment: "isProjectOperator", values: [BytesLike, AddressLike]): string;
|
|
62
|
+
encodeFunctionData(functionFragment: "mintWithSignature", values: [AnchorDataTypes.MintRequestStruct, BytesLike]): string;
|
|
63
|
+
encodeFunctionData(functionFragment: "multicall", values: [BytesLike[]]): string;
|
|
64
|
+
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
|
65
|
+
encodeFunctionData(functionFragment: "nextTokenIdToMint", values?: undefined): string;
|
|
66
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
67
|
+
encodeFunctionData(functionFragment: "projectTotalSupply", values: [BytesLike]): string;
|
|
68
|
+
encodeFunctionData(functionFragment: "proxiableUUID", values?: undefined): string;
|
|
69
|
+
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
|
70
|
+
encodeFunctionData(functionFragment: "revokeProjectOperator", values: [BytesLike, AddressLike]): string;
|
|
71
|
+
encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
|
|
72
|
+
encodeFunctionData(functionFragment: "safeBatchTransferFrom", values: [
|
|
73
|
+
AddressLike,
|
|
74
|
+
AddressLike,
|
|
75
|
+
BigNumberish[],
|
|
76
|
+
BigNumberish[],
|
|
77
|
+
BytesLike
|
|
78
|
+
]): string;
|
|
79
|
+
encodeFunctionData(functionFragment: "safeTransferFrom", values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike]): string;
|
|
80
|
+
encodeFunctionData(functionFragment: "setApprovalForAll", values: [AddressLike, boolean]): string;
|
|
81
|
+
encodeFunctionData(functionFragment: "setMaxSupply", values: [BigNumberish, BigNumberish]): string;
|
|
82
|
+
encodeFunctionData(functionFragment: "setRegistry", values: [AddressLike]): string;
|
|
83
|
+
encodeFunctionData(functionFragment: "setURIs", values: [BigNumberish[], string[]]): string;
|
|
84
|
+
encodeFunctionData(functionFragment: "setup", values: [string, string]): string;
|
|
85
|
+
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
86
|
+
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
|
|
87
|
+
encodeFunctionData(functionFragment: "tokenReceived", values: [AddressLike, AddressLike, AddressLike, BigNumberish, BytesLike]): string;
|
|
88
|
+
encodeFunctionData(functionFragment: "totalSupply()", values?: undefined): string;
|
|
89
|
+
encodeFunctionData(functionFragment: "totalSupply(uint256)", values: [BigNumberish]): string;
|
|
90
|
+
encodeFunctionData(functionFragment: "upgradeTo", values: [AddressLike]): string;
|
|
91
|
+
encodeFunctionData(functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike]): string;
|
|
92
|
+
encodeFunctionData(functionFragment: "uri", values: [BigNumberish]): string;
|
|
93
|
+
encodeFunctionData(functionFragment: "version", values?: undefined): string;
|
|
94
|
+
decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result;
|
|
95
|
+
decodeFunctionResult(functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike): Result;
|
|
96
|
+
decodeFunctionResult(functionFragment: "badgeToProject", data: BytesLike): Result;
|
|
97
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
98
|
+
decodeFunctionResult(functionFragment: "balanceOfBatch", data: BytesLike): Result;
|
|
99
|
+
decodeFunctionResult(functionFragment: "burnBatch", data: BytesLike): Result;
|
|
100
|
+
decodeFunctionResult(functionFragment: "calculateProjectTokenId", data: BytesLike): Result;
|
|
101
|
+
decodeFunctionResult(functionFragment: "createBatch(bytes32,address,uint256[],string[],uint256[])", data: BytesLike): Result;
|
|
102
|
+
decodeFunctionResult(functionFragment: "createBatch(address,uint256[],string[],uint256[])", data: BytesLike): Result;
|
|
103
|
+
decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result;
|
|
104
|
+
decodeFunctionResult(functionFragment: "exists", data: BytesLike): Result;
|
|
105
|
+
decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result;
|
|
106
|
+
decodeFunctionResult(functionFragment: "grantAdminRole", data: BytesLike): Result;
|
|
107
|
+
decodeFunctionResult(functionFragment: "grantProjectOperator", data: BytesLike): Result;
|
|
108
|
+
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
|
|
109
|
+
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
|
|
110
|
+
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
111
|
+
decodeFunctionResult(functionFragment: "isApprovedForAll", data: BytesLike): Result;
|
|
112
|
+
decodeFunctionResult(functionFragment: "isProjectOperator", data: BytesLike): Result;
|
|
113
|
+
decodeFunctionResult(functionFragment: "mintWithSignature", data: BytesLike): Result;
|
|
114
|
+
decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result;
|
|
115
|
+
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
|
116
|
+
decodeFunctionResult(functionFragment: "nextTokenIdToMint", data: BytesLike): Result;
|
|
117
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
118
|
+
decodeFunctionResult(functionFragment: "projectTotalSupply", data: BytesLike): Result;
|
|
119
|
+
decodeFunctionResult(functionFragment: "proxiableUUID", data: BytesLike): Result;
|
|
120
|
+
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
|
|
121
|
+
decodeFunctionResult(functionFragment: "revokeProjectOperator", data: BytesLike): Result;
|
|
122
|
+
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
|
|
123
|
+
decodeFunctionResult(functionFragment: "safeBatchTransferFrom", data: BytesLike): Result;
|
|
124
|
+
decodeFunctionResult(functionFragment: "safeTransferFrom", data: BytesLike): Result;
|
|
125
|
+
decodeFunctionResult(functionFragment: "setApprovalForAll", data: BytesLike): Result;
|
|
126
|
+
decodeFunctionResult(functionFragment: "setMaxSupply", data: BytesLike): Result;
|
|
127
|
+
decodeFunctionResult(functionFragment: "setRegistry", data: BytesLike): Result;
|
|
128
|
+
decodeFunctionResult(functionFragment: "setURIs", data: BytesLike): Result;
|
|
129
|
+
decodeFunctionResult(functionFragment: "setup", data: BytesLike): Result;
|
|
130
|
+
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
131
|
+
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
|
132
|
+
decodeFunctionResult(functionFragment: "tokenReceived", data: BytesLike): Result;
|
|
133
|
+
decodeFunctionResult(functionFragment: "totalSupply()", data: BytesLike): Result;
|
|
134
|
+
decodeFunctionResult(functionFragment: "totalSupply(uint256)", data: BytesLike): Result;
|
|
135
|
+
decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result;
|
|
136
|
+
decodeFunctionResult(functionFragment: "upgradeToAndCall", data: BytesLike): Result;
|
|
137
|
+
decodeFunctionResult(functionFragment: "uri", data: BytesLike): Result;
|
|
138
|
+
decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
|
|
139
|
+
}
|
|
140
|
+
export declare namespace AnchorInitializedEvent {
|
|
141
|
+
type InputTuple = [timestamp: BigNumberish];
|
|
142
|
+
type OutputTuple = [timestamp: bigint];
|
|
143
|
+
interface OutputObject {
|
|
144
|
+
timestamp: bigint;
|
|
145
|
+
}
|
|
146
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
147
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
148
|
+
type Log = TypedEventLog<Event>;
|
|
149
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
150
|
+
}
|
|
151
|
+
export declare namespace ApprovalForAllEvent {
|
|
152
|
+
type InputTuple = [
|
|
153
|
+
account: AddressLike,
|
|
154
|
+
operator: AddressLike,
|
|
155
|
+
approved: boolean
|
|
156
|
+
];
|
|
157
|
+
type OutputTuple = [
|
|
158
|
+
account: string,
|
|
159
|
+
operator: string,
|
|
160
|
+
approved: boolean
|
|
161
|
+
];
|
|
162
|
+
interface OutputObject {
|
|
163
|
+
account: string;
|
|
164
|
+
operator: string;
|
|
165
|
+
approved: boolean;
|
|
166
|
+
}
|
|
167
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
168
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
169
|
+
type Log = TypedEventLog<Event>;
|
|
170
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
171
|
+
}
|
|
172
|
+
export declare namespace BatchBurnedEvent {
|
|
173
|
+
type InputTuple = [
|
|
174
|
+
from: AddressLike,
|
|
175
|
+
tokenIds: BigNumberish[],
|
|
176
|
+
values: BigNumberish[],
|
|
177
|
+
timestamp: BigNumberish
|
|
178
|
+
];
|
|
179
|
+
type OutputTuple = [
|
|
180
|
+
from: string,
|
|
181
|
+
tokenIds: bigint[],
|
|
182
|
+
values: bigint[],
|
|
183
|
+
timestamp: bigint
|
|
184
|
+
];
|
|
185
|
+
interface OutputObject {
|
|
186
|
+
from: string;
|
|
187
|
+
tokenIds: bigint[];
|
|
188
|
+
values: bigint[];
|
|
189
|
+
timestamp: bigint;
|
|
190
|
+
}
|
|
191
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
192
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
193
|
+
type Log = TypedEventLog<Event>;
|
|
194
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
195
|
+
}
|
|
196
|
+
export declare namespace BatchCreatedEvent {
|
|
197
|
+
type InputTuple = [
|
|
198
|
+
projectHandle: BytesLike,
|
|
199
|
+
to: AddressLike,
|
|
200
|
+
tokenIds: BigNumberish[],
|
|
201
|
+
projectTokenIds: BigNumberish[],
|
|
202
|
+
tokenURIs: string[],
|
|
203
|
+
maxSupply: BigNumberish[],
|
|
204
|
+
timestamp: BigNumberish
|
|
205
|
+
];
|
|
206
|
+
type OutputTuple = [
|
|
207
|
+
projectHandle: string,
|
|
208
|
+
to: string,
|
|
209
|
+
tokenIds: bigint[],
|
|
210
|
+
projectTokenIds: bigint[],
|
|
211
|
+
tokenURIs: string[],
|
|
212
|
+
maxSupply: bigint[],
|
|
213
|
+
timestamp: bigint
|
|
214
|
+
];
|
|
215
|
+
interface OutputObject {
|
|
216
|
+
projectHandle: string;
|
|
217
|
+
to: string;
|
|
218
|
+
tokenIds: bigint[];
|
|
219
|
+
projectTokenIds: bigint[];
|
|
220
|
+
tokenURIs: string[];
|
|
221
|
+
maxSupply: bigint[];
|
|
222
|
+
timestamp: bigint;
|
|
223
|
+
}
|
|
224
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
225
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
226
|
+
type Log = TypedEventLog<Event>;
|
|
227
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
228
|
+
}
|
|
229
|
+
export declare namespace BatchURIEvent {
|
|
230
|
+
type InputTuple = [
|
|
231
|
+
tokenIds: BigNumberish[],
|
|
232
|
+
tokenURIs: string[],
|
|
233
|
+
timestamp: BigNumberish
|
|
234
|
+
];
|
|
235
|
+
type OutputTuple = [
|
|
236
|
+
tokenIds: bigint[],
|
|
237
|
+
tokenURIs: string[],
|
|
238
|
+
timestamp: bigint
|
|
239
|
+
];
|
|
240
|
+
interface OutputObject {
|
|
241
|
+
tokenIds: bigint[];
|
|
242
|
+
tokenURIs: string[];
|
|
243
|
+
timestamp: bigint;
|
|
244
|
+
}
|
|
245
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
246
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
247
|
+
type Log = TypedEventLog<Event>;
|
|
248
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
249
|
+
}
|
|
250
|
+
export declare namespace EIP712DomainChangedEvent {
|
|
251
|
+
type InputTuple = [];
|
|
252
|
+
type OutputTuple = [];
|
|
253
|
+
interface OutputObject {
|
|
254
|
+
}
|
|
255
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
256
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
257
|
+
type Log = TypedEventLog<Event>;
|
|
258
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
259
|
+
}
|
|
260
|
+
export declare namespace InitializedEvent {
|
|
261
|
+
type InputTuple = [version: BigNumberish];
|
|
262
|
+
type OutputTuple = [version: bigint];
|
|
263
|
+
interface OutputObject {
|
|
264
|
+
version: bigint;
|
|
265
|
+
}
|
|
266
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
267
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
268
|
+
type Log = TypedEventLog<Event>;
|
|
269
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
270
|
+
}
|
|
271
|
+
export declare namespace MaxSupplyUpdatedEvent {
|
|
272
|
+
type InputTuple = [tokenId: BigNumberish, maxSupply: BigNumberish];
|
|
273
|
+
type OutputTuple = [tokenId: bigint, maxSupply: bigint];
|
|
274
|
+
interface OutputObject {
|
|
275
|
+
tokenId: bigint;
|
|
276
|
+
maxSupply: bigint;
|
|
277
|
+
}
|
|
278
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
279
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
280
|
+
type Log = TypedEventLog<Event>;
|
|
281
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
282
|
+
}
|
|
283
|
+
export declare namespace MintedEvent {
|
|
284
|
+
type InputTuple = [
|
|
285
|
+
projectHandle: BytesLike,
|
|
286
|
+
to: AddressLike,
|
|
287
|
+
tokenId: BigNumberish,
|
|
288
|
+
quantity: BigNumberish,
|
|
289
|
+
price: BigNumberish,
|
|
290
|
+
currency: AddressLike,
|
|
291
|
+
uid: BytesLike,
|
|
292
|
+
timestamp: BigNumberish
|
|
293
|
+
];
|
|
294
|
+
type OutputTuple = [
|
|
295
|
+
projectHandle: string,
|
|
296
|
+
to: string,
|
|
297
|
+
tokenId: bigint,
|
|
298
|
+
quantity: bigint,
|
|
299
|
+
price: bigint,
|
|
300
|
+
currency: string,
|
|
301
|
+
uid: string,
|
|
302
|
+
timestamp: bigint
|
|
303
|
+
];
|
|
304
|
+
interface OutputObject {
|
|
305
|
+
projectHandle: string;
|
|
306
|
+
to: string;
|
|
307
|
+
tokenId: bigint;
|
|
308
|
+
quantity: bigint;
|
|
309
|
+
price: bigint;
|
|
310
|
+
currency: string;
|
|
311
|
+
uid: string;
|
|
312
|
+
timestamp: bigint;
|
|
313
|
+
}
|
|
314
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
315
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
316
|
+
type Log = TypedEventLog<Event>;
|
|
317
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
318
|
+
}
|
|
319
|
+
export declare namespace ProjectOperatorGrantedEvent {
|
|
320
|
+
type InputTuple = [
|
|
321
|
+
projectHandle: BytesLike,
|
|
322
|
+
operator: AddressLike,
|
|
323
|
+
timestamp: BigNumberish
|
|
324
|
+
];
|
|
325
|
+
type OutputTuple = [
|
|
326
|
+
projectHandle: string,
|
|
327
|
+
operator: string,
|
|
328
|
+
timestamp: bigint
|
|
329
|
+
];
|
|
330
|
+
interface OutputObject {
|
|
331
|
+
projectHandle: string;
|
|
332
|
+
operator: string;
|
|
333
|
+
timestamp: bigint;
|
|
334
|
+
}
|
|
335
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
336
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
337
|
+
type Log = TypedEventLog<Event>;
|
|
338
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
339
|
+
}
|
|
340
|
+
export declare namespace ProjectOperatorRevokedEvent {
|
|
341
|
+
type InputTuple = [
|
|
342
|
+
projectHandle: BytesLike,
|
|
343
|
+
operator: AddressLike,
|
|
344
|
+
timestamp: BigNumberish
|
|
345
|
+
];
|
|
346
|
+
type OutputTuple = [
|
|
347
|
+
projectHandle: string,
|
|
348
|
+
operator: string,
|
|
349
|
+
timestamp: bigint
|
|
350
|
+
];
|
|
351
|
+
interface OutputObject {
|
|
352
|
+
projectHandle: string;
|
|
353
|
+
operator: string;
|
|
354
|
+
timestamp: bigint;
|
|
355
|
+
}
|
|
356
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
357
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
358
|
+
type Log = TypedEventLog<Event>;
|
|
359
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
360
|
+
}
|
|
361
|
+
export declare namespace RoleAdminChangedEvent {
|
|
362
|
+
type InputTuple = [
|
|
363
|
+
role: BytesLike,
|
|
364
|
+
previousAdminRole: BytesLike,
|
|
365
|
+
newAdminRole: BytesLike
|
|
366
|
+
];
|
|
367
|
+
type OutputTuple = [
|
|
368
|
+
role: string,
|
|
369
|
+
previousAdminRole: string,
|
|
370
|
+
newAdminRole: string
|
|
371
|
+
];
|
|
372
|
+
interface OutputObject {
|
|
373
|
+
role: string;
|
|
374
|
+
previousAdminRole: string;
|
|
375
|
+
newAdminRole: string;
|
|
376
|
+
}
|
|
377
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
378
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
379
|
+
type Log = TypedEventLog<Event>;
|
|
380
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
381
|
+
}
|
|
382
|
+
export declare namespace RoleGrantedEvent {
|
|
383
|
+
type InputTuple = [
|
|
384
|
+
role: BytesLike,
|
|
385
|
+
account: AddressLike,
|
|
386
|
+
sender: AddressLike
|
|
387
|
+
];
|
|
388
|
+
type OutputTuple = [role: string, account: string, sender: string];
|
|
389
|
+
interface OutputObject {
|
|
390
|
+
role: string;
|
|
391
|
+
account: string;
|
|
392
|
+
sender: string;
|
|
393
|
+
}
|
|
394
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
395
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
396
|
+
type Log = TypedEventLog<Event>;
|
|
397
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
398
|
+
}
|
|
399
|
+
export declare namespace RoleRevokedEvent {
|
|
400
|
+
type InputTuple = [
|
|
401
|
+
role: BytesLike,
|
|
402
|
+
account: AddressLike,
|
|
403
|
+
sender: AddressLike
|
|
404
|
+
];
|
|
405
|
+
type OutputTuple = [role: string, account: string, sender: string];
|
|
406
|
+
interface OutputObject {
|
|
407
|
+
role: string;
|
|
408
|
+
account: string;
|
|
409
|
+
sender: string;
|
|
410
|
+
}
|
|
411
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
412
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
413
|
+
type Log = TypedEventLog<Event>;
|
|
414
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
415
|
+
}
|
|
416
|
+
export declare namespace TransferBatchEvent {
|
|
417
|
+
type InputTuple = [
|
|
418
|
+
operator: AddressLike,
|
|
419
|
+
from: AddressLike,
|
|
420
|
+
to: AddressLike,
|
|
421
|
+
ids: BigNumberish[],
|
|
422
|
+
values: BigNumberish[]
|
|
423
|
+
];
|
|
424
|
+
type OutputTuple = [
|
|
425
|
+
operator: string,
|
|
426
|
+
from: string,
|
|
427
|
+
to: string,
|
|
428
|
+
ids: bigint[],
|
|
429
|
+
values: bigint[]
|
|
430
|
+
];
|
|
431
|
+
interface OutputObject {
|
|
432
|
+
operator: string;
|
|
433
|
+
from: string;
|
|
434
|
+
to: string;
|
|
435
|
+
ids: bigint[];
|
|
436
|
+
values: bigint[];
|
|
437
|
+
}
|
|
438
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
439
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
440
|
+
type Log = TypedEventLog<Event>;
|
|
441
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
442
|
+
}
|
|
443
|
+
export declare namespace TransferSingleEvent {
|
|
444
|
+
type InputTuple = [
|
|
445
|
+
operator: AddressLike,
|
|
446
|
+
from: AddressLike,
|
|
447
|
+
to: AddressLike,
|
|
448
|
+
id: BigNumberish,
|
|
449
|
+
value: BigNumberish
|
|
450
|
+
];
|
|
451
|
+
type OutputTuple = [
|
|
452
|
+
operator: string,
|
|
453
|
+
from: string,
|
|
454
|
+
to: string,
|
|
455
|
+
id: bigint,
|
|
456
|
+
value: bigint
|
|
457
|
+
];
|
|
458
|
+
interface OutputObject {
|
|
459
|
+
operator: string;
|
|
460
|
+
from: string;
|
|
461
|
+
to: string;
|
|
462
|
+
id: bigint;
|
|
463
|
+
value: bigint;
|
|
464
|
+
}
|
|
465
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
466
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
467
|
+
type Log = TypedEventLog<Event>;
|
|
468
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
469
|
+
}
|
|
470
|
+
export declare namespace URIEvent {
|
|
471
|
+
type InputTuple = [value: string, id: BigNumberish];
|
|
472
|
+
type OutputTuple = [value: string, id: bigint];
|
|
473
|
+
interface OutputObject {
|
|
474
|
+
value: string;
|
|
475
|
+
id: bigint;
|
|
476
|
+
}
|
|
477
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
478
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
479
|
+
type Log = TypedEventLog<Event>;
|
|
480
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
481
|
+
}
|
|
482
|
+
export declare namespace UpgradedEvent {
|
|
483
|
+
type InputTuple = [implementation: AddressLike];
|
|
484
|
+
type OutputTuple = [implementation: string];
|
|
485
|
+
interface OutputObject {
|
|
486
|
+
implementation: string;
|
|
487
|
+
}
|
|
488
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
489
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
490
|
+
type Log = TypedEventLog<Event>;
|
|
491
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
492
|
+
}
|
|
493
|
+
export interface AnchorERC1155 extends BaseContract {
|
|
494
|
+
connect(runner?: ContractRunner | null): AnchorERC1155;
|
|
495
|
+
waitForDeployment(): Promise<this>;
|
|
496
|
+
interface: AnchorERC1155Interface;
|
|
497
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
498
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
499
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
500
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
501
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
502
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
503
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
504
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
505
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
506
|
+
DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
|
507
|
+
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
|
|
508
|
+
badgeToProject: TypedContractMethod<[
|
|
509
|
+
tokenId: BigNumberish
|
|
510
|
+
], [
|
|
511
|
+
string
|
|
512
|
+
], "view">;
|
|
513
|
+
balanceOf: TypedContractMethod<[
|
|
514
|
+
account: AddressLike,
|
|
515
|
+
id: BigNumberish
|
|
516
|
+
], [
|
|
517
|
+
bigint
|
|
518
|
+
], "view">;
|
|
519
|
+
balanceOfBatch: TypedContractMethod<[
|
|
520
|
+
accounts: AddressLike[],
|
|
521
|
+
ids: BigNumberish[]
|
|
522
|
+
], [
|
|
523
|
+
bigint[]
|
|
524
|
+
], "view">;
|
|
525
|
+
burnBatch: TypedContractMethod<[
|
|
526
|
+
from: AddressLike,
|
|
527
|
+
ids: BigNumberish[],
|
|
528
|
+
values: BigNumberish[]
|
|
529
|
+
], [
|
|
530
|
+
void
|
|
531
|
+
], "nonpayable">;
|
|
532
|
+
calculateProjectTokenId: TypedContractMethod<[
|
|
533
|
+
projectHandle: BytesLike,
|
|
534
|
+
projectTokenId: BigNumberish
|
|
535
|
+
], [
|
|
536
|
+
bigint
|
|
537
|
+
], "view">;
|
|
538
|
+
"createBatch(bytes32,address,uint256[],string[],uint256[])": TypedContractMethod<[
|
|
539
|
+
projectHandle: BytesLike,
|
|
540
|
+
_to: AddressLike,
|
|
541
|
+
_tokenIds: BigNumberish[],
|
|
542
|
+
_tokenURIs: string[],
|
|
543
|
+
_maxSupplies: BigNumberish[]
|
|
544
|
+
], [
|
|
545
|
+
void
|
|
546
|
+
], "nonpayable">;
|
|
547
|
+
"createBatch(address,uint256[],string[],uint256[])": TypedContractMethod<[
|
|
548
|
+
_to: AddressLike,
|
|
549
|
+
_tokenIds: BigNumberish[],
|
|
550
|
+
_tokenURIs: string[],
|
|
551
|
+
_maxSupplies: BigNumberish[]
|
|
552
|
+
], [
|
|
553
|
+
void
|
|
554
|
+
], "nonpayable">;
|
|
555
|
+
eip712Domain: TypedContractMethod<[
|
|
556
|
+
], [
|
|
557
|
+
[
|
|
558
|
+
string,
|
|
559
|
+
string,
|
|
560
|
+
string,
|
|
561
|
+
bigint,
|
|
562
|
+
string,
|
|
563
|
+
string,
|
|
564
|
+
bigint[]
|
|
565
|
+
] & {
|
|
566
|
+
fields: string;
|
|
567
|
+
name: string;
|
|
568
|
+
version: string;
|
|
569
|
+
chainId: bigint;
|
|
570
|
+
verifyingContract: string;
|
|
571
|
+
salt: string;
|
|
572
|
+
extensions: bigint[];
|
|
573
|
+
}
|
|
574
|
+
], "view">;
|
|
575
|
+
exists: TypedContractMethod<[id: BigNumberish], [boolean], "view">;
|
|
576
|
+
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
577
|
+
grantAdminRole: TypedContractMethod<[
|
|
578
|
+
admin: AddressLike
|
|
579
|
+
], [
|
|
580
|
+
void
|
|
581
|
+
], "nonpayable">;
|
|
582
|
+
grantProjectOperator: TypedContractMethod<[
|
|
583
|
+
projectHandle: BytesLike,
|
|
584
|
+
operator: AddressLike
|
|
585
|
+
], [
|
|
586
|
+
void
|
|
587
|
+
], "nonpayable">;
|
|
588
|
+
grantRole: TypedContractMethod<[
|
|
589
|
+
role: BytesLike,
|
|
590
|
+
account: AddressLike
|
|
591
|
+
], [
|
|
592
|
+
void
|
|
593
|
+
], "nonpayable">;
|
|
594
|
+
hasRole: TypedContractMethod<[
|
|
595
|
+
role: BytesLike,
|
|
596
|
+
account: AddressLike
|
|
597
|
+
], [
|
|
598
|
+
boolean
|
|
599
|
+
], "view">;
|
|
600
|
+
initialize: TypedContractMethod<[
|
|
601
|
+
_defaultAdmin: AddressLike,
|
|
602
|
+
_name: string,
|
|
603
|
+
_symbol: string,
|
|
604
|
+
_version: string,
|
|
605
|
+
_baseURI: string
|
|
606
|
+
], [
|
|
607
|
+
void
|
|
608
|
+
], "nonpayable">;
|
|
609
|
+
isApprovedForAll: TypedContractMethod<[
|
|
610
|
+
account: AddressLike,
|
|
611
|
+
operator: AddressLike
|
|
612
|
+
], [
|
|
613
|
+
boolean
|
|
614
|
+
], "view">;
|
|
615
|
+
isProjectOperator: TypedContractMethod<[
|
|
616
|
+
projectHandle: BytesLike,
|
|
617
|
+
operator: AddressLike
|
|
618
|
+
], [
|
|
619
|
+
boolean
|
|
620
|
+
], "view">;
|
|
621
|
+
mintWithSignature: TypedContractMethod<[
|
|
622
|
+
_req: AnchorDataTypes.MintRequestStruct,
|
|
623
|
+
_signature: BytesLike
|
|
624
|
+
], [
|
|
625
|
+
string
|
|
626
|
+
], "payable">;
|
|
627
|
+
multicall: TypedContractMethod<[data: BytesLike[]], [string[]], "nonpayable">;
|
|
628
|
+
name: TypedContractMethod<[], [string], "view">;
|
|
629
|
+
nextTokenIdToMint: TypedContractMethod<[], [bigint], "view">;
|
|
630
|
+
owner: TypedContractMethod<[], [string], "view">;
|
|
631
|
+
projectTotalSupply: TypedContractMethod<[
|
|
632
|
+
projectHandle: BytesLike
|
|
633
|
+
], [
|
|
634
|
+
bigint
|
|
635
|
+
], "view">;
|
|
636
|
+
proxiableUUID: TypedContractMethod<[], [string], "view">;
|
|
637
|
+
renounceRole: TypedContractMethod<[
|
|
638
|
+
role: BytesLike,
|
|
639
|
+
callerConfirmation: AddressLike
|
|
640
|
+
], [
|
|
641
|
+
void
|
|
642
|
+
], "nonpayable">;
|
|
643
|
+
revokeProjectOperator: TypedContractMethod<[
|
|
644
|
+
projectHandle: BytesLike,
|
|
645
|
+
operator: AddressLike
|
|
646
|
+
], [
|
|
647
|
+
void
|
|
648
|
+
], "nonpayable">;
|
|
649
|
+
revokeRole: TypedContractMethod<[
|
|
650
|
+
role: BytesLike,
|
|
651
|
+
account: AddressLike
|
|
652
|
+
], [
|
|
653
|
+
void
|
|
654
|
+
], "nonpayable">;
|
|
655
|
+
safeBatchTransferFrom: TypedContractMethod<[
|
|
656
|
+
from: AddressLike,
|
|
657
|
+
to: AddressLike,
|
|
658
|
+
ids: BigNumberish[],
|
|
659
|
+
values: BigNumberish[],
|
|
660
|
+
data: BytesLike
|
|
661
|
+
], [
|
|
662
|
+
void
|
|
663
|
+
], "nonpayable">;
|
|
664
|
+
safeTransferFrom: TypedContractMethod<[
|
|
665
|
+
from: AddressLike,
|
|
666
|
+
to: AddressLike,
|
|
667
|
+
id: BigNumberish,
|
|
668
|
+
value: BigNumberish,
|
|
669
|
+
data: BytesLike
|
|
670
|
+
], [
|
|
671
|
+
void
|
|
672
|
+
], "nonpayable">;
|
|
673
|
+
setApprovalForAll: TypedContractMethod<[
|
|
674
|
+
operator: AddressLike,
|
|
675
|
+
approved: boolean
|
|
676
|
+
], [
|
|
677
|
+
void
|
|
678
|
+
], "nonpayable">;
|
|
679
|
+
setMaxSupply: TypedContractMethod<[
|
|
680
|
+
_tokenId: BigNumberish,
|
|
681
|
+
_maxSupply: BigNumberish
|
|
682
|
+
], [
|
|
683
|
+
void
|
|
684
|
+
], "nonpayable">;
|
|
685
|
+
setRegistry: TypedContractMethod<[
|
|
686
|
+
registry: AddressLike
|
|
687
|
+
], [
|
|
688
|
+
void
|
|
689
|
+
], "nonpayable">;
|
|
690
|
+
setURIs: TypedContractMethod<[
|
|
691
|
+
_tokenIds: BigNumberish[],
|
|
692
|
+
_tokenURIs: string[]
|
|
693
|
+
], [
|
|
694
|
+
void
|
|
695
|
+
], "nonpayable">;
|
|
696
|
+
setup: TypedContractMethod<[
|
|
697
|
+
_name: string,
|
|
698
|
+
_symbol: string
|
|
699
|
+
], [
|
|
700
|
+
void
|
|
701
|
+
], "nonpayable">;
|
|
702
|
+
supportsInterface: TypedContractMethod<[
|
|
703
|
+
interfaceId: BytesLike
|
|
704
|
+
], [
|
|
705
|
+
boolean
|
|
706
|
+
], "view">;
|
|
707
|
+
symbol: TypedContractMethod<[], [string], "view">;
|
|
708
|
+
tokenReceived: TypedContractMethod<[
|
|
709
|
+
token: AddressLike,
|
|
710
|
+
from: AddressLike,
|
|
711
|
+
to: AddressLike,
|
|
712
|
+
amount: BigNumberish,
|
|
713
|
+
userData: BytesLike
|
|
714
|
+
], [
|
|
715
|
+
void
|
|
716
|
+
], "nonpayable">;
|
|
717
|
+
"totalSupply()": TypedContractMethod<[], [bigint], "view">;
|
|
718
|
+
"totalSupply(uint256)": TypedContractMethod<[
|
|
719
|
+
id: BigNumberish
|
|
720
|
+
], [
|
|
721
|
+
bigint
|
|
722
|
+
], "view">;
|
|
723
|
+
upgradeTo: TypedContractMethod<[
|
|
724
|
+
newImplementation: AddressLike
|
|
725
|
+
], [
|
|
726
|
+
void
|
|
727
|
+
], "nonpayable">;
|
|
728
|
+
upgradeToAndCall: TypedContractMethod<[
|
|
729
|
+
newImplementation: AddressLike,
|
|
730
|
+
data: BytesLike
|
|
731
|
+
], [
|
|
732
|
+
void
|
|
733
|
+
], "payable">;
|
|
734
|
+
uri: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
735
|
+
version: TypedContractMethod<[], [string], "view">;
|
|
736
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
737
|
+
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
738
|
+
getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION"): TypedContractMethod<[], [string], "view">;
|
|
739
|
+
getFunction(nameOrSignature: "badgeToProject"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
740
|
+
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[
|
|
741
|
+
account: AddressLike,
|
|
742
|
+
id: BigNumberish
|
|
743
|
+
], [
|
|
744
|
+
bigint
|
|
745
|
+
], "view">;
|
|
746
|
+
getFunction(nameOrSignature: "balanceOfBatch"): TypedContractMethod<[
|
|
747
|
+
accounts: AddressLike[],
|
|
748
|
+
ids: BigNumberish[]
|
|
749
|
+
], [
|
|
750
|
+
bigint[]
|
|
751
|
+
], "view">;
|
|
752
|
+
getFunction(nameOrSignature: "burnBatch"): TypedContractMethod<[
|
|
753
|
+
from: AddressLike,
|
|
754
|
+
ids: BigNumberish[],
|
|
755
|
+
values: BigNumberish[]
|
|
756
|
+
], [
|
|
757
|
+
void
|
|
758
|
+
], "nonpayable">;
|
|
759
|
+
getFunction(nameOrSignature: "calculateProjectTokenId"): TypedContractMethod<[
|
|
760
|
+
projectHandle: BytesLike,
|
|
761
|
+
projectTokenId: BigNumberish
|
|
762
|
+
], [
|
|
763
|
+
bigint
|
|
764
|
+
], "view">;
|
|
765
|
+
getFunction(nameOrSignature: "createBatch(bytes32,address,uint256[],string[],uint256[])"): TypedContractMethod<[
|
|
766
|
+
projectHandle: BytesLike,
|
|
767
|
+
_to: AddressLike,
|
|
768
|
+
_tokenIds: BigNumberish[],
|
|
769
|
+
_tokenURIs: string[],
|
|
770
|
+
_maxSupplies: BigNumberish[]
|
|
771
|
+
], [
|
|
772
|
+
void
|
|
773
|
+
], "nonpayable">;
|
|
774
|
+
getFunction(nameOrSignature: "createBatch(address,uint256[],string[],uint256[])"): TypedContractMethod<[
|
|
775
|
+
_to: AddressLike,
|
|
776
|
+
_tokenIds: BigNumberish[],
|
|
777
|
+
_tokenURIs: string[],
|
|
778
|
+
_maxSupplies: BigNumberish[]
|
|
779
|
+
], [
|
|
780
|
+
void
|
|
781
|
+
], "nonpayable">;
|
|
782
|
+
getFunction(nameOrSignature: "eip712Domain"): TypedContractMethod<[
|
|
783
|
+
], [
|
|
784
|
+
[
|
|
785
|
+
string,
|
|
786
|
+
string,
|
|
787
|
+
string,
|
|
788
|
+
bigint,
|
|
789
|
+
string,
|
|
790
|
+
string,
|
|
791
|
+
bigint[]
|
|
792
|
+
] & {
|
|
793
|
+
fields: string;
|
|
794
|
+
name: string;
|
|
795
|
+
version: string;
|
|
796
|
+
chainId: bigint;
|
|
797
|
+
verifyingContract: string;
|
|
798
|
+
salt: string;
|
|
799
|
+
extensions: bigint[];
|
|
800
|
+
}
|
|
801
|
+
], "view">;
|
|
802
|
+
getFunction(nameOrSignature: "exists"): TypedContractMethod<[id: BigNumberish], [boolean], "view">;
|
|
803
|
+
getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
804
|
+
getFunction(nameOrSignature: "grantAdminRole"): TypedContractMethod<[admin: AddressLike], [void], "nonpayable">;
|
|
805
|
+
getFunction(nameOrSignature: "grantProjectOperator"): TypedContractMethod<[
|
|
806
|
+
projectHandle: BytesLike,
|
|
807
|
+
operator: AddressLike
|
|
808
|
+
], [
|
|
809
|
+
void
|
|
810
|
+
], "nonpayable">;
|
|
811
|
+
getFunction(nameOrSignature: "grantRole"): TypedContractMethod<[
|
|
812
|
+
role: BytesLike,
|
|
813
|
+
account: AddressLike
|
|
814
|
+
], [
|
|
815
|
+
void
|
|
816
|
+
], "nonpayable">;
|
|
817
|
+
getFunction(nameOrSignature: "hasRole"): TypedContractMethod<[
|
|
818
|
+
role: BytesLike,
|
|
819
|
+
account: AddressLike
|
|
820
|
+
], [
|
|
821
|
+
boolean
|
|
822
|
+
], "view">;
|
|
823
|
+
getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
|
|
824
|
+
_defaultAdmin: AddressLike,
|
|
825
|
+
_name: string,
|
|
826
|
+
_symbol: string,
|
|
827
|
+
_version: string,
|
|
828
|
+
_baseURI: string
|
|
829
|
+
], [
|
|
830
|
+
void
|
|
831
|
+
], "nonpayable">;
|
|
832
|
+
getFunction(nameOrSignature: "isApprovedForAll"): TypedContractMethod<[
|
|
833
|
+
account: AddressLike,
|
|
834
|
+
operator: AddressLike
|
|
835
|
+
], [
|
|
836
|
+
boolean
|
|
837
|
+
], "view">;
|
|
838
|
+
getFunction(nameOrSignature: "isProjectOperator"): TypedContractMethod<[
|
|
839
|
+
projectHandle: BytesLike,
|
|
840
|
+
operator: AddressLike
|
|
841
|
+
], [
|
|
842
|
+
boolean
|
|
843
|
+
], "view">;
|
|
844
|
+
getFunction(nameOrSignature: "mintWithSignature"): TypedContractMethod<[
|
|
845
|
+
_req: AnchorDataTypes.MintRequestStruct,
|
|
846
|
+
_signature: BytesLike
|
|
847
|
+
], [
|
|
848
|
+
string
|
|
849
|
+
], "payable">;
|
|
850
|
+
getFunction(nameOrSignature: "multicall"): TypedContractMethod<[data: BytesLike[]], [string[]], "nonpayable">;
|
|
851
|
+
getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
|
|
852
|
+
getFunction(nameOrSignature: "nextTokenIdToMint"): TypedContractMethod<[], [bigint], "view">;
|
|
853
|
+
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
|
854
|
+
getFunction(nameOrSignature: "projectTotalSupply"): TypedContractMethod<[projectHandle: BytesLike], [bigint], "view">;
|
|
855
|
+
getFunction(nameOrSignature: "proxiableUUID"): TypedContractMethod<[], [string], "view">;
|
|
856
|
+
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
|
857
|
+
role: BytesLike,
|
|
858
|
+
callerConfirmation: AddressLike
|
|
859
|
+
], [
|
|
860
|
+
void
|
|
861
|
+
], "nonpayable">;
|
|
862
|
+
getFunction(nameOrSignature: "revokeProjectOperator"): TypedContractMethod<[
|
|
863
|
+
projectHandle: BytesLike,
|
|
864
|
+
operator: AddressLike
|
|
865
|
+
], [
|
|
866
|
+
void
|
|
867
|
+
], "nonpayable">;
|
|
868
|
+
getFunction(nameOrSignature: "revokeRole"): TypedContractMethod<[
|
|
869
|
+
role: BytesLike,
|
|
870
|
+
account: AddressLike
|
|
871
|
+
], [
|
|
872
|
+
void
|
|
873
|
+
], "nonpayable">;
|
|
874
|
+
getFunction(nameOrSignature: "safeBatchTransferFrom"): TypedContractMethod<[
|
|
875
|
+
from: AddressLike,
|
|
876
|
+
to: AddressLike,
|
|
877
|
+
ids: BigNumberish[],
|
|
878
|
+
values: BigNumberish[],
|
|
879
|
+
data: BytesLike
|
|
880
|
+
], [
|
|
881
|
+
void
|
|
882
|
+
], "nonpayable">;
|
|
883
|
+
getFunction(nameOrSignature: "safeTransferFrom"): TypedContractMethod<[
|
|
884
|
+
from: AddressLike,
|
|
885
|
+
to: AddressLike,
|
|
886
|
+
id: BigNumberish,
|
|
887
|
+
value: BigNumberish,
|
|
888
|
+
data: BytesLike
|
|
889
|
+
], [
|
|
890
|
+
void
|
|
891
|
+
], "nonpayable">;
|
|
892
|
+
getFunction(nameOrSignature: "setApprovalForAll"): TypedContractMethod<[
|
|
893
|
+
operator: AddressLike,
|
|
894
|
+
approved: boolean
|
|
895
|
+
], [
|
|
896
|
+
void
|
|
897
|
+
], "nonpayable">;
|
|
898
|
+
getFunction(nameOrSignature: "setMaxSupply"): TypedContractMethod<[
|
|
899
|
+
_tokenId: BigNumberish,
|
|
900
|
+
_maxSupply: BigNumberish
|
|
901
|
+
], [
|
|
902
|
+
void
|
|
903
|
+
], "nonpayable">;
|
|
904
|
+
getFunction(nameOrSignature: "setRegistry"): TypedContractMethod<[registry: AddressLike], [void], "nonpayable">;
|
|
905
|
+
getFunction(nameOrSignature: "setURIs"): TypedContractMethod<[
|
|
906
|
+
_tokenIds: BigNumberish[],
|
|
907
|
+
_tokenURIs: string[]
|
|
908
|
+
], [
|
|
909
|
+
void
|
|
910
|
+
], "nonpayable">;
|
|
911
|
+
getFunction(nameOrSignature: "setup"): TypedContractMethod<[
|
|
912
|
+
_name: string,
|
|
913
|
+
_symbol: string
|
|
914
|
+
], [
|
|
915
|
+
void
|
|
916
|
+
], "nonpayable">;
|
|
917
|
+
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
918
|
+
getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">;
|
|
919
|
+
getFunction(nameOrSignature: "tokenReceived"): TypedContractMethod<[
|
|
920
|
+
token: AddressLike,
|
|
921
|
+
from: AddressLike,
|
|
922
|
+
to: AddressLike,
|
|
923
|
+
amount: BigNumberish,
|
|
924
|
+
userData: BytesLike
|
|
925
|
+
], [
|
|
926
|
+
void
|
|
927
|
+
], "nonpayable">;
|
|
928
|
+
getFunction(nameOrSignature: "totalSupply()"): TypedContractMethod<[], [bigint], "view">;
|
|
929
|
+
getFunction(nameOrSignature: "totalSupply(uint256)"): TypedContractMethod<[id: BigNumberish], [bigint], "view">;
|
|
930
|
+
getFunction(nameOrSignature: "upgradeTo"): TypedContractMethod<[
|
|
931
|
+
newImplementation: AddressLike
|
|
932
|
+
], [
|
|
933
|
+
void
|
|
934
|
+
], "nonpayable">;
|
|
935
|
+
getFunction(nameOrSignature: "upgradeToAndCall"): TypedContractMethod<[
|
|
936
|
+
newImplementation: AddressLike,
|
|
937
|
+
data: BytesLike
|
|
938
|
+
], [
|
|
939
|
+
void
|
|
940
|
+
], "payable">;
|
|
941
|
+
getFunction(nameOrSignature: "uri"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
942
|
+
getFunction(nameOrSignature: "version"): TypedContractMethod<[], [string], "view">;
|
|
943
|
+
getEvent(key: "AnchorInitialized"): TypedContractEvent<AnchorInitializedEvent.InputTuple, AnchorInitializedEvent.OutputTuple, AnchorInitializedEvent.OutputObject>;
|
|
944
|
+
getEvent(key: "ApprovalForAll"): TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
945
|
+
getEvent(key: "BatchBurned"): TypedContractEvent<BatchBurnedEvent.InputTuple, BatchBurnedEvent.OutputTuple, BatchBurnedEvent.OutputObject>;
|
|
946
|
+
getEvent(key: "BatchCreated"): TypedContractEvent<BatchCreatedEvent.InputTuple, BatchCreatedEvent.OutputTuple, BatchCreatedEvent.OutputObject>;
|
|
947
|
+
getEvent(key: "BatchURI"): TypedContractEvent<BatchURIEvent.InputTuple, BatchURIEvent.OutputTuple, BatchURIEvent.OutputObject>;
|
|
948
|
+
getEvent(key: "EIP712DomainChanged"): TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
|
|
949
|
+
getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
950
|
+
getEvent(key: "MaxSupplyUpdated"): TypedContractEvent<MaxSupplyUpdatedEvent.InputTuple, MaxSupplyUpdatedEvent.OutputTuple, MaxSupplyUpdatedEvent.OutputObject>;
|
|
951
|
+
getEvent(key: "Minted"): TypedContractEvent<MintedEvent.InputTuple, MintedEvent.OutputTuple, MintedEvent.OutputObject>;
|
|
952
|
+
getEvent(key: "ProjectOperatorGranted"): TypedContractEvent<ProjectOperatorGrantedEvent.InputTuple, ProjectOperatorGrantedEvent.OutputTuple, ProjectOperatorGrantedEvent.OutputObject>;
|
|
953
|
+
getEvent(key: "ProjectOperatorRevoked"): TypedContractEvent<ProjectOperatorRevokedEvent.InputTuple, ProjectOperatorRevokedEvent.OutputTuple, ProjectOperatorRevokedEvent.OutputObject>;
|
|
954
|
+
getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
955
|
+
getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
956
|
+
getEvent(key: "RoleRevoked"): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
957
|
+
getEvent(key: "TransferBatch"): TypedContractEvent<TransferBatchEvent.InputTuple, TransferBatchEvent.OutputTuple, TransferBatchEvent.OutputObject>;
|
|
958
|
+
getEvent(key: "TransferSingle"): TypedContractEvent<TransferSingleEvent.InputTuple, TransferSingleEvent.OutputTuple, TransferSingleEvent.OutputObject>;
|
|
959
|
+
getEvent(key: "URI"): TypedContractEvent<URIEvent.InputTuple, URIEvent.OutputTuple, URIEvent.OutputObject>;
|
|
960
|
+
getEvent(key: "Upgraded"): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
961
|
+
filters: {
|
|
962
|
+
"AnchorInitialized(uint64)": TypedContractEvent<AnchorInitializedEvent.InputTuple, AnchorInitializedEvent.OutputTuple, AnchorInitializedEvent.OutputObject>;
|
|
963
|
+
AnchorInitialized: TypedContractEvent<AnchorInitializedEvent.InputTuple, AnchorInitializedEvent.OutputTuple, AnchorInitializedEvent.OutputObject>;
|
|
964
|
+
"ApprovalForAll(address,address,bool)": TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
965
|
+
ApprovalForAll: TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
966
|
+
"BatchBurned(address,uint256[],uint256[],uint64)": TypedContractEvent<BatchBurnedEvent.InputTuple, BatchBurnedEvent.OutputTuple, BatchBurnedEvent.OutputObject>;
|
|
967
|
+
BatchBurned: TypedContractEvent<BatchBurnedEvent.InputTuple, BatchBurnedEvent.OutputTuple, BatchBurnedEvent.OutputObject>;
|
|
968
|
+
"BatchCreated(bytes32,address,uint256[],uint256[],string[],uint256[],uint64)": TypedContractEvent<BatchCreatedEvent.InputTuple, BatchCreatedEvent.OutputTuple, BatchCreatedEvent.OutputObject>;
|
|
969
|
+
BatchCreated: TypedContractEvent<BatchCreatedEvent.InputTuple, BatchCreatedEvent.OutputTuple, BatchCreatedEvent.OutputObject>;
|
|
970
|
+
"BatchURI(uint256[],string[],uint64)": TypedContractEvent<BatchURIEvent.InputTuple, BatchURIEvent.OutputTuple, BatchURIEvent.OutputObject>;
|
|
971
|
+
BatchURI: TypedContractEvent<BatchURIEvent.InputTuple, BatchURIEvent.OutputTuple, BatchURIEvent.OutputObject>;
|
|
972
|
+
"EIP712DomainChanged()": TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
|
|
973
|
+
EIP712DomainChanged: TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
|
|
974
|
+
"Initialized(uint64)": TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
975
|
+
Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
976
|
+
"MaxSupplyUpdated(uint256,uint256)": TypedContractEvent<MaxSupplyUpdatedEvent.InputTuple, MaxSupplyUpdatedEvent.OutputTuple, MaxSupplyUpdatedEvent.OutputObject>;
|
|
977
|
+
MaxSupplyUpdated: TypedContractEvent<MaxSupplyUpdatedEvent.InputTuple, MaxSupplyUpdatedEvent.OutputTuple, MaxSupplyUpdatedEvent.OutputObject>;
|
|
978
|
+
"Minted(bytes32,address,uint256,uint256,uint256,address,bytes32,uint64)": TypedContractEvent<MintedEvent.InputTuple, MintedEvent.OutputTuple, MintedEvent.OutputObject>;
|
|
979
|
+
Minted: TypedContractEvent<MintedEvent.InputTuple, MintedEvent.OutputTuple, MintedEvent.OutputObject>;
|
|
980
|
+
"ProjectOperatorGranted(bytes32,address,uint64)": TypedContractEvent<ProjectOperatorGrantedEvent.InputTuple, ProjectOperatorGrantedEvent.OutputTuple, ProjectOperatorGrantedEvent.OutputObject>;
|
|
981
|
+
ProjectOperatorGranted: TypedContractEvent<ProjectOperatorGrantedEvent.InputTuple, ProjectOperatorGrantedEvent.OutputTuple, ProjectOperatorGrantedEvent.OutputObject>;
|
|
982
|
+
"ProjectOperatorRevoked(bytes32,address,uint64)": TypedContractEvent<ProjectOperatorRevokedEvent.InputTuple, ProjectOperatorRevokedEvent.OutputTuple, ProjectOperatorRevokedEvent.OutputObject>;
|
|
983
|
+
ProjectOperatorRevoked: TypedContractEvent<ProjectOperatorRevokedEvent.InputTuple, ProjectOperatorRevokedEvent.OutputTuple, ProjectOperatorRevokedEvent.OutputObject>;
|
|
984
|
+
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
985
|
+
RoleAdminChanged: TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
986
|
+
"RoleGranted(bytes32,address,address)": TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
987
|
+
RoleGranted: TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
988
|
+
"RoleRevoked(bytes32,address,address)": TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
989
|
+
RoleRevoked: TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
990
|
+
"TransferBatch(address,address,address,uint256[],uint256[])": TypedContractEvent<TransferBatchEvent.InputTuple, TransferBatchEvent.OutputTuple, TransferBatchEvent.OutputObject>;
|
|
991
|
+
TransferBatch: TypedContractEvent<TransferBatchEvent.InputTuple, TransferBatchEvent.OutputTuple, TransferBatchEvent.OutputObject>;
|
|
992
|
+
"TransferSingle(address,address,address,uint256,uint256)": TypedContractEvent<TransferSingleEvent.InputTuple, TransferSingleEvent.OutputTuple, TransferSingleEvent.OutputObject>;
|
|
993
|
+
TransferSingle: TypedContractEvent<TransferSingleEvent.InputTuple, TransferSingleEvent.OutputTuple, TransferSingleEvent.OutputObject>;
|
|
994
|
+
"URI(string,uint256)": TypedContractEvent<URIEvent.InputTuple, URIEvent.OutputTuple, URIEvent.OutputObject>;
|
|
995
|
+
URI: TypedContractEvent<URIEvent.InputTuple, URIEvent.OutputTuple, URIEvent.OutputObject>;
|
|
996
|
+
"Upgraded(address)": TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
997
|
+
Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
998
|
+
};
|
|
999
|
+
}
|