txauxdecoder

package
v0.0.0-...-5038352 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodedTx

type DecodedTx struct {
	// TODO: Parse TxType to pre-defined constants
	TxType                string                `json:"tx_type"`
	Inputs                []DecodedTxInput      `json:"inputs"`
	OutputCount           *uint32               `json:"output_count"`
	StakingAccountAddress *string               `json:"staked_state_address"`
	CouncilNode           *DecodedTxCouncilNode `json:"council_node_meta"`
}

func DecodeBase64

func DecodeBase64(rawTx string) (*DecodedTx, error)

func MustDecodeBase64

func MustDecodeBase64(rawTx string) *DecodedTx

type DecodedTxConfidentialInit

type DecodedTxConfidentialInit struct {
	Cert string `json:"cert"`
}

type DecodedTxConsensusPubKey

type DecodedTxConsensusPubKey struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

type DecodedTxCouncilNode

type DecodedTxCouncilNode struct {
	Name             string                    `json:"name"`
	SecurityContact  string                    `json:"security_contact"`
	ConsensusPubKey  DecodedTxConsensusPubKey  `json:"consensus_pubkey"`
	ConfidentialInit DecodedTxConfidentialInit `json:"confidential_init"`
}

type DecodedTxInput

type DecodedTxInput struct {
	ID    string `json:"id"`
	Index uint32 `json:"index"`
}

Jump to

Keyboard shortcuts

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