Documentation ¶
Index ¶
- Constants
- Variables
- func IsManager(kind string) bool
- 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)
- type ContextAPI
- type ContractInfo
- type Delegate
- type DelegateType
- type Delegation
- type DoubleBakingEvidence
- type DoubleEndorsementEvidence
- type DoublePreendorsementEvidence
- type Endorsement
- type EndorsementMetadata
- type EndorsementOperation
- type EndorsementWithSlot
- type EndorsementWithSlotEntity
- type Entrypoints
- 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 InternalOperationResults
- type InvalidBlock
- 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
- func (op Operation) AccountActivation() (AccountActivation, error)
- func (op Operation) Ballot() (Ballot, error)
- func (op Operation) Delegation() (Delegation, error)
- func (op Operation) DoubleBakingEvidence() (DoubleBakingEvidence, error)
- func (op Operation) DoubleEndorsementEvidence() (DoubleEndorsementEvidence, error)
- func (op Operation) Endorsement() (Endorsement, error)
- func (op Operation) EndorsementWithSlot() (EndorsementWithSlot, error)
- func (op Operation) Origination() (Origination, error)
- func (op Operation) Preendorsement() (Preendorsement, error)
- func (op Operation) Proposal() (Proposal, error)
- func (op Operation) RegisterGlobalConstant() (RegisterGlobalConstant, error)
- func (op Operation) Reveal() (Reveal, error)
- func (op Operation) SeedNonceRevelation() (SeedNonceRevelation, error)
- func (op Operation) SetDepositsLimit() (SetDepositsLimit, error)
- func (op Operation) Transaction() (Transaction, error)
- func (op *Operation) UnmarshalJSON(data []byte) error
- 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 SaplingTransactionCiphertext
- type Savepoint
- type Script
- type SeedNonceRevelation
- type SetDepositsLimit
- type StatsGC
- type StatsMemory
- type Transaction
- 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" )
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 ¶
Types ¶
type API ¶ added in v0.2.0
type API interface { BlockAPI ChainAPI ContextAPI ConfigAPI GeneralAPI ProtocolsAPI NetworkAPI InjectAPI }
API -
type AccountActivation ¶ added in v0.1.33
type AccountActivation struct { Pkh string `json:"pkh"` Secret string `json:"secret"` Metadata *OnlyBalanceUpdatesMetadata `json:"metadata,omitempty"` }
AccountActivation -
type ActivatedProtocol ¶ added in v0.2.0
type ActivatedProtocol struct { ReplacedProtocol string `json:"replaced_protocol"` ReplacementProtocol string `json:"replacement_protocol"` }
ActivatedProtocol -
type ActivatedUpgrades ¶ added in v0.2.0
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 -
func (*Applied) UnmarshalJSON ¶ added in v0.1.26
UnmarshalJSON -
type BalanceUpdate ¶ added in v0.1.33
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"` }
BalanceUpdate -
type Ballot ¶ added in v0.1.33
type Ballot struct { Source string `json:"source"` Period uint64 `json:"period"` Proposal string `json:"proposal"` Ballot string `json:"ballot"` }
Ballot -
type BigMapDiff ¶ added in v0.1.33
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 ¶ added in v0.2.0
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 ¶ added in v0.2.0
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 ¶ added in v0.2.0
BlockBallot -
type BlockBallots ¶ added in v0.2.0
BlockBallots -
type BlockMetadata ¶ added in v0.2.0
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 ¶ added in v0.2.0
type BlockProtocols struct { Protocol string `json:"protocol"` NextProtocol string `json:"next_protocol"` }
BlockProtocols -
type BlockRPC ¶ added in v0.2.0
type BlockRPC struct {
// contains filtered or unexported fields
}
BlockRPC -
func NewMainBlockRPC ¶ added in v0.2.0
NewMainBlockRPC -
func (*BlockRPC) BlockProtocols ¶ added in v0.2.0
BlockProtocols -
func (*BlockRPC) HeaderShell ¶ added in v0.2.0
HeaderShell -
func (*BlockRPC) MetadataHash ¶ added in v0.2.0
MetadataHash -
func (*BlockRPC) Operation ¶ added in v0.2.0
func (api *BlockRPC) Operation(ctx context.Context, blockID string, listOffset, operationOffset int) (OperationGroup, error)
Operation -
func (*BlockRPC) OperationHashes ¶ added in v0.2.0
OperationHashes -
func (*BlockRPC) OperationMetadataHash ¶ added in v0.2.0
OperationMetadataHash -
func (*BlockRPC) OperationMetadataHashes ¶ added in v0.2.0
func (api *BlockRPC) OperationMetadataHashes(ctx context.Context, blockID string) ([][]string, error)
OperationMetadataHashes -
func (*BlockRPC) Operations ¶ added in v0.2.0
Operations -
func (*BlockRPC) OperationsOffset ¶ added in v0.2.0
func (api *BlockRPC) OperationsOffset(ctx context.Context, blockID string, listOffset int) ([]OperationGroup, error)
OperationsOffset -
func (*BlockRPC) ProtocolData ¶ added in v0.2.0
ProtocolData -
func (*BlockRPC) ProtocolDataRaw ¶ added in v0.2.0
ProtocolDataRaw -
func (*BlockRPC) VotesBallotList ¶ added in v0.2.0
func (*BlockRPC) VotesBallots ¶ added in v0.2.0
VotesBallots -
func (*BlockRPC) VotesCurrentPeriod ¶ added in v0.2.0
VotesCurrentPeriod -
func (*BlockRPC) VotesCurrentProposal ¶ added in v0.2.0
VotesCurrentProposal -
func (*BlockRPC) VotesListing ¶ added in v0.2.0
VotesListing
func (*BlockRPC) VotesProposals ¶ added in v0.2.0
VotesProposals -
func (*BlockRPC) VotesQuorum ¶ added in v0.2.0
VotesQuorum -
func (*BlockRPC) VotesSuccessorPeriod ¶ added in v0.2.0
func (api *BlockRPC) VotesSuccessorPeriod(ctx context.Context, blockID string) (VotingPeriod, error)
VotesSuccessorPeriod -
type BlocksArgs ¶ added in v0.2.0
BlocksArgs -
type Bootstrapped ¶ added in v0.2.0
type Bootstrapped struct { Bootstrapped bool `json:"bootstrapped"` SyncState string `json:"sync_state"` }
Bootstrapped -
type Chain ¶ added in v0.2.0
type Chain struct {
// contains filtered or unexported fields
}
Chain -
func (*Chain) InvalidBlock ¶ added in v0.2.0
InvalidBlock -
func (*Chain) InvalidBlocks ¶ added in v0.2.0
func (api *Chain) InvalidBlocks(ctx context.Context) ([]InvalidBlock, error)
InvalidBlocks -
func (*Chain) IsBootstrapped ¶ added in v0.2.0
func (api *Chain) IsBootstrapped(ctx context.Context) (Bootstrapped, error)
IsBootstrapped -
func (*Chain) LevelsCaboose ¶ added in v0.2.0
LevelsCaboose -
func (*Chain) LevelsCheckpoint ¶ added in v0.2.0
func (api *Chain) LevelsCheckpoint(ctx context.Context) (Checkpoint, error)
LevelsCheckpoint -
func (*Chain) LevelsSavepoint ¶ added in v0.2.0
LevelsSavepoint -
func (*Chain) PendingOperations ¶ added in v0.2.0
func (api *Chain) PendingOperations(ctx context.Context) (MempoolResponse, error)
PendingOperations -
type ChainAPI ¶ added in v0.2.0
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 ¶ added in v0.2.0
Checkpoint -
type CommitmentsAndCiphertexts ¶ added in v0.1.33
type CommitmentsAndCiphertexts struct { Commitments string Ciphertexts SaplingTransactionCiphertext }
CommitmentsAndCiphertexts-
func (CommitmentsAndCiphertexts) MarshalJSON ¶ added in v0.1.33
func (cc CommitmentsAndCiphertexts) MarshalJSON() ([]byte, error)
MarshalJSON -
func (*CommitmentsAndCiphertexts) UnmarshalJSON ¶ added in v0.1.33
func (cc *CommitmentsAndCiphertexts) UnmarshalJSON(data []byte) error
UnmarshalJSON -
type Config ¶ added in v0.2.0
type Config struct {
// contains filtered or unexported fields
}
Config -
func (*Config) HistoryMode ¶ added in v0.2.0
func (api *Config) HistoryMode(ctx context.Context) (HistoryMode, error)
HistoryMode -
func (*Config) UserActivatedProtocols ¶ added in v0.2.0
func (api *Config) UserActivatedProtocols(ctx context.Context) ([]ActivatedProtocol, error)
UserActivatedProtocols -
func (*Config) UserActivatedUpgrades ¶ added in v0.2.0
func (api *Config) UserActivatedUpgrades(ctx context.Context) ([]ActivatedUpgrades, error)
UserActivatedUpgrades -
type ConfigAPI ¶ added in v0.2.0
type ConfigAPI interface { HistoryMode(ctx context.Context) (HistoryMode, error) UserActivatedProtocols(ctx context.Context) ([]ActivatedProtocol, error) UserActivatedUpgrades(ctx context.Context) ([]ActivatedUpgrades, error) }
ConfigAPI -
type Connection ¶ added in v0.2.0
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 ¶ added in v0.2.0
type ConnectionMetadata struct { DisableMempool bool `json:"disable_mempool"` PrivateNode bool `json:"private_node"` }
ConnectionMetadata -
type ConnectionVersion ¶ added in v0.2.0
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 ¶ added in v0.2.0
type Context struct {
// contains filtered or unexported fields
}
Context -
func (*Context) ActiveDelegatesWithRolls ¶ added in v0.2.0
ActiveDelegatesWithRolls -
func (*Context) BigMapKey ¶ added in v0.2.0
func (api *Context) BigMapKey(ctx context.Context, blockID string, bigMapID uint64, key string) (interface{}, error)
BigMapKey -
func (*Context) CacheContracts ¶ added in v0.2.0
CacheContracts -
func (*Context) CacheContractsSize ¶ added in v0.2.0
CacheContractsSize -
func (*Context) CacheContractsSizeLimit ¶ added in v0.2.0
CacheContractsSizeLimit -
func (*Context) ContractBalance ¶ added in v0.2.0
ContractBalance -
func (*Context) ContractCounter ¶ added in v0.2.0
ContractCounter -
func (*Context) ContractDelegate ¶ added in v0.2.0
ContractDelegate -
func (*Context) ContractEntrypoint ¶ added in v0.2.0
func (api *Context) ContractEntrypoint(ctx context.Context, blockID, contract, entrypoint string) (stdJSON.RawMessage, error)
ContractEntrypoint -
func (*Context) ContractEntrypoints ¶ added in v0.2.0
func (api *Context) ContractEntrypoints(ctx context.Context, blockID, contract string) (Entrypoints, error)
ContractEntrypoints -
func (*Context) ContractScript ¶ added in v0.2.0
ContractScript -
func (*Context) ContractStorage ¶ added in v0.2.0
func (api *Context) ContractStorage(ctx context.Context, blockID, contract string) (stdJSON.RawMessage, error)
ContractStorage -
func (*Context) DelegateBalance ¶ added in v0.2.0
DelegateBalance -
func (*Context) DelegateContracts ¶ added in v0.2.0
DelegateContracts -
func (*Context) DelegateDeactivated ¶ added in v0.2.0
DelegateDeactivated -
func (*Context) DelegateGracePeriod ¶ added in v0.2.0
DelegateGracePeriod -
func (*Context) DelegateStakingBalance ¶ added in v0.2.0
func (api *Context) DelegateStakingBalance(ctx context.Context, blockID, pkh string) (string, error)
DelegateStakingBalance -
func (*Context) DelegateVotingPower ¶ added in v0.2.0
DelegateVotingPower -
type ContextAPI ¶ added in v0.2.0
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) }
ContextAPI -
type ContractInfo ¶ added in v0.2.0
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 ¶ added in v0.2.0
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 ¶ added in v0.2.0
type DelegateType string
DelegateType -
const ( ActiveDelegateType DelegateType = "active" InactiveDelegateType DelegateType = "inactive" AllDelegateType DelegateType = "all" )
delegate types
type Delegation ¶ added in v0.1.33
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 ¶ added in v0.1.33
type DoubleBakingEvidence struct { Bh1 *Header `json:"bh1,omitempty"` Bh2 *Header `json:"bh2,omitempty"` Metadata *OnlyBalanceUpdatesMetadata `json:"metadata,omitempty"` }
DoubleBakingEvidence -
type DoubleEndorsementEvidence ¶ added in v0.1.33
type DoubleEndorsementEvidence struct { Op1 *InlinedEndorsement `json:"op1"` Op2 *InlinedEndorsement `json:"op2"` Metadata *OnlyBalanceUpdatesMetadata `json:"metadata,omitempty"` }
DoubleEndorsementEvidence -
type DoublePreendorsementEvidence ¶ added in v0.2.0
type DoublePreendorsementEvidence struct { Op1 *InlinedEndorsement `json:"op1"` Op2 *InlinedEndorsement `json:"op2"` Metadata *OnlyBalanceUpdatesMetadata `json:"metadata,omitempty"` }
DoublePreendorsementEvidence -
type Endorsement ¶ added in v0.1.1
type Endorsement struct { Level uint64 `json:"level"` Metadata *EndorsementMetadata `json:"metadata,omitempty"` }
Endorsement -
type EndorsementMetadata ¶ added in v0.1.33
type EndorsementMetadata struct { BalanceUpdates []BalanceUpdate `json:"balance_updates"` Delegate string `json:"delegate"` Slots []int `json:"slots"` }
EndorsementMetadata -
type EndorsementOperation ¶ added in v0.1.1
type EndorsementOperation struct {
Level uint64 `json:"level"`
}
EndorsementOperation -
type EndorsementWithSlot ¶ added in v0.1.1
type EndorsementWithSlot struct { Endorsement EndorsementWithSlotEntity `json:"endorsement"` Slot uint64 `json:"slot"` Metadata *EndorsementMetadata `json:"metadata,omitempty"` }
EndorsementWithSlot -
type EndorsementWithSlotEntity ¶ added in v0.1.33
type EndorsementWithSlotEntity struct { Branch string `json:"branch"` Operation EndorsementOperation `json:"operations"` Signature string `json:"signature"` }
EndorsementWithSlotEntity -
type Entrypoints ¶ added in v0.2.0
type Entrypoints struct {
Entrypoints map[string]stdJSON.RawMessage `json:"entrypoints"`
}
Entrypoints -
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 ¶ added in v0.1.38
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 ¶ added in v0.1.38
func (f *FailedMonitor) UnmarshalJSON(data []byte) error
UnmarshalJSON -
type FrozenBalanceByCycle ¶ added in v0.2.0
type FrozenBalanceByCycle struct { Cycle int `json:"cycle"` Deposits string `json:"deposits"` Fees string `json:"fees"` Rewards string `json:"rewards"` }
FrozenBalanceByCycle -
type General ¶ added in v0.2.0
type General struct {
// contains filtered or unexported fields
}
General -
func (*General) StatsMemory ¶ added in v0.2.0
func (api *General) StatsMemory(ctx context.Context) (StatsMemory, error)
StatsMemory -
type GeneralAPI ¶ added in v0.2.0
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 ¶ added in v0.2.0
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 HistoryMode ¶ added in v0.2.0
type HistoryMode struct {
Mode string `json:"history_mode"`
}
HistoryMode -
type ImplicitOperationsResult ¶ added in v0.2.0
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 ¶ added in v0.2.0
type Inject struct {
// contains filtered or unexported fields
}
func (*Inject) InjectOperation ¶ added in v0.2.0
func (api *Inject) InjectOperation(ctx context.Context, request InjectOperationRequest) (string, error)
InjectOperation -
type InjectAPI ¶ added in v0.2.0
type InjectAPI interface {
InjectOperation(ctx context.Context, request InjectOperationRequest) (string, error)
}
InjectAPI -
type InjectOperationRequest ¶ added in v0.1.33
InjectOperationRequest -
type InlinedEndorsement ¶ added in v0.1.33
type InlinedEndorsement struct { Branch string `json:"branch"` Operations *InlinedEndorsementOperations `json:"operations,omitempty"` Signature string `json:"signature"` }
InlinedEndorsement -
type InlinedEndorsementOperations ¶ added in v0.1.33
InlinedEndorsementOperations -
type InlinedPreendorsement ¶ added in v0.2.0
type InlinedPreendorsement struct { Branch string `json:"branch"` Operations *InlinedPreendorsementOperations `json:"operations,omitempty"` Signature string `json:"signature"` }
InlinedPreendorsement -
type InlinedPreendorsementOperations ¶ added in v0.2.0
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 InternalOperationResults ¶ added in v0.1.33
type InternalOperationResults struct { Kind string `json:"kind"` Source string `json:"source"` Nonce uint64 `json:"nonce"` Amount string `json:"amount,omitempty"` PublicKey string `json:"public_key,omitempty"` Destination string `json:"destination,omitempty"` Balance string `json:"balance,omitempty"` Delegate string `json:"delegate,omitempty"` Script *stdJSON.RawMessage `json:"script,omitempty"` Parameters *Parameters `json:"paramaters,omitempty"` Result OperationResult `json:"result"` }
InternalOperationResults -
type InvalidBlock ¶ added in v0.2.0
type InvalidBlock struct { Hash string `json:"block"` Level uint64 `json:"level"` Errors []interface{} `json:"errors"` }
InvalidBlock -
type LazyStorageDiff ¶ added in v0.1.33
type LazyStorageDiff struct { Kind string `json:"kind"` ID string `json:"id"` Diff LazyStorageDiffBigMapEntity `json:"diff"` }
LazyStorageDiff -
type LazyStorageDiffBigMapEntity ¶ added in v0.1.33
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 ¶ added in v0.1.33
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 ¶ added in v0.1.33
type LazyStorageDiffUpdate struct { Action string `json:"action,omitempty"` Key *stdJSON.RawMessage `json:"key,omitempty"` Value *stdJSON.RawMessage `json:"value,omitempty"` }
LazyStorageDiffUpdate -
type LazyStorageDiffUpdatesSaplingState ¶ added in v0.1.33
type LazyStorageDiffUpdatesSaplingState struct { CommitmentsAndCiphertexts CommitmentsAndCiphertexts `json:"commitments_and_ciphertexts,omitempty"` Nullifiers []string `json:"nullifiers,omitempty"` }
LazyStorageDiffUpdatesSaplingState -
type LevelInfo ¶ added in v0.2.0
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 ¶ added in v0.1.33
type ManagerOperationMetadata struct { BalanceUpdates []BalanceUpdate `json:"balance_updates"` OperationResult OperationResult `json:"operation_result"` InternalOperationResults []InternalOperationResults `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 ¶ added in v0.1.36
type Monitor struct {
// contains filtered or unexported fields
}
Monitor -
func (*Monitor) BranchDelayed ¶ added in v0.1.36
func (monitor *Monitor) BranchDelayed() <-chan []*FailedMonitor
BranchDelayed -
func (*Monitor) BranchRefused ¶ added in v0.1.36
func (monitor *Monitor) BranchRefused() <-chan []*FailedMonitor
BranchRefused -
func (*Monitor) Outdated ¶ added in v0.2.11
func (monitor *Monitor) Outdated() <-chan []*FailedMonitor
Outdated -
func (*Monitor) Refused ¶ added in v0.1.36
func (monitor *Monitor) Refused() <-chan []*FailedMonitor
Refused -
func (*Monitor) SubscribeOnMempoolApplied ¶ added in v0.1.36
SubscribeOnMempoolApplied -
func (*Monitor) SubscribeOnMempoolBranchDelayed ¶ added in v0.1.36
SubscribeOnMempoolBranchDelayed -
func (*Monitor) SubscribeOnMempoolBranchRefused ¶ added in v0.1.36
SubscribeOnMempoolBranchRefused -
func (*Monitor) SubscribeOnMempoolOutdated ¶ added in v0.2.11
SubscribeOnMempoolOutdated -
func (*Monitor) SubscribeOnMempoolRefused ¶ added in v0.1.36
SubscribeOnMempoolRefused -
type Network ¶ added in v0.2.0
type Network struct {
// contains filtered or unexported fields
}
Network -
func (*Network) Connection ¶ added in v0.2.0
Connection -
func (*Network) ConnectionVersion ¶ added in v0.2.0
func (api *Network) ConnectionVersion(ctx context.Context) (ConnectionVersion, error)
ConnectionVersion -
func (*Network) Connections ¶ added in v0.2.0
func (api *Network) Connections(ctx context.Context) ([]Connection, error)
Connections -
type NetworkAPI ¶ added in v0.2.0
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 ¶ added in v0.1.57
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 ¶ added in v0.1.57
type NetworkPointWithURI struct { URI string NetworkPoint }
NetworkPointWithURI -
func (*NetworkPointWithURI) UnmarshalJSON ¶ added in v0.1.57
func (n *NetworkPointWithURI) UnmarshalJSON(buf []byte) error
UnmarshalJSON -
type OnlyBalanceUpdatesMetadata ¶ added in v0.1.33
type OnlyBalanceUpdatesMetadata struct {
BalanceUpdates []BalanceUpdate `json:"balance_updates"`
}
OnlyBalanceUpdatesMetadata -
type Operation ¶ added in v0.1.33
type Operation struct { Kind string `json:"kind"` Body interface{} `json:"-"` }
Operation -
func (Operation) AccountActivation ¶ added in v0.1.33
func (op Operation) AccountActivation() (AccountActivation, error)
AccountActivation -
func (Operation) Delegation ¶ added in v0.1.33
func (op Operation) Delegation() (Delegation, error)
Delegation -
func (Operation) DoubleBakingEvidence ¶ added in v0.1.33
func (op Operation) DoubleBakingEvidence() (DoubleBakingEvidence, error)
DoubleBakingEvidence -
func (Operation) DoubleEndorsementEvidence ¶ added in v0.1.33
func (op Operation) DoubleEndorsementEvidence() (DoubleEndorsementEvidence, error)
DoubleEndorsementEvidence -
func (Operation) Endorsement ¶ added in v0.1.33
func (op Operation) Endorsement() (Endorsement, error)
Endorsement -
func (Operation) EndorsementWithSlot ¶ added in v0.1.33
func (op Operation) EndorsementWithSlot() (EndorsementWithSlot, error)
EndorsementWithSlot -
func (Operation) Origination ¶ added in v0.1.33
func (op Operation) Origination() (Origination, error)
Origination -
func (Operation) Preendorsement ¶ added in v0.2.0
func (op Operation) Preendorsement() (Preendorsement, error)
Preendorsement -
func (Operation) RegisterGlobalConstant ¶ added in v0.1.33
func (op Operation) RegisterGlobalConstant() (RegisterGlobalConstant, error)
Reveal -
func (Operation) SeedNonceRevelation ¶ added in v0.1.33
func (op Operation) SeedNonceRevelation() (SeedNonceRevelation, error)
SeedNonceRevelation -
func (Operation) SetDepositsLimit ¶ added in v0.2.0
func (op Operation) SetDepositsLimit() (SetDepositsLimit, error)
SetDepositsLimit -
func (Operation) Transaction ¶ added in v0.1.33
func (op Operation) Transaction() (Transaction, error)
Transaction -
func (*Operation) UnmarshalJSON ¶ added in v0.1.33
UnmarshalJSON -
type OperationGroup ¶ added in v0.1.33
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 ¶ added in v0.1.33
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"` StorageSize string `json:"storage_size,omitempty"` PaidStorageSizeDiff string `json:"paid_storage_size_diff,omitempty"` AllocatedDestinationContract bool `json:"allocated_destination_contract,omitempty"` Errors []ResultError `json:"errors,omitempty"` }
OperationResult -
type Origination ¶ added in v0.1.33
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 ¶ added in v0.1.33
type Parameters struct { Entrypoint string `json:"entrypoint"` Value *stdJSON.RawMessage `json:"value"` }
Parameters -
type Preendorsement ¶ added in v0.2.0
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 ¶ added in v0.1.33
type Proposal struct { Source string `json:"source"` Period uint64 `json:"period"` Proposals []string `json:"proposals"` }
Proposal -
type ProtocolComponent ¶ added in v0.2.0
type ProtocolComponent struct { Name string `json:"name"` Interface string `json:"interface,omitempty"` Implementation string `json:"implementation"` }
ProtocolComponent -
type ProtocolData ¶ added in v0.2.0
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 ¶ added in v0.2.0
type ProtocolInfo struct { ExpectedEnvVersion int `json:"expected_env_version"` Components []ProtocolComponent `json:"components"` }
ProtocolInfo -
type Protocols ¶ added in v0.2.0
type Protocols struct {
// contains filtered or unexported fields
}
Protocols -
func (*Protocols) Environment ¶ added in v0.2.0
Environment -
func (*Protocols) GetProtocols ¶ added in v0.2.0
GetProtocols -
type ProtocolsAPI ¶ added in v0.2.0
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 ¶ added in v0.1.33
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 ¶ added in v0.1.36
RequestError -
type ResultError ¶ added in v0.1.33
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 ¶ added in v0.1.33
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 SaplingTransactionCiphertext ¶ added in v0.1.33
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 ¶ added in v0.2.0
type Script struct { Code stdJSON.RawMessage `json:"code"` Strage stdJSON.RawMessage `json:"storage"` }
Script -
type SeedNonceRevelation ¶ added in v0.1.33
type SeedNonceRevelation struct { Level uint64 `json:"level"` Nonce string `json:"nonce"` Metadata *OnlyBalanceUpdatesMetadata `json:"metadata,omitempty"` }
SeedNonceRevelation -
type SetDepositsLimit ¶ added in v0.2.0
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 ¶ added in v0.2.0
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 ¶ added in v0.2.0
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 Transaction ¶ added in v0.1.33
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 Version ¶ added in v0.2.0
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