/* Autogenerated file, do not edit! */ /* eslint-disable */ import { Contract, ContractBase, DeployMethod, EventSelector, Fr, loadContractArtifact, loadContractArtifactForPublic, PublicKeys } from '@aztec/aztec.js';
import TestLogContractArtifactJson from '../artifacts/test_log_contract-TestLog.json' with {
    type: 'json'
};
export const TestLogContractArtifact = loadContractArtifact(TestLogContractArtifactJson);
/**
 * Type-safe interface for contract TestLog;
 */ export class TestLogContract extends ContractBase {
    constructor(instance, wallet){
        super(instance, TestLogContractArtifact, 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 promise that resolves to a new Contract instance.
   */ static async at(address, wallet) {
        return Contract.at(address, TestLogContract.artifact, wallet);
    }
    /**
   * Creates a tx to deploy a new instance of this contract.
   */ static deploy(wallet) {
        return new DeployMethod(PublicKeys.default(), wallet, TestLogContractArtifact, TestLogContract.at, Array.from(arguments).slice(1));
    }
    /**
   * Creates a tx to deploy a new instance of this contract using the specified public keys hash to derive the address.
   */ static deployWithPublicKeys(publicKeys, wallet) {
        return new DeployMethod(publicKeys, wallet, TestLogContractArtifact, TestLogContract.at, Array.from(arguments).slice(2));
    }
    /**
   * Creates a tx to deploy a new instance of this contract using the specified constructor method.
   */ static deployWithOpts(opts, ...args) {
        return new DeployMethod(opts.publicKeys ?? PublicKeys.default(), opts.wallet, TestLogContractArtifact, TestLogContract.at, Array.from(arguments).slice(1), opts.method ?? 'constructor');
    }
    /**
   * Returns this contract's artifact.
   */ static get artifact() {
        return TestLogContractArtifact;
    }
    /**
   * Returns this contract's artifact with public bytecode.
   */ static get artifactForPublic() {
        return loadContractArtifactForPublic(TestLogContractArtifactJson);
    }
    static get storage() {
        return {
            example_set: {
                slot: new Fr(1n)
            }
        };
    }
    static get events() {
        return {
            ExampleEvent1: {
                abiType: {
                    "kind": "struct",
                    "fields": [
                        {
                            "name": "value2",
                            "type": {
                                "kind": "struct",
                                "fields": [
                                    {
                                        "name": "inner",
                                        "type": {
                                            "kind": "field"
                                        }
                                    }
                                ],
                                "path": "aztec::protocol_types::address::aztec_address::AztecAddress"
                            }
                        },
                        {
                            "name": "value3",
                            "type": {
                                "kind": "integer",
                                "sign": "unsigned",
                                "width": 8
                            }
                        }
                    ],
                    "path": "TestLog::ExampleEvent1"
                },
                eventSelector: EventSelector.fromString("0x4dc4df75"),
                fieldNames: [
                    "value2",
                    "value3"
                ]
            },
            ExampleEvent0: {
                abiType: {
                    "kind": "struct",
                    "fields": [
                        {
                            "name": "value0",
                            "type": {
                                "kind": "field"
                            }
                        },
                        {
                            "name": "value1",
                            "type": {
                                "kind": "field"
                            }
                        }
                    ],
                    "path": "TestLog::ExampleEvent0"
                },
                eventSelector: EventSelector.fromString("0xd45c041b"),
                fieldNames: [
                    "value0",
                    "value1"
                ]
            }
        };
    }
}
