proto_012_Psithaca

package
v2.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivateAccount

type ActivateAccount struct {
	PKH    *tz.Ed25519PublicKeyHash `json:"pkh"`
	Secret *tz.Bytes20              `json:"secret"`
}

func (*ActivateAccount) MarshalJSON

func (self *ActivateAccount) MarshalJSON() ([]byte, error)

func (*ActivateAccount) OperationKind

func (*ActivateAccount) OperationKind() string

type ActivateAccountContentsAndResult

type ActivateAccountContentsAndResult struct {
	ActivateAccount
	Metadata BalanceUpdates `json:"metadata"`
}

func (*ActivateAccountContentsAndResult) GetMetadata

func (op *ActivateAccountContentsAndResult) GetMetadata() any

func (*ActivateAccountContentsAndResult) MarshalJSON

func (self *ActivateAccountContentsAndResult) MarshalJSON() ([]byte, error)

func (*ActivateAccountContentsAndResult) OperationContentsAndResult

func (*ActivateAccountContentsAndResult) OperationContentsAndResult()

type BalanceUpdate

type BalanceUpdate struct {
	Contents BalanceUpdateContents    `json:"contents"`
	Change   int64                    `json:"change"`
	Origin   core.BalanceUpdateOrigin `json:"origin"`
}

func (*BalanceUpdate) GetChange

func (b *BalanceUpdate) GetChange() int64

func (*BalanceUpdate) GetContents

func (b *BalanceUpdate) GetContents() core.BalanceUpdateContents

func (*BalanceUpdate) GetOrigin

func (b *BalanceUpdate) GetOrigin() core.BalanceUpdateOrigin

type BalanceUpdateBakingBonuses

type BalanceUpdateBakingBonuses struct{}

func (BalanceUpdateBakingBonuses) BalanceUpdateCategory

func (BalanceUpdateBakingBonuses) BalanceUpdateCategory() string

func (BalanceUpdateBakingBonuses) BalanceUpdateKind

func (*BalanceUpdateBakingBonuses) MarshalJSON

func (self *BalanceUpdateBakingBonuses) MarshalJSON() ([]byte, error)

type BalanceUpdateBakingRewards

type BalanceUpdateBakingRewards struct{}

func (BalanceUpdateBakingRewards) BalanceUpdateCategory

func (BalanceUpdateBakingRewards) BalanceUpdateCategory() string

func (BalanceUpdateBakingRewards) BalanceUpdateKind

func (*BalanceUpdateBakingRewards) MarshalJSON

func (self *BalanceUpdateBakingRewards) MarshalJSON() ([]byte, error)

type BalanceUpdateBlockFees

type BalanceUpdateBlockFees struct{}

func (BalanceUpdateBlockFees) BalanceUpdateCategory

func (BalanceUpdateBlockFees) BalanceUpdateCategory() string

func (BalanceUpdateBlockFees) BalanceUpdateKind

func (BalanceUpdateBlockFees) BalanceUpdateKind() core.BalanceUpdateKind

func (*BalanceUpdateBlockFees) MarshalJSON

func (self *BalanceUpdateBlockFees) MarshalJSON() ([]byte, error)

type BalanceUpdateBootstrap

type BalanceUpdateBootstrap struct{}

func (BalanceUpdateBootstrap) BalanceUpdateCategory

func (BalanceUpdateBootstrap) BalanceUpdateCategory() string

func (BalanceUpdateBootstrap) BalanceUpdateKind

func (BalanceUpdateBootstrap) BalanceUpdateKind() core.BalanceUpdateKind

func (*BalanceUpdateBootstrap) MarshalJSON

func (self *BalanceUpdateBootstrap) MarshalJSON() ([]byte, error)

type BalanceUpdateBurned

type BalanceUpdateBurned struct{}

func (BalanceUpdateBurned) BalanceUpdateCategory

func (BalanceUpdateBurned) BalanceUpdateCategory() string

func (BalanceUpdateBurned) BalanceUpdateKind

func (BalanceUpdateBurned) BalanceUpdateKind() core.BalanceUpdateKind

func (*BalanceUpdateBurned) MarshalJSON

func (self *BalanceUpdateBurned) MarshalJSON() ([]byte, error)

type BalanceUpdateCommitments

type BalanceUpdateCommitments struct {
	Committer *tz.BlindedPublicKeyHash `json:"committer"`
}

func (BalanceUpdateCommitments) BalanceUpdateCategory

func (BalanceUpdateCommitments) BalanceUpdateCategory() string

func (BalanceUpdateCommitments) BalanceUpdateKind

func (BalanceUpdateCommitments) BalanceUpdateKind() core.BalanceUpdateKind

func (*BalanceUpdateCommitments) MarshalJSON

func (self *BalanceUpdateCommitments) MarshalJSON() ([]byte, error)

type BalanceUpdateContents

type BalanceUpdateContents interface {
	core.BalanceUpdateContents
}

type BalanceUpdateContract

type BalanceUpdateContract struct {
	Contract core.ContractID `json:"contract"`
}

func (BalanceUpdateContract) BalanceUpdateCategory

func (BalanceUpdateContract) BalanceUpdateCategory() string

func (BalanceUpdateContract) BalanceUpdateKind

func (BalanceUpdateContract) BalanceUpdateKind() core.BalanceUpdateKind

func (BalanceUpdateContract) GetContract

func (c BalanceUpdateContract) GetContract() core.ContractID

func (*BalanceUpdateContract) MarshalJSON

func (self *BalanceUpdateContract) MarshalJSON() ([]byte, error)

type BalanceUpdateDeposits

type BalanceUpdateDeposits struct {
	Delegate tz.PublicKeyHash `json:"delegate"`
}

func (BalanceUpdateDeposits) BalanceUpdateCategory

func (BalanceUpdateDeposits) BalanceUpdateCategory() string

func (BalanceUpdateDeposits) BalanceUpdateKind

func (BalanceUpdateDeposits) BalanceUpdateKind() core.BalanceUpdateKind

func (*BalanceUpdateDeposits) MarshalJSON

func (self *BalanceUpdateDeposits) MarshalJSON() ([]byte, error)

type BalanceUpdateDoubleSigningEvidenceRewards

type BalanceUpdateDoubleSigningEvidenceRewards struct{}

func (BalanceUpdateDoubleSigningEvidenceRewards) BalanceUpdateCategory

func (BalanceUpdateDoubleSigningEvidenceRewards) BalanceUpdateCategory() string

func (BalanceUpdateDoubleSigningEvidenceRewards) BalanceUpdateKind

func (*BalanceUpdateDoubleSigningEvidenceRewards) MarshalJSON

func (self *BalanceUpdateDoubleSigningEvidenceRewards) MarshalJSON() ([]byte, error)

type BalanceUpdateDoubleSigningPunishments

type BalanceUpdateDoubleSigningPunishments struct{}

func (BalanceUpdateDoubleSigningPunishments) BalanceUpdateCategory

func (BalanceUpdateDoubleSigningPunishments) BalanceUpdateCategory() string

func (BalanceUpdateDoubleSigningPunishments) BalanceUpdateKind

func (*BalanceUpdateDoubleSigningPunishments) MarshalJSON

func (self *BalanceUpdateDoubleSigningPunishments) MarshalJSON() ([]byte, error)

type BalanceUpdateEndorsingRewards

type BalanceUpdateEndorsingRewards struct{}

func (BalanceUpdateEndorsingRewards) BalanceUpdateCategory

func (BalanceUpdateEndorsingRewards) BalanceUpdateCategory() string

func (BalanceUpdateEndorsingRewards) BalanceUpdateKind

func (*BalanceUpdateEndorsingRewards) MarshalJSON

func (self *BalanceUpdateEndorsingRewards) MarshalJSON() ([]byte, error)

type BalanceUpdateInitialCommitments

type BalanceUpdateInitialCommitments struct{}

func (BalanceUpdateInitialCommitments) BalanceUpdateCategory

func (BalanceUpdateInitialCommitments) BalanceUpdateCategory() string

func (BalanceUpdateInitialCommitments) BalanceUpdateKind

func (*BalanceUpdateInitialCommitments) MarshalJSON

func (self *BalanceUpdateInitialCommitments) MarshalJSON() ([]byte, error)

type BalanceUpdateInvoice

type BalanceUpdateInvoice struct{}

func (BalanceUpdateInvoice) BalanceUpdateCategory

func (BalanceUpdateInvoice) BalanceUpdateCategory() string

func (BalanceUpdateInvoice) BalanceUpdateKind

func (BalanceUpdateInvoice) BalanceUpdateKind() core.BalanceUpdateKind

func (*BalanceUpdateInvoice) MarshalJSON

func (self *BalanceUpdateInvoice) MarshalJSON() ([]byte, error)

type BalanceUpdateLegacyDeposits

type BalanceUpdateLegacyDeposits BalanceUpdateLegacyRewards

func (*BalanceUpdateLegacyDeposits) BalanceUpdateCategory

func (*BalanceUpdateLegacyDeposits) BalanceUpdateCategory() string

func (*BalanceUpdateLegacyDeposits) BalanceUpdateKind

func (*BalanceUpdateLegacyDeposits) BalanceUpdateKind() core.BalanceUpdateKind

func (*BalanceUpdateLegacyDeposits) MarshalJSON

func (self *BalanceUpdateLegacyDeposits) MarshalJSON() ([]byte, error)

type BalanceUpdateLegacyFees

type BalanceUpdateLegacyFees BalanceUpdateLegacyRewards

func (*BalanceUpdateLegacyFees) BalanceUpdateCategory

func (*BalanceUpdateLegacyFees) BalanceUpdateCategory() string

func (*BalanceUpdateLegacyFees) BalanceUpdateKind

func (*BalanceUpdateLegacyFees) BalanceUpdateKind() core.BalanceUpdateKind

func (*BalanceUpdateLegacyFees) MarshalJSON

func (self *BalanceUpdateLegacyFees) MarshalJSON() ([]byte, error)

type BalanceUpdateLegacyRewards

type BalanceUpdateLegacyRewards struct {
	Delegate tz.PublicKeyHash `json:"delegate"`
	Cycle    int32            `json:"cycle"`
}

func (*BalanceUpdateLegacyRewards) BalanceUpdateCategory

func (*BalanceUpdateLegacyRewards) BalanceUpdateCategory() string

func (*BalanceUpdateLegacyRewards) BalanceUpdateKind

func (*BalanceUpdateLegacyRewards) BalanceUpdateKind() core.BalanceUpdateKind

func (*BalanceUpdateLegacyRewards) MarshalJSON

func (self *BalanceUpdateLegacyRewards) MarshalJSON() ([]byte, error)

type BalanceUpdateLiquidityBakingSubsidies

type BalanceUpdateLiquidityBakingSubsidies struct{}

func (BalanceUpdateLiquidityBakingSubsidies) BalanceUpdateCategory

func (BalanceUpdateLiquidityBakingSubsidies) BalanceUpdateCategory() string

func (BalanceUpdateLiquidityBakingSubsidies) BalanceUpdateKind

func (*BalanceUpdateLiquidityBakingSubsidies) MarshalJSON

func (self *BalanceUpdateLiquidityBakingSubsidies) MarshalJSON() ([]byte, error)

type BalanceUpdateLostEndorsingRewards

type BalanceUpdateLostEndorsingRewards struct {
	Delegate      tz.PublicKeyHash `json:"delegate"`
	Participation bool             `json:"participation"`
	Revelation    bool             `json:"revelation"`
}

func (*BalanceUpdateLostEndorsingRewards) BalanceUpdateCategory

func (*BalanceUpdateLostEndorsingRewards) BalanceUpdateCategory() string

func (*BalanceUpdateLostEndorsingRewards) BalanceUpdateKind

func (*BalanceUpdateLostEndorsingRewards) MarshalJSON

func (self *BalanceUpdateLostEndorsingRewards) MarshalJSON() ([]byte, error)

type BalanceUpdateMinted

type BalanceUpdateMinted struct{}

func (BalanceUpdateMinted) BalanceUpdateCategory

func (BalanceUpdateMinted) BalanceUpdateCategory() string

func (BalanceUpdateMinted) BalanceUpdateKind

func (BalanceUpdateMinted) BalanceUpdateKind() core.BalanceUpdateKind

func (*BalanceUpdateMinted) MarshalJSON

func (self *BalanceUpdateMinted) MarshalJSON() ([]byte, error)

type BalanceUpdateNonceRevelationRewards

type BalanceUpdateNonceRevelationRewards struct{}

func (BalanceUpdateNonceRevelationRewards) BalanceUpdateCategory

func (BalanceUpdateNonceRevelationRewards) BalanceUpdateCategory() string

func (BalanceUpdateNonceRevelationRewards) BalanceUpdateKind

func (*BalanceUpdateNonceRevelationRewards) MarshalJSON

func (self *BalanceUpdateNonceRevelationRewards) MarshalJSON() ([]byte, error)

type BalanceUpdateStorageFees

type BalanceUpdateStorageFees struct{}

func (BalanceUpdateStorageFees) BalanceUpdateCategory

func (BalanceUpdateStorageFees) BalanceUpdateCategory() string

func (BalanceUpdateStorageFees) BalanceUpdateKind

func (BalanceUpdateStorageFees) BalanceUpdateKind() core.BalanceUpdateKind

func (*BalanceUpdateStorageFees) MarshalJSON

func (self *BalanceUpdateStorageFees) MarshalJSON() ([]byte, error)

type BalanceUpdates

type BalanceUpdates struct {
	BalanceUpdates []*BalanceUpdate `tz:"dyn" json:"balance_updates"`
}

func (*BalanceUpdates) GetBalanceUpdates

func (b *BalanceUpdates) GetBalanceUpdates() []core.BalanceUpdate

type Ballot

type Ballot struct {
	Source   tz.PublicKeyHash `json:"source"`
	Period   int32            `json:"period"`
	Proposal *tz.ProtocolHash `json:"proposal"`
	Ballot   core.BallotKind  `json:"ballot"`
}

func (*Ballot) GetMetadata

func (op *Ballot) GetMetadata() any

func (*Ballot) GetSource

func (op *Ballot) GetSource() core.TransactionDestination

func (*Ballot) MarshalJSON

func (self *Ballot) MarshalJSON() ([]byte, error)

func (*Ballot) OperationContentsAndResult

func (*Ballot) OperationContentsAndResult()

func (*Ballot) OperationKind

func (*Ballot) OperationKind() string

type BlockHeader

type BlockHeader struct {
	UnsignedBlockHeader
	Signature *tz.GenericSignature `json:"signature"`
}

func (*BlockHeader) GetSignature

func (header *BlockHeader) GetSignature() (tz.Signature, error)

type BlockHeaderInfo

type BlockHeaderInfo struct {
	ChainID *tz.ChainID   `json:"chain_id"`
	Hash    *tz.BlockHash `json:"hash"`
	BlockHeader
}

func (*BlockHeaderInfo) GetChainID

func (block *BlockHeaderInfo) GetChainID() *tz.ChainID

func (*BlockHeaderInfo) GetHash

func (block *BlockHeaderInfo) GetHash() *tz.BlockHash

type BlockInfo

type BlockInfo struct {
	ChainID    *tz.ChainID                          `json:"chain_id"`
	Hash       *tz.BlockHash                        `json:"hash"`
	Header     BlockHeader                          `tz:"dyn" json:"header"`
	Metadata   tz.Option[BlockMetadata]             `json:"metadata"`
	Operations []core.OperationsList[GroupContents] `tz:"dyn" json:"operations"`
}

func (*BlockInfo) GetChainID

func (block *BlockInfo) GetChainID() *tz.ChainID

func (*BlockInfo) GetHash

func (block *BlockInfo) GetHash() *tz.BlockHash

func (*BlockInfo) GetHeader

func (block *BlockInfo) GetHeader() core.BlockHeader

func (*BlockInfo) GetMetadata

func (block *BlockInfo) GetMetadata() tz.Option[core.BlockMetadata]

func (*BlockInfo) GetOperations

func (block *BlockInfo) GetOperations() [][]core.OperationsGroup

type BlockMetadata

type BlockMetadata struct {
	BlockMetadataContents `tz:"dyn"`
}

func (*BlockMetadata) GetBaker

func (m *BlockMetadata) GetBaker() tz.PublicKeyHash

func (*BlockMetadata) GetBakerConsensusKey

func (m *BlockMetadata) GetBakerConsensusKey() tz.Option[tz.PublicKeyHash]

func (*BlockMetadata) GetBalanceUpdates

func (m *BlockMetadata) GetBalanceUpdates() (updates []core.BalanceUpdate)

func (*BlockMetadata) GetConsumedGas

func (m *BlockMetadata) GetConsumedGas() tz.Option[tz.BigUint]

func (*BlockMetadata) GetConsumedMilligas

func (m *BlockMetadata) GetConsumedMilligas() tz.Option[tz.BigUint]

func (*BlockMetadata) GetDeactivated

func (m *BlockMetadata) GetDeactivated() []tz.PublicKeyHash

func (*BlockMetadata) GetImplicitOperationsResults

func (m *BlockMetadata) GetImplicitOperationsResults() []core.SuccessfulManagerOperationResult

func (*BlockMetadata) GetLevelInfo

func (m *BlockMetadata) GetLevelInfo() *core.LevelInfo

func (*BlockMetadata) GetMetadataHeader

func (m *BlockMetadata) GetMetadataHeader() *core.BlockMetadataHeader

func (*BlockMetadata) GetNonceHash

func (m *BlockMetadata) GetNonceHash() tz.Option[*tz.CycleNonceHash]

func (*BlockMetadata) GetProposer

func (m *BlockMetadata) GetProposer() tz.PublicKeyHash

func (*BlockMetadata) GetProposerConsensusKey

func (m *BlockMetadata) GetProposerConsensusKey() tz.Option[tz.PublicKeyHash]

func (*BlockMetadata) GetVotingPeriodInfo

func (m *BlockMetadata) GetVotingPeriodInfo() *core.VotingPeriodInfo

type BlockMetadataContents

type BlockMetadataContents struct {
	core.BlockMetadataHeader
	Proposer                  tz.PublicKeyHash                   `json:"proposer"`
	Baker                     tz.PublicKeyHash                   `json:"baker"`
	LevelInfo                 core.LevelInfo                     `json:"level_info"`
	VotingPeriodInfo          core.VotingPeriodInfo              `json:"voting_period_info"`
	NonceHash                 tz.Option1[*tz.CycleNonceHash]     `json:"nonce_hash"`
	ConsumedGas               tz.BigUint                         `json:"consumed_gas"`
	Deactivated               []tz.PublicKeyHash                 `tz:"dyn" json:"deactivated"`
	BalanceUpdates            []*BalanceUpdate                   `tz:"dyn" json:"balance_updates"`
	LiquidityBakingEscapeEMA  int32                              `json:"liquidity_baking_escape_ema"`
	ImplicitOperationsResults []SuccessfulManagerOperationResult `tz:"dyn" json:"implicit_operations_results"`
}

type Constants

type Constants struct {
	ProofOfWorkNonceSize                             uint8             `json:"proof_of_work_nonce_size"`
	NonceLength                                      uint8             `json:"nonce_length"`
	MaxAnonOpsPerBlock                               uint8             `json:"max_anon_ops_per_block"`
	MaxOperationDataLength                           int32             `json:"max_operation_data_length"`
	MaxProposalsPerDelegate                          uint8             `json:"max_proposals_per_delegate"`
	MaxMichelineNodeCount                            int32             `json:"max_micheline_node_count"`
	MaxMichelineBytesLimit                           int32             `json:"max_micheline_bytes_limit"`
	MaxAllowedGlobalConstantsDepth                   int32             `json:"max_allowed_global_constants_depth"`
	CacheLayout                                      []int64           `tz:"dyn" json:"cache_layout"`
	MichelsonMaximumTypeSize                         uint16            `json:"michelson_maximum_type_size"`
	PreservedCycles                                  uint8             `json:"preserved_cycles"`
	BlocksPerCycle                                   int32             `json:"blocks_per_cycle"`
	BlocksPerCommitment                              int32             `json:"blocks_per_commitment"`
	BlocksPerStakeSnapshot                           int32             `json:"blocks_per_stake_snapshot"`
	BlocksPerVotingPeriod                            int32             `json:"blocks_per_voting_period"`
	HardGasLimitPerOperation                         tz.BigInt         `json:"hard_gas_limit_per_operation"`
	HardGasLimitPerBlock                             tz.BigInt         `json:"hard_gas_limit_per_block"`
	ProofOfWorkThreshold                             int64             `json:"proof_of_work_threshold"`
	TokensPerRoll                                    tz.BigUint        `json:"tokens_per_roll"`
	SeedNonceRevelationTip                           tz.BigUint        `json:"seed_nonce_revelation_tip"`
	OriginationSize                                  int32             `json:"origination_size"`
	BakingRewardFixedPortion                         tz.BigUint        `json:"baking_reward_fixed_portion"`
	BakingRewardBonusPerSlot                         tz.BigUint        `json:"baking_reward_bonus_per_slot"`
	EndorsingRewardPerSlot                           tz.BigUint        `json:"endorsing_reward_per_slot"`
	CostPerByte                                      tz.BigUint        `json:"cost_per_byte"`
	HardStorageLimitPerOperation                     tz.BigInt         `json:"hard_storage_limit_per_operation"`
	QuorumMin                                        int32             `json:"quorum_min"`
	QuorumMax                                        int32             `json:"quorum_max"`
	MinProposalQuorum                                int32             `json:"min_proposal_quorum"`
	LiquidityBakingSubsidy                           tz.BigUint        `json:"liquidity_baking_subsidy"`
	LiquidityBakingSunsetLevel                       int32             `json:"liquidity_baking_sunset_level"`
	LiquidityBakingEscapeEmaThreshold                int32             `json:"liquidity_baking_escape_ema_threshold"`
	MaxOperationsTimeToLive                          int16             `json:"max_operations_time_to_live"`
	MinimalBlockDelay                                int64             `json:"minimal_block_delay"`
	DelayIncrementPerRound                           int64             `json:"delay_increment_per_round"`
	ConsensusCommitteeSize                           int32             `json:"consensus_committee_size"`
	ConsensusThreshold                               int32             `json:"consensus_threshold"`
	MinimalParticipationRatio                        core.Rat          `json:"minimal_participation_ratio"`
	MaxSlashingPeriod                                int32             `json:"max_slashing_period"`
	FrozenDepositsPercentage                         int32             `json:"frozen_deposits_percentage"`
	DoubleBakingPunishment                           tz.BigUint        `json:"double_baking_punishment"`
	RatioOfFrozenDepositsSlashedPerDoubleEndorsement core.Rat          `json:"ratio_of_frozen_deposits_slashed_per_double_endorsement"`
	DelegateSelection                                DelegateSelection `json:"delegate_selection"`
}

func (*Constants) GetBakingRewardBonusPerSlot

func (c *Constants) GetBakingRewardBonusPerSlot() tz.BigUint

func (*Constants) GetBakingRewardFixedPortion

func (c *Constants) GetBakingRewardFixedPortion() tz.BigUint

func (*Constants) GetBlocksPerCommitment

func (c *Constants) GetBlocksPerCommitment() int32

func (*Constants) GetBlocksPerCycle

func (c *Constants) GetBlocksPerCycle() int32

func (*Constants) GetBlocksPerStakeSnapshot

func (c *Constants) GetBlocksPerStakeSnapshot() int32

func (*Constants) GetConsensusCommitteeSize

func (c *Constants) GetConsensusCommitteeSize() int32

func (*Constants) GetConsensusThreshold

func (c *Constants) GetConsensusThreshold() int32

func (*Constants) GetCostPerByte

func (c *Constants) GetCostPerByte() tz.BigUint

func (*Constants) GetDelayIncrementPerRound

func (c *Constants) GetDelayIncrementPerRound() int64

func (*Constants) GetDoubleBakingPunishment

func (c *Constants) GetDoubleBakingPunishment() tz.BigUint

func (*Constants) GetEndorsingRewardPerSlot

func (c *Constants) GetEndorsingRewardPerSlot() tz.BigUint

func (*Constants) GetFrozenDepositsPercentage

func (c *Constants) GetFrozenDepositsPercentage() int32

func (*Constants) GetHardGasLimitPerBlock

func (c *Constants) GetHardGasLimitPerBlock() tz.BigInt

func (*Constants) GetHardGasLimitPerOperation

func (c *Constants) GetHardGasLimitPerOperation() tz.BigInt

func (*Constants) GetHardStorageLimitPerOperation

func (c *Constants) GetHardStorageLimitPerOperation() tz.BigInt

func (*Constants) GetLiquidityBakingSubsidy

func (c *Constants) GetLiquidityBakingSubsidy() tz.BigUint

func (*Constants) GetMaxAllowedGlobalConstantsDepth

func (c *Constants) GetMaxAllowedGlobalConstantsDepth() int32

func (*Constants) GetMaxAnonOpsPerBlock

func (c *Constants) GetMaxAnonOpsPerBlock() uint8

func (*Constants) GetMaxMichelineBytesLimit

func (c *Constants) GetMaxMichelineBytesLimit() int32

func (*Constants) GetMaxMichelineNodeCount

func (c *Constants) GetMaxMichelineNodeCount() int32

func (*Constants) GetMaxOperationDataLength

func (c *Constants) GetMaxOperationDataLength() int32

func (*Constants) GetMaxOperationsTimeToLive

func (c *Constants) GetMaxOperationsTimeToLive() int16

func (*Constants) GetMaxProposalsPerDelegate

func (c *Constants) GetMaxProposalsPerDelegate() uint8

func (*Constants) GetMaxSlashingPeriod

func (c *Constants) GetMaxSlashingPeriod() int32

func (*Constants) GetMichelsonMaximumTypeSize

func (c *Constants) GetMichelsonMaximumTypeSize() uint16

func (*Constants) GetMinProposalQuorum

func (c *Constants) GetMinProposalQuorum() int32

func (*Constants) GetMinimalBlockDelay

func (c *Constants) GetMinimalBlockDelay() int64

func (*Constants) GetMinimalParticipationRatio

func (c *Constants) GetMinimalParticipationRatio() *core.Rat

func (*Constants) GetNonceLength

func (c *Constants) GetNonceLength() uint8

func (*Constants) GetOriginationSize

func (c *Constants) GetOriginationSize() int32

func (*Constants) GetPreservedCycles

func (c *Constants) GetPreservedCycles() uint8

func (*Constants) GetProofOfWorkNonceSize

func (c *Constants) GetProofOfWorkNonceSize() uint8

func (*Constants) GetProofOfWorkThreshold

func (c *Constants) GetProofOfWorkThreshold() int64

func (*Constants) GetQuorumMax

func (c *Constants) GetQuorumMax() int32

func (*Constants) GetQuorumMin

func (c *Constants) GetQuorumMin() int32

func (*Constants) GetRatioOfFrozenDepositsSlashedPerDoubleEndorsement

func (c *Constants) GetRatioOfFrozenDepositsSlashedPerDoubleEndorsement() *core.Rat

func (*Constants) GetSeedNonceRevelationTip

func (c *Constants) GetSeedNonceRevelationTip() tz.BigUint

type ConsumedGasResult

type ConsumedGasResult interface {
	core.ManagerOperationResult
}

type ConsumedGasResultContents

type ConsumedGasResultContents struct {
	ConsumedGas      tz.BigUint `json:"consumed_gas"`
	ConsumedMilligas tz.BigUint `json:"consumed_milligas"`
}

func (*ConsumedGasResultContents) GetConsumedMilligas

func (r *ConsumedGasResultContents) GetConsumedMilligas() tz.BigUint

type DelegateInfo

type DelegateInfo struct {
	FullBalance           tz.BigUint            `json:"full_balance"`
	CurrentFrozenDeposits tz.BigUint            `json:"current_frozen_deposits"`
	FrozenDeposits        tz.BigUint            `json:"frozen_deposits"`
	StakingBalance        tz.BigUint            `json:"staking_balance"`
	FrozenDepositsLimit   tz.Option[tz.BigUint] `json:"frozen_deposits_limit"`
	DelegatedContracts    []core.ContractID     `tz:"dyn" json:"delegated_contracts"`
	DelegatedBalance      tz.BigUint            `json:"delegated_balance"`
	Deactivated           bool                  `json:"deactivated"`
	GracePeriod           int32                 `json:"grace_period"`
	VotingPower           int32                 `json:"voting_power"`
}

func (*DelegateInfo) GetActiveConsensusKey

func (d *DelegateInfo) GetActiveConsensusKey() tz.Option[tz.PublicKeyHash]

func (*DelegateInfo) GetCurrentBallot

func (d *DelegateInfo) GetCurrentBallot() tz.Option[core.BallotKind]

func (*DelegateInfo) GetCurrentFrozenDeposits

func (d *DelegateInfo) GetCurrentFrozenDeposits() tz.BigUint

func (*DelegateInfo) GetCurrentProposals

func (d *DelegateInfo) GetCurrentProposals() tz.Option[[]*tz.ProtocolHash]

func (*DelegateInfo) GetDeactivated

func (d *DelegateInfo) GetDeactivated() bool

func (*DelegateInfo) GetDelegatedBalance

func (d *DelegateInfo) GetDelegatedBalance() tz.BigUint

func (*DelegateInfo) GetDelegatedContracts

func (d *DelegateInfo) GetDelegatedContracts() []core.ContractID

func (*DelegateInfo) GetFrozenDeposits

func (d *DelegateInfo) GetFrozenDeposits() tz.BigUint

func (*DelegateInfo) GetFrozenDepositsLimit

func (d *DelegateInfo) GetFrozenDepositsLimit() tz.Option[tz.BigUint]

func (*DelegateInfo) GetFullBalance

func (d *DelegateInfo) GetFullBalance() tz.BigUint

func (*DelegateInfo) GetGracePeriod

func (d *DelegateInfo) GetGracePeriod() int32

func (*DelegateInfo) GetPendingConsensusKeys

func (d *DelegateInfo) GetPendingConsensusKeys() tz.Option[[]core.PendingConsensusKey]

func (*DelegateInfo) GetRemainingProposals

func (d *DelegateInfo) GetRemainingProposals() tz.Option[int32]

func (*DelegateInfo) GetStakingBalance

func (d *DelegateInfo) GetStakingBalance() tz.BigUint

func (*DelegateInfo) GetVotingPower

func (d *DelegateInfo) GetVotingPower() tz.Option[int64]

type DelegateSelection

type DelegateSelection interface {
	DelegateSelection()
}

type DelegateSelectionRandom

type DelegateSelectionRandom struct{}

func (DelegateSelectionRandom) DelegateSelection

func (DelegateSelectionRandom) DelegateSelection()

type DelegateSelectionRoundRobin

type DelegateSelectionRoundRobin struct {
	Contents []*RoundRobinPublicKeys `tz:"dyn"`
}

func (DelegateSelectionRoundRobin) DelegateSelection

func (DelegateSelectionRoundRobin) DelegateSelection()

type Delegation

type Delegation struct {
	ManagerOperation
	Delegate tz.Option[tz.PublicKeyHash] `json:"delegate"`
}

func (*Delegation) MarshalJSON

func (self *Delegation) MarshalJSON() ([]byte, error)

func (*Delegation) OperationKind

func (*Delegation) OperationKind() string

type DelegationContentsAndResult

type DelegationContentsAndResult struct {
	Delegation
	Metadata ManagerMetadata[ConsumedGasResult] `json:"metadata"`
}

func (*DelegationContentsAndResult) GetMetadata

func (op *DelegationContentsAndResult) GetMetadata() any

func (*DelegationContentsAndResult) MarshalJSON

func (self *DelegationContentsAndResult) MarshalJSON() ([]byte, error)

func (*DelegationContentsAndResult) OperationContentsAndResult

func (*DelegationContentsAndResult) OperationContentsAndResult()

type DelegationInternalOperationResult

type DelegationInternalOperationResult struct {
	Source   core.ContractID             `json:"source"`
	Nonce    uint16                      `json:"nonce"`
	Delegate tz.Option[tz.PublicKeyHash] `json:"delegate"`
	Result   ConsumedGasResult           `json:"result"`
}

func (*DelegationInternalOperationResult) GetResult

func (*DelegationInternalOperationResult) GetSource

func (*DelegationInternalOperationResult) MarshalJSON

func (self *DelegationInternalOperationResult) MarshalJSON() ([]byte, error)

func (*DelegationInternalOperationResult) OperationKind

func (*DelegationInternalOperationResult) OperationKind() string

type DelegationResultContents

type DelegationResultContents = ConsumedGasResultContents

type DelegationSuccessfulManagerResult

type DelegationSuccessfulManagerResult struct {
	core.OperationResultApplied[*ConsumedGasResultContents]
}

func (*DelegationSuccessfulManagerResult) MarshalJSON

func (self *DelegationSuccessfulManagerResult) MarshalJSON() ([]byte, error)

func (*DelegationSuccessfulManagerResult) OperationKind

func (*DelegationSuccessfulManagerResult) OperationKind() string

type DoubleBakingEvidence

type DoubleBakingEvidence struct {
	Block1 BlockHeader `tz:"dyn" json:"block1"`
	Block2 BlockHeader `tz:"dyn" json:"block2"`
}

func (*DoubleBakingEvidence) MarshalJSON

func (self *DoubleBakingEvidence) MarshalJSON() ([]byte, error)

func (*DoubleBakingEvidence) OperationKind

func (*DoubleBakingEvidence) OperationKind() string

type DoubleBakingEvidenceContentsAndResult

type DoubleBakingEvidenceContentsAndResult struct {
	DoubleBakingEvidence
	Metadata BalanceUpdates `json:"metadata"`
}

func (*DoubleBakingEvidenceContentsAndResult) GetMetadata

func (op *DoubleBakingEvidenceContentsAndResult) GetMetadata() any

func (*DoubleBakingEvidenceContentsAndResult) MarshalJSON

func (self *DoubleBakingEvidenceContentsAndResult) MarshalJSON() ([]byte, error)

func (*DoubleBakingEvidenceContentsAndResult) OperationContentsAndResult

func (*DoubleBakingEvidenceContentsAndResult) OperationContentsAndResult()

type DoubleEndorsementEvidence

type DoubleEndorsementEvidence struct {
	Op1 InlinedEndorsement `tz:"dyn" json:"op1"`
	Op2 InlinedEndorsement `tz:"dyn" json:"op2"`
}

func (*DoubleEndorsementEvidence) MarshalJSON

func (self *DoubleEndorsementEvidence) MarshalJSON() ([]byte, error)

func (*DoubleEndorsementEvidence) OperationKind

func (*DoubleEndorsementEvidence) OperationKind() string

type DoubleEndorsementEvidenceContentsAndResult

type DoubleEndorsementEvidenceContentsAndResult struct {
	DoubleEndorsementEvidence
	Metadata BalanceUpdates `json:"metadata"`
}

func (*DoubleEndorsementEvidenceContentsAndResult) GetMetadata

func (*DoubleEndorsementEvidenceContentsAndResult) MarshalJSON

func (self *DoubleEndorsementEvidenceContentsAndResult) MarshalJSON() ([]byte, error)

func (*DoubleEndorsementEvidenceContentsAndResult) OperationContentsAndResult

func (*DoubleEndorsementEvidenceContentsAndResult) OperationContentsAndResult()

type DoublePreendorsementEvidence

type DoublePreendorsementEvidence struct {
	Op1 InlinedPreendorsement `tz:"dyn" json:"op1"`
	Op2 InlinedPreendorsement `tz:"dyn" json:"op2"`
}

func (*DoublePreendorsementEvidence) MarshalJSON

func (self *DoublePreendorsementEvidence) MarshalJSON() ([]byte, error)

func (*DoublePreendorsementEvidence) OperationKind

func (*DoublePreendorsementEvidence) OperationKind() string

type DoublePreendorsementEvidenceContentsAndResult

type DoublePreendorsementEvidenceContentsAndResult struct {
	DoublePreendorsementEvidence
	Metadata BalanceUpdates `json:"metadata"`
}

func (*DoublePreendorsementEvidenceContentsAndResult) GetMetadata

func (*DoublePreendorsementEvidenceContentsAndResult) MarshalJSON

func (self *DoublePreendorsementEvidenceContentsAndResult) MarshalJSON() ([]byte, error)

func (*DoublePreendorsementEvidenceContentsAndResult) OperationContentsAndResult

func (*DoublePreendorsementEvidenceContentsAndResult) OperationContentsAndResult()

type Endorsement

type Endorsement struct {
	Slot             uint16               `json:"slot"`
	Level            int32                `json:"level"`
	Round            int32                `json:"round"`
	BlockPayloadHash *tz.BlockPayloadHash `json:"block_payload_hash"`
}

func (*Endorsement) InlinedEndorsementContents

func (*Endorsement) InlinedEndorsementContents()

func (*Endorsement) MarshalJSON

func (self *Endorsement) MarshalJSON() ([]byte, error)

func (*Endorsement) OperationKind

func (*Endorsement) OperationKind() string

type EndorsementContentsAndResult

type EndorsementContentsAndResult struct {
	Endorsement
	Metadata EndorsementMetadata `json:"metadata"`
}

func (*EndorsementContentsAndResult) GetMetadata

func (op *EndorsementContentsAndResult) GetMetadata() any

func (*EndorsementContentsAndResult) MarshalJSON

func (self *EndorsementContentsAndResult) MarshalJSON() ([]byte, error)

func (*EndorsementContentsAndResult) OperationContentsAndResult

func (*EndorsementContentsAndResult) OperationContentsAndResult()

type EndorsementMetadata

type EndorsementMetadata struct {
	BalanceUpdates
	Delegate         tz.PublicKeyHash `json:"delegate"`
	EndorsementPower int32            `json:"endorsement_power"`
}

type Entrypoint

type Entrypoint interface {
	core.Entrypoint
}

type EpDefault

type EpDefault struct{}

func (EpDefault) Entrypoint

func (EpDefault) Entrypoint() string

func (EpDefault) MarshalText

func (ep EpDefault) MarshalText() (text []byte, err error)

type EpDo

type EpDo struct{}

func (EpDo) Entrypoint

func (EpDo) Entrypoint() string

func (EpDo) MarshalText

func (ep EpDo) MarshalText() (text []byte, err error)

type EpNamed

type EpNamed struct {
	tz.String
}

func (EpNamed) Entrypoint

func (e EpNamed) Entrypoint() string

func (EpNamed) MarshalText

func (ep EpNamed) MarshalText() (text []byte, err error)

type EpRemoveDelegate

type EpRemoveDelegate struct{}

func (EpRemoveDelegate) Entrypoint

func (EpRemoveDelegate) Entrypoint() string

func (EpRemoveDelegate) MarshalText

func (ep EpRemoveDelegate) MarshalText() (text []byte, err error)

type EpRoot

type EpRoot struct{}

func (EpRoot) Entrypoint

func (EpRoot) Entrypoint() string

func (EpRoot) MarshalText

func (ep EpRoot) MarshalText() (text []byte, err error)

type EpSetDelegate

type EpSetDelegate struct{}

func (EpSetDelegate) Entrypoint

func (EpSetDelegate) Entrypoint() string

func (EpSetDelegate) MarshalText

func (ep EpSetDelegate) MarshalText() (text []byte, err error)

type FailingNoop

type FailingNoop struct {
	Arbitrary tz.Bytes `tz:"dyn" json:"arbitrary"`
}

func (*FailingNoop) MarshalJSON

func (self *FailingNoop) MarshalJSON() ([]byte, error)

func (*FailingNoop) OperationKind

func (*FailingNoop) OperationKind() string

type GroupContents

type GroupContents interface {
	core.GroupContents
}

type InlinedEndorsement

type InlinedEndorsement struct {
	Branch    *tz.BlockHash              `json:"branch"`
	Contents  InlinedEndorsementContents `json:"contents"`
	Signature tz.AnySignature            `json:"signature"`
}

type InlinedEndorsementContents

type InlinedEndorsementContents interface {
	InlinedEndorsementContents()
}

type InlinedPreendorsement

type InlinedPreendorsement struct {
	Branch    *tz.BlockHash                 `json:"branch"`
	Contents  InlinedPreendorsementContents `json:"contents"`
	Signature *tz.GenericSignature          `json:"signature"`
}

type InlinedPreendorsementContents

type InlinedPreendorsementContents interface {
	InlinedPreendorsementContents()
}

type InternalOperationResult

type InternalOperationResult interface {
	core.InternalOperationResult
}

type ManagerMetadata

type ManagerMetadata[T core.ManagerOperationResult] struct {
	BalanceUpdates
	OperationResult          T                         `json:"operation_result"`
	InternalOperationResults []InternalOperationResult `tz:"dyn" json:"internal_operation_results"`
}

func (*ManagerMetadata[T]) GetInternalOperationResults

func (m *ManagerMetadata[T]) GetInternalOperationResults() []core.InternalOperationResult

func (*ManagerMetadata[T]) GetResult

func (m *ManagerMetadata[T]) GetResult() core.ManagerOperationResult

type ManagerOperation

type ManagerOperation struct {
	Source       tz.PublicKeyHash `json:"source"`
	Fee          tz.BigUint       `json:"fee"`
	Counter      tz.BigUint       `json:"counter"`
	GasLimit     tz.BigUint       `json:"gas_limit"`
	StorageLimit tz.BigUint       `json:"storage_limit"`
}

func (*ManagerOperation) GetCounter

func (m *ManagerOperation) GetCounter() tz.BigUint

func (*ManagerOperation) GetFee

func (m *ManagerOperation) GetFee() tz.BigUint

func (*ManagerOperation) GetGasLimit

func (m *ManagerOperation) GetGasLimit() tz.BigUint

func (*ManagerOperation) GetSource

func (*ManagerOperation) GetSourceAddress

func (m *ManagerOperation) GetSourceAddress() tz.PublicKeyHash

func (*ManagerOperation) GetStorageLimit

func (m *ManagerOperation) GetStorageLimit() tz.BigUint

func (*ManagerOperation) SetCounter

func (m *ManagerOperation) SetCounter(v tz.BigUint)

func (*ManagerOperation) SetFee

func (m *ManagerOperation) SetFee(v tz.BigUint)

func (*ManagerOperation) SetGasLimit

func (m *ManagerOperation) SetGasLimit(v tz.BigUint)

func (*ManagerOperation) SetStorageLimit

func (m *ManagerOperation) SetStorageLimit(v tz.BigUint)

type OperationContents

type OperationContents interface {
	core.OperationContents
}

func ListOperations

func ListOperations() []OperationContents

type OperationContentsAndResult

type OperationContentsAndResult interface {
	core.OperationContentsAndResult
}

type OperationWithOptionalMetadataContents

type OperationWithOptionalMetadataContents interface {
	core.OperationWithOptionalMetadataContents
}

type OperationWithOptionalMetadataWithMetadata

type OperationWithOptionalMetadataWithMetadata[T core.OperationContentsAndResult] struct {
	Contents  []T                             `tz:"dyn" json:"contents"`
	Signature tz.Option[*tz.GenericSignature] `json:"signature"`
}

func (*OperationWithOptionalMetadataWithMetadata[T]) GetSignature

func (*OperationWithOptionalMetadataWithMetadata[T]) OperationWithOptionalMetadataContents

func (*OperationWithOptionalMetadataWithMetadata[T]) OperationWithOptionalMetadataContents()

func (*OperationWithOptionalMetadataWithMetadata[T]) Operations

type OperationWithOptionalMetadataWithoutMetadata

type OperationWithOptionalMetadataWithoutMetadata[T core.OperationContents] struct {
	Contents  []T                             `tz:"dyn" json:"contents"`
	Signature tz.Option[*tz.GenericSignature] `json:"signature"`
}

func (*OperationWithOptionalMetadataWithoutMetadata[T]) GetSignature

func (*OperationWithOptionalMetadataWithoutMetadata[T]) OperationWithOptionalMetadataContents

func (*OperationWithOptionalMetadataWithoutMetadata[T]) OperationWithOptionalMetadataContents()

func (*OperationWithOptionalMetadataWithoutMetadata[T]) Operations

type OperationWithTooLargeMetadata

type OperationWithTooLargeMetadata[T core.OperationContents] struct {
	OperationWithoutMetadata[T]
}

type OperationWithoutMetadata

type OperationWithoutMetadata[T core.OperationContents] struct {
	core.OperationWithoutMetadata[T]
}

func (*OperationWithoutMetadata[T]) GetSignature

func (op *OperationWithoutMetadata[T]) GetSignature() (tz.Option[tz.Signature], error)

type Origination

type Origination struct {
	ManagerOperation
	Balance  tz.BigUint                  `json:"balance"`
	Delegate tz.Option[tz.PublicKeyHash] `json:"delegate"`
	Script   Script                      `json:"script"`
}

func (*Origination) MarshalJSON

func (self *Origination) MarshalJSON() ([]byte, error)

func (*Origination) OperationKind

func (*Origination) OperationKind() string

type OriginationContentsAndResult

type OriginationContentsAndResult struct {
	Origination
	Metadata ManagerMetadata[OriginationResult] `json:"metadata"`
}

func (*OriginationContentsAndResult) GetMetadata

func (op *OriginationContentsAndResult) GetMetadata() any

func (*OriginationContentsAndResult) MarshalJSON

func (self *OriginationContentsAndResult) MarshalJSON() ([]byte, error)

func (*OriginationContentsAndResult) OperationContentsAndResult

func (*OriginationContentsAndResult) OperationContentsAndResult()

type OriginationInternalOperationResult

type OriginationInternalOperationResult struct {
	Source   core.ContractID             `json:"source"`
	Nonce    uint16                      `json:"nonce"`
	Balance  tz.BigUint                  `json:"balance"`
	Delegate tz.Option[tz.PublicKeyHash] `json:"delegate"`
	Script   Script                      `json:"script"`
	Result   OriginationResult           `json:"result"`
}

func (*OriginationInternalOperationResult) GetResult

func (*OriginationInternalOperationResult) GetSource

func (*OriginationInternalOperationResult) MarshalJSON

func (self *OriginationInternalOperationResult) MarshalJSON() ([]byte, error)

func (*OriginationInternalOperationResult) OperationKind

func (*OriginationInternalOperationResult) OperationKind() string

type OriginationResult

type OriginationResult interface {
	core.ManagerOperationResult
}

type OriginationResultContents

type OriginationResultContents struct {
	BigMapDiff tz.Option[big_map.Diff] `json:"big_map_diff"`
	BalanceUpdates
	OriginatedContracts []core.OriginatedContractID `tz:"dyn" json:"originated_contracts"`
	ConsumedGas         tz.BigUint                  `json:"consumed_gas"`
	ConsumedMilligas    tz.BigUint                  `json:"consumed_milligas"`
	StorageSize         tz.BigInt                   `json:"storage_size"`
	PaidStorageSizeDiff tz.BigInt                   `json:"paid_storage_size_diff"`
	LazyStorageDiff     tz.Option[lazy.StorageDiff] `json:"lazy_storage_diff"`
}

func (*OriginationResultContents) EstimateStorageSize

func (r *OriginationResultContents) EstimateStorageSize(constants core.Constants) *big.Int

func (*OriginationResultContents) GetConsumedMilligas

func (r *OriginationResultContents) GetConsumedMilligas() tz.BigUint

func (*OriginationResultContents) GetPaidStorageSizeDiff

func (r *OriginationResultContents) GetPaidStorageSizeDiff() tz.BigInt

func (*OriginationResultContents) GetStorageSize

func (r *OriginationResultContents) GetStorageSize() tz.BigInt

type OriginationSuccessfulManagerResult

type OriginationSuccessfulManagerResult struct {
	core.OperationResultApplied[*OriginationResultContents]
}

func (*OriginationSuccessfulManagerResult) MarshalJSON

func (self *OriginationSuccessfulManagerResult) MarshalJSON() ([]byte, error)

func (*OriginationSuccessfulManagerResult) OperationKind

func (*OriginationSuccessfulManagerResult) OperationKind() string

type Parameters

type Parameters struct {
	Entrypoint Entrypoint            `json:"entrypoint"`
	Value      expression.Expression `tz:"dyn" json:"value"`
}

func (*Parameters) GetEntrypoint

func (p *Parameters) GetEntrypoint() string

func (*Parameters) GetValue

func (p *Parameters) GetValue() expression.Expression

type Preendorsement

type Preendorsement Endorsement

func (*Preendorsement) InlinedPreendorsementContents

func (*Preendorsement) InlinedPreendorsementContents()

func (*Preendorsement) MarshalJSON

func (self *Preendorsement) MarshalJSON() ([]byte, error)

func (*Preendorsement) OperationKind

func (*Preendorsement) OperationKind() string

type PreendorsementContentsAndResult

type PreendorsementContentsAndResult struct {
	Preendorsement
	Metadata PreendorsementMetadata `json:"metadata"`
}

func (*PreendorsementContentsAndResult) GetMetadata

func (op *PreendorsementContentsAndResult) GetMetadata() any

func (*PreendorsementContentsAndResult) MarshalJSON

func (self *PreendorsementContentsAndResult) MarshalJSON() ([]byte, error)

func (*PreendorsementContentsAndResult) OperationContentsAndResult

func (*PreendorsementContentsAndResult) OperationContentsAndResult()

type PreendorsementMetadata

type PreendorsementMetadata = EndorsementMetadata

type Proposals

type Proposals struct {
	Source    tz.PublicKeyHash   `json:"source"`
	Period    int32              `json:"period"`
	Proposals []*tz.ProtocolHash `tz:"dyn" json:"proposals"`
}

func (*Proposals) GetMetadata

func (op *Proposals) GetMetadata() any

func (*Proposals) GetSource

func (p *Proposals) GetSource() core.TransactionDestination

func (*Proposals) MarshalJSON

func (self *Proposals) MarshalJSON() ([]byte, error)

func (*Proposals) OperationContentsAndResult

func (*Proposals) OperationContentsAndResult()

func (*Proposals) OperationKind

func (*Proposals) OperationKind() string

type RegisterGlobalConstant

type RegisterGlobalConstant struct {
	ManagerOperation
	Value expression.Expression `tz:"dyn" json:"value"`
}

func (*RegisterGlobalConstant) MarshalJSON

func (self *RegisterGlobalConstant) MarshalJSON() ([]byte, error)

func (*RegisterGlobalConstant) OperationKind

func (*RegisterGlobalConstant) OperationKind() string

type RegisterGlobalConstantContentsAndResult

type RegisterGlobalConstantContentsAndResult struct {
	RegisterGlobalConstant
	Metadata ManagerMetadata[RegisterGlobalConstantResult] `json:"metadata"`
}

func (*RegisterGlobalConstantContentsAndResult) GetMetadata

func (op *RegisterGlobalConstantContentsAndResult) GetMetadata() any

func (*RegisterGlobalConstantContentsAndResult) MarshalJSON

func (self *RegisterGlobalConstantContentsAndResult) MarshalJSON() ([]byte, error)

func (*RegisterGlobalConstantContentsAndResult) OperationContentsAndResult

func (*RegisterGlobalConstantContentsAndResult) OperationContentsAndResult()

type RegisterGlobalConstantInternalOperationResult

type RegisterGlobalConstantInternalOperationResult struct {
	Source core.ContractID              `json:"source"`
	Nonce  uint16                       `json:"nonce"`
	Value  expression.Expression        `tz:"dyn" json:"value"`
	Result RegisterGlobalConstantResult `json:"result"`
}

func (*RegisterGlobalConstantInternalOperationResult) GetResult

func (*RegisterGlobalConstantInternalOperationResult) GetSource

func (*RegisterGlobalConstantInternalOperationResult) MarshalJSON

func (self *RegisterGlobalConstantInternalOperationResult) MarshalJSON() ([]byte, error)

func (*RegisterGlobalConstantInternalOperationResult) OperationKind

type RegisterGlobalConstantResult

type RegisterGlobalConstantResult interface {
	core.ManagerOperationResult
}

type RegisterGlobalConstantResultContents

type RegisterGlobalConstantResultContents struct {
	BalanceUpdates
	ConsumedGas   tz.BigUint         `json:"consumed_gas"`
	StorageSize   tz.BigInt          `json:"storage_size"`
	GlobalAddress *tz.ScriptExprHash `json:"global_address"`
}

func (*RegisterGlobalConstantResultContents) EstimateStorageSize

func (r *RegisterGlobalConstantResultContents) EstimateStorageSize(constants core.Constants) *big.Int

func (*RegisterGlobalConstantResultContents) GetConsumedMilligas

func (r *RegisterGlobalConstantResultContents) GetConsumedMilligas() tz.BigUint

func (*RegisterGlobalConstantResultContents) GetStorageSize

func (r *RegisterGlobalConstantResultContents) GetStorageSize() tz.BigInt

type Reveal

type Reveal struct {
	ManagerOperation
	PublicKey tz.PublicKey `json:"public_key"`
}

func (*Reveal) MarshalJSON

func (self *Reveal) MarshalJSON() ([]byte, error)

func (*Reveal) OperationKind

func (*Reveal) OperationKind() string

type RevealContentsAndResult

type RevealContentsAndResult struct {
	Reveal
	Metadata ManagerMetadata[ConsumedGasResult] `json:"metadata"`
}

func (*RevealContentsAndResult) GetMetadata

func (op *RevealContentsAndResult) GetMetadata() any

func (*RevealContentsAndResult) MarshalJSON

func (self *RevealContentsAndResult) MarshalJSON() ([]byte, error)

func (*RevealContentsAndResult) OperationContentsAndResult

func (*RevealContentsAndResult) OperationContentsAndResult()

type RevealInternalOperationResult

type RevealInternalOperationResult struct {
	Source    core.ContractID   `json:"source"`
	Nonce     uint16            `json:"nonce"`
	PublicKey tz.PublicKey      `json:"public_key"`
	Result    ConsumedGasResult `json:"result"`
}

func (*RevealInternalOperationResult) GetResult

func (*RevealInternalOperationResult) GetSource

func (*RevealInternalOperationResult) MarshalJSON

func (self *RevealInternalOperationResult) MarshalJSON() ([]byte, error)

func (*RevealInternalOperationResult) OperationKind

func (*RevealInternalOperationResult) OperationKind() string

type RevealResultContents

type RevealResultContents = ConsumedGasResultContents

type RevealSuccessfulManagerResult

type RevealSuccessfulManagerResult struct {
	core.OperationResultApplied[*ConsumedGasResultContents]
}

func (*RevealSuccessfulManagerResult) MarshalJSON

func (self *RevealSuccessfulManagerResult) MarshalJSON() ([]byte, error)

func (*RevealSuccessfulManagerResult) OperationKind

func (*RevealSuccessfulManagerResult) OperationKind() string

type RoundRobinPublicKeys

type RoundRobinPublicKeys struct {
	PublicKeys []tz.PublicKey `tz:"dyn"`
}

type RunOperationRequest

type RunOperationRequest struct {
	Operation SignedOperation `json:"operation"`
	ChainID   *tz.ChainID     `json:"chain_id"`
}

type Script

type Script struct {
	Code    expression.Expression `tz:"dyn" json:"code"`
	Storage expression.Expression `tz:"dyn" json:"storage"`
}

type SeedNonceRevelation

type SeedNonceRevelation struct {
	Level int32         `json:"level"`
	Nonce *tz.SeedNonce `json:"nonce"`
}

func (*SeedNonceRevelation) MarshalJSON

func (self *SeedNonceRevelation) MarshalJSON() ([]byte, error)

func (*SeedNonceRevelation) OperationKind

func (*SeedNonceRevelation) OperationKind() string

type SeedNonceRevelationContentsAndResult

type SeedNonceRevelationContentsAndResult struct {
	SeedNonceRevelation
	Metadata BalanceUpdates `json:"metadata"`
}

func (*SeedNonceRevelationContentsAndResult) GetMetadata

func (op *SeedNonceRevelationContentsAndResult) GetMetadata() any

func (*SeedNonceRevelationContentsAndResult) MarshalJSON

func (self *SeedNonceRevelationContentsAndResult) MarshalJSON() ([]byte, error)

func (*SeedNonceRevelationContentsAndResult) OperationContentsAndResult

func (*SeedNonceRevelationContentsAndResult) OperationContentsAndResult()

type SetDepositsLimit

type SetDepositsLimit struct {
	ManagerOperation
	Limit tz.Option[tz.BigUint] `json:"limit"`
}

func (*SetDepositsLimit) MarshalJSON

func (self *SetDepositsLimit) MarshalJSON() ([]byte, error)

func (*SetDepositsLimit) OperationKind

func (*SetDepositsLimit) OperationKind() string

type SetDepositsLimitContentsAndResult

type SetDepositsLimitContentsAndResult struct {
	SetDepositsLimit
	Metadata ManagerMetadata[ConsumedGasResult] `json:"metadata"`
}

func (*SetDepositsLimitContentsAndResult) GetMetadata

func (op *SetDepositsLimitContentsAndResult) GetMetadata() any

func (*SetDepositsLimitContentsAndResult) MarshalJSON

func (self *SetDepositsLimitContentsAndResult) MarshalJSON() ([]byte, error)

func (*SetDepositsLimitContentsAndResult) OperationContentsAndResult

func (*SetDepositsLimitContentsAndResult) OperationContentsAndResult()

type SetDepositsLimitInternalOperationResult

type SetDepositsLimitInternalOperationResult struct {
	Source core.ContractID       `json:"source"`
	Nonce  uint16                `json:"nonce"`
	Limit  tz.Option[tz.BigUint] `json:"limit"`
	Result ConsumedGasResult     `json:"result"`
}

func (*SetDepositsLimitInternalOperationResult) GetResult

func (*SetDepositsLimitInternalOperationResult) GetSource

func (*SetDepositsLimitInternalOperationResult) MarshalJSON

func (self *SetDepositsLimitInternalOperationResult) MarshalJSON() ([]byte, error)

func (*SetDepositsLimitInternalOperationResult) OperationKind

type SetDepositsLimitResultContents

type SetDepositsLimitResultContents = ConsumedGasResultContents

type SetDepositsLimitSuccessfulManagerResult

type SetDepositsLimitSuccessfulManagerResult struct {
	core.OperationResultApplied[*ConsumedGasResultContents]
}

func (*SetDepositsLimitSuccessfulManagerResult) MarshalJSON

func (self *SetDepositsLimitSuccessfulManagerResult) MarshalJSON() ([]byte, error)

func (*SetDepositsLimitSuccessfulManagerResult) OperationKind

type SignedOperation

type SignedOperation struct {
	UnsignedOperation
	Signature *tz.GenericSignature `json:"signature"`
}

func (*SignedOperation) DecodeTZ

func (op *SignedOperation) DecodeTZ(data []byte, ctx *encoding.Context) (rest []byte, err error)

type SuccessfulManagerOperationResult

type SuccessfulManagerOperationResult interface {
	core.SuccessfulManagerOperationResult
}

type Transaction

type Transaction struct {
	ManagerOperation
	Amount      tz.BigUint            `json:"amount"`
	Destination core.ContractID       `json:"destination"`
	Parameters  tz.Option[Parameters] `json:"parameters"`
}

func (*Transaction) GetAmount

func (t *Transaction) GetAmount() tz.BigUint

func (*Transaction) GetDestination

func (t *Transaction) GetDestination() core.Address

func (*Transaction) GetParameters

func (t *Transaction) GetParameters() tz.Option[core.Parameters]

func (*Transaction) MarshalJSON

func (self *Transaction) MarshalJSON() ([]byte, error)

func (*Transaction) OperationKind

func (*Transaction) OperationKind() string

type TransactionContentsAndResult

type TransactionContentsAndResult struct {
	Transaction
	Metadata ManagerMetadata[TransactionResult] `json:"metadata"`
}

func (*TransactionContentsAndResult) GetMetadata

func (op *TransactionContentsAndResult) GetMetadata() any

func (*TransactionContentsAndResult) MarshalJSON

func (self *TransactionContentsAndResult) MarshalJSON() ([]byte, error)

func (*TransactionContentsAndResult) OperationContentsAndResult

func (*TransactionContentsAndResult) OperationContentsAndResult()

type TransactionInternalOperationResult

type TransactionInternalOperationResult struct {
	Source      core.ContractID       `json:"source"`
	Nonce       uint16                `json:"nonce"`
	Amount      tz.BigUint            `json:"amount"`
	Destination core.ContractID       `json:"destination"`
	Parameters  tz.Option[Parameters] `json:"parameters"`
	Result      TransactionResult     `json:"result"`
}

func (*TransactionInternalOperationResult) GetAmount

func (*TransactionInternalOperationResult) GetDestination

func (*TransactionInternalOperationResult) GetNonce

func (*TransactionInternalOperationResult) GetParameters

func (*TransactionInternalOperationResult) GetResult

func (*TransactionInternalOperationResult) GetSource

func (*TransactionInternalOperationResult) MarshalJSON

func (self *TransactionInternalOperationResult) MarshalJSON() ([]byte, error)

func (*TransactionInternalOperationResult) OperationKind

func (*TransactionInternalOperationResult) OperationKind() string

type TransactionResult

type TransactionResult interface {
	core.ManagerOperationResult
}

type TransactionResultContents

type TransactionResultContents struct {
	Storage    tz.Option[expression.Expression] `json:"storage"`
	BigMapDiff tz.Option[big_map.Diff]          `json:"big_map_diff"`
	BalanceUpdates
	OriginatedContracts          []core.OriginatedContractID `tz:"dyn" json:"originated_contracts"`
	ConsumedGas                  tz.BigUint                  `json:"consumed_gas"`
	ConsumedMilligas             tz.BigUint                  `json:"consumed_milligas"`
	StorageSize                  tz.BigInt                   `json:"storage_size"`
	PaidStorageSizeDiff          tz.BigInt                   `json:"paid_storage_size_diff"`
	AllocatedDestinationContract bool                        `json:"allocated_destination_contract"`
	LazyStorageDiff              tz.Option[lazy.StorageDiff] `json:"lazy_storage_diff"`
}

func (*TransactionResultContents) EstimateStorageSize

func (r *TransactionResultContents) EstimateStorageSize(constants core.Constants) *big.Int

func (*TransactionResultContents) GetConsumedMilligas

func (r *TransactionResultContents) GetConsumedMilligas() tz.BigUint

func (*TransactionResultContents) GetPaidStorageSizeDiff

func (r *TransactionResultContents) GetPaidStorageSizeDiff() tz.BigInt

func (*TransactionResultContents) GetStorageSize

func (r *TransactionResultContents) GetStorageSize() tz.BigInt

type TransactionSuccessfulManagerResult

type TransactionSuccessfulManagerResult struct {
	core.OperationResultApplied[*TransactionResultContents]
}

func (*TransactionSuccessfulManagerResult) MarshalJSON

func (self *TransactionSuccessfulManagerResult) MarshalJSON() ([]byte, error)

func (*TransactionSuccessfulManagerResult) OperationKind

func (*TransactionSuccessfulManagerResult) OperationKind() string

type UnsignedBlockHeader

type UnsignedBlockHeader struct {
	core.ShellHeader
	UnsignedProtocolBlockHeader
}

func (*UnsignedBlockHeader) GetShellHeader

func (header *UnsignedBlockHeader) GetShellHeader() *core.ShellHeader

type UnsignedOperation

type UnsignedOperation struct {
	Branch   *tz.BlockHash       `json:"branch"`
	Contents []OperationContents `json:"contents"`
}

type UnsignedProtocolBlockHeader

type UnsignedProtocolBlockHeader struct {
	PayloadHash               *tz.BlockPayloadHash          `json:"payload_hash"`
	PayloadRound              int32                         `json:"payload_round"`
	ProofOfWorkNonce          *tz.Bytes8                    `json:"proof_of_work_nonce"`
	SeedNonceHash             tz.Option[*tz.CycleNonceHash] `json:"seed_nonce_hash"`
	LiquidityBakingEscapeVote bool                          `json:"liquidity_baking_escape_vote"`
}

func (*UnsignedProtocolBlockHeader) GetLiquidityBakingToggleVote

func (h *UnsignedProtocolBlockHeader) GetLiquidityBakingToggleVote() core.LiquidityBakingToggleVote

func (*UnsignedProtocolBlockHeader) GetPayloadHash

func (h *UnsignedProtocolBlockHeader) GetPayloadHash() *tz.BlockPayloadHash

func (*UnsignedProtocolBlockHeader) GetPayloadRound

func (h *UnsignedProtocolBlockHeader) GetPayloadRound() int32

func (*UnsignedProtocolBlockHeader) GetProofOfWorkNonce

func (h *UnsignedProtocolBlockHeader) GetProofOfWorkNonce() *tz.Bytes8

func (*UnsignedProtocolBlockHeader) GetSeedNonceHash

func (h *UnsignedProtocolBlockHeader) GetSeedNonceHash() tz.Option[*tz.CycleNonceHash]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL