Documentation ¶
Index ¶
- Constants
- Variables
- func IsManager(kind string) bool
- func NewTypedOperation[M OperationConstraint](operation Operation) (M, error)
- type API
- type AccountActivation
- type ActivatedProtocol
- type ActivatedUpgrades
- type Applied
- type BalanceUpdate
- type Ballot
- type BigMapDiff
- type Block
- type BlockAPI
- type BlockBallot
- type BlockBallots
- type BlockMetadata
- type BlockProtocols
- type BlockRPC
- func (api *BlockRPC) Block(ctx context.Context, blockID string) (Block, error)
- func (api *BlockRPC) BlockProtocols(ctx context.Context, blockID string) (BlockProtocols, error)
- func (api *BlockRPC) Blocks(ctx context.Context, args BlocksArgs) ([][]string, error)
- func (api *BlockRPC) Hash(ctx context.Context, blockID string) (string, error)
- func (api *BlockRPC) Head(ctx context.Context) (Block, error)
- func (api *BlockRPC) Header(ctx context.Context, blockID string) (Header, error)
- func (api *BlockRPC) HeaderRaw(ctx context.Context, blockID string) (string, error)
- func (api *BlockRPC) HeaderShell(ctx context.Context, blockID string) (HeaderShell, error)
- func (api *BlockRPC) Metadata(ctx context.Context, blockID string) (BlockMetadata, error)
- func (api *BlockRPC) MetadataHash(ctx context.Context, blockID string) (string, error)
- func (api *BlockRPC) Operation(ctx context.Context, blockID string, listOffset, operationOffset int) (OperationGroup, error)
- func (api *BlockRPC) OperationHashes(ctx context.Context, blockID string) ([][]string, error)
- func (api *BlockRPC) OperationMetadataHash(ctx context.Context, blockID string) (string, error)
- func (api *BlockRPC) OperationMetadataHashes(ctx context.Context, blockID string) ([][]string, error)
- func (api *BlockRPC) Operations(ctx context.Context, blockID string) ([][]OperationGroup, error)
- func (api *BlockRPC) OperationsOffset(ctx context.Context, blockID string, listOffset int) ([]OperationGroup, error)
- func (api *BlockRPC) ProtocolData(ctx context.Context, blockID string) (ProtocolData, error)
- func (api *BlockRPC) ProtocolDataRaw(ctx context.Context, blockID string) (string, error)
- func (api *BlockRPC) VotesBallotList(ctx context.Context, blockID string) ([]BlockBallot, error)
- func (api *BlockRPC) VotesBallots(ctx context.Context, blockID string) (BlockBallots, error)
- func (api *BlockRPC) VotesCurrentPeriod(ctx context.Context, blockID string) (VotingPeriod, error)
- func (api *BlockRPC) VotesCurrentProposal(ctx context.Context, blockID string) (string, error)
- func (api *BlockRPC) VotesListing(ctx context.Context, blockID string) ([]Rolls, error)
- func (api *BlockRPC) VotesProposals(ctx context.Context, blockID string) ([]string, error)
- func (api *BlockRPC) VotesQuorum(ctx context.Context, blockID string) (int, error)
- func (api *BlockRPC) VotesSuccessorPeriod(ctx context.Context, blockID string) (VotingPeriod, error)
- func (api *BlockRPC) VotesTotalVotingPower(ctx context.Context, blockID string) (int, error)
- type BlocksArgs
- type Bootstrapped
- type Caboose
- type Chain
- func (api *Chain) ChainID(ctx context.Context) (string, error)
- func (api *Chain) InvalidBlock(ctx context.Context, blockHash string) (InvalidBlock, error)
- func (api *Chain) InvalidBlocks(ctx context.Context) ([]InvalidBlock, error)
- func (api *Chain) IsBootstrapped(ctx context.Context) (Bootstrapped, error)
- func (api *Chain) LevelsCaboose(ctx context.Context) (Caboose, error)
- func (api *Chain) LevelsCheckpoint(ctx context.Context) (Checkpoint, error)
- func (api *Chain) LevelsSavepoint(ctx context.Context) (Savepoint, error)
- func (api *Chain) PendingOperations(ctx context.Context) (MempoolResponse, error)
- type ChainAPI
- type Checkpoint
- type CommitmentsAndCiphertexts
- type Config
- type ConfigAPI
- type Connection
- type ConnectionMetadata
- type ConnectionVersion
- type Constants
- type Content
- type Context
- func (api *Context) ActiveDelegatesWithRolls(ctx context.Context, blockID string) ([]string, error)
- func (api *Context) BigMap(ctx context.Context, blockID string, bigMapID uint64) ([]byte, error)
- func (api *Context) BigMapKey(ctx context.Context, blockID string, bigMapID uint64, key string) (interface{}, error)
- func (api *Context) CacheContracts(ctx context.Context, blockID string) (interface{}, error)
- func (api *Context) CacheContractsSize(ctx context.Context, blockID string) (uint64, error)
- func (api *Context) CacheContractsSizeLimit(ctx context.Context, blockID string) (uint64, error)
- func (api *Context) Constants(ctx context.Context, blockID string) (Constants, error)
- func (api *Context) Contract(ctx context.Context, blockID, contract string) (ContractInfo, error)
- func (api *Context) ContractBalance(ctx context.Context, blockID, contract string) (string, error)
- func (api *Context) ContractCounter(ctx context.Context, blockID, contract string) (string, error)
- func (api *Context) ContractDelegate(ctx context.Context, blockID, contract string) (string, error)
- func (api *Context) ContractEntrypoint(ctx context.Context, blockID, contract, entrypoint string) (stdJSON.RawMessage, error)
- func (api *Context) ContractEntrypoints(ctx context.Context, blockID, contract string) (Entrypoints, error)
- func (api *Context) ContractScript(ctx context.Context, blockID, contract string) (Script, error)
- func (api *Context) ContractStorage(ctx context.Context, blockID, contract string) (stdJSON.RawMessage, error)
- func (api *Context) Contracts(ctx context.Context, blockID string) ([]string, error)
- func (api *Context) Delegate(ctx context.Context, blockID, pkh string) (Delegate, error)
- func (api *Context) DelegateBalance(ctx context.Context, blockID, pkh string) (string, error)
- func (api *Context) DelegateContracts(ctx context.Context, blockID, pkh string) ([]string, error)
- func (api *Context) DelegateDeactivated(ctx context.Context, blockID, pkh string) (bool, error)
- func (api *Context) DelegateGracePeriod(ctx context.Context, blockID, pkh string) (int, error)
- func (api *Context) DelegateStakingBalance(ctx context.Context, blockID, pkh string) (string, error)
- func (api *Context) DelegateVotingPower(ctx context.Context, blockID, pkh string) (int, error)
- func (api *Context) Delegates(ctx context.Context, blockID string, active DelegateType) ([]string, error)
- func (api *Context) LiquidityBakingCPMMAddress(ctx context.Context, blockID string) (string, error)
- func (api *Context) TxRollupCommitment(ctx context.Context, blockID, txRollupID, blockLevel string) (*RollupCommitmentForBlock, error)
- func (api *Context) TxRollupInbox(ctx context.Context, blockID, txRollupID, blockLevel string) (*TxRollupInbox, error)
- func (api *Context) TxRollupPendingBondedCommitments(ctx context.Context, blockID, txRollupID, pkh string) (uint64, error)
- func (api *Context) TxRollupState(ctx context.Context, blockID, txRollupID string) (TxRollupState, error)
- type ContextAPI
- type ContractInfo
- type Delegate
- type DelegateType
- type Delegation
- type DoubleBakingEvidence
- type DoubleEndorsementEvidence
- type DoublePreendorsementEvidence
- type DrainDelegate
- type Endorsement
- type EndorsementMetadata
- type EndorsementOperation
- type EndorsementWithSlot
- type EndorsementWithSlotEntity
- type Entrypoints
- type Event
- type Failed
- type FailedMonitor
- type FrozenBalanceByCycle
- type General
- type GeneralAPI
- type Header
- type HeaderShell
- type HistoryMode
- type ImplicitOperationsResult
- type Inject
- type InjectAPI
- type InjectOperationRequest
- type InlinedEndorsement
- type InlinedEndorsementOperations
- type InlinedPreendorsement
- type InlinedPreendorsementOperations
- type Int64StringSlice
- type InvalidBlock
- type LastRemovedCommitmentHashes
- type LazyStorageDiff
- type LazyStorageDiffBigMapEntity
- type LazyStorageDiffSaplingEntity
- type LazyStorageDiffUpdate
- type LazyStorageDiffUpdatesSaplingState
- type LevelInfo
- type ManagerOperationMetadata
- type MempoolResponse
- type Monitor
- func (monitor *Monitor) Applied() <-chan []*Applied
- func (monitor *Monitor) BranchDelayed() <-chan []*FailedMonitor
- func (monitor *Monitor) BranchRefused() <-chan []*FailedMonitor
- func (monitor *Monitor) Close() error
- func (monitor *Monitor) Outdated() <-chan []*FailedMonitor
- func (monitor *Monitor) Refused() <-chan []*FailedMonitor
- func (monitor *Monitor) SubscribeOnMempoolApplied(ctx context.Context)
- func (monitor *Monitor) SubscribeOnMempoolBranchDelayed(ctx context.Context)
- func (monitor *Monitor) SubscribeOnMempoolBranchRefused(ctx context.Context)
- func (monitor *Monitor) SubscribeOnMempoolOutdated(ctx context.Context)
- func (monitor *Monitor) SubscribeOnMempoolRefused(ctx context.Context)
- type Network
- func (api *Network) Connection(ctx context.Context, peerID string) (Connection, error)
- func (api *Network) ConnectionVersion(ctx context.Context) (ConnectionVersion, error)
- func (api *Network) Connections(ctx context.Context) ([]Connection, error)
- func (api *Network) Points(ctx context.Context) ([]NetworkPointWithURI, error)
- type NetworkAPI
- type NetworkPoint
- type NetworkPointWithURI
- type OnlyBalanceUpdatesMetadata
- type Operation
- type OperationConstraint
- type OperationGroup
- type OperationResult
- type Origination
- type Parameters
- type Point
- type Preendorsement
- type Proposal
- type ProtocolComponent
- type ProtocolData
- type ProtocolInfo
- type Protocols
- type ProtocolsAPI
- type RPC
- type RegisterGlobalConstant
- type RequestError
- type ResultError
- type Reveal
- type Rolls
- type RollupCommitment
- type RollupCommitmentForBlock
- type RollupCommitmentMessages
- type RollupStateCommitment
- type SaplingTransactionCiphertext
- type Savepoint
- type Script
- type SeedNonceRevelation
- type SetDepositsLimit
- type StatsGC
- type StatsMemory
- type TicketsInfo
- type Transaction
- type TxRollupCommit
- type TxRollupCommitment
- type TxRollupDispatchTickets
- type TxRollupFinalizeCommitment
- type TxRollupInbox
- type TxRollupOrigination
- type TxRollupRejection
- type TxRollupRemoveCommitment
- type TxRollupState
- type TxRollupSubmitBatch
- type UpdateConsensusKey
- type VdfRevelation
- type Version
- type VotingPeriod
Constants ¶
const ( LazyStorageDiffKindBigMap = "big_map" LazyStorageDiffKindSapling = "sapling_state" )
const ( KindActivation = "activate_account" KindBallot = "ballot" KindDelegation = "delegation" KindDoubleBaking = "double_baking_evidence" KindDoubleEndorsing = "double_endorsement_evidence" KindEndorsement = "endorsement" KindEndorsementWithSlot = "endorsement_with_slot" KindOrigination = "origination" KindProposal = "proposals" KindReveal = "reveal" KindNonceRevelation = "seed_nonce_revelation" KindTransaction = "transaction" KindRegisterGlobalConstant = "register_global_constant" KindPreendorsement = "preendorsement" KindSetDepositsLimit = "set_deposits_limit" KindDoublePreendorsement = "double_preendorsement_evidence" KindTxRollupOrigination = "tx_rollup_origination" KindTxRollupSubmitBatch = "tx_rollup_submit_batch" KindTxRollupCommit = "tx_rollup_commit" KindTxRollupReturnBond = "tx_rollup_return_bond" KindTxRollupFinalizeCommitment = "tx_rollup_finalize_commitment" KindTxRollupRemoveCommitment = "tx_rollup_remove_commitment" KindTxRollupRejection = "tx_rollup_rejection" KindTxRollupDispatchTickets = "tx_rollup_dispatch_tickets" KindTransferTicket = "transfer_ticket" KindEvent = "event" KindVdfRevelation = "vdf_revelation" KindIncreasePaidStorage = "Increase_paid_storage" KindUpdateConsensusKey = "update_consensus_key" KindDrainDelegate = "drain_delegate" )
const ( BigMapActionUpdate = "update" BigMapActionRemove = "remove" BigMapActionAlloc = "alloc" BigMapActionCopy = "copy" )
const ( BalanceUpdatesKindContract = "contract" BalanceUpdatesKindFreezer = "freezer" )
const ( BalanceUpdatesCategoryReward = "rewards" BalanceUpdatesCategoryFees = "fees" BalanceUpdatesCategoryDeposits = "deposits" )
const ( BalanceUpdatesOriginBlock = "block" BalanceUpdatesOriginMigration = "migration" BalanceUpdatesOriginSubsidy = "subsidy" )
const (
HeadBlock = "head"
)
Variables ¶
var (
ErrUnknownKind = errors.New("unknown operation kind")
)
Errors
Functions ¶
func NewTypedOperation ¶
func NewTypedOperation[M OperationConstraint](operation Operation) (M, error)
NewTypedOperation -
Types ¶
type API ¶
type API interface { BlockAPI ChainAPI ContextAPI ConfigAPI GeneralAPI ProtocolsAPI NetworkAPI InjectAPI }
API -
type AccountActivation ¶
type AccountActivation struct { Pkh string `json:"pkh"` Secret string `json:"secret"` Metadata *OnlyBalanceUpdatesMetadata `json:"metadata,omitempty"` }
AccountActivation -
type ActivatedProtocol ¶
type ActivatedProtocol struct { ReplacedProtocol string `json:"replaced_protocol"` ReplacementProtocol string `json:"replacement_protocol"` }
ActivatedProtocol -
type ActivatedUpgrades ¶
type ActivatedUpgrades struct { Level int `json:"level"` ReplacementProtocol string `json:"replacement_protocol"` }
ActivatedUpgrades -
type Applied ¶
type Applied struct { Hash string `json:"hash"` Branch string `json:"branch"` Signature string `json:"signature"` Contents []Content `json:"contents"` Raw stdJSON.RawMessage `json:"raw"` }
Applied -
type BalanceUpdate ¶
type BalanceUpdate struct { Kind string `json:"kind"` Contract string `json:"contract,omitempty"` Change string `json:"change"` Category string `json:"category,omitempty"` Origin string `json:"origin,omitempty"` Delegate string `json:"delegate,omitempty"` Cycle uint64 `json:"cycle,omitempty"` Level uint64 `json:"level,omitempty"` BondID struct { TxRollup string `json:"tx_rollup"` } `json:"bond_id,omitempty"` }
BalanceUpdate -
type Ballot ¶
type Ballot struct { Source string `json:"source"` Period uint64 `json:"period"` Proposal string `json:"proposal"` Ballot string `json:"ballot"` }
Ballot -
type BigMapDiff ¶
type BigMapDiff struct { Action string `json:"action,omitempty"` BigMap string `json:"big_map,omitempty"` KeyHash string `json:"key_hash,omitempty"` Key *stdJSON.RawMessage `json:"key,omitempty"` Value *stdJSON.RawMessage `json:"value,omitempty"` SourceBigMap string `json:"source_big_map,omitempty"` DestinationBigMap string `json:"destination_big_map,omitempty"` KeyType *stdJSON.RawMessage `json:"key_type,omitempty"` ValueType *stdJSON.RawMessage `json:"value_type,omitempty"` }
BigMapDiff is an element of BigMapDiffs
type Block ¶
type Block struct { Protocol string `json:"protocol"` ChainID string `json:"chain_id"` Hash string `json:"hash"` Header Header `json:"header"` Metadata BlockMetadata `json:"metadata"` Operations [][]OperationGroup }
Block -
type BlockAPI ¶
type BlockAPI interface { Blocks(ctx context.Context, args BlocksArgs) ([][]string, error) Block(ctx context.Context, blockID string) (Block, error) Head(ctx context.Context) (Block, error) Header(ctx context.Context, blockID string) (Header, error) HeaderRaw(ctx context.Context, blockID string) (string, error) HeaderShell(ctx context.Context, blockID string) (HeaderShell, error) Metadata(ctx context.Context, blockID string) (BlockMetadata, error) MetadataHash(ctx context.Context, blockID string) (string, error) Hash(ctx context.Context, blockID string) (string, error) ProtocolData(ctx context.Context, blockID string) (ProtocolData, error) ProtocolDataRaw(ctx context.Context, blockID string) (string, error) OperationHashes(ctx context.Context, blockID string) ([][]string, error) OperationMetadataHash(ctx context.Context, blockID string) (string, error) OperationMetadataHashes(ctx context.Context, blockID string) ([][]string, error) Operations(ctx context.Context, blockID string) ([][]OperationGroup, error) OperationsOffset(ctx context.Context, blockID string, listOffset int) ([]OperationGroup, error) Operation(ctx context.Context, blockID string, listOffset, operationOffset int) (OperationGroup, error) BlockProtocols(ctx context.Context, blockID string) (BlockProtocols, error) VotesBallotList(ctx context.Context, blockID string) ([]BlockBallot, error) VotesBallots(ctx context.Context, blockID string) (BlockBallots, error) VotesCurrentPeriod(ctx context.Context, blockID string) (VotingPeriod, error) VotesCurrentProposal(ctx context.Context, blockID string) (string, error) VotesQuorum(ctx context.Context, blockID string) (int, error) VotesListing(ctx context.Context, blockID string) ([]Rolls, error) VotesProposals(ctx context.Context, blockID string) ([]string, error) VotesSuccessorPeriod(ctx context.Context, blockID string) (VotingPeriod, error) VotesTotalVotingPower(ctx context.Context, blockID string) (int, error) }
BlockAPI -
type BlockBallot ¶
BlockBallot -
type BlockBallots ¶
BlockBallots -
type BlockMetadata ¶
type BlockMetadata struct { Protocol string `json:"protocol"` NextProtocol string `json:"next_protocol"` TestChainStatus struct { Status string `json:"status"` } `json:"test_chain_status"` MaxOperationsTTL uint64 `json:"max_operations_ttl"` MaxOperationDataLength uint64 `json:"max_operation_data_length"` MaxBlockHeaderLength uint64 `json:"max_block_header_length"` MaxOperationListLength []struct { MaxSize uint64 `json:"max_size"` MaxOp uint64 `json:"max_op,omitempty"` } `json:"max_operation_list_length"` Baker string `json:"baker"` LevelInfo LevelInfo `json:"level_info"` VotingPeriodInfo struct { VotingPeriod struct { Index uint64 `json:"index"` Kind string `json:"kind"` StartPosition uint64 `json:"start_position"` } `json:"voting_period"` Position uint64 `json:"position"` Remaining uint64 `json:"remaining"` } `json:"voting_period_info"` NonceHash string `json:"nonce_hash"` ConsumedGas string `json:"consumed_gas"` Deactivated []interface{} `json:"deactivated"` BalanceUpdates []BalanceUpdate `json:"balance_updates"` LiquidityBakingEscapeEma uint64 `json:"liquidity_baking_escape_ema"` ImplicitOperationsResults []ImplicitOperationsResult `json:"implicit_operations_results"` }
BlockMetadata -
type BlockProtocols ¶
type BlockProtocols struct { Protocol string `json:"protocol"` NextProtocol string `json:"next_protocol"` }
BlockProtocols -
type BlockRPC ¶
type BlockRPC struct {
// contains filtered or unexported fields
}
BlockRPC -
func (*BlockRPC) BlockProtocols ¶
BlockProtocols -
func (*BlockRPC) HeaderShell ¶
HeaderShell -
func (*BlockRPC) MetadataHash ¶
MetadataHash -
func (*BlockRPC) Operation ¶
func (api *BlockRPC) Operation(ctx context.Context, blockID string, listOffset, operationOffset int) (OperationGroup, error)
Operation -
func (*BlockRPC) OperationHashes ¶
OperationHashes -
func (*BlockRPC) OperationMetadataHash ¶
OperationMetadataHash -
func (*BlockRPC) OperationMetadataHashes ¶
func (api *BlockRPC) OperationMetadataHashes(ctx context.Context, blockID string) ([][]string, error)
OperationMetadataHashes -
func (*BlockRPC) Operations ¶
Operations -
func (*BlockRPC) OperationsOffset ¶
func (api *BlockRPC) OperationsOffset(ctx context.Context, blockID string, listOffset int) ([]OperationGroup, error)
OperationsOffset -
func (*BlockRPC) ProtocolData ¶
ProtocolData -
func (*BlockRPC) ProtocolDataRaw ¶
ProtocolDataRaw -
func (*BlockRPC) VotesBallotList ¶
func (*BlockRPC) VotesBallots ¶
VotesBallots -
func (*BlockRPC) VotesCurrentPeriod ¶
VotesCurrentPeriod -
func (*BlockRPC) VotesCurrentProposal ¶
VotesCurrentProposal -
func (*BlockRPC) VotesListing ¶
VotesListing
func (*BlockRPC) VotesProposals ¶
VotesProposals -
func (*BlockRPC) VotesQuorum ¶
VotesQuorum -
func (*BlockRPC) VotesSuccessorPeriod ¶
func (api *BlockRPC) VotesSuccessorPeriod(ctx context.Context, blockID string) (VotingPeriod, error)
VotesSuccessorPeriod -
type Bootstrapped ¶
type Bootstrapped struct { Bootstrapped bool `json:"bootstrapped"` SyncState string `json:"sync_state"` }
Bootstrapped -
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
Chain -
func (*Chain) InvalidBlock ¶
InvalidBlock -
func (*Chain) InvalidBlocks ¶
func (api *Chain) InvalidBlocks(ctx context.Context) ([]InvalidBlock, error)
InvalidBlocks -
func (*Chain) IsBootstrapped ¶
func (api *Chain) IsBootstrapped(ctx context.Context) (Bootstrapped, error)
IsBootstrapped -
func (*Chain) LevelsCaboose ¶
LevelsCaboose -
func (*Chain) LevelsCheckpoint ¶
func (api *Chain) LevelsCheckpoint(ctx context.Context) (Checkpoint, error)
LevelsCheckpoint -
func (*Chain) LevelsSavepoint ¶
LevelsSavepoint -
func (*Chain) PendingOperations ¶
func (api *Chain) PendingOperations(ctx context.Context) (MempoolResponse, error)
PendingOperations -
type ChainAPI ¶
type ChainAPI interface { ChainID(ctx context.Context) (string, error) InvalidBlocks(ctx context.Context) ([]InvalidBlock, error) InvalidBlock(ctx context.Context, blockHash string) (InvalidBlock, error) IsBootstrapped(ctx context.Context) (Bootstrapped, error) LevelsCaboose(ctx context.Context) (Caboose, error) LevelsCheckpoint(ctx context.Context) (Checkpoint, error) LevelsSavepoint(ctx context.Context) (Savepoint, error) PendingOperations(ctx context.Context) (MempoolResponse, error) }
ChainAPI -
type Checkpoint ¶
Checkpoint -
type CommitmentsAndCiphertexts ¶
type CommitmentsAndCiphertexts struct { Commitments string Ciphertexts SaplingTransactionCiphertext }
CommitmentsAndCiphertexts-
func (CommitmentsAndCiphertexts) MarshalJSON ¶
func (cc CommitmentsAndCiphertexts) MarshalJSON() ([]byte, error)
MarshalJSON -
func (*CommitmentsAndCiphertexts) UnmarshalJSON ¶
func (cc *CommitmentsAndCiphertexts) UnmarshalJSON(data []byte) error
UnmarshalJSON -
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config -
func (*Config) HistoryMode ¶
func (api *Config) HistoryMode(ctx context.Context) (HistoryMode, error)
HistoryMode -
func (*Config) UserActivatedProtocols ¶
func (api *Config) UserActivatedProtocols(ctx context.Context) ([]ActivatedProtocol, error)
UserActivatedProtocols -
func (*Config) UserActivatedUpgrades ¶
func (api *Config) UserActivatedUpgrades(ctx context.Context) ([]ActivatedUpgrades, error)
UserActivatedUpgrades -
type ConfigAPI ¶
type ConfigAPI interface { HistoryMode(ctx context.Context) (HistoryMode, error) UserActivatedProtocols(ctx context.Context) ([]ActivatedProtocol, error) UserActivatedUpgrades(ctx context.Context) ([]ActivatedUpgrades, error) }
ConfigAPI -
type Connection ¶
type Connection struct { PeerID string `json:"peer_id"` Point Point `json:"id_point"` RemoteSocketPort int `json:"remote_socket_port"` AnnouncedVersion ConnectionVersion `json:"announced_version"` LocalMetadata ConnectionMetadata `json:"local_metadata"` RemoteMetadata ConnectionMetadata `json:"remote_metadata"` Incoming bool `json:"incoming"` Private bool `json:"private"` }
Connection -
type ConnectionMetadata ¶
type ConnectionMetadata struct { DisableMempool bool `json:"disable_mempool"` PrivateNode bool `json:"private_node"` }
ConnectionMetadata -
type ConnectionVersion ¶
type ConnectionVersion struct { ChainName string `json:"chain_name"` DistributedDbVersion int `json:"distributed_db_version"` P2PVersion int `json:"p2p_version"` }
ConnectionVersion -
type Constants ¶
type Constants struct { ProofOfWorkNonceSize int64 `json:"proof_of_work_nonce_size"` NonceLength int64 `json:"nonce_length"` MaxAnonOpsPerBlock int64 `json:"max_anon_ops_per_block"` MaxOperationDataLength int64 `json:"max_operation_data_length"` MaxProposalsPerDelegate int64 `json:"max_proposals_per_delegate"` PreservedCycles uint64 `json:"preserved_cycles"` BlocksPerCycle uint64 `json:"blocks_per_cycle"` BlocksPerCommitment int64 `json:"blocks_per_commitment"` BlocksPerRollSnapshot int64 `json:"blocks_per_roll_snapshot"` BlocksPerVotingPeriod int64 `json:"blocks_per_voting_period"` TimeBetweenBlocks Int64StringSlice `json:"time_between_blocks"` EndorsersPerBlock int64 `json:"endorsers_per_block"` HardGasLimitPerOperation int64 `json:"hard_gas_limit_per_operation,string"` HardGasLimitPerBlock int64 `json:"hard_gas_limit_per_block,string"` ProofOfWorkThreshold int64 `json:"proof_of_work_threshold,string"` TokensPerRoll int64 `json:"tokens_per_roll,string"` MichelsonMaximumTypeSize int64 `json:"michelson_maximum_type_size"` SeedNonceRevelationTip int64 `json:"seed_nonce_revelation_tip,string"` OriginationSize int64 `json:"origination_size"` BlockSecurityDeposit int64 `json:"block_security_deposit,string"` EndorsementSecurityDeposit int64 `json:"endorsement_security_deposit,string"` BakingRewardPerEndorsement Int64StringSlice `json:"baking_reward_per_endorsement"` EndorsementReward Int64StringSlice `json:"endorsement_reward"` CostPerByte int64 `json:"cost_per_byte,string"` HardStorageLimitPerOperation int64 `json:"hard_storage_limit_per_operation,string"` TestChainDuration int64 `json:"test_chain_duration,string"` QuorumMin int64 `json:"quorum_min"` QuorumMax int64 `json:"quorum_max"` MinProposalQuorum int64 `json:"min_proposal_quorum"` InitialEndorsers int64 `json:"initial_endorsers"` DelayPerMissingEndorsement int64 `json:"delay_per_missing_endorsement,string"` MinimalBlockDelay int64 `json:"minimal_block_delay,string,omitempty"` }
Constants -
type Content ¶
type Content struct { Kind string `json:"kind"` Body stdJSON.RawMessage `json:"-"` }
Contents -
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context -
func (*Context) ActiveDelegatesWithRolls ¶
ActiveDelegatesWithRolls -
func (*Context) BigMapKey ¶
func (api *Context) BigMapKey(ctx context.Context, blockID string, bigMapID uint64, key string) (interface{}, error)
BigMapKey -
func (*Context) CacheContracts ¶
CacheContracts -
func (*Context) CacheContractsSize ¶
CacheContractsSize -
func (*Context) CacheContractsSizeLimit ¶
CacheContractsSizeLimit -
func (*Context) ContractBalance ¶
ContractBalance -
func (*Context) ContractCounter ¶
ContractCounter -
func (*Context) ContractDelegate ¶
ContractDelegate -
func (*Context) ContractEntrypoint ¶
func (api *Context) ContractEntrypoint(ctx context.Context, blockID, contract, entrypoint string) (stdJSON.RawMessage, error)
ContractEntrypoint -
func (*Context) ContractEntrypoints ¶
func (api *Context) ContractEntrypoints(ctx context.Context, blockID, contract string) (Entrypoints, error)
ContractEntrypoints -
func (*Context) ContractScript ¶
ContractScript -
func (*Context) ContractStorage ¶
func (api *Context) ContractStorage(ctx context.Context, blockID, contract string) (stdJSON.RawMessage, error)
ContractStorage -
func (*Context) DelegateBalance ¶
DelegateBalance -
func (*Context) DelegateContracts ¶
DelegateContracts -
func (*Context) DelegateDeactivated ¶
DelegateDeactivated -
func (*Context) DelegateGracePeriod ¶
DelegateGracePeriod -
func (*Context) DelegateStakingBalance ¶
func (api *Context) DelegateStakingBalance(ctx context.Context, blockID, pkh string) (string, error)
DelegateStakingBalance -
func (*Context) DelegateVotingPower ¶
DelegateVotingPower -
func (*Context) Delegates ¶
func (api *Context) Delegates(ctx context.Context, blockID string, active DelegateType) ([]string, error)
Delegates - Lists all registered delegates. `active` can get `active` or `inactive` values, othewise it skip.
func (*Context) LiquidityBakingCPMMAddress ¶
LiquidityBakingCPMMAddress -
func (*Context) TxRollupCommitment ¶
func (api *Context) TxRollupCommitment(ctx context.Context, blockID, txRollupID, blockLevel string) (*RollupCommitmentForBlock, error)
TxRollupCommitment -
func (*Context) TxRollupInbox ¶
func (api *Context) TxRollupInbox(ctx context.Context, blockID, txRollupID, blockLevel string) (*TxRollupInbox, error)
TxRollupInbox -
func (*Context) TxRollupPendingBondedCommitments ¶
func (api *Context) TxRollupPendingBondedCommitments(ctx context.Context, blockID, txRollupID, pkh string) (uint64, error)
TxRollupPendingBondedCommitments -
func (*Context) TxRollupState ¶
func (api *Context) TxRollupState(ctx context.Context, blockID, txRollupID string) (TxRollupState, error)
TxRollupState -
type ContextAPI ¶
type ContextAPI interface { BigMap(ctx context.Context, blockID string, bigMapID uint64) ([]byte, error) BigMapKey(ctx context.Context, blockID string, bigMapID uint64, key string) (interface{}, error) CacheContracts(ctx context.Context, blockID string) (interface{}, error) CacheContractsSize(ctx context.Context, blockID string) (uint64, error) CacheContractsSizeLimit(ctx context.Context, blockID string) (uint64, error) Constants(ctx context.Context, blockID string) (Constants, error) Contracts(ctx context.Context, blockID string) ([]string, error) Contract(ctx context.Context, blockID, contract string) (ContractInfo, error) ContractBalance(ctx context.Context, blockID, contract string) (string, error) ContractCounter(ctx context.Context, blockID, contract string) (string, error) ContractDelegate(ctx context.Context, blockID, contract string) (string, error) ContractEntrypoints(ctx context.Context, blockID, contract string) (Entrypoints, error) ContractEntrypoint(ctx context.Context, blockID, contract, entrypoint string) (stdJSON.RawMessage, error) ContractScript(ctx context.Context, blockID, contract string) (Script, error) ContractStorage(ctx context.Context, blockID, contract string) (stdJSON.RawMessage, error) Delegates(ctx context.Context, blockID string, active DelegateType) ([]string, error) Delegate(ctx context.Context, blockID, pkh string) (Delegate, error) DelegateDeactivated(ctx context.Context, blockID, pkh string) (bool, error) DelegateBalance(ctx context.Context, blockID, pkh string) (string, error) DelegateContracts(ctx context.Context, blockID, pkh string) ([]string, error) DelegateGracePeriod(ctx context.Context, blockID, pkh string) (int, error) DelegateStakingBalance(ctx context.Context, blockID, pkh string) (string, error) DelegateVotingPower(ctx context.Context, blockID, pkh string) (int, error) ActiveDelegatesWithRolls(ctx context.Context, blockID string) ([]string, error) LiquidityBakingCPMMAddress(ctx context.Context, blockID string) (string, error) TxRollupState(ctx context.Context, blockID, txRollupID string) (TxRollupState, error) TxRollupCommitment(ctx context.Context, blockID, txRollupID, blockLevel string) (*RollupCommitmentForBlock, error) TxRollupInbox(ctx context.Context, blockID, txRollupID, blockLevel string) (*TxRollupInbox, error) TxRollupPendingBondedCommitments(ctx context.Context, blockID, txRollupID, pkh string) (uint64, error) }
ContextAPI -
type ContractInfo ¶
type ContractInfo struct { Balance string `json:"balance"` Delegate string `json:"delegate,omitempty"` Script stdJSON.RawMessage `json:"script,omitempty"` Counter string `json:"counter,omitempty"` Spendable bool `json:"spendable,omitempty"` Manager string `json:"manager,omitempty"` }
ContractInfo -
type Delegate ¶
type Delegate struct { Balance string `json:"balance"` FrozenBalance string `json:"frozen_balance"` FrozenBalanceByCycle FrozenBalanceByCycle `json:"frozen_balance_by_cycle"` StakingBalance string `json:"staking_balance"` DelegatedContracts []string `json:"delegated_contracts"` DelegatedBalance string `json:"delegated_balance"` Deactivated bool `json:"deactivated"` GracePeriod int `json:"grace_period"` VotingPower int `json:"voting_power"` }
Delegate -
type DelegateType ¶
type DelegateType string
DelegateType -
const ( ActiveDelegateType DelegateType = "active" InactiveDelegateType DelegateType = "inactive" AllDelegateType DelegateType = "all" )
delegate types
type Delegation ¶
type Delegation struct { Source string `json:"source"` Fee string `json:"fee"` Counter string `json:"counter"` GasLimit string `json:"gas_limit"` StorageLimit string `json:"storage_limit"` Delegate string `json:"delegate,omitempty"` Metadata *ManagerOperationMetadata `json:"metadata,omitempty"` }
Delegation -
type DoubleBakingEvidence ¶
type DoubleBakingEvidence struct { Bh1 *Header `json:"bh1,omitempty"` Bh2 *Header `json:"bh2,omitempty"` Metadata *OnlyBalanceUpdatesMetadata `json:"metadata,omitempty"` }
DoubleBakingEvidence -
type DoubleEndorsementEvidence ¶
type DoubleEndorsementEvidence struct { Op1 *InlinedEndorsement `json:"op1"` Op2 *InlinedEndorsement `json:"op2"` Metadata *OnlyBalanceUpdatesMetadata `json:"metadata,omitempty"` }
DoubleEndorsementEvidence -
type DoublePreendorsementEvidence ¶
type DoublePreendorsementEvidence struct { Op1 *InlinedEndorsement `json:"op1"` Op2 *InlinedEndorsement `json:"op2"` Metadata *OnlyBalanceUpdatesMetadata `json:"metadata,omitempty"` }
DoublePreendorsementEvidence -
type DrainDelegate ¶
type DrainDelegate struct { Kind string `json:"kind"` ConsensusKey string `json:"consensus_key"` Delegate string `json:"delegate"` Destination string `json:"destination"` Metadata *ManagerOperationMetadata `json:"metadata,omitempty"` }
DrainDelegate -
type Endorsement ¶
type Endorsement struct { Level uint64 `json:"level"` Metadata *EndorsementMetadata `json:"metadata,omitempty"` }
Endorsement -
type EndorsementMetadata ¶
type EndorsementMetadata struct { BalanceUpdates []BalanceUpdate `json:"balance_updates"` Delegate string `json:"delegate"` Slots []int `json:"slots"` }
EndorsementMetadata -
type EndorsementOperation ¶
type EndorsementOperation struct {
Level uint64 `json:"level"`
}
EndorsementOperation -
type EndorsementWithSlot ¶
type EndorsementWithSlot struct { Endorsement EndorsementWithSlotEntity `json:"endorsement"` Slot uint64 `json:"slot"` Metadata *EndorsementMetadata `json:"metadata,omitempty"` }
EndorsementWithSlot -
type EndorsementWithSlotEntity ¶
type EndorsementWithSlotEntity struct { Branch string `json:"branch"` Operation EndorsementOperation `json:"operations"` Signature string `json:"signature"` }
EndorsementWithSlotEntity -
type Entrypoints ¶
type Entrypoints struct {
Entrypoints map[string]stdJSON.RawMessage `json:"entrypoints"`
}
Entrypoints -
type Event ¶
type Event struct { Kind string `json:"kind"` Source string `json:"source"` Nonce int `json:"nonce"` Type stdJSON.RawMessage `json:"type"` Tag string `json:"tag"` Payload stdJSON.RawMessage `json:"payload"` Result OperationResult `json:"result"` }
Event -
type Failed ¶
type Failed struct { Hash string `json:"-"` Protocol string `json:"protocol"` Branch string `json:"branch"` Contents []Content `json:"contents"` Signature string `json:"signature,omitempty"` Error stdJSON.RawMessage `json:"error,omitempty"` Raw stdJSON.RawMessage `json:"raw"` }
Failed -
type FailedMonitor ¶
type FailedMonitor struct { Hash string `json:"hash"` Protocol string `json:"protocol"` Branch string `json:"branch"` Contents []Content `json:"contents"` Signature string `json:"signature,omitempty"` Error stdJSON.RawMessage `json:"error,omitempty"` Raw stdJSON.RawMessage `json:"raw"` }
FailedMonitor -
func (*FailedMonitor) UnmarshalJSON ¶
func (f *FailedMonitor) UnmarshalJSON(data []byte) error
UnmarshalJSON -
type FrozenBalanceByCycle ¶
type FrozenBalanceByCycle struct { Cycle int `json:"cycle"` Deposits string `json:"deposits"` Fees string `json:"fees"` Rewards string `json:"rewards"` }
FrozenBalanceByCycle -
type General ¶
type General struct {
// contains filtered or unexported fields
}
General -
func (*General) StatsMemory ¶
func (api *General) StatsMemory(ctx context.Context) (StatsMemory, error)
StatsMemory -
type GeneralAPI ¶
type GeneralAPI interface { Version(ctx context.Context) (Version, error) StatsGC(ctx context.Context) (StatsGC, error) StatsMemory(ctx context.Context) (StatsMemory, error) URL() string }
GeneralAPI -
type Header ¶
type Header struct { Protocol string `json:"protocol"` ChainID string `json:"chain_id"` Hash string `json:"hash"` Level uint64 `json:"level"` Proto int `json:"proto"` Predecessor string `json:"predecessor"` Timestamp time.Time `json:"timestamp"` ValidationPass int `json:"validation_pass"` OperationsHash string `json:"operations_hash"` Fitness []string `json:"fitness"` Context string `json:"context"` Priority int `json:"priority"` ProofOfWorkNonce string `json:"proof_of_work_nonce"` Signature string `json:"signature"` }
Header -
type HeaderShell ¶
type HeaderShell struct { Level int64 `json:"level"` Proto int `json:"proto"` Predecessor string `json:"predecessor"` Timestamp time.Time `json:"timestamp"` ValidationPass int `json:"validation_pass"` OperationsHash string `json:"operations_hash"` Fitness []string `json:"fitness"` Context string `json:"context"` }
HeaderShell -
type ImplicitOperationsResult ¶
type ImplicitOperationsResult struct { Kind string `json:"kind"` BalanceUpdates []BalanceUpdate `json:"balance_updates"` OriginatedContracts []string `json:"originated_contracts,omitempty"` StorageSize int64 `json:"storage_size,string"` PaidStorageSizeDiff int64 `json:"paid_storage_size_diff,string"` Storage stdJSON.RawMessage `json:"storage,omitempty"` ConsumedGas int64 `json:"consumed_gas,string,omitempty"` ConsumedMilligas int64 `json:"consumed_milligas,string,omitempty"` }
ImplicitOperationsResult -
type Inject ¶
type Inject struct {
// contains filtered or unexported fields
}
func (*Inject) InjectOperation ¶
func (api *Inject) InjectOperation(ctx context.Context, request InjectOperationRequest) (string, error)
InjectOperation -
type InjectAPI ¶
type InjectAPI interface {
InjectOperation(ctx context.Context, request InjectOperationRequest) (string, error)
}
InjectAPI -
type InjectOperationRequest ¶
InjectOperationRequest -
type InlinedEndorsement ¶
type InlinedEndorsement struct { Branch string `json:"branch"` Operations *InlinedEndorsementOperations `json:"operations,omitempty"` Signature string `json:"signature"` }
InlinedEndorsement -
type InlinedEndorsementOperations ¶
InlinedEndorsementOperations -
type InlinedPreendorsement ¶
type InlinedPreendorsement struct { Branch string `json:"branch"` Operations *InlinedPreendorsementOperations `json:"operations,omitempty"` Signature string `json:"signature"` }
InlinedPreendorsement -
type InlinedPreendorsementOperations ¶
type InlinedPreendorsementOperations struct { Kind string `json:"kind"` Slot uint64 `json:"slot"` Level uint64 `json:"level"` Round int64 `json:"round"` BlockPayloadHash string `json:"block_payload_hash"` }
InlinedPreendorsementOperations -
type Int64StringSlice ¶
type Int64StringSlice []int64
Int64StringSlice -
func (*Int64StringSlice) UnmarshalJSON ¶
func (slice *Int64StringSlice) UnmarshalJSON(data []byte) error
UnmarshalJSON -
type InvalidBlock ¶
type InvalidBlock struct { Hash string `json:"block"` Level uint64 `json:"level"` Errors []interface{} `json:"errors"` }
InvalidBlock -
type LastRemovedCommitmentHashes ¶
type LastRemovedCommitmentHashes struct { LastMessageHash string `json:"last_message_hash"` CommitmentHash string `json:"commitment_hash"` }
LastRemovedCommitmentHashes -
type LazyStorageDiff ¶
type LazyStorageDiff struct { Kind string `json:"kind"` ID string `json:"id"` Diff LazyStorageDiffBigMapEntity `json:"diff"` }
LazyStorageDiff -
type LazyStorageDiffBigMapEntity ¶
type LazyStorageDiffBigMapEntity struct { Action string `json:"action"` Updates []LazyStorageDiffUpdate `json:"updates,omitempty"` Source string `json:"source,omitempty"` KeyType *stdJSON.RawMessage `json:"key_type,omitempty"` ValueType *stdJSON.RawMessage `json:"value_type,omitempty"` }
LazyStorageDiffBigMapEntity -
type LazyStorageDiffSaplingEntity ¶
type LazyStorageDiffSaplingEntity struct { Action string `json:"action"` Updates []LazyStorageDiffUpdate `json:"updates,omitempty"` Source string `json:"source,omitempty"` MemoSize uint64 `json:"memo_size,omitempty"` }
LazyStorageDiffSaplingEntity -
type LazyStorageDiffUpdate ¶
type LazyStorageDiffUpdate struct { Action string `json:"action,omitempty"` Key *stdJSON.RawMessage `json:"key,omitempty"` Value *stdJSON.RawMessage `json:"value,omitempty"` }
LazyStorageDiffUpdate -
type LazyStorageDiffUpdatesSaplingState ¶
type LazyStorageDiffUpdatesSaplingState struct { CommitmentsAndCiphertexts CommitmentsAndCiphertexts `json:"commitments_and_ciphertexts,omitempty"` Nullifiers []string `json:"nullifiers,omitempty"` }
LazyStorageDiffUpdatesSaplingState -
type LevelInfo ¶
type LevelInfo struct { Level int64 `json:"level"` LevelPosition int64 `json:"level_position"` Cycle int64 `json:"cycle"` CyclePosition int64 `json:"cycle_position"` ExpectedCommitment bool `json:"expected_commitment"` }
LevelInfo -
type ManagerOperationMetadata ¶
type ManagerOperationMetadata struct { BalanceUpdates []BalanceUpdate `json:"balance_updates"` OperationResult OperationResult `json:"operation_result"` InternalOperationResults []Operation `json:"internal_operation_results,omitempty"` }
ManagerOperationMetadata -
type MempoolResponse ¶
type MempoolResponse struct { Applied []Applied `json:"applied"` Refused []Failed `json:"refused"` BranchRefused []Failed `json:"branch_refused"` BranchDelayed []Failed `json:"branch_delayed"` Outdated []Failed `json:"outdated"` }
MempoolResponse -
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor -
func (*Monitor) BranchDelayed ¶
func (monitor *Monitor) BranchDelayed() <-chan []*FailedMonitor
BranchDelayed -
func (*Monitor) BranchRefused ¶
func (monitor *Monitor) BranchRefused() <-chan []*FailedMonitor
BranchRefused -
func (*Monitor) SubscribeOnMempoolApplied ¶
SubscribeOnMempoolApplied -
func (*Monitor) SubscribeOnMempoolBranchDelayed ¶
SubscribeOnMempoolBranchDelayed -
func (*Monitor) SubscribeOnMempoolBranchRefused ¶
SubscribeOnMempoolBranchRefused -
func (*Monitor) SubscribeOnMempoolOutdated ¶
SubscribeOnMempoolOutdated -
func (*Monitor) SubscribeOnMempoolRefused ¶
SubscribeOnMempoolRefused -
type Network ¶
type Network struct {
// contains filtered or unexported fields
}
Network -
func (*Network) Connection ¶
Connection -
func (*Network) ConnectionVersion ¶
func (api *Network) ConnectionVersion(ctx context.Context) (ConnectionVersion, error)
ConnectionVersion -
func (*Network) Connections ¶
func (api *Network) Connections(ctx context.Context) ([]Connection, error)
Connections -
type NetworkAPI ¶
type NetworkAPI interface { Connections(ctx context.Context) ([]Connection, error) Connection(ctx context.Context, peerID string) (Connection, error) Points(ctx context.Context) ([]NetworkPointWithURI, error) ConnectionVersion(ctx context.Context) (ConnectionVersion, error) }
NetworkAPI -
type NetworkPoint ¶
type NetworkPoint struct { Trusted bool `json:"trusted"` GreylistedUntil string `json:"greylisted_until"` State struct { EventKind string `json:"event_kind"` P2PPeerID string `json:"p2p_peer_id"` } `json:"state"` P2PPeerID string `json:"p2p_peer_id"` LastFailedConnection string `json:"last_failed_connection"` LastRejectedConnection []string `json:"last_rejected_connection"` LastEstablishedConnection []string `json:"last_established_connection"` LastDisconnection []string `json:"last_disconnection"` LastSeen []string `json:"last_seen"` LastMiss string `json:"last_miss"` }
NetworkPoint -
type NetworkPointWithURI ¶
type NetworkPointWithURI struct { URI string NetworkPoint }
NetworkPointWithURI -
func (*NetworkPointWithURI) UnmarshalJSON ¶
func (n *NetworkPointWithURI) UnmarshalJSON(buf []byte) error
UnmarshalJSON -
type OnlyBalanceUpdatesMetadata ¶
type OnlyBalanceUpdatesMetadata struct {
BalanceUpdates []BalanceUpdate `json:"balance_updates"`
}
OnlyBalanceUpdatesMetadata -
type Operation ¶
type Operation struct { Kind string `json:"kind"` Body interface{} `json:"-"` }
Operation -
func (*Operation) UnmarshalJSON ¶
UnmarshalJSON -
type OperationConstraint ¶
type OperationConstraint interface { AccountActivation | Ballot | Delegation | DoubleBakingEvidence | DoubleEndorsementEvidence | Endorsement | EndorsementWithSlot | Origination | Proposal | Reveal | SeedNonceRevelation | Transaction | RegisterGlobalConstant | DoublePreendorsementEvidence | SetDepositsLimit | Preendorsement | Event | VdfRevelation | TxRollupCommit | TxRollupOrigination | TxRollupDispatchTickets | TxRollupFinalizeCommitment | TxRollupRejection | TxRollupRemoveCommitment | TxRollupSubmitBatch | UpdateConsensusKey | DrainDelegate }
OperationConstraint -
type OperationGroup ¶
type OperationGroup struct { Protocol string `json:"protocol"` ChainID string `json:"chain_id"` Hash string `json:"hash"` Branch string `json:"branch"` Signature string `json:"signature"` Contents []Operation `json:"contents"` }
OperationGroup -
type OperationResult ¶
type OperationResult struct { Status string `json:"status"` Storage *stdJSON.RawMessage `json:"storage,omitempty"` BigMapDiff []BigMapDiff `json:"big_map_diff,omitempty"` LazyStorageDiff []LazyStorageDiff `json:"lazy_storage_diff,omitempty"` BalanceUpdates []BalanceUpdate `json:"balance_updates,omitempty"` OriginatedContracts []string `json:"originated_contracts,omitempty"` ConsumedGas string `json:"consumed_gas,omitempty"` ConsumedMilligas string `json:"consumed_milligas,omitempty"` StorageSize string `json:"storage_size,omitempty"` OriginatedRollup string `json:"originated_rollup"` PaidStorageSizeDiff string `json:"paid_storage_size_diff,omitempty"` AllocatedDestinationContract bool `json:"allocated_destination_contract,omitempty"` Level *uint64 `json:"level,omitempty"` Errors []ResultError `json:"errors,omitempty"` }
OperationResult -
type Origination ¶
type Origination struct { Source string `json:"source"` Fee string `json:"fee"` Counter string `json:"counter"` GasLimit string `json:"gas_limit"` StorageLimit string `json:"storage_limit"` Balance string `json:"balance"` Delegate string `json:"delegate,omitempty"` Script stdJSON.RawMessage `json:"script"` ManagerPubkey string `json:"managerPubkey,omitempty"` Metadata *ManagerOperationMetadata `json:"metadata,omitempty"` }
Origination -
type Parameters ¶
type Parameters struct { Entrypoint string `json:"entrypoint"` Value *stdJSON.RawMessage `json:"value"` }
Parameters -
type Preendorsement ¶
type Preendorsement struct { Slot uint64 `json:"slot"` Level uint64 `json:"level"` Round int64 `json:"round"` BlockPayloadHash string `json:"block_payload_hash"` Metadata struct { BalanceUpdates []interface{} `json:"balance_updates"` Delegate string `json:"delegate"` PreendorsementPower int `json:"preendorsement_power"` } `json:"metadata"` }
Preendorsement -
type Proposal ¶
type Proposal struct { Source string `json:"source"` Period uint64 `json:"period"` Proposals []string `json:"proposals"` }
Proposal -
type ProtocolComponent ¶
type ProtocolComponent struct { Name string `json:"name"` Interface string `json:"interface,omitempty"` Implementation string `json:"implementation"` }
ProtocolComponent -
type ProtocolData ¶
type ProtocolData struct { Protocol string `json:"protocol"` Priority int `json:"priority"` ProofOfWorkNonce string `json:"proof_of_work_nonce"` LiquidityBakingEscapeVote bool `json:"liquidity_baking_escape_vote"` Signature string `json:"signature"` }
ProtocolData -
type ProtocolInfo ¶
type ProtocolInfo struct { ExpectedEnvVersion int `json:"expected_env_version"` Components []ProtocolComponent `json:"components"` }
ProtocolInfo -
type Protocols ¶
type Protocols struct {
// contains filtered or unexported fields
}
Protocols -
func (*Protocols) Environment ¶
Environment -
func (*Protocols) GetProtocols ¶
GetProtocols -
type ProtocolsAPI ¶
type ProtocolsAPI interface { GetProtocols(ctx context.Context) ([]string, error) Protocol(ctx context.Context, hash string) (ProtocolInfo, error) Environment(ctx context.Context, hash string) (int, error) }
ProtocolsAPI -
type RegisterGlobalConstant ¶
type RegisterGlobalConstant struct { Source string `json:"source"` Fee string `json:"fee"` Counter string `json:"counter"` GasLimit string `json:"gas_limit"` StorageLimit string `json:"storage_limit"` Value stdJSON.RawMessage `json:"value"` }
RegisterGlobalConstant -
type RequestError ¶
RequestError -
type ResultError ¶
type ResultError struct { Kind string `json:"kind"` ID string `json:"id,omitempty"` With *stdJSON.RawMessage `json:"with,omitempty"` Msg string `json:"msg,omitempty"` Location int64 `json:"location,omitempty"` ContractHandle string `json:"contract_handle,omitempty"` ContractCode *stdJSON.RawMessage `json:"contract_code,omitempty"` }
ResultError -
type Reveal ¶
type Reveal struct { Source string `json:"source"` Fee string `json:"fee"` Counter string `json:"counter"` GasLimit string `json:"gas_limit"` StorageLimit string `json:"storage_limit"` PublicKey string `json:"public_key"` Metadata *ManagerOperationMetadata `json:"metadata,omitempty"` }
Reveal -
type RollupCommitment ¶
type RollupCommitment struct { Level uint64 `json:"level"` Messages RollupCommitmentMessages `json:"messages"` Predecessor *string `json:"predecessor,omitempty"` InboxMerkleRoot string `json:"inbox_merkle_root"` }
RollupCommitment -
type RollupCommitmentForBlock ¶
type RollupCommitmentForBlock struct { Commitment RollupCommitment `json:"commitment"` CommitmentHash string `json:"commitment_hash"` Committer string `json:"committer"` SubmittedAt uint64 `json:"submitted_at"` FinalizedAt uint64 `json:"finalized_at"` }
RollupCommitmentForBlock -
type RollupCommitmentMessages ¶
type RollupCommitmentMessages struct { Count uint64 `json:"count"` Root string `json:"root"` LastMessageResultHash string `json:"last_message_result_hash"` }
RollupCommitmentMessages -
type RollupStateCommitment ¶
type RollupStateCommitment struct { Next *uint64 `json:"next,omitempty"` Newest *uint64 `json:"newest,omitempty"` Oldest *uint64 `json:"oldest,omitempty"` }
RollupStateCommitment -
type SaplingTransactionCiphertext ¶
type SaplingTransactionCiphertext struct { CV string `json:"cv"` EPK string `json:"epk"` PayloadEnc string `json:"payload_enc"` NonceEnc string `json:"nonce_enc"` PayloadOut string `json:"payload_out"` NonceOut string `json:"nonce_out"` }
SaplingTransactionCiphertext -
type Script ¶
type Script struct { Code stdJSON.RawMessage `json:"code"` Strage stdJSON.RawMessage `json:"storage"` }
Script -
type SeedNonceRevelation ¶
type SeedNonceRevelation struct { Level uint64 `json:"level"` Nonce string `json:"nonce"` Metadata *OnlyBalanceUpdatesMetadata `json:"metadata,omitempty"` }
SeedNonceRevelation -
type SetDepositsLimit ¶
type SetDepositsLimit struct { Kind string `json:"kind"` Source string `json:"source"` Fee string `json:"fee"` Counter string `json:"counter"` GasLimit string `json:"gas_limit"` StorageLimit string `json:"storage_limit"` Limit *string `json:"limit,omitempty"` Metadata *ManagerOperationMetadata `json:"metadata"` }
SetDepositsLimit -
type StatsGC ¶
type StatsGC struct { MinorWords int64 `json:"minor_words"` PromotedWords int64 `json:"promoted_words"` MajorWords int64 `json:"major_words"` MinorCollections int64 `json:"minor_collections"` MajorCollections int64 `json:"major_collections"` ForcedMajorCollections int64 `json:"forced_major_collections"` HeapWords int64 `json:"heap_words"` HeapChunks int64 `json:"heap_chunks"` LiveWords int64 `json:"live_words"` LiveBlocks int64 `json:"live_blocks"` FreeWords int64 `json:"free_words"` FreeBlocks int64 `json:"free_blocks"` LargestFree int64 `json:"largest_free"` Fragments int64 `json:"fragments"` Compactions int64 `json:"compactions"` TopHeapWords int64 `json:"top_heap_words"` StackSize int64 `json:"stack_size"` }
StatsGC -
type StatsMemory ¶
type StatsMemory struct { PageSize int64 `json:"page_size"` Size string `json:"size"` Resident string `json:"resident"` Text string `json:"text"` Lib string `json:"lib"` Data string `json:"data"` Dt string `json:"dt"` }
StatsMemory -
type TicketsInfo ¶
type TicketsInfo struct { Contents stdJSON.RawMessage `json:"contents"` Ty stdJSON.RawMessage `json:"ty"` Ticketer string `json:"ticketer"` Amount string `json:"amount"` Claimer string `json:"claimer"` }
TicketsInfo -
type Transaction ¶
type Transaction struct { Source string `json:"source"` Fee string `json:"fee"` Counter string `json:"counter"` GasLimit string `json:"gas_limit"` StorageLimit string `json:"storage_limit"` Amount string `json:"amount"` Destination string `json:"destination"` Parameters *Parameters `json:"parameters,omitempty"` Metadata *ManagerOperationMetadata `json:"metadata,omitempty"` }
Transaction -
type TxRollupCommit ¶
type TxRollupCommit struct { Kind string `json:"kind"` Source string `json:"source"` Fee string `json:"fee"` Counter string `json:"counter"` GasLimit string `json:"gas_limit"` StorageLimit string `json:"storage_limit"` Rollup string `json:"rollup"` Commitment TxRollupCommitment `json:"commitment"` Metadata *ManagerOperationMetadata `json:"metadata,omitempty"` }
TxRollupCommit -
type TxRollupCommitment ¶
type TxRollupCommitment struct { Level uint64 `json:"level"` Messages []string `json:"messages"` Predecessor string `json:"predecessor"` InboxMerkleRoot string `json:"inbox_merkle_root"` }
TxRollupCommitment -
type TxRollupDispatchTickets ¶
type TxRollupDispatchTickets struct { Kind string `json:"kind"` Source string `json:"source"` Fee string `json:"fee"` Counter string `json:"counter"` GasLimit string `json:"gas_limit"` StorageLimit string `json:"storage_limit"` TxRollup string `json:"tx_rollup"` Level int `json:"level"` ContextHash string `json:"context_hash"` MessageIndex int `json:"message_index"` MessageResultPath []string `json:"message_result_path"` TicketsInfo []TicketsInfo `json:"tickets_info"` Metadata *ManagerOperationMetadata `json:"metadata,omitempty"` }
TxRollupDispatchTickets -
type TxRollupFinalizeCommitment ¶
type TxRollupFinalizeCommitment struct { Kind string `json:"kind"` Source string `json:"source"` Fee string `json:"fee"` Counter string `json:"counter"` GasLimit string `json:"gas_limit"` StorageLimit string `json:"storage_limit"` Rollup string `json:"rollup"` Metadata *ManagerOperationMetadata `json:"metadata,omitempty"` }
TxRollupFinalizeCommitment -
type TxRollupInbox ¶
type TxRollupInbox struct { InboxLength uint64 `json:"inbox_length"` CumulatedSize uint64 `json:"cumulated_size"` MerkleRoot string `json:"merkle_root"` }
TxRollupInbox -
type TxRollupOrigination ¶
type TxRollupOrigination struct { Kind string `json:"kind"` Source string `json:"source"` Fee string `json:"fee"` Counter string `json:"counter"` GasLimit string `json:"gas_limit"` StorageLimit string `json:"storage_limit"` TxRollupOrigination any `json:"tx_rollup_origination"` Metadata *ManagerOperationMetadata `json:"metadata,omitempty"` }
TxRollupOrigination -
type TxRollupRejection ¶
type TxRollupRejection struct { Kind string `json:"kind"` Source string `json:"source"` Fee string `json:"fee"` Counter string `json:"counter"` GasLimit string `json:"gas_limit"` StorageLimit string `json:"storage_limit"` Rollup string `json:"rollup"` Level int `json:"level"` Message struct { Batch string `json:"batch"` } `json:"message"` MessagePosition string `json:"message_position"` MessagePath []string `json:"message_path"` MessageResultHash string `json:"message_result_hash"` MessageResultPath []string `json:"message_result_path"` PreviousMessageResult struct { ContextHash string `json:"context_hash"` WithdrawListHash string `json:"withdraw_list_hash"` } `json:"previous_message_result"` PreviousMessageResultPath []string `json:"previous_message_result_path"` Proof struct { Version uint64 `json:"version"` Before stdJSON.RawMessage `json:"before"` After stdJSON.RawMessage `json:"after"` State stdJSON.RawMessage `json:"proof"` } `json:"proof"` Metadata struct { BalanceUpdates []struct { Kind string `json:"kind"` Contract string `json:"contract,omitempty"` Change string `json:"change"` Origin string `json:"origin"` Category string `json:"category,omitempty"` } `json:"balance_updates"` OperationResult struct { Status string `json:"status"` BalanceUpdates []struct { Kind string `json:"kind"` Category string `json:"category,omitempty"` Contract string `json:"contract,omitempty"` BondID struct { TxRollup string `json:"tx_rollup"` } `json:"bond_id,omitempty"` Change string `json:"change"` Origin string `json:"origin"` } `json:"balance_updates"` ConsumedGas string `json:"consumed_gas"` ConsumedMilligas string `json:"consumed_milligas"` } `json:"operation_result"` } `json:"metadata"` }
TxRollupRejection -
type TxRollupRemoveCommitment ¶
type TxRollupRemoveCommitment struct { Kind string `json:"kind"` Source string `json:"source"` Fee string `json:"fee"` Counter string `json:"counter"` GasLimit string `json:"gas_limit"` StorageLimit string `json:"storage_limit"` Rollup string `json:"rollup"` Metadata *ManagerOperationMetadata `json:"metadata,omitempty"` }
TxRollupRemoveCommitment -
type TxRollupState ¶
type TxRollupState struct { LastRemovedCommitmentHashes *LastRemovedCommitmentHashes `json:"last_removed_commitment_hashes,omitempty"` FinalizedCommitments RollupStateCommitment `json:"finalized_commitments"` UnfinalizedCommitments RollupStateCommitment `json:"unfinalized_commitments"` UncommittedInboxes RollupStateCommitment `json:"uncommitted_inboxes"` CommitmentNewestHash *string `json:"commitment_newest_hash,omitempty"` TezosHeadLevel *uint64 `json:"tezos_head_level,omitempty"` BurnPerByte stdJSON.Number `json:"burn_per_byte,omitempty"` AllocatedStorage stdJSON.Number `json:"allocated_storage"` OccupiedStorage stdJSON.Number `json:"occupied_storage"` InboxEma uint64 `json:"inbox_ema"` CommitmentsWatermark *uint64 `json:"commitments_watermark,omitempty"` }
TxRollupState -
type TxRollupSubmitBatch ¶
type TxRollupSubmitBatch struct { Kind string `json:"kind"` Source string `json:"source"` Fee string `json:"fee"` Counter string `json:"counter"` GasLimit string `json:"gas_limit"` StorageLimit string `json:"storage_limit"` Rollup string `json:"rollup"` Content string `json:"content"` Metadata *ManagerOperationMetadata `json:"metadata,omitempty"` }
TxRollupSubmitBatch -
type UpdateConsensusKey ¶
type UpdateConsensusKey struct { Kind string `json:"kind"` Source string `json:"source"` Fee string `json:"fee"` Counter string `json:"counter"` GasLimit string `json:"gas_limit"` StorageLimit string `json:"storage_limit"` Pk string `json:"pk"` Metadata *ManagerOperationMetadata `json:"metadata,omitempty"` }
UpdateConsensusKey -
type VdfRevelation ¶
type VdfRevelation struct { Kind string `json:"kind"` Solution []string `json:"solution"` Metadata *ManagerOperationMetadata `json:"metadata,omitempty"` }
VdfRevelation -
type Version ¶
type Version struct { Version struct { Major int `json:"major"` Minor int `json:"minor"` AdditionalInfo string `json:"additional_info"` } `json:"version"` NetworkVersion struct { ChainName string `json:"chain_name"` DistributedDbVersion int `json:"distributed_db_version"` P2PVersion int `json:"p2p_version"` } `json:"network_version"` CommitInfo struct { CommitHash string `json:"commit_hash"` CommitDate string `json:"commit_date"` } `json:"commit_info"` }
Version -
Source Files ¶
- api.go
- block_api.go
- block_data.go
- chain_api.go
- chain_data.go
- client.go
- config_api.go
- config_data.go
- consts.go
- context_api.go
- context_data.go
- errors.go
- general.go
- general_data.go
- inject_api.go
- inject_data.go
- monitor.go
- network_api.go
- network_data.go
- operations.go
- protocols_api.go
- protocols_data.go
- request.go