Documentation ¶
Index ¶
- Constants
- func BlockConvBase58Addr(b *types.Block) string
- func ConvBlockchainStatus(in *types.BlockchainStatus) string
- func ConvHexBlockchainStatus(in *types.BlockchainStatus) string
- func ConvertUnit(n *big.Int, unit string) (string, error)
- func DecodeCode(encodedCode string) ([]byte, error)
- func EncodeCode(code []byte) string
- func FillTxBody(source *InOutTxBody, target *types.TxBody) error
- func GetClient(serverAddr string, opts []grpc.DialOption) interface{}
- func JSON(pb protobuf.Message) string
- func ParseBase58Tx(jsonTx []byte) ([]*types.Tx, error)
- func ParseBase58TxBody(jsonTx []byte) (*types.TxBody, error)
- func ParseUnit(s string) (*big.Int, error)
- func PeerListToString(p *types.PeerList) string
- func TxConvBase58Addr(tx *types.Tx) string
- func TxInBlockConvBase58Addr(txInBlock *types.TxInBlock) string
- type ConnClient
- type InOutBlock
- type InOutBlockBody
- type InOutBlockHeader
- type InOutBlockIdx
- type InOutBlockchainStatus
- type InOutPeer
- type InOutPeerAddress
- type InOutTx
- type InOutTxBody
- type InOutTxIdx
- type InOutTxInBlock
Constants ¶
View Source
const CodeVersion = 0xC0
Variables ¶
This section is empty.
Functions ¶
func BlockConvBase58Addr ¶
func ConvBlockchainStatus ¶ added in v0.8.1
func ConvBlockchainStatus(in *types.BlockchainStatus) string
func ConvHexBlockchainStatus ¶
func ConvHexBlockchainStatus(in *types.BlockchainStatus) string
func DecodeCode ¶
func EncodeCode ¶
func FillTxBody ¶
func FillTxBody(source *InOutTxBody, target *types.TxBody) error
func GetClient ¶
func GetClient(serverAddr string, opts []grpc.DialOption) interface{}
func PeerListToString ¶ added in v0.8.1
func TxConvBase58Addr ¶
func TxInBlockConvBase58Addr ¶
Types ¶
type ConnClient ¶
type ConnClient struct { types.AergoRPCServiceClient // contains filtered or unexported fields }
func (*ConnClient) Close ¶
func (c *ConnClient) Close()
type InOutBlock ¶
type InOutBlock struct { Hash string Header InOutBlockHeader Body InOutBlockBody }
func ConvBlock ¶
func ConvBlock(b *types.Block) *InOutBlock
type InOutBlockBody ¶
type InOutBlockBody struct {
Txs []*InOutTx
}
type InOutBlockHeader ¶
type InOutBlockIdx ¶ added in v0.8.1
type InOutBlockchainStatus ¶
type InOutBlockchainStatus struct { Hash string Height uint64 ConsensusInfo *json.RawMessage `json:",omitempty"` ChainIdHash string }
type InOutPeer ¶ added in v0.8.1
type InOutPeer struct { Address InOutPeerAddress BestBlock InOutBlockIdx LastCheck time.Time State string Hidden bool Self bool }
type InOutPeerAddress ¶ added in v0.8.1
type InOutTx ¶
type InOutTx struct { Hash string Body *InOutTxBody }
type InOutTxBody ¶
type InOutTxIdx ¶
type InOutTxInBlock ¶
type InOutTxInBlock struct { TxIdx *InOutTxIdx Tx *InOutTx }
func ConvTxInBlock ¶
func ConvTxInBlock(txInBlock *types.TxInBlock) *InOutTxInBlock
Directories ¶
Path | Synopsis |
---|---|
Package encoding defines interfaces shared by other packages that convert data to and from byte-level and textual representations.
|
Package encoding defines interfaces shared by other packages that convert data to and from byte-level and textual representations. |
json
Package json implements encoding and decoding of JSON as defined in RFC 7159.
|
Package json implements encoding and decoding of JSON as defined in RFC 7159. |
Click to show internal directories.
Click to hide internal directories.