// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.

package bindings

import (
	"errors"
	"math/big"
	"strings"

	ethereum "github.com/ethereum/go-ethereum"
	"github.com/ethereum/go-ethereum/accounts/abi"
	"github.com/ethereum/go-ethereum/accounts/abi/bind"
	"github.com/ethereum/go-ethereum/common"
	"github.com/ethereum/go-ethereum/core/types"
	"github.com/ethereum/go-ethereum/event"
)

// Reference imports to suppress errors if they are not otherwise used.
var (
	_ = errors.New
	_ = big.NewInt
	_ = strings.NewReader
	_ = ethereum.NotFound
	_ = bind.Bind
	_ = common.Big1
	_ = types.BloomLookup
	_ = event.NewSubscription
)

// AlphabetVM2MetaData contains all meta data concerning the AlphabetVM2 contract.
var AlphabetVM2MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"Claim\",\"name\":\"_absolutePrestate\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"oracle\",\"outputs\":[{\"internalType\":\"contractIPreimageOracle\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_stateData\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"_localContext\",\"type\":\"bytes32\"}],\"name\":\"step\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"postState_\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: " ",
}

// AlphabetVM2ABI is the input ABI used to generate the binding from.
// Deprecated: Use AlphabetVM2MetaData.ABI instead.
var AlphabetVM2ABI = AlphabetVM2MetaData.ABI

// AlphabetVM2Bin is the compiled bytecode used for deploying new contracts.
// Deprecated: Use AlphabetVM2MetaData.Bin instead.
var AlphabetVM2Bin = AlphabetVM2MetaData.Bin

// DeployAlphabetVM2 deploys a new Ethereum contract, binding an instance of AlphabetVM2 to it.
func DeployAlphabetVM2(auth *bind.TransactOpts, backend bind.ContractBackend, _absolutePrestate [32]byte) (common.Address, *types.Transaction, *AlphabetVM2, error) {
	parsed, err := AlphabetVM2MetaData.GetAbi()
	if err != nil {
		return common.Address{}, nil, nil, err
	}
	if parsed == nil {
		return common.Address{}, nil, nil, errors.New("GetABI returned nil")
	}

	address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(AlphabetVM2Bin), backend, _absolutePrestate)
	if err != nil {
		return common.Address{}, nil, nil, err
	}
	return address, tx, &AlphabetVM2{AlphabetVM2Caller: AlphabetVM2Caller{contract: contract}, AlphabetVM2Transactor: AlphabetVM2Transactor{contract: contract}, AlphabetVM2Filterer: AlphabetVM2Filterer{contract: contract}}, nil
}

// AlphabetVM2 is an auto generated Go binding around an Ethereum contract.
type AlphabetVM2 struct {
	AlphabetVM2Caller     // Read-only binding to the contract
	AlphabetVM2Transactor // Write-only binding to the contract
	AlphabetVM2Filterer   // Log filterer for contract events
}

// AlphabetVM2Caller is an auto generated read-only Go binding around an Ethereum contract.
type AlphabetVM2Caller struct {
	contract *bind.BoundContract // Generic contract wrapper for the low level calls
}

// AlphabetVM2Transactor is an auto generated write-only Go binding around an Ethereum contract.
type AlphabetVM2Transactor struct {
	contract *bind.BoundContract // Generic contract wrapper for the low level calls
}

// AlphabetVM2Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
type AlphabetVM2Filterer struct {
	contract *bind.BoundContract // Generic contract wrapper for the low level calls
}

// AlphabetVM2Session is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type AlphabetVM2Session struct {
	Contract     *AlphabetVM2      // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

// AlphabetVM2CallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type AlphabetVM2CallerSession struct {
	Contract *AlphabetVM2Caller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts      // Call options to use throughout this session
}

// AlphabetVM2TransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type AlphabetVM2TransactorSession struct {
	Contract     *AlphabetVM2Transactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts      // Transaction auth options to use throughout this session
}

// AlphabetVM2Raw is an auto generated low-level Go binding around an Ethereum contract.
type AlphabetVM2Raw struct {
	Contract *AlphabetVM2 // Generic contract binding to access the raw methods on
}

// AlphabetVM2CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type AlphabetVM2CallerRaw struct {
	Contract *AlphabetVM2Caller // Generic read-only contract binding to access the raw methods on
}

// AlphabetVM2TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type AlphabetVM2TransactorRaw struct {
	Contract *AlphabetVM2Transactor // Generic write-only contract binding to access the raw methods on
}

// NewAlphabetVM2 creates a new instance of AlphabetVM2, bound to a specific deployed contract.
func NewAlphabetVM2(address common.Address, backend bind.ContractBackend) (*AlphabetVM2, error) {
	contract, err := bindAlphabetVM2(address, backend, backend, backend)
	if err != nil {
		return nil, err
	}
	return &AlphabetVM2{AlphabetVM2Caller: AlphabetVM2Caller{contract: contract}, AlphabetVM2Transactor: AlphabetVM2Transactor{contract: contract}, AlphabetVM2Filterer: AlphabetVM2Filterer{contract: contract}}, nil
}

// NewAlphabetVM2Caller creates a new read-only instance of AlphabetVM2, bound to a specific deployed contract.
func NewAlphabetVM2Caller(address common.Address, caller bind.ContractCaller) (*AlphabetVM2Caller, error) {
	contract, err := bindAlphabetVM2(address, caller, nil, nil)
	if err != nil {
		return nil, err
	}
	return &AlphabetVM2Caller{contract: contract}, nil
}

// NewAlphabetVM2Transactor creates a new write-only instance of AlphabetVM2, bound to a specific deployed contract.
func NewAlphabetVM2Transactor(address common.Address, transactor bind.ContractTransactor) (*AlphabetVM2Transactor, error) {
	contract, err := bindAlphabetVM2(address, nil, transactor, nil)
	if err != nil {
		return nil, err
	}
	return &AlphabetVM2Transactor{contract: contract}, nil
}

// NewAlphabetVM2Filterer creates a new log filterer instance of AlphabetVM2, bound to a specific deployed contract.
func NewAlphabetVM2Filterer(address common.Address, filterer bind.ContractFilterer) (*AlphabetVM2Filterer, error) {
	contract, err := bindAlphabetVM2(address, nil, nil, filterer)
	if err != nil {
		return nil, err
	}
	return &AlphabetVM2Filterer{contract: contract}, nil
}

// bindAlphabetVM2 binds a generic wrapper to an already deployed contract.
func bindAlphabetVM2(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
	parsed, err := abi.JSON(strings.NewReader(AlphabetVM2ABI))
	if err != nil {
		return nil, err
	}
	return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
}

// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_AlphabetVM2 *AlphabetVM2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
	return _AlphabetVM2.Contract.AlphabetVM2Caller.contract.Call(opts, result, method, params...)
}

// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_AlphabetVM2 *AlphabetVM2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
	return _AlphabetVM2.Contract.AlphabetVM2Transactor.contract.Transfer(opts)
}

// Transact invokes the (paid) contract method with params as input values.
func (_AlphabetVM2 *AlphabetVM2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
	return _AlphabetVM2.Contract.AlphabetVM2Transactor.contract.Transact(opts, method, params...)
}

// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_AlphabetVM2 *AlphabetVM2CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
	return _AlphabetVM2.Contract.contract.Call(opts, result, method, params...)
}

// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_AlphabetVM2 *AlphabetVM2TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
	return _AlphabetVM2.Contract.contract.Transfer(opts)
}

// Transact invokes the (paid) contract method with params as input values.
func (_AlphabetVM2 *AlphabetVM2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
	return _AlphabetVM2.Contract.contract.Transact(opts, method, params...)
}

// Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.
//
// Solidity: function oracle() view returns(address)
func (_AlphabetVM2 *AlphabetVM2Caller) Oracle(opts *bind.CallOpts) (common.Address, error) {
	var out []interface{}
	err := _AlphabetVM2.contract.Call(opts, &out, "oracle")

	if err != nil {
		return *new(common.Address), err
	}

	out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)

	return out0, err

}

// Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.
//
// Solidity: function oracle() view returns(address)
func (_AlphabetVM2 *AlphabetVM2Session) Oracle() (common.Address, error) {
	return _AlphabetVM2.Contract.Oracle(&_AlphabetVM2.CallOpts)
}

// Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.
//
// Solidity: function oracle() view returns(address)
func (_AlphabetVM2 *AlphabetVM2CallerSession) Oracle() (common.Address, error) {
	return _AlphabetVM2.Contract.Oracle(&_AlphabetVM2.CallOpts)
}

// Step is a paid mutator transaction binding the contract method 0xe14ced32.
//
// Solidity: function step(bytes _stateData, bytes , bytes32 _localContext) returns(bytes32 postState_)
func (_AlphabetVM2 *AlphabetVM2Transactor) Step(opts *bind.TransactOpts, _stateData []byte, arg1 []byte, _localContext [32]byte) (*types.Transaction, error) {
	return _AlphabetVM2.contract.Transact(opts, "step", _stateData, arg1, _localContext)
}

// Step is a paid mutator transaction binding the contract method 0xe14ced32.
//
// Solidity: function step(bytes _stateData, bytes , bytes32 _localContext) returns(bytes32 postState_)
func (_AlphabetVM2 *AlphabetVM2Session) Step(_stateData []byte, arg1 []byte, _localContext [32]byte) (*types.Transaction, error) {
	return _AlphabetVM2.Contract.Step(&_AlphabetVM2.TransactOpts, _stateData, arg1, _localContext)
}

// Step is a paid mutator transaction binding the contract method 0xe14ced32.
//
// Solidity: function step(bytes _stateData, bytes , bytes32 _localContext) returns(bytes32 postState_)
func (_AlphabetVM2 *AlphabetVM2TransactorSession) Step(_stateData []byte, arg1 []byte, _localContext [32]byte) (*types.Transaction, error) {
	return _AlphabetVM2.Contract.Step(&_AlphabetVM2.TransactOpts, _stateData, arg1, _localContext)
}
