contracts

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

This package contains the contract bindings for Cartesi Rollups.

Index

Constants

This section is empty.

Variables

View Source
var InputBoxABI = InputBoxMetaData.ABI

InputBoxABI is the input ABI used to generate the binding from. Deprecated: Use InputBoxMetaData.ABI instead.

View Source
var InputBoxMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"InputSizeExceedsLimit\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"dapp\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"inputIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"input\",\"type\":\"bytes\"}],\"name\":\"InputAdded\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_dapp\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_input\",\"type\":\"bytes\"}],\"name\":\"addInput\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_dapp\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"getInputHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_dapp\",\"type\":\"address\"}],\"name\":\"getNumberOfInputs\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

InputBoxMetaData contains all meta data concerning the InputBox contract.

Functions

This section is empty.

Types

type InputBox

type InputBox struct {
	InputBoxCaller     // Read-only binding to the contract
	InputBoxTransactor // Write-only binding to the contract
	InputBoxFilterer   // Log filterer for contract events
}

InputBox is an auto generated Go binding around an Ethereum contract.

func NewInputBox

func NewInputBox(address common.Address, backend bind.ContractBackend) (*InputBox, error)

NewInputBox creates a new instance of InputBox, bound to a specific deployed contract.

type InputBoxCaller

type InputBoxCaller struct {
	// contains filtered or unexported fields
}

InputBoxCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewInputBoxCaller

func NewInputBoxCaller(address common.Address, caller bind.ContractCaller) (*InputBoxCaller, error)

NewInputBoxCaller creates a new read-only instance of InputBox, bound to a specific deployed contract.

func (*InputBoxCaller) GetInputHash

func (_InputBox *InputBoxCaller) GetInputHash(opts *bind.CallOpts, _dapp common.Address, _index *big.Int) ([32]byte, error)

GetInputHash is a free data retrieval call binding the contract method 0x677087c9.

Solidity: function getInputHash(address _dapp, uint256 _index) view returns(bytes32)

func (*InputBoxCaller) GetNumberOfInputs

func (_InputBox *InputBoxCaller) GetNumberOfInputs(opts *bind.CallOpts, _dapp common.Address) (*big.Int, error)

GetNumberOfInputs is a free data retrieval call binding the contract method 0x61a93c87.

Solidity: function getNumberOfInputs(address _dapp) view returns(uint256)

type InputBoxCallerRaw

type InputBoxCallerRaw struct {
	Contract *InputBoxCaller // Generic read-only contract binding to access the raw methods on
}

InputBoxCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*InputBoxCallerRaw) Call

func (_InputBox *InputBoxCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

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.

type InputBoxCallerSession

type InputBoxCallerSession struct {
	Contract *InputBoxCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts   // Call options to use throughout this session
}

InputBoxCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*InputBoxCallerSession) GetInputHash

func (_InputBox *InputBoxCallerSession) GetInputHash(_dapp common.Address, _index *big.Int) ([32]byte, error)

GetInputHash is a free data retrieval call binding the contract method 0x677087c9.

Solidity: function getInputHash(address _dapp, uint256 _index) view returns(bytes32)

func (*InputBoxCallerSession) GetNumberOfInputs

func (_InputBox *InputBoxCallerSession) GetNumberOfInputs(_dapp common.Address) (*big.Int, error)

GetNumberOfInputs is a free data retrieval call binding the contract method 0x61a93c87.

Solidity: function getNumberOfInputs(address _dapp) view returns(uint256)

type InputBoxFilterer

type InputBoxFilterer struct {
	// contains filtered or unexported fields
}

InputBoxFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewInputBoxFilterer

func NewInputBoxFilterer(address common.Address, filterer bind.ContractFilterer) (*InputBoxFilterer, error)

NewInputBoxFilterer creates a new log filterer instance of InputBox, bound to a specific deployed contract.

func (*InputBoxFilterer) FilterInputAdded

func (_InputBox *InputBoxFilterer) FilterInputAdded(opts *bind.FilterOpts, dapp []common.Address, inputIndex []*big.Int) (*InputBoxInputAddedIterator, error)

FilterInputAdded is a free log retrieval operation binding the contract event 0x6aaa400068bf4ca337265e2a1e1e841f66b8597fd5b452fdc52a44bed28a0784.

Solidity: event InputAdded(address indexed dapp, uint256 indexed inputIndex, address sender, bytes input)

func (*InputBoxFilterer) ParseInputAdded

func (_InputBox *InputBoxFilterer) ParseInputAdded(log types.Log) (*InputBoxInputAdded, error)

ParseInputAdded is a log parse operation binding the contract event 0x6aaa400068bf4ca337265e2a1e1e841f66b8597fd5b452fdc52a44bed28a0784.

Solidity: event InputAdded(address indexed dapp, uint256 indexed inputIndex, address sender, bytes input)

func (*InputBoxFilterer) WatchInputAdded

func (_InputBox *InputBoxFilterer) WatchInputAdded(opts *bind.WatchOpts, sink chan<- *InputBoxInputAdded, dapp []common.Address, inputIndex []*big.Int) (event.Subscription, error)

WatchInputAdded is a free log subscription operation binding the contract event 0x6aaa400068bf4ca337265e2a1e1e841f66b8597fd5b452fdc52a44bed28a0784.

Solidity: event InputAdded(address indexed dapp, uint256 indexed inputIndex, address sender, bytes input)

type InputBoxInputAdded

type InputBoxInputAdded struct {
	Dapp       common.Address
	InputIndex *big.Int
	Sender     common.Address
	Input      []byte
	Raw        types.Log // Blockchain specific contextual infos
}

InputBoxInputAdded represents a InputAdded event raised by the InputBox contract.

type InputBoxInputAddedIterator

type InputBoxInputAddedIterator struct {
	Event *InputBoxInputAdded // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

InputBoxInputAddedIterator is returned from FilterInputAdded and is used to iterate over the raw logs and unpacked data for InputAdded events raised by the InputBox contract.

func (*InputBoxInputAddedIterator) Close

func (it *InputBoxInputAddedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*InputBoxInputAddedIterator) Error

func (it *InputBoxInputAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*InputBoxInputAddedIterator) Next

func (it *InputBoxInputAddedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type InputBoxRaw

type InputBoxRaw struct {
	Contract *InputBox // Generic contract binding to access the raw methods on
}

InputBoxRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*InputBoxRaw) Call

func (_InputBox *InputBoxRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

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 (*InputBoxRaw) Transact

func (_InputBox *InputBoxRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*InputBoxRaw) Transfer

func (_InputBox *InputBoxRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type InputBoxSession

type InputBoxSession struct {
	Contract     *InputBox         // 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
}

InputBoxSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*InputBoxSession) AddInput

func (_InputBox *InputBoxSession) AddInput(_dapp common.Address, _input []byte) (*types.Transaction, error)

AddInput is a paid mutator transaction binding the contract method 0x1789cd63.

Solidity: function addInput(address _dapp, bytes _input) returns(bytes32)

func (*InputBoxSession) GetInputHash

func (_InputBox *InputBoxSession) GetInputHash(_dapp common.Address, _index *big.Int) ([32]byte, error)

GetInputHash is a free data retrieval call binding the contract method 0x677087c9.

Solidity: function getInputHash(address _dapp, uint256 _index) view returns(bytes32)

func (*InputBoxSession) GetNumberOfInputs

func (_InputBox *InputBoxSession) GetNumberOfInputs(_dapp common.Address) (*big.Int, error)

GetNumberOfInputs is a free data retrieval call binding the contract method 0x61a93c87.

Solidity: function getNumberOfInputs(address _dapp) view returns(uint256)

type InputBoxTransactor

type InputBoxTransactor struct {
	// contains filtered or unexported fields
}

InputBoxTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewInputBoxTransactor

func NewInputBoxTransactor(address common.Address, transactor bind.ContractTransactor) (*InputBoxTransactor, error)

NewInputBoxTransactor creates a new write-only instance of InputBox, bound to a specific deployed contract.

func (*InputBoxTransactor) AddInput

func (_InputBox *InputBoxTransactor) AddInput(opts *bind.TransactOpts, _dapp common.Address, _input []byte) (*types.Transaction, error)

AddInput is a paid mutator transaction binding the contract method 0x1789cd63.

Solidity: function addInput(address _dapp, bytes _input) returns(bytes32)

type InputBoxTransactorRaw

type InputBoxTransactorRaw struct {
	Contract *InputBoxTransactor // Generic write-only contract binding to access the raw methods on
}

InputBoxTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*InputBoxTransactorRaw) Transact

func (_InputBox *InputBoxTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*InputBoxTransactorRaw) Transfer

func (_InputBox *InputBoxTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type InputBoxTransactorSession

type InputBoxTransactorSession struct {
	Contract     *InputBoxTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts   // Transaction auth options to use throughout this session
}

InputBoxTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*InputBoxTransactorSession) AddInput

func (_InputBox *InputBoxTransactorSession) AddInput(_dapp common.Address, _input []byte) (*types.Transaction, error)

AddInput is a paid mutator transaction binding the contract method 0x1789cd63.

Solidity: function addInput(address _dapp, bytes _input) returns(bytes32)

Directories

Path Synopsis
This binary generates the Go bindings for the Cartesi Rollups contracts.
This binary generates the Go bindings for the Cartesi Rollups contracts.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL