ethereumChain

package
v0.0.0-...-102a4db Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ContractTokenABI = "" /* 395-byte string literal not displayed */

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

View Source
const ERC20BasicABI = "" /* 3080-byte string literal not displayed */

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

View Source
const ERC721ABI = "" /* 1185-byte string literal not displayed */

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

View Source
const SafeMathABI = "[]"

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

Variables

View Source
var ContractTokenBin = "" /* 1008-byte string literal not displayed */

ContractTokenBin is the compiled bytecode used for deploying new contracts.

View Source
var ERC20BasicBin = "" /* 3388-byte string literal not displayed */

ERC20BasicBin is the compiled bytecode used for deploying new contracts.

View Source
var ERC721Bin = "" /* 1118-byte string literal not displayed */

ERC721Bin is the compiled bytecode used for deploying new contracts.

View Source
var SafeMathBin = "" /* 284-byte string literal not displayed */

SafeMathBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type ContractToken

type ContractToken struct {
	ContractTokenCaller     // Read-only binding to the contract
	ContractTokenTransactor // Write-only binding to the contract
	ContractTokenFilterer   // Log filterer for contract events
}

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

func DeployContractToken

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

DeployContractToken deploys a new Ethereum contract, binding an instance of ContractToken to it.

func NewContractToken

func NewContractToken(address common.Address, backend bind.ContractBackend) (*ContractToken, error)

NewContractToken creates a new instance of ContractToken, bound to a specific deployed contract.

type ContractTokenCaller

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

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

func NewContractTokenCaller

func NewContractTokenCaller(address common.Address, caller bind.ContractCaller) (*ContractTokenCaller, error)

NewContractTokenCaller creates a new read-only instance of ContractToken, bound to a specific deployed contract.

func (*ContractTokenCaller) Greet

func (_ContractToken *ContractTokenCaller) Greet(opts *bind.CallOpts, str string) (string, error)

Greet is a free data retrieval call binding the contract method 0xefdeaaf5.

Solidity: function Greet(string str) view returns(string)

func (*ContractTokenCaller) Hello

func (_ContractToken *ContractTokenCaller) Hello(opts *bind.CallOpts) (string, error)

Hello is a free data retrieval call binding the contract method 0xbcdfe0d5.

Solidity: function Hello() view returns(string)

type ContractTokenCallerRaw

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

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

func (*ContractTokenCallerRaw) Call

func (_ContractToken *ContractTokenCallerRaw) 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 ContractTokenCallerSession

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

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

func (*ContractTokenCallerSession) Greet

func (_ContractToken *ContractTokenCallerSession) Greet(str string) (string, error)

Greet is a free data retrieval call binding the contract method 0xefdeaaf5.

Solidity: function Greet(string str) view returns(string)

func (*ContractTokenCallerSession) Hello

func (_ContractToken *ContractTokenCallerSession) Hello() (string, error)

Hello is a free data retrieval call binding the contract method 0xbcdfe0d5.

Solidity: function Hello() view returns(string)

type ContractTokenFilterer

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

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

func NewContractTokenFilterer

func NewContractTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*ContractTokenFilterer, error)

NewContractTokenFilterer creates a new log filterer instance of ContractToken, bound to a specific deployed contract.

type ContractTokenRaw

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

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

func (*ContractTokenRaw) Call

func (_ContractToken *ContractTokenRaw) 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 (*ContractTokenRaw) Transact

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

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

func (*ContractTokenRaw) Transfer

func (_ContractToken *ContractTokenRaw) 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 ContractTokenSession

type ContractTokenSession struct {
	Contract     *ContractToken    // 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
}

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

func (*ContractTokenSession) Greet

func (_ContractToken *ContractTokenSession) Greet(str string) (string, error)

Greet is a free data retrieval call binding the contract method 0xefdeaaf5.

Solidity: function Greet(string str) view returns(string)

func (*ContractTokenSession) Hello

func (_ContractToken *ContractTokenSession) Hello() (string, error)

Hello is a free data retrieval call binding the contract method 0xbcdfe0d5.

Solidity: function Hello() view returns(string)

type ContractTokenTransactor

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

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

func NewContractTokenTransactor

func NewContractTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*ContractTokenTransactor, error)

NewContractTokenTransactor creates a new write-only instance of ContractToken, bound to a specific deployed contract.

type ContractTokenTransactorRaw

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

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

func (*ContractTokenTransactorRaw) Transact

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

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

func (*ContractTokenTransactorRaw) Transfer

func (_ContractToken *ContractTokenTransactorRaw) 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 ContractTokenTransactorSession

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

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

type ERC20Basic

type ERC20Basic struct {
	ERC20BasicCaller     // Read-only binding to the contract
	ERC20BasicTransactor // Write-only binding to the contract
	ERC20BasicFilterer   // Log filterer for contract events
}

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

func DeployERC20Basic

func DeployERC20Basic(auth *bind.TransactOpts, backend bind.ContractBackend, total *big.Int) (common.Address, *types.Transaction, *ERC20Basic, error)

DeployERC20Basic deploys a new Ethereum contract, binding an instance of ERC20Basic to it.

func NewERC20Basic

func NewERC20Basic(address common.Address, backend bind.ContractBackend) (*ERC20Basic, error)

NewERC20Basic creates a new instance of ERC20Basic, bound to a specific deployed contract.

type ERC20BasicApproval

type ERC20BasicApproval struct {
	TokenOwner common.Address
	Spender    common.Address
	Tokens     *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

ERC20BasicApproval represents a Approval event raised by the ERC20Basic contract.

type ERC20BasicApprovalIterator

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

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

func (*ERC20BasicApprovalIterator) Close

func (it *ERC20BasicApprovalIterator) Close() error

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

func (*ERC20BasicApprovalIterator) Error

func (it *ERC20BasicApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20BasicApprovalIterator) Next

func (it *ERC20BasicApprovalIterator) 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 ERC20BasicCaller

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

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

func NewERC20BasicCaller

func NewERC20BasicCaller(address common.Address, caller bind.ContractCaller) (*ERC20BasicCaller, error)

NewERC20BasicCaller creates a new read-only instance of ERC20Basic, bound to a specific deployed contract.

func (*ERC20BasicCaller) Allowance

func (_ERC20Basic *ERC20BasicCaller) Allowance(opts *bind.CallOpts, owner common.Address, delegate common.Address) (*big.Int, error)

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

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

func (*ERC20BasicCaller) BalanceOf

func (_ERC20Basic *ERC20BasicCaller) BalanceOf(opts *bind.CallOpts, tokenOwner common.Address) (*big.Int, error)

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

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

func (*ERC20BasicCaller) Decimals

func (_ERC20Basic *ERC20BasicCaller) 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 (*ERC20BasicCaller) Name

func (_ERC20Basic *ERC20BasicCaller) 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 (*ERC20BasicCaller) Symbol

func (_ERC20Basic *ERC20BasicCaller) 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 (*ERC20BasicCaller) TotalSupply

func (_ERC20Basic *ERC20BasicCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type ERC20BasicCallerRaw

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

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

func (*ERC20BasicCallerRaw) Call

func (_ERC20Basic *ERC20BasicCallerRaw) 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 ERC20BasicCallerSession

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

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

func (*ERC20BasicCallerSession) Allowance

func (_ERC20Basic *ERC20BasicCallerSession) Allowance(owner common.Address, delegate common.Address) (*big.Int, error)

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

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

func (*ERC20BasicCallerSession) BalanceOf

func (_ERC20Basic *ERC20BasicCallerSession) BalanceOf(tokenOwner common.Address) (*big.Int, error)

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

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

func (*ERC20BasicCallerSession) Decimals

func (_ERC20Basic *ERC20BasicCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*ERC20BasicCallerSession) Name

func (_ERC20Basic *ERC20BasicCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*ERC20BasicCallerSession) Symbol

func (_ERC20Basic *ERC20BasicCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*ERC20BasicCallerSession) TotalSupply

func (_ERC20Basic *ERC20BasicCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type ERC20BasicFilterer

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

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

func NewERC20BasicFilterer

func NewERC20BasicFilterer(address common.Address, filterer bind.ContractFilterer) (*ERC20BasicFilterer, error)

NewERC20BasicFilterer creates a new log filterer instance of ERC20Basic, bound to a specific deployed contract.

func (*ERC20BasicFilterer) FilterApproval

func (_ERC20Basic *ERC20BasicFilterer) FilterApproval(opts *bind.FilterOpts, tokenOwner []common.Address, spender []common.Address) (*ERC20BasicApprovalIterator, error)

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

Solidity: event Approval(address indexed tokenOwner, address indexed spender, uint256 tokens)

func (*ERC20BasicFilterer) FilterTransfer

func (_ERC20Basic *ERC20BasicFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20BasicTransferIterator, error)

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

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

func (*ERC20BasicFilterer) ParseApproval

func (_ERC20Basic *ERC20BasicFilterer) ParseApproval(log types.Log) (*ERC20BasicApproval, error)

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

Solidity: event Approval(address indexed tokenOwner, address indexed spender, uint256 tokens)

func (*ERC20BasicFilterer) ParseTransfer

func (_ERC20Basic *ERC20BasicFilterer) ParseTransfer(log types.Log) (*ERC20BasicTransfer, error)

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

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

func (*ERC20BasicFilterer) WatchApproval

func (_ERC20Basic *ERC20BasicFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20BasicApproval, tokenOwner []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 tokenOwner, address indexed spender, uint256 tokens)

func (*ERC20BasicFilterer) WatchTransfer

func (_ERC20Basic *ERC20BasicFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20BasicTransfer, 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 tokens)

type ERC20BasicRaw

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

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

func (*ERC20BasicRaw) Call

func (_ERC20Basic *ERC20BasicRaw) 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 (*ERC20BasicRaw) Transact

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

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

func (*ERC20BasicRaw) Transfer

func (_ERC20Basic *ERC20BasicRaw) 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 ERC20BasicSession

type ERC20BasicSession struct {
	Contract     *ERC20Basic       // 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
}

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

func (*ERC20BasicSession) Allowance

func (_ERC20Basic *ERC20BasicSession) Allowance(owner common.Address, delegate common.Address) (*big.Int, error)

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

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

func (*ERC20BasicSession) Approve

func (_ERC20Basic *ERC20BasicSession) Approve(delegate common.Address, numTokens *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address delegate, uint256 numTokens) returns(bool)

func (*ERC20BasicSession) BalanceOf

func (_ERC20Basic *ERC20BasicSession) BalanceOf(tokenOwner common.Address) (*big.Int, error)

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

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

func (*ERC20BasicSession) Decimals

func (_ERC20Basic *ERC20BasicSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*ERC20BasicSession) Name

func (_ERC20Basic *ERC20BasicSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*ERC20BasicSession) Symbol

func (_ERC20Basic *ERC20BasicSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*ERC20BasicSession) TotalSupply

func (_ERC20Basic *ERC20BasicSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*ERC20BasicSession) Transfer

func (_ERC20Basic *ERC20BasicSession) Transfer(receiver common.Address, numTokens *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address receiver, uint256 numTokens) returns(bool)

func (*ERC20BasicSession) TransferFrom

func (_ERC20Basic *ERC20BasicSession) TransferFrom(owner common.Address, buyer common.Address, numTokens *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address owner, address buyer, uint256 numTokens) returns(bool)

type ERC20BasicTransactor

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

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

func NewERC20BasicTransactor

func NewERC20BasicTransactor(address common.Address, transactor bind.ContractTransactor) (*ERC20BasicTransactor, error)

NewERC20BasicTransactor creates a new write-only instance of ERC20Basic, bound to a specific deployed contract.

func (*ERC20BasicTransactor) Approve

func (_ERC20Basic *ERC20BasicTransactor) Approve(opts *bind.TransactOpts, delegate common.Address, numTokens *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address delegate, uint256 numTokens) returns(bool)

func (*ERC20BasicTransactor) Transfer

func (_ERC20Basic *ERC20BasicTransactor) Transfer(opts *bind.TransactOpts, receiver common.Address, numTokens *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address receiver, uint256 numTokens) returns(bool)

func (*ERC20BasicTransactor) TransferFrom

func (_ERC20Basic *ERC20BasicTransactor) TransferFrom(opts *bind.TransactOpts, owner common.Address, buyer common.Address, numTokens *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address owner, address buyer, uint256 numTokens) returns(bool)

type ERC20BasicTransactorRaw

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

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

func (*ERC20BasicTransactorRaw) Transact

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

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

func (*ERC20BasicTransactorRaw) Transfer

func (_ERC20Basic *ERC20BasicTransactorRaw) 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 ERC20BasicTransactorSession

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

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

func (*ERC20BasicTransactorSession) Approve

func (_ERC20Basic *ERC20BasicTransactorSession) Approve(delegate common.Address, numTokens *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address delegate, uint256 numTokens) returns(bool)

func (*ERC20BasicTransactorSession) Transfer

func (_ERC20Basic *ERC20BasicTransactorSession) Transfer(receiver common.Address, numTokens *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address receiver, uint256 numTokens) returns(bool)

func (*ERC20BasicTransactorSession) TransferFrom

func (_ERC20Basic *ERC20BasicTransactorSession) TransferFrom(owner common.Address, buyer common.Address, numTokens *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address owner, address buyer, uint256 numTokens) returns(bool)

type ERC20BasicTransfer

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

ERC20BasicTransfer represents a Transfer event raised by the ERC20Basic contract.

type ERC20BasicTransferIterator

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

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

func (*ERC20BasicTransferIterator) Close

func (it *ERC20BasicTransferIterator) Close() error

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

func (*ERC20BasicTransferIterator) Error

func (it *ERC20BasicTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20BasicTransferIterator) Next

func (it *ERC20BasicTransferIterator) 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 ERC721

type ERC721 struct {
	ERC721Caller     // Read-only binding to the contract
	ERC721Transactor // Write-only binding to the contract
	ERC721Filterer   // Log filterer for contract events
}

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

func DeployERC721

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

DeployERC721 deploys a new Ethereum contract, binding an instance of ERC721 to it.

func NewERC721

func NewERC721(address common.Address, backend bind.ContractBackend) (*ERC721, error)

NewERC721 creates a new instance of ERC721, bound to a specific deployed contract.

type ERC721Caller

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

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

func NewERC721Caller

func NewERC721Caller(address common.Address, caller bind.ContractCaller) (*ERC721Caller, error)

NewERC721Caller creates a new read-only instance of ERC721, bound to a specific deployed contract.

type ERC721CallerRaw

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

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

func (*ERC721CallerRaw) Call

func (_ERC721 *ERC721CallerRaw) 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 ERC721CallerSession

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

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

type ERC721Filterer

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

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

func NewERC721Filterer

func NewERC721Filterer(address common.Address, filterer bind.ContractFilterer) (*ERC721Filterer, error)

NewERC721Filterer creates a new log filterer instance of ERC721, bound to a specific deployed contract.

func (*ERC721Filterer) FilterMint

func (_ERC721 *ERC721Filterer) FilterMint(opts *bind.FilterOpts, _to []common.Address, _tokenId []*big.Int) (*ERC721MintIterator, error)

FilterMint is a free log retrieval operation binding the contract event 0x3dec94b8abc8f801eaade1616d3aadd3114b556a284267905e0a053b2df39892.

Solidity: event Mint(address indexed _to, uint256 indexed _tokenId, bytes32 _ipfsHash)

func (*ERC721Filterer) FilterTransfer

func (_ERC721 *ERC721Filterer) FilterTransfer(opts *bind.FilterOpts, _from []common.Address, _to []common.Address, _tokenId []*big.Int) (*ERC721TransferIterator, error)

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

Solidity: event Transfer(address indexed _from, address indexed _to, uint256 indexed _tokenId)

func (*ERC721Filterer) ParseMint

func (_ERC721 *ERC721Filterer) ParseMint(log types.Log) (*ERC721Mint, error)

ParseMint is a log parse operation binding the contract event 0x3dec94b8abc8f801eaade1616d3aadd3114b556a284267905e0a053b2df39892.

Solidity: event Mint(address indexed _to, uint256 indexed _tokenId, bytes32 _ipfsHash)

func (*ERC721Filterer) ParseTransfer

func (_ERC721 *ERC721Filterer) ParseTransfer(log types.Log) (*ERC721Transfer, error)

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

Solidity: event Transfer(address indexed _from, address indexed _to, uint256 indexed _tokenId)

func (*ERC721Filterer) WatchMint

func (_ERC721 *ERC721Filterer) WatchMint(opts *bind.WatchOpts, sink chan<- *ERC721Mint, _to []common.Address, _tokenId []*big.Int) (event.Subscription, error)

WatchMint is a free log subscription operation binding the contract event 0x3dec94b8abc8f801eaade1616d3aadd3114b556a284267905e0a053b2df39892.

Solidity: event Mint(address indexed _to, uint256 indexed _tokenId, bytes32 _ipfsHash)

func (*ERC721Filterer) WatchTransfer

func (_ERC721 *ERC721Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC721Transfer, _from []common.Address, _to []common.Address, _tokenId []*big.Int) (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 indexed _tokenId)

type ERC721Mint

type ERC721Mint struct {
	To       common.Address
	TokenId  *big.Int
	IpfsHash [32]byte
	Raw      types.Log // Blockchain specific contextual infos
}

ERC721Mint represents a Mint event raised by the ERC721 contract.

type ERC721MintIterator

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

ERC721MintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the ERC721 contract.

func (*ERC721MintIterator) Close

func (it *ERC721MintIterator) Close() error

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

func (*ERC721MintIterator) Error

func (it *ERC721MintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC721MintIterator) Next

func (it *ERC721MintIterator) 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 ERC721Raw

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

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

func (*ERC721Raw) Call

func (_ERC721 *ERC721Raw) 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 (*ERC721Raw) Transact

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

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

func (*ERC721Raw) Transfer

func (_ERC721 *ERC721Raw) 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 ERC721Session

type ERC721Session struct {
	Contract     *ERC721           // 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
}

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

func (*ERC721Session) Mint

func (_ERC721 *ERC721Session) Mint(_to common.Address, _ipfsHash [32]byte) (*types.Transaction, error)

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

Solidity: function mint(address _to, bytes32 _ipfsHash) returns()

func (*ERC721Session) Transfer

func (_ERC721 *ERC721Session) Transfer(_to common.Address, _tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _tokenId) returns()

type ERC721Transactor

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

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

func NewERC721Transactor

func NewERC721Transactor(address common.Address, transactor bind.ContractTransactor) (*ERC721Transactor, error)

NewERC721Transactor creates a new write-only instance of ERC721, bound to a specific deployed contract.

func (*ERC721Transactor) Mint

func (_ERC721 *ERC721Transactor) Mint(opts *bind.TransactOpts, _to common.Address, _ipfsHash [32]byte) (*types.Transaction, error)

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

Solidity: function mint(address _to, bytes32 _ipfsHash) returns()

func (*ERC721Transactor) Transfer

func (_ERC721 *ERC721Transactor) Transfer(opts *bind.TransactOpts, _to common.Address, _tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _tokenId) returns()

type ERC721TransactorRaw

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

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

func (*ERC721TransactorRaw) Transact

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

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

func (*ERC721TransactorRaw) Transfer

func (_ERC721 *ERC721TransactorRaw) 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 ERC721TransactorSession

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

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

func (*ERC721TransactorSession) Mint

func (_ERC721 *ERC721TransactorSession) Mint(_to common.Address, _ipfsHash [32]byte) (*types.Transaction, error)

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

Solidity: function mint(address _to, bytes32 _ipfsHash) returns()

func (*ERC721TransactorSession) Transfer

func (_ERC721 *ERC721TransactorSession) Transfer(_to common.Address, _tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _tokenId) returns()

type ERC721Transfer

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

ERC721Transfer represents a Transfer event raised by the ERC721 contract.

type ERC721TransferIterator

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

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

func (*ERC721TransferIterator) Close

func (it *ERC721TransferIterator) Close() error

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

func (*ERC721TransferIterator) Error

func (it *ERC721TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC721TransferIterator) Next

func (it *ERC721TransferIterator) 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 EthereumChain

type EthereumChain struct{}

func (EthereumChain) AirdropErc20

func (e EthereumChain) AirdropErc20(chainUri string, payerPrivateHexAddress string, recipientWalletID string, contractHexAddress string, quantity int64) (txHashHex string, cost *big.Int, err error)

AirdropErc20 drops tokens to wallet address recipientWalletID Good Ropsten contract address to use: 0x576Bf5838b6F91d6366Ef2228f7D6173e5102668

func (EthereumChain) AirdropErc721

func (e EthereumChain) AirdropErc721(chainUri string, spenderPrivateHexAddress string, recipientWalletID string, ipfsCid string) (contractAddressHex string, txHashHex string, cost *big.Int, err error)

AirdropErc721 airdrops an NFT to wallet address recipientPublicHexAddress

func (EthereumChain) DeployErc20

func (e EthereumChain) DeployErc20(chainUri string, payerPrivateHexAddress string, initialQuantity int64) (contractHexAddress string, cost *big.Int, err error)

DeployErc20 creates an ERC20 contract

type SafeMath

type SafeMath struct {
	SafeMathCaller     // Read-only binding to the contract
	SafeMathTransactor // Write-only binding to the contract
	SafeMathFilterer   // Log filterer for contract events
}

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

func DeploySafeMath

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

DeploySafeMath deploys a new Ethereum contract, binding an instance of SafeMath to it.

func NewSafeMath

func NewSafeMath(address common.Address, backend bind.ContractBackend) (*SafeMath, error)

NewSafeMath creates a new instance of SafeMath, bound to a specific deployed contract.

type SafeMathCaller

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

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

func NewSafeMathCaller

func NewSafeMathCaller(address common.Address, caller bind.ContractCaller) (*SafeMathCaller, error)

NewSafeMathCaller creates a new read-only instance of SafeMath, bound to a specific deployed contract.

type SafeMathCallerRaw

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

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

func (*SafeMathCallerRaw) Call

func (_SafeMath *SafeMathCallerRaw) 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 SafeMathCallerSession

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

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

type SafeMathFilterer

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

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

func NewSafeMathFilterer

func NewSafeMathFilterer(address common.Address, filterer bind.ContractFilterer) (*SafeMathFilterer, error)

NewSafeMathFilterer creates a new log filterer instance of SafeMath, bound to a specific deployed contract.

type SafeMathRaw

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

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

func (*SafeMathRaw) Call

func (_SafeMath *SafeMathRaw) 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 (*SafeMathRaw) Transact

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

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

func (*SafeMathRaw) Transfer

func (_SafeMath *SafeMathRaw) 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 SafeMathSession

type SafeMathSession struct {
	Contract     *SafeMath         // 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
}

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

type SafeMathTransactor

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

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

func NewSafeMathTransactor

func NewSafeMathTransactor(address common.Address, transactor bind.ContractTransactor) (*SafeMathTransactor, error)

NewSafeMathTransactor creates a new write-only instance of SafeMath, bound to a specific deployed contract.

type SafeMathTransactorRaw

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

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

func (*SafeMathTransactorRaw) Transact

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

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

func (*SafeMathTransactorRaw) Transfer

func (_SafeMath *SafeMathTransactorRaw) 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 SafeMathTransactorSession

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

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

Jump to

Keyboard shortcuts

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