Documentation ¶
Overview ¶
nolint
nolint
nolint
nolint
nolint
nolint
nolint
nolint
nolint
nolint
nolint
nolint
Index ¶
- type Bytes20
- type Bytes32
- type Bytes64
- type Ex1
- type Ex2
- type NestedStruct
- type NestedStructArray
- type NestedStructPointer
- type NestedStructSlice
- type NestedTypeAliasWithImport
- type Options
- type Slice
- type Smth
- type Spend
- type SpendArguments
- type SpendBody
- type SpendNonce
- type SpendPayload
- type StringAlias
- type StructSliceWithLimit
- type StructWithString
- type StructWithStringAlias
- type U16
- type U32
- type U64
- type U8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bytes20 ¶
type Bytes20 struct {
Value [20]byte
}
func (*Bytes20) DecodeScale ¶
func (*Bytes20) EncodeScale ¶
type Bytes32 ¶
type Bytes32 struct {
Value [32]byte
}
func (*Bytes32) DecodeScale ¶
func (*Bytes32) EncodeScale ¶
type Bytes64 ¶
type Bytes64 struct {
Value [64]byte
}
func (*Bytes64) DecodeScale ¶
func (*Bytes64) EncodeScale ¶
type NestedStruct ¶
func (*NestedStruct) DecodeScale ¶
func (t *NestedStruct) DecodeScale(dec *scale.Decoder) (total int, err error)
func (*NestedStruct) EncodeScale ¶
func (t *NestedStruct) EncodeScale(enc *scale.Encoder) (total int, err error)
type NestedStructArray ¶
func (*NestedStructArray) DecodeScale ¶
func (t *NestedStructArray) DecodeScale(dec *scale.Decoder) (total int, err error)
func (*NestedStructArray) EncodeScale ¶
func (t *NestedStructArray) EncodeScale(enc *scale.Encoder) (total int, err error)
type NestedStructPointer ¶
func (*NestedStructPointer) DecodeScale ¶
func (t *NestedStructPointer) DecodeScale(dec *scale.Decoder) (total int, err error)
func (*NestedStructPointer) EncodeScale ¶
func (t *NestedStructPointer) EncodeScale(enc *scale.Encoder) (total int, err error)
type NestedStructSlice ¶
func (*NestedStructSlice) DecodeScale ¶
func (t *NestedStructSlice) DecodeScale(dec *scale.Decoder) (total int, err error)
func (*NestedStructSlice) EncodeScale ¶
func (t *NestedStructSlice) EncodeScale(enc *scale.Encoder) (total int, err error)
type NestedTypeAliasWithImport ¶
type NestedTypeAliasWithImport struct {
Value nested.StringAlias `scale:"max=20"`
}
func (*NestedTypeAliasWithImport) DecodeScale ¶
func (t *NestedTypeAliasWithImport) DecodeScale(dec *scale.Decoder) (total int, err error)
func (*NestedTypeAliasWithImport) EncodeScale ¶
func (t *NestedTypeAliasWithImport) EncodeScale(enc *scale.Encoder) (total int, err error)
type Options ¶
type Options struct { ArrayPtr *array SlicePtr *slice }
func (*Options) DecodeScale ¶
func (*Options) EncodeScale ¶
type Slice ¶
type Slice struct {
Value []byte `scale:"max=10"`
}
func (*Slice) DecodeScale ¶
func (*Slice) EncodeScale ¶
type SpendArguments ¶
func (*SpendArguments) DecodeScale ¶
func (t *SpendArguments) DecodeScale(dec *scale.Decoder) (total int, err error)
func (*SpendArguments) EncodeScale ¶
func (t *SpendArguments) EncodeScale(enc *scale.Encoder) (total int, err error)
type SpendBody ¶
type SpendBody struct { Address [20]byte Selector uint8 Payload SpendPayload }
func (*SpendBody) DecodeScale ¶
func (*SpendBody) EncodeScale ¶
type SpendNonce ¶
func (*SpendNonce) DecodeScale ¶
func (t *SpendNonce) DecodeScale(dec *scale.Decoder) (total int, err error)
func (*SpendNonce) EncodeScale ¶
func (t *SpendNonce) EncodeScale(enc *scale.Encoder) (total int, err error)
type SpendPayload ¶
type SpendPayload struct { Arguments SpendArguments Nonce SpendNonce GasPrice uint32 Signature [64]byte }
func (*SpendPayload) DecodeScale ¶
func (t *SpendPayload) DecodeScale(dec *scale.Decoder) (total int, err error)
func (*SpendPayload) EncodeScale ¶
func (t *SpendPayload) EncodeScale(enc *scale.Encoder) (total int, err error)
type StringAlias ¶
type StringAlias string
type StructSliceWithLimit ¶
type StructSliceWithLimit struct {
Slice []Smth `scale:"max=2"`
}
func (*StructSliceWithLimit) DecodeScale ¶
func (t *StructSliceWithLimit) DecodeScale(dec *scale.Decoder) (total int, err error)
func (*StructSliceWithLimit) EncodeScale ¶
func (t *StructSliceWithLimit) EncodeScale(enc *scale.Encoder) (total int, err error)
type StructWithString ¶
type StructWithString struct {
Value string `scale:"max=3"`
}
func (*StructWithString) DecodeScale ¶
func (t *StructWithString) DecodeScale(dec *scale.Decoder) (total int, err error)
func (*StructWithString) EncodeScale ¶
func (t *StructWithString) EncodeScale(enc *scale.Encoder) (total int, err error)
type StructWithStringAlias ¶
type StructWithStringAlias struct {
Value StringAlias `scale:"max=3"`
}
func (*StructWithStringAlias) DecodeScale ¶
func (t *StructWithStringAlias) DecodeScale(dec *scale.Decoder) (total int, err error)
func (*StructWithStringAlias) EncodeScale ¶
func (t *StructWithStringAlias) EncodeScale(enc *scale.Encoder) (total int, err error)
Source Files ¶
- bytes.go
- bytes_scale.go
- ex1.go
- ex1_scale.go
- ex2.go
- ex2_scale.go
- integers.go
- integers_scale.go
- nested_struct_array_no_import.go
- nested_struct_array_no_import_scale.go
- nested_struct_no_import.go
- nested_struct_no_import_scale.go
- nested_struct_pointer_with_import.go
- nested_struct_pointer_with_import_scale.go
- nested_struct_slice_with_import.go
- nested_struct_slice_with_import_scale.go
- nested_type_alias_with_import.go
- nested_type_alias_with_import_scale.go
- options.go
- options_scale.go
- spend.go
- spend_scale.go
- string.go
- string_scale.go
Click to show internal directories.
Click to hide internal directories.