Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventParam ¶
type EventParam struct {
Type string `json:"type"`
Value interface{} `json:"value"`
}
type EventRecord ¶
type EventRecord struct {
scaleType.ScaleDecoder
Metadata *scaleType.MetadataStruct
Phase int `json:"phase"`
ExtrinsicIdx int `json:"extrinsic_idx"`
Type string `json:"type"`
Params []EventParam `json:"params"`
Event scaleType.MetadataEvents `json:"event"`
Topic []string `json:"topic"`
}
func (*EventRecord) Process ¶
func (e *EventRecord) Process() map[string]interface{}
type EventsDecoder ¶
type EventsDecoder struct {
scaleType.Vec
Metadata *scaleType.MetadataStruct
}
func (*EventsDecoder) Init ¶
func (e *EventsDecoder) Init(data scaleType.ScaleBytes, option *scaleType.ScaleDecoderOption)
func (*EventsDecoder) Process ¶
func (e *EventsDecoder) Process()
type ExtrinsicDecoder ¶
type ExtrinsicDecoder struct {
scaleType.ScaleDecoder
ExtrinsicLength int `json:"extrinsic_length"`
ExtrinsicHash string `json:"extrinsic_hash"`
VersionInfo string `json:"version_info"`
ContainsTransaction bool `json:"contains_transaction"`
Address interface{} `json:"address"`
Signature string `json:"signature"`
Nonce int `json:"nonce"`
Era string `json:"era"`
CallIndex string `json:"call_index"`
Params []ExtrinsicParam `json:"params"`
Metadata *scaleType.MetadataStruct
SignedExtensions []scaleType.SignedExtension `json:"signed_extensions"`
}
func (*ExtrinsicDecoder) Init ¶
func (e *ExtrinsicDecoder) Init(data scaleType.ScaleBytes, option *scaleType.ScaleDecoderOption)
func (*ExtrinsicDecoder) Process ¶
func (e *ExtrinsicDecoder) Process()
type ExtrinsicParam ¶
type MetadataDecoder ¶
type MetadataDecoder struct {
types.ScaleDecoder
Version string `json:"version"`
VersionNumber int `json:"version_number"`
Metadata types.MetadataStruct `json:"metadata"`
CodecTypes []string `json:"codec_types"`
}
func (*MetadataDecoder) CheckRegistry ¶
func (m *MetadataDecoder) CheckRegistry() (notReg []string)
CheckRegistry deprecated, metadata v14 will auto register all types
func (*MetadataDecoder) Init ¶
func (m *MetadataDecoder) Init(data []byte)
func (*MetadataDecoder) Process ¶
func (m *MetadataDecoder) Process() error
Directories
¶
| Path | Synopsis |
|---|---|
|
pkg
|
|
|
go-ethereum/crypto/sha3
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.
|
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202. |
Click to show internal directories.
Click to hide internal directories.