distribution

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DistributionABI = "" /* 940-byte string literal not displayed */

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

View Source
const DistributionBin = `` /* 1606-byte string literal not displayed */

DistributionBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

func Deploy

func Deploy(auth authy.Auth, gethIpcPath string) (common.Address, error)

func DistributeFromCsv

func DistributeFromCsv(csvFilePath string, gethIpcPath string, contractAddr common.Address, auth newAuth) (distributionsCount int, err error)

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.

func (*DistributionCaller) Owner

func (_Distribution *DistributionCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() constant returns(address)

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.

func (*DistributionCallerSession) Owner

func (_Distribution *DistributionCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

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()

Jump to

Keyboard shortcuts

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