Documentation
¶
Index ¶
- Constants
- type Account
- type AccountMetadata
- type Activation
- type AdditionalProperties
- type Address
- type Attestation
- type AttestationReward
- type Baking
- type Ballot
- type BigMap
- type BigMapJSONSchema
- type BigMapKey
- type BigMapKeyUpdate
- type BigMapUpdate
- type BigMapUpdateContent
- type Block
- type Contract
- type ContractJSONSchema
- type Cycle
- type DalPublishCommitment
- type Delegate
- type Delegation
- type DoubleBaking
- type DoubleConsensus
- type DrainDelegate
- type EntrypointJSONSchema
- type Error
- type Head
- type IncreasePaidStorage
- type JSONSchema
- type Metadata
- type MetadataConstraint
- type Migration
- type NonceRevelation
- type Operation
- type OperationConstraint
- type OriginatedContract
- type Origination
- type Parameters
- type PeriodInfo
- type Preattestation
- type Proposal
- type ProposalAlias
- type Protocol
- type ProtocolConstants
- type ProtocolMetadata
- type Quote
- type RegisterConstant
- type Reveal
- type RevelationPenalty
- type Right
- type SetDepositsLimit
- type SmartRollup
- type SmartRollupAddMessage
- type SmartRollupCement
- type SmartRollupExecute
- type SmartRollupOriginate
- type SmartRollupPublish
- type SmartRollupRecoverBond
- type SmartRollupRefute
- type Software
- type SrCommitmentInfo
- type SrGameInfo
- type Staking
- type Statistics
- type Ticket
- type TicketBalance
- type TicketTransfer
- type Token
- type TokenBalance
- type Transaction
- type Transfer
- type TransferTicket
- type TxRollupCommit
- type TxRollupDispatchTicket
- type TxRollupFinalizeCommitment
- type TxRollupOrigination
- type TxRollupRejection
- type TxRollupRemoveCommitment
- type TxRollupReturnBond
- type TxRollupSubmitBatch
- type UpdateSecondaryKey
- type VdfRevelation
Constants ¶
const ( KindTransaction = "transaction" KindOrigination = "origination" KindAttestation = "attestation" KindPreattestations = "preattestations" KindBallot = "ballot" KindProposal = "proposal" KindDoubleBaking = "double_baking" KindDoubleConsensus = "double_consensus" KindActivation = "activation" KindMigration = "migration" KindNonceRevelation = "nonce_revelation" KindDelegation = "delegation" KindReveal = "reveal" KindRegisterGlobalConstant = "register_constant" KindTransferTicket = "transfer_ticket" KindTxRollupCommit = "tx_rollup_commit" KindRollupDispatchTickets = "tx_rollup_dispatch_tickets" KindRollupFinalizeCommitment = "tx_rollup_finalize_commitment" KindTxRollupOrigination = "tx_rollup_origination" KindTxRollupRejection = "tx_rollup_rejection" KindTxRollupRemoveCommitment = "tx_rollup_remove_commitment" KindRollupReturnBond = "tx_rollup_return_bond" KindRollupSubmitBatch = "tx_rollup_submit_batch" KindSetDepositsLimit = "set_deposits_limit" KindRevelationPenalty = "revelation_penalty" KindBaking = "baking" KindAttestationReward = "attestation_reward " KindVdfRevelation = "vdf_revelation" KindIncreasePaidStorage = "increase_paid_storage" KindUpdateSecondaryKey = "update_secondary_key" KindDrainDelegate = "drain_delegate" KindSrAddMessages = "sr_add_messages" KindSrCement = "sr_cement" KindSrExecute = "sr_execute" KindSrOriginate = "sr_originate" KindSrPublish = "sr_publish" KindSrRecoverBond = "sr_recover_bond" KindSrRefute = "sr_refute" KindDalPublishCommitment = "dal_publish_commitment" KindStaking = "staking" )
kinds
const ( BaseURL = "https://api.tzkt.io" BaseEventsURL = "https://api.tzkt.io/v1/ws" )
urls
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
Type string `json:"type"`
Address string `json:"address"`
Kind string `json:"kind"`
Tzips []string `json:"tzips"`
Alias string `json:"alias"`
Balance int64 `json:"balance"`
Creator Address `json:"creator"`
NumContracts int64 `json:"numContracts"`
NumDelegations int64 `json:"numDelegations"`
NumOriginations int64 `json:"numOriginations"`
NumTransactions int64 `json:"numTransactions"`
NumReveals int64 `json:"numReveals"`
NumMigrations int64 `json:"numMigrations"`
FirstActivity int64 `json:"firstActivity"`
FirstActivityTime time.Time `json:"firstActivityTime"`
LastActivity int64 `json:"lastActivity"`
LastActivityTime time.Time `json:"lastActivityTime"`
TypeHash int64 `json:"typeHash"`
CodeHash int64 `json:"codeHash"`
}
Account -
type AccountMetadata ¶
type AccountMetadata struct {
Address string `json:"address"`
Kind string `json:"kind"`
Alias string `json:"alias"`
Description string `json:"description"`
Site string `json:"site"`
Support string `json:"support"`
Email string `json:"email"`
Twitter string `json:"twitter"`
Telegram string `json:"telegram"`
Discord string `json:"discord"`
Reddit string `json:"reddit"`
Slack string `json:"slack"`
Github string `json:"github"`
Gitlab string `json:"gitlab"`
Instagram string `json:"instagram"`
Facebook string `json:"facebook"`
Medium string `json:"medium"`
}
AccountMetadata -
type Activation ¶
type Activation struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Block string `json:"block"`
Hash string `json:"hash"`
Account Address `json:"account"`
Balance int64 `json:"balance"`
Quote *Quote `json:"quote,omitempty"`
}
Activation -
type AdditionalProperties ¶
type AdditionalProperties struct {
Value *JSONSchema `json:"-"`
}
AdditionalProperties -
func (*AdditionalProperties) UnmarshalJSON ¶
func (props *AdditionalProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON -
type Attestation ¶ added in v0.4.9
type Attestation struct {
Type string `json:"type"`
Block string `json:"block"`
Hash string `json:"hash"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Deposit int64 `json:"deposit"`
Rewards int64 `json:"rewards"`
Slots int `json:"slots"`
Timestamp time.Time `json:"timestamp"`
Delegate Address `json:"delegate"`
Quote *Quote `json:"quote,omitempty"`
}
Attestation -
type AttestationReward ¶ added in v0.4.9
type AttestationReward struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Block string `json:"block"`
Baker *Address `json:"baker"`
Expected int64 `json:"expected"`
RewardDelegated int64 `json:"rewardDelegated"`
RewardStakedOwn int64 `json:"rewardStakedOwn"`
RewardStakedEdge int64 `json:"rewardStakedEdge"`
Quote *Quote `json:"quote,omitempty"`
}
AttestationReward -
type Baking ¶ added in v0.2.15
type Baking struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Block string `json:"block"`
Proposer *Address `json:"proposer"`
Producer *Address `json:"producer"`
PayloadRound int `json:"payloadRound"`
BlockRound int `json:"blockRound"`
Deposit int64 `json:"deposit"`
RewardDelegated int64 `json:"rewardDelegated"`
RewardStakedOwn int64 `json:"rewardStakedOwn"`
RewardStakedEdge int64 `json:"rewardStakedEdge"`
BonusDelegated int64 `json:"bonusDelegated"`
BonusStakedOwn int64 `json:"bonusStakedOwn"`
BonusStakedEdge int64 `json:"bonusStakedEdge"`
Fees int64 `json:"fees"`
Quote *Quote `json:"quote,omitempty"`
}
Baking -
type Ballot ¶
type Ballot struct {
Type string `json:"type"`
Block string `json:"block"`
Hash string `json:"hash"`
Vote string `json:"vote"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Period PeriodInfo `json:"period"`
Proposal ProposalAlias `json:"proposal"`
Delegate Address `json:"delegate"`
VotingPower int64 `json:"votingPower"`
Quote *Quote `json:"quote,omitempty"`
}
Ballot -
type BigMap ¶
type BigMap struct {
Ptr int64 `json:"ptr"`
Contract Address `json:"contract"`
Path string `json:"path"`
Active bool `json:"active"`
FirstLevel uint64 `json:"firstLevel"`
LastLevel uint64 `json:"lastLevel"`
TotalKeys uint64 `json:"totalKeys"`
ActiveKeys uint64 `json:"activeKeys"`
Updates uint64 `json:"updates"`
KeyType stdJSON.RawMessage `json:"keyType"`
ValueType stdJSON.RawMessage `json:"valueType"`
}
BigMap -
type BigMapJSONSchema ¶
type BigMapJSONSchema struct {
Name string `json:"name"`
Path string `json:"path"`
Key JSONSchema `json:"keySchema"`
Value JSONSchema `json:"valueSchema"`
}
BigMapJSONSchema -
type BigMapKey ¶
type BigMapKey struct {
ID uint64 `json:"id"`
Active bool `json:"active"`
Hash string `json:"hash"`
Key string `json:"key"`
Value stdJSON.RawMessage `json:"value"`
FirstLevel uint64 `json:"firstLevel"`
LastLevel uint64 `json:"lastLevel"`
Updates uint64 `json:"updates"`
}
BigMapKey -
type BigMapKeyUpdate ¶
type BigMapKeyUpdate struct {
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Action string `json:"action"`
Value stdJSON.RawMessage `json:"value"`
}
BigMapKeyUpdate -
type BigMapUpdate ¶
type BigMapUpdate struct {
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Bigmap int64 `json:"bigmap"`
Contract Address `json:"contract"`
Path string `json:"path"`
Action string `json:"action"`
Content *BigMapUpdateContent `json:"content,omitempty"`
}
BigMapUpdate -
type BigMapUpdateContent ¶
type BigMapUpdateContent struct {
Hash string `json:"hash"`
Key stdJSON.RawMessage `json:"key"`
Value stdJSON.RawMessage `json:"value"`
}
BigMapUpdateContent -
type Block ¶
type Block struct {
Cycle int64 `json:"cycle"`
Level uint64 `json:"level"`
Hash string `json:"hash"`
Timestamp time.Time `json:"timestamp"`
Proto int64 `json:"proto"`
Validations int64 `json:"validations"`
BlockRound uint64 `json:"blockRound"`
PayloadRound uint64 `json:"payloadRound"`
Deposit int64 `json:"deposit"`
RewardDelegated int64 `json:"rewardDelegated"`
RewardStakedOwn int64 `json:"rewardStakedOwn"`
RewardStakedEdge int64 `json:"rewardStakedEdge"`
BonusDelegated int64 `json:"bonusDelegated"`
BonusStakedOwn int64 `json:"bonusStakedOwn"`
BonusStakedEdge int64 `json:"bonusStakedEdge"`
Fees int64 `json:"fees"`
NonceRevealed bool `json:"nonceRevealed"`
LbToggleEma uint64 `json:"lbToggleEma"`
}
Block -
type Contract ¶
type Contract struct {
ID int `json:"id"`
Type string `json:"type"`
Address string `json:"address"`
Kind string `json:"kind"`
Tzips []string `json:"tzips"`
Balance int `json:"balance"`
Creator struct {
Alias string `json:"alias"`
Address string `json:"address"`
} `json:"creator"`
NumContracts int `json:"numContracts"`
ActiveTokensCount int `json:"activeTokensCount"`
TokenBalancesCount int `json:"tokenBalancesCount"`
TokenTransfersCount int `json:"tokenTransfersCount"`
NumDelegations int `json:"numDelegations"`
NumOriginations int `json:"numOriginations"`
NumTransactions int `json:"numTransactions"`
NumReveals int `json:"numReveals"`
NumMigrations int `json:"numMigrations"`
TransferTicketCount int `json:"transferTicketCount"`
FirstActivity int `json:"firstActivity"`
FirstActivityTime time.Time `json:"firstActivityTime"`
LastActivity int `json:"lastActivity"`
LastActivityTime time.Time `json:"lastActivityTime"`
TypeHash int `json:"typeHash"`
CodeHash int `json:"codeHash"`
}
Contract -
type ContractJSONSchema ¶
type ContractJSONSchema struct {
Storage JSONSchema `json:"storageSchema"`
Entrypoints []EntrypointJSONSchema `json:"entrypoints"`
BigMaps []BigMapJSONSchema `json:"bigMaps"`
}
ContractJSONSchema -
type Cycle ¶ added in v0.2.26
type Cycle struct {
Index uint64 `json:"index"`
FirstLevel uint64 `json:"firstLevel"`
StartTime time.Time `json:"startTime"`
LastLevel uint64 `json:"lastLevel"`
EndTime time.Time `json:"endTime"`
SnapshotLevel uint64 `json:"snapshotLevel"`
RandomSeed string `json:"randomSeed,omitempty"`
TotalBakers uint64 `json:"totalBakers"`
TotalBakingPower uint64 `json:"totalBakingPower,omitempty"`
BlockReward uint64 `json:"blockReward,omitempty"`
BlockBonusPerSlot uint64 `json:"blockBonusPerSlot,omitempty"`
AttestationRewardPerSlot uint64 `json:"attestationRewardPerSlot,omitempty"`
NonceRevelationReward uint64 `json:"nonceRevelationReward,omitempty"`
VdfRevelationReward uint64 `json:"vdfRevelationReward,omitempty"`
DalAttestationRewardPerShard uint64 `json:"dalAttestationRewardPerShard,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
Cycle -
type DalPublishCommitment ¶ added in v0.4.1
type DalPublishCommitment struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Hash string `json:"hash"`
Sender *Address `json:"sender"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
BakerFee uint64 `json:"bakerFee"`
Slot int `json:"slot"`
Commitment string `json:"commitment"`
Status string `json:"status"`
}
DalPublishCommitment -
type Delegate ¶
type Delegate struct {
Type string `json:"type"`
Alias string `json:"alias"`
Address string `json:"address"`
PublicKey string `json:"publicKey"`
Balance int64 `json:"balance"`
Counter int64 `json:"counter"`
ActivationLevel int64 `json:"activationLevel"`
StakingBalance int64 `json:"stakingBalance"`
NumContracts int64 `json:"numContracts"`
NumDelegators int64 `json:"numDelegators"`
NumBlocks int64 `json:"numBlocks"`
NumAttestations int64 `json:"numAttestations"`
NumBallots int64 `json:"numBallots"`
NumProposals int64 `json:"numProposals"`
NumActivations int64 `json:"numActivations"`
NumDoubleBaking int64 `json:"numDoubleBaking"`
NumDoubleConsensus int64 `json:"numDoubleConsensus"`
NumNonceRevelations int64 `json:"numNonceRevelations"`
NumRevelationPenalties int64 `json:"numRevelationPenalties"`
NumDelegations int64 `json:"numDelegations"`
NumOriginations int64 `json:"numOriginations"`
NumTransactions int64 `json:"numTransactions"`
NumReveals int64 `json:"numReveals"`
NumMigrations int64 `json:"numMigrations"`
FirstActivity int64 `json:"firstActivity"`
LastActivity int64 `json:"lastActivity"`
FirstActivityTime time.Time `json:"firstActivityTime"`
LastActivityTime time.Time `json:"lastActivityTime"`
ActivationTime time.Time `json:"activationTime"`
Software Software `json:"software"`
Active bool `json:"active"`
Revealed bool `json:"revealed"`
}
Delegate -
type Delegation ¶
type Delegation struct {
Block string `json:"block"`
Hash string `json:"hash"`
Type string `json:"type"`
Status string `json:"status"`
Sender *Address `json:"sender,omitempty"`
NewDelegate *Address `json:"newDelegate,omitempty"`
Initiator *Address `json:"initiator,omitempty"`
PrevDelegate *Address `json:"prevDelegate,omitempty"`
Timestamp time.Time `json:"timestamp"`
Amount decimal.Decimal `json:"amount"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
BakerFee uint64 `json:"bakerFee"`
Nonce *uint64 `json:"nonce,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
Delegation -
type DoubleBaking ¶
type DoubleBaking struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Block string `json:"block"`
Hash string `json:"hash"`
AccusedLevel uint64 `json:"accusedLevel"`
SlashedLevel uint64 `json:"slashedLevel"`
Accuser *Address `json:"accuser"`
Reward uint64 `json:"reward"`
Offender *Address `json:"offender"`
LostStaked uint64 `json:"lostStaked"`
LostUnstaked uint64 `json:"lostUnstaked"`
LostExternalStaked uint64 `json:"lostExternalStaked"`
LostExternalUnstaked uint64 `json:"lostExternalUnstaked"`
Quote *Quote `json:"quote,omitempty"`
}
DoubleBaking -
type DoubleConsensus ¶ added in v0.4.9
type DoubleConsensus struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Block string `json:"block"`
Hash string `json:"hash"`
AccusedLevel uint64 `json:"accusedLevel"`
Accuser *Address `json:"accuser"`
Reward uint64 `json:"reward"`
Offender *Address `json:"offender"`
LostStaked uint64 `json:"lostStaked"`
LostUnstaked uint64 `json:"lostUnstaked"`
LostExternalStaked uint64 `json:"lostExternalStaked"`
LostExternalUnstaked uint64 `json:"lostExternalUnstaked"`
Quote *Quote `json:"quote,omitempty"`
}
DoubleConsensus -
type DrainDelegate ¶ added in v0.2.25
type DrainDelegate struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Block string `json:"block"`
Hash string `json:"hash"`
Delegate Address `json:"delegate"`
Target Address `json:"target"`
Amount uint64 `json:"amount"`
Fee uint64 `json:"fee"`
Quote *Quote `json:"quote,omitempty"`
}
DrainDelegate -
type EntrypointJSONSchema ¶
type EntrypointJSONSchema struct {
Name string `json:"name"`
Parameter JSONSchema `json:"parameterSchema"`
}
EntrypointJSONSchema -
type Head ¶
type Head struct {
Chain string `json:"chain"`
ChainID string `json:"chainId"`
Cycle int64 `json:"cycle"`
Level uint64 `json:"level"`
Hash string `json:"hash"`
Protocol string `json:"protocol"`
Timestamp time.Time `json:"timestamp"`
VotingEpoch int64 `json:"votingEpoch"`
VotingPeriod int64 `json:"votingPeriod"`
KnownLevel uint64 `json:"knownLevel"`
LastSync time.Time `json:"lastSync"`
Synced bool `json:"synced"`
QuoteLevel uint64 `json:"quoteLevel"`
QuoteBtc decimal.Decimal `json:"quoteBtc"`
QuoteEur decimal.Decimal `json:"quoteEur"`
QuoteUsd decimal.Decimal `json:"quoteUsd"`
QuoteCny decimal.Decimal `json:"quoteCny"`
QuoteJpy decimal.Decimal `json:"quoteJpy"`
QuoteKrw decimal.Decimal `json:"quoteKrw"`
QuoteEth decimal.Decimal `json:"quoteEth"`
}
Head -
type IncreasePaidStorage ¶ added in v0.2.22
type IncreasePaidStorage struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Block string `json:"block"`
Hash string `json:"hash"`
Sender Address `json:"sender"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
StorageUsed uint64 `json:"storageUsed"`
BakerFee uint64 `json:"bakerFee"`
StorageFee uint64 `json:"storageFee"`
Status string `json:"status"`
Contract Address `json:"contract"`
Amount decimal.Decimal `json:"amount"`
}
IncreasePaidStorage -
type JSONSchema ¶
type JSONSchema struct {
Schema string `json:"$schema,omitempty"`
Type string `json:"type,omitempty"`
Comment string `json:"$comment,omitempty"`
Required []string `json:"required,omitempty"`
Properties map[string]JSONSchema `json:"properties,omitempty"`
OneOf []JSONSchema `json:"oneOf"`
AdditionalProperties AdditionalProperties `json:"additionalProperties,omitempty"`
PropertyNames *JSONSchema `json:"propertyNames,omitempty"`
Items *JSONSchema `json:"items,omitempty"`
}
JSONSchema -
type Metadata ¶
type Metadata[T MetadataConstraint] struct { Key string `json:"key"` Value T `json:"extras"` }
Metadata -
type MetadataConstraint ¶
type MetadataConstraint interface {
AccountMetadata
}
MetadataConstraint -
type Migration ¶
type Migration struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Block string `json:"block"`
Kind string `json:"kind"`
Account Address `json:"account"`
BalanceChange int64 `json:"balanceChange"`
}
Migration -
type NonceRevelation ¶
type NonceRevelation struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Block string `json:"block"`
Hash string `json:"hash"`
Baker Address `json:"baker"`
Sender Address `json:"sender"`
RevealedLevel int `json:"revealedLevel"`
RevealedCycle int `json:"revealedCycle"`
Nonce string `json:"nonce"`
RewardDelegated int64 `json:"rewardDelegated"`
RewardStakedOwn int64 `json:"rewardStakedOwn"`
RewardStakedEdge int64 `json:"rewardStakedEdge"`
Quote *Quote `json:"quote,omitempty"`
}
NonceRevelation -
type Operation ¶
type Operation struct {
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Hash string `json:"hash"`
Type string `json:"type"`
Block string `json:"block"`
Delegate *Address `json:"delegate,omitempty"`
GasUsed *uint64 `json:"gasUsed,omitempty"`
BakerFee *uint64 `json:"bakerFee,omitempty"`
Parameters *Parameters `json:"parameter,omitempty"`
}
Operation -
type OperationConstraint ¶
type OperationConstraint interface {
Transaction | Origination | Delegation | Reveal | RegisterConstant | Attestation | Preattestation |
Ballot | Proposal | Activation | TransferTicket | TxRollupCommit | TxRollupDispatchTicket |
TxRollupFinalizeCommitment | TxRollupOrigination | TxRollupRejection | TxRollupRemoveCommitment |
TxRollupReturnBond | TxRollupSubmitBatch | NonceRevelation | DoubleBaking | DoubleConsensus | SetDepositsLimit |
Baking | RevelationPenalty | AttestationReward | VdfRevelation | IncreasePaidStorage | DrainDelegate |
UpdateSecondaryKey | SmartRollupAddMessage | SmartRollupCement | SmartRollupExecute | SmartRollupOriginate |
SmartRollupPublish | SmartRollupRefute | SmartRollupRecoverBond | DalPublishCommitment | Staking
}
OperationConstraint -
type OriginatedContract ¶ added in v0.2.21
type OriginatedContract struct {
Kind string `json:"kind"`
Alias string `json:"alias,omitempty"`
Address string `json:"address,omitempty"`
TypeHash int `json:"typeHash"`
CodeHash int `json:"codeHash"`
}
OriginatedContract -
type Origination ¶
type Origination struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Block string `json:"block"`
Hash string `json:"hash"`
Counter uint64 `json:"counter"`
Sender *Address `json:"sender"`
Initiator *Address `json:"initiator"`
Nonce *uint64 `json:"nonce,omitempty"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
StorageUsed uint64 `json:"storageUsed"`
BakerFee uint64 `json:"bakerFee"`
StorageFee uint64 `json:"storageFee"`
AllocationFee uint64 `json:"allocationFee"`
ContractBalance uint64 `json:"contractBalance"`
ContractManager *Address `json:"contractManager"`
ContractDelegate *Address `json:"contractDelegate"`
Code stdJSON.RawMessage `json:"code"`
Storage stdJSON.RawMessage `json:"storage"`
Diffs stdJSON.RawMessage `json:"diffs"`
Status string `json:"status"`
Originated *OriginatedContract `json:"originatedContract,omitempty"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
Origination -
type Parameters ¶
type Parameters struct {
Entrypoint string `json:"entrypoint"`
Value stdJSON.RawMessage `json:"value"`
}
Parameters -
type PeriodInfo ¶
type PeriodInfo struct {
Index int `json:"index"`
Epoch int `json:"epoch"`
Kind string `json:"kind"`
FirstLevel int `json:"firstLevel"`
LastLevel int `json:"lastLevel"`
}
PeriodInfo -
type Preattestation ¶ added in v0.4.9
type Preattestation struct {
Type string `json:"type"`
Block string `json:"block"`
Hash string `json:"hash"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Delegate Address `json:"delegate"`
Slots int `json:"slots"`
Quote *Quote `json:"quote,omitempty"`
}
Preattestation -
type Proposal ¶
type Proposal struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Block string `json:"block"`
Hash string `json:"hash"`
Period PeriodInfo `json:"period"`
Proposal ProposalAlias `json:"proposal"`
Delegate Address `json:"delegate"`
VotingPower int64 `json:"votingPower"`
Duplicated bool `json:"duplicated"`
Quote *Quote `json:"quote,omitempty"`
}
Proposal -
type ProposalAlias ¶
ProposalAlias -
type Protocol ¶ added in v0.2.17
type Protocol struct {
Code int64 `json:"code"`
Hash string `json:"hash"`
FirstLevel uint64 `json:"firstLevel"`
FirstCycle uint64 `json:"firstCycle"`
FirstCycleLevel uint64 `json:"firstCycleLevel"`
LastLevel uint64 `json:"lastLevel,omitempty"`
Constants *ProtocolConstants `json:"constants,omitempty"`
Metadata *ProtocolMetadata `json:"metadata,omitempty"`
}
Protocol -
type ProtocolConstants ¶ added in v0.2.17
type ProtocolConstants struct {
RampUpCycles int64 `json:"rampUpCycles"`
NoRewardCycles int64 `json:"noRewardCycles"`
ConsensusRightsDelay int64 `json:"consensusRightsDelay"`
DelegateParametersActivationDelay int64 `json:"delegateParametersActivationDelay"`
BlocksPerCycle int64 `json:"blocksPerCycle"`
BlocksPerCommitment int64 `json:"blocksPerCommitment"`
BlocksPerSnapshot int64 `json:"blocksPerSnapshot"`
BlocksPerVoting int64 `json:"blocksPerVoting"`
TimeBetweenBlocks int64 `json:"timeBetweenBlocks"`
AttestersPerBlock int64 `json:"attestersPerBlock"`
HardOperationGasLimit int64 `json:"hardOperationGasLimit"`
HardOperationStorageLimit int64 `json:"hardOperationStorageLimit"`
HardBlockGasLimit int64 `json:"hardBlockGasLimit"`
MinimalStake int64 `json:"minimalStake"`
MinimalFrozenStake int64 `json:"minimalFrozenStake"`
BlockDeposit int64 `json:"blockDeposit"`
BlockReward []int64 `json:"blockReward"`
AttestationDeposit int64 `json:"attestationDeposit"`
AttestationReward []int64 `json:"attestationReward"`
OriginationSize int64 `json:"originationSize"`
ByteCost int64 `json:"byteCost"`
ProposalQuorum int64 `json:"proposalQuorum"`
BallotQuorumMin int64 `json:"ballotQuorumMin"`
BallotQuorumMax int64 `json:"ballotQuorumMax"`
LbToggleThreshold int64 `json:"lbToggleThreshold"`
ConsensusThreshold int64 `json:"consensusThreshold"`
MinParticipationNumerator int64 `json:"minParticipationNumerator"`
MinParticipationDenominator int64 `json:"minParticipationDenominator"`
DenunciationPeriod int64 `json:"denunciationPeriod"`
SlashingDelay int64 `json:"slashingDelay"`
MaxDelegatedOverFrozenRatio int64 `json:"maxDelegatedOverFrozenRatio"`
MaxExternalOverOwnStakeRatio int64 `json:"maxExternalOverOwnStakeRatio"`
SmartRollupOriginationSize int64 `json:"smartRollupOriginationSize"`
SmartRollupStakeAmount int64 `json:"smartRollupStakeAmount"`
SmartRollupChallengeWindow int64 `json:"smartRollupChallengeWindow"`
SmartRollupCommitmentPeriod int64 `json:"smartRollupCommitmentPeriod"`
SmartRollupTimeoutPeriod int64 `json:"smartRollupTimeoutPeriod"`
DalNumberOfShards int64 `json:"dalNumberOfShards"`
Dictator string `json:"dictator"`
}
ProtocolConstants -
type ProtocolMetadata ¶ added in v0.2.17
ProtocolMetadata -
type Quote ¶
type Quote struct {
BTC decimal.Decimal `json:"btc,omitempty"`
EUR decimal.Decimal `json:"eur,omitempty"`
USD decimal.Decimal `json:"usd,omitempty"`
CNY decimal.Decimal `json:"cny,omitempty"`
JPY decimal.Decimal `json:"jpy,omitempty"`
KRW decimal.Decimal `json:"krw,omitempty"`
ETH decimal.Decimal `json:"eth,omitempty"`
GBP decimal.Decimal `json:"gbp,omitempty"`
}
Quote -
type RegisterConstant ¶
type RegisterConstant struct {
Type string `json:"type"`
Block string `json:"block"`
Hash string `json:"hash"`
Status string `json:"status"`
Address string `json:"address"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
StorageUsed uint64 `json:"storageUsed"`
BakerFee uint64 `json:"bakerFee"`
StorageFee uint64 `json:"storageFee"`
Value stdJSON.RawMessage `json:"value"`
Timestamp time.Time `json:"timestamp"`
Sender Address `json:"sender"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
RegisterConstant -
type Reveal ¶
type Reveal struct {
Type string `json:"type"`
Status string `json:"status"`
Block string `json:"block"`
Hash string `json:"hash"`
Timestamp time.Time `json:"timestamp"`
Sender *Address `json:"sender,omitempty"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
BakerFee uint64 `json:"bakerFee"`
PublicKey string `json:"publicKey,omitempty"`
Nonce *uint64 `json:"nonce,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
Reveal -
type RevelationPenalty ¶ added in v0.2.15
type RevelationPenalty struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Block string `json:"block"`
Baker *Address `json:"baker"`
MissedLevel int64 `json:"missedLevel"`
Loss int64 `json:"loss"`
Quote *Quote `json:"quote,omitempty"`
}
RevelationPenalty -
type Right ¶
type Right struct {
Type string `json:"type"`
Cycle uint64 `json:"cycle"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Slots uint64 `json:"slots"`
Baker Address `json:"baker"`
Status string `json:"status"`
}
Right -
type SetDepositsLimit ¶
type SetDepositsLimit struct {
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Type string `json:"type"`
Block string `json:"block"`
Hash string `json:"hash"`
Sender Address `json:"sender"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
BakerFee uint64 `json:"bakerFee"`
Status string `json:"status"`
Limit string `json:"limit"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
SetDepositsLimit -
type SmartRollup ¶ added in v0.3.4
type SmartRollup struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Address string `json:"address"`
Alias string `json:"alias"`
Creator Address `json:"creator"`
PvmKind string `json:"pvmKind"`
GenesisCommitment string `json:"genesisCommitment"`
LastCommitment string `json:"lastCommitment"`
InboxLevel uint64 `json:"inboxLevel"`
TotalStakers uint64 `json:"totalStakers"`
ActiveStakers uint64 `json:"activeStakers"`
ExecutedCommitments uint64 `json:"executedCommitments"`
CementedCommitments uint64 `json:"cementedCommitments"`
PendingCommitments uint64 `json:"pendingCommitments"`
RefutedCommitments uint64 `json:"refutedCommitments"`
OrphanCommitments uint64 `json:"orphanCommitments"`
SmartRollupBonds uint64 `json:"smartRollupBonds"`
ActiveTokensCount uint64 `json:"activeTokensCount"`
TokenBalancesCount uint64 `json:"tokenBalancesCount"`
TokenTransfersCount uint64 `json:"tokenTransfersCount"`
NumTransactions uint64 `json:"numTransactions"`
TransferTicketCount uint64 `json:"transferTicketCount"`
SmartRollupCementCount uint64 `json:"smartRollupCementCount"`
SmartRollupExecuteCount uint64 `json:"smartRollupExecuteCount"`
SmartRollupOriginateCount uint64 `json:"smartRollupOriginateCount"`
SmartRollupPublishCount uint64 `json:"smartRollupPublishCount"`
SmartRollupRecoverBondCount uint64 `json:"smartRollupRecoverBondCount"`
SmartRollupRefuteCount uint64 `json:"smartRollupRefuteCount"`
RefutationGamesCount uint64 `json:"refutationGamesCount"`
ActiveRefutationGamesCount uint64 `json:"activeRefutationGamesCount"`
FirstActivity uint64 `json:"firstActivity"`
FirstActivityTime time.Time `json:"firstActivityTime"`
LastActivity uint64 `json:"lastActivity"`
LastActivityTime time.Time `json:"lastActivityTime"`
}
type SmartRollupAddMessage ¶ added in v0.2.28
type SmartRollupAddMessage struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Hash string `json:"hash"`
Sender *Address `json:"sender,omitempty"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
BakerFee uint64 `json:"bakerFee"`
Status string `json:"status"`
MessagesCount uint64 `json:"messagesCount"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
SmartRollupAddMessage -
type SmartRollupCement ¶ added in v0.2.28
type SmartRollupCement struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Hash string `json:"hash"`
Sender *Address `json:"sender,omitempty"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
BakerFee uint64 `json:"bakerFee"`
Status string `json:"status"`
Rollup *Address `json:"rollup,omitempty"`
Commitment *SrCommitmentInfo `json:"commitment,omitempty"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
SmartRollupCement -
type SmartRollupExecute ¶ added in v0.2.28
type SmartRollupExecute struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Hash string `json:"hash"`
Sender *Address `json:"sender,omitempty"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
StorageUsed uint64 `json:"storageUsed"`
BakerFee uint64 `json:"bakerFee"`
StorageFee uint64 `json:"storageFee"`
Status string `json:"status"`
Rollup *Address `json:"rollup,omitempty"`
Commitment *SrCommitmentInfo `json:"commitment,omitempty"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
SmartRollupExecute -
type SmartRollupOriginate ¶ added in v0.2.28
type SmartRollupOriginate struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Hash string `json:"hash"`
Sender *Address `json:"sender,omitempty"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
StorageUsed uint64 `json:"storageUsed"`
BakerFee uint64 `json:"bakerFee"`
StorageFee uint64 `json:"storageFee"`
Status string `json:"status"`
Rollup *Address `json:"rollup,omitempty"`
ParameterType stdJSON.RawMessage `json:"parameterType,omitempty"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
SmartRollupOriginate -
type SmartRollupPublish ¶ added in v0.2.28
type SmartRollupPublish struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Hash string `json:"hash"`
Sender *Address `json:"sender,omitempty"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
BakerFee uint64 `json:"bakerFee"`
Status string `json:"status"`
Rollup *Address `json:"rollup,omitempty"`
Commitment *SrCommitmentInfo `json:"commitment,omitempty"`
Bond uint64 `json:"bond"`
}
SmartRollupPublish -
type SmartRollupRecoverBond ¶ added in v0.2.28
type SmartRollupRecoverBond struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Hash string `json:"hash"`
Sender *Address `json:"sender,omitempty"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
BakerFee uint64 `json:"bakerFee"`
Status string `json:"status"`
Rollup *Address `json:"rollup,omitempty"`
Staker *Address `json:"staker,omitempty"`
Bond uint64 `json:"bond"`
}
SmartRollupRecoverBond -
type SmartRollupRefute ¶ added in v0.2.28
type SmartRollupRefute struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Hash string `json:"hash"`
Sender *Address `json:"sender,omitempty"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
BakerFee uint64 `json:"bakerFee"`
Status string `json:"status"`
Rollup *Address `json:"rollup,omitempty"`
Game *SrGameInfo `json:"game"`
Move string `json:"move"`
GameStatus string `json:"gameStatus"`
}
SmartRollupRefute
type SrCommitmentInfo ¶ added in v0.2.28
type SrCommitmentInfo struct {
ID uint64 `json:"id"`
Initiator *Address `json:"initiator,omitempty"`
InboxLevel uint64 `json:"inboxLevel"`
State string `json:"state"`
Hash string `json:"hash"`
Ticks uint64 `json:"ticks"`
FirstLevel uint64 `json:"firstLevel"`
FirstTime string `json:"firstTime"`
}
SrCommitmentInfo -
type SrGameInfo ¶ added in v0.2.28
type SrGameInfo struct {
ID uint64 `json:"id"`
Initiator *Address `json:"initiator,omitempty"`
InitiatorCommitment *SrCommitmentInfo `json:"initiatorCommitment,omitempty"`
Opponent *Address `json:"opponent,omitempty"`
OpponentCommitment *SrCommitmentInfo `json:"opponentCommitment,omitempty"`
InitiatorReward uint64 `json:"initiatorReward"`
InitiatorLoss uint64 `json:"initiatorLoss"`
OpponentReward uint64 `json:"opponentReward"`
OpponentLoss uint64 `json:"opponentLoss"`
}
SrGameInfo -
type Staking ¶ added in v0.4.9
type Staking struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Hash string `json:"hash"`
Sender *Address `json:"sender"`
Staker *Address `json:"staker"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
BakerFee uint64 `json:"bakerFee"`
Action string `json:"action"`
RequestedAmount uint64 `json:"requestedAmount"`
Amount uint64 `json:"amount"`
Baker *Address `json:"baker"`
StakingUpdatesCount uint64 `json:"stakingUpdatesCount"`
Status string `json:"status"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
Staking -
type Statistics ¶ added in v0.2.20
type Statistics struct {
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
TotalSupply uint64 `json:"totalSupply"`
CirculatingSupply uint64 `json:"circulatingSupply"`
TotalBootstrapped uint64 `json:"totalBootstrapped"`
TotalCommitments uint64 `json:"totalCommitments"`
TotalActivated uint64 `json:"totalActivated"`
TotalCreated uint64 `json:"totalCreated"`
TotalBurned uint64 `json:"totalBurned"`
TotalBanished uint64 `json:"totalBanished"`
TotalFrozen uint64 `json:"totalFrozen"`
TotalRollupBonds uint64 `json:"totalRollupBonds"`
Quote *Quote `json:"quote,omitempty"`
}
Statistics -
type Ticket ¶ added in v0.3.5
type Ticket struct {
ID int64 `json:"id"`
Ticketer Address `json:"ticketer"`
RawType json.RawMessage `json:"rawType"`
RawContent json.RawMessage `json:"rawContent"`
Content string `json:"content"`
TypeHash int64 `json:"typeHash"`
ContentHash int64 `json:"contentHash"`
FirstMinter Address `json:"firstMinter"`
FirstLevel uint64 `json:"firstLevel"`
FirstTime time.Time `json:"firstTime"`
LastLevel uint64 `json:"lastLevel"`
LastTime time.Time `json:"lastTime"`
TransfersCount int64 `json:"transfersCount"`
BalancesCount int64 `json:"balancesCount"`
HoldersCount int64 `json:"holdersCount"`
TotalMinted string `json:"totalMinted"`
TotalBurned string `json:"totalBurned"`
TotalSupply string `json:"totalSupply"`
}
type TicketBalance ¶ added in v0.3.5
type TicketBalance struct {
ID int64 `json:"id"`
Ticket Ticket `json:"ticket"`
Account Address `json:"account"`
Balance string `json:"balance"`
TransfersCount int64 `json:"transfersCount"`
FirstLevel uint64 `json:"firstLevel"`
FirstTime time.Time `json:"firstTime"`
LastLevel uint64 `json:"lastLevel"`
LastTime time.Time `json:"lastTime"`
}
type TicketTransfer ¶ added in v0.3.5
type Token ¶
type Token struct {
ID uint64 `json:"id"`
Contract Address `json:"contract"`
TokenID string `json:"tokenId"`
Standard string `json:"standard"`
Metadata stdJSON.RawMessage `json:"metadata,omitempty"`
FirstLevel uint64 `json:"firstLevel"`
FirstTime time.Time `json:"firstTime"`
LastLevel uint64 `json:"lastLevel"`
LastTime time.Time `json:"lastTime"`
TransfersCount uint64 `json:"transfersCount"`
BalancesCount uint64 `json:"balancesCount"`
HoldersCount uint64 `json:"holdersCount"`
TotalMinted string `json:"totalMinted"`
TotalBurned string `json:"totalBurned"`
TotalSupply string `json:"totalSupply"`
}
Token -
type TokenBalance ¶ added in v0.2.26
type TokenBalance struct {
ID uint64 `json:"id"`
Account *Address `json:"account,omitempty"`
Token *Token `json:"token,omitempty"`
Balance string `json:"balance,omitempty"`
TransfersCount uint64 `json:"transfersCount"`
FirstLevel uint64 `json:"firstLevel"`
FirstTime time.Time `json:"firstTime"`
LastLevel uint64 `json:"lastLevel"`
LastTime time.Time `json:"lastTime"`
}
TokenBalance -
type Transaction ¶
type Transaction struct {
Type string `json:"type"`
Sender Address `json:"sender"`
Target Address `json:"target"`
Initiator Address `json:"initiator"`
Amount decimal.Decimal `json:"amount"`
Parameter *Parameters `json:"parameter,omitempty"`
Timestamp time.Time `json:"timestamp"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
StorageUsed uint64 `json:"storageUsed"`
BakerFee uint64 `json:"bakerFee"`
StorageFee uint64 `json:"storageFee"`
AllocationFee uint64 `json:"allocationFee"`
Status string `json:"status"`
Parameters string `json:"parameters"`
Block string `json:"block"`
Hash string `json:"hash"`
HasInternals bool `json:"hasInternals"`
Nonce *uint64 `json:"nonce,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
Transaction -
type Transfer ¶
type Transfer struct {
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Token Token `json:"token"`
From *Address `json:"from,omitempty"`
To *Address `json:"to,omitempty"`
Amount string `json:"amount"`
TransactionID *uint64 `json:"transactionId,omitempty"`
OriginationID *uint64 `json:"originationId,omitempty"`
MigrationID *uint64 `json:"migrationId,omitempty"`
}
Transfer -
type TransferTicket ¶
type TransferTicket struct {
Type string `json:"type"`
Block string `json:"block"`
Hash string `json:"hash"`
Entrypoint string `json:"entrypoint"`
Status string `json:"status"`
Timestamp time.Time `json:"timestamp"`
Sender Address `json:"sender"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
StorageUsed uint64 `json:"storageUsed"`
BakerFee uint64 `json:"bakerFee"`
StorageFee uint64 `json:"storageFee"`
Target Address `json:"target"`
Ticketer Address `json:"ticketer"`
Amount decimal.Decimal `json:"amount"`
ContentType stdJSON.RawMessage `json:"contentType"`
Content stdJSON.RawMessage `json:"content"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
TransferTicket -
type TxRollupCommit ¶
type TxRollupCommit struct {
Timestamp time.Time `json:"timestamp"`
Type string `json:"type"`
Block string `json:"block"`
Hash string `json:"hash"`
Status string `json:"status"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
StorageUsed uint64 `json:"storageUsed"`
BakerFee uint64 `json:"bakerFee"`
Bond uint64 `json:"bond"`
Sender Address `json:"sender"`
Rollup Address `json:"rollup"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
TxRollupCommit -
type TxRollupDispatchTicket ¶
type TxRollupDispatchTicket struct {
Timestamp time.Time `json:"timestamp"`
Type string `json:"type"`
Block string `json:"block"`
Hash string `json:"hash"`
Status string `json:"status"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
StorageUsed uint64 `json:"storageUsed"`
BakerFee uint64 `json:"bakerFee"`
StorageFee uint64 `json:"storageFee"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Sender Address `json:"sender"`
Rollup Address `json:"rollup"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
TxRollupDispatchTicket -
type TxRollupFinalizeCommitment ¶
type TxRollupFinalizeCommitment struct {
Type string `json:"type"`
Block string `json:"block"`
Hash string `json:"hash"`
Status string `json:"status"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
StorageUsed uint64 `json:"storageUsed"`
BakerFee uint64 `json:"bakerFee"`
Timestamp time.Time `json:"timestamp"`
Sender Address `json:"sender"`
Rollup Address `json:"rollup"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
TxRollupFinalizeCommitment -
type TxRollupOrigination ¶
type TxRollupOrigination struct {
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
StorageUsed uint64 `json:"storageUsed"`
BakerFee uint64 `json:"bakerFee"`
AllocationFee uint64 `json:"allocationFee"`
Rollup Address `json:"rollup"`
Sender Address `json:"sender"`
Timestamp time.Time `json:"timestamp"`
Block string `json:"block"`
Hash string `json:"hash"`
Type string `json:"type"`
Status string `json:"status"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
TxRollupOrigination -
type TxRollupRejection ¶
type TxRollupRejection struct {
Type string `json:"type"`
Block string `json:"block"`
Hash string `json:"hash"`
Status string `json:"status"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
StorageUsed uint64 `json:"storageUsed"`
BakerFee uint64 `json:"bakerFee"`
Reward uint64 `json:"reward"`
Loss uint64 `json:"loss"`
Rollup Address `json:"rollup"`
Sender Address `json:"sender"`
Committer Address `json:"committer"`
Timestamp time.Time `json:"timestamp"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
TxRollupRejection-
type TxRollupRemoveCommitment ¶
type TxRollupRemoveCommitment struct {
Type string `json:"type"`
Status string `json:"status"`
Block string `json:"block"`
Hash string `json:"hash"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
StorageUsed uint64 `json:"storageUsed"`
BakerFee uint64 `json:"bakerFee"`
Sender Address `json:"sender"`
Rollup Address `json:"rollup"`
Timestamp time.Time `json:"timestamp"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
TxRollupRemoveCommitment -
type TxRollupReturnBond ¶
type TxRollupReturnBond struct {
Type string `json:"type"`
Block string `json:"block"`
Hash string `json:"hash"`
Status string `json:"status"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
StorageUsed uint64 `json:"storageUsed"`
BakerFee uint64 `json:"bakerFee"`
Bond uint64 `json:"bond"`
Timestamp time.Time `json:"timestamp"`
Rollup Address `json:"rollup"`
Sender Address `json:"sender"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
TxRollupReturnBond -
type TxRollupSubmitBatch ¶
type TxRollupSubmitBatch struct {
Type string `json:"type"`
Block string `json:"block"`
Hash string `json:"hash"`
Status string `json:"status"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
StorageUsed uint64 `json:"storageUsed"`
BakerFee uint64 `json:"bakerFee"`
StorageFee uint64 `json:"storageFee"`
Rollup Address `json:"rollup"`
Sender Address `json:"sender"`
Timestamp time.Time `json:"timestamp"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
TxRollupSubmitBatch -
type UpdateSecondaryKey ¶ added in v0.4.9
type UpdateSecondaryKey struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Block string `json:"block"`
Hash string `json:"hash"`
Sender Address `json:"sender"`
Counter uint64 `json:"counter"`
GasLimit uint64 `json:"gasLimit"`
GasUsed uint64 `json:"gasUsed"`
StorageLimit uint64 `json:"storageLimit"`
BakerFee uint64 `json:"bakerFee"`
Status string `json:"status"`
ActivationCycle uint64 `json:"activationCycle"`
PublicKey string `json:"publicKey"`
PublicKeyHash string `json:"publicKeyHash"`
Errors []Error `json:"errors,omitempty"`
Quote *Quote `json:"quote,omitempty"`
}
UpdateSecondaryKey -
type VdfRevelation ¶ added in v0.2.22
type VdfRevelation struct {
Type string `json:"type"`
ID uint64 `json:"id"`
Level uint64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
Block string `json:"block"`
Hash string `json:"hash"`
Baker *Address `json:"baker"`
Cycle uint64 `json:"cycle"`
Solution string `json:"solution"`
Proof string `json:"proof"`
RewardDelegated int64 `json:"rewardDelegated"`
RewardStakedOwn int64 `json:"rewardStakedOwn"`
RewardStakedEdge int64 `json:"rewardStakedEdge"`
Quote *Quote `json:"quote,omitempty"`
}
VdfRevelation -