models

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusApplied       = "applied"
	StatusBranchDelayed = "branch_delayed"
	StatusBranchRefused = "branch_refused"
	StatusRefused       = "refused"
	StatusInChain       = "in_chain"
	StatusExpired       = "expired"
)

Statuses

View Source
const (
	IndexTypeMempool = "mempool"
)

Variables

This section is empty.

Functions

func DeleteOldGasStats

func DeleteOldGasStats(db pg.DBI, timeout uint64) error

DeleteOldGasStats -

func DeleteOldOperations

func DeleteOldOperations(db pg.DBI, timeout uint64, status string, kinds ...string) error

DeleteOldOperations -

func GetModelsBy

func GetModelsBy(kinds ...string) []interface{}

GetModelsBy -

func MempoolIndexName

func MempoolIndexName(network string) string

MempoolIndexName -

func OpenDatabaseConnection

func OpenDatabaseConnection(ctx context.Context, cfg config.Database, kinds ...string) (db *database.PgGo, err error)

OpenDatabaseConnection -

func Rollback

func Rollback(db pg.DBI, network, branch string, level uint64, kinds ...string) error

Rollback -

func SetExpired

func SetExpired(db pg.DBI, network, branch string, kinds ...string) error

SetExpired -

func SetInChain

func SetInChain(db pg.DBI, network, hash, kind string, level uint64) error

SetInChain -

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 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 -

func (*DoubleBaking) Fill

func (mdb *DoubleBaking) Fill()

Fill -

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 -

func (*DoubleEndorsing) Fill

func (mde *DoubleEndorsing) Fill()

Fill -

type DoubleEndorsingOperations

type DoubleEndorsingOperations struct {
	Kind  string `json:"kind"`
	Level uint64 `json:"level"`
}

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) Fill added in v0.3.0

func (mde *DoublePreendorsing) Fill()

Fill -

func (*DoublePreendorsing) SetMempoolOperation added in v0.3.1

func (mde *DoublePreendorsing) SetMempoolOperation(operaiton MempoolOperation)

SetMempoolOperation -

type DoublePreendorsingOperations added in v0.3.0

type DoublePreendorsingOperations struct {
	Kind  string `json:"kind"`
	Level uint64 `json:"level"`
}

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

func (s *GasStats) BeforeInsert(ctx context.Context) (context.Context, error)

BeforeInsert -

func (*GasStats) BeforeUpdate added in v0.3.0

func (s *GasStats) BeforeUpdate(ctx context.Context) (context.Context, error)

BeforeUpdate -

func (*GasStats) Save

func (s *GasStats) Save(db pg.DBI) error

Append -

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) IsNull added in v0.3.0

func (j JSONB) IsNull() bool

IsNull -

func (JSONB) MarshalJSON added in v0.3.0

func (m JSONB) MarshalJSON() ([]byte, error)

MarshalJSON returns *m as the JSON encoding of m.

func (*JSONB) Scan added in v0.3.0

func (j *JSONB) Scan(value interface{}) error

Scan -

func (*JSONB) UnmarshalJSON added in v0.3.0

func (m *JSONB) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

func (JSONB) Value added in v0.3.0

func (j JSONB) Value() (driver.Value, error)

Value -

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

func (op *MempoolOperation) BeforeInsert(ctx context.Context) (context.Context, error)

BeforeInsert -

func (*MempoolOperation) BeforeUpdate added in v0.3.0

func (op *MempoolOperation) BeforeUpdate(ctx context.Context) (context.Context, error)

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 -

func (*Origination) Fill

func (mo *Origination) Fill()

Fill -

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 -

Jump to

Keyboard shortcuts

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