{"modulePath":"github.com/chainopen/matrixchaincode","version":"v0.0.0-20190924071332-ddf2b42e220f","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package txinterface\n\nCopyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)\n\n## Types\n\n```go\ntype Message interface {\n\tFrom() common.Address\n\t//FromFrontier() (common.Address, error)\n\tTo() *common.Address\n\tGasFrom() common.Address\n\tAmontFrom() common.Address\n\tGasPrice() *big.Int\n\tGas() uint64\n\tValue() *big.Int\n\tHash() common.Hash\n\tNonce() uint64\n\tCheckNonce() bool\n\tData() []byte\n\tGetMatrixType() byte\n\tGetMatrix_EX() []types.Matrix_Extra //Y  注释 Extra() 方法 改用此方法\n\tTxType() byte\n\tIsEntrustTx() bool\n\tGetCreateTime() uint32\n\tGetTxCurrency() string\n}\n```\nMessage represents a message sent to a contract.\n\n```go\ntype StateTransitioner interface {\n\t//InitStateTransition(evm *vm.EVM, msg Message, gp uint64)\n\tTransitionDb() (ret []byte, usedGas uint64, failed bool, shardings []uint, err error)\n\tTo() common.Address\n\tUseGas(amount uint64) error\n\tBuyGas() error\n\tPreCheck() error\n\tRefundGas(coinrange string)\n\tGasUsed() uint64\n}\n```\n\n","path":"github.com/chainopen/matrixchaincode/core/txinterface","name":"txinterface","synopsis":"","isRedistributable":true}
