...

Package transaction

import "github.com/hyperledger/fabric/token/transaction"
Overview
Index
Subdirectories

Overview ▾

func UnmarshalTokenTransaction

func UnmarshalTokenTransaction(raw []byte) (*cb.ChannelHeader, *token.TokenTransaction, identity.PublicInfo, error)

type Processor

Processor implements the interface 'github.com/hyperledger/fabric/core/ledger/customtx/Processor' for FabToken transactions

type Processor struct {
    TMSManager TMSManager
}

func (*Processor) GenerateSimulationResults

func (p *Processor) GenerateSimulationResults(txEnv *common.Envelope, simulator ledger.TxSimulator, initializingLedger bool) error

type TMSManager

type TMSManager interface {
    // GetTxProcessor returns a TxProcessor for TMS transactions for the provided channel
    GetTxProcessor(channel string) (TMSTxProcessor, error)
}

type TMSTxProcessor

TMSTxProcessor is used to generate the read-dependencies of a token transaction (read-set) along with the ledger updates triggered by that transaction (write-set); read-write sets are returned implicitly via the simulator object that is passed as parameter in the Commit function

type TMSTxProcessor interface {
    // ProcessTx parses ttx to generate a RW set
    ProcessTx(txID string, creator identity.PublicInfo, ttx *token.TokenTransaction, simulator ledger.LedgerWriter) error
}

type TxCreatorInfo

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

func (*TxCreatorInfo) Public

func (t *TxCreatorInfo) Public() []byte

Subdirectories

Name Synopsis
..
mock Code generated by counterfeiter.