traffic

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TrafficABI = TrafficMetaData.ABI

TrafficABI is the input ABI used to generate the binding from. Deprecated: Use TrafficMetaData.ABI instead.

View Source
var TrafficMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"CHEQUE_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[],\"name\":\"EIP712DOMAIN_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"retrievedAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"retrievedTotal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transTraffic\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"transferredAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferredTotal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getTraffic\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"cumulativePayout\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"beneficiarySig\",\"type\":\"bytes\"}],\"name\":\"cashChequeBeneficiary\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getRetrievedAddress\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getTransferredAddress\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true}]",
}

TrafficMetaData contains all meta data concerning the Traffic contract.

Functions

func NewServer

func NewServer(logger logging.Logger, chainID *big.Int, backend *ethclient.Client, signer crypto.Signer,
	transactionService chain.Transaction, address string, commonService chain.Common) (chain.Traffic, error)

Types

type ChainTraffic

type ChainTraffic struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*ChainTraffic) BalanceOf

func (chainTraffic *ChainTraffic) BalanceOf(account common.Address) (*big.Int, error)

func (*ChainTraffic) CashChequeBeneficiary

func (chainTraffic *ChainTraffic) CashChequeBeneficiary(ctx context.Context, peer boson.Address, beneficiary, recipient common.Address, cumulativePayout *big.Int, signature []byte) (tx *types.Transaction, err error)

func (*ChainTraffic) RetrievedAddress

func (chainTraffic *ChainTraffic) RetrievedAddress(address common.Address) ([]common.Address, error)

func (*ChainTraffic) RetrievedTotal

func (chainTraffic *ChainTraffic) RetrievedTotal(arg0 common.Address) (*big.Int, error)

func (*ChainTraffic) TransAmount

func (chainTraffic *ChainTraffic) TransAmount(beneficiary, recipient common.Address) (*big.Int, error)

func (*ChainTraffic) TransferredAddress

func (chainTraffic *ChainTraffic) TransferredAddress(address common.Address) ([]common.Address, error)

func (*ChainTraffic) TransferredTotal

func (chainTraffic *ChainTraffic) TransferredTotal(arg0 common.Address) (*big.Int, error)

type Traffic

type Traffic struct {
	TrafficCaller     // Read-only binding to the contract
	TrafficTransactor // Write-only binding to the contract
	TrafficFilterer   // Log filterer for contract events
}

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

func NewTraffic

func NewTraffic(address common.Address, backend bind.ContractBackend) (*Traffic, error)

NewTraffic creates a new instance of Traffic, bound to a specific deployed contract.

type TrafficApproval

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

TrafficApproval represents a Approval event raised by the Traffic contract.

type TrafficApprovalIterator

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

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

func (*TrafficApprovalIterator) Close

func (it *TrafficApprovalIterator) Close() error

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

func (*TrafficApprovalIterator) Error

func (it *TrafficApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TrafficApprovalIterator) Next

func (it *TrafficApprovalIterator) 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 TrafficCaller

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

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

func NewTrafficCaller

func NewTrafficCaller(address common.Address, caller bind.ContractCaller) (*TrafficCaller, error)

NewTrafficCaller creates a new read-only instance of Traffic, bound to a specific deployed contract.

func (*TrafficCaller) Allowance

func (_Traffic *TrafficCaller) 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 (*TrafficCaller) BalanceOf

func (_Traffic *TrafficCaller) 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 (*TrafficCaller) CHEQUETYPEHASH

func (_Traffic *TrafficCaller) CHEQUETYPEHASH(opts *bind.CallOpts) ([32]byte, error)

CHEQUETYPEHASH is a free data retrieval call binding the contract method 0x15c3343f.

Solidity: function CHEQUE_TYPEHASH() view returns(bytes32)

func (*TrafficCaller) Decimals

func (_Traffic *TrafficCaller) 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 (*TrafficCaller) EIP712DOMAINTYPEHASH

func (_Traffic *TrafficCaller) EIP712DOMAINTYPEHASH(opts *bind.CallOpts) ([32]byte, error)

EIP712DOMAINTYPEHASH is a free data retrieval call binding the contract method 0xc49f91d3.

Solidity: function EIP712DOMAIN_TYPEHASH() view returns(bytes32)

func (*TrafficCaller) GetRetrievedAddress

func (_Traffic *TrafficCaller) GetRetrievedAddress(opts *bind.CallOpts, addr common.Address) ([]common.Address, error)

GetRetrievedAddress is a free data retrieval call binding the contract method 0x2f5c1cab.

Solidity: function getRetrievedAddress(address addr) view returns(address[])

func (*TrafficCaller) GetTraffic

func (_Traffic *TrafficCaller) GetTraffic(opts *bind.CallOpts, account common.Address) (*big.Int, error)

GetTraffic is a free data retrieval call binding the contract method 0xd2615bab.

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

func (*TrafficCaller) GetTransferredAddress

func (_Traffic *TrafficCaller) GetTransferredAddress(opts *bind.CallOpts, addr common.Address) ([]common.Address, error)

GetTransferredAddress is a free data retrieval call binding the contract method 0xc10b879a.

Solidity: function getTransferredAddress(address addr) view returns(address[])

func (*TrafficCaller) Name

func (_Traffic *TrafficCaller) 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 (*TrafficCaller) Owner

func (_Traffic *TrafficCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*TrafficCaller) RetrievedAddress

func (_Traffic *TrafficCaller) RetrievedAddress(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (common.Address, error)

RetrievedAddress is a free data retrieval call binding the contract method 0xe7271ccc.

Solidity: function retrievedAddress(address , uint256 ) view returns(address)

func (*TrafficCaller) RetrievedTotal

func (_Traffic *TrafficCaller) RetrievedTotal(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

RetrievedTotal is a free data retrieval call binding the contract method 0xf5822d0f.

Solidity: function retrievedTotal(address ) view returns(uint256)

func (*TrafficCaller) Symbol

func (_Traffic *TrafficCaller) 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 (*TrafficCaller) TotalSupply

func (_Traffic *TrafficCaller) 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)

func (*TrafficCaller) TransTraffic

func (_Traffic *TrafficCaller) TransTraffic(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)

TransTraffic is a free data retrieval call binding the contract method 0xa12a75b9.

Solidity: function transTraffic(address , address ) view returns(uint256)

func (*TrafficCaller) TransferredAddress

func (_Traffic *TrafficCaller) TransferredAddress(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (common.Address, error)

TransferredAddress is a free data retrieval call binding the contract method 0xdafedb4a.

Solidity: function transferredAddress(address , uint256 ) view returns(address)

func (*TrafficCaller) TransferredTotal

func (_Traffic *TrafficCaller) TransferredTotal(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

TransferredTotal is a free data retrieval call binding the contract method 0xd4eac37f.

Solidity: function transferredTotal(address ) view returns(uint256)

type TrafficCallerRaw

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

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

func (*TrafficCallerRaw) Call

func (_Traffic *TrafficCallerRaw) 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 TrafficCallerSession

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

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

func (*TrafficCallerSession) Allowance

func (_Traffic *TrafficCallerSession) 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 (*TrafficCallerSession) BalanceOf

func (_Traffic *TrafficCallerSession) 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 (*TrafficCallerSession) CHEQUETYPEHASH

func (_Traffic *TrafficCallerSession) CHEQUETYPEHASH() ([32]byte, error)

CHEQUETYPEHASH is a free data retrieval call binding the contract method 0x15c3343f.

Solidity: function CHEQUE_TYPEHASH() view returns(bytes32)

func (*TrafficCallerSession) Decimals

func (_Traffic *TrafficCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*TrafficCallerSession) EIP712DOMAINTYPEHASH

func (_Traffic *TrafficCallerSession) EIP712DOMAINTYPEHASH() ([32]byte, error)

EIP712DOMAINTYPEHASH is a free data retrieval call binding the contract method 0xc49f91d3.

Solidity: function EIP712DOMAIN_TYPEHASH() view returns(bytes32)

func (*TrafficCallerSession) GetRetrievedAddress

func (_Traffic *TrafficCallerSession) GetRetrievedAddress(addr common.Address) ([]common.Address, error)

GetRetrievedAddress is a free data retrieval call binding the contract method 0x2f5c1cab.

Solidity: function getRetrievedAddress(address addr) view returns(address[])

func (*TrafficCallerSession) GetTraffic

func (_Traffic *TrafficCallerSession) GetTraffic(account common.Address) (*big.Int, error)

GetTraffic is a free data retrieval call binding the contract method 0xd2615bab.

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

func (*TrafficCallerSession) GetTransferredAddress

func (_Traffic *TrafficCallerSession) GetTransferredAddress(addr common.Address) ([]common.Address, error)

GetTransferredAddress is a free data retrieval call binding the contract method 0xc10b879a.

Solidity: function getTransferredAddress(address addr) view returns(address[])

func (*TrafficCallerSession) Name

func (_Traffic *TrafficCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*TrafficCallerSession) Owner

func (_Traffic *TrafficCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*TrafficCallerSession) RetrievedAddress

func (_Traffic *TrafficCallerSession) RetrievedAddress(arg0 common.Address, arg1 *big.Int) (common.Address, error)

RetrievedAddress is a free data retrieval call binding the contract method 0xe7271ccc.

Solidity: function retrievedAddress(address , uint256 ) view returns(address)

func (*TrafficCallerSession) RetrievedTotal

func (_Traffic *TrafficCallerSession) RetrievedTotal(arg0 common.Address) (*big.Int, error)

RetrievedTotal is a free data retrieval call binding the contract method 0xf5822d0f.

Solidity: function retrievedTotal(address ) view returns(uint256)

func (*TrafficCallerSession) Symbol

func (_Traffic *TrafficCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*TrafficCallerSession) TotalSupply

func (_Traffic *TrafficCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*TrafficCallerSession) TransTraffic

func (_Traffic *TrafficCallerSession) TransTraffic(arg0 common.Address, arg1 common.Address) (*big.Int, error)

TransTraffic is a free data retrieval call binding the contract method 0xa12a75b9.

Solidity: function transTraffic(address , address ) view returns(uint256)

func (*TrafficCallerSession) TransferredAddress

func (_Traffic *TrafficCallerSession) TransferredAddress(arg0 common.Address, arg1 *big.Int) (common.Address, error)

TransferredAddress is a free data retrieval call binding the contract method 0xdafedb4a.

Solidity: function transferredAddress(address , uint256 ) view returns(address)

func (*TrafficCallerSession) TransferredTotal

func (_Traffic *TrafficCallerSession) TransferredTotal(arg0 common.Address) (*big.Int, error)

TransferredTotal is a free data retrieval call binding the contract method 0xd4eac37f.

Solidity: function transferredTotal(address ) view returns(uint256)

type TrafficFilterer

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

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

func NewTrafficFilterer

func NewTrafficFilterer(address common.Address, filterer bind.ContractFilterer) (*TrafficFilterer, error)

NewTrafficFilterer creates a new log filterer instance of Traffic, bound to a specific deployed contract.

func (*TrafficFilterer) FilterApproval

func (_Traffic *TrafficFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*TrafficApprovalIterator, 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 (*TrafficFilterer) FilterTransfer

func (_Traffic *TrafficFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*TrafficTransferIterator, 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 (*TrafficFilterer) ParseApproval

func (_Traffic *TrafficFilterer) ParseApproval(log types.Log) (*TrafficApproval, error)

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

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

func (*TrafficFilterer) ParseTransfer

func (_Traffic *TrafficFilterer) ParseTransfer(log types.Log) (*TrafficTransfer, error)

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

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

func (*TrafficFilterer) WatchApproval

func (_Traffic *TrafficFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TrafficApproval, 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 (*TrafficFilterer) WatchTransfer

func (_Traffic *TrafficFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TrafficTransfer, 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 TrafficRaw

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

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

func (*TrafficRaw) Call

func (_Traffic *TrafficRaw) 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 (*TrafficRaw) Transact

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

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

func (*TrafficRaw) Transfer

func (_Traffic *TrafficRaw) 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 TrafficSession

type TrafficSession struct {
	Contract     *Traffic          // 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
}

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

func (*TrafficSession) Allowance

func (_Traffic *TrafficSession) 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 (*TrafficSession) Approve

func (_Traffic *TrafficSession) 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 (*TrafficSession) BalanceOf

func (_Traffic *TrafficSession) 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 (*TrafficSession) CHEQUETYPEHASH

func (_Traffic *TrafficSession) CHEQUETYPEHASH() ([32]byte, error)

CHEQUETYPEHASH is a free data retrieval call binding the contract method 0x15c3343f.

Solidity: function CHEQUE_TYPEHASH() view returns(bytes32)

func (*TrafficSession) CashChequeBeneficiary

func (_Traffic *TrafficSession) CashChequeBeneficiary(beneficiary common.Address, recipient common.Address, cumulativePayout *big.Int, beneficiarySig []byte) (*types.Transaction, error)

CashChequeBeneficiary is a paid mutator transaction binding the contract method 0xc595fa74.

Solidity: function cashChequeBeneficiary(address beneficiary, address recipient, uint256 cumulativePayout, bytes beneficiarySig) returns()

func (*TrafficSession) Decimals

func (_Traffic *TrafficSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*TrafficSession) DecreaseAllowance

func (_Traffic *TrafficSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*TrafficSession) EIP712DOMAINTYPEHASH

func (_Traffic *TrafficSession) EIP712DOMAINTYPEHASH() ([32]byte, error)

EIP712DOMAINTYPEHASH is a free data retrieval call binding the contract method 0xc49f91d3.

Solidity: function EIP712DOMAIN_TYPEHASH() view returns(bytes32)

func (*TrafficSession) GetRetrievedAddress

func (_Traffic *TrafficSession) GetRetrievedAddress(addr common.Address) ([]common.Address, error)

GetRetrievedAddress is a free data retrieval call binding the contract method 0x2f5c1cab.

Solidity: function getRetrievedAddress(address addr) view returns(address[])

func (*TrafficSession) GetTraffic

func (_Traffic *TrafficSession) GetTraffic(account common.Address) (*big.Int, error)

GetTraffic is a free data retrieval call binding the contract method 0xd2615bab.

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

func (*TrafficSession) GetTransferredAddress

func (_Traffic *TrafficSession) GetTransferredAddress(addr common.Address) ([]common.Address, error)

GetTransferredAddress is a free data retrieval call binding the contract method 0xc10b879a.

Solidity: function getTransferredAddress(address addr) view returns(address[])

func (*TrafficSession) IncreaseAllowance

func (_Traffic *TrafficSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*TrafficSession) Initialize

func (_Traffic *TrafficSession) Initialize() (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*TrafficSession) Name

func (_Traffic *TrafficSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*TrafficSession) Owner

func (_Traffic *TrafficSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*TrafficSession) RetrievedAddress

func (_Traffic *TrafficSession) RetrievedAddress(arg0 common.Address, arg1 *big.Int) (common.Address, error)

RetrievedAddress is a free data retrieval call binding the contract method 0xe7271ccc.

Solidity: function retrievedAddress(address , uint256 ) view returns(address)

func (*TrafficSession) RetrievedTotal

func (_Traffic *TrafficSession) RetrievedTotal(arg0 common.Address) (*big.Int, error)

RetrievedTotal is a free data retrieval call binding the contract method 0xf5822d0f.

Solidity: function retrievedTotal(address ) view returns(uint256)

func (*TrafficSession) Symbol

func (_Traffic *TrafficSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*TrafficSession) TotalSupply

func (_Traffic *TrafficSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*TrafficSession) TransTraffic

func (_Traffic *TrafficSession) TransTraffic(arg0 common.Address, arg1 common.Address) (*big.Int, error)

TransTraffic is a free data retrieval call binding the contract method 0xa12a75b9.

Solidity: function transTraffic(address , address ) view returns(uint256)

func (*TrafficSession) Transfer

func (_Traffic *TrafficSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*TrafficSession) TransferFrom

func (_Traffic *TrafficSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

func (*TrafficSession) TransferredAddress

func (_Traffic *TrafficSession) TransferredAddress(arg0 common.Address, arg1 *big.Int) (common.Address, error)

TransferredAddress is a free data retrieval call binding the contract method 0xdafedb4a.

Solidity: function transferredAddress(address , uint256 ) view returns(address)

func (*TrafficSession) TransferredTotal

func (_Traffic *TrafficSession) TransferredTotal(arg0 common.Address) (*big.Int, error)

TransferredTotal is a free data retrieval call binding the contract method 0xd4eac37f.

Solidity: function transferredTotal(address ) view returns(uint256)

type TrafficTransactor

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

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

func NewTrafficTransactor

func NewTrafficTransactor(address common.Address, transactor bind.ContractTransactor) (*TrafficTransactor, error)

NewTrafficTransactor creates a new write-only instance of Traffic, bound to a specific deployed contract.

func (*TrafficTransactor) Approve

func (_Traffic *TrafficTransactor) 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 (*TrafficTransactor) CashChequeBeneficiary

func (_Traffic *TrafficTransactor) CashChequeBeneficiary(opts *bind.TransactOpts, beneficiary common.Address, recipient common.Address, cumulativePayout *big.Int, beneficiarySig []byte) (*types.Transaction, error)

CashChequeBeneficiary is a paid mutator transaction binding the contract method 0xc595fa74.

Solidity: function cashChequeBeneficiary(address beneficiary, address recipient, uint256 cumulativePayout, bytes beneficiarySig) returns()

func (*TrafficTransactor) DecreaseAllowance

func (_Traffic *TrafficTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*TrafficTransactor) IncreaseAllowance

func (_Traffic *TrafficTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*TrafficTransactor) Initialize

func (_Traffic *TrafficTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*TrafficTransactor) Transfer

func (_Traffic *TrafficTransactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*TrafficTransactor) TransferFrom

func (_Traffic *TrafficTransactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type TrafficTransactorRaw

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

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

func (*TrafficTransactorRaw) Transact

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

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

func (*TrafficTransactorRaw) Transfer

func (_Traffic *TrafficTransactorRaw) 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 TrafficTransactorSession

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

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

func (*TrafficTransactorSession) Approve

func (_Traffic *TrafficTransactorSession) 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 (*TrafficTransactorSession) CashChequeBeneficiary

func (_Traffic *TrafficTransactorSession) CashChequeBeneficiary(beneficiary common.Address, recipient common.Address, cumulativePayout *big.Int, beneficiarySig []byte) (*types.Transaction, error)

CashChequeBeneficiary is a paid mutator transaction binding the contract method 0xc595fa74.

Solidity: function cashChequeBeneficiary(address beneficiary, address recipient, uint256 cumulativePayout, bytes beneficiarySig) returns()

func (*TrafficTransactorSession) DecreaseAllowance

func (_Traffic *TrafficTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*TrafficTransactorSession) IncreaseAllowance

func (_Traffic *TrafficTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*TrafficTransactorSession) Initialize

func (_Traffic *TrafficTransactorSession) Initialize() (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*TrafficTransactorSession) Transfer

func (_Traffic *TrafficTransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*TrafficTransactorSession) TransferFrom

func (_Traffic *TrafficTransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type TrafficTransfer

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

TrafficTransfer represents a Transfer event raised by the Traffic contract.

type TrafficTransferIterator

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

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

func (*TrafficTransferIterator) Close

func (it *TrafficTransferIterator) Close() error

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

func (*TrafficTransferIterator) Error

func (it *TrafficTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TrafficTransferIterator) Next

func (it *TrafficTransferIterator) 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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