12345import type BN from "bn.js";6import type { ContractOptions } from "web3-eth-contract";7import type { EventLog } from "web3-core";8import type { EventEmitter } from "events";9import type {10 Callback,11 NonPayableTransactionObject,12 BlockType,13 ContractEventLog,14 BaseContract,15} from "./types.js";1617export interface EventOptions {18 filter?: object;19 fromBlock?: BlockType;20 topics?: string[];21}2223export type AllChildrenRejected = ContractEventLog<{24 tokenId: string;25 0: string;26}>;27export type Approval = ContractEventLog<{28 owner: string;29 approved: string;30 tokenId: string;31 0: string;32 1: string;33 2: string;34}>;35export type ApprovalForAll = ContractEventLog<{36 owner: string;37 operator: string;38 approved: boolean;39 0: string;40 1: string;41 2: boolean;42}>;43export type ChildAccepted = ContractEventLog<{44 tokenId: string;45 childIndex: string;46 childAddress: string;47 childId: string;48 0: string;49 1: string;50 2: string;51 3: string;52}>;53export type ChildProposed = ContractEventLog<{54 tokenId: string;55 childIndex: string;56 childAddress: string;57 childId: string;58 0: string;59 1: string;60 2: string;61 3: string;62}>;63export type ChildTransferred = ContractEventLog<{64 tokenId: string;65 childIndex: string;66 childAddress: string;67 childId: string;68 fromPending: boolean;69 toZero: boolean;70 0: string;71 1: string;72 2: string;73 3: string;74 4: boolean;75 5: boolean;76}>;77export type NestTransfer = ContractEventLog<{78 from: string;79 to: string;80 fromTokenId: string;81 toTokenId: string;82 tokenId: string;83 0: string;84 1: string;85 2: string;86 3: string;87 4: string;88}>;89export type Transfer = ContractEventLog<{90 from: string;91 to: string;92 tokenId: string;93 0: string;94 1: string;95 2: string;96}>;9798export interface RMRKNestableMintable extends BaseContract {99 constructor(100 jsonInterface: any[],101 address?: string,102 options?: ContractOptions103 ): RMRKNestableMintable;104 clone(): RMRKNestableMintable;105 methods: {106 RMRK_INTERFACE(): NonPayableTransactionObject<string>;107108 VERSION(): NonPayableTransactionObject<string>;109110 acceptChild(111 parentId: number | string | BN,112 childIndex: number | string | BN,113 childAddress: string,114 childId: number | string | BN115 ): NonPayableTransactionObject<void>;116117 addChild(118 parentId: number | string | BN,119 childId: number | string | BN,120 data: string | number[]121 ): NonPayableTransactionObject<void>;122123 approve(124 to: string,125 tokenId: number | string | BN126 ): NonPayableTransactionObject<void>;127128 balanceOf(owner: string): NonPayableTransactionObject<string>;129130 "burn(uint256)"(131 tokenId: number | string | BN132 ): NonPayableTransactionObject<void>;133134 "burn(uint256,uint256)"(135 tokenId: number | string | BN,136 maxChildrenBurns: number | string | BN137 ): NonPayableTransactionObject<string>;138139 childOf(140 parentId: number | string | BN,141 index: number | string | BN142 ): NonPayableTransactionObject<[string, string]>;143144 childrenOf(145 parentId: number | string | BN146 ): NonPayableTransactionObject<[string, string][]>;147148 directOwnerOf(tokenId: number | string | BN): NonPayableTransactionObject<{149 0: string;150 1: string;151 2: boolean;152 }>;153154 getApproved(155 tokenId: number | string | BN156 ): NonPayableTransactionObject<string>;157158 isApprovedForAll(159 owner: string,160 operator: string161 ): NonPayableTransactionObject<boolean>;162163 mint(164 to: string,165 tokenId: number | string | BN166 ): NonPayableTransactionObject<void>;167168 name(): NonPayableTransactionObject<string>;169170 nestMint(171 to: string,172 tokenId: number | string | BN,173 destinationId: number | string | BN174 ): NonPayableTransactionObject<void>;175176 nestTransfer(177 to: string,178 tokenId: number | string | BN,179 destinationId: number | string | BN180 ): NonPayableTransactionObject<void>;181182 nestTransferFrom(183 from: string,184 to: string,185 tokenId: number | string | BN,186 destinationId: number | string | BN,187 data: string | number[]188 ): NonPayableTransactionObject<void>;189190 onERC721Received(191 _operator: string,192 _from: string,193 _tokenId: number | string | BN,194 _data: string | number[]195 ): NonPayableTransactionObject<string>;196197 ownerOf(tokenId: number | string | BN): NonPayableTransactionObject<string>;198199 pendingChildOf(200 parentId: number | string | BN,201 index: number | string | BN202 ): NonPayableTransactionObject<[string, string]>;203204 pendingChildrenOf(205 parentId: number | string | BN206 ): NonPayableTransactionObject<[string, string][]>;207208 rejectAllChildren(209 tokenId: number | string | BN,210 maxRejections: number | string | BN211 ): NonPayableTransactionObject<void>;212213 safeMint(to: string): NonPayableTransactionObject<void>;214215 "safeTransferFrom(address,address,uint256)"(216 from: string,217 to: string,218 tokenId: number | string | BN219 ): NonPayableTransactionObject<void>;220221 "safeTransferFrom(address,address,uint256,bytes)"(222 from: string,223 to: string,224 tokenId: number | string | BN,225 data: string | number[]226 ): NonPayableTransactionObject<void>;227228 setApprovalForAll(229 operator: string,230 approved: boolean231 ): NonPayableTransactionObject<void>;232233 supportsInterface(234 interfaceId: string | number[]235 ): NonPayableTransactionObject<boolean>;236237 symbol(): NonPayableTransactionObject<string>;238239 transfer(240 to: string,241 tokenId: number | string | BN242 ): NonPayableTransactionObject<void>;243244 transferChild(245 tokenId: number | string | BN,246 to: string,247 destinationId: number | string | BN,248 childIndex: number | string | BN,249 childAddress: string,250 childId: number | string | BN,251 isPending: boolean,252 data: string | number[]253 ): NonPayableTransactionObject<void>;254255 transferFrom(256 from: string,257 to: string,258 tokenId: number | string | BN259 ): NonPayableTransactionObject<void>;260 };261 events: {262 AllChildrenRejected(cb?: Callback<AllChildrenRejected>): EventEmitter;263 AllChildrenRejected(264 options?: EventOptions,265 cb?: Callback<AllChildrenRejected>266 ): EventEmitter;267268 Approval(cb?: Callback<Approval>): EventEmitter;269 Approval(options?: EventOptions, cb?: Callback<Approval>): EventEmitter;270271 ApprovalForAll(cb?: Callback<ApprovalForAll>): EventEmitter;272 ApprovalForAll(273 options?: EventOptions,274 cb?: Callback<ApprovalForAll>275 ): EventEmitter;276277 ChildAccepted(cb?: Callback<ChildAccepted>): EventEmitter;278 ChildAccepted(279 options?: EventOptions,280 cb?: Callback<ChildAccepted>281 ): EventEmitter;282283 ChildProposed(cb?: Callback<ChildProposed>): EventEmitter;284 ChildProposed(285 options?: EventOptions,286 cb?: Callback<ChildProposed>287 ): EventEmitter;288289 ChildTransferred(cb?: Callback<ChildTransferred>): EventEmitter;290 ChildTransferred(291 options?: EventOptions,292 cb?: Callback<ChildTransferred>293 ): EventEmitter;294295 NestTransfer(cb?: Callback<NestTransfer>): EventEmitter;296 NestTransfer(297 options?: EventOptions,298 cb?: Callback<NestTransfer>299 ): EventEmitter;300301 Transfer(cb?: Callback<Transfer>): EventEmitter;302 Transfer(options?: EventOptions, cb?: Callback<Transfer>): EventEmitter;303304 allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;305 };306307 once(event: "AllChildrenRejected", cb: Callback<AllChildrenRejected>): void;308 once(309 event: "AllChildrenRejected",310 options: EventOptions,311 cb: Callback<AllChildrenRejected>312 ): void;313314 once(event: "Approval", cb: Callback<Approval>): void;315 once(event: "Approval", options: EventOptions, cb: Callback<Approval>): void;316317 once(event: "ApprovalForAll", cb: Callback<ApprovalForAll>): void;318 once(319 event: "ApprovalForAll",320 options: EventOptions,321 cb: Callback<ApprovalForAll>322 ): void;323324 once(event: "ChildAccepted", cb: Callback<ChildAccepted>): void;325 once(326 event: "ChildAccepted",327 options: EventOptions,328 cb: Callback<ChildAccepted>329 ): void;330331 once(event: "ChildProposed", cb: Callback<ChildProposed>): void;332 once(333 event: "ChildProposed",334 options: EventOptions,335 cb: Callback<ChildProposed>336 ): void;337338 once(event: "ChildTransferred", cb: Callback<ChildTransferred>): void;339 once(340 event: "ChildTransferred",341 options: EventOptions,342 cb: Callback<ChildTransferred>343 ): void;344345 once(event: "NestTransfer", cb: Callback<NestTransfer>): void;346 once(347 event: "NestTransfer",348 options: EventOptions,349 cb: Callback<NestTransfer>350 ): void;351352 once(event: "Transfer", cb: Callback<Transfer>): void;353 once(event: "Transfer", options: EventOptions, cb: Callback<Transfer>): void;354}