Documentation
¶
Index ¶
- Variables
- func CompareProtocols(a, b *tz.ProtocolHash) int
- func ProtocolShortName(proto *tz.ProtocolHash) string
- type Address
- type BalanceUpdate
- type BalanceUpdateContents
- type BalanceUpdateContract
- type BalanceUpdateKind
- type BalanceUpdateOrigin
- type BalanceUpdateOriginBlockApplication
- type BalanceUpdateOriginDelayedOperation
- type BalanceUpdateOriginProtocolMigration
- type BalanceUpdateOriginSimulation
- type BalanceUpdateOriginSubsidy
- type BallotKind
- type BigRat
- type BlockHeader
- type BlockMetadata
- type BlockMetadataHeader
- type BlockProtocols
- type Bytes
- type Constants
- type ContractID
- type DelegateInfo
- type DelegatesList
- type Entrypoint
- type GroupContents
- type ImplicitContract
- type InternalOperationResult
- type LevelInfo
- type LiquidityBakingToggleVote
- type ManagerOperation
- type ManagerOperationMetadata
- type ManagerOperationResult
- type ManagerOperationResultAppliedOrBacktracked
- type MaxOperationListLength
- type OperationContents
- type OperationContentsAndResult
- type OperationResultApplied
- type OperationResultBacktracked
- type OperationResultErrors
- type OperationResultFailed
- type OperationResultSkipped
- type OperationWithOptionalMetadata
- type OperationWithOptionalMetadataContents
- type OperationWithResult
- type OperationWithSource
- type OperationWithoutMetadata
- type OperationsGroup
- type OperationsGroupImpl
- type OperationsList
- type OriginatedContract
- type OriginatedContractID
- type Parameters
- type PendingConsensusKey
- type Rat
- type ResultWithConsumedMilligas
- type ResultWithPaidStorageSizeDiff
- type ResultWithStorageSize
- type ShellHeader
- type Signed
- type SmartRollupDestination
- type StorageSizeEstimator
- type SuccessfulManagerOperationResult
- type TestChainStatus
- type TestChainStatusForking
- type TestChainStatusNotRunning
- type TestChainStatusRunning
- type Transaction
- type TransactionBase
- type TransactionDestination
- type TransactionInternalOperationResult
- type TxRollupDestination
- type VotingPeriod
- type VotingPeriodInfo
- type VotingPeriodKind
- type WithBalanceUpdates
- type ZkRollupDestination
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Proto000Ps9mPmXa = tz.ProtocolHash{0x38, 0xec, 0xde, 0xf0, 0xcd, 0x8, 0x64, 0xf, 0x31, 0x8a, 0x9b, 0x5, 0x5f, 0x6b, 0xd, 0xc, 0x9a, 0xe0, 0x30, 0x91, 0x3a, 0x87, 0x1d, 0x9b, 0x9d, 0x86, 0xfb, 0x84, 0x63, 0x17, 0xda, 0x21} Proto001PtCJ7pwo = tz.ProtocolHash{0xc2, 0x5d, 0x8f, 0x24, 0x46, 0xae, 0x4e, 0x33, 0xcf, 0x35, 0x2b, 0xd, 0x82, 0xd2, 0xfb, 0xed, 0x1f, 0x2d, 0xf0, 0x52, 0x8e, 0xfb, 0xf2, 0x2f, 0x31, 0xf2, 0x1a, 0x5, 0x2b, 0x2a, 0x99, 0x38} Proto002PsYLVpVv = tz.ProtocolHash{0x6c, 0x2c, 0xca, 0x12, 0x99, 0x6, 0x14, 0xa7, 0xcc, 0x55, 0x11, 0x3a, 0xe6, 0x3e, 0x21, 0x36, 0x5, 0xd5, 0x9e, 0x92, 0x65, 0xaa, 0x3f, 0x2b, 0xc, 0xa6, 0x51, 0x1f, 0x1f, 0x98, 0xbc, 0x1} Proto003PsddFKi3 = tz.ProtocolHash{0x78, 0x2f, 0xe, 0x56, 0xd7, 0x1e, 0x26, 0xcf, 0xe0, 0x9e, 0x2e, 0x33, 0xeb, 0x44, 0xb3, 0x2a, 0xd6, 0xd4, 0x67, 0xb7, 0x42, 0xbb, 0x79, 0xd4, 0x61, 0xdb, 0x2d, 0x86, 0xaf, 0x22, 0xad, 0xad} Proto004Pt24m4xi = tz.ProtocolHash{0xab, 0x22, 0xe4, 0x6e, 0x78, 0x72, 0xaa, 0x13, 0xe3, 0x66, 0xe4, 0x55, 0xbb, 0x4f, 0x5d, 0xbe, 0xde, 0x85, 0x6a, 0xb0, 0x86, 0x4e, 0x1d, 0xa7, 0xe1, 0x22, 0x55, 0x45, 0x79, 0xee, 0x71, 0xf8} Proto005PsBabyM1 = tz.ProtocolHash{0x3d, 0xb, 0x4b, 0xac, 0xb5, 0xc3, 0xe1, 0x52, 0xa1, 0x67, 0xda, 0x26, 0xfe, 0xfc, 0x26, 0x6b, 0xd3, 0xa0, 0xe1, 0x4f, 0xc4, 0xe4, 0x1e, 0x6c, 0x53, 0x62, 0x3b, 0xf4, 0x82, 0x83, 0x3d, 0xa2} Proto006PsCARTHA = tz.ProtocolHash{0x3e, 0x5e, 0x3a, 0x60, 0x6a, 0xfa, 0xb7, 0x4a, 0x59, 0xca, 0x9, 0xe3, 0x33, 0x63, 0x3e, 0x27, 0x70, 0xb6, 0x49, 0x2c, 0x5e, 0x59, 0x44, 0x55, 0xb7, 0x1e, 0x9a, 0x2f, 0xe, 0xa9, 0x2a, 0xfb} Proto007PsDELPH1 = tz.ProtocolHash{0x40, 0xca, 0xb8, 0x3d, 0x3f, 0x37, 0xa6, 0x4d, 0xa2, 0x6b, 0x57, 0xad, 0x3d, 0x4, 0x32, 0xae, 0x88, 0x12, 0x93, 0xa2, 0x51, 0x69, 0xad, 0xa3, 0x87, 0xbf, 0xc7, 0x4a, 0x1c, 0xbf, 0x9e, 0x6e} Proto008PtEdo2Zk = tz.ProtocolHash{0xc7, 0xad, 0x4f, 0x7a, 0x0, 0xe, 0x28, 0xe9, 0xee, 0xfc, 0x58, 0xde, 0x8e, 0xa1, 0x17, 0x2d, 0xe8, 0x43, 0x24, 0x2b, 0xd2, 0xe6, 0x88, 0x77, 0x99, 0x53, 0xd3, 0x41, 0x6a, 0x44, 0x64, 0xb} Proto009PsFLoren = tz.ProtocolHash{0x45, 0x96, 0x28, 0x5c, 0x68, 0x71, 0x69, 0x1e, 0x25, 0x19, 0x6c, 0x6a, 0x8d, 0x26, 0xd9, 0xa, 0x3a, 0xc9, 0x13, 0x75, 0x73, 0x1e, 0x39, 0x26, 0x10, 0x3c, 0x51, 0x7a, 0x13, 0xa0, 0xba, 0x56} Proto010PtGRANAD = tz.ProtocolHash{0xcb, 0xb9, 0x44, 0xf7, 0x42, 0x44, 0xea, 0x26, 0x81, 0x98, 0x1f, 0x25, 0x99, 0x5f, 0x8e, 0xbb, 0xa8, 0xff, 0x6c, 0xee, 0x8c, 0x3, 0x68, 0x92, 0xfe, 0x90, 0x1c, 0xb7, 0x60, 0xc4, 0xe3, 0x9e} Proto011PtHangz2 = tz.ProtocolHash{0xce, 0x5f, 0x6, 0x1e, 0x34, 0xb5, 0xa2, 0x1f, 0xea, 0xb8, 0xdb, 0xdf, 0xe7, 0x55, 0xef, 0x17, 0xe7, 0xc, 0x9f, 0x56, 0x54, 0x64, 0xf0, 0x67, 0xac, 0x5e, 0x7c, 0x2, 0xbe, 0x83, 0xa, 0x48} Proto012Psithaca = tz.ProtocolHash{0x84, 0x24, 0x52, 0xc, 0xf9, 0xbb, 0xf0, 0xa4, 0x27, 0x70, 0x20, 0x4d, 0x95, 0xdc, 0xc1, 0xf1, 0x1e, 0x40, 0x4f, 0xdb, 0x3e, 0x90, 0xc8, 0x48, 0x50, 0xc4, 0xcf, 0xdb, 0x50, 0xc5, 0xc4, 0xb9} Proto013PtJakart = tz.ProtocolHash{0xd0, 0xa3, 0xf0, 0x7b, 0x8a, 0xdf, 0xcf, 0x61, 0xf5, 0xca, 0x60, 0xf2, 0x44, 0xca, 0x9a, 0x87, 0x6e, 0x76, 0xcb, 0xad, 0x91, 0x40, 0x98, 0xf, 0x6c, 0x88, 0xd0, 0xbf, 0x90, 0xa, 0xc6, 0xd8} Proto014PtKathma = tz.ProtocolHash{0xd2, 0xea, 0x9f, 0x23, 0xa1, 0xa1, 0x1, 0x10, 0x91, 0x84, 0x1b, 0x12, 0xe3, 0x2c, 0xe2, 0xf8, 0xc3, 0xfa, 0xcf, 0xf2, 0x7f, 0xee, 0xe5, 0x8b, 0xb7, 0xc9, 0xe9, 0x5, 0x67, 0xd1, 0x14, 0x25} Proto015PtLimaPt = tz.ProtocolHash{0xd5, 0x7e, 0xd8, 0x8b, 0xe5, 0xa6, 0x98, 0x15, 0xe3, 0x93, 0x86, 0xa3, 0x3f, 0x7d, 0xca, 0xd3, 0x91, 0xf5, 0xf5, 0x7, 0xe0, 0x3b, 0x37, 0x6e, 0x49, 0x92, 0x72, 0xc8, 0x6c, 0x6c, 0xf2, 0xa7} Proto016PtMumbai = tz.ProtocolHash{0xd8, 0x32, 0x5f, 0x11, 0xda, 0x2f, 0xf3, 0x69, 0x34, 0xa5, 0x86, 0x43, 0x9f, 0x08, 0x56, 0x55, 0xa8, 0x33, 0xf2, 0xff, 0x6a, 0x12, 0xd1, 0x5e, 0x83, 0xb9, 0x51, 0xfb, 0x68, 0x43, 0x26, 0xe0} Proto017PtNairob = tz.ProtocolHash{0xd9, 0xb8, 0xc2, 0x31, 0x4c, 0xc0, 0x5f, 0xfa, 0x3f, 0xc6, 0x55, 0xa9, 0x8b, 0xb8, 0x71, 0x55, 0xbe, 0x4c, 0xf7, 0xce, 0x67, 0xfe, 0xe6, 0xb5, 0x94, 0xea, 0x93, 0x02, 0xe8, 0x65, 0x5d, 0xf2} Proto018Proxford = tz.ProtocolHash{0x0b, 0xf4, 0x4c, 0x7d, 0x64, 0xe3, 0xd7, 0xda, 0x27, 0xd9, 0x25, 0xd1, 0x0a, 0xf5, 0x35, 0xfb, 0x36, 0xce, 0xf0, 0xad, 0x41, 0x93, 0x0c, 0x79, 0x29, 0x77, 0x3f, 0x47, 0x31, 0xeb, 0xa1, 0x37} Proto019PtParisB = tz.ProtocolHash{0xdb, 0xff, 0x65, 0x86, 0xa0, 0x48, 0x02, 0xd3, 0xf5, 0x13, 0xc6, 0x5a, 0x44, 0x4d, 0x9d, 0x4d, 0xeb, 0xe4, 0x2b, 0x17, 0xe9, 0xe7, 0x27, 0x3f, 0x8f, 0x6c, 0x11, 0x8e, 0xa3, 0xf4, 0xe0, 0x6e} Proto020PsParisC = tz.ProtocolHash{0x58, 0x4d, 0x32, 0x39, 0x2e, 0xf2, 0x1a, 0x17, 0xef, 0x36, 0xdf, 0x07, 0x4f, 0x48, 0xaf, 0x06, 0x65, 0x3a, 0x8d, 0x31, 0x59, 0x57, 0xc9, 0x07, 0xd6, 0xa4, 0xc1, 0x8c, 0x3a, 0x00, 0xa5, 0xe1} )
View Source
var Protocols = []*tz.ProtocolHash{ &Proto000Ps9mPmXa, &Proto001PtCJ7pwo, &Proto002PsYLVpVv, &Proto003PsddFKi3, &Proto004Pt24m4xi, &Proto005PsBabyM1, &Proto006PsCARTHA, &Proto007PsDELPH1, &Proto008PtEdo2Zk, &Proto009PsFLoren, &Proto010PtGRANAD, &Proto011PtHangz2, &Proto012Psithaca, &Proto013PtJakart, &Proto014PtKathma, &Proto015PtLimaPt, &Proto016PtMumbai, &Proto017PtNairob, &Proto018Proxford, &Proto019PtParisB, &Proto020PsParisC, }
Functions ¶
func CompareProtocols ¶
func CompareProtocols(a, b *tz.ProtocolHash) int
func ProtocolShortName ¶
func ProtocolShortName(proto *tz.ProtocolHash) string
Types ¶
type Address ¶
type Address = TransactionDestination
type BalanceUpdate ¶
type BalanceUpdate interface { GetContents() BalanceUpdateContents GetChange() int64 GetOrigin() BalanceUpdateOrigin }
type BalanceUpdateContents ¶
type BalanceUpdateContents interface { BalanceUpdateCategory() string BalanceUpdateKind() BalanceUpdateKind }
type BalanceUpdateContract ¶
type BalanceUpdateContract interface { BalanceUpdateContents GetContract() ContractID }
type BalanceUpdateKind ¶
type BalanceUpdateKind int
not present in the binary protocol
const ( BalanceUpdateKindContract BalanceUpdateKind = iota BalanceUpdateKindAccumulator BalanceUpdateKindFreezer BalanceUpdateKindMinted BalanceUpdateKindBurned BalanceUpdateKindCommitment BalanceUpdateKindStaking )
func (BalanceUpdateKind) MarshalText ¶
func (k BalanceUpdateKind) MarshalText() (text []byte, err error)
func (BalanceUpdateKind) String ¶
func (k BalanceUpdateKind) String() string
type BalanceUpdateOrigin ¶
type BalanceUpdateOrigin interface {
BalanceUpdateOrigin() string
}
type BalanceUpdateOriginBlockApplication ¶
type BalanceUpdateOriginBlockApplication struct{}
func (BalanceUpdateOriginBlockApplication) BalanceUpdateOrigin ¶
func (BalanceUpdateOriginBlockApplication) BalanceUpdateOrigin() string
func (*BalanceUpdateOriginBlockApplication) MarshalJSON ¶
func (self *BalanceUpdateOriginBlockApplication) MarshalJSON() ([]byte, error)
type BalanceUpdateOriginDelayedOperation ¶
type BalanceUpdateOriginDelayedOperation struct {
DelayedOperationHash gotez.OperationHash `json:"delayed_operation_hash"`
}
func (*BalanceUpdateOriginDelayedOperation) BalanceUpdateOrigin ¶
func (*BalanceUpdateOriginDelayedOperation) BalanceUpdateOrigin() string
func (*BalanceUpdateOriginDelayedOperation) MarshalJSON ¶
func (self *BalanceUpdateOriginDelayedOperation) MarshalJSON() ([]byte, error)
type BalanceUpdateOriginProtocolMigration ¶
type BalanceUpdateOriginProtocolMigration struct{}
func (BalanceUpdateOriginProtocolMigration) BalanceUpdateOrigin ¶
func (BalanceUpdateOriginProtocolMigration) BalanceUpdateOrigin() string
func (*BalanceUpdateOriginProtocolMigration) MarshalJSON ¶
func (self *BalanceUpdateOriginProtocolMigration) MarshalJSON() ([]byte, error)
type BalanceUpdateOriginSimulation ¶
type BalanceUpdateOriginSimulation struct{}
func (BalanceUpdateOriginSimulation) BalanceUpdateOrigin ¶
func (BalanceUpdateOriginSimulation) BalanceUpdateOrigin() string
func (*BalanceUpdateOriginSimulation) MarshalJSON ¶
func (self *BalanceUpdateOriginSimulation) MarshalJSON() ([]byte, error)
type BalanceUpdateOriginSubsidy ¶
type BalanceUpdateOriginSubsidy struct{}
func (BalanceUpdateOriginSubsidy) BalanceUpdateOrigin ¶
func (BalanceUpdateOriginSubsidy) BalanceUpdateOrigin() string
func (*BalanceUpdateOriginSubsidy) MarshalJSON ¶
func (self *BalanceUpdateOriginSubsidy) MarshalJSON() ([]byte, error)
type BallotKind ¶
type BallotKind uint8
const ( BallotYay BallotKind = iota BallotNay BallotPass )
func (BallotKind) MarshalText ¶
func (b BallotKind) MarshalText() (text []byte, err error)
func (BallotKind) String ¶
func (b BallotKind) String() string
type BlockHeader ¶
type BlockHeader interface { Signed GetShellHeader() *ShellHeader GetPayloadHash() *tz.BlockPayloadHash GetPayloadRound() int32 GetProofOfWorkNonce() *tz.Bytes8 GetSeedNonceHash() tz.Option[*tz.CycleNonceHash] }
type BlockMetadata ¶
type BlockMetadata interface { WithBalanceUpdates GetMetadataHeader() *BlockMetadataHeader GetProposer() tz.PublicKeyHash GetBaker() tz.PublicKeyHash GetLevelInfo() *LevelInfo GetVotingPeriodInfo() *VotingPeriodInfo GetNonceHash() tz.Option[*tz.CycleNonceHash] GetConsumedGas() tz.Option[tz.BigUint] GetConsumedMilligas() tz.Option[tz.BigUint] GetDeactivated() []tz.PublicKeyHash GetImplicitOperationsResults() []SuccessfulManagerOperationResult GetProposerConsensusKey() tz.Option[tz.PublicKeyHash] GetBakerConsensusKey() tz.Option[tz.PublicKeyHash] }
type BlockMetadataHeader ¶
type BlockMetadataHeader struct { TestChainStatus TestChainStatus `json:"test_chain_status"` MaxOperationsTTL int32 `json:"max_operations_ttl"` MaxOperationDataLength int32 `json:"max_operation_data_length"` MaxBlockHeaderLength int32 `json:"max_block_header_length"` MaxOperationListLength []*MaxOperationListLength `tz:"dyn,dyn" json:"max_operation_list_length"` }
func (*BlockMetadataHeader) BlockMetadataContents ¶
func (*BlockMetadataHeader) BlockMetadataContents()
type BlockProtocols ¶
type BlockProtocols struct { Protocol *tz.ProtocolHash NextProtocol *tz.ProtocolHash }
type Constants ¶
type Constants interface { GetProofOfWorkNonceSize() uint8 GetNonceLength() uint8 GetMaxAnonOpsPerBlock() uint8 GetMaxOperationDataLength() int32 GetMaxProposalsPerDelegate() uint8 GetMaxMichelineNodeCount() int32 GetMaxMichelineBytesLimit() int32 GetMaxAllowedGlobalConstantsDepth() int32 GetMichelsonMaximumTypeSize() uint16 GetBlocksPerCycle() int32 GetBlocksPerCommitment() int32 GetHardGasLimitPerOperation() tz.BigInt GetHardGasLimitPerBlock() tz.BigInt GetProofOfWorkThreshold() int64 GetOriginationSize() int32 GetCostPerByte() tz.BigUint GetHardStorageLimitPerOperation() tz.BigInt GetQuorumMin() int32 GetQuorumMax() int32 GetMinProposalQuorum() int32 GetMaxOperationsTimeToLive() int16 GetMinimalBlockDelay() int64 GetDelayIncrementPerRound() int64 GetConsensusCommitteeSize() int32 GetConsensusThreshold() int32 GetMinimalParticipationRatio() *Rat GetMaxSlashingPeriod() int32 }
type ContractID ¶
type ContractID interface { tz.Base58Encoder TransactionDestination ContractID() }
func ParseContractID ¶
func ParseContractID(src []byte) (ContractID, error)
type DelegateInfo ¶
type DelegateInfo interface { GetFullBalance() tz.BigUint GetCurrentFrozenDeposits() tz.BigUint GetFrozenDeposits() tz.BigUint GetStakingBalance() tz.BigUint GetFrozenDepositsLimit() tz.Option[tz.BigUint] GetDelegatedContracts() []ContractID GetDelegatedBalance() tz.BigUint GetDeactivated() bool GetGracePeriod() int32 GetVotingPower() tz.Option[int64] GetCurrentBallot() tz.Option[BallotKind] GetCurrentProposals() tz.Option[[]*tz.ProtocolHash] GetRemainingProposals() tz.Option[int32] GetActiveConsensusKey() tz.Option[tz.PublicKeyHash] GetPendingConsensusKeys() tz.Option[[]PendingConsensusKey] }
type DelegatesList ¶
type DelegatesList struct {
Delegates []tz.PublicKeyHash `tz:"dyn" json:"delegates"`
}
type Entrypoint ¶
type Entrypoint interface {
Entrypoint() string
}
type GroupContents ¶
type ImplicitContract ¶
type ImplicitContract struct {
tz.PublicKeyHash
}
func (ImplicitContract) ContractID ¶
func (ImplicitContract) ContractID()
func (ImplicitContract) Eq ¶
func (a ImplicitContract) Eq(b TransactionDestination) bool
func (ImplicitContract) TransactionDestination ¶
func (ImplicitContract) TransactionDestination()
type InternalOperationResult ¶
type InternalOperationResult interface { OperationContents OperationWithResult }
type LiquidityBakingToggleVote ¶
type LiquidityBakingToggleVote int8
const ( LiquidityBakingOn LiquidityBakingToggleVote = iota LiquidityBakingOff LiquidityBakingPass )
type ManagerOperation ¶
type ManagerOperationMetadata ¶
type ManagerOperationMetadata interface { WithBalanceUpdates OperationWithResult GetInternalOperationResults() []InternalOperationResult }
type ManagerOperationResult ¶
type ManagerOperationResultAppliedOrBacktracked ¶
type ManagerOperationResultAppliedOrBacktracked interface { ManagerOperationResult GetResultContents() any }
type MaxOperationListLength ¶
type OperationContents ¶
type OperationContents interface {
OperationKind() string
}
type OperationContentsAndResult ¶
type OperationContentsAndResult interface { OperationContents GetMetadata() any }
type OperationResultApplied ¶
type OperationResultApplied[T any] struct { Contents T `json:"contents"` }
func (*OperationResultApplied[T]) GetResultContents ¶
func (r *OperationResultApplied[T]) GetResultContents() any
func (*OperationResultApplied[T]) IsApplied ¶
func (*OperationResultApplied[T]) IsApplied() bool
func (*OperationResultApplied[T]) MarshalJSON ¶
func (self *OperationResultApplied[T]) MarshalJSON() ([]byte, error)
func (*OperationResultApplied[T]) Status ¶
func (*OperationResultApplied[T]) Status() string
type OperationResultBacktracked ¶
type OperationResultBacktracked[T any] struct { Errors tz.Option[OperationResultErrors] `json:"errors"` Contents T `json:"contents"` }
func (*OperationResultBacktracked[T]) GetResultContents ¶
func (r *OperationResultBacktracked[T]) GetResultContents() any
func (*OperationResultBacktracked[T]) IsApplied ¶
func (*OperationResultBacktracked[T]) IsApplied() bool
func (*OperationResultBacktracked[T]) MarshalJSON ¶
func (self *OperationResultBacktracked[T]) MarshalJSON() ([]byte, error)
func (*OperationResultBacktracked[T]) Status ¶
func (*OperationResultBacktracked[T]) Status() string
type OperationResultErrors ¶
type OperationResultErrors struct {
Errors []Bytes `tz:"dyn" json:"errors"`
}
type OperationResultFailed ¶
type OperationResultFailed OperationResultErrors
func (*OperationResultFailed) IsApplied ¶
func (*OperationResultFailed) IsApplied() bool
func (*OperationResultFailed) MarshalJSON ¶
func (self *OperationResultFailed) MarshalJSON() ([]byte, error)
func (*OperationResultFailed) Status ¶
func (*OperationResultFailed) Status() string
type OperationResultSkipped ¶
type OperationResultSkipped struct{}
func (*OperationResultSkipped) IsApplied ¶
func (*OperationResultSkipped) IsApplied() bool
func (*OperationResultSkipped) MarshalJSON ¶
func (self *OperationResultSkipped) MarshalJSON() ([]byte, error)
func (*OperationResultSkipped) Status ¶
func (*OperationResultSkipped) Status() string
type OperationWithOptionalMetadata ¶
type OperationWithOptionalMetadata[T OperationWithOptionalMetadataContents] struct { Contents T `json:"contents"` }
func (OperationWithOptionalMetadata[T]) GetSignature ¶
func (OperationWithOptionalMetadata[T]) GroupContents ¶
func (OperationWithOptionalMetadata[T]) GroupContents()
func (OperationWithOptionalMetadata[T]) Operations ¶
func (ops OperationWithOptionalMetadata[T]) Operations() []OperationContents
type OperationWithResult ¶
type OperationWithResult interface {
GetResult() ManagerOperationResult
}
type OperationWithSource ¶
type OperationWithSource interface {
GetSource() Address
}
type OperationWithoutMetadata ¶
type OperationWithoutMetadata[T OperationContents] struct { Contents []T `json:"contents"` Signature *tz.GenericSignature `json:"signature"` }
func (*OperationWithoutMetadata[T]) GroupContents ¶
func (*OperationWithoutMetadata[T]) GroupContents()
func (*OperationWithoutMetadata[T]) Operations ¶
func (ops *OperationWithoutMetadata[T]) Operations() []OperationContents
type OperationsGroup ¶
type OperationsGroup interface { GetChainID() *tz.ChainID GetHash() *tz.OperationHash GetBranch() *tz.BlockHash GetContents() GroupContents }
type OperationsGroupImpl ¶
type OperationsGroupImpl[T GroupContents] struct { ChainID *tz.ChainID `json:"chain_id"` Hash *tz.OperationHash `json:"hash"` Branch *tz.BlockHash `tz:"dyn" json:"branch"` Contents T `tz:"dyn" json:"contents"` }
func (*OperationsGroupImpl[T]) GetBranch ¶
func (g *OperationsGroupImpl[T]) GetBranch() *tz.BlockHash
func (*OperationsGroupImpl[T]) GetChainID ¶
func (g *OperationsGroupImpl[T]) GetChainID() *tz.ChainID
func (*OperationsGroupImpl[T]) GetContents ¶
func (g *OperationsGroupImpl[T]) GetContents() GroupContents
func (*OperationsGroupImpl[T]) GetHash ¶
func (g *OperationsGroupImpl[T]) GetHash() *tz.OperationHash
type OperationsList ¶
type OperationsList[T GroupContents] struct { Operations []*OperationsGroupImpl[T] `tz:"dyn,dyn" json:"operations"` // yes, twice }
func (*OperationsList[T]) GetGroups ¶
func (l *OperationsList[T]) GetGroups() []OperationsGroup
type OriginatedContract ¶
type OriginatedContract struct { *tz.ContractHash Padding uint8 }
func (OriginatedContract) ContractID ¶
func (OriginatedContract) ContractID()
func (OriginatedContract) Eq ¶
func (a OriginatedContract) Eq(b TransactionDestination) bool
func (OriginatedContract) OriginatedContractID ¶
func (OriginatedContract) OriginatedContractID()
func (OriginatedContract) TransactionDestination ¶
func (OriginatedContract) TransactionDestination()
type OriginatedContractID ¶
type OriginatedContractID interface { tz.Base58Encoder OriginatedContractID() }
type Parameters ¶
type Parameters interface { GetEntrypoint() string GetValue() expression.Expression }
type PendingConsensusKey ¶
type PendingConsensusKey interface { GetCycle() int32 GetPKH() tz.PublicKeyHash }
type ResultWithPaidStorageSizeDiff ¶
type ResultWithPaidStorageSizeDiff interface { StorageSizeEstimator GetPaidStorageSizeDiff() tz.BigInt }
type ResultWithStorageSize ¶
type ResultWithStorageSize interface { StorageSizeEstimator GetStorageSize() tz.BigInt }
type ShellHeader ¶
type ShellHeader struct { Level int32 `json:"level"` Proto uint8 `json:"proto"` Predecessor *tz.BlockHash `json:"predecessor"` Timestamp tz.Timestamp `json:"timestamp"` ValidationPass uint8 `json:"validation_pass"` OperationsHash *tz.OperationsHash `json:"operations_hash"` Fitness tz.Bytes `tz:"dyn" json:"fitness"` Context *tz.ContextHash `json:"context"` }
type SmartRollupDestination ¶
type SmartRollupDestination struct { *tz.SmartRollupAddress Padding uint8 }
func (SmartRollupDestination) Eq ¶
func (a SmartRollupDestination) Eq(b TransactionDestination) bool
func (SmartRollupDestination) TransactionDestination ¶
func (SmartRollupDestination) TransactionDestination()
type StorageSizeEstimator ¶
type SuccessfulManagerOperationResult ¶
type SuccessfulManagerOperationResult interface { OperationContents ManagerOperationResultAppliedOrBacktracked }
SuccessfulManagerOperationResult is used to represent implicit operations results
type TestChainStatus ¶
type TestChainStatus interface {
TestChainStatus() string
}
type TestChainStatusForking ¶
type TestChainStatusForking struct { Protocol *tz.ProtocolHash `json:"protocol"` Expiration int64 `json:"expiration"` }
func (*TestChainStatusForking) MarshalJSON ¶
func (self *TestChainStatusForking) MarshalJSON() ([]byte, error)
func (TestChainStatusForking) TestChainStatus ¶
func (TestChainStatusForking) TestChainStatus() string
type TestChainStatusNotRunning ¶
type TestChainStatusNotRunning struct{}
func (TestChainStatusNotRunning) MarshalText ¶
func (t TestChainStatusNotRunning) MarshalText() (text []byte, err error)
func (TestChainStatusNotRunning) TestChainStatus ¶
func (TestChainStatusNotRunning) TestChainStatus() string
type TestChainStatusRunning ¶
type TestChainStatusRunning struct { ChainID *tz.ChainID `json:"chain_id,omitempty"` Genesis *tz.BlockHash `json:"genesis,omitempty"` Protocol *tz.ProtocolHash `json:"protocol"` Expiration int64 `json:"expiration"` }
func (*TestChainStatusRunning) MarshalJSON ¶
func (self *TestChainStatusRunning) MarshalJSON() ([]byte, error)
func (TestChainStatusRunning) TestChainStatus ¶
func (TestChainStatusRunning) TestChainStatus() string
type Transaction ¶
type Transaction interface { OperationContents ManagerOperation TransactionBase }
type TransactionBase ¶
type TransactionBase interface { OperationContents OperationWithSource GetAmount() tz.BigUint GetDestination() Address GetParameters() tz.Option[Parameters] }
type TransactionDestination ¶
type TransactionDestination interface { tz.Base58Encoder TransactionDestination() Eq(other TransactionDestination) bool }
func ParseTransactionDestination ¶
func ParseTransactionDestination(src []byte) (TransactionDestination, error)
type TransactionInternalOperationResult ¶
type TransactionInternalOperationResult interface { InternalOperationResult TransactionBase GetNonce() uint16 }
type TxRollupDestination ¶
type TxRollupDestination struct { *tz.TXRollupAddress Padding uint8 }
func (TxRollupDestination) Eq ¶
func (a TxRollupDestination) Eq(b TransactionDestination) bool
func (TxRollupDestination) TransactionDestination ¶
func (TxRollupDestination) TransactionDestination()
type VotingPeriod ¶
type VotingPeriod struct { Index int32 `json:"index"` Kind VotingPeriodKind `json:"kind"` StartPosition int32 `json:"start_position"` }
type VotingPeriodInfo ¶
type VotingPeriodInfo struct { VotingPeriod VotingPeriod `json:"voting_period"` Position int32 `json:"position"` Remaining int32 `json:"remaining"` }
type VotingPeriodKind ¶
type VotingPeriodKind uint8
const ( VotingPeriodProposal VotingPeriodKind = iota VotingPeriodExploration VotingPeriodCooldown VotingPeriodPromotion VotingPeriodAdoption )
func (VotingPeriodKind) MarshalText ¶
func (k VotingPeriodKind) MarshalText() (text []byte, err error)
func (VotingPeriodKind) String ¶
func (k VotingPeriodKind) String() string
type WithBalanceUpdates ¶
type WithBalanceUpdates interface {
GetBalanceUpdates() []BalanceUpdate
}
type ZkRollupDestination ¶
type ZkRollupDestination struct { *tz.ZkRollupAddress Padding uint8 }
func (ZkRollupDestination) Eq ¶
func (a ZkRollupDestination) Eq(b TransactionDestination) bool
func (ZkRollupDestination) TransactionDestination ¶
func (ZkRollupDestination) TransactionDestination()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.