abi

package
v0.0.0-...-787377c Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IERC20ABI = IERC20MetaData.ABI

IERC20ABI is the input ABI used to generate the binding from. Deprecated: Use IERC20MetaData.ABI instead.

View Source
var IERC20MetaData = &bind.MetaData{
	ABI: "[{\"type\":\"function\",\"name\":\"allowance\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"spender\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"approve\",\"inputs\":[{\"name\":\"spender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"balanceOf\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"decimals\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"name\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"symbol\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"totalSupply\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transfer\",\"inputs\":[{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferFrom\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"Approval\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"spender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Transfer\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false}]",
}

IERC20MetaData contains all meta data concerning the IERC20 contract.

View Source
var MockTokenABI = MockTokenMetaData.ABI

MockTokenABI is the input ABI used to generate the binding from. Deprecated: Use MockTokenMetaData.ABI instead.

View Source
var MockTokenMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"allowance\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"spender\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"approve\",\"inputs\":[{\"name\":\"spender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"balanceOf\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"decimals\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"mint\",\"inputs\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"name\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"symbol\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"totalSupply\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transfer\",\"inputs\":[{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferFrom\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"Approval\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"spender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Transfer\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ERC20InsufficientAllowance\",\"inputs\":[{\"name\":\"spender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"allowance\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"needed\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ERC20InsufficientBalance\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"balance\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"needed\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ERC20InvalidApprover\",\"inputs\":[{\"name\":\"approver\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ERC20InvalidReceiver\",\"inputs\":[{\"name\":\"receiver\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ERC20InvalidSender\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ERC20InvalidSpender\",\"inputs\":[{\"name\":\"spender\",\"type\":\"address\",\"internalType\":\"address\"}]}]",
}

MockTokenMetaData contains all meta data concerning the MockToken contract.

View Source
var PaymentABI = PaymentMetaData.ABI

PaymentABI is the input ABI used to generate the binding from. Deprecated: Use PaymentMetaData.ABI instead.

View Source
var PaymentMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"contractIERC20\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"available\",\"inputs\":[{\"name\":\"publisher\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"provider\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"podId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"channels\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"investedByPublisher\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"withdrawnByProvider\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unlockTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unlockedAt\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"closeChannel\",\"inputs\":[{\"name\":\"provider\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"podId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"createChannel\",\"inputs\":[{\"name\":\"provider\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"podId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"unlockTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"initialAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"deposit\",\"inputs\":[{\"name\":\"provider\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"podId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"token\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIERC20\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"unlock\",\"inputs\":[{\"name\":\"provider\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"podId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"withdraw\",\"inputs\":[{\"name\":\"publisher\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"podId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"transferAddress\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"withdrawUnlocked\",\"inputs\":[{\"name\":\"provider\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"podId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"withdrawUpTo\",\"inputs\":[{\"name\":\"publisher\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"podId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"totalWithdrawAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"transferAddress\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"withdrawn\",\"inputs\":[{\"name\":\"publisher\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"provider\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"podId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"event\",\"name\":\"ChannelClosed\",\"inputs\":[{\"name\":\"publisher\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"provider\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"podId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ChannelCreated\",\"inputs\":[{\"name\":\"publisher\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"provider\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"podId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Deposited\",\"inputs\":[{\"name\":\"publisher\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"provider\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"podId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"depositAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"UnlockTimerStarted\",\"inputs\":[{\"name\":\"publisher\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"provider\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"podId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"unlockedAt\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Unlocked\",\"inputs\":[{\"name\":\"publisher\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"provider\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"podId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"unlockedAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Withdrawn\",\"inputs\":[{\"name\":\"publisher\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"provider\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"podId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"withdrawnAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"AddressEmptyCode\",\"inputs\":[{\"name\":\"target\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"AlreadyExists\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"AmountRequired\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ChannelLocked\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"DoesNotExist\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"FailedCall\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InsufficientBalance\",\"inputs\":[{\"name\":\"balance\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"needed\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"InsufficientFunds\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"SafeERC20FailedOperation\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}]}]",
}

PaymentMetaData contains all meta data concerning the Payment contract.

View Source
var RegistryABI = RegistryMetaData.ABI

RegistryABI is the input ABI used to generate the binding from. Deprecated: Use RegistryMetaData.ABI instead.

View Source
var RegistryMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"function\",\"name\":\"isSubscribed\",\"inputs\":[{\"name\":\"provider\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"tableId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"pricingTableId\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"providers\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"registerPricingTable\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"Prices\",\"type\":\"uint256[5]\",\"internalType\":\"uint256[5]\"},{\"name\":\"cpumodel\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"teeType\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"registerProvider\",\"inputs\":[{\"name\":\"cid\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"subscribe\",\"inputs\":[{\"name\":\"tableId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"subscription\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"unsubscribe\",\"inputs\":[{\"name\":\"tableId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"NewPricingTable\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"Id\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"CpuPrice\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"RamPrice\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"StoragePrice\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"BandwidthEgressPrice\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"BandwidthIngressPrice\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"Cpumodel\",\"type\":\"string\",\"indexed\":false,\"internalType\":\"string\"},{\"name\":\"TeeType\",\"type\":\"string\",\"indexed\":false,\"internalType\":\"string\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Subscribed\",\"inputs\":[{\"name\":\"id\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"provider\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false}]",
}

RegistryMetaData contains all meta data concerning the Registry contract.

Functions

This section is empty.

Types

type IERC20

type IERC20 struct {
	IERC20Caller     // Read-only binding to the contract
	IERC20Transactor // Write-only binding to the contract
	IERC20Filterer   // Log filterer for contract events
}

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

func NewIERC20

func NewIERC20(address common.Address, backend bind.ContractBackend) (*IERC20, error)

NewIERC20 creates a new instance of IERC20, bound to a specific deployed contract.

type IERC20Approval

type IERC20Approval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

IERC20Approval represents a Approval event raised by the IERC20 contract.

type IERC20ApprovalIterator

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

IERC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the IERC20 contract.

func (*IERC20ApprovalIterator) Close

func (it *IERC20ApprovalIterator) Close() error

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

func (*IERC20ApprovalIterator) Error

func (it *IERC20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IERC20ApprovalIterator) Next

func (it *IERC20ApprovalIterator) 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 IERC20Caller

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

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

func NewIERC20Caller

func NewIERC20Caller(address common.Address, caller bind.ContractCaller) (*IERC20Caller, error)

NewIERC20Caller creates a new read-only instance of IERC20, bound to a specific deployed contract.

func (*IERC20Caller) Allowance

func (_IERC20 *IERC20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*IERC20Caller) BalanceOf

func (_IERC20 *IERC20Caller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*IERC20Caller) Decimals

func (_IERC20 *IERC20Caller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*IERC20Caller) Name

func (_IERC20 *IERC20Caller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*IERC20Caller) Symbol

func (_IERC20 *IERC20Caller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*IERC20Caller) TotalSupply

func (_IERC20 *IERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type IERC20CallerRaw

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

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

func (*IERC20CallerRaw) Call

func (_IERC20 *IERC20CallerRaw) 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 IERC20CallerSession

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

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

func (*IERC20CallerSession) Allowance

func (_IERC20 *IERC20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*IERC20CallerSession) BalanceOf

func (_IERC20 *IERC20CallerSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*IERC20CallerSession) Decimals

func (_IERC20 *IERC20CallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*IERC20CallerSession) Name

func (_IERC20 *IERC20CallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*IERC20CallerSession) Symbol

func (_IERC20 *IERC20CallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*IERC20CallerSession) TotalSupply

func (_IERC20 *IERC20CallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type IERC20Filterer

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

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

func NewIERC20Filterer

func NewIERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*IERC20Filterer, error)

NewIERC20Filterer creates a new log filterer instance of IERC20, bound to a specific deployed contract.

func (*IERC20Filterer) FilterApproval

func (_IERC20 *IERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IERC20ApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*IERC20Filterer) FilterTransfer

func (_IERC20 *IERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IERC20TransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*IERC20Filterer) ParseApproval

func (_IERC20 *IERC20Filterer) ParseApproval(log types.Log) (*IERC20Approval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*IERC20Filterer) ParseTransfer

func (_IERC20 *IERC20Filterer) ParseTransfer(log types.Log) (*IERC20Transfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*IERC20Filterer) WatchApproval

func (_IERC20 *IERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*IERC20Filterer) WatchTransfer

func (_IERC20 *IERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IERC20Transfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

type IERC20Raw

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

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

func (*IERC20Raw) Call

func (_IERC20 *IERC20Raw) 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 (*IERC20Raw) Transact

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

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

func (*IERC20Raw) Transfer

func (_IERC20 *IERC20Raw) 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 IERC20Session

type IERC20Session struct {
	Contract     *IERC20           // 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
}

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

func (*IERC20Session) Allowance

func (_IERC20 *IERC20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*IERC20Session) Approve

func (_IERC20 *IERC20Session) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*IERC20Session) BalanceOf

func (_IERC20 *IERC20Session) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*IERC20Session) Decimals

func (_IERC20 *IERC20Session) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*IERC20Session) Name

func (_IERC20 *IERC20Session) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*IERC20Session) Symbol

func (_IERC20 *IERC20Session) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*IERC20Session) TotalSupply

func (_IERC20 *IERC20Session) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*IERC20Session) Transfer

func (_IERC20 *IERC20Session) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*IERC20Session) TransferFrom

func (_IERC20 *IERC20Session) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

type IERC20Transactor

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

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

func NewIERC20Transactor

func NewIERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*IERC20Transactor, error)

NewIERC20Transactor creates a new write-only instance of IERC20, bound to a specific deployed contract.

func (*IERC20Transactor) Approve

func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*IERC20Transactor) Transfer

func (_IERC20 *IERC20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*IERC20Transactor) TransferFrom

func (_IERC20 *IERC20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

type IERC20TransactorRaw

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

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

func (*IERC20TransactorRaw) Transact

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

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

func (*IERC20TransactorRaw) Transfer

func (_IERC20 *IERC20TransactorRaw) 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 IERC20TransactorSession

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

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

func (*IERC20TransactorSession) Approve

func (_IERC20 *IERC20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*IERC20TransactorSession) Transfer

func (_IERC20 *IERC20TransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*IERC20TransactorSession) TransferFrom

func (_IERC20 *IERC20TransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

type IERC20Transfer

type IERC20Transfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

IERC20Transfer represents a Transfer event raised by the IERC20 contract.

type IERC20TransferIterator

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

IERC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the IERC20 contract.

func (*IERC20TransferIterator) Close

func (it *IERC20TransferIterator) Close() error

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

func (*IERC20TransferIterator) Error

func (it *IERC20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IERC20TransferIterator) Next

func (it *IERC20TransferIterator) 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 MockToken

type MockToken struct {
	MockTokenCaller     // Read-only binding to the contract
	MockTokenTransactor // Write-only binding to the contract
	MockTokenFilterer   // Log filterer for contract events
}

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

func NewMockToken

func NewMockToken(address common.Address, backend bind.ContractBackend) (*MockToken, error)

NewMockToken creates a new instance of MockToken, bound to a specific deployed contract.

type MockTokenApproval

type MockTokenApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

MockTokenApproval represents a Approval event raised by the MockToken contract.

type MockTokenApprovalIterator

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

MockTokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the MockToken contract.

func (*MockTokenApprovalIterator) Close

func (it *MockTokenApprovalIterator) Close() error

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

func (*MockTokenApprovalIterator) Error

func (it *MockTokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MockTokenApprovalIterator) Next

func (it *MockTokenApprovalIterator) 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 MockTokenCaller

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

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

func NewMockTokenCaller

func NewMockTokenCaller(address common.Address, caller bind.ContractCaller) (*MockTokenCaller, error)

NewMockTokenCaller creates a new read-only instance of MockToken, bound to a specific deployed contract.

func (*MockTokenCaller) Allowance

func (_MockToken *MockTokenCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*MockTokenCaller) BalanceOf

func (_MockToken *MockTokenCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*MockTokenCaller) Decimals

func (_MockToken *MockTokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*MockTokenCaller) Name

func (_MockToken *MockTokenCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*MockTokenCaller) Symbol

func (_MockToken *MockTokenCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*MockTokenCaller) TotalSupply

func (_MockToken *MockTokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type MockTokenCallerRaw

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

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

func (*MockTokenCallerRaw) Call

func (_MockToken *MockTokenCallerRaw) 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 MockTokenCallerSession

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

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

func (*MockTokenCallerSession) Allowance

func (_MockToken *MockTokenCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*MockTokenCallerSession) BalanceOf

func (_MockToken *MockTokenCallerSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*MockTokenCallerSession) Decimals

func (_MockToken *MockTokenCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*MockTokenCallerSession) Name

func (_MockToken *MockTokenCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*MockTokenCallerSession) Symbol

func (_MockToken *MockTokenCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*MockTokenCallerSession) TotalSupply

func (_MockToken *MockTokenCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type MockTokenFilterer

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

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

func NewMockTokenFilterer

func NewMockTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*MockTokenFilterer, error)

NewMockTokenFilterer creates a new log filterer instance of MockToken, bound to a specific deployed contract.

func (*MockTokenFilterer) FilterApproval

func (_MockToken *MockTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*MockTokenApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*MockTokenFilterer) FilterTransfer

func (_MockToken *MockTokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*MockTokenTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*MockTokenFilterer) ParseApproval

func (_MockToken *MockTokenFilterer) ParseApproval(log types.Log) (*MockTokenApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*MockTokenFilterer) ParseTransfer

func (_MockToken *MockTokenFilterer) ParseTransfer(log types.Log) (*MockTokenTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*MockTokenFilterer) WatchApproval

func (_MockToken *MockTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *MockTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*MockTokenFilterer) WatchTransfer

func (_MockToken *MockTokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *MockTokenTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

type MockTokenRaw

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

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

func (*MockTokenRaw) Call

func (_MockToken *MockTokenRaw) 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 (*MockTokenRaw) Transact

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

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

func (*MockTokenRaw) Transfer

func (_MockToken *MockTokenRaw) 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 MockTokenSession

type MockTokenSession struct {
	Contract     *MockToken        // 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
}

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

func (*MockTokenSession) Allowance

func (_MockToken *MockTokenSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*MockTokenSession) Approve

func (_MockToken *MockTokenSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*MockTokenSession) BalanceOf

func (_MockToken *MockTokenSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*MockTokenSession) Decimals

func (_MockToken *MockTokenSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*MockTokenSession) Mint

func (_MockToken *MockTokenSession) Mint(amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0xa0712d68.

Solidity: function mint(uint256 amount) returns()

func (*MockTokenSession) Name

func (_MockToken *MockTokenSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*MockTokenSession) Symbol

func (_MockToken *MockTokenSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*MockTokenSession) TotalSupply

func (_MockToken *MockTokenSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*MockTokenSession) Transfer

func (_MockToken *MockTokenSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*MockTokenSession) TransferFrom

func (_MockToken *MockTokenSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type MockTokenTransactor

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

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

func NewMockTokenTransactor

func NewMockTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*MockTokenTransactor, error)

NewMockTokenTransactor creates a new write-only instance of MockToken, bound to a specific deployed contract.

func (*MockTokenTransactor) Approve

func (_MockToken *MockTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*MockTokenTransactor) Mint

func (_MockToken *MockTokenTransactor) Mint(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0xa0712d68.

Solidity: function mint(uint256 amount) returns()

func (*MockTokenTransactor) Transfer

func (_MockToken *MockTokenTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*MockTokenTransactor) TransferFrom

func (_MockToken *MockTokenTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type MockTokenTransactorRaw

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

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

func (*MockTokenTransactorRaw) Transact

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

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

func (*MockTokenTransactorRaw) Transfer

func (_MockToken *MockTokenTransactorRaw) 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 MockTokenTransactorSession

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

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

func (*MockTokenTransactorSession) Approve

func (_MockToken *MockTokenTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*MockTokenTransactorSession) Mint

func (_MockToken *MockTokenTransactorSession) Mint(amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0xa0712d68.

Solidity: function mint(uint256 amount) returns()

func (*MockTokenTransactorSession) Transfer

func (_MockToken *MockTokenTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*MockTokenTransactorSession) TransferFrom

func (_MockToken *MockTokenTransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type MockTokenTransfer

type MockTokenTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

MockTokenTransfer represents a Transfer event raised by the MockToken contract.

type MockTokenTransferIterator

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

MockTokenTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the MockToken contract.

func (*MockTokenTransferIterator) Close

func (it *MockTokenTransferIterator) Close() error

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

func (*MockTokenTransferIterator) Error

func (it *MockTokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MockTokenTransferIterator) Next

func (it *MockTokenTransferIterator) 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 Payment

type Payment struct {
	PaymentCaller     // Read-only binding to the contract
	PaymentTransactor // Write-only binding to the contract
	PaymentFilterer   // Log filterer for contract events
}

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

func NewPayment

func NewPayment(address common.Address, backend bind.ContractBackend) (*Payment, error)

NewPayment creates a new instance of Payment, bound to a specific deployed contract.

type PaymentCaller

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

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

func NewPaymentCaller

func NewPaymentCaller(address common.Address, caller bind.ContractCaller) (*PaymentCaller, error)

NewPaymentCaller creates a new read-only instance of Payment, bound to a specific deployed contract.

func (*PaymentCaller) Available

func (_Payment *PaymentCaller) Available(opts *bind.CallOpts, publisher common.Address, provider common.Address, podId [32]byte) (*big.Int, error)

Available is a free data retrieval call binding the contract method 0x8247820d.

Solidity: function available(address publisher, address provider, bytes32 podId) view returns(uint256)

func (*PaymentCaller) Channels

func (_Payment *PaymentCaller) Channels(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address, arg2 [32]byte) (struct {
	InvestedByPublisher *big.Int
	WithdrawnByProvider *big.Int
	UnlockTime          *big.Int
	UnlockedAt          *big.Int
}, error)

Channels is a free data retrieval call binding the contract method 0x098f26b5.

Solidity: function channels(address , address , bytes32 ) view returns(uint256 investedByPublisher, uint256 withdrawnByProvider, uint256 unlockTime, uint256 unlockedAt)

func (*PaymentCaller) Token

func (_Payment *PaymentCaller) Token(opts *bind.CallOpts) (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*PaymentCaller) Withdrawn

func (_Payment *PaymentCaller) Withdrawn(opts *bind.CallOpts, publisher common.Address, provider common.Address, podId [32]byte) (*big.Int, error)

Withdrawn is a free data retrieval call binding the contract method 0x6ee6a5da.

Solidity: function withdrawn(address publisher, address provider, bytes32 podId) view returns(uint256)

type PaymentCallerRaw

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

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

func (*PaymentCallerRaw) Call

func (_Payment *PaymentCallerRaw) 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 PaymentCallerSession

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

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

func (*PaymentCallerSession) Available

func (_Payment *PaymentCallerSession) Available(publisher common.Address, provider common.Address, podId [32]byte) (*big.Int, error)

Available is a free data retrieval call binding the contract method 0x8247820d.

Solidity: function available(address publisher, address provider, bytes32 podId) view returns(uint256)

func (*PaymentCallerSession) Channels

func (_Payment *PaymentCallerSession) Channels(arg0 common.Address, arg1 common.Address, arg2 [32]byte) (struct {
	InvestedByPublisher *big.Int
	WithdrawnByProvider *big.Int
	UnlockTime          *big.Int
	UnlockedAt          *big.Int
}, error)

Channels is a free data retrieval call binding the contract method 0x098f26b5.

Solidity: function channels(address , address , bytes32 ) view returns(uint256 investedByPublisher, uint256 withdrawnByProvider, uint256 unlockTime, uint256 unlockedAt)

func (*PaymentCallerSession) Token

func (_Payment *PaymentCallerSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*PaymentCallerSession) Withdrawn

func (_Payment *PaymentCallerSession) Withdrawn(publisher common.Address, provider common.Address, podId [32]byte) (*big.Int, error)

Withdrawn is a free data retrieval call binding the contract method 0x6ee6a5da.

Solidity: function withdrawn(address publisher, address provider, bytes32 podId) view returns(uint256)

type PaymentChannelClosed

type PaymentChannelClosed struct {
	Publisher common.Address
	Provider  common.Address
	PodId     [32]byte
	Raw       types.Log // Blockchain specific contextual infos
}

PaymentChannelClosed represents a ChannelClosed event raised by the Payment contract.

type PaymentChannelClosedIterator

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

PaymentChannelClosedIterator is returned from FilterChannelClosed and is used to iterate over the raw logs and unpacked data for ChannelClosed events raised by the Payment contract.

func (*PaymentChannelClosedIterator) Close

func (it *PaymentChannelClosedIterator) Close() error

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

func (*PaymentChannelClosedIterator) Error

func (it *PaymentChannelClosedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PaymentChannelClosedIterator) Next

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 PaymentChannelCreated

type PaymentChannelCreated struct {
	Publisher common.Address
	Provider  common.Address
	PodId     [32]byte
	Raw       types.Log // Blockchain specific contextual infos
}

PaymentChannelCreated represents a ChannelCreated event raised by the Payment contract.

type PaymentChannelCreatedIterator

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

PaymentChannelCreatedIterator is returned from FilterChannelCreated and is used to iterate over the raw logs and unpacked data for ChannelCreated events raised by the Payment contract.

func (*PaymentChannelCreatedIterator) Close

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

func (*PaymentChannelCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PaymentChannelCreatedIterator) Next

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 PaymentDeposited

type PaymentDeposited struct {
	Publisher     common.Address
	Provider      common.Address
	PodId         [32]byte
	DepositAmount *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

PaymentDeposited represents a Deposited event raised by the Payment contract.

type PaymentDepositedIterator

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

PaymentDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the Payment contract.

func (*PaymentDepositedIterator) Close

func (it *PaymentDepositedIterator) Close() error

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

func (*PaymentDepositedIterator) Error

func (it *PaymentDepositedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PaymentDepositedIterator) Next

func (it *PaymentDepositedIterator) 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 PaymentFilterer

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

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

func NewPaymentFilterer

func NewPaymentFilterer(address common.Address, filterer bind.ContractFilterer) (*PaymentFilterer, error)

NewPaymentFilterer creates a new log filterer instance of Payment, bound to a specific deployed contract.

func (*PaymentFilterer) FilterChannelClosed

func (_Payment *PaymentFilterer) FilterChannelClosed(opts *bind.FilterOpts, publisher []common.Address, provider []common.Address, podId [][32]byte) (*PaymentChannelClosedIterator, error)

FilterChannelClosed is a free log retrieval operation binding the contract event 0xa1de5c5c82ac5d38cba67d62238ee6b160c22d9f7f697de78ca03072f271224d.

Solidity: event ChannelClosed(address indexed publisher, address indexed provider, bytes32 indexed podId)

func (*PaymentFilterer) FilterChannelCreated

func (_Payment *PaymentFilterer) FilterChannelCreated(opts *bind.FilterOpts, publisher []common.Address, provider []common.Address, podId [][32]byte) (*PaymentChannelCreatedIterator, error)

FilterChannelCreated is a free log retrieval operation binding the contract event 0xfa5bcf5a0e05d18398db4fa9c5f1f3ab260ff27cec7504aef225d23ad65db460.

Solidity: event ChannelCreated(address indexed publisher, address indexed provider, bytes32 indexed podId)

func (*PaymentFilterer) FilterDeposited

func (_Payment *PaymentFilterer) FilterDeposited(opts *bind.FilterOpts, publisher []common.Address, provider []common.Address, podId [][32]byte) (*PaymentDepositedIterator, error)

FilterDeposited is a free log retrieval operation binding the contract event 0x1765ac22a11675a51476924171a95254d041fd475340f385cb8f27335aa80ee7.

Solidity: event Deposited(address indexed publisher, address indexed provider, bytes32 indexed podId, uint256 depositAmount)

func (*PaymentFilterer) FilterUnlockTimerStarted

func (_Payment *PaymentFilterer) FilterUnlockTimerStarted(opts *bind.FilterOpts, publisher []common.Address, provider []common.Address, podId [][32]byte) (*PaymentUnlockTimerStartedIterator, error)

FilterUnlockTimerStarted is a free log retrieval operation binding the contract event 0xd5acf6c94da297d8c63f389d5c3a926a68be8206e29d85d0372009d088b2b2b5.

Solidity: event UnlockTimerStarted(address indexed publisher, address indexed provider, bytes32 indexed podId, uint256 unlockedAt)

func (*PaymentFilterer) FilterUnlocked

func (_Payment *PaymentFilterer) FilterUnlocked(opts *bind.FilterOpts, publisher []common.Address, provider []common.Address, podId [][32]byte) (*PaymentUnlockedIterator, error)

FilterUnlocked is a free log retrieval operation binding the contract event 0xfa21f248f6235facbe9f2ea2b2b65d8d35d9db4dffab0370f04371e697a391b3.

Solidity: event Unlocked(address indexed publisher, address indexed provider, bytes32 indexed podId, uint256 unlockedAmount)

func (*PaymentFilterer) FilterWithdrawn

func (_Payment *PaymentFilterer) FilterWithdrawn(opts *bind.FilterOpts, publisher []common.Address, provider []common.Address, podId [][32]byte) (*PaymentWithdrawnIterator, error)

FilterWithdrawn is a free log retrieval operation binding the contract event 0x1a96470c27c63e239afca174a1d71aa5726bbc196ca104fc8f5a9be2ed5080c4.

Solidity: event Withdrawn(address indexed publisher, address indexed provider, bytes32 indexed podId, uint256 withdrawnAmount)

func (*PaymentFilterer) ParseChannelClosed

func (_Payment *PaymentFilterer) ParseChannelClosed(log types.Log) (*PaymentChannelClosed, error)

ParseChannelClosed is a log parse operation binding the contract event 0xa1de5c5c82ac5d38cba67d62238ee6b160c22d9f7f697de78ca03072f271224d.

Solidity: event ChannelClosed(address indexed publisher, address indexed provider, bytes32 indexed podId)

func (*PaymentFilterer) ParseChannelCreated

func (_Payment *PaymentFilterer) ParseChannelCreated(log types.Log) (*PaymentChannelCreated, error)

ParseChannelCreated is a log parse operation binding the contract event 0xfa5bcf5a0e05d18398db4fa9c5f1f3ab260ff27cec7504aef225d23ad65db460.

Solidity: event ChannelCreated(address indexed publisher, address indexed provider, bytes32 indexed podId)

func (*PaymentFilterer) ParseDeposited

func (_Payment *PaymentFilterer) ParseDeposited(log types.Log) (*PaymentDeposited, error)

ParseDeposited is a log parse operation binding the contract event 0x1765ac22a11675a51476924171a95254d041fd475340f385cb8f27335aa80ee7.

Solidity: event Deposited(address indexed publisher, address indexed provider, bytes32 indexed podId, uint256 depositAmount)

func (*PaymentFilterer) ParseUnlockTimerStarted

func (_Payment *PaymentFilterer) ParseUnlockTimerStarted(log types.Log) (*PaymentUnlockTimerStarted, error)

ParseUnlockTimerStarted is a log parse operation binding the contract event 0xd5acf6c94da297d8c63f389d5c3a926a68be8206e29d85d0372009d088b2b2b5.

Solidity: event UnlockTimerStarted(address indexed publisher, address indexed provider, bytes32 indexed podId, uint256 unlockedAt)

func (*PaymentFilterer) ParseUnlocked

func (_Payment *PaymentFilterer) ParseUnlocked(log types.Log) (*PaymentUnlocked, error)

ParseUnlocked is a log parse operation binding the contract event 0xfa21f248f6235facbe9f2ea2b2b65d8d35d9db4dffab0370f04371e697a391b3.

Solidity: event Unlocked(address indexed publisher, address indexed provider, bytes32 indexed podId, uint256 unlockedAmount)

func (*PaymentFilterer) ParseWithdrawn

func (_Payment *PaymentFilterer) ParseWithdrawn(log types.Log) (*PaymentWithdrawn, error)

ParseWithdrawn is a log parse operation binding the contract event 0x1a96470c27c63e239afca174a1d71aa5726bbc196ca104fc8f5a9be2ed5080c4.

Solidity: event Withdrawn(address indexed publisher, address indexed provider, bytes32 indexed podId, uint256 withdrawnAmount)

func (*PaymentFilterer) WatchChannelClosed

func (_Payment *PaymentFilterer) WatchChannelClosed(opts *bind.WatchOpts, sink chan<- *PaymentChannelClosed, publisher []common.Address, provider []common.Address, podId [][32]byte) (event.Subscription, error)

WatchChannelClosed is a free log subscription operation binding the contract event 0xa1de5c5c82ac5d38cba67d62238ee6b160c22d9f7f697de78ca03072f271224d.

Solidity: event ChannelClosed(address indexed publisher, address indexed provider, bytes32 indexed podId)

func (*PaymentFilterer) WatchChannelCreated

func (_Payment *PaymentFilterer) WatchChannelCreated(opts *bind.WatchOpts, sink chan<- *PaymentChannelCreated, publisher []common.Address, provider []common.Address, podId [][32]byte) (event.Subscription, error)

WatchChannelCreated is a free log subscription operation binding the contract event 0xfa5bcf5a0e05d18398db4fa9c5f1f3ab260ff27cec7504aef225d23ad65db460.

Solidity: event ChannelCreated(address indexed publisher, address indexed provider, bytes32 indexed podId)

func (*PaymentFilterer) WatchDeposited

func (_Payment *PaymentFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *PaymentDeposited, publisher []common.Address, provider []common.Address, podId [][32]byte) (event.Subscription, error)

WatchDeposited is a free log subscription operation binding the contract event 0x1765ac22a11675a51476924171a95254d041fd475340f385cb8f27335aa80ee7.

Solidity: event Deposited(address indexed publisher, address indexed provider, bytes32 indexed podId, uint256 depositAmount)

func (*PaymentFilterer) WatchUnlockTimerStarted

func (_Payment *PaymentFilterer) WatchUnlockTimerStarted(opts *bind.WatchOpts, sink chan<- *PaymentUnlockTimerStarted, publisher []common.Address, provider []common.Address, podId [][32]byte) (event.Subscription, error)

WatchUnlockTimerStarted is a free log subscription operation binding the contract event 0xd5acf6c94da297d8c63f389d5c3a926a68be8206e29d85d0372009d088b2b2b5.

Solidity: event UnlockTimerStarted(address indexed publisher, address indexed provider, bytes32 indexed podId, uint256 unlockedAt)

func (*PaymentFilterer) WatchUnlocked

func (_Payment *PaymentFilterer) WatchUnlocked(opts *bind.WatchOpts, sink chan<- *PaymentUnlocked, publisher []common.Address, provider []common.Address, podId [][32]byte) (event.Subscription, error)

WatchUnlocked is a free log subscription operation binding the contract event 0xfa21f248f6235facbe9f2ea2b2b65d8d35d9db4dffab0370f04371e697a391b3.

Solidity: event Unlocked(address indexed publisher, address indexed provider, bytes32 indexed podId, uint256 unlockedAmount)

func (*PaymentFilterer) WatchWithdrawn

func (_Payment *PaymentFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *PaymentWithdrawn, publisher []common.Address, provider []common.Address, podId [][32]byte) (event.Subscription, error)

WatchWithdrawn is a free log subscription operation binding the contract event 0x1a96470c27c63e239afca174a1d71aa5726bbc196ca104fc8f5a9be2ed5080c4.

Solidity: event Withdrawn(address indexed publisher, address indexed provider, bytes32 indexed podId, uint256 withdrawnAmount)

type PaymentRaw

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

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

func (*PaymentRaw) Call

func (_Payment *PaymentRaw) 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 (*PaymentRaw) Transact

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

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

func (*PaymentRaw) Transfer

func (_Payment *PaymentRaw) 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 PaymentSession

type PaymentSession struct {
	Contract     *Payment          // 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
}

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

func (*PaymentSession) Available

func (_Payment *PaymentSession) Available(publisher common.Address, provider common.Address, podId [32]byte) (*big.Int, error)

Available is a free data retrieval call binding the contract method 0x8247820d.

Solidity: function available(address publisher, address provider, bytes32 podId) view returns(uint256)

func (*PaymentSession) Channels

func (_Payment *PaymentSession) Channels(arg0 common.Address, arg1 common.Address, arg2 [32]byte) (struct {
	InvestedByPublisher *big.Int
	WithdrawnByProvider *big.Int
	UnlockTime          *big.Int
	UnlockedAt          *big.Int
}, error)

Channels is a free data retrieval call binding the contract method 0x098f26b5.

Solidity: function channels(address , address , bytes32 ) view returns(uint256 investedByPublisher, uint256 withdrawnByProvider, uint256 unlockTime, uint256 unlockedAt)

func (*PaymentSession) CloseChannel

func (_Payment *PaymentSession) CloseChannel(provider common.Address, podId [32]byte) (*types.Transaction, error)

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

Solidity: function closeChannel(address provider, bytes32 podId) returns()

func (*PaymentSession) CreateChannel

func (_Payment *PaymentSession) CreateChannel(provider common.Address, podId [32]byte, unlockTime *big.Int, initialAmount *big.Int) (*types.Transaction, error)

CreateChannel is a paid mutator transaction binding the contract method 0x744122b0.

Solidity: function createChannel(address provider, bytes32 podId, uint256 unlockTime, uint256 initialAmount) returns()

func (*PaymentSession) Deposit

func (_Payment *PaymentSession) Deposit(provider common.Address, podId [32]byte, amount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xeb2243f8.

Solidity: function deposit(address provider, bytes32 podId, uint256 amount) returns()

func (*PaymentSession) Token

func (_Payment *PaymentSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*PaymentSession) Unlock

func (_Payment *PaymentSession) Unlock(provider common.Address, podId [32]byte) (*types.Transaction, error)

Unlock is a paid mutator transaction binding the contract method 0x785fd544.

Solidity: function unlock(address provider, bytes32 podId) returns()

func (*PaymentSession) Withdraw

func (_Payment *PaymentSession) Withdraw(publisher common.Address, podId [32]byte, amount *big.Int, transferAddress common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x92a453a5.

Solidity: function withdraw(address publisher, bytes32 podId, uint256 amount, address transferAddress) returns()

func (*PaymentSession) WithdrawUnlocked

func (_Payment *PaymentSession) WithdrawUnlocked(provider common.Address, podId [32]byte) (*types.Transaction, error)

WithdrawUnlocked is a paid mutator transaction binding the contract method 0xb48b5e4b.

Solidity: function withdrawUnlocked(address provider, bytes32 podId) returns()

func (*PaymentSession) WithdrawUpTo

func (_Payment *PaymentSession) WithdrawUpTo(publisher common.Address, podId [32]byte, totalWithdrawAmount *big.Int, transferAddress common.Address) (*types.Transaction, error)

WithdrawUpTo is a paid mutator transaction binding the contract method 0x494f8587.

Solidity: function withdrawUpTo(address publisher, bytes32 podId, uint256 totalWithdrawAmount, address transferAddress) returns()

func (*PaymentSession) Withdrawn

func (_Payment *PaymentSession) Withdrawn(publisher common.Address, provider common.Address, podId [32]byte) (*big.Int, error)

Withdrawn is a free data retrieval call binding the contract method 0x6ee6a5da.

Solidity: function withdrawn(address publisher, address provider, bytes32 podId) view returns(uint256)

type PaymentTransactor

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

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

func NewPaymentTransactor

func NewPaymentTransactor(address common.Address, transactor bind.ContractTransactor) (*PaymentTransactor, error)

NewPaymentTransactor creates a new write-only instance of Payment, bound to a specific deployed contract.

func (*PaymentTransactor) CloseChannel

func (_Payment *PaymentTransactor) CloseChannel(opts *bind.TransactOpts, provider common.Address, podId [32]byte) (*types.Transaction, error)

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

Solidity: function closeChannel(address provider, bytes32 podId) returns()

func (*PaymentTransactor) CreateChannel

func (_Payment *PaymentTransactor) CreateChannel(opts *bind.TransactOpts, provider common.Address, podId [32]byte, unlockTime *big.Int, initialAmount *big.Int) (*types.Transaction, error)

CreateChannel is a paid mutator transaction binding the contract method 0x744122b0.

Solidity: function createChannel(address provider, bytes32 podId, uint256 unlockTime, uint256 initialAmount) returns()

func (*PaymentTransactor) Deposit

func (_Payment *PaymentTransactor) Deposit(opts *bind.TransactOpts, provider common.Address, podId [32]byte, amount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xeb2243f8.

Solidity: function deposit(address provider, bytes32 podId, uint256 amount) returns()

func (*PaymentTransactor) Unlock

func (_Payment *PaymentTransactor) Unlock(opts *bind.TransactOpts, provider common.Address, podId [32]byte) (*types.Transaction, error)

Unlock is a paid mutator transaction binding the contract method 0x785fd544.

Solidity: function unlock(address provider, bytes32 podId) returns()

func (*PaymentTransactor) Withdraw

func (_Payment *PaymentTransactor) Withdraw(opts *bind.TransactOpts, publisher common.Address, podId [32]byte, amount *big.Int, transferAddress common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x92a453a5.

Solidity: function withdraw(address publisher, bytes32 podId, uint256 amount, address transferAddress) returns()

func (*PaymentTransactor) WithdrawUnlocked

func (_Payment *PaymentTransactor) WithdrawUnlocked(opts *bind.TransactOpts, provider common.Address, podId [32]byte) (*types.Transaction, error)

WithdrawUnlocked is a paid mutator transaction binding the contract method 0xb48b5e4b.

Solidity: function withdrawUnlocked(address provider, bytes32 podId) returns()

func (*PaymentTransactor) WithdrawUpTo

func (_Payment *PaymentTransactor) WithdrawUpTo(opts *bind.TransactOpts, publisher common.Address, podId [32]byte, totalWithdrawAmount *big.Int, transferAddress common.Address) (*types.Transaction, error)

WithdrawUpTo is a paid mutator transaction binding the contract method 0x494f8587.

Solidity: function withdrawUpTo(address publisher, bytes32 podId, uint256 totalWithdrawAmount, address transferAddress) returns()

type PaymentTransactorRaw

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

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

func (*PaymentTransactorRaw) Transact

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

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

func (*PaymentTransactorRaw) Transfer

func (_Payment *PaymentTransactorRaw) 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 PaymentTransactorSession

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

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

func (*PaymentTransactorSession) CloseChannel

func (_Payment *PaymentTransactorSession) CloseChannel(provider common.Address, podId [32]byte) (*types.Transaction, error)

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

Solidity: function closeChannel(address provider, bytes32 podId) returns()

func (*PaymentTransactorSession) CreateChannel

func (_Payment *PaymentTransactorSession) CreateChannel(provider common.Address, podId [32]byte, unlockTime *big.Int, initialAmount *big.Int) (*types.Transaction, error)

CreateChannel is a paid mutator transaction binding the contract method 0x744122b0.

Solidity: function createChannel(address provider, bytes32 podId, uint256 unlockTime, uint256 initialAmount) returns()

func (*PaymentTransactorSession) Deposit

func (_Payment *PaymentTransactorSession) Deposit(provider common.Address, podId [32]byte, amount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xeb2243f8.

Solidity: function deposit(address provider, bytes32 podId, uint256 amount) returns()

func (*PaymentTransactorSession) Unlock

func (_Payment *PaymentTransactorSession) Unlock(provider common.Address, podId [32]byte) (*types.Transaction, error)

Unlock is a paid mutator transaction binding the contract method 0x785fd544.

Solidity: function unlock(address provider, bytes32 podId) returns()

func (*PaymentTransactorSession) Withdraw

func (_Payment *PaymentTransactorSession) Withdraw(publisher common.Address, podId [32]byte, amount *big.Int, transferAddress common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x92a453a5.

Solidity: function withdraw(address publisher, bytes32 podId, uint256 amount, address transferAddress) returns()

func (*PaymentTransactorSession) WithdrawUnlocked

func (_Payment *PaymentTransactorSession) WithdrawUnlocked(provider common.Address, podId [32]byte) (*types.Transaction, error)

WithdrawUnlocked is a paid mutator transaction binding the contract method 0xb48b5e4b.

Solidity: function withdrawUnlocked(address provider, bytes32 podId) returns()

func (*PaymentTransactorSession) WithdrawUpTo

func (_Payment *PaymentTransactorSession) WithdrawUpTo(publisher common.Address, podId [32]byte, totalWithdrawAmount *big.Int, transferAddress common.Address) (*types.Transaction, error)

WithdrawUpTo is a paid mutator transaction binding the contract method 0x494f8587.

Solidity: function withdrawUpTo(address publisher, bytes32 podId, uint256 totalWithdrawAmount, address transferAddress) returns()

type PaymentUnlockTimerStarted

type PaymentUnlockTimerStarted struct {
	Publisher  common.Address
	Provider   common.Address
	PodId      [32]byte
	UnlockedAt *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

PaymentUnlockTimerStarted represents a UnlockTimerStarted event raised by the Payment contract.

type PaymentUnlockTimerStartedIterator

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

PaymentUnlockTimerStartedIterator is returned from FilterUnlockTimerStarted and is used to iterate over the raw logs and unpacked data for UnlockTimerStarted events raised by the Payment contract.

func (*PaymentUnlockTimerStartedIterator) Close

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

func (*PaymentUnlockTimerStartedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PaymentUnlockTimerStartedIterator) Next

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 PaymentUnlocked

type PaymentUnlocked struct {
	Publisher      common.Address
	Provider       common.Address
	PodId          [32]byte
	UnlockedAmount *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

PaymentUnlocked represents a Unlocked event raised by the Payment contract.

type PaymentUnlockedIterator

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

PaymentUnlockedIterator is returned from FilterUnlocked and is used to iterate over the raw logs and unpacked data for Unlocked events raised by the Payment contract.

func (*PaymentUnlockedIterator) Close

func (it *PaymentUnlockedIterator) Close() error

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

func (*PaymentUnlockedIterator) Error

func (it *PaymentUnlockedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PaymentUnlockedIterator) Next

func (it *PaymentUnlockedIterator) 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 PaymentWithdrawn

type PaymentWithdrawn struct {
	Publisher       common.Address
	Provider        common.Address
	PodId           [32]byte
	WithdrawnAmount *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

PaymentWithdrawn represents a Withdrawn event raised by the Payment contract.

type PaymentWithdrawnIterator

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

PaymentWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the Payment contract.

func (*PaymentWithdrawnIterator) Close

func (it *PaymentWithdrawnIterator) Close() error

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

func (*PaymentWithdrawnIterator) Error

func (it *PaymentWithdrawnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PaymentWithdrawnIterator) Next

func (it *PaymentWithdrawnIterator) 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 Registry

type Registry struct {
	RegistryCaller     // Read-only binding to the contract
	RegistryTransactor // Write-only binding to the contract
	RegistryFilterer   // Log filterer for contract events
}

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

func NewRegistry

func NewRegistry(address common.Address, backend bind.ContractBackend) (*Registry, error)

NewRegistry creates a new instance of Registry, bound to a specific deployed contract.

type RegistryCaller

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

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

func NewRegistryCaller

func NewRegistryCaller(address common.Address, caller bind.ContractCaller) (*RegistryCaller, error)

NewRegistryCaller creates a new read-only instance of Registry, bound to a specific deployed contract.

func (*RegistryCaller) IsSubscribed

func (_Registry *RegistryCaller) IsSubscribed(opts *bind.CallOpts, provider common.Address, tableId *big.Int) (bool, error)

IsSubscribed is a free data retrieval call binding the contract method 0x36867ae6.

Solidity: function isSubscribed(address provider, uint256 tableId) view returns(bool)

func (*RegistryCaller) PricingTableId

func (_Registry *RegistryCaller) PricingTableId(opts *bind.CallOpts) (*big.Int, error)

PricingTableId is a free data retrieval call binding the contract method 0x4ebdde7d.

Solidity: function pricingTableId() view returns(uint256)

func (*RegistryCaller) Providers

func (_Registry *RegistryCaller) Providers(opts *bind.CallOpts, arg0 common.Address) (string, error)

Providers is a free data retrieval call binding the contract method 0x0787bc27.

Solidity: function providers(address ) view returns(string)

func (*RegistryCaller) Subscription

func (_Registry *RegistryCaller) Subscription(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (bool, error)

Subscription is a free data retrieval call binding the contract method 0x44d14ff4.

Solidity: function subscription(address , uint256 ) view returns(bool)

type RegistryCallerRaw

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

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

func (*RegistryCallerRaw) Call

func (_Registry *RegistryCallerRaw) 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 RegistryCallerSession

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

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

func (*RegistryCallerSession) IsSubscribed

func (_Registry *RegistryCallerSession) IsSubscribed(provider common.Address, tableId *big.Int) (bool, error)

IsSubscribed is a free data retrieval call binding the contract method 0x36867ae6.

Solidity: function isSubscribed(address provider, uint256 tableId) view returns(bool)

func (*RegistryCallerSession) PricingTableId

func (_Registry *RegistryCallerSession) PricingTableId() (*big.Int, error)

PricingTableId is a free data retrieval call binding the contract method 0x4ebdde7d.

Solidity: function pricingTableId() view returns(uint256)

func (*RegistryCallerSession) Providers

func (_Registry *RegistryCallerSession) Providers(arg0 common.Address) (string, error)

Providers is a free data retrieval call binding the contract method 0x0787bc27.

Solidity: function providers(address ) view returns(string)

func (*RegistryCallerSession) Subscription

func (_Registry *RegistryCallerSession) Subscription(arg0 common.Address, arg1 *big.Int) (bool, error)

Subscription is a free data retrieval call binding the contract method 0x44d14ff4.

Solidity: function subscription(address , uint256 ) view returns(bool)

type RegistryFilterer

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

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

func NewRegistryFilterer

func NewRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*RegistryFilterer, error)

NewRegistryFilterer creates a new log filterer instance of Registry, bound to a specific deployed contract.

func (*RegistryFilterer) FilterNewPricingTable

func (_Registry *RegistryFilterer) FilterNewPricingTable(opts *bind.FilterOpts, token []common.Address, Id []*big.Int) (*RegistryNewPricingTableIterator, error)

FilterNewPricingTable is a free log retrieval operation binding the contract event 0xbc10dcb42f82b1cc23891ab8033eb256ab9f9b75d3cb52bc3064807a79d7faf1.

Solidity: event NewPricingTable(address indexed token, uint256 indexed Id, uint256 CpuPrice, uint256 RamPrice, uint256 StoragePrice, uint256 BandwidthEgressPrice, uint256 BandwidthIngressPrice, string Cpumodel, string TeeType)

func (*RegistryFilterer) FilterSubscribed

func (_Registry *RegistryFilterer) FilterSubscribed(opts *bind.FilterOpts, id []*big.Int, provider []common.Address) (*RegistrySubscribedIterator, error)

FilterSubscribed is a free log retrieval operation binding the contract event 0x5db0e562b58e88ae25b795493b5a9c538bb02bd38430aa3194dbf8c68f619f54.

Solidity: event Subscribed(uint256 indexed id, address indexed provider)

func (*RegistryFilterer) ParseNewPricingTable

func (_Registry *RegistryFilterer) ParseNewPricingTable(log types.Log) (*RegistryNewPricingTable, error)

ParseNewPricingTable is a log parse operation binding the contract event 0xbc10dcb42f82b1cc23891ab8033eb256ab9f9b75d3cb52bc3064807a79d7faf1.

Solidity: event NewPricingTable(address indexed token, uint256 indexed Id, uint256 CpuPrice, uint256 RamPrice, uint256 StoragePrice, uint256 BandwidthEgressPrice, uint256 BandwidthIngressPrice, string Cpumodel, string TeeType)

func (*RegistryFilterer) ParseSubscribed

func (_Registry *RegistryFilterer) ParseSubscribed(log types.Log) (*RegistrySubscribed, error)

ParseSubscribed is a log parse operation binding the contract event 0x5db0e562b58e88ae25b795493b5a9c538bb02bd38430aa3194dbf8c68f619f54.

Solidity: event Subscribed(uint256 indexed id, address indexed provider)

func (*RegistryFilterer) WatchNewPricingTable

func (_Registry *RegistryFilterer) WatchNewPricingTable(opts *bind.WatchOpts, sink chan<- *RegistryNewPricingTable, token []common.Address, Id []*big.Int) (event.Subscription, error)

WatchNewPricingTable is a free log subscription operation binding the contract event 0xbc10dcb42f82b1cc23891ab8033eb256ab9f9b75d3cb52bc3064807a79d7faf1.

Solidity: event NewPricingTable(address indexed token, uint256 indexed Id, uint256 CpuPrice, uint256 RamPrice, uint256 StoragePrice, uint256 BandwidthEgressPrice, uint256 BandwidthIngressPrice, string Cpumodel, string TeeType)

func (*RegistryFilterer) WatchSubscribed

func (_Registry *RegistryFilterer) WatchSubscribed(opts *bind.WatchOpts, sink chan<- *RegistrySubscribed, id []*big.Int, provider []common.Address) (event.Subscription, error)

WatchSubscribed is a free log subscription operation binding the contract event 0x5db0e562b58e88ae25b795493b5a9c538bb02bd38430aa3194dbf8c68f619f54.

Solidity: event Subscribed(uint256 indexed id, address indexed provider)

type RegistryNewPricingTable

type RegistryNewPricingTable struct {
	Token                 common.Address
	Id                    *big.Int
	CpuPrice              *big.Int
	RamPrice              *big.Int
	StoragePrice          *big.Int
	BandwidthEgressPrice  *big.Int
	BandwidthIngressPrice *big.Int
	Cpumodel              string
	TeeType               string
	Raw                   types.Log // Blockchain specific contextual infos
}

RegistryNewPricingTable represents a NewPricingTable event raised by the Registry contract.

type RegistryNewPricingTableIterator

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

RegistryNewPricingTableIterator is returned from FilterNewPricingTable and is used to iterate over the raw logs and unpacked data for NewPricingTable events raised by the Registry contract.

func (*RegistryNewPricingTableIterator) Close

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

func (*RegistryNewPricingTableIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RegistryNewPricingTableIterator) Next

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 RegistryRaw

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

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

func (*RegistryRaw) Call

func (_Registry *RegistryRaw) 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 (*RegistryRaw) Transact

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

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

func (*RegistryRaw) Transfer

func (_Registry *RegistryRaw) 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 RegistrySession

type RegistrySession struct {
	Contract     *Registry         // 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
}

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

func (*RegistrySession) IsSubscribed

func (_Registry *RegistrySession) IsSubscribed(provider common.Address, tableId *big.Int) (bool, error)

IsSubscribed is a free data retrieval call binding the contract method 0x36867ae6.

Solidity: function isSubscribed(address provider, uint256 tableId) view returns(bool)

func (*RegistrySession) PricingTableId

func (_Registry *RegistrySession) PricingTableId() (*big.Int, error)

PricingTableId is a free data retrieval call binding the contract method 0x4ebdde7d.

Solidity: function pricingTableId() view returns(uint256)

func (*RegistrySession) Providers

func (_Registry *RegistrySession) Providers(arg0 common.Address) (string, error)

Providers is a free data retrieval call binding the contract method 0x0787bc27.

Solidity: function providers(address ) view returns(string)

func (*RegistrySession) RegisterPricingTable

func (_Registry *RegistrySession) RegisterPricingTable(token common.Address, Prices [5]*big.Int, cpumodel string, teeType string) (*types.Transaction, error)

RegisterPricingTable is a paid mutator transaction binding the contract method 0x4c5be779.

Solidity: function registerPricingTable(address token, uint256[5] Prices, string cpumodel, string teeType) returns()

func (*RegistrySession) RegisterProvider

func (_Registry *RegistrySession) RegisterProvider(cid string) (*types.Transaction, error)

RegisterProvider is a paid mutator transaction binding the contract method 0xd9ac4022.

Solidity: function registerProvider(string cid) returns()

func (*RegistrySession) Subscribe

func (_Registry *RegistrySession) Subscribe(tableId *big.Int) (*types.Transaction, error)

Subscribe is a paid mutator transaction binding the contract method 0x0f574ba7.

Solidity: function subscribe(uint256 tableId) returns()

func (*RegistrySession) Subscription

func (_Registry *RegistrySession) Subscription(arg0 common.Address, arg1 *big.Int) (bool, error)

Subscription is a free data retrieval call binding the contract method 0x44d14ff4.

Solidity: function subscription(address , uint256 ) view returns(bool)

func (*RegistrySession) Unsubscribe

func (_Registry *RegistrySession) Unsubscribe(tableId *big.Int) (*types.Transaction, error)

Unsubscribe is a paid mutator transaction binding the contract method 0xad0b27fb.

Solidity: function unsubscribe(uint256 tableId) returns()

type RegistrySubscribed

type RegistrySubscribed struct {
	Id       *big.Int
	Provider common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

RegistrySubscribed represents a Subscribed event raised by the Registry contract.

type RegistrySubscribedIterator

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

RegistrySubscribedIterator is returned from FilterSubscribed and is used to iterate over the raw logs and unpacked data for Subscribed events raised by the Registry contract.

func (*RegistrySubscribedIterator) Close

func (it *RegistrySubscribedIterator) Close() error

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

func (*RegistrySubscribedIterator) Error

func (it *RegistrySubscribedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RegistrySubscribedIterator) Next

func (it *RegistrySubscribedIterator) 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 RegistryTransactor

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

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

func NewRegistryTransactor

func NewRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*RegistryTransactor, error)

NewRegistryTransactor creates a new write-only instance of Registry, bound to a specific deployed contract.

func (*RegistryTransactor) RegisterPricingTable

func (_Registry *RegistryTransactor) RegisterPricingTable(opts *bind.TransactOpts, token common.Address, Prices [5]*big.Int, cpumodel string, teeType string) (*types.Transaction, error)

RegisterPricingTable is a paid mutator transaction binding the contract method 0x4c5be779.

Solidity: function registerPricingTable(address token, uint256[5] Prices, string cpumodel, string teeType) returns()

func (*RegistryTransactor) RegisterProvider

func (_Registry *RegistryTransactor) RegisterProvider(opts *bind.TransactOpts, cid string) (*types.Transaction, error)

RegisterProvider is a paid mutator transaction binding the contract method 0xd9ac4022.

Solidity: function registerProvider(string cid) returns()

func (*RegistryTransactor) Subscribe

func (_Registry *RegistryTransactor) Subscribe(opts *bind.TransactOpts, tableId *big.Int) (*types.Transaction, error)

Subscribe is a paid mutator transaction binding the contract method 0x0f574ba7.

Solidity: function subscribe(uint256 tableId) returns()

func (*RegistryTransactor) Unsubscribe

func (_Registry *RegistryTransactor) Unsubscribe(opts *bind.TransactOpts, tableId *big.Int) (*types.Transaction, error)

Unsubscribe is a paid mutator transaction binding the contract method 0xad0b27fb.

Solidity: function unsubscribe(uint256 tableId) returns()

type RegistryTransactorRaw

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

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

func (*RegistryTransactorRaw) Transact

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

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

func (*RegistryTransactorRaw) Transfer

func (_Registry *RegistryTransactorRaw) 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 RegistryTransactorSession

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

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

func (*RegistryTransactorSession) RegisterPricingTable

func (_Registry *RegistryTransactorSession) RegisterPricingTable(token common.Address, Prices [5]*big.Int, cpumodel string, teeType string) (*types.Transaction, error)

RegisterPricingTable is a paid mutator transaction binding the contract method 0x4c5be779.

Solidity: function registerPricingTable(address token, uint256[5] Prices, string cpumodel, string teeType) returns()

func (*RegistryTransactorSession) RegisterProvider

func (_Registry *RegistryTransactorSession) RegisterProvider(cid string) (*types.Transaction, error)

RegisterProvider is a paid mutator transaction binding the contract method 0xd9ac4022.

Solidity: function registerProvider(string cid) returns()

func (*RegistryTransactorSession) Subscribe

func (_Registry *RegistryTransactorSession) Subscribe(tableId *big.Int) (*types.Transaction, error)

Subscribe is a paid mutator transaction binding the contract method 0x0f574ba7.

Solidity: function subscribe(uint256 tableId) returns()

func (*RegistryTransactorSession) Unsubscribe

func (_Registry *RegistryTransactorSession) Unsubscribe(tableId *big.Int) (*types.Transaction, error)

Unsubscribe is a paid mutator transaction binding the contract method 0xad0b27fb.

Solidity: function unsubscribe(uint256 tableId) returns()

Jump to

Keyboard shortcuts

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