Documentation ¶
Index ¶
- Constants
- type AddressT
- type AddressesT
- type AmountT
- type AssetT
- type AsyncFunctorT
- type AsyncFunctorsT
- type AuthentifierT
- type AuthentifiersT
- type AuthorT
- type AuthorsT
- type BallT
- type BallsT
- type BigIntT
- type CHash160T
- type CHashT
- type CHashesT
- type ContentHashT
- type ContributionT
- type ContributionsT
- type DataFeedT
- type DefinitionT
- type DelayT
- type DenominationT
- type ErrorT
- type HashBase64T
- type HashHexT
- type InputIndexT
- type InputT
- type InputsT
- type JointT
- type LevelT
- type MCIndexT
- type MCIndexesT
- type MessageIndexT
- type MessageT
- type MessagesT
- type OutputIndexT
- type OutputT
- type OutputsT
- type PaidWitnessEventT
- type PaidWitnessEventsT
- type PathT
- type PayloadT
- type PropsT
- type PropssT
- type SHA1HexT
- type SerialNumberT
- type ShareT
- type SpendProofT
- type SpendProofsT
- type TimeT
- type UnitPropsBallT
- type UnitPropsBallsT
- type UnitPropsT
- type UnitPropssT
- type UnitT
- type UnitsT
Constants ¶
View Source
const ( ADDRESS_SIZE = CHASH_SIZE UNIT_SIZE = HASHB64_SIZE BALL_SIZE = HASHB64_SIZE ASSET_SIZE = HASHB64_SIZE )
View Source
const ( UnitT_Null UnitT = UnitT("") BallT_Null BallT = BallT("") AssetT_Null AssetT = AssetT("") AddressT_Null AddressT = AddressT("") LevelT_Null LevelT = LevelT(-1) MCIndexT_Null MCIndexT = MCIndexT(-1) DelayT_Null DelayT = DelayT(-1) AmountT_Null AmountT = AmountT(-666) )
View Source
const ( HASHB64_SIZE = 44 CHASH_SIZE = 32 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressesT ¶
type AddressesT []AddressT
func (AddressesT) IndexOf ¶
func (addresses AddressesT) IndexOf(address AddressT) int
type AsyncFunctorT ¶
type AsyncFunctorT = func() ErrorT
type AsyncFunctorsT ¶
type AsyncFunctorsT = []AsyncFunctorT
type AuthentifierT ¶
type AuthentifierT string
type AuthentifiersT ¶
type AuthentifiersT = map[PathT]AuthentifierT
type AuthorT ¶
type AuthorT struct { Address AddressT `json:"address"` Definition DefinitionT `json:"definition,omitempty"` Authentifiers AuthentifiersT `json:"authentifiers,omitempty"` }
type CHashT ¶
type CHashT = CHash160T
func (*CHashT) UnmarshalText ¶
type ContentHashT ¶
type ContentHashT = CHashT
type ContributionT ¶
type ContributionsT ¶
type ContributionsT = []ContributionT
type DenominationT ¶
type DenominationT int64
func (DenominationT) IsNull ¶
func (denomination DenominationT) IsNull() bool
type HashBase64T ¶
type HashBase64T string
type InputIndexT ¶
type InputIndexT int
type InputT ¶
type InputT struct { Type string `json:"type,omitempty"` Unit UnitT `json:"unit,omitempty"` Message_index MessageIndexT `json:"message_index,omitempty"` Output_index OutputIndexT `json:"output_index,omitempty"` From_main_chain_index MCIndexT `json:"from_main_chain_index,omitempty"` To_main_chain_index MCIndexT `json:"to_main_chain_index,omitempty"` Address AddressT `json:"address,omitempty"` Amount AmountT `json:"amount,omitempty"` Serial_number SerialNumberT `json:"serial_number,omitempty"` }
type MCIndexesT ¶
type MCIndexesT = []MCIndexT
type MessageIndexT ¶
type MessageIndexT int
type MessageT ¶
type MessageT struct { App string `json:"app"` Payload_hash string `json:"payload_hash"` Payload_location string `json:"payload_location"` Payload PayloadT `json:"payload"` // [fyi] "text" and other PayloadText string `json:"-"` Payload_uri *string `json:"payload_uri,omitempty""` Payload_uri_hash *string `json:"payload_uri_hash,omitempty"` Spend_proofs SpendProofsT `json:"spend_proofs,omitempty"` }
type OutputIndexT ¶
type OutputIndexT int
type PaidWitnessEventT ¶
type PaidWitnessEventsT ¶
type PaidWitnessEventsT = []PaidWitnessEventT
type PayloadT ¶
type PayloadT struct { Denomination DenominationT `json:"denomination,omitempty"` Inputs InputsT `json:"inputs,omitempty"` Outputs OutputsT `json:"outputs,omitempty"` Asset AssetT `json:"asset,omitempty"` Timestamp int64 `json:"timestamp,omitempty"` // [fyi] "address_definition_change" Definition_chash CHashT `json:"defnition_chash,omitempty"` Address AddressT `json:"address,omitempty"` // [fyi] "poll" Question string `json:"question,omitempty"` Choices []string `json:"choices,omitempty"` // [fyi] "vote" Unit UnitT `json:"unit,omitempty"` Choice string `json:"choice,omitempty"` // [fyi] "attestation" Profile map[string]string `json:"profile,omitempty"` Cap int64 `json:"cap,omitempty"` Is_private bool `json:"is_private,omitempty"` Is_transferrable bool `json:"is_transferrable,omitempty"` Auto_destroy bool `json:"auto_destroy,omitempty"` Fixed_denominations bool `json:"fixed_denominations,omitempty"` Issued_by_definer_only bool `json:"issued_by_definer_only,omitempty"` Cosigned_by_definer bool `json:"cosigned_by_definer,omitempty"` Spender_attested bool `json:"spender_attested,omitempty"` Issue_condition interface{} `json:"issue_condition,omitempty"` Transfer_condition interface{} `json:"transfer_condition,omitempty"` Attestors AddressesT `json:"attestors,omitempty"` Denominations []struct { Denomination DenominationT `json:"denomination,omitempty"` Count_coins BigIntT `json:"count_coins"` } `json:"denominations,omitempty"` // [fyi] "data_feed" DataFeed DataFeedT `json:"datafeed,omitempty"` }
type PropsT ¶
type PropsT struct { Creation_date TimeT Version string Alt string Witness_list_unit UnitT Last_ball_unit UnitT Content_hash ContentHashT Headers_commission int Payload_commission int Is_free int Is_on_main_chain int Main_chain_index MCIndexT Latest_included_mc_index MCIndexT Level LevelT Witnessed_level LevelT Is_stable int Sequence string Best_parent_unit UnitT }
[fyi] per DB table units
type SerialNumberT ¶
type SerialNumberT BigIntT
func (SerialNumberT) IsNull ¶
func (serno SerialNumberT) IsNull() bool
func (SerialNumberT) OrNull ¶
func (serno SerialNumberT) OrNull() *SerialNumberT
type SpendProofT ¶
type SpendProofsT ¶
type SpendProofsT = []SpendProofT
type UnitPropsBallT ¶
type UnitPropsBallT struct { UnitPropsT Ball BallT }
type UnitPropsBallsT ¶
type UnitPropsBallsT = []UnitPropsBallT
type UnitPropsT ¶
type UnitPropssT ¶
type UnitPropssT = []UnitPropsT
Click to show internal directories.
Click to hide internal directories.