chain_evm

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Erc20ABI = Erc20MetaData.ABI

Erc20ABI is the input ABI used to generate the binding from. Deprecated: Use Erc20MetaData.ABI instead.

View Source
var Erc20MetaData = &bind.MetaData{
	ABI: "[{\"constant\":true,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_upgradedAddress\",\"type\":\"address\"}],\"name\":\"deprecate\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_spender\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"deprecated\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_evilUser\",\"type\":\"address\"}],\"name\":\"addBlackList\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_from\",\"type\":\"address\"},{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"upgradedAddress\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"}],\"name\":\"balances\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"maximumFee\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"_totalSupply\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_maker\",\"type\":\"address\"}],\"name\":\"getBlackListStatus\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"},{\"name\":\"\",\"type\":\"address\"}],\"name\":\"allowed\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"who\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"newBasisPoints\",\"type\":\"uint256\"},{\"name\":\"newMaxFee\",\"type\":\"uint256\"}],\"name\":\"setParams\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"issue\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"redeem\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_owner\",\"type\":\"address\"},{\"name\":\"_spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"name\":\"remaining\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"basisPointsRate\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"}],\"name\":\"isBlackListed\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_clearedUser\",\"type\":\"address\"}],\"name\":\"removeBlackList\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"MAX_UINT\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_blackListedUser\",\"type\":\"address\"}],\"name\":\"destroyBlackFunds\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_initialSupply\",\"type\":\"uint256\"},{\"name\":\"_name\",\"type\":\"string\"},{\"name\":\"_symbol\",\"type\":\"string\"},{\"name\":\"_decimals\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Issue\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Redeem\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"Deprecate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"feeBasisPoints\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"maxFee\",\"type\":\"uint256\"}],\"name\":\"Params\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_blackListedUser\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_balance\",\"type\":\"uint256\"}],\"name\":\"DestroyedBlackFunds\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"AddedBlackList\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"RemovedBlackList\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"Pause\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"Unpause\",\"type\":\"event\"}]",
}

Erc20MetaData contains all meta data concerning the Erc20 contract.

Functions

func BigIntFromHex

func BigIntFromHex(h string) *big.Int

func HexFormat

func HexFormat(s string) string

func HexToUint64

func HexToUint64(hex string) (uint64, error)

func PackMessage

func PackMessage(name string, args ...interface{}) ([]byte, error)

PackMessage go build -ldflags -s -v -o main cmd/abigen/*.go ./main --abi erc20.json --pkg chain_evm --type Erc20 --out erc20.go --alias _totalSupply=TotalSupply1

Types

type BaseResp

type BaseResp struct {
	JsonRpc string      `json:"jsonrpc"`
	Id      int32       `json:"id"`
	Result  interface{} `json:"result"`
	Error   Error       `json:"error"`
}

type Block

type Block struct {
	BlockHeader
	Transactions []Transaction `json:"transactions"`
}

type BlockHeader

type BlockHeader struct {
	Author           string   `json:"author"`
	Difficulty       string   `json:"difficulty"`
	ExtraData        string   `json:"extraData"`
	GasLimit         string   `json:"gasLimit"`
	GasUsed          string   `json:"gasUsed"`
	Hash             string   `json:"hash"`
	LogsBloom        string   `json:"logsBloom"`
	Miner            string   `json:"miner"`
	MixHash          string   `json:"mixHash"`
	Nonce            string   `json:"nonce"`
	Number           string   `json:"number"`
	ParentHash       string   `json:"parentHash"`
	ReceiptsRoot     string   `json:"receiptsRoot"`
	SealFields       []string `json:"sealFields"`
	Sha3Uncles       string   `json:"sha3Uncles"`
	Size             string   `json:"size"`
	StateRoot        string   `json:"stateRoot"`
	Timestamp        string   `json:"timestamp"`
	TotalDifficulty  string   `json:"totalDifficulty"`
	TransactionsRoot string   `json:"transactionsRoot"`
	Uncles           []string `json:"uncles"`
}

type ChainEvm

type ChainEvm struct {
	Client         *ethclient.Client
	Ctx            context.Context
	Node           string
	RefundAddFee   float64
	NotEnabledLock bool
	// contains filtered or unexported fields
}

func NewChainEvm

func NewChainEvm(ctx context.Context, node string, refundAddFee float64) (*ChainEvm, error)

func (*ChainEvm) BestBlockNumber

func (c *ChainEvm) BestBlockNumber() (uint64, error)

func (*ChainEvm) EstimateGas

func (c *ChainEvm) EstimateGas(from, to string, value decimal.Decimal, input []byte, addFee float64) (gasPrice, gasLimit decimal.Decimal, err error)

func (*ChainEvm) GetBalance

func (c *ChainEvm) GetBalance(address string) (decimal.Decimal, error)

func (*ChainEvm) GetBlockByNumber

func (c *ChainEvm) GetBlockByNumber(blockNumber uint64) (*Block, error)

func (*ChainEvm) NewTransaction

func (c *ChainEvm) NewTransaction(from, to string, value decimal.Decimal, data []byte, nonce uint64, gasPrice, gasLimit decimal.Decimal) (*types.Transaction, error)

func (*ChainEvm) NonceAt

func (c *ChainEvm) NonceAt(address string) (uint64, error)

func (*ChainEvm) Request

func (c *ChainEvm) Request(url, method string, result interface{}) (resp *BaseResp, err error)

func (*ChainEvm) SendTransaction

func (c *ChainEvm) SendTransaction(tx *types.Transaction) error

func (*ChainEvm) SignWithPrivateKey

func (c *ChainEvm) SignWithPrivateKey(private string, tx *types.Transaction) (*types.Transaction, error)

type Erc20

type Erc20 struct {
	Erc20Caller     // Read-only binding to the contract
	Erc20Transactor // Write-only binding to the contract
	Erc20Filterer   // Log filterer for contract events
}

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

func NewErc20

func NewErc20(address common.Address, backend bind.ContractBackend) (*Erc20, error)

NewErc20 creates a new instance of Erc20, bound to a specific deployed contract.

type Erc20AddedBlackList

type Erc20AddedBlackList struct {
	User common.Address
	Raw  types.Log // Blockchain specific contextual infos
}

Erc20AddedBlackList represents a AddedBlackList event raised by the Erc20 contract.

type Erc20AddedBlackListIterator

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

Erc20AddedBlackListIterator is returned from FilterAddedBlackList and is used to iterate over the raw logs and unpacked data for AddedBlackList events raised by the Erc20 contract.

func (*Erc20AddedBlackListIterator) Close

func (it *Erc20AddedBlackListIterator) Close() error

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

func (*Erc20AddedBlackListIterator) Error

func (it *Erc20AddedBlackListIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20AddedBlackListIterator) Next

func (it *Erc20AddedBlackListIterator) 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 Erc20Approval

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

Erc20Approval represents a Approval event raised by the Erc20 contract.

type Erc20ApprovalIterator

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

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

func (*Erc20ApprovalIterator) Close

func (it *Erc20ApprovalIterator) Close() error

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

func (*Erc20ApprovalIterator) Error

func (it *Erc20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20ApprovalIterator) Next

func (it *Erc20ApprovalIterator) 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 Erc20Caller

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

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

func NewErc20Caller

func NewErc20Caller(address common.Address, caller bind.ContractCaller) (*Erc20Caller, error)

NewErc20Caller creates a new read-only instance of Erc20, bound to a specific deployed contract.

func (*Erc20Caller) Allowance

func (_Erc20 *Erc20Caller) 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 remaining)

func (*Erc20Caller) Allowed

func (_Erc20 *Erc20Caller) Allowed(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowed is a free data retrieval call binding the contract method 0x5c658165.

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

func (*Erc20Caller) BalanceOf

func (_Erc20 *Erc20Caller) BalanceOf(opts *bind.CallOpts, who common.Address) (*big.Int, error)

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

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

func (*Erc20Caller) Balances

func (_Erc20 *Erc20Caller) Balances(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x27e235e3.

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

func (*Erc20Caller) BasisPointsRate

func (_Erc20 *Erc20Caller) BasisPointsRate(opts *bind.CallOpts) (*big.Int, error)

BasisPointsRate is a free data retrieval call binding the contract method 0xdd644f72.

Solidity: function basisPointsRate() view returns(uint256)

func (*Erc20Caller) Decimals

func (_Erc20 *Erc20Caller) Decimals(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function decimals() view returns(uint256)

func (*Erc20Caller) Deprecated

func (_Erc20 *Erc20Caller) Deprecated(opts *bind.CallOpts) (bool, error)

Deprecated is a free data retrieval call binding the contract method 0x0e136b19.

Solidity: function deprecated() view returns(bool)

func (*Erc20Caller) GetBlackListStatus

func (_Erc20 *Erc20Caller) GetBlackListStatus(opts *bind.CallOpts, _maker common.Address) (bool, error)

GetBlackListStatus is a free data retrieval call binding the contract method 0x59bf1abe.

Solidity: function getBlackListStatus(address _maker) view returns(bool)

func (*Erc20Caller) GetOwner

func (_Erc20 *Erc20Caller) GetOwner(opts *bind.CallOpts) (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x893d20e8.

Solidity: function getOwner() view returns(address)

func (*Erc20Caller) IsBlackListed

func (_Erc20 *Erc20Caller) IsBlackListed(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsBlackListed is a free data retrieval call binding the contract method 0xe47d6060.

Solidity: function isBlackListed(address ) view returns(bool)

func (*Erc20Caller) MAXUINT

func (_Erc20 *Erc20Caller) MAXUINT(opts *bind.CallOpts) (*big.Int, error)

MAXUINT is a free data retrieval call binding the contract method 0xe5b5019a.

Solidity: function MAX_UINT() view returns(uint256)

func (*Erc20Caller) MaximumFee

func (_Erc20 *Erc20Caller) MaximumFee(opts *bind.CallOpts) (*big.Int, error)

MaximumFee is a free data retrieval call binding the contract method 0x35390714.

Solidity: function maximumFee() view returns(uint256)

func (*Erc20Caller) Name

func (_Erc20 *Erc20Caller) 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 (*Erc20Caller) Owner

func (_Erc20 *Erc20Caller) 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 (*Erc20Caller) Paused

func (_Erc20 *Erc20Caller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*Erc20Caller) Symbol

func (_Erc20 *Erc20Caller) 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 (*Erc20Caller) TotalSupply

func (_Erc20 *Erc20Caller) 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 (*Erc20Caller) TotalSupply1

func (_Erc20 *Erc20Caller) TotalSupply1(opts *bind.CallOpts) (*big.Int, error)

TotalSupply1 is a free data retrieval call binding the contract method 0x3eaaf86b.

Solidity: function _totalSupply() view returns(uint256)

func (*Erc20Caller) UpgradedAddress

func (_Erc20 *Erc20Caller) UpgradedAddress(opts *bind.CallOpts) (common.Address, error)

UpgradedAddress is a free data retrieval call binding the contract method 0x26976e3f.

Solidity: function upgradedAddress() view returns(address)

type Erc20CallerRaw

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

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

func (*Erc20CallerRaw) Call

func (_Erc20 *Erc20CallerRaw) 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 Erc20CallerSession

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

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

func (*Erc20CallerSession) Allowance

func (_Erc20 *Erc20CallerSession) 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 remaining)

func (*Erc20CallerSession) Allowed

func (_Erc20 *Erc20CallerSession) Allowed(arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowed is a free data retrieval call binding the contract method 0x5c658165.

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

func (*Erc20CallerSession) BalanceOf

func (_Erc20 *Erc20CallerSession) BalanceOf(who common.Address) (*big.Int, error)

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

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

func (*Erc20CallerSession) Balances

func (_Erc20 *Erc20CallerSession) Balances(arg0 common.Address) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x27e235e3.

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

func (*Erc20CallerSession) BasisPointsRate

func (_Erc20 *Erc20CallerSession) BasisPointsRate() (*big.Int, error)

BasisPointsRate is a free data retrieval call binding the contract method 0xdd644f72.

Solidity: function basisPointsRate() view returns(uint256)

func (*Erc20CallerSession) Decimals

func (_Erc20 *Erc20CallerSession) Decimals() (*big.Int, error)

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

Solidity: function decimals() view returns(uint256)

func (*Erc20CallerSession) Deprecated

func (_Erc20 *Erc20CallerSession) Deprecated() (bool, error)

Deprecated is a free data retrieval call binding the contract method 0x0e136b19.

Solidity: function deprecated() view returns(bool)

func (*Erc20CallerSession) GetBlackListStatus

func (_Erc20 *Erc20CallerSession) GetBlackListStatus(_maker common.Address) (bool, error)

GetBlackListStatus is a free data retrieval call binding the contract method 0x59bf1abe.

Solidity: function getBlackListStatus(address _maker) view returns(bool)

func (*Erc20CallerSession) GetOwner

func (_Erc20 *Erc20CallerSession) GetOwner() (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x893d20e8.

Solidity: function getOwner() view returns(address)

func (*Erc20CallerSession) IsBlackListed

func (_Erc20 *Erc20CallerSession) IsBlackListed(arg0 common.Address) (bool, error)

IsBlackListed is a free data retrieval call binding the contract method 0xe47d6060.

Solidity: function isBlackListed(address ) view returns(bool)

func (*Erc20CallerSession) MAXUINT

func (_Erc20 *Erc20CallerSession) MAXUINT() (*big.Int, error)

MAXUINT is a free data retrieval call binding the contract method 0xe5b5019a.

Solidity: function MAX_UINT() view returns(uint256)

func (*Erc20CallerSession) MaximumFee

func (_Erc20 *Erc20CallerSession) MaximumFee() (*big.Int, error)

MaximumFee is a free data retrieval call binding the contract method 0x35390714.

Solidity: function maximumFee() view returns(uint256)

func (*Erc20CallerSession) Name

func (_Erc20 *Erc20CallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*Erc20CallerSession) Owner

func (_Erc20 *Erc20CallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*Erc20CallerSession) Paused

func (_Erc20 *Erc20CallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*Erc20CallerSession) Symbol

func (_Erc20 *Erc20CallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*Erc20CallerSession) TotalSupply

func (_Erc20 *Erc20CallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*Erc20CallerSession) TotalSupply1

func (_Erc20 *Erc20CallerSession) TotalSupply1() (*big.Int, error)

TotalSupply1 is a free data retrieval call binding the contract method 0x3eaaf86b.

Solidity: function _totalSupply() view returns(uint256)

func (*Erc20CallerSession) UpgradedAddress

func (_Erc20 *Erc20CallerSession) UpgradedAddress() (common.Address, error)

UpgradedAddress is a free data retrieval call binding the contract method 0x26976e3f.

Solidity: function upgradedAddress() view returns(address)

type Erc20Deprecate

type Erc20Deprecate struct {
	NewAddress common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

Erc20Deprecate represents a Deprecate event raised by the Erc20 contract.

type Erc20DeprecateIterator

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

Erc20DeprecateIterator is returned from FilterDeprecate and is used to iterate over the raw logs and unpacked data for Deprecate events raised by the Erc20 contract.

func (*Erc20DeprecateIterator) Close

func (it *Erc20DeprecateIterator) Close() error

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

func (*Erc20DeprecateIterator) Error

func (it *Erc20DeprecateIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20DeprecateIterator) Next

func (it *Erc20DeprecateIterator) 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 Erc20DestroyedBlackFunds

type Erc20DestroyedBlackFunds struct {
	BlackListedUser common.Address
	Balance         *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

Erc20DestroyedBlackFunds represents a DestroyedBlackFunds event raised by the Erc20 contract.

type Erc20DestroyedBlackFundsIterator

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

Erc20DestroyedBlackFundsIterator is returned from FilterDestroyedBlackFunds and is used to iterate over the raw logs and unpacked data for DestroyedBlackFunds events raised by the Erc20 contract.

func (*Erc20DestroyedBlackFundsIterator) Close

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

func (*Erc20DestroyedBlackFundsIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20DestroyedBlackFundsIterator) 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 Erc20Filterer

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

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

func NewErc20Filterer

func NewErc20Filterer(address common.Address, filterer bind.ContractFilterer) (*Erc20Filterer, error)

NewErc20Filterer creates a new log filterer instance of Erc20, bound to a specific deployed contract.

func (*Erc20Filterer) FilterAddedBlackList

func (_Erc20 *Erc20Filterer) FilterAddedBlackList(opts *bind.FilterOpts) (*Erc20AddedBlackListIterator, error)

FilterAddedBlackList is a free log retrieval operation binding the contract event 0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc.

Solidity: event AddedBlackList(address _user)

func (*Erc20Filterer) FilterApproval

func (_Erc20 *Erc20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Erc20ApprovalIterator, 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 (*Erc20Filterer) FilterDeprecate

func (_Erc20 *Erc20Filterer) FilterDeprecate(opts *bind.FilterOpts) (*Erc20DeprecateIterator, error)

FilterDeprecate is a free log retrieval operation binding the contract event 0xcc358699805e9a8b7f77b522628c7cb9abd07d9efb86b6fb616af1609036a99e.

Solidity: event Deprecate(address newAddress)

func (*Erc20Filterer) FilterDestroyedBlackFunds

func (_Erc20 *Erc20Filterer) FilterDestroyedBlackFunds(opts *bind.FilterOpts) (*Erc20DestroyedBlackFundsIterator, error)

FilterDestroyedBlackFunds is a free log retrieval operation binding the contract event 0x61e6e66b0d6339b2980aecc6ccc0039736791f0ccde9ed512e789a7fbdd698c6.

Solidity: event DestroyedBlackFunds(address _blackListedUser, uint256 _balance)

func (*Erc20Filterer) FilterIssue

func (_Erc20 *Erc20Filterer) FilterIssue(opts *bind.FilterOpts) (*Erc20IssueIterator, error)

FilterIssue is a free log retrieval operation binding the contract event 0xcb8241adb0c3fdb35b70c24ce35c5eb0c17af7431c99f827d44a445ca624176a.

Solidity: event Issue(uint256 amount)

func (*Erc20Filterer) FilterParams

func (_Erc20 *Erc20Filterer) FilterParams(opts *bind.FilterOpts) (*Erc20ParamsIterator, error)

FilterParams is a free log retrieval operation binding the contract event 0xb044a1e409eac5c48e5af22d4af52670dd1a99059537a78b31b48c6500a6354e.

Solidity: event Params(uint256 feeBasisPoints, uint256 maxFee)

func (*Erc20Filterer) FilterPause

func (_Erc20 *Erc20Filterer) FilterPause(opts *bind.FilterOpts) (*Erc20PauseIterator, error)

FilterPause is a free log retrieval operation binding the contract event 0x6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff625.

Solidity: event Pause()

func (*Erc20Filterer) FilterRedeem

func (_Erc20 *Erc20Filterer) FilterRedeem(opts *bind.FilterOpts) (*Erc20RedeemIterator, error)

FilterRedeem is a free log retrieval operation binding the contract event 0x702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a44.

Solidity: event Redeem(uint256 amount)

func (*Erc20Filterer) FilterRemovedBlackList

func (_Erc20 *Erc20Filterer) FilterRemovedBlackList(opts *bind.FilterOpts) (*Erc20RemovedBlackListIterator, error)

FilterRemovedBlackList is a free log retrieval operation binding the contract event 0xd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c.

Solidity: event RemovedBlackList(address _user)

func (*Erc20Filterer) FilterTransfer

func (_Erc20 *Erc20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*Erc20TransferIterator, 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 (*Erc20Filterer) FilterUnpause

func (_Erc20 *Erc20Filterer) FilterUnpause(opts *bind.FilterOpts) (*Erc20UnpauseIterator, error)

FilterUnpause is a free log retrieval operation binding the contract event 0x7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b33.

Solidity: event Unpause()

func (*Erc20Filterer) ParseAddedBlackList

func (_Erc20 *Erc20Filterer) ParseAddedBlackList(log types.Log) (*Erc20AddedBlackList, error)

ParseAddedBlackList is a log parse operation binding the contract event 0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc.

Solidity: event AddedBlackList(address _user)

func (*Erc20Filterer) ParseApproval

func (_Erc20 *Erc20Filterer) ParseApproval(log types.Log) (*Erc20Approval, error)

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

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

func (*Erc20Filterer) ParseDeprecate

func (_Erc20 *Erc20Filterer) ParseDeprecate(log types.Log) (*Erc20Deprecate, error)

ParseDeprecate is a log parse operation binding the contract event 0xcc358699805e9a8b7f77b522628c7cb9abd07d9efb86b6fb616af1609036a99e.

Solidity: event Deprecate(address newAddress)

func (*Erc20Filterer) ParseDestroyedBlackFunds

func (_Erc20 *Erc20Filterer) ParseDestroyedBlackFunds(log types.Log) (*Erc20DestroyedBlackFunds, error)

ParseDestroyedBlackFunds is a log parse operation binding the contract event 0x61e6e66b0d6339b2980aecc6ccc0039736791f0ccde9ed512e789a7fbdd698c6.

Solidity: event DestroyedBlackFunds(address _blackListedUser, uint256 _balance)

func (*Erc20Filterer) ParseIssue

func (_Erc20 *Erc20Filterer) ParseIssue(log types.Log) (*Erc20Issue, error)

ParseIssue is a log parse operation binding the contract event 0xcb8241adb0c3fdb35b70c24ce35c5eb0c17af7431c99f827d44a445ca624176a.

Solidity: event Issue(uint256 amount)

func (*Erc20Filterer) ParseParams

func (_Erc20 *Erc20Filterer) ParseParams(log types.Log) (*Erc20Params, error)

ParseParams is a log parse operation binding the contract event 0xb044a1e409eac5c48e5af22d4af52670dd1a99059537a78b31b48c6500a6354e.

Solidity: event Params(uint256 feeBasisPoints, uint256 maxFee)

func (*Erc20Filterer) ParsePause

func (_Erc20 *Erc20Filterer) ParsePause(log types.Log) (*Erc20Pause, error)

ParsePause is a log parse operation binding the contract event 0x6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff625.

Solidity: event Pause()

func (*Erc20Filterer) ParseRedeem

func (_Erc20 *Erc20Filterer) ParseRedeem(log types.Log) (*Erc20Redeem, error)

ParseRedeem is a log parse operation binding the contract event 0x702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a44.

Solidity: event Redeem(uint256 amount)

func (*Erc20Filterer) ParseRemovedBlackList

func (_Erc20 *Erc20Filterer) ParseRemovedBlackList(log types.Log) (*Erc20RemovedBlackList, error)

ParseRemovedBlackList is a log parse operation binding the contract event 0xd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c.

Solidity: event RemovedBlackList(address _user)

func (*Erc20Filterer) ParseTransfer

func (_Erc20 *Erc20Filterer) ParseTransfer(log types.Log) (*Erc20Transfer, error)

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

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

func (*Erc20Filterer) ParseUnpause

func (_Erc20 *Erc20Filterer) ParseUnpause(log types.Log) (*Erc20Unpause, error)

ParseUnpause is a log parse operation binding the contract event 0x7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b33.

Solidity: event Unpause()

func (*Erc20Filterer) WatchAddedBlackList

func (_Erc20 *Erc20Filterer) WatchAddedBlackList(opts *bind.WatchOpts, sink chan<- *Erc20AddedBlackList) (event.Subscription, error)

WatchAddedBlackList is a free log subscription operation binding the contract event 0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc.

Solidity: event AddedBlackList(address _user)

func (*Erc20Filterer) WatchApproval

func (_Erc20 *Erc20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Erc20Approval, 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 (*Erc20Filterer) WatchDeprecate

func (_Erc20 *Erc20Filterer) WatchDeprecate(opts *bind.WatchOpts, sink chan<- *Erc20Deprecate) (event.Subscription, error)

WatchDeprecate is a free log subscription operation binding the contract event 0xcc358699805e9a8b7f77b522628c7cb9abd07d9efb86b6fb616af1609036a99e.

Solidity: event Deprecate(address newAddress)

func (*Erc20Filterer) WatchDestroyedBlackFunds

func (_Erc20 *Erc20Filterer) WatchDestroyedBlackFunds(opts *bind.WatchOpts, sink chan<- *Erc20DestroyedBlackFunds) (event.Subscription, error)

WatchDestroyedBlackFunds is a free log subscription operation binding the contract event 0x61e6e66b0d6339b2980aecc6ccc0039736791f0ccde9ed512e789a7fbdd698c6.

Solidity: event DestroyedBlackFunds(address _blackListedUser, uint256 _balance)

func (*Erc20Filterer) WatchIssue

func (_Erc20 *Erc20Filterer) WatchIssue(opts *bind.WatchOpts, sink chan<- *Erc20Issue) (event.Subscription, error)

WatchIssue is a free log subscription operation binding the contract event 0xcb8241adb0c3fdb35b70c24ce35c5eb0c17af7431c99f827d44a445ca624176a.

Solidity: event Issue(uint256 amount)

func (*Erc20Filterer) WatchParams

func (_Erc20 *Erc20Filterer) WatchParams(opts *bind.WatchOpts, sink chan<- *Erc20Params) (event.Subscription, error)

WatchParams is a free log subscription operation binding the contract event 0xb044a1e409eac5c48e5af22d4af52670dd1a99059537a78b31b48c6500a6354e.

Solidity: event Params(uint256 feeBasisPoints, uint256 maxFee)

func (*Erc20Filterer) WatchPause

func (_Erc20 *Erc20Filterer) WatchPause(opts *bind.WatchOpts, sink chan<- *Erc20Pause) (event.Subscription, error)

WatchPause is a free log subscription operation binding the contract event 0x6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff625.

Solidity: event Pause()

func (*Erc20Filterer) WatchRedeem

func (_Erc20 *Erc20Filterer) WatchRedeem(opts *bind.WatchOpts, sink chan<- *Erc20Redeem) (event.Subscription, error)

WatchRedeem is a free log subscription operation binding the contract event 0x702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a44.

Solidity: event Redeem(uint256 amount)

func (*Erc20Filterer) WatchRemovedBlackList

func (_Erc20 *Erc20Filterer) WatchRemovedBlackList(opts *bind.WatchOpts, sink chan<- *Erc20RemovedBlackList) (event.Subscription, error)

WatchRemovedBlackList is a free log subscription operation binding the contract event 0xd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c.

Solidity: event RemovedBlackList(address _user)

func (*Erc20Filterer) WatchTransfer

func (_Erc20 *Erc20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Erc20Transfer, 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)

func (*Erc20Filterer) WatchUnpause

func (_Erc20 *Erc20Filterer) WatchUnpause(opts *bind.WatchOpts, sink chan<- *Erc20Unpause) (event.Subscription, error)

WatchUnpause is a free log subscription operation binding the contract event 0x7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b33.

Solidity: event Unpause()

type Erc20Issue

type Erc20Issue struct {
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

Erc20Issue represents a Issue event raised by the Erc20 contract.

type Erc20IssueIterator

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

Erc20IssueIterator is returned from FilterIssue and is used to iterate over the raw logs and unpacked data for Issue events raised by the Erc20 contract.

func (*Erc20IssueIterator) Close

func (it *Erc20IssueIterator) Close() error

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

func (*Erc20IssueIterator) Error

func (it *Erc20IssueIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20IssueIterator) Next

func (it *Erc20IssueIterator) 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 Erc20Params

type Erc20Params struct {
	FeeBasisPoints *big.Int
	MaxFee         *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

Erc20Params represents a Params event raised by the Erc20 contract.

type Erc20ParamsIterator

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

Erc20ParamsIterator is returned from FilterParams and is used to iterate over the raw logs and unpacked data for Params events raised by the Erc20 contract.

func (*Erc20ParamsIterator) Close

func (it *Erc20ParamsIterator) Close() error

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

func (*Erc20ParamsIterator) Error

func (it *Erc20ParamsIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20ParamsIterator) Next

func (it *Erc20ParamsIterator) 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 Erc20Pause

type Erc20Pause struct {
	Raw types.Log // Blockchain specific contextual infos
}

Erc20Pause represents a Pause event raised by the Erc20 contract.

type Erc20PauseIterator

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

Erc20PauseIterator is returned from FilterPause and is used to iterate over the raw logs and unpacked data for Pause events raised by the Erc20 contract.

func (*Erc20PauseIterator) Close

func (it *Erc20PauseIterator) Close() error

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

func (*Erc20PauseIterator) Error

func (it *Erc20PauseIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20PauseIterator) Next

func (it *Erc20PauseIterator) 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 Erc20Raw

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

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

func (*Erc20Raw) Call

func (_Erc20 *Erc20Raw) 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 (*Erc20Raw) Transact

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

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

func (*Erc20Raw) Transfer

func (_Erc20 *Erc20Raw) 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 Erc20Redeem

type Erc20Redeem struct {
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

Erc20Redeem represents a Redeem event raised by the Erc20 contract.

type Erc20RedeemIterator

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

Erc20RedeemIterator is returned from FilterRedeem and is used to iterate over the raw logs and unpacked data for Redeem events raised by the Erc20 contract.

func (*Erc20RedeemIterator) Close

func (it *Erc20RedeemIterator) Close() error

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

func (*Erc20RedeemIterator) Error

func (it *Erc20RedeemIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20RedeemIterator) Next

func (it *Erc20RedeemIterator) 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 Erc20RemovedBlackList

type Erc20RemovedBlackList struct {
	User common.Address
	Raw  types.Log // Blockchain specific contextual infos
}

Erc20RemovedBlackList represents a RemovedBlackList event raised by the Erc20 contract.

type Erc20RemovedBlackListIterator

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

Erc20RemovedBlackListIterator is returned from FilterRemovedBlackList and is used to iterate over the raw logs and unpacked data for RemovedBlackList events raised by the Erc20 contract.

func (*Erc20RemovedBlackListIterator) Close

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

func (*Erc20RemovedBlackListIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20RemovedBlackListIterator) 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 Erc20Session

type Erc20Session struct {
	Contract     *Erc20            // 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
}

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

func (*Erc20Session) AddBlackList

func (_Erc20 *Erc20Session) AddBlackList(_evilUser common.Address) (*types.Transaction, error)

AddBlackList is a paid mutator transaction binding the contract method 0x0ecb93c0.

Solidity: function addBlackList(address _evilUser) returns()

func (*Erc20Session) Allowance

func (_Erc20 *Erc20Session) 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 remaining)

func (*Erc20Session) Allowed

func (_Erc20 *Erc20Session) Allowed(arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowed is a free data retrieval call binding the contract method 0x5c658165.

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

func (*Erc20Session) Approve

func (_Erc20 *Erc20Session) 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()

func (*Erc20Session) BalanceOf

func (_Erc20 *Erc20Session) BalanceOf(who common.Address) (*big.Int, error)

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

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

func (*Erc20Session) Balances

func (_Erc20 *Erc20Session) Balances(arg0 common.Address) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x27e235e3.

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

func (*Erc20Session) BasisPointsRate

func (_Erc20 *Erc20Session) BasisPointsRate() (*big.Int, error)

BasisPointsRate is a free data retrieval call binding the contract method 0xdd644f72.

Solidity: function basisPointsRate() view returns(uint256)

func (*Erc20Session) Decimals

func (_Erc20 *Erc20Session) Decimals() (*big.Int, error)

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

Solidity: function decimals() view returns(uint256)

func (*Erc20Session) Deprecate

func (_Erc20 *Erc20Session) Deprecate(_upgradedAddress common.Address) (*types.Transaction, error)

Deprecate is a paid mutator transaction binding the contract method 0x0753c30c.

Solidity: function deprecate(address _upgradedAddress) returns()

func (*Erc20Session) Deprecated

func (_Erc20 *Erc20Session) Deprecated() (bool, error)

Deprecated is a free data retrieval call binding the contract method 0x0e136b19.

Solidity: function deprecated() view returns(bool)

func (*Erc20Session) DestroyBlackFunds

func (_Erc20 *Erc20Session) DestroyBlackFunds(_blackListedUser common.Address) (*types.Transaction, error)

DestroyBlackFunds is a paid mutator transaction binding the contract method 0xf3bdc228.

Solidity: function destroyBlackFunds(address _blackListedUser) returns()

func (*Erc20Session) GetBlackListStatus

func (_Erc20 *Erc20Session) GetBlackListStatus(_maker common.Address) (bool, error)

GetBlackListStatus is a free data retrieval call binding the contract method 0x59bf1abe.

Solidity: function getBlackListStatus(address _maker) view returns(bool)

func (*Erc20Session) GetOwner

func (_Erc20 *Erc20Session) GetOwner() (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x893d20e8.

Solidity: function getOwner() view returns(address)

func (*Erc20Session) IsBlackListed

func (_Erc20 *Erc20Session) IsBlackListed(arg0 common.Address) (bool, error)

IsBlackListed is a free data retrieval call binding the contract method 0xe47d6060.

Solidity: function isBlackListed(address ) view returns(bool)

func (*Erc20Session) Issue

func (_Erc20 *Erc20Session) Issue(amount *big.Int) (*types.Transaction, error)

Issue is a paid mutator transaction binding the contract method 0xcc872b66.

Solidity: function issue(uint256 amount) returns()

func (*Erc20Session) MAXUINT

func (_Erc20 *Erc20Session) MAXUINT() (*big.Int, error)

MAXUINT is a free data retrieval call binding the contract method 0xe5b5019a.

Solidity: function MAX_UINT() view returns(uint256)

func (*Erc20Session) MaximumFee

func (_Erc20 *Erc20Session) MaximumFee() (*big.Int, error)

MaximumFee is a free data retrieval call binding the contract method 0x35390714.

Solidity: function maximumFee() view returns(uint256)

func (*Erc20Session) Name

func (_Erc20 *Erc20Session) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*Erc20Session) Owner

func (_Erc20 *Erc20Session) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*Erc20Session) Pause

func (_Erc20 *Erc20Session) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*Erc20Session) Paused

func (_Erc20 *Erc20Session) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*Erc20Session) Redeem

func (_Erc20 *Erc20Session) Redeem(amount *big.Int) (*types.Transaction, error)

Redeem is a paid mutator transaction binding the contract method 0xdb006a75.

Solidity: function redeem(uint256 amount) returns()

func (*Erc20Session) RemoveBlackList

func (_Erc20 *Erc20Session) RemoveBlackList(_clearedUser common.Address) (*types.Transaction, error)

RemoveBlackList is a paid mutator transaction binding the contract method 0xe4997dc5.

Solidity: function removeBlackList(address _clearedUser) returns()

func (*Erc20Session) SetParams

func (_Erc20 *Erc20Session) SetParams(newBasisPoints *big.Int, newMaxFee *big.Int) (*types.Transaction, error)

SetParams is a paid mutator transaction binding the contract method 0xc0324c77.

Solidity: function setParams(uint256 newBasisPoints, uint256 newMaxFee) returns()

func (*Erc20Session) Symbol

func (_Erc20 *Erc20Session) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*Erc20Session) TotalSupply

func (_Erc20 *Erc20Session) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*Erc20Session) TotalSupply1

func (_Erc20 *Erc20Session) TotalSupply1() (*big.Int, error)

TotalSupply1 is a free data retrieval call binding the contract method 0x3eaaf86b.

Solidity: function _totalSupply() view returns(uint256)

func (*Erc20Session) Transfer

func (_Erc20 *Erc20Session) 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()

func (*Erc20Session) TransferFrom

func (_Erc20 *Erc20Session) 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()

func (*Erc20Session) TransferOwnership

func (_Erc20 *Erc20Session) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*Erc20Session) Unpause

func (_Erc20 *Erc20Session) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*Erc20Session) UpgradedAddress

func (_Erc20 *Erc20Session) UpgradedAddress() (common.Address, error)

UpgradedAddress is a free data retrieval call binding the contract method 0x26976e3f.

Solidity: function upgradedAddress() view returns(address)

type Erc20Transactor

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

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

func NewErc20Transactor

func NewErc20Transactor(address common.Address, transactor bind.ContractTransactor) (*Erc20Transactor, error)

NewErc20Transactor creates a new write-only instance of Erc20, bound to a specific deployed contract.

func (*Erc20Transactor) AddBlackList

func (_Erc20 *Erc20Transactor) AddBlackList(opts *bind.TransactOpts, _evilUser common.Address) (*types.Transaction, error)

AddBlackList is a paid mutator transaction binding the contract method 0x0ecb93c0.

Solidity: function addBlackList(address _evilUser) returns()

func (*Erc20Transactor) Approve

func (_Erc20 *Erc20Transactor) 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()

func (*Erc20Transactor) Deprecate

func (_Erc20 *Erc20Transactor) Deprecate(opts *bind.TransactOpts, _upgradedAddress common.Address) (*types.Transaction, error)

Deprecate is a paid mutator transaction binding the contract method 0x0753c30c.

Solidity: function deprecate(address _upgradedAddress) returns()

func (*Erc20Transactor) DestroyBlackFunds

func (_Erc20 *Erc20Transactor) DestroyBlackFunds(opts *bind.TransactOpts, _blackListedUser common.Address) (*types.Transaction, error)

DestroyBlackFunds is a paid mutator transaction binding the contract method 0xf3bdc228.

Solidity: function destroyBlackFunds(address _blackListedUser) returns()

func (*Erc20Transactor) Issue

func (_Erc20 *Erc20Transactor) Issue(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

Issue is a paid mutator transaction binding the contract method 0xcc872b66.

Solidity: function issue(uint256 amount) returns()

func (*Erc20Transactor) Pause

func (_Erc20 *Erc20Transactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*Erc20Transactor) Redeem

func (_Erc20 *Erc20Transactor) Redeem(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

Redeem is a paid mutator transaction binding the contract method 0xdb006a75.

Solidity: function redeem(uint256 amount) returns()

func (*Erc20Transactor) RemoveBlackList

func (_Erc20 *Erc20Transactor) RemoveBlackList(opts *bind.TransactOpts, _clearedUser common.Address) (*types.Transaction, error)

RemoveBlackList is a paid mutator transaction binding the contract method 0xe4997dc5.

Solidity: function removeBlackList(address _clearedUser) returns()

func (*Erc20Transactor) SetParams

func (_Erc20 *Erc20Transactor) SetParams(opts *bind.TransactOpts, newBasisPoints *big.Int, newMaxFee *big.Int) (*types.Transaction, error)

SetParams is a paid mutator transaction binding the contract method 0xc0324c77.

Solidity: function setParams(uint256 newBasisPoints, uint256 newMaxFee) returns()

func (*Erc20Transactor) Transfer

func (_Erc20 *Erc20Transactor) 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()

func (*Erc20Transactor) TransferFrom

func (_Erc20 *Erc20Transactor) 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()

func (*Erc20Transactor) TransferOwnership

func (_Erc20 *Erc20Transactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*Erc20Transactor) Unpause

func (_Erc20 *Erc20Transactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

type Erc20TransactorRaw

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

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

func (*Erc20TransactorRaw) Transact

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

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

func (*Erc20TransactorRaw) Transfer

func (_Erc20 *Erc20TransactorRaw) 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 Erc20TransactorSession

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

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

func (*Erc20TransactorSession) AddBlackList

func (_Erc20 *Erc20TransactorSession) AddBlackList(_evilUser common.Address) (*types.Transaction, error)

AddBlackList is a paid mutator transaction binding the contract method 0x0ecb93c0.

Solidity: function addBlackList(address _evilUser) returns()

func (*Erc20TransactorSession) Approve

func (_Erc20 *Erc20TransactorSession) 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()

func (*Erc20TransactorSession) Deprecate

func (_Erc20 *Erc20TransactorSession) Deprecate(_upgradedAddress common.Address) (*types.Transaction, error)

Deprecate is a paid mutator transaction binding the contract method 0x0753c30c.

Solidity: function deprecate(address _upgradedAddress) returns()

func (*Erc20TransactorSession) DestroyBlackFunds

func (_Erc20 *Erc20TransactorSession) DestroyBlackFunds(_blackListedUser common.Address) (*types.Transaction, error)

DestroyBlackFunds is a paid mutator transaction binding the contract method 0xf3bdc228.

Solidity: function destroyBlackFunds(address _blackListedUser) returns()

func (*Erc20TransactorSession) Issue

func (_Erc20 *Erc20TransactorSession) Issue(amount *big.Int) (*types.Transaction, error)

Issue is a paid mutator transaction binding the contract method 0xcc872b66.

Solidity: function issue(uint256 amount) returns()

func (*Erc20TransactorSession) Pause

func (_Erc20 *Erc20TransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*Erc20TransactorSession) Redeem

func (_Erc20 *Erc20TransactorSession) Redeem(amount *big.Int) (*types.Transaction, error)

Redeem is a paid mutator transaction binding the contract method 0xdb006a75.

Solidity: function redeem(uint256 amount) returns()

func (*Erc20TransactorSession) RemoveBlackList

func (_Erc20 *Erc20TransactorSession) RemoveBlackList(_clearedUser common.Address) (*types.Transaction, error)

RemoveBlackList is a paid mutator transaction binding the contract method 0xe4997dc5.

Solidity: function removeBlackList(address _clearedUser) returns()

func (*Erc20TransactorSession) SetParams

func (_Erc20 *Erc20TransactorSession) SetParams(newBasisPoints *big.Int, newMaxFee *big.Int) (*types.Transaction, error)

SetParams is a paid mutator transaction binding the contract method 0xc0324c77.

Solidity: function setParams(uint256 newBasisPoints, uint256 newMaxFee) returns()

func (*Erc20TransactorSession) Transfer

func (_Erc20 *Erc20TransactorSession) 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()

func (*Erc20TransactorSession) TransferFrom

func (_Erc20 *Erc20TransactorSession) 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()

func (*Erc20TransactorSession) TransferOwnership

func (_Erc20 *Erc20TransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*Erc20TransactorSession) Unpause

func (_Erc20 *Erc20TransactorSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

type Erc20Transfer

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

Erc20Transfer represents a Transfer event raised by the Erc20 contract.

type Erc20TransferIterator

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

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

func (*Erc20TransferIterator) Close

func (it *Erc20TransferIterator) Close() error

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

func (*Erc20TransferIterator) Error

func (it *Erc20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20TransferIterator) Next

func (it *Erc20TransferIterator) 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 Erc20Unpause

type Erc20Unpause struct {
	Raw types.Log // Blockchain specific contextual infos
}

Erc20Unpause represents a Unpause event raised by the Erc20 contract.

type Erc20UnpauseIterator

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

Erc20UnpauseIterator is returned from FilterUnpause and is used to iterate over the raw logs and unpacked data for Unpause events raised by the Erc20 contract.

func (*Erc20UnpauseIterator) Close

func (it *Erc20UnpauseIterator) Close() error

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

func (*Erc20UnpauseIterator) Error

func (it *Erc20UnpauseIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20UnpauseIterator) Next

func (it *Erc20UnpauseIterator) 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 Error

type Error struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type Transaction

type Transaction struct {
	BlockHash        string `json:"blockHash"`
	BlockNumber      string `json:"blockNumber"`
	ChainId          string `json:"chainId"`
	Condition        string `json:"condition"`
	Creates          string `json:"creates"`
	From             string `json:"from"`
	To               string `json:"to"`
	Gas              string `json:"gas"`
	GasUsed          string `json:"gas_used"`
	GasPrice         string `json:"gasPrice"`
	Hash             string `json:"hash"`
	Input            string `json:"input"`
	Nonce            string `json:"nonce"`
	TransactionIndex string `json:"transactionIndex"`
	PublicKey        string `json:"publicKey"`
	Value            string `json:"value"`
	Raw              string `json:"raw"`
	StandardV        string `json:"standardV"`
	R                string `json:"r"`
	S                string `json:"s"`
	V                string `json:"v"`
	Status           string `json:"status"`
}

Jump to

Keyboard shortcuts

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