Documentation ¶
Index ¶
- Constants
- func DeleteOldGasStats(db pg.DBI, timeout uint64) error
- func DeleteOldOperations(db pg.DBI, timeout uint64, status string, kinds ...string) error
- func GetModelsBy(kinds ...string) []interface{}
- func MempoolIndexName(network string) string
- func OpenDatabaseConnection(ctx context.Context, cfg config.Database, kinds ...string) (db *database.PgGo, err error)
- func Rollback(db pg.DBI, network, branch string, level uint64, kinds ...string) error
- func SetExpired(db pg.DBI, network, branch string, kinds ...string) error
- func SetInChain(db pg.DBI, network, hash, kind string, level uint64) error
- type ActivateAccount
- type Ballot
- type ChangableMempoolOperation
- type DefaultConstraint
- type DelegateDrain
- type Delegation
- type DoubleBaking
- type DoubleBakingInfo
- type DoubleEndorsing
- type DoubleEndorsingOperations
- type DoublePreendorsing
- type DoublePreendorsingOperations
- type Endorsement
- type GasStats
- type IncreasePaidStorage
- type JSONB
- type MempoolOperation
- type NonceRevelation
- type Origination
- type Preendorsement
- type Proposal
- type RegisterGlobalConstant
- type Reveal
- type SetDepositsLimit
- type SmartRollupAddMessage
- type SmartRollupCement
- type SmartRollupExecute
- type SmartRollupOriginate
- type SmartRollupPublish
- type SmartRollupRecoverBond
- type SmartRollupRefute
- type SmartRollupTimeout
- type Transaction
- type TransferTicket
- type TxRollupCommit
- type TxRollupDispatchTickets
- type TxRollupFinalizeCommitment
- type TxRollupOrigination
- type TxRollupRejection
- type TxRollupRemoveCommitment
- type TxRollupReturnBond
- type TxRollupSubmitBatch
- type UpdateConsensusKey
- type VdfRevelation
Constants ¶
const ( StatusApplied = "applied" StatusBranchDelayed = "branch_delayed" StatusBranchRefused = "branch_refused" StatusRefused = "refused" StatusInChain = "in_chain" StatusExpired = "expired" )
Statuses
const (
IndexTypeMempool = "mempool"
)
Variables ¶
This section is empty.
Functions ¶
func DeleteOldGasStats ¶
DeleteOldGasStats -
func DeleteOldOperations ¶
DeleteOldOperations -
func OpenDatabaseConnection ¶
func OpenDatabaseConnection(ctx context.Context, cfg config.Database, kinds ...string) (db *database.PgGo, err error)
OpenDatabaseConnection -
func SetExpired ¶
SetExpired -
Types ¶
type ActivateAccount ¶
type ActivateAccount struct { MempoolOperation Pkh string `json:"pkh" comment:"Public key hash (Ed25519). Address to activate."` Secret string `json:"secret" comment:"The secret key associated with the key, if available. /^([a-zA-Z0-9][a-zA-Z0-9])*$/"` // contains filtered or unexported fields }
ActivateAccount -
type Ballot ¶
type Ballot struct { MempoolOperation Period int64 `json:"period" comment:"Voting period index, starting from zero, for which the ballot was submitted."` Ballot string `json:"ballot" comment:"Vote, given in the ballot (yay, nay, or pass)."` // contains filtered or unexported fields }
Ballot -
func (*Ballot) SetMempoolOperation ¶ added in v0.3.1
func (i *Ballot) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type ChangableMempoolOperation ¶ added in v0.3.1
type ChangableMempoolOperation interface {
SetMempoolOperation(operation MempoolOperation)
}
ChangableMempoolOperation -
type DefaultConstraint ¶ added in v0.3.1
type DefaultConstraint interface { Ballot | ActivateAccount | Delegation | DoubleBaking | DoubleEndorsing | DoublePreendorsing | Endorsement | NonceRevelation | Origination | Preendorsement | Proposal | RegisterGlobalConstant | Reveal | SetDepositsLimit | Transaction | TransferTicket | TxRollupCommit | TxRollupDispatchTickets | TxRollupFinalizeCommitment | TxRollupOrigination | TxRollupRejection | TxRollupRemoveCommitment | TxRollupReturnBond | TxRollupSubmitBatch | VdfRevelation | IncreasePaidStorage | UpdateConsensusKey | DelegateDrain | SmartRollupAddMessage | SmartRollupCement | SmartRollupExecute | SmartRollupOriginate | SmartRollupPublish | SmartRollupRecoverBond | SmartRollupRefute | SmartRollupTimeout }
DefaultConstraint -
type DelegateDrain ¶ added in v0.3.1
type DelegateDrain struct { MempoolOperation ConsensusKey int64 `json:"consensus_key" comment:"Consensus key that was used to sign Drain."` Delegate string `json:"delegate" comment:"Address of the drained delegate."` Destination string `json:"destination" comment:"Address of the recipient account."` // contains filtered or unexported fields }
DelegateDrain -
func (*DelegateDrain) SetMempoolOperation ¶ added in v0.3.1
func (i *DelegateDrain) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type Delegation ¶
type Delegation struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to a baker, produced block, in which the operation was included."` Counter int64 `json:"counter,string" pg:",pk" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Delegate string `` /* 147-byte string literal not displayed */ Source string `json:"source,omitempty" index:"delegation_source_idx" comment:"Address of the delegated account."` // contains filtered or unexported fields }
Delegation -
func (*Delegation) SetMempoolOperation ¶ added in v0.3.1
func (i *Delegation) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type DoubleBaking ¶
type DoubleBaking struct { MempoolOperation Bh1 DoubleBakingInfo `json:"bh1" pg:"-"` Bh2 DoubleBakingInfo `json:"bh2" pg:"-"` Bh1Level uint64 `json:"-" pg:"bh1_level" comment:"Height of the first block from the genesis."` Bh1Proto int64 `` /* 157-byte string literal not displayed */ Bh1ValidationPass int64 `json:"-" pg:"bh1_validation_pass" comment:"First block number of endorsements (slots), included into the block."` Bh1Priority int64 `json:"-" pg:"bh1_priority" comment:"First block priority [DEPRECATED]."` Bh1ProofOfWorkNonce string `json:"-" pg:"bh1_proof_of_work_nonce" comment:"First block proof of work nonce."` Bh2Level uint64 `json:"-" pg:"bh2_level" comment:"Height of the second block from the genesis."` Bh2Proto int64 `` /* 158-byte string literal not displayed */ Bh2ValidationPass int64 `json:"-" pg:"bh2_validation_pass" comment:"Second block number of endorsements (slots), included into the block."` Bh2Priority int64 `json:"-" pg:"bh2_priority" comment:"Second block priority [DEPRECATED]."` Bh2ProofOfWorkNonce string `json:"-" pg:"bh2_proof_of_work_nonce" comment:"Second block proof of work nonce."` // contains filtered or unexported fields }
DoubleBaking -
type DoubleBakingInfo ¶
type DoubleBakingInfo struct { Level uint64 `json:"level"` Proto int64 `json:"proto"` ValidationPass int64 `json:"validation_pass"` Fitness []string `json:"fitness"` Priority int64 `json:"priority"` ProofOfWorkNonce string `json:"proof_of_work_nonce"` }
DoubleBakingInfo -
type DoubleEndorsing ¶
type DoubleEndorsing struct { MempoolOperation Op1Kind string `json:"-" pg:"op1_kind" comment:"Kind of the first operation."` Op1Level uint64 `json:"-" pg:"op1_level" comment:"Height of the block from the genesis block, in which the first operation was included."` Op2Kind string `json:"-" pg:"op2_kind" comment:"Kind of the second operation."` Op2Level uint64 `json:"-" pg:"op2_level" comment:"Height of the block from the genesis block, in which the second operation was included."` Op1 struct { Operations DoubleEndorsingOperations `json:"operations"` } `json:"op1" pg:"-"` Op2 struct { Operations DoubleEndorsingOperations `json:"operations"` } `json:"op2" pg:"-"` // contains filtered or unexported fields }
DoubleEndorsing -
type DoubleEndorsingOperations ¶
DoubleEndorsingOperations -
type DoublePreendorsing ¶ added in v0.3.0
type DoublePreendorsing struct { MempoolOperation Op1Kind string `json:"-" pg:"op1_kind" comment:"Kind of the first operation."` Op1Level uint64 `json:"-" pg:"op1_level" comment:"Height of the block from the genesis block, in which the first operation was included."` Op2Kind string `json:"-" pg:"op2_kind" comment:"Kind of the second operation."` Op2Level uint64 `json:"-" pg:"op2_level" comment:"Height of the block from the genesis block, in which the second operation was included."` Op1 struct { Operations DoublePreendorsingOperations `json:"operations"` } `json:"op1" pg:"-"` Op2 struct { Operations DoublePreendorsingOperations `json:"operations"` } `json:"op2" pg:"-"` // contains filtered or unexported fields }
DoublePreendorsing -
func (*DoublePreendorsing) SetMempoolOperation ¶ added in v0.3.1
func (mde *DoublePreendorsing) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type DoublePreendorsingOperations ¶ added in v0.3.0
DoublePreendorsingOperations -
type Endorsement ¶
type Endorsement struct { MempoolOperation Level uint64 `json:"level" comment:"The height of the block from the genesis block, in which the operation was included."` Baker string `json:"-" index:"transaction_baker_idx" comment:"Address of the baker who sent the operation."` // contains filtered or unexported fields }
Endorsement -
func EndorsementsWithoutBaker ¶
func EndorsementsWithoutBaker(db pg.DBI, network string, limit, offset int) (endorsements []Endorsement, err error)
EndorsementsWithoutBaker -
type GasStats ¶
type GasStats struct { Network string `pg:",pk" json:"network" comment:"Identifies belonging network."` Hash string `pg:",pk" json:"hash" comment:"Hash of the operation."` TotalGasUsed uint64 `pg:"total_gas_used" json:"total_gas_used" comment:"Total amount of consumed gas."` TotalFee uint64 `pg:"total_fee" json:"total_fee" comment:"Total amount of fee."` UpdatedAt int64 `json:"updated_at" comment:"Date of last update in seconds since UNIX epoch."` LevelInMempool uint64 `json:"level_in_mempool" comment:"Level of the block at which the statistics has been calculated in mempool."` LevelInChain uint64 `json:"level_in_chain" comment:"Level of the block at which the statistics has been calculated in chain."` // contains filtered or unexported fields }
GasStats -
func (*GasStats) BeforeInsert ¶ added in v0.3.0
BeforeInsert -
func (*GasStats) BeforeUpdate ¶ added in v0.3.0
BeforeUpdate -
type IncreasePaidStorage ¶ added in v0.3.1
type IncreasePaidStorage struct { MempoolOperation // contains filtered or unexported fields }
IncreasePaidStorage -
func (*IncreasePaidStorage) SetMempoolOperation ¶ added in v0.3.1
func (i *IncreasePaidStorage) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type JSONB ¶ added in v0.3.0
type JSONB []byte
JSONB -
func (JSONB) MarshalJSON ¶ added in v0.3.0
MarshalJSON returns *m as the JSON encoding of m.
func (*JSONB) UnmarshalJSON ¶ added in v0.3.0
UnmarshalJSON sets *m to a copy of data.
type MempoolOperation ¶
type MempoolOperation struct { CreatedAt int64 `json:"-" comment:"Date of creation in seconds since UNIX epoch."` UpdatedAt int64 `json:"-" comment:"Date of last update in seconds since UNIX epoch."` Network string `json:"network" pg:",pk" comment:"Identifies belonging network."` Hash string `json:"hash" pg:",pk" comment:"Hash of the operation."` Branch string `json:"branch" comment:"Hash of the block, in which the operation was included."` Status string `json:"status" comment:"Status of the operation."` Kind string `json:"kind" comment:"Type of the operation."` Signature string `json:"signature" comment:"Signature of the operation."` Protocol string `json:"protocol" comment:"Hash of the protocol, in which the operation was included in mempool."` Level uint64 `json:"level" comment:"The height of the block from the genesis block, in which the operation was included."` Errors JSONB `json:"errors,omitempty" pg:",type:jsonb" comment:"Errors with the operation processing if any."` ExpirationLevel *uint64 `` /* 127-byte string literal not displayed */ Raw JSONB `json:"raw,omitempty" pg:",type:jsonb" comment:"Raw JSON object of the operation."` }
MempoolOperation -
func (*MempoolOperation) BeforeInsert ¶ added in v0.3.0
BeforeInsert -
func (*MempoolOperation) BeforeUpdate ¶ added in v0.3.0
BeforeUpdate -
type NonceRevelation ¶
type NonceRevelation struct { MempoolOperation Level int `json:"level" comment:"The height of the block from the genesis block, in which the operation was included."` Nonce string `json:"nonce" comment:"Seed nonce hex."` // contains filtered or unexported fields }
NonceRevelation -
func (*NonceRevelation) SetMempoolOperation ¶ added in v0.3.1
func (i *NonceRevelation) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type Origination ¶
type Origination struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `json:"counter,string" pg:",pk" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Balance string `json:"balance" comment:"The contract origination balance (micro tez)."` Delegate string `json:",omitempty" comment:"Address of the baker (delegate), which was marked as a delegate in the operation."` Source string `json:"source,omitempty" index:"origination_source_idx" comment:"Address of the account who has sent the operation."` Script struct { Storage json.RawMessage `json:"storage"` } `json:"script" pg:"-"` Storage JSONB `json:"-" pg:",type:jsonb" comment:"Initial contract storage value converted to human-readable JSON."` // contains filtered or unexported fields }
Origination -
type Preendorsement ¶ added in v0.3.0
type Preendorsement struct { MempoolOperation // contains filtered or unexported fields }
Preendorsement -
func (*Preendorsement) SetMempoolOperation ¶ added in v0.3.1
func (i *Preendorsement) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type Proposal ¶
type Proposal struct { MempoolOperation Period int64 `json:"period" comment:"Voting period index (starting from zero) for which the proposal was submitted (upvoted)."` Proposals string `json:"proposal" pg:"proposals" comment:"Information about the submitted (upvoted) proposal."` // contains filtered or unexported fields }
Proposal -
type RegisterGlobalConstant ¶
type RegisterGlobalConstant struct { MempoolOperation Source string `json:"source" comment:"Address of the account who has sent the operation."` Fee string `json:"fee" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter string `json:"counter" comment:"An account nonce which is used to prevent operation replay."` GasLimit string `json:"gas_limit" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit string `json:"storage_limit" comment:"A cap on the amount of storage a given operation can consume."` Value JSONB `json:"value" pg:"value,type:jsonb" comment:"Constant value (Micheline JSON)."` // contains filtered or unexported fields }
RegisterGlobalConstant -
func (*RegisterGlobalConstant) SetMempoolOperation ¶ added in v0.3.1
func (i *RegisterGlobalConstant) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type Reveal ¶
type Reveal struct { MempoolOperation Source string `json:"source" index:"reveal_source_idx" comment:"Address of the account who has sent the operation."` Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `json:"counter,string" pg:",pk" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` PublicKey string `json:"public_key" comment:"Public key of source address."` // contains filtered or unexported fields }
Reveal -
type SetDepositsLimit ¶ added in v0.3.0
type SetDepositsLimit struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `json:"source,omitempty" index:"set_deposits_limit_source_idx" comment:"Address of the account who has sent the operation."` Limit *string `json:"limit,omitempty" comment:"Frozen deposits limit (mutez), or null if no limit."` // contains filtered or unexported fields }
SetDepositsLimit -
func (*SetDepositsLimit) SetMempoolOperation ¶ added in v0.3.2
func (i *SetDepositsLimit) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type SmartRollupAddMessage ¶ added in v0.3.2
type SmartRollupAddMessage struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `json:"source,omitempty" index:"set_deposits_limit_source_idx" comment:"Address of the account who has sent the operation."` Message []string `json:"message" comment:"Messages added to the smart rollup inbox (Array of hex strings)."` // contains filtered or unexported fields }
SetDepositsLimit -
func (*SmartRollupAddMessage) SetMempoolOperation ¶ added in v0.3.2
func (i *SmartRollupAddMessage) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type SmartRollupCement ¶ added in v0.3.2
type SmartRollupCement struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `json:"source,omitempty" index:"sr_cement_source_idx" comment:"Address of the account who has sent the operation."` Rollup string `json:"rollup" index:"sr_cement_rollup_idx" comment:"Smart rollup to which the operation was sent."` Commitment string `json:"commitment" comment:"Cemented commitment."` // contains filtered or unexported fields }
SmartRollupCement -
func (*SmartRollupCement) SetMempoolOperation ¶ added in v0.3.2
func (i *SmartRollupCement) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type SmartRollupExecute ¶ added in v0.3.2
type SmartRollupExecute struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `json:"source,omitempty" index:"sr_execute_source_idx" comment:"Address of the account who has sent the operation."` Rollup string `json:"rollup" index:"sr_execute_rollup_idx" comment:"Smart rollup to which the operation was sent."` CementedCommitment string `json:"cemented_commitment" comment:"Executed commitment."` OutputProof string `json:"output_proof" comment:"Output proof bytes (hex string)."` // contains filtered or unexported fields }
SmartRollupExecute -
func (*SmartRollupExecute) SetMempoolOperation ¶ added in v0.3.2
func (i *SmartRollupExecute) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type SmartRollupOriginate ¶ added in v0.3.2
type SmartRollupOriginate struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `json:"source,omitempty" index:"sr_originate_source_idx" comment:"Address of the account who has sent the operation."` PvmKind string `json:"pvm_kind" comment:"PVM kind (arith or wasm)."` Kernel string `json:"kernel" comment:"Kernel bytes (hex string)."` OriginationProof string `json:"origination_proof" comment:"Origination proof bytes (hex string)."` ParametersTy string `json:"parameters_ty" comment:"Smart rollup parameter type (Micheline JSON)."` // contains filtered or unexported fields }
SmartRollupOriginate -
func (*SmartRollupOriginate) SetMempoolOperation ¶ added in v0.3.2
func (i *SmartRollupOriginate) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type SmartRollupPublish ¶ added in v0.3.2
type SmartRollupPublish struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `json:"source,omitempty" index:"sr_publish_source_idx" comment:"Address of the account who has sent the operation."` Rollup string `json:"rollup,omitempty" index:"sr_publish_bond_rollup_idx" comment:"Smart rollup to which the operation was sent."` // contains filtered or unexported fields }
SmartRollupPublish -
func (*SmartRollupPublish) SetMempoolOperation ¶ added in v0.3.2
func (i *SmartRollupPublish) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type SmartRollupRecoverBond ¶ added in v0.3.2
type SmartRollupRecoverBond struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `json:"source,omitempty" index:"sr_recover_bond_source_idx" comment:"Address of the account who has sent the operation."` Rollup string `json:"rollup,omitempty" index:"sr_recover_bond_rollup_idx" comment:"Smart rollup to which the operation was sent."` // contains filtered or unexported fields }
SmartRollupRecoverBond -
func (*SmartRollupRecoverBond) SetMempoolOperation ¶ added in v0.3.2
func (i *SmartRollupRecoverBond) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type SmartRollupRefute ¶ added in v0.3.2
type SmartRollupRefute struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `json:"source,omitempty" index:"sr_refute_source_idx" comment:"Address of the account who has sent the operation."` Opponent string `` /* 141-byte string literal not displayed */ Rollup string `json:"rollup,omitempty" index:"sr_refute_rollup_idx" comment:"Smart rollup to which the operation was sent."` // contains filtered or unexported fields }
SmartRollupRefute -
func (*SmartRollupRefute) SetMempoolOperation ¶ added in v0.3.2
func (i *SmartRollupRefute) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type SmartRollupTimeout ¶ added in v0.3.2
type SmartRollupTimeout struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `json:"source,omitempty" index:"sr_timeout_source_idx" comment:"Address of the account who has sent the operation."` Rollup string `json:"rollup,omitempty" index:"sr_timeout_rollup_idx" comment:"Smart rollup to which the operation was sent."` // contains filtered or unexported fields }
SmartRollupTimeout -
func (*SmartRollupTimeout) SetMempoolOperation ¶ added in v0.3.2
func (i *SmartRollupTimeout) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type Transaction ¶
type Transaction struct { MempoolOperation Source string `json:"source" index:"transaction_source_idx" comment:"Address of the account who has sent the operation."` Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `json:"counter,string" pg:",pk" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Amount string `json:"amount" comment:"The transaction amount (mutez)."` Destination string `json:"destination" index:"transaction_destination_idx" comment:"Address of the target of the transaction."` Parameters JSONB `` /* 141-byte string literal not displayed */ // contains filtered or unexported fields }
Transaction -
type TransferTicket ¶ added in v0.3.1
type TransferTicket struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `json:"source,omitempty" index:"transfer_ticket_source_idx" comment:"Address of the account who has sent the operation."` // contains filtered or unexported fields }
TransferTicket -
func (*TransferTicket) SetMempoolOperation ¶ added in v0.3.1
func (i *TransferTicket) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type TxRollupCommit ¶ added in v0.3.1
type TxRollupCommit struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `json:"source,omitempty" index:"tx_rollup_commit_source_idx" comment:"Address of the account who has sent the operation."` Rollup string `json:"rollup,omitempty" index:"tx_rollup_commit_rollup_idx" comment:"Address of the rollup to which the operation was sent."` // contains filtered or unexported fields }
TxRollupCommit -
func (*TxRollupCommit) SetMempoolOperation ¶ added in v0.3.1
func (i *TxRollupCommit) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type TxRollupDispatchTickets ¶ added in v0.3.1
type TxRollupDispatchTickets struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `` /* 130-byte string literal not displayed */ TxRollup string `` /* 137-byte string literal not displayed */ // contains filtered or unexported fields }
TxRollupDispatchTickets -
func (*TxRollupDispatchTickets) SetMempoolOperation ¶ added in v0.3.1
func (i *TxRollupDispatchTickets) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type TxRollupFinalizeCommitment ¶ added in v0.3.1
type TxRollupFinalizeCommitment struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `` /* 133-byte string literal not displayed */ Rollup string `` /* 137-byte string literal not displayed */ // contains filtered or unexported fields }
TxRollupFinalizeCommitment -
func (*TxRollupFinalizeCommitment) SetMempoolOperation ¶ added in v0.3.1
func (i *TxRollupFinalizeCommitment) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type TxRollupOrigination ¶ added in v0.3.1
type TxRollupOrigination struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
TxRollupOrigination -
func (*TxRollupOrigination) SetMempoolOperation ¶ added in v0.3.1
func (i *TxRollupOrigination) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type TxRollupRejection ¶ added in v0.3.1
type TxRollupRejection struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `json:"source,omitempty" index:"ttx_rollup_rejection_source_idx" comment:"Address of the account who has sent the operation."` // contains filtered or unexported fields }
TxRollupRejection -
func (*TxRollupRejection) SetMempoolOperation ¶ added in v0.3.1
func (i *TxRollupRejection) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type TxRollupRemoveCommitment ¶ added in v0.3.1
type TxRollupRemoveCommitment struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `` /* 131-byte string literal not displayed */ Rollup string `` /* 135-byte string literal not displayed */ // contains filtered or unexported fields }
TxRollupRemoveCommitment -
func (*TxRollupRemoveCommitment) SetMempoolOperation ¶ added in v0.3.1
func (i *TxRollupRemoveCommitment) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type TxRollupReturnBond ¶ added in v0.3.1
type TxRollupReturnBond struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
TxRollupReturnBond -
func (*TxRollupReturnBond) SetMempoolOperation ¶ added in v0.3.1
func (i *TxRollupReturnBond) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type TxRollupSubmitBatch ¶ added in v0.3.1
type TxRollupSubmitBatch struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `` /* 126-byte string literal not displayed */ Rollup string `` /* 130-byte string literal not displayed */ // contains filtered or unexported fields }
TxRollupSubmitBatch -
func (*TxRollupSubmitBatch) SetMempoolOperation ¶ added in v0.3.1
func (i *TxRollupSubmitBatch) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type UpdateConsensusKey ¶ added in v0.3.1
type UpdateConsensusKey struct { MempoolOperation Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."` GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."` StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."` Source string `json:"source" index:"update_consensus_key_source_idx" comment:"Address of the account who has sent the operation."` Pk string `json:"pk" comment:"Consensus key."` // contains filtered or unexported fields }
UpdateConsensusKey -
func (*UpdateConsensusKey) SetMempoolOperation ¶ added in v0.3.1
func (i *UpdateConsensusKey) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
type VdfRevelation ¶ added in v0.3.1
type VdfRevelation struct { MempoolOperation // contains filtered or unexported fields }
VdfRevelation -
func (*VdfRevelation) SetMempoolOperation ¶ added in v0.3.1
func (i *VdfRevelation) SetMempoolOperation(operaiton MempoolOperation)
SetMempoolOperation -
Source Files ¶
- activate_account.go
- ballot.go
- database.go
- delegation.go
- double_baking.go
- double_endorsing.go
- double_preendorsing.go
- drain_delegate.go
- endorsement.go
- gas_stats.go
- increase_paid_storage.go
- jsonb.go
- mempool_operation.go
- nonce_revelation.go
- origination.go
- preendorsement.go
- proposal.go
- register_global_constant.go
- reveal.go
- set_deposits_limit.go
- sr_add_message.go
- sr_cement.go
- sr_execute.go
- sr_originate.go
- sr_publish.go
- sr_recover_bond.go
- sr_refute.go
- sr_timeout.go
- state.go
- transaction.go
- transfer_ticket.go
- tx_rollup_commit.go
- tx_rollup_dispatch_tickets.go
- tx_rollup_finalize_commitment.go
- tx_rollup_origination.go
- tx_rollup_rejection.go
- tx_rollup_remove_commitment.go
- tx_rollup_return_bond.go
- tx_rollup_submit_batch.go
- update_consensus_key.go
- vdf_revelation.go