contract

package
v0.0.0-...-92cc422 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620

Index

Constants

View Source
const ChequebookABI = "" /* 922-byte string literal not displayed */

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

View Source
const ChequebookBin = `` /* 1594-byte string literal not displayed */

checkbookbin是用于部署新合同的编译字节码。

View Source
const ContractDeployedCode = "" /* 1498-byte string literal not displayed */

ContractDeployedCode用于检测自杀。这个常数需要 合同代码更改时更新。

Variables

This section is empty.

Functions

This section is empty.

Types

type Chequebook

type Chequebook struct {
	ChequebookCaller     //对合同具有只读约束力
	ChequebookTransactor //只写对合同有约束力
	ChequebookFilterer   //合同事件的日志筛选程序
}

支票簿是围绕以太坊合同自动生成的Go绑定。

func DeployChequebook

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

Deploychequebook部署新的以太坊合同,将支票簿的实例绑定到该合同。

func NewChequebook

func NewChequebook(address common.Address, backend bind.ContractBackend) (*Chequebook, error)

newcheckbook创建一个新的checkbook实例,绑定到特定的已部署合同。

type ChequebookCaller

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

支票簿调用者是围绕以太坊合同自动生成的只读Go绑定。

func NewChequebookCaller

func NewChequebookCaller(address common.Address, caller bind.ContractCaller) (*ChequebookCaller, error)

newcheckbookcaller创建一个新的支票簿只读实例,绑定到特定的已部署合同。

func (*ChequebookCaller) Sent

func (_Chequebook *ChequebookCaller) Sent(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

发送是一个绑定合同方法0x7Bf786f8的免费数据检索调用。

solidity:函数发送(地址)常量返回(uint256)

type ChequebookCallerRaw

type ChequebookCallerRaw struct {
	Contract *ChequebookCaller //用于访问上的原始方法的通用只读协定绑定
}

支票簿Callerraw是围绕以太坊合同自动生成的低级只读Go绑定。

func (*ChequebookCallerRaw) Call

func (_Chequebook *ChequebookCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

调用调用(常量)contract方法,参数作为输入值,并且 将输出设置为结果。结果类型可能是用于 返回、匿名返回的接口切片和命名的结构 返回。

type ChequebookCallerSession

type ChequebookCallerSession struct {
	Contract *ChequebookCaller //用于设置会话的通用协定调用方绑定
	CallOpts bind.CallOpts     //在整个会话中使用的调用选项
}

CheQueBooCoprError会话是一个围绕Ethunm合同的自动生成只读GO绑定, 带预设通话选项。

func (*ChequebookCallerSession) Sent

func (_Chequebook *ChequebookCallerSession) Sent(arg0 common.Address) (*big.Int, error)

发送是一个绑定合同方法0x7Bf786f8的免费数据检索调用。

solidity:函数发送(地址)常量返回(uint256)

type ChequebookFilterer

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

支票簿筛选器是围绕以太坊合同事件自动生成的日志筛选Go绑定。

func NewChequebookFilterer

func NewChequebookFilterer(address common.Address, filterer bind.ContractFilterer) (*ChequebookFilterer, error)

newcheckbookfilter创建一个新的checkbook日志过滤器实例,绑定到一个特定的已部署合同。

func (*ChequebookFilterer) FilterOverdraft

func (_Chequebook *ChequebookFilterer) FilterOverdraft(opts *bind.FilterOpts) (*ChequebookOverdraftIterator, error)

filter透支是一个自由的日志检索操作,绑定合同事件0x2250e2993c15843b362621c89447cc589ee7a9f049c0226986e545d3c2c0c6f978。

Solidity: event Overdraft(deadbeat address)

func (*ChequebookFilterer) WatchOverdraft

func (_Chequebook *ChequebookFilterer) WatchOverdraft(opts *bind.WatchOpts, sink chan<- *ChequebookOverdraft) (event.Subscription, error)

watchOverflft是一个免费的日志订阅操作,绑定合同事件0x2250e2993c15843b362621c89447cc589ee7a9f049c0226986e545d3c2c0c6f978。

坚固性:事件透支(死区地址)

type ChequebookOverdraft

type ChequebookOverdraft struct {
	Deadbeat common.Address
	Raw      types.Log //区块链特定的上下文信息
}

支票簿透支表示支票簿合同引发的透支事件。

type ChequebookOverdraftIterator

type ChequebookOverdraftIterator struct {
	Event *ChequebookOverdraft //包含合同细节和原始日志的事件
	// contains filtered or unexported fields
}

从filterOvertaft返回checkbookOvertaftIterator,用于对支票簿合同引发的透支事件的原始日志和未打包数据进行迭代。

func (*ChequebookOverdraftIterator) Close

func (it *ChequebookOverdraftIterator) Close() error

关闭终止迭代过程,释放任何挂起的基础 资源。

func (*ChequebookOverdraftIterator) Error

func (it *ChequebookOverdraftIterator) Error() error

重试时出错。筛选过程中出现任何检索或分析错误。

func (*ChequebookOverdraftIterator) Next

func (it *ChequebookOverdraftIterator) Next() bool

next将迭代器前进到后续事件,返回是否存在 是否找到更多事件。在检索或分析错误的情况下,false是 返回错误(),可以查询错误()的确切错误。

type ChequebookRaw

type ChequebookRaw struct {
	Contract *Chequebook //用于访问上的原始方法的通用合同绑定
}

ChequebookRaw是围绕以太坊合同自动生成的低级Go绑定。

func (*ChequebookRaw) Call

func (_Chequebook *ChequebookRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

调用调用(常量)contract方法,参数作为输入值,并且 将输出设置为结果。结果类型可能是用于 返回、匿名返回的接口切片和命名的结构 返回。

func (*ChequebookRaw) Transact

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

Transact使用参数作为输入值调用(付费)Contract方法。

func (*ChequebookRaw) Transfer

func (_Chequebook *ChequebookRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

转账启动普通交易以将资金转移到合同,调用 它的默认方法(如果有)。

type ChequebookSession

type ChequebookSession struct {
	Contract     *Chequebook       //为其设置会话的通用约定绑定
	CallOpts     bind.CallOpts     //在整个会话中使用的调用选项
	TransactOpts bind.TransactOpts //要在此会话中使用的事务验证选项
}

ChequebookSession is an auto generated Go binding around an Ethereum contract, 具有预设的调用和事务处理选项。

func (*ChequebookSession) Cash

func (_Chequebook *ChequebookSession) Cash(beneficiary common.Address, amount *big.Int, sig_v uint8, sig_r [32]byte, sig_s [32]byte) (*types.Transaction, error)

现金是一个受合同方法0xFBF788D6约束的已付款的变元交易。

稳固性:功能现金(受益人地址,金额:uint256,sig_v uint8,sig_r bytes 32,sig_s bytes 32)返回()

func (*ChequebookSession) Kill

func (_Chequebook *ChequebookSession) Kill() (*types.Transaction, error)

kill是一个付费的mutator事务,绑定合同方法0x41c0e1b5。

solidity:函数kill()返回()

func (*ChequebookSession) Sent

func (_Chequebook *ChequebookSession) Sent(arg0 common.Address) (*big.Int, error)

发送是一个绑定合同方法0x7Bf786f8的免费数据检索调用。

solidity:函数发送(地址)常量返回(uint256)

type ChequebookTransactor

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

支票簿交易是围绕以太坊合同自动生成的只写即用绑定。

func NewChequebookTransactor

func NewChequebookTransactor(address common.Address, transactor bind.ContractTransactor) (*ChequebookTransactor, error)

newcheckbooktransaction创建一个新的支票簿的只写实例,绑定到特定的已部署合同。

func (*ChequebookTransactor) Cash

func (_Chequebook *ChequebookTransactor) Cash(opts *bind.TransactOpts, beneficiary common.Address, amount *big.Int, sig_v uint8, sig_r [32]byte, sig_s [32]byte) (*types.Transaction, error)

现金是一个受合同方法0xFBF788D6约束的已付款的变元交易。

Solidity: function cash(beneficiary address, amount uint256, sig_v uint8, sig_r bytes32, sig_s bytes32) returns()

func (*ChequebookTransactor) Kill

func (_Chequebook *ChequebookTransactor) Kill(opts *bind.TransactOpts) (*types.Transaction, error)

kill是一个付费的mutator事务,绑定合同方法0x41c0e1b5。

solidity:函数kill()返回()

type ChequebookTransactorRaw

type ChequebookTransactorRaw struct {
	Contract *ChequebookTransactor //用于访问上的原始方法的通用只写协定绑定
}

支票簿Transactorraw是围绕以太坊合同自动生成的低级只写即用绑定。

func (*ChequebookTransactorRaw) Transact

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

Transact使用参数作为输入值调用(付费)Contract方法。

func (*ChequebookTransactorRaw) Transfer

func (_Chequebook *ChequebookTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

转账启动普通交易以将资金转移到合同,调用 它的默认方法(如果有)。

type ChequebookTransactorSession

type ChequebookTransactorSession struct {
	Contract     *ChequebookTransactor //用于设置会话的通用合同事务处理程序绑定
	TransactOpts bind.TransactOpts     //要在此会话中使用的事务验证选项
}

支票簿事务会话是围绕以太坊合同自动生成的只写即用绑定, 具有预设的Transact选项。

func (*ChequebookTransactorSession) Cash

func (_Chequebook *ChequebookTransactorSession) Cash(beneficiary common.Address, amount *big.Int, sig_v uint8, sig_r [32]byte, sig_s [32]byte) (*types.Transaction, error)

现金是一个受合同方法0xFBF788D6约束的已付款的变元交易。

稳固性:功能现金(受益人地址,金额:uint256,sig_v uint8,sig_r bytes 32,sig_s bytes 32)返回()

func (*ChequebookTransactorSession) Kill

func (_Chequebook *ChequebookTransactorSession) Kill() (*types.Transaction, error)

kill是一个付费的mutator事务,绑定合同方法0x41c0e1b5。

solidity:函数kill()返回()

Jump to

Keyboard shortcuts

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