utils

package
v0.0.0-...-e4e6135 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockParse

func BlockParse(block *cm.Block) *common.Block

Types

type FabricBlock

type FabricBlock struct {
	FabricBlockchainInfo
	Transactions []FabricTransaction `json:"transactions"`
}

func ParseFabricBlock

func ParseFabricBlock(block *common.Block) (*FabricBlock, error)

type FabricBlockchainInfo

type FabricBlockchainInfo struct {
	Number            uint64 `json:"number"`
	CurrentBlockHash  string `json:"currentBlockHash"`
	PreviousBlockHash string `json:"previousBlockHash"`
}

type FabricChannelConfig

type FabricChannelConfig struct {
	Id          string               `json:"id"`
	BlockNumber uint64               `json:"blockNumber"`
	MSPs        []*msp.MSPConfig     `json:"msps"`
	AnchorPeers []*fab.OrgAnchorPeer `json:"anchorPeers"`
	Orderers    []string             `json:"orderers"`
}

type FabricTransaction

type FabricTransaction struct {
	No        int64                     `json:"no"`
	Status    string                    `json:"status"`
	Txid      string                    `json:"txid"`
	Channel   string                    `json:"channel"`
	Type      string                    `json:"type"`
	Subject   string                    `json:"subject"`
	Config    string                    `json:"config"`
	Timestamp int64                     `json:"timestamp"`
	Actions   []FabricTransactionAction `json:"actions"`
}

type FabricTransactionAction

type FabricTransactionAction struct {
	Endorsers []string                       `json:"endorsers"`
	RWSet     []FabricTransactionActionRWSet `json:"rwSet"`
}

type FabricTransactionActionRWSet

type FabricTransactionActionRWSet struct {
	Cc   string   `json:"cc"`
	RSet []string `json:"rSet"`
	WSet []string `json:"wSet"`
}

Jump to

Keyboard shortcuts

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