Documentation ¶
Index ¶
- Variables
- type AssetID
- func (a AssetID) AssetName() string
- func (a AssetID) AssetNameUTF8() (string, bool)
- func (a AssetID) HasAssetID(re *regexp.Regexp) bool
- func (a AssetID) HasPolicyID(s string) bool
- func (a AssetID) IsZero() bool
- func (a AssetID) MatchAssetName(re *regexp.Regexp) ([]string, bool)
- func (a AssetID) PolicyID() string
- func (a AssetID) String() string
- type Block
- type BlockHeader
- type ByronBlock
- type ByronBody
- type ByronHeader
- type ByronTxBody
- type ByronTxPayload
- type ByronWitness
- type Collateral
- type IntersectionFound
- type IntersectionNotFound
- type Point
- func (p Point) MarshalCBOR() ([]byte, error)
- func (p Point) MarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error
- func (p Point) MarshalJSON() ([]byte, error)
- func (p Point) PointString() (PointString, bool)
- func (p Point) PointStruct() (*PointStruct, bool)
- func (p Point) PointType() PointType
- func (p Point) String() string
- func (p *Point) UnmarshalCBOR(data []byte) error
- func (p *Point) UnmarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error
- func (p *Point) UnmarshalJSON(data []byte) error
- type PointString
- type PointStruct
- type PointType
- type Points
- type ProtocolVersion
- type Response
- type Result
- type RollBackward
- type RollForward
- type RollForwardBlock
- type Tx
- type TxBody
- type TxID
- type TxIn
- type TxOut
- type TxOuts
- type ValidityInterval
- type Value
- type Witness
Constants ¶
This section is empty.
Variables ¶
View Source
var Origin = PointString("origin").Point()
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Body []Tx `json:"body,omitempty" dynamodbav:"body,omitempty"` Header BlockHeader `json:"header,omitempty" dynamodbav:"header,omitempty"` HeaderHash string `json:"headerHash,omitempty" dynamodbav:"headerHash,omitempty"` }
type BlockHeader ¶
type BlockHeader struct { BlockHash string `json:"blockHash,omitempty" dynamodbav:"blockHash,omitempty"` BlockHeight uint64 `json:"blockHeight,omitempty" dynamodbav:"blockHeight,omitempty"` BlockSize uint64 `json:"blockSize,omitempty" dynamodbav:"blockSize,omitempty"` IssuerVK string `json:"issuerVK,omitempty" dynamodbav:"issuerVK,omitempty"` IssuerVrf string `json:"issuerVrf,omitempty" dynamodbav:"issuerVrf,omitempty"` LeaderValue map[string][]byte `json:"leaderValue,omitempty" dynamodbav:"leaderValue,omitempty"` Nonce map[string]string `json:"nonce,omitempty" dynamodbav:"nonce,omitempty"` OpCert map[string]interface{} `json:"opCert,omitempty" dynamodbav:"opCert,omitempty"` PrevHash string `json:"prevHash,omitempty" dynamodbav:"prevHash,omitempty"` ProtocolVersion map[string]int `json:"protocolVersion,omitempty" dynamodbav:"protocolVersion,omitempty"` Signature string `json:"signature,omitempty" dynamodbav:"signature,omitempty"` Slot uint64 `json:"slot,omitempty" dynamodbav:"slot,omitempty"` }
type ByronBlock ¶
type ByronBlock struct { Body ByronBody Hash string Header ByronHeader }
type ByronBody ¶
type ByronBody struct { DlgPayload []json.RawMessage `json:"dlgPayload,omitempty"` TxPayload []ByronTxPayload `json:"txPayload,omitempty"` UpdatePayload json.RawMessage `json:"updatePayload,omitempty"` }
type ByronHeader ¶
type ByronHeader struct { BlockHeight uint64 `json:"blockHeight,omitempty"` GenesisKey string Epoch uint32 Proof json.RawMessage PrevHash string ProtocolMagicId uint64 ProtocolVersion ProtocolVersion Signature json.RawMessage Slot uint64 `json:"slot,omitempty"` SoftwareVersion map[string]interface{} }
type ByronTxBody ¶
type ByronTxPayload ¶
type ByronTxPayload struct { ID string Witness []ByronWitness }
type ByronWitness ¶
type Collateral ¶
type IntersectionFound ¶
type IntersectionNotFound ¶
type IntersectionNotFound struct {
Tip Point
}
type Point ¶
type Point struct {
// contains filtered or unexported fields
}
func (Point) MarshalCBOR ¶
func (Point) MarshalDynamoDBAttributeValue ¶
func (p Point) MarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error
func (Point) MarshalJSON ¶
func (Point) PointString ¶
func (p Point) PointString() (PointString, bool)
func (Point) PointStruct ¶
func (p Point) PointStruct() (*PointStruct, bool)
func (*Point) UnmarshalCBOR ¶
func (*Point) UnmarshalDynamoDBAttributeValue ¶
func (p *Point) UnmarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error
func (*Point) UnmarshalJSON ¶
type PointString ¶
type PointString string
func (PointString) Point ¶
func (p PointString) Point() Point
type PointStruct ¶
type PointStruct struct { BlockNo uint64 `json:"blockNo,omitempty" dynamodbav:"blockNo,omitempty"` Hash string `json:"hash,omitempty" dynamodbav:"hash,omitempty"` Slot uint64 `json:"slot,omitempty" dynamodbav:"slot,omitempty"` }
func (PointStruct) Point ¶
func (p PointStruct) Point() Point
type ProtocolVersion ¶
type Response ¶
type Response struct { Type string `json:"type,omitempty" dynamodbav:"type,omitempty"` Version string `json:"version,omitempty" dynamodbav:"version,omitempty"` ServiceName string `json:"servicename,omitempty" dynamodbav:"servicename,omitempty"` MethodName string `json:"methodname,omitempty" dynamodbav:"methodname,omitempty"` Result *Result `json:"result,omitempty" dynamodbav:"result,omitempty"` Reflection json.RawMessage `json:"reflection,omitempty" dynamodbav:"reflection,omitempty"` }
type Result ¶
type Result struct { IntersectionFound *IntersectionFound `json:",omitempty" dynamodbav:",omitempty"` IntersectionNotFound *IntersectionNotFound `json:",omitempty" dynamodbav:",omitempty"` RollForward *RollForward `json:",omitempty" dynamodbav:",omitempty"` RollBackward *RollBackward `json:",omitempty" dynamodbav:",omitempty"` }
type RollBackward ¶
type RollForward ¶
type RollForward struct { Block RollForwardBlock `json:"block,omitempty" dynamodbav:"block,omitempty"` Tip Point `json:"tip,omitempty" dynamodbav:"tip,omitempty"` }
type RollForwardBlock ¶
type RollForwardBlock struct { Babbage *Block `json:"babbage,omitempty" dynamodbav:"babbage,omitempty"` Allegra *Block `json:"allegra,omitempty" dynamodbav:"allegra,omitempty"` Alonzo *Block `json:"alonzo,omitempty" dynamodbav:"alonzo,omitempty"` Byron *ByronBlock `json:"byron,omitempty" dynamodbav:"byron,omitempty"` Mary *Block `json:"mary,omitempty" dynamodbav:"mary,omitempty"` Shelley *Block `json:"shelley,omitempty" dynamodbav:"shelley,omitempty"` }
func (RollForwardBlock) PointStruct ¶
func (r RollForwardBlock) PointStruct() PointStruct
type Tx ¶
type Tx struct { ID string `json:"id,omitempty" dynamodbav:"id,omitempty"` Body TxBody `json:"body,omitempty" dynamodbav:"body,omitempty"` Metadata json.RawMessage `json:"metadata,omitempty" dynamodbav:"metadata,omitempty"` Witness Witness `json:"witness,omitempty" dynamodbav:"witness,omitempty"` }
type TxBody ¶
type TxBody struct { Certificates []json.RawMessage `json:"certificates,omitempty" dynamodbav:"certificates,omitempty"` Collaterals []Collateral `json:"collaterals,omitempty" dynamodbav:"collaterals,omitempty"` Fee num.Int `json:"fee,omitempty" dynamodbav:"fee,omitempty"` Inputs []TxIn `json:"inputs,omitempty" dynamodbav:"inputs,omitempty"` Mint *Value `json:"mint,omitempty" dynamodbav:"mint,omitempty"` Network json.RawMessage `json:"network,omitempty" dynamodbav:"network,omitempty"` Outputs TxOuts `json:"outputs,omitempty" dynamodbav:"outputs,omitempty"` RequiredExtraSignatures []string `json:"requiredExtraSignatures,omitempty" dynamodbav:"requiredExtraSignatures,omitempty"` ScriptIntegrityHash string `json:"scriptIntegrityHash,omitempty" dynamodbav:"scriptIntegrityHash,omitempty"` TimeToLive int64 `json:"timeToLive,omitempty" dynamodbav:"timeToLive,omitempty"` Update json.RawMessage `json:"update,omitempty" dynamodbav:"update,omitempty"` ValidityInterval ValidityInterval `json:"validityInterval" dynamodbav:"validityInterval,omitempty"` Withdrawals map[string]int64 `json:"withdrawals,omitempty" dynamodbav:"withdrawals,omitempty"` }
type TxIn ¶
type ValidityInterval ¶
type Witness ¶
type Witness struct { Bootstrap []json.RawMessage `json:"bootstrap,omitempty" dynamodbav:"bootstrap,omitempty"` Datums map[string][]byte `json:"datums,omitempty" dynamodbav:"datums,omitempty"` Redeemers json.RawMessage `json:"redeemers,omitempty" dynamodbav:"redeemers,omitempty"` Scripts json.RawMessage `json:"scripts,omitempty" dynamodbav:"scripts,omitempty"` Signatures map[string]string `json:"signatures,omitempty" dynamodbav:"signatures,omitempty"` }
Click to show internal directories.
Click to hide internal directories.