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 BlockV6
- type Budget
- type ByronBlock
- type ByronBody
- type ByronHeader
- type ByronTxBody
- type ByronTxPayload
- type ByronWitness
- type Cbor
- type Collateral
- type Error
- type EvaluationItem
- type EvaluationResult
- type Fee
- type HexData
- type IntersectionFound
- type IntersectionNotFound
- type Point
- func (p *Point) ConvertToV6() PointV6
- 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 PointStructV6
- type PointType
- type PointV6
- type Points
- type PointsV6
- type ProtocolVersion
- type Redeemer
- type RedeemerKey
- type RedeemerValue
- type Response
- type ResponseV6
- type Result
- type ResultV6
- type RollBackward
- type RollForward
- type RollForwardBlock
- type Transaction
- type Tx
- type TxBody
- type TxID
- type TxIn
- type TxInV6
- type TxOut
- type TxOutV6
- 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 EvaluationItem ¶ added in v1.0.0
type EvaluationResult ¶ added in v1.0.0
type EvaluationResult []EvaluationItem
type IntersectionFound ¶
type IntersectionNotFound ¶
type IntersectionNotFound struct {
Tip Point
}
type Point ¶
type Point struct {
// contains filtered or unexported fields
}
func (*Point) ConvertToV6 ¶ added in v1.1.0
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 PointStructV6 ¶ added in v1.1.0
type PointV6 ¶ added in v1.1.0
type PointV6 struct {
// contains filtered or unexported fields
}
func (PointV6) MarshalJSON ¶ added in v1.1.0
func (*PointV6) UnmarshalJSON ¶ added in v1.1.0
type ProtocolVersion ¶
type Redeemer ¶ added in v0.4.0
type Redeemer map[RedeemerKey]RedeemerValue
type RedeemerKey ¶ added in v0.4.0
type RedeemerKey string
func (RedeemerKey) Index ¶ added in v0.4.0
func (a RedeemerKey) Index() int
func (RedeemerKey) RedeemerTag ¶ added in v0.4.0
func (a RedeemerKey) RedeemerTag() string
type RedeemerValue ¶ added in v0.4.0
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 ResponseV6 ¶ added in v1.1.0
type ResponseV6 struct { Jsonrpc string `json:"jsonrpc,omitempty"` Method string `json:"method,omitempty"` Result *ResultV6 `json:"result,omitempty"` }
func (ResponseV6) ConvertToV5 ¶ added in v1.1.0
func (responseV6 ResponseV6) ConvertToV5() (response Response)
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 ResultV6 ¶ added in v1.1.0
type ResultV6 struct { Direction string `json:"direction,omitempty"` BlockV6 *BlockV6 `json:"block,omitempty"` Point *PointV6 `json:"point,omitempty"` // roll backward (nextBlock) Intersection *PointV6 `json:"intersection,omitempty"` // intersection found (findIntersection) Error *Error `json:"error,omitempty"` // intersection not found (findIntersection) }
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
func (RollForwardBlock) Transactions ¶ added in v0.3.4
func (r RollForwardBlock) Transactions() []Tx
type Transaction ¶ added in v1.1.0
type Transaction struct { ID string `json:"id,omitempty"` Spends string `json:"spends,omitempty"` TxInputs []TxInV6 `json:"inputs,omitempty"` TxOutputs []TxOutV6 `json:"outputs,omitempty"` Datums map[string]HexData `json:"datums,omitempty"` Redeemers json.RawMessage `json:"redeemers,omitempty"` Fee Fee `json:"fee"` Cbor string `json:"cbor,omitempty"` Metadata json.RawMessage `json:"metadata,omitempty"` Mint *Value `json:"mint,omitempty"` }
type Tx ¶
type Tx struct { ID string `json:"id,omitempty" dynamodbav:"id,omitempty"` Cbor Cbor `json:"raw,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 TxOut ¶
type TxOut struct { Address string `json:"address,omitempty" dynamodbav:"address,omitempty"` Datum string `json:"datum,omitempty" dynamodbav:"datum,omitempty"` DatumHash string `json:"datumHash,omitempty" dynamodbav:"datumHash,omitempty"` Value Value `json:"value,omitempty" dynamodbav:"value,omitempty"` Script json.RawMessage `json:"script,omitempty" dynamodbav:"script,omitempty"` }
type ValidityInterval ¶
type Witness ¶
type Witness struct { Bootstrap []json.RawMessage `json:"bootstrap,omitempty" dynamodbav:"bootstrap,omitempty"` Datums map[string]HexData `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.