testdistribute

package
v0.0.0-...-9d299f0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestDistributeABI = TestDistributeMetaData.ABI

TestDistributeABI is the input ABI used to generate the binding from. Deprecated: Use TestDistributeMetaData.ABI instead.

View Source
var TestDistributeBin = TestDistributeMetaData.Bin

TestDistributeBin is the compiled bytecode used for deploying new contracts. Deprecated: Use TestDistributeMetaData.Bin instead.

View Source
var TestDistributeMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"zrc20_distributor\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"zrc20_token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Distributed\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"zrc20\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"distributeThroughContract\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
	Bin: "0x60a060405260666000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555034801561005157600080fd5b503373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505060805161034d6100a06000396000606c015261034d6000f3fe6080604052600436106100225760003560e01c806350b54e841461002b57610029565b3661002957005b005b34801561003757600080fd5b50610052600480360381019061004d9190610201565b610068565b60405161005f919061025c565b60405180910390f35b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146100c257600080fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fb93210884846040518363ffffffff1660e01b815260040161011d929190610295565b6020604051808303816000875af115801561013c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061016091906102ea565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006101988261016d565b9050919050565b6101a88161018d565b81146101b357600080fd5b50565b6000813590506101c58161019f565b92915050565b6000819050919050565b6101de816101cb565b81146101e957600080fd5b50565b6000813590506101fb816101d5565b92915050565b6000806040838503121561021857610217610168565b5b6000610226858286016101b6565b9250506020610237858286016101ec565b9150509250929050565b60008115159050919050565b61025681610241565b82525050565b6000602082019050610271600083018461024d565b92915050565b6102808161018d565b82525050565b61028f816101cb565b82525050565b60006040820190506102aa6000830185610277565b6102b76020830184610286565b9392505050565b6102c781610241565b81146102d257600080fd5b50565b6000815190506102e4816102be565b92915050565b600060208284031215610300576102ff610168565b5b600061030e848285016102d5565b9150509291505056fea26469706673582212205443ec313ecb8c2e08ca8a30687daed4c3b666f9318ae72ccbe9033479c8b8be64736f6c634300080a0033",
}

TestDistributeMetaData contains all meta data concerning the TestDistribute contract.

Functions

This section is empty.

Types

type TestDistribute

type TestDistribute struct {
	TestDistributeCaller     // Read-only binding to the contract
	TestDistributeTransactor // Write-only binding to the contract
	TestDistributeFilterer   // Log filterer for contract events
}

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

func DeployTestDistribute

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

DeployTestDistribute deploys a new Ethereum contract, binding an instance of TestDistribute to it.

func NewTestDistribute

func NewTestDistribute(address common.Address, backend bind.ContractBackend) (*TestDistribute, error)

NewTestDistribute creates a new instance of TestDistribute, bound to a specific deployed contract.

type TestDistributeCaller

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

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

func NewTestDistributeCaller

func NewTestDistributeCaller(address common.Address, caller bind.ContractCaller) (*TestDistributeCaller, error)

NewTestDistributeCaller creates a new read-only instance of TestDistribute, bound to a specific deployed contract.

type TestDistributeCallerRaw

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

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

func (*TestDistributeCallerRaw) Call

func (_TestDistribute *TestDistributeCallerRaw) 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 TestDistributeCallerSession

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

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

type TestDistributeDistributed

type TestDistributeDistributed struct {
	Zrc20Distributor common.Address
	Zrc20Token       common.Address
	Amount           *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

TestDistributeDistributed represents a Distributed event raised by the TestDistribute contract.

type TestDistributeDistributedIterator

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

TestDistributeDistributedIterator is returned from FilterDistributed and is used to iterate over the raw logs and unpacked data for Distributed events raised by the TestDistribute contract.

func (*TestDistributeDistributedIterator) Close

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

func (*TestDistributeDistributedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TestDistributeDistributedIterator) 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 TestDistributeFilterer

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

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

func NewTestDistributeFilterer

func NewTestDistributeFilterer(address common.Address, filterer bind.ContractFilterer) (*TestDistributeFilterer, error)

NewTestDistributeFilterer creates a new log filterer instance of TestDistribute, bound to a specific deployed contract.

func (*TestDistributeFilterer) FilterDistributed

func (_TestDistribute *TestDistributeFilterer) FilterDistributed(opts *bind.FilterOpts, zrc20_distributor []common.Address, zrc20_token []common.Address) (*TestDistributeDistributedIterator, error)

FilterDistributed is a free log retrieval operation binding the contract event 0xad4a9acf26d8bba7a8cf1a41160d59be042ee554578e256c98d2ab74cdd43542.

Solidity: event Distributed(address indexed zrc20_distributor, address indexed zrc20_token, uint256 amount)

func (*TestDistributeFilterer) ParseDistributed

func (_TestDistribute *TestDistributeFilterer) ParseDistributed(log types.Log) (*TestDistributeDistributed, error)

ParseDistributed is a log parse operation binding the contract event 0xad4a9acf26d8bba7a8cf1a41160d59be042ee554578e256c98d2ab74cdd43542.

Solidity: event Distributed(address indexed zrc20_distributor, address indexed zrc20_token, uint256 amount)

func (*TestDistributeFilterer) WatchDistributed

func (_TestDistribute *TestDistributeFilterer) WatchDistributed(opts *bind.WatchOpts, sink chan<- *TestDistributeDistributed, zrc20_distributor []common.Address, zrc20_token []common.Address) (event.Subscription, error)

WatchDistributed is a free log subscription operation binding the contract event 0xad4a9acf26d8bba7a8cf1a41160d59be042ee554578e256c98d2ab74cdd43542.

Solidity: event Distributed(address indexed zrc20_distributor, address indexed zrc20_token, uint256 amount)

type TestDistributeRaw

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

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

func (*TestDistributeRaw) Call

func (_TestDistribute *TestDistributeRaw) 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 (*TestDistributeRaw) Transact

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

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

func (*TestDistributeRaw) Transfer

func (_TestDistribute *TestDistributeRaw) 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 TestDistributeSession

type TestDistributeSession struct {
	Contract     *TestDistribute   // 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
}

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

func (*TestDistributeSession) DistributeThroughContract

func (_TestDistribute *TestDistributeSession) DistributeThroughContract(zrc20 common.Address, amount *big.Int) (*types.Transaction, error)

DistributeThroughContract is a paid mutator transaction binding the contract method 0x50b54e84.

Solidity: function distributeThroughContract(address zrc20, uint256 amount) returns(bool)

func (*TestDistributeSession) Fallback

func (_TestDistribute *TestDistributeSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*TestDistributeSession) Receive

func (_TestDistribute *TestDistributeSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

type TestDistributeTransactor

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

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

func NewTestDistributeTransactor

func NewTestDistributeTransactor(address common.Address, transactor bind.ContractTransactor) (*TestDistributeTransactor, error)

NewTestDistributeTransactor creates a new write-only instance of TestDistribute, bound to a specific deployed contract.

func (*TestDistributeTransactor) DistributeThroughContract

func (_TestDistribute *TestDistributeTransactor) DistributeThroughContract(opts *bind.TransactOpts, zrc20 common.Address, amount *big.Int) (*types.Transaction, error)

DistributeThroughContract is a paid mutator transaction binding the contract method 0x50b54e84.

Solidity: function distributeThroughContract(address zrc20, uint256 amount) returns(bool)

func (*TestDistributeTransactor) Fallback

func (_TestDistribute *TestDistributeTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*TestDistributeTransactor) Receive

func (_TestDistribute *TestDistributeTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

type TestDistributeTransactorRaw

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

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

func (*TestDistributeTransactorRaw) Transact

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

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

func (*TestDistributeTransactorRaw) Transfer

func (_TestDistribute *TestDistributeTransactorRaw) 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 TestDistributeTransactorSession

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

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

func (*TestDistributeTransactorSession) DistributeThroughContract

func (_TestDistribute *TestDistributeTransactorSession) DistributeThroughContract(zrc20 common.Address, amount *big.Int) (*types.Transaction, error)

DistributeThroughContract is a paid mutator transaction binding the contract method 0x50b54e84.

Solidity: function distributeThroughContract(address zrc20, uint256 amount) returns(bool)

func (*TestDistributeTransactorSession) Fallback

func (_TestDistribute *TestDistributeTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*TestDistributeTransactorSession) Receive

func (_TestDistribute *TestDistributeTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

Jump to

Keyboard shortcuts

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