{"modulePath":"github.com/chainopen/matrixchaincode","version":"v0.0.0-20190924071332-ddf2b42e220f","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package matrixwork\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## Variables\n\n```go\nvar (\n\t_, Abierr = abi.JSON(strings.NewReader(depositDef))\n)\n```\n\n## Types\n\n```go\ntype ChainReader interface {\n\tStateAt(root []common.CoinRoot) (*state.StateDBManage, error)\n\tGetBlockByHash(hash common.Hash) *types.Block\n\tEngine(version []byte) consensus.Engine\n\tGetHeader(common.Hash, uint64) *types.Header\n\tProcessor(version []byte) core.Processor\n}\n```\n\n```go\ntype Work struct {\n\tState *state.StateDBManage // apply state changes here\n\n\tBlock *types.Block // the new block\n\n\tReceipts []types.CoinReceipts\n\t// contains filtered or unexported fields\n}\n```\nWork is the workers current environment and holds all of the current state information\n\n```go\nfunc NewWork(config *params.ChainConfig, bc ChainReader, gasPool *core.GasPool, header *types.Header) (*Work, error)\n```\n\n```go\nfunc (env *Work) ConsensusTransactions(mux *event.TypeMux, txs []types.CoinSelfTransaction, upTime map[common.Address]uint64) error\n```\n\n```go\nfunc (env *Work) GetTxs() []types.CoinSelfTransaction\n```\n\n```go\nfunc (env *Work) ProcessBroadcastTransactions(mux *event.TypeMux, txs []types.CoinSelfTransaction)\n```\nBroadcast\n\n```go\nfunc (env *Work) ProcessTransactions(mux *event.TypeMux, tp txPoolReader, upTime map[common.Address]uint64) (listret []*common.RetCallTxN, originalTxs []types.SelfTransaction)\n```\n\n","path":"github.com/chainopen/matrixchaincode/matrixwork","name":"matrixwork","synopsis":"","isRedistributable":true}
