Documentation
¶
Index ¶
- Constants
- Variables
- func IsManager(kind string) bool
- type AccountActivation
- type Applied
- type BalanceUpdate
- type Ballot
- type BigMapDiff
- type CommitmentsAndCiphertexts
- type Constants
- type Content
- type Delegation
- type DoubleBakingEvidence
- type DoubleEndorsementEvidence
- type Endorsement
- type EndorsementMetadata
- type EndorsementOperation
- type EndorsementWithSlot
- type EndorsementWithSlotEntity
- type Failed
- type FailedMonitor
- type HeadMetadata
- type Header
- type InjectOperationRequest
- type InlinedEndorsement
- type InlinedEndorsementOperations
- type Int64StringSlice
- type InternalOperationResults
- type LazyStorageDiff
- type LazyStorageDiffBigMapEntity
- type LazyStorageDiffSaplingEntity
- type LazyStorageDiffUpdate
- type LazyStorageDiffUpdatesSaplingState
- 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) 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) SubscribeOnMempoolRefused(ctx context.Context)
- type NodeRPC
- func (rpc *NodeRPC) ActiveDelegatesWithRolls(opts ...RequestOption) (delegates []string, err error)
- func (rpc *NodeRPC) Constants(opts ...RequestOption) (constants Constants, err error)
- func (rpc *NodeRPC) ContractStorage(block, contract string, output interface{}, opts ...RequestOption) (err error)
- func (rpc *NodeRPC) Counter(contract string, block string, opts ...RequestOption) (counter string, err error)
- func (rpc *NodeRPC) Delegates(active *bool, opts ...RequestOption) (delegates []string, err error)
- func (rpc *NodeRPC) HeadMetadata(block string, opts ...RequestOption) (head HeadMetadata, err error)
- func (rpc *NodeRPC) Header(block string, opts ...RequestOption) (head Header, err error)
- func (rpc *NodeRPC) InjectOperaiton(request InjectOperationRequest, opts ...RequestOption) (hash string, err error)
- func (rpc *NodeRPC) ManagerOperations(block string, opts ...RequestOption) (operations []Operation, err error)
- func (rpc *NodeRPC) Operations(block string, opts ...RequestOption) (operations [][]Operation, err error)
- func (rpc *NodeRPC) PendingOperations(opts ...RequestOption) (res MempoolResponse, err error)
- func (rpc *NodeRPC) StakingBalance(address string, opts ...RequestOption) (balance string, err error)
- func (rpc *NodeRPC) URL() string
- 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) Proposal() (Proposal, error)
- func (op Operation) RegisterGlobalConstant() (RegisterGlobalConstant, error)
- func (op Operation) Reveal() (Reveal, error)
- func (op Operation) SeedNonceRevelation() (SeedNonceRevelation, error)
- func (op Operation) Transaction() (Transaction, error)
- func (op *Operation) UnmarshalJSON(data []byte) error
- type OperationGroup
- type OperationResult
- type Origination
- type Parameters
- type Proposal
- type RegisterGlobalConstant
- type RequestError
- type RequestOption
- type RequestOpts
- type ResultError
- type Reveal
- type SaplingTransactionCiphertext
- type SeedNonceRevelation
- type Transaction
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" )
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 AccountActivation ¶ added in v0.1.33
type AccountActivation struct {
Pkh string `json:"pkh"`
Secret string `json:"secret"`
Metadata *OnlyBalanceUpdatesMetadata `json:"metadata,omitempty"`
}
AccountActivation -
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 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 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"`
}
Constants -
type Content ¶
type Content struct {
Kind string `json:"kind"`
Body stdJSON.RawMessage `json:"-"`
}
Contents -
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 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 Failed ¶
type Failed struct {
Hash string `json:"hash,omitempty"`
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 Failed
FailedMonitor -
func (*FailedMonitor) UnmarshalJSON ¶ added in v0.1.38
func (f *FailedMonitor) UnmarshalJSON(data []byte) error
UnmarshalJSON -
type HeadMetadata ¶ added in v0.1.4
type HeadMetadata 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"`
Level struct {
Level uint64 `json:"level"`
LevelPosition uint64 `json:"level_position"`
Cycle uint64 `json:"cycle"`
CyclePosition uint64 `json:"cycle_position"`
VotingPeriod uint64 `json:"voting_period"`
VotingPeriodPosition uint64 `json:"voting_period_position"`
ExpectedCommitment bool `json:"expected_commitment"`
} `json:"level"`
LevelInfo struct {
Level uint64 `json:"level"`
LevelPosition uint64 `json:"level_position"`
Cycle uint64 `json:"cycle"`
CyclePosition uint64 `json:"cycle_position"`
ExpectedCommitment bool `json:"expected_commitment"`
} `json:"level_info"`
VotingPeriodKind string `json:"voting_period_kind"`
VotingPeriodInfo struct {
VotingPeriod struct {
Index uint64 `json:"index"`
Kind string `json:"kind"`
StartPosition uint64 `json:"start_position"`
} `json:"voting_period"`
Position int `json:"position"`
Remaining int `json:"remaining"`
} `json:"voting_period_info"`
NonceHash interface{} `json:"nonce_hash"`
ConsumedGas string `json:"consumed_gas"`
Deactivated []interface{} `json:"deactivated"`
BalanceUpdates []BalanceUpdate `json:"balance_updates"`
}
HeadMetadata -
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 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 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 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 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"`
}
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) 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) SubscribeOnMempoolRefused ¶ added in v0.1.36
SubscribeOnMempoolRefused -
type NodeRPC ¶
type NodeRPC struct {
// contains filtered or unexported fields
}
NodeRPC -
func (*NodeRPC) ActiveDelegatesWithRolls ¶ added in v0.1.11
func (rpc *NodeRPC) ActiveDelegatesWithRolls(opts ...RequestOption) (delegates []string, err error)
ActiveDelegatesWithRolls -
func (*NodeRPC) Constants ¶
func (rpc *NodeRPC) Constants(opts ...RequestOption) (constants Constants, err error)
Constants -
func (*NodeRPC) ContractStorage ¶ added in v0.1.39
func (rpc *NodeRPC) ContractStorage(block, contract string, output interface{}, opts ...RequestOption) (err error)
ContractStorage -
func (*NodeRPC) Counter ¶ added in v0.1.33
func (rpc *NodeRPC) Counter(contract string, block string, opts ...RequestOption) (counter string, err error)
Counter -
func (*NodeRPC) Delegates ¶ added in v0.1.11
func (rpc *NodeRPC) Delegates(active *bool, opts ...RequestOption) (delegates []string, err error)
Delegates -
func (*NodeRPC) HeadMetadata ¶ added in v0.1.4
func (rpc *NodeRPC) HeadMetadata(block string, opts ...RequestOption) (head HeadMetadata, err error)
HeadMetadata -
func (*NodeRPC) Header ¶ added in v0.1.4
func (rpc *NodeRPC) Header(block string, opts ...RequestOption) (head Header, err error)
Header -
func (*NodeRPC) InjectOperaiton ¶ added in v0.1.33
func (rpc *NodeRPC) InjectOperaiton(request InjectOperationRequest, opts ...RequestOption) (hash string, err error)
InjectOperaiton -
func (*NodeRPC) ManagerOperations ¶ added in v0.1.33
func (rpc *NodeRPC) ManagerOperations(block string, opts ...RequestOption) (operations []Operation, err error)
ManagerOperations -
func (*NodeRPC) Operations ¶ added in v0.1.33
func (rpc *NodeRPC) Operations(block string, opts ...RequestOption) (operations [][]Operation, err error)
Operations -
func (*NodeRPC) PendingOperations ¶
func (rpc *NodeRPC) PendingOperations(opts ...RequestOption) (res MempoolResponse, err error)
PendingOperations -
func (*NodeRPC) StakingBalance ¶ added in v0.1.11
func (rpc *NodeRPC) StakingBalance(address string, opts ...RequestOption) (balance string, err error)
StakingBalance -
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) 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) 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 Proposal ¶ added in v0.1.33
type Proposal struct {
Source string `json:"source"`
Period uint64 `json:"period"`
Proposals []string `json:"proposals"`
}
Proposal -
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 RequestOption ¶ added in v0.1.36
type RequestOption func(*RequestOpts)
RequestOption -
func WithContext ¶ added in v0.1.36
func WithContext(ctx context.Context) RequestOption
WithContext -
type RequestOpts ¶ added in v0.1.36
type RequestOpts struct {
// contains filtered or unexported fields
}
RequestOpts -
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 SeedNonceRevelation ¶ added in v0.1.33
type SeedNonceRevelation struct {
Level uint64 `json:"level"`
Nonce string `json:"nonce"`
Metadata *OnlyBalanceUpdatesMetadata `json:"metadata,omitempty"`
}
SeedNonceRevelation -
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 -