api

package module
v0.0.0-...-b9e9da5 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const StandardTokenABI = "" /* 1829-byte string literal not displayed */

StandardTokenABI is the input ABI used to generate the binding from.

View Source
const StandardTokenBin = `` /* 2548-byte string literal not displayed */

StandardTokenBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type StandardToken

type StandardToken struct {
	StandardTokenCaller     // Read-only binding to the contract
	StandardTokenTransactor // Write-only binding to the contract
}

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

func DeployStandardToken

func DeployStandardToken(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *StandardToken, error)

DeployStandardToken deploys a new Ethereum contract, binding an instance of StandardToken to it.

func NewStandardToken

func NewStandardToken(address common.Address, backend bind.ContractBackend) (*StandardToken, error)

NewStandardToken creates a new instance of StandardToken, bound to a specific deployed contract.

type StandardTokenCaller

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

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

func NewStandardTokenCaller

func NewStandardTokenCaller(address common.Address, caller bind.ContractCaller) (*StandardTokenCaller, error)

NewStandardTokenCaller creates a new read-only instance of StandardToken, bound to a specific deployed contract.

func (*StandardTokenCaller) Allowance

func (_StandardToken *StandardTokenCaller) 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(_owner address, _spender address) constant returns(remaining uint256)

func (*StandardTokenCaller) BalanceOf

func (_StandardToken *StandardTokenCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(_owner address) constant returns(balance uint256)

func (*StandardTokenCaller) TotalSupply

func (_StandardToken *StandardTokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

type StandardTokenCallerRaw

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

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

func (*StandardTokenCallerRaw) Call

func (_StandardToken *StandardTokenCallerRaw) 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 StandardTokenCallerSession

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

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

func (*StandardTokenCallerSession) Allowance

func (_StandardToken *StandardTokenCallerSession) 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(_owner address, _spender address) constant returns(remaining uint256)

func (*StandardTokenCallerSession) BalanceOf

func (_StandardToken *StandardTokenCallerSession) BalanceOf(_owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(_owner address) constant returns(balance uint256)

func (*StandardTokenCallerSession) TotalSupply

func (_StandardToken *StandardTokenCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

type StandardTokenRaw

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

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

func (*StandardTokenRaw) Call

func (_StandardToken *StandardTokenRaw) 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 (*StandardTokenRaw) Transact

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

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

func (*StandardTokenRaw) Transfer

func (_StandardToken *StandardTokenRaw) 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 StandardTokenSession

type StandardTokenSession struct {
	Contract     *StandardToken    // 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
}

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

func (*StandardTokenSession) Allowance

func (_StandardToken *StandardTokenSession) 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(_owner address, _spender address) constant returns(remaining uint256)

func (*StandardTokenSession) Approve

func (_StandardToken *StandardTokenSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function approve(_spender address, _value uint256) returns(bool)

func (*StandardTokenSession) BalanceOf

func (_StandardToken *StandardTokenSession) BalanceOf(_owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(_owner address) constant returns(balance uint256)

func (*StandardTokenSession) TotalSupply

func (_StandardToken *StandardTokenSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

func (*StandardTokenSession) Transfer

func (_StandardToken *StandardTokenSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(_to address, _value uint256) returns(bool)

func (*StandardTokenSession) TransferFrom

func (_StandardToken *StandardTokenSession) 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(_from address, _to address, _value uint256) returns(bool)

type StandardTokenTransactor

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

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

func NewStandardTokenTransactor

func NewStandardTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*StandardTokenTransactor, error)

NewStandardTokenTransactor creates a new write-only instance of StandardToken, bound to a specific deployed contract.

func (*StandardTokenTransactor) Approve

func (_StandardToken *StandardTokenTransactor) 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(_spender address, _value uint256) returns(bool)

func (*StandardTokenTransactor) Transfer

func (_StandardToken *StandardTokenTransactor) 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(_to address, _value uint256) returns(bool)

func (*StandardTokenTransactor) TransferFrom

func (_StandardToken *StandardTokenTransactor) 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(_from address, _to address, _value uint256) returns(bool)

type StandardTokenTransactorRaw

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

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

func (*StandardTokenTransactorRaw) Transact

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

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

func (*StandardTokenTransactorRaw) Transfer

func (_StandardToken *StandardTokenTransactorRaw) 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 StandardTokenTransactorSession

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

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

func (*StandardTokenTransactorSession) Approve

func (_StandardToken *StandardTokenTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function approve(_spender address, _value uint256) returns(bool)

func (*StandardTokenTransactorSession) Transfer

func (_StandardToken *StandardTokenTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(_to address, _value uint256) returns(bool)

func (*StandardTokenTransactorSession) TransferFrom

func (_StandardToken *StandardTokenTransactorSession) 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(_from address, _to address, _value uint256) returns(bool)

type Token

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

func NewToken

func NewToken(ethEndpoint string, gasPrice *big.Int, contractAddress string) (*Token, error)

func (*Token) AllowanceOf

func (t *Token) AllowanceOf(ctx context.Context, from string, to string) (*big.Int, error)

func (*Token) Approve

func (t *Token) Approve(ctx context.Context, key *ecdsa.PrivateKey, to string, amount *big.Int) (*types.Transaction, error)

func (*Token) BalanceOf

func (t *Token) BalanceOf(ctx context.Context, address string) (*big.Int, error)

func (*Token) TotalSupply

func (t *Token) TotalSupply(ctx context.Context) (*big.Int, error)

func (*Token) Transfer

func (t *Token) Transfer(ctx context.Context, key *ecdsa.PrivateKey, to string, amount *big.Int) (*types.Transaction, error)

func (*Token) TransferFrom

func (t *Token) TransferFrom(ctx context.Context, key *ecdsa.PrivateKey, from string, to string, amount *big.Int) (*types.Transaction, error)

type Tokener

type Tokener interface {
	Approve(key *ecdsa.PrivateKey, to string, amount *big.Int) (*types.Transaction, error)
	Transfer(key *ecdsa.PrivateKey, to string, amount *big.Int) (*types.Transaction, error)
	TransferFrom(key *ecdsa.PrivateKey, from string, to string, amount *big.Int) (*types.Transaction, error)
	BalanceOf(address string) (*big.Int, error)
	AllowanceOf(from string, to string) (*big.Int, error)
	TotalSupply() (*big.Int, error)
}

Jump to

Keyboard shortcuts

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