/* Autogenerated file, do not edit! */
import { EventSelector, loadContractArtifact, loadContractArtifactForPublic } from '@aztec/aztec.js/abi';
import { Contract, ContractBase, DeployMethod } from '@aztec/aztec.js/contracts';
import { Fr } from '@aztec/aztec.js/fields';
import NFTContractArtifactJson from '../../target/nft_contract-NFT.json' with { type: 'json' };
export const NFTContractArtifact = loadContractArtifact(NFTContractArtifactJson);
/**
 * Type-safe interface for contract NFT;
 */
export class NFTContract extends ContractBase {
    constructor(address, wallet) {
        super(address, NFTContractArtifact, wallet);
    }
    /**
     * Creates a contract instance.
     * @param address - The deployed contract's address.
     * @param wallet - The wallet to use when interacting with the contract.
     * @returns A new Contract instance.
     */
    static at(address, wallet) {
        return Contract.at(address, NFTContract.artifact, wallet);
    }
    /**
     * Creates a tx to deploy a new instance of this contract.
     * @param instantiation - Optional address-affecting parameters (salt, deployer / universalDeploy, publicKeys).
     *                       Salt defaults to a random value; the deployer is locked lazily from the first send-time `from`.
     */
    static deploy(wallet, name, symbol, minter, instantiation) {
        return DeployMethod.create(wallet, {
            artifact: NFTContractArtifact,
            postDeployCtor: (instance, wallet) => NFTContract.at(instance.address, wallet),
            args: [name, symbol, minter],
        }, instantiation);
    }
    /**
     * Creates a tx to deploy a new instance of this contract using the specified constructor method.
     */
    static deployWithOpts(opts, ...args) {
        return DeployMethod.create(opts.wallet, {
            artifact: NFTContractArtifact,
            postDeployCtor: (instance, wallet) => NFTContract.at(instance.address, wallet),
            args,
            constructorNameOrArtifact: opts.method ?? 'constructor',
        }, opts.instantiation);
    }
    /**
     * Returns this contract's artifact.
     */
    static get artifact() {
        return NFTContractArtifact;
    }
    /**
     * Returns this contract's artifact with public bytecode.
     */
    static get artifactForPublic() {
        return loadContractArtifactForPublic(NFTContractArtifactJson);
    }
    static get storage() {
        return {
            symbol: {
                slot: new Fr(1n),
            },
            name: {
                slot: new Fr(3n),
            },
            private_nfts: {
                slot: new Fr(5n),
            },
            nft_exists: {
                slot: new Fr(6n),
            },
            public_owners: {
                slot: new Fr(7n),
            },
            minter: {
                slot: new Fr(8n),
            }
        };
    }
    static get events() {
        return {
            Transfer: {
                abiType: {
                    "kind": "struct",
                    "fields": [
                        {
                            "name": "from",
                            "type": {
                                "kind": "struct",
                                "fields": [
                                    {
                                        "name": "inner",
                                        "type": {
                                            "kind": "field"
                                        }
                                    }
                                ],
                                "path": "aztec::protocol_types::address::aztec_address::AztecAddress"
                            }
                        },
                        {
                            "name": "to",
                            "type": {
                                "kind": "struct",
                                "fields": [
                                    {
                                        "name": "inner",
                                        "type": {
                                            "kind": "field"
                                        }
                                    }
                                ],
                                "path": "aztec::protocol_types::address::aztec_address::AztecAddress"
                            }
                        },
                        {
                            "name": "token_id",
                            "type": {
                                "kind": "field"
                            }
                        }
                    ],
                    "path": "NFT::Transfer"
                },
                eventSelector: EventSelector.fromString("0xf4d27d12"),
                fieldNames: ["from", "to", "token_id"],
            }
        };
    }
}
