Documentation
¶
Index ¶
- Constants
- func Deploy(auth authy.Auth, gethIpcPath string) (common.Address, error)
- func DistributeFromCsv(csvFilePath string, gethIpcPath string, contractAddr common.Address, ...) (distributionsCount int, err error)
- type Distribution
- type DistributionCaller
- type DistributionCallerRaw
- type DistributionCallerSession
- type DistributionFilterer
- type DistributionRaw
- func (_Distribution *DistributionRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Distribution *DistributionRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Distribution *DistributionRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type DistributionSession
- func (_Distribution *DistributionSession) ChangeDepositBeneficiary(_oldBeneficiary common.Address, _newBeneficiary common.Address) (*types.Transaction, error)
- func (_Distribution *DistributionSession) Deposit(_beneficiary common.Address) (*types.Transaction, error)
- func (_Distribution *DistributionSession) Owner() (common.Address, error)
- func (_Distribution *DistributionSession) Withdraw() (*types.Transaction, error)
- type DistributionTransactor
- func (_Distribution *DistributionTransactor) ChangeDepositBeneficiary(opts *bind.TransactOpts, _oldBeneficiary common.Address, ...) (*types.Transaction, error)
- func (_Distribution *DistributionTransactor) Deposit(opts *bind.TransactOpts, _beneficiary common.Address) (*types.Transaction, error)
- func (_Distribution *DistributionTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)
- type DistributionTransactorRaw
- type DistributionTransactorSession
- func (_Distribution *DistributionTransactorSession) ChangeDepositBeneficiary(_oldBeneficiary common.Address, _newBeneficiary common.Address) (*types.Transaction, error)
- func (_Distribution *DistributionTransactorSession) Deposit(_beneficiary common.Address) (*types.Transaction, error)
- func (_Distribution *DistributionTransactorSession) Withdraw() (*types.Transaction, error)
Constants ¶
const DistributionABI = "" /* 940-byte string literal not displayed */
DistributionABI is the input ABI used to generate the binding from.
const DistributionBin = `` /* 1606-byte string literal not displayed */
DistributionBin is the compiled bytecode used for deploying new contracts.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Distribution ¶
type Distribution struct {
DistributionCaller // Read-only binding to the contract
DistributionTransactor // Write-only binding to the contract
DistributionFilterer // Log filterer for contract events
}
Distribution is an auto generated Go binding around an Ethereum contract.
func DeployDistribution ¶
func DeployDistribution(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Distribution, error)
DeployDistribution deploys a new Ethereum contract, binding an instance of Distribution to it.
func NewDistribution ¶
func NewDistribution(address common.Address, backend bind.ContractBackend) (*Distribution, error)
NewDistribution creates a new instance of Distribution, bound to a specific deployed contract.
type DistributionCaller ¶
type DistributionCaller struct {
// contains filtered or unexported fields
}
DistributionCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewDistributionCaller ¶
func NewDistributionCaller(address common.Address, caller bind.ContractCaller) (*DistributionCaller, error)
NewDistributionCaller creates a new read-only instance of Distribution, bound to a specific deployed contract.
type DistributionCallerRaw ¶
type DistributionCallerRaw struct {
Contract *DistributionCaller // Generic read-only contract binding to access the raw methods on
}
DistributionCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*DistributionCallerRaw) Call ¶
func (_Distribution *DistributionCallerRaw) 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 DistributionCallerSession ¶
type DistributionCallerSession struct {
Contract *DistributionCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
DistributionCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type DistributionFilterer ¶
type DistributionFilterer struct {
// contains filtered or unexported fields
}
DistributionFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewDistributionFilterer ¶
func NewDistributionFilterer(address common.Address, filterer bind.ContractFilterer) (*DistributionFilterer, error)
NewDistributionFilterer creates a new log filterer instance of Distribution, bound to a specific deployed contract.
type DistributionRaw ¶
type DistributionRaw struct {
Contract *Distribution // Generic contract binding to access the raw methods on
}
DistributionRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*DistributionRaw) Call ¶
func (_Distribution *DistributionRaw) 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 (*DistributionRaw) Transact ¶
func (_Distribution *DistributionRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DistributionRaw) Transfer ¶
func (_Distribution *DistributionRaw) 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 DistributionSession ¶
type DistributionSession struct {
Contract *Distribution // 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
}
DistributionSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*DistributionSession) ChangeDepositBeneficiary ¶
func (_Distribution *DistributionSession) ChangeDepositBeneficiary(_oldBeneficiary common.Address, _newBeneficiary common.Address) (*types.Transaction, error)
ChangeDepositBeneficiary is a paid mutator transaction binding the contract method 0xf5897c95.
Solidity: function changeDepositBeneficiary(address _oldBeneficiary, address _newBeneficiary) returns()
func (*DistributionSession) Deposit ¶
func (_Distribution *DistributionSession) Deposit(_beneficiary common.Address) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xf340fa01.
Solidity: function deposit(address _beneficiary) returns()
func (*DistributionSession) Owner ¶
func (_Distribution *DistributionSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() constant returns(address)
func (*DistributionSession) Withdraw ¶
func (_Distribution *DistributionSession) Withdraw() (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
Solidity: function withdraw() returns()
type DistributionTransactor ¶
type DistributionTransactor struct {
// contains filtered or unexported fields
}
DistributionTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewDistributionTransactor ¶
func NewDistributionTransactor(address common.Address, transactor bind.ContractTransactor) (*DistributionTransactor, error)
NewDistributionTransactor creates a new write-only instance of Distribution, bound to a specific deployed contract.
func (*DistributionTransactor) ChangeDepositBeneficiary ¶
func (_Distribution *DistributionTransactor) ChangeDepositBeneficiary(opts *bind.TransactOpts, _oldBeneficiary common.Address, _newBeneficiary common.Address) (*types.Transaction, error)
ChangeDepositBeneficiary is a paid mutator transaction binding the contract method 0xf5897c95.
Solidity: function changeDepositBeneficiary(address _oldBeneficiary, address _newBeneficiary) returns()
func (*DistributionTransactor) Deposit ¶
func (_Distribution *DistributionTransactor) Deposit(opts *bind.TransactOpts, _beneficiary common.Address) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xf340fa01.
Solidity: function deposit(address _beneficiary) returns()
func (*DistributionTransactor) Withdraw ¶
func (_Distribution *DistributionTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
Solidity: function withdraw() returns()
type DistributionTransactorRaw ¶
type DistributionTransactorRaw struct {
Contract *DistributionTransactor // Generic write-only contract binding to access the raw methods on
}
DistributionTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*DistributionTransactorRaw) Transact ¶
func (_Distribution *DistributionTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DistributionTransactorRaw) Transfer ¶
func (_Distribution *DistributionTransactorRaw) 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 DistributionTransactorSession ¶
type DistributionTransactorSession struct {
Contract *DistributionTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
DistributionTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*DistributionTransactorSession) ChangeDepositBeneficiary ¶
func (_Distribution *DistributionTransactorSession) ChangeDepositBeneficiary(_oldBeneficiary common.Address, _newBeneficiary common.Address) (*types.Transaction, error)
ChangeDepositBeneficiary is a paid mutator transaction binding the contract method 0xf5897c95.
Solidity: function changeDepositBeneficiary(address _oldBeneficiary, address _newBeneficiary) returns()
func (*DistributionTransactorSession) Deposit ¶
func (_Distribution *DistributionTransactorSession) Deposit(_beneficiary common.Address) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xf340fa01.
Solidity: function deposit(address _beneficiary) returns()
func (*DistributionTransactorSession) Withdraw ¶
func (_Distribution *DistributionTransactorSession) Withdraw() (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
Solidity: function withdraw() returns()