protocol

package
v0.0.0-...-4a4274a Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Constants

type Constants struct {
	CostPerByte                  int64
	HardGasLimitPerOperation     int64
	HardStorageLimitPerOperation int64
	TimeBetweenBlocks            int64
}

Constants -

type Protocol

type Protocol struct {
	bun.BaseModel `bun:"protocols"`

	ID int64 `bun:"id,pk,notnull,autoincrement"`

	Hash       string `bun:"hash,type:text,unique:protocol_hash_idx"`
	StartLevel int64
	EndLevel   int64
	SymLink    string `bun:"sym_link,type:text"`
	Alias      string `bun:"alias,type:text"`
	ChainID    string `bun:"chain_id,type:text"`
	*Constants
}

Protocol -

func (*Protocol) GetID

func (p *Protocol) GetID() int64

GetID -

func (Protocol) TableName

func (Protocol) TableName() string

func (*Protocol) ValidateChainID

func (p *Protocol) ValidateChainID(chainID string) bool

ValidateChainID -

type Repository

type Repository interface {
	Get(ctx context.Context, hash string, level int64) (Protocol, error)
	GetByID(ctx context.Context, id int64) (response Protocol, err error)
}

Jump to

Keyboard shortcuts

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