channel

package
v0.0.0-...-3cbc610 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChannelABI = ChannelMetaData.ABI

ChannelABI is the input ABI used to generate the binding from. Deprecated: Use ChannelMetaData.ABI instead.

View Source
var ChannelMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"addresspayable\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"authorizer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"timeout\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"channelTimeout\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"date\",\"type\":\"string\"}],\"name\":\"closeChannel\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChannelRecipient\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChannelSender\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChannelTimeout\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"proof\",\"type\":\"bytes32\"}],\"name\":\"getSignatures\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStartDate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

ChannelMetaData contains all meta data concerning the Channel contract.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	ChannelCaller     // Read-only binding to the contract
	ChannelTransactor // Write-only binding to the contract
	ChannelFilterer   // Log filterer for contract events
}

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

func NewChannel

func NewChannel(address common.Address, backend bind.ContractBackend) (*Channel, error)

NewChannel creates a new instance of Channel, bound to a specific deployed contract.

type ChannelCaller

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

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

func NewChannelCaller

func NewChannelCaller(address common.Address, caller bind.ContractCaller) (*ChannelCaller, error)

NewChannelCaller creates a new read-only instance of Channel, bound to a specific deployed contract.

func (*ChannelCaller) GetChannelRecipient

func (_Channel *ChannelCaller) GetChannelRecipient(opts *bind.CallOpts) (common.Address, error)

GetChannelRecipient is a free data retrieval call binding the contract method 0x7b909318.

Solidity: function getChannelRecipient() view returns(address)

func (*ChannelCaller) GetChannelSender

func (_Channel *ChannelCaller) GetChannelSender(opts *bind.CallOpts) (common.Address, error)

GetChannelSender is a free data retrieval call binding the contract method 0x08ca3871.

Solidity: function getChannelSender() view returns(address)

func (*ChannelCaller) GetChannelTimeout

func (_Channel *ChannelCaller) GetChannelTimeout(opts *bind.CallOpts) (*big.Int, error)

GetChannelTimeout is a free data retrieval call binding the contract method 0x9d9ecd78.

Solidity: function getChannelTimeout() view returns(uint256)

func (*ChannelCaller) GetSignatures

func (_Channel *ChannelCaller) GetSignatures(opts *bind.CallOpts, proof [32]byte) (common.Address, error)

GetSignatures is a free data retrieval call binding the contract method 0x9bc51068.

Solidity: function getSignatures(bytes32 proof) view returns(address)

func (*ChannelCaller) GetStartDate

func (_Channel *ChannelCaller) GetStartDate(opts *bind.CallOpts) (*big.Int, error)

GetStartDate is a free data retrieval call binding the contract method 0x78f305c6.

Solidity: function getStartDate() view returns(uint256)

type ChannelCallerRaw

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

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

func (*ChannelCallerRaw) Call

func (_Channel *ChannelCallerRaw) 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 ChannelCallerSession

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

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

func (*ChannelCallerSession) GetChannelRecipient

func (_Channel *ChannelCallerSession) GetChannelRecipient() (common.Address, error)

GetChannelRecipient is a free data retrieval call binding the contract method 0x7b909318.

Solidity: function getChannelRecipient() view returns(address)

func (*ChannelCallerSession) GetChannelSender

func (_Channel *ChannelCallerSession) GetChannelSender() (common.Address, error)

GetChannelSender is a free data retrieval call binding the contract method 0x08ca3871.

Solidity: function getChannelSender() view returns(address)

func (*ChannelCallerSession) GetChannelTimeout

func (_Channel *ChannelCallerSession) GetChannelTimeout() (*big.Int, error)

GetChannelTimeout is a free data retrieval call binding the contract method 0x9d9ecd78.

Solidity: function getChannelTimeout() view returns(uint256)

func (*ChannelCallerSession) GetSignatures

func (_Channel *ChannelCallerSession) GetSignatures(proof [32]byte) (common.Address, error)

GetSignatures is a free data retrieval call binding the contract method 0x9bc51068.

Solidity: function getSignatures(bytes32 proof) view returns(address)

func (*ChannelCallerSession) GetStartDate

func (_Channel *ChannelCallerSession) GetStartDate() (*big.Int, error)

GetStartDate is a free data retrieval call binding the contract method 0x78f305c6.

Solidity: function getStartDate() view returns(uint256)

type ChannelFilterer

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

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

func NewChannelFilterer

func NewChannelFilterer(address common.Address, filterer bind.ContractFilterer) (*ChannelFilterer, error)

NewChannelFilterer creates a new log filterer instance of Channel, bound to a specific deployed contract.

type ChannelRaw

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

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

func (*ChannelRaw) Call

func (_Channel *ChannelRaw) 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 (*ChannelRaw) Transact

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

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

func (*ChannelRaw) Transfer

func (_Channel *ChannelRaw) 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 ChannelSession

type ChannelSession struct {
	Contract     *Channel          // 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
}

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

func (*ChannelSession) ChannelTimeout

func (_Channel *ChannelSession) ChannelTimeout() (*types.Transaction, error)

ChannelTimeout is a paid mutator transaction binding the contract method 0x2ef2d55e.

Solidity: function channelTimeout() returns()

func (*ChannelSession) CloseChannel

func (_Channel *ChannelSession) CloseChannel(v uint8, r [32]byte, s [32]byte, value *big.Int, date string) (*types.Transaction, error)

CloseChannel is a paid mutator transaction binding the contract method 0x1f43d633.

Solidity: function closeChannel(uint8 v, bytes32 r, bytes32 s, uint256 value, string date) returns()

func (*ChannelSession) GetChannelRecipient

func (_Channel *ChannelSession) GetChannelRecipient() (common.Address, error)

GetChannelRecipient is a free data retrieval call binding the contract method 0x7b909318.

Solidity: function getChannelRecipient() view returns(address)

func (*ChannelSession) GetChannelSender

func (_Channel *ChannelSession) GetChannelSender() (common.Address, error)

GetChannelSender is a free data retrieval call binding the contract method 0x08ca3871.

Solidity: function getChannelSender() view returns(address)

func (*ChannelSession) GetChannelTimeout

func (_Channel *ChannelSession) GetChannelTimeout() (*big.Int, error)

GetChannelTimeout is a free data retrieval call binding the contract method 0x9d9ecd78.

Solidity: function getChannelTimeout() view returns(uint256)

func (*ChannelSession) GetSignatures

func (_Channel *ChannelSession) GetSignatures(proof [32]byte) (common.Address, error)

GetSignatures is a free data retrieval call binding the contract method 0x9bc51068.

Solidity: function getSignatures(bytes32 proof) view returns(address)

func (*ChannelSession) GetStartDate

func (_Channel *ChannelSession) GetStartDate() (*big.Int, error)

GetStartDate is a free data retrieval call binding the contract method 0x78f305c6.

Solidity: function getStartDate() view returns(uint256)

type ChannelTransactor

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

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

func NewChannelTransactor

func NewChannelTransactor(address common.Address, transactor bind.ContractTransactor) (*ChannelTransactor, error)

NewChannelTransactor creates a new write-only instance of Channel, bound to a specific deployed contract.

func (*ChannelTransactor) ChannelTimeout

func (_Channel *ChannelTransactor) ChannelTimeout(opts *bind.TransactOpts) (*types.Transaction, error)

ChannelTimeout is a paid mutator transaction binding the contract method 0x2ef2d55e.

Solidity: function channelTimeout() returns()

func (*ChannelTransactor) CloseChannel

func (_Channel *ChannelTransactor) CloseChannel(opts *bind.TransactOpts, v uint8, r [32]byte, s [32]byte, value *big.Int, date string) (*types.Transaction, error)

CloseChannel is a paid mutator transaction binding the contract method 0x1f43d633.

Solidity: function closeChannel(uint8 v, bytes32 r, bytes32 s, uint256 value, string date) returns()

type ChannelTransactorRaw

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

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

func (*ChannelTransactorRaw) Transact

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

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

func (*ChannelTransactorRaw) Transfer

func (_Channel *ChannelTransactorRaw) 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 ChannelTransactorSession

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

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

func (*ChannelTransactorSession) ChannelTimeout

func (_Channel *ChannelTransactorSession) ChannelTimeout() (*types.Transaction, error)

ChannelTimeout is a paid mutator transaction binding the contract method 0x2ef2d55e.

Solidity: function channelTimeout() returns()

func (*ChannelTransactorSession) CloseChannel

func (_Channel *ChannelTransactorSession) CloseChannel(v uint8, r [32]byte, s [32]byte, value *big.Int, date string) (*types.Transaction, error)

CloseChannel is a paid mutator transaction binding the contract method 0x1f43d633.

Solidity: function closeChannel(uint8 v, bytes32 r, bytes32 s, uint256 value, string date) returns()

Jump to

Keyboard shortcuts

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