Crate chainhook_types

Source

Modules§

bitcoin

Structs§

AccountIdentifier
The account_identifier uniquely identifies an account within a network. All fields in the account_identifier are utilized to determine this uniqueness (including the metadata field, if populated).
Amount
Amount is some Value of a Currency. It is considered invalid to specify a Value without a Currency.
AnchorBlockPosition
BitcoinBlockData
BitcoinBlock contain an array of Transactions that occurred at a particular BlockIdentifier. A hard requirement for blocks returned by Rosetta implementations is that they MUST be inalterable: once a client has requested and received a block identified by a specific BlockIndentifier, all future calls for that same BlockIdentifier must return the same block contents.
BitcoinBlockMetadata
BitcoinChainUpdatedWithBlocksData
BitcoinChainUpdatedWithReorgData
BitcoinTransactionData
Transactions contain an array of Operations that are attributable to the same TransactionIdentifier.
BitcoinTransactionMetadata
Extra data for Transaction
BlockCommitmentData
BlockHeader
BlockIdentifier
BlockIdentifier uniquely identifies a block in a particular network.
BlockchainUpdatedWithHeaders
BlockchainUpdatedWithReorg
Brc20BalanceData
Brc20TokenDeployData
Brc20TransferData
ContractInterface
ContractInterfaceFunction
ContractInterfaceFunctionArg
ContractInterfaceFunctionOutput
ContractInterfaceFungibleTokens
ContractInterfaceMap
ContractInterfaceNonFungibleTokens
ContractInterfaceTupleEntryType
ContractInterfaceVariable
Currency
Currency is composed of a canonical Symbol and Decimals. This Decimals value is used to convert an Amount.Value from atomic units (Satoshis) to standard units (Bitcoins).
CurrencyMetadata
DataMapDeleteEventData
DataMapInsertEventData
DataMapUpdateEventData
DataVarSetEventData
DelegateStackSTXData
FTBurnEventData
FTMintEventData
FTTransferEventData
KeyRegistrationData
LockSTXData
MicroBlockPosition
NFTBurnEventData
NFTMintEventData
NFTTransferEventData
Operation
Operations contain all balance-changing information within a transaction. They are always one-sided (only affect 1 AccountIdentifier) and can succeed or fail independently from a Transaction.
OperationIdentifier
The operation_identifier uniquely identifies an operation within a transaction.
OperationMetadata
OperationStatusKindIter
OperationTypeIter
OrdinalInscriptionNumber
OrdinalInscriptionRevealData
OrdinalInscriptionTransferData
PobBlockCommitmentData
PoxReward
ProcessedBitcoinBlock
ProcessedBitcoinTransaction
ProcessedStacksBlock
ProcessedStacksTransaction
PublicKey
PublicKey contains a public key byte array for a particular CurveType encoded in hex. Note that there is no PrivateKey struct as this is NEVER the concern of an implementation.
STXBurnEventData
STXLockEventData
STXMintEventData
STXTransferEventData
SmartContractEventData
StackSTXData
StacksBlockCommitmentData
StacksBlockData
StacksBlock contain an array of Transactions that occurred at a particular BlockIdentifier. A hard requirement for blocks returned by Rosetta implementations is that they MUST be inalterable: once a client has requested and received a block identified by a specific BlockIndentifier, all future calls for that same BlockIdentifier must return the same block contents.
StacksBlockMetadata
StacksBlockUpdate
StacksChainUpdatedWithBlocksData
StacksChainUpdatedWithMicroblocksData
StacksChainUpdatedWithMicroblocksReorgData
StacksChainUpdatedWithReorgData
StacksContractCallData
StacksContractDeploymentData
StacksMicroblockData
StacksMicroblock contain an array of Transactions that occurred at a particular BlockIdentifier.
StacksMicroblockMetadata
StacksMicroblocksTrail
StacksNodeConfig
StacksTransactionData
Transactions contain an array of Operations that are attributable to the same TransactionIdentifier.
StacksTransactionEvent
StacksTransactionEventPosition
StacksTransactionExecutionCost
StacksTransactionMetadata
Extra data for Transaction
StacksTransactionReceipt
Extra event data for Transaction
SubAccountIdentifier
An account may have state specific to a contract address (ERC-20 token) and/or a stake (delegated balance). The sub_account_identifier should specify which state (if applicable) an account instantiation refers to.
Timestamp
The timestamp of the block in milliseconds since the Unix Epoch. The timestamp is stored in milliseconds because some blockchains produce blocks more often than once a second.
TransactionIdentifier
The transaction_identifier uniquely identifies a transaction in a particular network and block or in the mempool.
TransferSTXData

Enums§

BitcoinBlockSignaling
BitcoinChainEvent
BitcoinNetwork
BitcoinOpData
BlockchainEvent
Brc20Operation
Chain
ClarityVersion
ContractInterfaceAtomType
ContractInterfaceFunctionAccess
ContractInterfaceVariableAccess
CurrencyStandard
CurveType
CurveType is the type of cryptographic curve associated with a PublicKey.
OperationStatusKind
OperationType
OrdinalInscriptionCurseType
OrdinalInscriptionTransferDestination
OrdinalOperation
ProcessingContext
StacksBaseChainOperation
StacksChainEvent
StacksEpochId
StacksNetwork
StacksTransactionEventPayload
StacksTransactionKind
StacksTransactionPosition
TODO
SubAccount

Traits§

BitcoinProtocolProcessor

Functions§

run_processor