
/* Autogenerated file, do not edit! */

/* eslint-disable */
import {
  type AbiType,
  AztecAddress,
  type AztecAddressLike,
  CompleteAddress,
  Contract,
  type ContractArtifact,
  ContractBase,
  ContractFunctionInteraction,
  type ContractInstanceWithAddress,
  type ContractMethod,
  type ContractStorageLayout,
  decodeFromAbi,
  DeployMethod,
  EthAddress,
  type EthAddressLike,
  EventSelector,
  type FieldLike,
  Fr,
  type FunctionSelectorLike,
  loadContractArtifact,
  loadContractArtifactForPublic,
  type NoirCompiledContract,
  Point,
  type PublicKey,
  PublicKeys,
  type Wallet,
  type U128Like,
  type WrappedFieldLike,
} from '@aztec/aztec.js';
import ReturningTupleContractArtifactJson from '../artifacts/returning_tuple_contract-ReturningTuple.json' with { type: 'json' };
export const ReturningTupleContractArtifact = loadContractArtifact(ReturningTupleContractArtifactJson as NoirCompiledContract);



/**
 * Type-safe interface for contract ReturningTuple;
 */
export class ReturningTupleContract extends ContractBase {
  
  private constructor(
    instance: ContractInstanceWithAddress,
    wallet: Wallet,
  ) {
    super(instance, ReturningTupleContractArtifact, 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.
   */
  public static async at(
    address: AztecAddress,
    wallet: Wallet,
  ) {
    return Contract.at(address, ReturningTupleContract.artifact, wallet) as Promise<ReturningTupleContract>;
  }

  
  /**
   * Creates a tx to deploy a new instance of this contract.
   */
  public static deploy(wallet: Wallet, ) {
    return new DeployMethod<ReturningTupleContract>(PublicKeys.default(), wallet, ReturningTupleContractArtifact, ReturningTupleContract.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.
   */
  public static deployWithPublicKeys(publicKeys: PublicKeys, wallet: Wallet, ) {
    return new DeployMethod<ReturningTupleContract>(publicKeys, wallet, ReturningTupleContractArtifact, ReturningTupleContract.at, Array.from(arguments).slice(2));
  }

  /**
   * Creates a tx to deploy a new instance of this contract using the specified constructor method.
   */
  public static deployWithOpts<M extends keyof ReturningTupleContract['methods']>(
    opts: { publicKeys?: PublicKeys; method?: M; wallet: Wallet },
    ...args: Parameters<ReturningTupleContract['methods'][M]>
  ) {
    return new DeployMethod<ReturningTupleContract>(
      opts.publicKeys ?? PublicKeys.default(),
      opts.wallet,
      ReturningTupleContractArtifact,
      ReturningTupleContract.at,
      Array.from(arguments).slice(1),
      opts.method ?? 'constructor',
    );
  }
  

  
  /**
   * Returns this contract's artifact.
   */
  public static get artifact(): ContractArtifact {
    return ReturningTupleContractArtifact;
  }

  /**
   * Returns this contract's artifact with public bytecode.
   */
  public static get artifactForPublic(): ContractArtifact {
    return loadContractArtifactForPublic(ReturningTupleContractArtifactJson as NoirCompiledContract);
  }
  

  

  /** Type-safe wrappers for the public methods exposed by the contract. */
  public declare methods: {
    
    /** fn_that_returns_1() */
    fn_that_returns_1: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** fn_that_returns_1_public() */
    fn_that_returns_1_public: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** fn_that_returns_2() */
    fn_that_returns_2: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** fn_that_returns_2_public() */
    fn_that_returns_2_public: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** fn_that_returns_3() */
    fn_that_returns_3: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** fn_that_returns_3_public() */
    fn_that_returns_3_public: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** fn_that_returns_4() */
    fn_that_returns_4: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** fn_that_returns_4_public() */
    fn_that_returns_4_public: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** fn_that_returns_5() */
    fn_that_returns_5: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** fn_that_returns_5_public() */
    fn_that_returns_5_public: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** fn_that_returns_6() */
    fn_that_returns_6: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** fn_that_returns_6_public() */
    fn_that_returns_6_public: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** process_message(message_ciphertext: struct, message_context: struct) */
    process_message: ((message_ciphertext: FieldLike[], message_context: { tx_hash: FieldLike, unique_note_hashes_in_tx: FieldLike[], first_nullifier_in_tx: FieldLike, recipient: AztecAddressLike }) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** public_dispatch(selector: field) */
    public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** sync_private_state() */
    sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
  };

  
}
