generated

package
v0.0.0-...-45a46c7 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const MicroPaySystemABI = "" /* 13287-byte string literal not displayed */

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

View Source
const TokenABI = "" /* 4261-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type MicroPaySystem

type MicroPaySystem struct {
	MicroPaySystemCaller     // Read-only binding to the contract
	MicroPaySystemTransactor // Write-only binding to the contract
	MicroPaySystemFilterer   // Log filterer for contract events
}

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

func NewMicroPaySystem

func NewMicroPaySystem(address common.Address, backend bind.ContractBackend) (*MicroPaySystem, error)

NewMicroPaySystem creates a new instance of MicroPaySystem, bound to a specific deployed contract.

type MicroPaySystemCaller

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

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

func NewMicroPaySystemCaller

func NewMicroPaySystemCaller(address common.Address, caller bind.ContractCaller) (*MicroPaySystemCaller, error)

NewMicroPaySystemCaller creates a new read-only instance of MicroPaySystem, bound to a specific deployed contract.

func (*MicroPaySystemCaller) AllMinersOfPool

func (_MicroPaySystem *MicroPaySystemCaller) AllMinersOfPool(opts *bind.CallOpts, pool common.Address) ([][32]byte, error)

AllMinersOfPool is a free data retrieval call binding the contract method 0xdd7b0995.

Solidity: function AllMinersOfPool(address pool) constant returns(bytes32[])

func (*MicroPaySystemCaller) AllMyPools

func (_MicroPaySystem *MicroPaySystemCaller) AllMyPools(opts *bind.CallOpts, userAddress common.Address) ([]common.Address, error)

AllMyPools is a free data retrieval call binding the contract method 0x8fd83f76.

Solidity: function AllMyPools(address userAddress) constant returns(address[])

func (*MicroPaySystemCaller) CurMsgHash

func (_MicroPaySystem *MicroPaySystemCaller) CurMsgHash(opts *bind.CallOpts) ([32]byte, error)

CurMsgHash is a free data retrieval call binding the contract method 0xc3debfa2.

Solidity: function CurMsgHash() constant returns(bytes32)

func (*MicroPaySystemCaller) MinerData

func (_MicroPaySystem *MicroPaySystemCaller) MinerData(opts *bind.CallOpts, arg0 [32]byte) (struct {
	ID       *big.Int
	Payer    common.Address
	PoolAddr common.Address
	SubAddr  [32]byte
	GTN      *big.Int
	Zone     [2]byte
}, error)

MinerData is a free data retrieval call binding the contract method 0x071b8916.

Solidity: function MinerData(bytes32 ) constant returns(uint256 ID, address payer, address poolAddr, bytes32 subAddr, uint256 GTN, bytes2 zone)

func (*MicroPaySystemCaller) MinerNoOfPool

func (_MicroPaySystem *MicroPaySystemCaller) MinerNoOfPool(opts *bind.CallOpts, pool common.Address) (*big.Int, error)

MinerNoOfPool is a free data retrieval call binding the contract method 0x072d3e0d.

Solidity: function MinerNoOfPool(address pool) constant returns(uint256)

func (*MicroPaySystemCaller) MinersUnderPool

func (_MicroPaySystem *MicroPaySystemCaller) MinersUnderPool(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) ([32]byte, error)

MinersUnderPool is a free data retrieval call binding the contract method 0x5c4265cb.

Solidity: function minersUnderPool(address , uint256 ) constant returns(bytes32)

func (*MicroPaySystemCaller) Owner

func (_MicroPaySystem *MicroPaySystemCaller) 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)

func (*MicroPaySystemCaller) PartOfMiners

func (_MicroPaySystem *MicroPaySystemCaller) PartOfMiners(opts *bind.CallOpts, pool common.Address, start *big.Int, end *big.Int) ([][32]byte, error)

PartOfMiners is a free data retrieval call binding the contract method 0x962cfa78.

Solidity: function PartOfMiners(address pool, uint256 start, uint256 end) constant returns(bytes32[])

func (*MicroPaySystemCaller) PoolData

func (_MicroPaySystem *MicroPaySystemCaller) PoolData(opts *bind.CallOpts, arg0 common.Address) (struct {
	MainAddr  common.Address
	PayerAddr common.Address
	GTN       *big.Int
	ShortName []byte
	Email     []byte
	Url       []byte
}, error)

PoolData is a free data retrieval call binding the contract method 0xf1b0e36d.

Solidity: function PoolData(address ) constant returns(address mainAddr, address payerAddr, uint256 GTN, bytes shortName, bytes email, bytes url)

func (*MicroPaySystemCaller) Pools

func (_MicroPaySystem *MicroPaySystemCaller) Pools(opts *bind.CallOpts) ([]common.Address, error)

Pools is a free data retrieval call binding the contract method 0xae075993.

Solidity: function Pools() constant returns(address[])

func (*MicroPaySystemCaller) PoolsIndex

func (_MicroPaySystem *MicroPaySystemCaller) PoolsIndex(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

PoolsIndex is a free data retrieval call binding the contract method 0x6d4347da.

Solidity: function PoolsIndex(uint256 ) constant returns(address)

func (*MicroPaySystemCaller) PoolsUsedByUser

func (_MicroPaySystem *MicroPaySystemCaller) PoolsUsedByUser(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (common.Address, error)

PoolsUsedByUser is a free data retrieval call binding the contract method 0x41b0012b.

Solidity: function poolsUsedByUser(address , uint256 ) constant returns(address)

func (*MicroPaySystemCaller) RecoveredAddr

func (_MicroPaySystem *MicroPaySystemCaller) RecoveredAddr(opts *bind.CallOpts) (common.Address, error)

RecoveredAddr is a free data retrieval call binding the contract method 0xdb30b27f.

Solidity: function RecoveredAddr() constant returns(address)

func (*MicroPaySystemCaller) Setting

func (_MicroPaySystem *MicroPaySystemCaller) Setting(opts *bind.CallOpts) (struct {
	MBytesPerToken    *big.Int
	Duration          *big.Int
	MinPoolGuarantee  *big.Int
	MinMinerGuarantee *big.Int
}, error)

Setting is a free data retrieval call binding the contract method 0xc0c9ce30.

Solidity: function setting() constant returns(uint256 MBytesPerToken, uint256 Duration, uint256 MinPoolGuarantee, uint256 MinMinerGuarantee)

func (*MicroPaySystemCaller) Token

func (_MicroPaySystem *MicroPaySystemCaller) Token(opts *bind.CallOpts) (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() constant returns(address)

func (*MicroPaySystemCaller) TokenBalance

func (_MicroPaySystem *MicroPaySystemCaller) TokenBalance(opts *bind.CallOpts, userAddress common.Address) (*big.Int, *big.Int, *big.Int, error)

TokenBalance is a free data retrieval call binding the contract method 0xb6e2b395.

Solidity: function TokenBalance(address userAddress) constant returns(uint256, uint256, uint256)

func (*MicroPaySystemCaller) UserData

func (_MicroPaySystem *MicroPaySystemCaller) UserData(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (struct {
	Nonce           *big.Int
	TokenBalance    *big.Int
	RemindPacket    *big.Int
	Expiration      *big.Int
	Epoch           *big.Int
	ClaimedAmount   *big.Int
	ClaimedMicNonce *big.Int
}, error)

UserData is a free data retrieval call binding the contract method 0x5a903303.

Solidity: function UserData(address , address ) constant returns(uint256 nonce, uint256 tokenBalance, uint256 remindPacket, uint256 expiration, uint256 epoch, uint256 claimedAmount, uint256 claimedMicNonce)

func (*MicroPaySystemCaller) UsersOfPool

func (_MicroPaySystem *MicroPaySystemCaller) UsersOfPool(opts *bind.CallOpts, pool common.Address) ([]common.Address, error)

UsersOfPool is a free data retrieval call binding the contract method 0x9f8bee88.

Solidity: function usersOfPool(address pool) constant returns(address[])

func (*MicroPaySystemCaller) UsersUnderPool

func (_MicroPaySystem *MicroPaySystemCaller) UsersUnderPool(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (common.Address, error)

UsersUnderPool is a free data retrieval call binding the contract method 0x4e7ffecc.

Solidity: function usersUnderPool(address , uint256 ) constant returns(address)

func (*MicroPaySystemCaller) Vm

func (_MicroPaySystem *MicroPaySystemCaller) Vm(opts *bind.CallOpts) (struct {
	VersionOfPoolData   *big.Int
	VersionOfMinerData  *big.Int
	VersionOfUserData   *big.Int
	VersionOfSysSetting *big.Int
}, error)

Vm is a free data retrieval call binding the contract method 0x3a768463.

Solidity: function vm() constant returns(uint256 versionOfPoolData, uint256 versionOfMinerData, uint256 versionOfUserData, uint256 versionOfSysSetting)

type MicroPaySystemCallerRaw

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

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

func (*MicroPaySystemCallerRaw) Call

func (_MicroPaySystem *MicroPaySystemCallerRaw) 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 MicroPaySystemCallerSession

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

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

func (*MicroPaySystemCallerSession) AllMinersOfPool

func (_MicroPaySystem *MicroPaySystemCallerSession) AllMinersOfPool(pool common.Address) ([][32]byte, error)

AllMinersOfPool is a free data retrieval call binding the contract method 0xdd7b0995.

Solidity: function AllMinersOfPool(address pool) constant returns(bytes32[])

func (*MicroPaySystemCallerSession) AllMyPools

func (_MicroPaySystem *MicroPaySystemCallerSession) AllMyPools(userAddress common.Address) ([]common.Address, error)

AllMyPools is a free data retrieval call binding the contract method 0x8fd83f76.

Solidity: function AllMyPools(address userAddress) constant returns(address[])

func (*MicroPaySystemCallerSession) CurMsgHash

func (_MicroPaySystem *MicroPaySystemCallerSession) CurMsgHash() ([32]byte, error)

CurMsgHash is a free data retrieval call binding the contract method 0xc3debfa2.

Solidity: function CurMsgHash() constant returns(bytes32)

func (*MicroPaySystemCallerSession) MinerData

func (_MicroPaySystem *MicroPaySystemCallerSession) MinerData(arg0 [32]byte) (struct {
	ID       *big.Int
	Payer    common.Address
	PoolAddr common.Address
	SubAddr  [32]byte
	GTN      *big.Int
	Zone     [2]byte
}, error)

MinerData is a free data retrieval call binding the contract method 0x071b8916.

Solidity: function MinerData(bytes32 ) constant returns(uint256 ID, address payer, address poolAddr, bytes32 subAddr, uint256 GTN, bytes2 zone)

func (*MicroPaySystemCallerSession) MinerNoOfPool

func (_MicroPaySystem *MicroPaySystemCallerSession) MinerNoOfPool(pool common.Address) (*big.Int, error)

MinerNoOfPool is a free data retrieval call binding the contract method 0x072d3e0d.

Solidity: function MinerNoOfPool(address pool) constant returns(uint256)

func (*MicroPaySystemCallerSession) MinersUnderPool

func (_MicroPaySystem *MicroPaySystemCallerSession) MinersUnderPool(arg0 common.Address, arg1 *big.Int) ([32]byte, error)

MinersUnderPool is a free data retrieval call binding the contract method 0x5c4265cb.

Solidity: function minersUnderPool(address , uint256 ) constant returns(bytes32)

func (*MicroPaySystemCallerSession) Owner

func (_MicroPaySystem *MicroPaySystemCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*MicroPaySystemCallerSession) PartOfMiners

func (_MicroPaySystem *MicroPaySystemCallerSession) PartOfMiners(pool common.Address, start *big.Int, end *big.Int) ([][32]byte, error)

PartOfMiners is a free data retrieval call binding the contract method 0x962cfa78.

Solidity: function PartOfMiners(address pool, uint256 start, uint256 end) constant returns(bytes32[])

func (*MicroPaySystemCallerSession) PoolData

func (_MicroPaySystem *MicroPaySystemCallerSession) PoolData(arg0 common.Address) (struct {
	MainAddr  common.Address
	PayerAddr common.Address
	GTN       *big.Int
	ShortName []byte
	Email     []byte
	Url       []byte
}, error)

PoolData is a free data retrieval call binding the contract method 0xf1b0e36d.

Solidity: function PoolData(address ) constant returns(address mainAddr, address payerAddr, uint256 GTN, bytes shortName, bytes email, bytes url)

func (*MicroPaySystemCallerSession) Pools

func (_MicroPaySystem *MicroPaySystemCallerSession) Pools() ([]common.Address, error)

Pools is a free data retrieval call binding the contract method 0xae075993.

Solidity: function Pools() constant returns(address[])

func (*MicroPaySystemCallerSession) PoolsIndex

func (_MicroPaySystem *MicroPaySystemCallerSession) PoolsIndex(arg0 *big.Int) (common.Address, error)

PoolsIndex is a free data retrieval call binding the contract method 0x6d4347da.

Solidity: function PoolsIndex(uint256 ) constant returns(address)

func (*MicroPaySystemCallerSession) PoolsUsedByUser

func (_MicroPaySystem *MicroPaySystemCallerSession) PoolsUsedByUser(arg0 common.Address, arg1 *big.Int) (common.Address, error)

PoolsUsedByUser is a free data retrieval call binding the contract method 0x41b0012b.

Solidity: function poolsUsedByUser(address , uint256 ) constant returns(address)

func (*MicroPaySystemCallerSession) RecoveredAddr

func (_MicroPaySystem *MicroPaySystemCallerSession) RecoveredAddr() (common.Address, error)

RecoveredAddr is a free data retrieval call binding the contract method 0xdb30b27f.

Solidity: function RecoveredAddr() constant returns(address)

func (*MicroPaySystemCallerSession) Setting

func (_MicroPaySystem *MicroPaySystemCallerSession) Setting() (struct {
	MBytesPerToken    *big.Int
	Duration          *big.Int
	MinPoolGuarantee  *big.Int
	MinMinerGuarantee *big.Int
}, error)

Setting is a free data retrieval call binding the contract method 0xc0c9ce30.

Solidity: function setting() constant returns(uint256 MBytesPerToken, uint256 Duration, uint256 MinPoolGuarantee, uint256 MinMinerGuarantee)

func (*MicroPaySystemCallerSession) Token

func (_MicroPaySystem *MicroPaySystemCallerSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() constant returns(address)

func (*MicroPaySystemCallerSession) TokenBalance

func (_MicroPaySystem *MicroPaySystemCallerSession) TokenBalance(userAddress common.Address) (*big.Int, *big.Int, *big.Int, error)

TokenBalance is a free data retrieval call binding the contract method 0xb6e2b395.

Solidity: function TokenBalance(address userAddress) constant returns(uint256, uint256, uint256)

func (*MicroPaySystemCallerSession) UserData

func (_MicroPaySystem *MicroPaySystemCallerSession) UserData(arg0 common.Address, arg1 common.Address) (struct {
	Nonce           *big.Int
	TokenBalance    *big.Int
	RemindPacket    *big.Int
	Expiration      *big.Int
	Epoch           *big.Int
	ClaimedAmount   *big.Int
	ClaimedMicNonce *big.Int
}, error)

UserData is a free data retrieval call binding the contract method 0x5a903303.

Solidity: function UserData(address , address ) constant returns(uint256 nonce, uint256 tokenBalance, uint256 remindPacket, uint256 expiration, uint256 epoch, uint256 claimedAmount, uint256 claimedMicNonce)

func (*MicroPaySystemCallerSession) UsersOfPool

func (_MicroPaySystem *MicroPaySystemCallerSession) UsersOfPool(pool common.Address) ([]common.Address, error)

UsersOfPool is a free data retrieval call binding the contract method 0x9f8bee88.

Solidity: function usersOfPool(address pool) constant returns(address[])

func (*MicroPaySystemCallerSession) UsersUnderPool

func (_MicroPaySystem *MicroPaySystemCallerSession) UsersUnderPool(arg0 common.Address, arg1 *big.Int) (common.Address, error)

UsersUnderPool is a free data retrieval call binding the contract method 0x4e7ffecc.

Solidity: function usersUnderPool(address , uint256 ) constant returns(address)

func (*MicroPaySystemCallerSession) Vm

func (_MicroPaySystem *MicroPaySystemCallerSession) Vm() (struct {
	VersionOfPoolData   *big.Int
	VersionOfMinerData  *big.Int
	VersionOfUserData   *big.Int
	VersionOfSysSetting *big.Int
}, error)

Vm is a free data retrieval call binding the contract method 0x3a768463.

Solidity: function vm() constant returns(uint256 versionOfPoolData, uint256 versionOfMinerData, uint256 versionOfUserData, uint256 versionOfSysSetting)

type MicroPaySystemFilterer

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

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

func NewMicroPaySystemFilterer

func NewMicroPaySystemFilterer(address common.Address, filterer bind.ContractFilterer) (*MicroPaySystemFilterer, error)

NewMicroPaySystemFilterer creates a new log filterer instance of MicroPaySystem, bound to a specific deployed contract.

func (*MicroPaySystemFilterer) FilterPoolClaim

func (_MicroPaySystem *MicroPaySystemFilterer) FilterPoolClaim(opts *bind.FilterOpts, pool []common.Address, user []common.Address) (*MicroPaySystemPoolClaimIterator, error)

FilterPoolClaim is a free log retrieval operation binding the contract event 0xe249550089b34fd8690cecdc0bd02ac66196461e455ee12c3024e64b17d7f355.

Solidity: event PoolClaim(address indexed pool, address indexed user, uint256 packet, uint256 tonken, uint256 micrNonce, uint256 claimNonce)

func (*MicroPaySystemFilterer) FilterPoolRegister

func (_MicroPaySystem *MicroPaySystemFilterer) FilterPoolRegister(opts *bind.FilterOpts, pool []common.Address) (*MicroPaySystemPoolRegisterIterator, error)

FilterPoolRegister is a free log retrieval operation binding the contract event 0xdebedec91d819c2c41c9c69a68386a87efefd2cdd9d5031d5e1a24e7d3100c26.

Solidity: event PoolRegister(address indexed pool, uint256 gtn)

func (*MicroPaySystemFilterer) FilterUserRecharge

func (_MicroPaySystem *MicroPaySystemFilterer) FilterUserRecharge(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*MicroPaySystemUserRechargeIterator, error)

FilterUserRecharge is a free log retrieval operation binding the contract event 0xcc8dce95919b1ee4bc195f48f53ce25fc697737c5022951361962fa21fd25195.

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

func (*MicroPaySystemFilterer) FilterUserRefund

func (_MicroPaySystem *MicroPaySystemFilterer) FilterUserRefund(opts *bind.FilterOpts, user []common.Address, pool []common.Address) (*MicroPaySystemUserRefundIterator, error)

FilterUserRefund is a free log retrieval operation binding the contract event 0x3e76e2c548d3990883a9eaa236878db2c29d1e90bed321c625673773416e9d58.

Solidity: event UserRefund(address indexed user, address indexed pool, uint256 tokens, uint256 packets)

func (*MicroPaySystemFilterer) ParsePoolClaim

func (_MicroPaySystem *MicroPaySystemFilterer) ParsePoolClaim(log types.Log) (*MicroPaySystemPoolClaim, error)

ParsePoolClaim is a log parse operation binding the contract event 0xe249550089b34fd8690cecdc0bd02ac66196461e455ee12c3024e64b17d7f355.

Solidity: event PoolClaim(address indexed pool, address indexed user, uint256 packet, uint256 tonken, uint256 micrNonce, uint256 claimNonce)

func (*MicroPaySystemFilterer) ParsePoolRegister

func (_MicroPaySystem *MicroPaySystemFilterer) ParsePoolRegister(log types.Log) (*MicroPaySystemPoolRegister, error)

ParsePoolRegister is a log parse operation binding the contract event 0xdebedec91d819c2c41c9c69a68386a87efefd2cdd9d5031d5e1a24e7d3100c26.

Solidity: event PoolRegister(address indexed pool, uint256 gtn)

func (*MicroPaySystemFilterer) ParseUserRecharge

func (_MicroPaySystem *MicroPaySystemFilterer) ParseUserRecharge(log types.Log) (*MicroPaySystemUserRecharge, error)

ParseUserRecharge is a log parse operation binding the contract event 0xcc8dce95919b1ee4bc195f48f53ce25fc697737c5022951361962fa21fd25195.

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

func (*MicroPaySystemFilterer) ParseUserRefund

func (_MicroPaySystem *MicroPaySystemFilterer) ParseUserRefund(log types.Log) (*MicroPaySystemUserRefund, error)

ParseUserRefund is a log parse operation binding the contract event 0x3e76e2c548d3990883a9eaa236878db2c29d1e90bed321c625673773416e9d58.

Solidity: event UserRefund(address indexed user, address indexed pool, uint256 tokens, uint256 packets)

func (*MicroPaySystemFilterer) WatchPoolClaim

func (_MicroPaySystem *MicroPaySystemFilterer) WatchPoolClaim(opts *bind.WatchOpts, sink chan<- *MicroPaySystemPoolClaim, pool []common.Address, user []common.Address) (event.Subscription, error)

WatchPoolClaim is a free log subscription operation binding the contract event 0xe249550089b34fd8690cecdc0bd02ac66196461e455ee12c3024e64b17d7f355.

Solidity: event PoolClaim(address indexed pool, address indexed user, uint256 packet, uint256 tonken, uint256 micrNonce, uint256 claimNonce)

func (*MicroPaySystemFilterer) WatchPoolRegister

func (_MicroPaySystem *MicroPaySystemFilterer) WatchPoolRegister(opts *bind.WatchOpts, sink chan<- *MicroPaySystemPoolRegister, pool []common.Address) (event.Subscription, error)

WatchPoolRegister is a free log subscription operation binding the contract event 0xdebedec91d819c2c41c9c69a68386a87efefd2cdd9d5031d5e1a24e7d3100c26.

Solidity: event PoolRegister(address indexed pool, uint256 gtn)

func (*MicroPaySystemFilterer) WatchUserRecharge

func (_MicroPaySystem *MicroPaySystemFilterer) WatchUserRecharge(opts *bind.WatchOpts, sink chan<- *MicroPaySystemUserRecharge, from []common.Address, to []common.Address) (event.Subscription, error)

WatchUserRecharge is a free log subscription operation binding the contract event 0xcc8dce95919b1ee4bc195f48f53ce25fc697737c5022951361962fa21fd25195.

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

func (*MicroPaySystemFilterer) WatchUserRefund

func (_MicroPaySystem *MicroPaySystemFilterer) WatchUserRefund(opts *bind.WatchOpts, sink chan<- *MicroPaySystemUserRefund, user []common.Address, pool []common.Address) (event.Subscription, error)

WatchUserRefund is a free log subscription operation binding the contract event 0x3e76e2c548d3990883a9eaa236878db2c29d1e90bed321c625673773416e9d58.

Solidity: event UserRefund(address indexed user, address indexed pool, uint256 tokens, uint256 packets)

type MicroPaySystemPoolClaim

type MicroPaySystemPoolClaim struct {
	Pool       common.Address
	User       common.Address
	Packet     *big.Int
	Tonken     *big.Int
	MicrNonce  *big.Int
	ClaimNonce *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

MicroPaySystemPoolClaim represents a PoolClaim event raised by the MicroPaySystem contract.

type MicroPaySystemPoolClaimIterator

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

MicroPaySystemPoolClaimIterator is returned from FilterPoolClaim and is used to iterate over the raw logs and unpacked data for PoolClaim events raised by the MicroPaySystem contract.

func (*MicroPaySystemPoolClaimIterator) Close

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

func (*MicroPaySystemPoolClaimIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MicroPaySystemPoolClaimIterator) 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 MicroPaySystemPoolRegister

type MicroPaySystemPoolRegister struct {
	Pool common.Address
	Gtn  *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

MicroPaySystemPoolRegister represents a PoolRegister event raised by the MicroPaySystem contract.

type MicroPaySystemPoolRegisterIterator

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

MicroPaySystemPoolRegisterIterator is returned from FilterPoolRegister and is used to iterate over the raw logs and unpacked data for PoolRegister events raised by the MicroPaySystem contract.

func (*MicroPaySystemPoolRegisterIterator) Close

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

func (*MicroPaySystemPoolRegisterIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MicroPaySystemPoolRegisterIterator) 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 MicroPaySystemRaw

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

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

func (*MicroPaySystemRaw) Call

func (_MicroPaySystem *MicroPaySystemRaw) 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 (*MicroPaySystemRaw) Transact

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

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

func (*MicroPaySystemRaw) Transfer

func (_MicroPaySystem *MicroPaySystemRaw) 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 MicroPaySystemSession

type MicroPaySystemSession struct {
	Contract     *MicroPaySystem   // 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
}

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

func (*MicroPaySystemSession) AllMinersOfPool

func (_MicroPaySystem *MicroPaySystemSession) AllMinersOfPool(pool common.Address) ([][32]byte, error)

AllMinersOfPool is a free data retrieval call binding the contract method 0xdd7b0995.

Solidity: function AllMinersOfPool(address pool) constant returns(bytes32[])

func (*MicroPaySystemSession) AllMyPools

func (_MicroPaySystem *MicroPaySystemSession) AllMyPools(userAddress common.Address) ([]common.Address, error)

AllMyPools is a free data retrieval call binding the contract method 0x8fd83f76.

Solidity: function AllMyPools(address userAddress) constant returns(address[])

func (*MicroPaySystemSession) BuyPacket

func (_MicroPaySystem *MicroPaySystemSession) BuyPacket(user common.Address, tokenNo *big.Int, poolAddr common.Address) (*types.Transaction, error)

BuyPacket is a paid mutator transaction binding the contract method 0x51f922ac.

Solidity: function BuyPacket(address user, uint256 tokenNo, address poolAddr) returns()

func (*MicroPaySystemSession) ChangeBasicInfo

func (_MicroPaySystem *MicroPaySystemSession) ChangeBasicInfo(mainAddr common.Address, name []byte, email []byte, url []byte) (*types.Transaction, error)

ChangeBasicInfo is a paid mutator transaction binding the contract method 0x404d39ba.

Solidity: function ChangeBasicInfo(address mainAddr, bytes name, bytes email, bytes url) returns()

func (*MicroPaySystemSession) ChangePool

func (_MicroPaySystem *MicroPaySystemSession) ChangePool(from common.Address, to common.Address, subAddr [32]byte) (*types.Transaction, error)

ChangePool is a paid mutator transaction binding the contract method 0xd50301b9.

Solidity: function ChangePool(address from, address to, bytes32 subAddr) returns()

func (*MicroPaySystemSession) ChangeSetting

func (_MicroPaySystem *MicroPaySystemSession) ChangeSetting(price *big.Int, duration *big.Int, pGTN *big.Int, mGTN *big.Int) (*types.Transaction, error)

ChangeSetting is a paid mutator transaction binding the contract method 0xb75777c6.

Solidity: function changeSetting(uint256 price, uint256 duration, uint256 pGTN, uint256 mGTN) returns()

func (*MicroPaySystemSession) Claim

func (_MicroPaySystem *MicroPaySystemSession) Claim(user common.Address, pool common.Address, credit *big.Int, amount *big.Int, micNonce *big.Int, cn *big.Int, signature []byte) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0xa0e81a28.

Solidity: function Claim(address user, address pool, uint256 credit, uint256 amount, uint256 micNonce, uint256 cn, bytes signature) returns()

func (*MicroPaySystemSession) CurMsgHash

func (_MicroPaySystem *MicroPaySystemSession) CurMsgHash() ([32]byte, error)

CurMsgHash is a free data retrieval call binding the contract method 0xc3debfa2.

Solidity: function CurMsgHash() constant returns(bytes32)

func (*MicroPaySystemSession) JoinPool

func (_MicroPaySystem *MicroPaySystemSession) JoinPool(pool common.Address, tokenNo *big.Int, subAddr [32]byte, zone [2]byte) (*types.Transaction, error)

JoinPool is a paid mutator transaction binding the contract method 0x41bad6c2.

Solidity: function JoinPool(address pool, uint256 tokenNo, bytes32 subAddr, bytes2 zone) returns()

func (*MicroPaySystemSession) MinerData

func (_MicroPaySystem *MicroPaySystemSession) MinerData(arg0 [32]byte) (struct {
	ID       *big.Int
	Payer    common.Address
	PoolAddr common.Address
	SubAddr  [32]byte
	GTN      *big.Int
	Zone     [2]byte
}, error)

MinerData is a free data retrieval call binding the contract method 0x071b8916.

Solidity: function MinerData(bytes32 ) constant returns(uint256 ID, address payer, address poolAddr, bytes32 subAddr, uint256 GTN, bytes2 zone)

func (*MicroPaySystemSession) MinerNoOfPool

func (_MicroPaySystem *MicroPaySystemSession) MinerNoOfPool(pool common.Address) (*big.Int, error)

MinerNoOfPool is a free data retrieval call binding the contract method 0x072d3e0d.

Solidity: function MinerNoOfPool(address pool) constant returns(uint256)

func (*MicroPaySystemSession) MinersUnderPool

func (_MicroPaySystem *MicroPaySystemSession) MinersUnderPool(arg0 common.Address, arg1 *big.Int) ([32]byte, error)

MinersUnderPool is a free data retrieval call binding the contract method 0x5c4265cb.

Solidity: function minersUnderPool(address , uint256 ) constant returns(bytes32)

func (*MicroPaySystemSession) Owner

func (_MicroPaySystem *MicroPaySystemSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*MicroPaySystemSession) PartOfMiners

func (_MicroPaySystem *MicroPaySystemSession) PartOfMiners(pool common.Address, start *big.Int, end *big.Int) ([][32]byte, error)

PartOfMiners is a free data retrieval call binding the contract method 0x962cfa78.

Solidity: function PartOfMiners(address pool, uint256 start, uint256 end) constant returns(bytes32[])

func (*MicroPaySystemSession) PoolData

func (_MicroPaySystem *MicroPaySystemSession) PoolData(arg0 common.Address) (struct {
	MainAddr  common.Address
	PayerAddr common.Address
	GTN       *big.Int
	ShortName []byte
	Email     []byte
	Url       []byte
}, error)

PoolData is a free data retrieval call binding the contract method 0xf1b0e36d.

Solidity: function PoolData(address ) constant returns(address mainAddr, address payerAddr, uint256 GTN, bytes shortName, bytes email, bytes url)

func (*MicroPaySystemSession) Pools

func (_MicroPaySystem *MicroPaySystemSession) Pools() ([]common.Address, error)

Pools is a free data retrieval call binding the contract method 0xae075993.

Solidity: function Pools() constant returns(address[])

func (*MicroPaySystemSession) PoolsIndex

func (_MicroPaySystem *MicroPaySystemSession) PoolsIndex(arg0 *big.Int) (common.Address, error)

PoolsIndex is a free data retrieval call binding the contract method 0x6d4347da.

Solidity: function PoolsIndex(uint256 ) constant returns(address)

func (*MicroPaySystemSession) PoolsUsedByUser

func (_MicroPaySystem *MicroPaySystemSession) PoolsUsedByUser(arg0 common.Address, arg1 *big.Int) (common.Address, error)

PoolsUsedByUser is a free data retrieval call binding the contract method 0x41b0012b.

Solidity: function poolsUsedByUser(address , uint256 ) constant returns(address)

func (*MicroPaySystemSession) RecoveredAddr

func (_MicroPaySystem *MicroPaySystemSession) RecoveredAddr() (common.Address, error)

RecoveredAddr is a free data retrieval call binding the contract method 0xdb30b27f.

Solidity: function RecoveredAddr() constant returns(address)

func (*MicroPaySystemSession) RegPool

func (_MicroPaySystem *MicroPaySystemSession) RegPool(tokenNo *big.Int, poolAddr common.Address, name []byte, email []byte, url []byte) (*types.Transaction, error)

RegPool is a paid mutator transaction binding the contract method 0x4581a00b.

Solidity: function RegPool(uint256 tokenNo, address poolAddr, bytes name, bytes email, bytes url) returns()

func (*MicroPaySystemSession) Setting

func (_MicroPaySystem *MicroPaySystemSession) Setting() (struct {
	MBytesPerToken    *big.Int
	Duration          *big.Int
	MinPoolGuarantee  *big.Int
	MinMinerGuarantee *big.Int
}, error)

Setting is a free data retrieval call binding the contract method 0xc0c9ce30.

Solidity: function setting() constant returns(uint256 MBytesPerToken, uint256 Duration, uint256 MinPoolGuarantee, uint256 MinMinerGuarantee)

func (*MicroPaySystemSession) TestClaimSig

func (_MicroPaySystem *MicroPaySystemSession) TestClaimSig(contractAddr common.Address, tokenAddr common.Address, user common.Address, pool common.Address, amount *big.Int, micNonce *big.Int, cn *big.Int, signature []byte) (*types.Transaction, error)

TestClaimSig is a paid mutator transaction binding the contract method 0xd9233624.

Solidity: function TestClaimSig(address contractAddr, address tokenAddr, address user, address pool, uint256 amount, uint256 micNonce, uint256 cn, bytes signature) returns()

func (*MicroPaySystemSession) Token

func (_MicroPaySystem *MicroPaySystemSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() constant returns(address)

func (*MicroPaySystemSession) TokenBalance

func (_MicroPaySystem *MicroPaySystemSession) TokenBalance(userAddress common.Address) (*big.Int, *big.Int, *big.Int, error)

TokenBalance is a free data retrieval call binding the contract method 0xb6e2b395.

Solidity: function TokenBalance(address userAddress) constant returns(uint256, uint256, uint256)

func (*MicroPaySystemSession) TransferOwnership

func (_MicroPaySystem *MicroPaySystemSession) 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 (*MicroPaySystemSession) UserData

func (_MicroPaySystem *MicroPaySystemSession) UserData(arg0 common.Address, arg1 common.Address) (struct {
	Nonce           *big.Int
	TokenBalance    *big.Int
	RemindPacket    *big.Int
	Expiration      *big.Int
	Epoch           *big.Int
	ClaimedAmount   *big.Int
	ClaimedMicNonce *big.Int
}, error)

UserData is a free data retrieval call binding the contract method 0x5a903303.

Solidity: function UserData(address , address ) constant returns(uint256 nonce, uint256 tokenBalance, uint256 remindPacket, uint256 expiration, uint256 epoch, uint256 claimedAmount, uint256 claimedMicNonce)

func (*MicroPaySystemSession) UsersOfPool

func (_MicroPaySystem *MicroPaySystemSession) UsersOfPool(pool common.Address) ([]common.Address, error)

UsersOfPool is a free data retrieval call binding the contract method 0x9f8bee88.

Solidity: function usersOfPool(address pool) constant returns(address[])

func (*MicroPaySystemSession) UsersUnderPool

func (_MicroPaySystem *MicroPaySystemSession) UsersUnderPool(arg0 common.Address, arg1 *big.Int) (common.Address, error)

UsersUnderPool is a free data retrieval call binding the contract method 0x4e7ffecc.

Solidity: function usersUnderPool(address , uint256 ) constant returns(address)

func (*MicroPaySystemSession) Vm

func (_MicroPaySystem *MicroPaySystemSession) Vm() (struct {
	VersionOfPoolData   *big.Int
	VersionOfMinerData  *big.Int
	VersionOfUserData   *big.Int
	VersionOfSysSetting *big.Int
}, error)

Vm is a free data retrieval call binding the contract method 0x3a768463.

Solidity: function vm() constant returns(uint256 versionOfPoolData, uint256 versionOfMinerData, uint256 versionOfUserData, uint256 versionOfSysSetting)

type MicroPaySystemTransactor

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

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

func NewMicroPaySystemTransactor

func NewMicroPaySystemTransactor(address common.Address, transactor bind.ContractTransactor) (*MicroPaySystemTransactor, error)

NewMicroPaySystemTransactor creates a new write-only instance of MicroPaySystem, bound to a specific deployed contract.

func (*MicroPaySystemTransactor) BuyPacket

func (_MicroPaySystem *MicroPaySystemTransactor) BuyPacket(opts *bind.TransactOpts, user common.Address, tokenNo *big.Int, poolAddr common.Address) (*types.Transaction, error)

BuyPacket is a paid mutator transaction binding the contract method 0x51f922ac.

Solidity: function BuyPacket(address user, uint256 tokenNo, address poolAddr) returns()

func (*MicroPaySystemTransactor) ChangeBasicInfo

func (_MicroPaySystem *MicroPaySystemTransactor) ChangeBasicInfo(opts *bind.TransactOpts, mainAddr common.Address, name []byte, email []byte, url []byte) (*types.Transaction, error)

ChangeBasicInfo is a paid mutator transaction binding the contract method 0x404d39ba.

Solidity: function ChangeBasicInfo(address mainAddr, bytes name, bytes email, bytes url) returns()

func (*MicroPaySystemTransactor) ChangePool

func (_MicroPaySystem *MicroPaySystemTransactor) ChangePool(opts *bind.TransactOpts, from common.Address, to common.Address, subAddr [32]byte) (*types.Transaction, error)

ChangePool is a paid mutator transaction binding the contract method 0xd50301b9.

Solidity: function ChangePool(address from, address to, bytes32 subAddr) returns()

func (*MicroPaySystemTransactor) ChangeSetting

func (_MicroPaySystem *MicroPaySystemTransactor) ChangeSetting(opts *bind.TransactOpts, price *big.Int, duration *big.Int, pGTN *big.Int, mGTN *big.Int) (*types.Transaction, error)

ChangeSetting is a paid mutator transaction binding the contract method 0xb75777c6.

Solidity: function changeSetting(uint256 price, uint256 duration, uint256 pGTN, uint256 mGTN) returns()

func (*MicroPaySystemTransactor) Claim

func (_MicroPaySystem *MicroPaySystemTransactor) Claim(opts *bind.TransactOpts, user common.Address, pool common.Address, credit *big.Int, amount *big.Int, micNonce *big.Int, cn *big.Int, signature []byte) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0xa0e81a28.

Solidity: function Claim(address user, address pool, uint256 credit, uint256 amount, uint256 micNonce, uint256 cn, bytes signature) returns()

func (*MicroPaySystemTransactor) JoinPool

func (_MicroPaySystem *MicroPaySystemTransactor) JoinPool(opts *bind.TransactOpts, pool common.Address, tokenNo *big.Int, subAddr [32]byte, zone [2]byte) (*types.Transaction, error)

JoinPool is a paid mutator transaction binding the contract method 0x41bad6c2.

Solidity: function JoinPool(address pool, uint256 tokenNo, bytes32 subAddr, bytes2 zone) returns()

func (*MicroPaySystemTransactor) RegPool

func (_MicroPaySystem *MicroPaySystemTransactor) RegPool(opts *bind.TransactOpts, tokenNo *big.Int, poolAddr common.Address, name []byte, email []byte, url []byte) (*types.Transaction, error)

RegPool is a paid mutator transaction binding the contract method 0x4581a00b.

Solidity: function RegPool(uint256 tokenNo, address poolAddr, bytes name, bytes email, bytes url) returns()

func (*MicroPaySystemTransactor) TestClaimSig

func (_MicroPaySystem *MicroPaySystemTransactor) TestClaimSig(opts *bind.TransactOpts, contractAddr common.Address, tokenAddr common.Address, user common.Address, pool common.Address, amount *big.Int, micNonce *big.Int, cn *big.Int, signature []byte) (*types.Transaction, error)

TestClaimSig is a paid mutator transaction binding the contract method 0xd9233624.

Solidity: function TestClaimSig(address contractAddr, address tokenAddr, address user, address pool, uint256 amount, uint256 micNonce, uint256 cn, bytes signature) returns()

func (*MicroPaySystemTransactor) TransferOwnership

func (_MicroPaySystem *MicroPaySystemTransactor) 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()

type MicroPaySystemTransactorRaw

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

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

func (*MicroPaySystemTransactorRaw) Transact

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

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

func (*MicroPaySystemTransactorRaw) Transfer

func (_MicroPaySystem *MicroPaySystemTransactorRaw) 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 MicroPaySystemTransactorSession

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

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

func (*MicroPaySystemTransactorSession) BuyPacket

func (_MicroPaySystem *MicroPaySystemTransactorSession) BuyPacket(user common.Address, tokenNo *big.Int, poolAddr common.Address) (*types.Transaction, error)

BuyPacket is a paid mutator transaction binding the contract method 0x51f922ac.

Solidity: function BuyPacket(address user, uint256 tokenNo, address poolAddr) returns()

func (*MicroPaySystemTransactorSession) ChangeBasicInfo

func (_MicroPaySystem *MicroPaySystemTransactorSession) ChangeBasicInfo(mainAddr common.Address, name []byte, email []byte, url []byte) (*types.Transaction, error)

ChangeBasicInfo is a paid mutator transaction binding the contract method 0x404d39ba.

Solidity: function ChangeBasicInfo(address mainAddr, bytes name, bytes email, bytes url) returns()

func (*MicroPaySystemTransactorSession) ChangePool

func (_MicroPaySystem *MicroPaySystemTransactorSession) ChangePool(from common.Address, to common.Address, subAddr [32]byte) (*types.Transaction, error)

ChangePool is a paid mutator transaction binding the contract method 0xd50301b9.

Solidity: function ChangePool(address from, address to, bytes32 subAddr) returns()

func (*MicroPaySystemTransactorSession) ChangeSetting

func (_MicroPaySystem *MicroPaySystemTransactorSession) ChangeSetting(price *big.Int, duration *big.Int, pGTN *big.Int, mGTN *big.Int) (*types.Transaction, error)

ChangeSetting is a paid mutator transaction binding the contract method 0xb75777c6.

Solidity: function changeSetting(uint256 price, uint256 duration, uint256 pGTN, uint256 mGTN) returns()

func (*MicroPaySystemTransactorSession) Claim

func (_MicroPaySystem *MicroPaySystemTransactorSession) Claim(user common.Address, pool common.Address, credit *big.Int, amount *big.Int, micNonce *big.Int, cn *big.Int, signature []byte) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0xa0e81a28.

Solidity: function Claim(address user, address pool, uint256 credit, uint256 amount, uint256 micNonce, uint256 cn, bytes signature) returns()

func (*MicroPaySystemTransactorSession) JoinPool

func (_MicroPaySystem *MicroPaySystemTransactorSession) JoinPool(pool common.Address, tokenNo *big.Int, subAddr [32]byte, zone [2]byte) (*types.Transaction, error)

JoinPool is a paid mutator transaction binding the contract method 0x41bad6c2.

Solidity: function JoinPool(address pool, uint256 tokenNo, bytes32 subAddr, bytes2 zone) returns()

func (*MicroPaySystemTransactorSession) RegPool

func (_MicroPaySystem *MicroPaySystemTransactorSession) RegPool(tokenNo *big.Int, poolAddr common.Address, name []byte, email []byte, url []byte) (*types.Transaction, error)

RegPool is a paid mutator transaction binding the contract method 0x4581a00b.

Solidity: function RegPool(uint256 tokenNo, address poolAddr, bytes name, bytes email, bytes url) returns()

func (*MicroPaySystemTransactorSession) TestClaimSig

func (_MicroPaySystem *MicroPaySystemTransactorSession) TestClaimSig(contractAddr common.Address, tokenAddr common.Address, user common.Address, pool common.Address, amount *big.Int, micNonce *big.Int, cn *big.Int, signature []byte) (*types.Transaction, error)

TestClaimSig is a paid mutator transaction binding the contract method 0xd9233624.

Solidity: function TestClaimSig(address contractAddr, address tokenAddr, address user, address pool, uint256 amount, uint256 micNonce, uint256 cn, bytes signature) returns()

func (*MicroPaySystemTransactorSession) TransferOwnership

func (_MicroPaySystem *MicroPaySystemTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type MicroPaySystemUserRecharge

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

MicroPaySystemUserRecharge represents a UserRecharge event raised by the MicroPaySystem contract.

type MicroPaySystemUserRechargeIterator

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

MicroPaySystemUserRechargeIterator is returned from FilterUserRecharge and is used to iterate over the raw logs and unpacked data for UserRecharge events raised by the MicroPaySystem contract.

func (*MicroPaySystemUserRechargeIterator) Close

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

func (*MicroPaySystemUserRechargeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MicroPaySystemUserRechargeIterator) 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 MicroPaySystemUserRefund

type MicroPaySystemUserRefund struct {
	User    common.Address
	Pool    common.Address
	Tokens  *big.Int
	Packets *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

MicroPaySystemUserRefund represents a UserRefund event raised by the MicroPaySystem contract.

type MicroPaySystemUserRefundIterator

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

MicroPaySystemUserRefundIterator is returned from FilterUserRefund and is used to iterate over the raw logs and unpacked data for UserRefund events raised by the MicroPaySystem contract.

func (*MicroPaySystemUserRefundIterator) Close

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

func (*MicroPaySystemUserRefundIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MicroPaySystemUserRefundIterator) 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 Token

type Token struct {
	TokenCaller     // Read-only binding to the contract
	TokenTransactor // Write-only binding to the contract
	TokenFilterer   // Log filterer for contract events
}

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

func NewToken

func NewToken(address common.Address, backend bind.ContractBackend) (*Token, error)

NewToken creates a new instance of Token, bound to a specific deployed contract.

type TokenApproval

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

TokenApproval represents a Approval event raised by the Token contract.

type TokenApprovalIterator

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

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

func (*TokenApprovalIterator) Close

func (it *TokenApprovalIterator) Close() error

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

func (*TokenApprovalIterator) Error

func (it *TokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenApprovalIterator) Next

func (it *TokenApprovalIterator) 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 TokenCaller

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

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

func NewTokenCaller

func NewTokenCaller(address common.Address, caller bind.ContractCaller) (*TokenCaller, error)

NewTokenCaller creates a new read-only instance of Token, bound to a specific deployed contract.

func (*TokenCaller) Allowance

func (_Token *TokenCaller) 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) constant returns(uint256)

func (*TokenCaller) BalanceOf

func (_Token *TokenCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address owner) constant returns(uint256)

func (*TokenCaller) Decimals

func (_Token *TokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)

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

Solidity: function decimals() constant returns(uint8)

func (*TokenCaller) INITIALSUPPLY

func (_Token *TokenCaller) INITIALSUPPLY(opts *bind.CallOpts) (*big.Int, error)

INITIALSUPPLY is a free data retrieval call binding the contract method 0x2ff2e9dc.

Solidity: function INITIAL_SUPPLY() constant returns(uint256)

func (*TokenCaller) Name

func (_Token *TokenCaller) Name(opts *bind.CallOpts) (string, error)

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

Solidity: function name() constant returns(string)

func (*TokenCaller) Symbol

func (_Token *TokenCaller) Symbol(opts *bind.CallOpts) (string, error)

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

Solidity: function symbol() constant returns(string)

func (*TokenCaller) TotalSupply

func (_Token *TokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

type TokenCallerRaw

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

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

func (*TokenCallerRaw) Call

func (_Token *TokenCallerRaw) 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 TokenCallerSession

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

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

func (*TokenCallerSession) Allowance

func (_Token *TokenCallerSession) 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) constant returns(uint256)

func (*TokenCallerSession) BalanceOf

func (_Token *TokenCallerSession) BalanceOf(owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address owner) constant returns(uint256)

func (*TokenCallerSession) Decimals

func (_Token *TokenCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() constant returns(uint8)

func (*TokenCallerSession) INITIALSUPPLY

func (_Token *TokenCallerSession) INITIALSUPPLY() (*big.Int, error)

INITIALSUPPLY is a free data retrieval call binding the contract method 0x2ff2e9dc.

Solidity: function INITIAL_SUPPLY() constant returns(uint256)

func (*TokenCallerSession) Name

func (_Token *TokenCallerSession) Name() (string, error)

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

Solidity: function name() constant returns(string)

func (*TokenCallerSession) Symbol

func (_Token *TokenCallerSession) Symbol() (string, error)

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

Solidity: function symbol() constant returns(string)

func (*TokenCallerSession) TotalSupply

func (_Token *TokenCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

type TokenFilterer

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

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

func NewTokenFilterer

func NewTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*TokenFilterer, error)

NewTokenFilterer creates a new log filterer instance of Token, bound to a specific deployed contract.

func (*TokenFilterer) FilterApproval

func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*TokenApprovalIterator, 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 (*TokenFilterer) FilterTransfer

func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*TokenTransferIterator, 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 (*TokenFilterer) ParseApproval

func (_Token *TokenFilterer) ParseApproval(log types.Log) (*TokenApproval, error)

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

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

func (*TokenFilterer) ParseTransfer

func (_Token *TokenFilterer) ParseTransfer(log types.Log) (*TokenTransfer, error)

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

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

func (*TokenFilterer) WatchApproval

func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, 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 (*TokenFilterer) WatchTransfer

func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, 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)

type TokenRaw

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

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

func (*TokenRaw) Call

func (_Token *TokenRaw) 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 (*TokenRaw) Transact

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

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

func (*TokenRaw) Transfer

func (_Token *TokenRaw) 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 TokenSession

type TokenSession struct {
	Contract     *Token            // 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
}

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

func (*TokenSession) Allowance

func (_Token *TokenSession) 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) constant returns(uint256)

func (*TokenSession) Approve

func (_Token *TokenSession) 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(bool)

func (*TokenSession) BalanceOf

func (_Token *TokenSession) BalanceOf(owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address owner) constant returns(uint256)

func (*TokenSession) Decimals

func (_Token *TokenSession) Decimals() (uint8, error)

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

Solidity: function decimals() constant returns(uint8)

func (*TokenSession) DecreaseAllowance

func (_Token *TokenSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*TokenSession) INITIALSUPPLY

func (_Token *TokenSession) INITIALSUPPLY() (*big.Int, error)

INITIALSUPPLY is a free data retrieval call binding the contract method 0x2ff2e9dc.

Solidity: function INITIAL_SUPPLY() constant returns(uint256)

func (*TokenSession) IncreaseAllowance

func (_Token *TokenSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*TokenSession) Name

func (_Token *TokenSession) Name() (string, error)

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

Solidity: function name() constant returns(string)

func (*TokenSession) Symbol

func (_Token *TokenSession) Symbol() (string, error)

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

Solidity: function symbol() constant returns(string)

func (*TokenSession) TotalSupply

func (_Token *TokenSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

func (*TokenSession) Transfer

func (_Token *TokenSession) 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(bool)

func (*TokenSession) TransferFrom

func (_Token *TokenSession) 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(bool)

type TokenTransactor

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

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

func NewTokenTransactor

func NewTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*TokenTransactor, error)

NewTokenTransactor creates a new write-only instance of Token, bound to a specific deployed contract.

func (*TokenTransactor) Approve

func (_Token *TokenTransactor) 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(bool)

func (*TokenTransactor) DecreaseAllowance

func (_Token *TokenTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*TokenTransactor) IncreaseAllowance

func (_Token *TokenTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*TokenTransactor) Transfer

func (_Token *TokenTransactor) 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(bool)

func (*TokenTransactor) TransferFrom

func (_Token *TokenTransactor) 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(bool)

type TokenTransactorRaw

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

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

func (*TokenTransactorRaw) Transact

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

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

func (*TokenTransactorRaw) Transfer

func (_Token *TokenTransactorRaw) 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 TokenTransactorSession

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

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

func (*TokenTransactorSession) Approve

func (_Token *TokenTransactorSession) 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(bool)

func (*TokenTransactorSession) DecreaseAllowance

func (_Token *TokenTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*TokenTransactorSession) IncreaseAllowance

func (_Token *TokenTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*TokenTransactorSession) Transfer

func (_Token *TokenTransactorSession) 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(bool)

func (*TokenTransactorSession) TransferFrom

func (_Token *TokenTransactorSession) 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(bool)

type TokenTransfer

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

TokenTransfer represents a Transfer event raised by the Token contract.

type TokenTransferIterator

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

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

func (*TokenTransferIterator) Close

func (it *TokenTransferIterator) Close() error

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

func (*TokenTransferIterator) Error

func (it *TokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenTransferIterator) Next

func (it *TokenTransferIterator) 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.

Jump to

Keyboard shortcuts

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