models

package
v0.0.0-...-b6f889b Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlockColumns = struct {
	Height          string
	Hash            string
	NumTXS          string
	TotalGas        string
	ProposerAddress string
	Signatures      string
	BlockTimestamp  string
	CreatedAt       string
	UpdatedAt       string
	DeletedAt       string
}{
	Height:          "height",
	Hash:            "hash",
	NumTXS:          "num_txs",
	TotalGas:        "total_gas",
	ProposerAddress: "proposer_address",
	Signatures:      "signatures",
	BlockTimestamp:  "block_timestamp",
	CreatedAt:       "created_at",
	UpdatedAt:       "updated_at",
	DeletedAt:       "deleted_at",
}
View Source
var BlockRels = struct {
	Proposer           string
	HeightTransactions string
}{
	Proposer:           "Proposer",
	HeightTransactions: "HeightTransactions",
}

BlockRels is where relationship names are stored.

View Source
var BlockSignatureColumns = struct {
	ID               string
	Height           string
	Round            string
	ValidatorAddress string
	Flag             string
	Timestamp        string
	Hash             string
	VotingPower      string
	ProposerPriority string
	CreatedAt        string
	UpdatedAt        string
	DeletedAt        string
}{
	ID:               "id",
	Height:           "height",
	Round:            "round",
	ValidatorAddress: "validator_address",
	Flag:             "flag",
	Timestamp:        "timestamp",
	Hash:             "hash",
	VotingPower:      "voting_power",
	ProposerPriority: "proposer_priority",
	CreatedAt:        "created_at",
	UpdatedAt:        "updated_at",
	DeletedAt:        "deleted_at",
}
View Source
var BlockSignatureRels = struct {
	Validator string
}{
	Validator: "Validator",
}

BlockSignatureRels is where relationship names are stored.

View Source
var BlockSignatureWhere = struct {
	ID               whereHelperint
	Height           whereHelperint64
	Round            whereHelperint
	ValidatorAddress whereHelperstring
	Flag             whereHelperint
	Timestamp        whereHelpertime_Time
	Hash             whereHelperstring
	VotingPower      whereHelperint
	ProposerPriority whereHelperint
	CreatedAt        whereHelpertime_Time
	UpdatedAt        whereHelpertime_Time
	DeletedAt        whereHelpernull_Time
}{
	ID:               whereHelperint{/* contains filtered or unexported fields */},
	Height:           whereHelperint64{/* contains filtered or unexported fields */},
	Round:            whereHelperint{/* contains filtered or unexported fields */},
	ValidatorAddress: whereHelperstring{/* contains filtered or unexported fields */},
	Flag:             whereHelperint{/* contains filtered or unexported fields */},
	Timestamp:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	Hash:             whereHelperstring{/* contains filtered or unexported fields */},
	VotingPower:      whereHelperint{/* contains filtered or unexported fields */},
	ProposerPriority: whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:        whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var BlockWhere = struct {
	Height          whereHelperint64
	Hash            whereHelperstring
	NumTXS          whereHelperint
	TotalGas        whereHelperint64
	ProposerAddress whereHelperstring
	Signatures      whereHelperint
	BlockTimestamp  whereHelpertime_Time
	CreatedAt       whereHelpertime_Time
	UpdatedAt       whereHelpertime_Time
	DeletedAt       whereHelpernull_Time
}{
	Height:          whereHelperint64{/* contains filtered or unexported fields */},
	Hash:            whereHelperstring{/* contains filtered or unexported fields */},
	NumTXS:          whereHelperint{/* contains filtered or unexported fields */},
	TotalGas:        whereHelperint64{/* contains filtered or unexported fields */},
	ProposerAddress: whereHelperstring{/* contains filtered or unexported fields */},
	Signatures:      whereHelperint{/* contains filtered or unexported fields */},
	BlockTimestamp:  whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:       whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var PostColumns = struct {
	ID                      string
	Height                  string
	VendorID                string
	PostID                  string
	Creator                 string
	RewardAddress           string
	Timestamp               string
	CurationEndTime         string
	Body                    string
	TotalVotes              string
	TotalVotesAmount        string
	TotalVotesDenom         string
	CreatedAt               string
	UpdatedAt               string
	DeletedAt               string
	TotalVoterCount         string
	TotalUpvoteRewardAmount string
	TotalUpvoteRewardDenom  string
	TotalStakedAmount       string
	BodyHash                string
	ChainID                 string
	Owner                   string
	ContractAddress         string
	Metadata                string
	Locked                  string
	ParentID                string
}{
	ID:                      "id",
	Height:                  "height",
	VendorID:                "vendor_id",
	PostID:                  "post_id",
	Creator:                 "creator",
	RewardAddress:           "reward_address",
	Timestamp:               "timestamp",
	CurationEndTime:         "curation_end_time",
	Body:                    "body",
	TotalVotes:              "total_votes",
	TotalVotesAmount:        "total_votes_amount",
	TotalVotesDenom:         "total_votes_denom",
	CreatedAt:               "created_at",
	UpdatedAt:               "updated_at",
	DeletedAt:               "deleted_at",
	TotalVoterCount:         "total_voter_count",
	TotalUpvoteRewardAmount: "total_upvote_reward_amount",
	TotalUpvoteRewardDenom:  "total_upvote_reward_denom",
	TotalStakedAmount:       "total_staked_amount",
	BodyHash:                "body_hash",
	ChainID:                 "chain_id",
	Owner:                   "owner",
	ContractAddress:         "contract_address",
	Metadata:                "metadata",
	Locked:                  "locked",
	ParentID:                "parent_id",
}
View Source
var PostRels = struct {
}{}

PostRels is where relationship names are stored.

View Source
var PostWhere = struct {
	ID                      whereHelperstring
	Height                  whereHelperint64
	VendorID                whereHelperint
	PostID                  whereHelperstring
	Creator                 whereHelperstring
	RewardAddress           whereHelperstring
	Timestamp               whereHelpertime_Time
	CurationEndTime         whereHelpertime_Time
	Body                    whereHelperstring
	TotalVotes              whereHelperint
	TotalVotesAmount        whereHelperint64
	TotalVotesDenom         whereHelperstring
	CreatedAt               whereHelpertime_Time
	UpdatedAt               whereHelpertime_Time
	DeletedAt               whereHelpernull_Time
	TotalVoterCount         whereHelperint
	TotalUpvoteRewardAmount whereHelperint64
	TotalUpvoteRewardDenom  whereHelperstring
	TotalStakedAmount       whereHelperint64
	BodyHash                whereHelperstring
	ChainID                 whereHelperstring
	Owner                   whereHelperstring
	ContractAddress         whereHelperstring
	Metadata                whereHelperstring
	Locked                  whereHelperbool
	ParentID                whereHelperstring
}{
	ID:                      whereHelperstring{/* contains filtered or unexported fields */},
	Height:                  whereHelperint64{/* contains filtered or unexported fields */},
	VendorID:                whereHelperint{/* contains filtered or unexported fields */},
	PostID:                  whereHelperstring{/* contains filtered or unexported fields */},
	Creator:                 whereHelperstring{/* contains filtered or unexported fields */},
	RewardAddress:           whereHelperstring{/* contains filtered or unexported fields */},
	Timestamp:               whereHelpertime_Time{/* contains filtered or unexported fields */},
	CurationEndTime:         whereHelpertime_Time{/* contains filtered or unexported fields */},
	Body:                    whereHelperstring{/* contains filtered or unexported fields */},
	TotalVotes:              whereHelperint{/* contains filtered or unexported fields */},
	TotalVotesAmount:        whereHelperint64{/* contains filtered or unexported fields */},
	TotalVotesDenom:         whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:               whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:               whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:               whereHelpernull_Time{/* contains filtered or unexported fields */},
	TotalVoterCount:         whereHelperint{/* contains filtered or unexported fields */},
	TotalUpvoteRewardAmount: whereHelperint64{/* contains filtered or unexported fields */},
	TotalUpvoteRewardDenom:  whereHelperstring{/* contains filtered or unexported fields */},
	TotalStakedAmount:       whereHelperint64{/* contains filtered or unexported fields */},
	BodyHash:                whereHelperstring{/* contains filtered or unexported fields */},
	ChainID:                 whereHelperstring{/* contains filtered or unexported fields */},
	Owner:                   whereHelperstring{/* contains filtered or unexported fields */},
	ContractAddress:         whereHelperstring{/* contains filtered or unexported fields */},
	Metadata:                whereHelperstring{/* contains filtered or unexported fields */},
	Locked:                  whereHelperbool{/* contains filtered or unexported fields */},
	ParentID:                whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var StakeColumns = struct {
	ID        string
	Height    string
	VendorID  string
	PostID    string
	Delegator string
	Validator string
	Amount    string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "id",
	Height:    "height",
	VendorID:  "vendor_id",
	PostID:    "post_id",
	Delegator: "delegator",
	Validator: "validator",
	Amount:    "amount",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var StakeRels = struct {
}{}

StakeRels is where relationship names are stored.

View Source
var StakeWhere = struct {
	ID        whereHelperint
	Height    whereHelperint64
	VendorID  whereHelperint
	PostID    whereHelperstring
	Delegator whereHelperstring
	Validator whereHelperstring
	Amount    whereHelperint64
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	Height:    whereHelperint64{/* contains filtered or unexported fields */},
	VendorID:  whereHelperint{/* contains filtered or unexported fields */},
	PostID:    whereHelperstring{/* contains filtered or unexported fields */},
	Delegator: whereHelperstring{/* contains filtered or unexported fields */},
	Validator: whereHelperstring{/* contains filtered or unexported fields */},
	Amount:    whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var SyncLogColumns = struct {
	BlockHeight string
	Processed   string
	Retries     string
	Step        string
	NextRetry   string
	SyncedAt    string
	CreatedAt   string
	UpdatedAt   string
	DeletedAt   string
}{
	BlockHeight: "block_height",
	Processed:   "processed",
	Retries:     "retries",
	Step:        "step",
	NextRetry:   "next_retry",
	SyncedAt:    "synced_at",
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
	DeletedAt:   "deleted_at",
}
View Source
var SyncLogRels = struct {
}{}

SyncLogRels is where relationship names are stored.

View Source
var SyncLogWhere = struct {
	BlockHeight whereHelperint64
	Processed   whereHelperbool
	Retries     whereHelperint
	Step        whereHelperint
	NextRetry   whereHelpernull_Time
	SyncedAt    whereHelpernull_Time
	CreatedAt   whereHelpertime_Time
	UpdatedAt   whereHelpertime_Time
	DeletedAt   whereHelpernull_Time
}{
	BlockHeight: whereHelperint64{/* contains filtered or unexported fields */},
	Processed:   whereHelperbool{/* contains filtered or unexported fields */},
	Retries:     whereHelperint{/* contains filtered or unexported fields */},
	Step:        whereHelperint{/* contains filtered or unexported fields */},
	NextRetry:   whereHelpernull_Time{/* contains filtered or unexported fields */},
	SyncedAt:    whereHelpernull_Time{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	BlockSignatures string
	Blocks          string
	Posts           string
	Stakes          string
	SyncLogs        string
	Transactions    string
	UpvoteRewards   string
	Upvotes         string
	Validators      string
}{
	BlockSignatures: "block_signatures",
	Blocks:          "blocks",
	Posts:           "posts",
	Stakes:          "stakes",
	SyncLogs:        "sync_logs",
	Transactions:    "transactions",
	UpvoteRewards:   "upvote_rewards",
	Upvotes:         "upvotes",
	Validators:      "validators",
}
View Source
var TransactionColumns = struct {
	Hash       string
	GasWanted  string
	GasUsed    string
	Height     string
	Events     string
	Messages   string
	Fee        string
	Signatures string
	Memo       string
	CreatedAt  string
	UpdatedAt  string
	DeletedAt  string
}{
	Hash:       "hash",
	GasWanted:  "gas_wanted",
	GasUsed:    "gas_used",
	Height:     "height",
	Events:     "events",
	Messages:   "messages",
	Fee:        "fee",
	Signatures: "signatures",
	Memo:       "memo",
	CreatedAt:  "created_at",
	UpdatedAt:  "updated_at",
	DeletedAt:  "deleted_at",
}
View Source
var TransactionRels = struct {
	Block string
}{
	Block: "Block",
}

TransactionRels is where relationship names are stored.

View Source
var TransactionWhere = struct {
	Hash       whereHelperstring
	GasWanted  whereHelperint
	GasUsed    whereHelperint
	Height     whereHelperint64
	Events     whereHelpertypes_JSON
	Messages   whereHelpertypes_JSON
	Fee        whereHelpertypes_JSON
	Signatures whereHelpertypes_JSON
	Memo       whereHelperstring
	CreatedAt  whereHelpertime_Time
	UpdatedAt  whereHelpertime_Time
	DeletedAt  whereHelpernull_Time
}{
	Hash:       whereHelperstring{/* contains filtered or unexported fields */},
	GasWanted:  whereHelperint{/* contains filtered or unexported fields */},
	GasUsed:    whereHelperint{/* contains filtered or unexported fields */},
	Height:     whereHelperint64{/* contains filtered or unexported fields */},
	Events:     whereHelpertypes_JSON{/* contains filtered or unexported fields */},
	Messages:   whereHelpertypes_JSON{/* contains filtered or unexported fields */},
	Fee:        whereHelpertypes_JSON{/* contains filtered or unexported fields */},
	Signatures: whereHelpertypes_JSON{/* contains filtered or unexported fields */},
	Memo:       whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:  whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:  whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:  whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var UpvoteColumns = struct {
	ID            string
	Height        string
	VendorID      string
	PostID        string
	Creator       string
	RewardAddress string
	VoteNumber    string
	VoteAmount    string
	VoteDenom     string
	Timestamp     string
	Body          string
	CreatedAt     string
	UpdatedAt     string
	DeletedAt     string
}{
	ID:            "id",
	Height:        "height",
	VendorID:      "vendor_id",
	PostID:        "post_id",
	Creator:       "creator",
	RewardAddress: "reward_address",
	VoteNumber:    "vote_number",
	VoteAmount:    "vote_amount",
	VoteDenom:     "vote_denom",
	Timestamp:     "timestamp",
	Body:          "body",
	CreatedAt:     "created_at",
	UpdatedAt:     "updated_at",
	DeletedAt:     "deleted_at",
}
View Source
var UpvoteRels = struct {
}{}

UpvoteRels is where relationship names are stored.

View Source
var UpvoteRewardColumns = struct {
	ID            string
	Height        string
	VendorID      string
	PostID        string
	RewardAddress string
	RewardAmount  string
	RewardDenom   string
	CreatedAt     string
	UpdatedAt     string
	DeletedAt     string
}{
	ID:            "id",
	Height:        "height",
	VendorID:      "vendor_id",
	PostID:        "post_id",
	RewardAddress: "reward_address",
	RewardAmount:  "reward_amount",
	RewardDenom:   "reward_denom",
	CreatedAt:     "created_at",
	UpdatedAt:     "updated_at",
	DeletedAt:     "deleted_at",
}
View Source
var UpvoteRewardRels = struct {
}{}

UpvoteRewardRels is where relationship names are stored.

View Source
var UpvoteRewardWhere = struct {
	ID            whereHelperint
	Height        whereHelperint64
	VendorID      whereHelperint
	PostID        whereHelperstring
	RewardAddress whereHelperstring
	RewardAmount  whereHelperint64
	RewardDenom   whereHelperstring
	CreatedAt     whereHelpertime_Time
	UpdatedAt     whereHelpertime_Time
	DeletedAt     whereHelpernull_Time
}{
	ID:            whereHelperint{/* contains filtered or unexported fields */},
	Height:        whereHelperint64{/* contains filtered or unexported fields */},
	VendorID:      whereHelperint{/* contains filtered or unexported fields */},
	PostID:        whereHelperstring{/* contains filtered or unexported fields */},
	RewardAddress: whereHelperstring{/* contains filtered or unexported fields */},
	RewardAmount:  whereHelperint64{/* contains filtered or unexported fields */},
	RewardDenom:   whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var UpvoteWhere = struct {
	ID            whereHelperstring
	Height        whereHelperint64
	VendorID      whereHelperint
	PostID        whereHelperstring
	Creator       whereHelperstring
	RewardAddress whereHelperstring
	VoteNumber    whereHelperint
	VoteAmount    whereHelperint64
	VoteDenom     whereHelperstring
	Timestamp     whereHelpertime_Time
	Body          whereHelperstring
	CreatedAt     whereHelpertime_Time
	UpdatedAt     whereHelpertime_Time
	DeletedAt     whereHelpernull_Time
}{
	ID:            whereHelperstring{/* contains filtered or unexported fields */},
	Height:        whereHelperint64{/* contains filtered or unexported fields */},
	VendorID:      whereHelperint{/* contains filtered or unexported fields */},
	PostID:        whereHelperstring{/* contains filtered or unexported fields */},
	Creator:       whereHelperstring{/* contains filtered or unexported fields */},
	RewardAddress: whereHelperstring{/* contains filtered or unexported fields */},
	VoteNumber:    whereHelperint{/* contains filtered or unexported fields */},
	VoteAmount:    whereHelperint64{/* contains filtered or unexported fields */},
	VoteDenom:     whereHelperstring{/* contains filtered or unexported fields */},
	Timestamp:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	Body:          whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var ValidatorColumns = struct {
	Address   string
	PubKey    string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	Address:   "address",
	PubKey:    "pub_key",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var ValidatorRels = struct {
	ValidatorAddressBlockSignatures string
	ProposerAddressBlocks           string
}{
	ValidatorAddressBlockSignatures: "ValidatorAddressBlockSignatures",
	ProposerAddressBlocks:           "ProposerAddressBlocks",
}

ValidatorRels is where relationship names are stored.

View Source
var ValidatorWhere = struct {
	Address   whereHelperstring
	PubKey    whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
}{
	Address:   whereHelperstring{/* contains filtered or unexported fields */},
	PubKey:    whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}

Functions

func BlockExists

func BlockExists(ctx context.Context, exec boil.ContextExecutor, height int64) (bool, error)

BlockExists checks if the Block row exists.

func BlockSignatureExists

func BlockSignatureExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

BlockSignatureExists checks if the BlockSignature row exists.

func BlockSignatures

func BlockSignatures(mods ...qm.QueryMod) blockSignatureQuery

BlockSignatures retrieves all the records using an executor.

func Blocks

func Blocks(mods ...qm.QueryMod) blockQuery

Blocks retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func PostExists

func PostExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

PostExists checks if the Post row exists.

func Posts

func Posts(mods ...qm.QueryMod) postQuery

Posts retrieves all the records using an executor.

func StakeExists

func StakeExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

StakeExists checks if the Stake row exists.

func Stakes

func Stakes(mods ...qm.QueryMod) stakeQuery

Stakes retrieves all the records using an executor.

func SyncLogExists

func SyncLogExists(ctx context.Context, exec boil.ContextExecutor, blockHeight int64) (bool, error)

SyncLogExists checks if the SyncLog row exists.

func SyncLogs

func SyncLogs(mods ...qm.QueryMod) syncLogQuery

SyncLogs retrieves all the records using an executor.

func TransactionExists

func TransactionExists(ctx context.Context, exec boil.ContextExecutor, hash string) (bool, error)

TransactionExists checks if the Transaction row exists.

func Transactions

func Transactions(mods ...qm.QueryMod) transactionQuery

Transactions retrieves all the records using an executor.

func UpvoteExists

func UpvoteExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

UpvoteExists checks if the Upvote row exists.

func UpvoteRewardExists

func UpvoteRewardExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

UpvoteRewardExists checks if the UpvoteReward row exists.

func UpvoteRewards

func UpvoteRewards(mods ...qm.QueryMod) upvoteRewardQuery

UpvoteRewards retrieves all the records using an executor.

func Upvotes

func Upvotes(mods ...qm.QueryMod) upvoteQuery

Upvotes retrieves all the records using an executor.

func ValidatorExists

func ValidatorExists(ctx context.Context, exec boil.ContextExecutor, address string) (bool, error)

ValidatorExists checks if the Validator row exists.

func Validators

func Validators(mods ...qm.QueryMod) validatorQuery

Validators retrieves all the records using an executor.

Types

type Block

type Block struct {
	Height          int64     `boil:"height" json:"height" toml:"height" yaml:"height"`
	Hash            string    `boil:"hash" json:"hash" toml:"hash" yaml:"hash"`
	NumTXS          int       `boil:"num_txs" json:"numTXS" toml:"numTXS" yaml:"numTXS"`
	TotalGas        int64     `boil:"total_gas" json:"totalGas" toml:"totalGas" yaml:"totalGas"`
	ProposerAddress string    `boil:"proposer_address" json:"proposerAddress" toml:"proposerAddress" yaml:"proposerAddress"`
	Signatures      int       `boil:"signatures" json:"signatures" toml:"signatures" yaml:"signatures"`
	BlockTimestamp  time.Time `boil:"block_timestamp" json:"blockTimestamp" toml:"blockTimestamp" yaml:"blockTimestamp"`
	CreatedAt       time.Time `boil:"created_at" json:"createdAt" toml:"createdAt" yaml:"createdAt"`
	UpdatedAt       time.Time `boil:"updated_at" json:"updatedAt" toml:"updatedAt" yaml:"updatedAt"`
	DeletedAt       null.Time `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deletedAt" yaml:"deletedAt,omitempty"`

	R *blockR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L blockL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Block is an object representing the database table.

func FindBlock

func FindBlock(ctx context.Context, exec boil.ContextExecutor, height int64, selectCols ...string) (*Block, error)

FindBlock retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Block) AddHeightTransactions

func (o *Block) AddHeightTransactions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Transaction) error

AddHeightTransactions adds the given related objects to the existing relationships of the block, optionally inserting them as new records. Appends related to o.R.HeightTransactions. Sets related.R.Block appropriately.

func (*Block) Delete

func (o *Block) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Block record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Block) HeightTransactions

func (o *Block) HeightTransactions(mods ...qm.QueryMod) transactionQuery

HeightTransactions retrieves all the transaction's Transactions with an executor via height column.

func (*Block) Insert

func (o *Block) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Block) Proposer

func (o *Block) Proposer(mods ...qm.QueryMod) validatorQuery

Proposer pointed to by the foreign key.

func (*Block) Reload

func (o *Block) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Block) SetProposer

func (o *Block) SetProposer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Validator) error

SetProposer of the block to the related item. Sets o.R.Proposer to related. Adds o to related.R.ProposerAddressBlocks.

func (*Block) Update

func (o *Block) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Block. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Block) Upsert

func (o *Block) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type BlockSignature

type BlockSignature struct {
	ID               int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Height           int64     `boil:"height" json:"height" toml:"height" yaml:"height"`
	Round            int       `boil:"round" json:"round" toml:"round" yaml:"round"`
	ValidatorAddress string    `boil:"validator_address" json:"validatorAddress" toml:"validatorAddress" yaml:"validatorAddress"`
	Flag             int       `boil:"flag" json:"flag" toml:"flag" yaml:"flag"`
	Timestamp        time.Time `boil:"timestamp" json:"timestamp" toml:"timestamp" yaml:"timestamp"`
	Hash             string    `boil:"hash" json:"hash" toml:"hash" yaml:"hash"`
	VotingPower      int       `boil:"voting_power" json:"votingPower" toml:"votingPower" yaml:"votingPower"`
	ProposerPriority int       `boil:"proposer_priority" json:"proposerPriority" toml:"proposerPriority" yaml:"proposerPriority"`
	CreatedAt        time.Time `boil:"created_at" json:"createdAt" toml:"createdAt" yaml:"createdAt"`
	UpdatedAt        time.Time `boil:"updated_at" json:"updatedAt" toml:"updatedAt" yaml:"updatedAt"`
	DeletedAt        null.Time `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deletedAt" yaml:"deletedAt,omitempty"`

	R *blockSignatureR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L blockSignatureL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

BlockSignature is an object representing the database table.

func FindBlockSignature

func FindBlockSignature(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*BlockSignature, error)

FindBlockSignature retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*BlockSignature) Delete

func (o *BlockSignature) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single BlockSignature record with an executor. Delete will match against the primary key column to find the record to delete.

func (*BlockSignature) Insert

func (o *BlockSignature) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*BlockSignature) Reload

func (o *BlockSignature) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*BlockSignature) SetValidator

func (o *BlockSignature) SetValidator(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Validator) error

SetValidator of the blockSignature to the related item. Sets o.R.Validator to related. Adds o to related.R.ValidatorAddressBlockSignatures.

func (*BlockSignature) Update

func (o *BlockSignature) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the BlockSignature. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*BlockSignature) Upsert

func (o *BlockSignature) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*BlockSignature) Validator

func (o *BlockSignature) Validator(mods ...qm.QueryMod) validatorQuery

Validator pointed to by the foreign key.

type BlockSignatureSlice

type BlockSignatureSlice []*BlockSignature

BlockSignatureSlice is an alias for a slice of pointers to BlockSignature. This should generally be used opposed to []BlockSignature.

func (BlockSignatureSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*BlockSignatureSlice) ReloadAll

func (o *BlockSignatureSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (BlockSignatureSlice) UpdateAll

func (o BlockSignatureSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type BlockSlice

type BlockSlice []*Block

BlockSlice is an alias for a slice of pointers to Block. This should generally be used opposed to []Block.

func (BlockSlice) DeleteAll

func (o BlockSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*BlockSlice) ReloadAll

func (o *BlockSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (BlockSlice) UpdateAll

func (o BlockSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type Post

type Post struct {
	ID                      string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Height                  int64     `boil:"height" json:"height" toml:"height" yaml:"height"`
	VendorID                int       `boil:"vendor_id" json:"vendorID" toml:"vendorID" yaml:"vendorID"`
	PostID                  string    `boil:"post_id" json:"postID" toml:"postID" yaml:"postID"`
	Creator                 string    `boil:"creator" json:"creator" toml:"creator" yaml:"creator"`
	RewardAddress           string    `boil:"reward_address" json:"rewardAddress" toml:"rewardAddress" yaml:"rewardAddress"`
	Timestamp               time.Time `boil:"timestamp" json:"timestamp" toml:"timestamp" yaml:"timestamp"`
	CurationEndTime         time.Time `boil:"curation_end_time" json:"curationEndTime" toml:"curationEndTime" yaml:"curationEndTime"`
	Body                    string    `boil:"body" json:"body" toml:"body" yaml:"body"`
	TotalVotes              int       `boil:"total_votes" json:"totalVotes" toml:"totalVotes" yaml:"totalVotes"`
	TotalVotesAmount        int64     `boil:"total_votes_amount" json:"totalVotesAmount" toml:"totalVotesAmount" yaml:"totalVotesAmount"`
	TotalVotesDenom         string    `boil:"total_votes_denom" json:"totalVotesDenom" toml:"totalVotesDenom" yaml:"totalVotesDenom"`
	CreatedAt               time.Time `boil:"created_at" json:"createdAt" toml:"createdAt" yaml:"createdAt"`
	UpdatedAt               time.Time `boil:"updated_at" json:"updatedAt" toml:"updatedAt" yaml:"updatedAt"`
	DeletedAt               null.Time `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deletedAt" yaml:"deletedAt,omitempty"`
	TotalVoterCount         int       `boil:"total_voter_count" json:"totalVoterCount" toml:"totalVoterCount" yaml:"totalVoterCount"`
	TotalUpvoteRewardAmount int64     `` /* 126-byte string literal not displayed */
	TotalUpvoteRewardDenom  string    `boil:"total_upvote_reward_denom" json:"totalUpvoteRewardDenom" toml:"totalUpvoteRewardDenom" yaml:"totalUpvoteRewardDenom"`
	TotalStakedAmount       int64     `boil:"total_staked_amount" json:"totalStakedAmount" toml:"totalStakedAmount" yaml:"totalStakedAmount"`
	BodyHash                string    `boil:"body_hash" json:"bodyHash" toml:"bodyHash" yaml:"bodyHash"`
	ChainID                 string    `boil:"chain_id" json:"chainID" toml:"chainID" yaml:"chainID"`
	Owner                   string    `boil:"owner" json:"owner" toml:"owner" yaml:"owner"`
	ContractAddress         string    `boil:"contract_address" json:"contractAddress" toml:"contractAddress" yaml:"contractAddress"`
	Metadata                string    `boil:"metadata" json:"metadata" toml:"metadata" yaml:"metadata"`
	Locked                  bool      `boil:"locked" json:"locked" toml:"locked" yaml:"locked"`
	ParentID                string    `boil:"parent_id" json:"parentID" toml:"parentID" yaml:"parentID"`

	R *postR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L postL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Post is an object representing the database table.

func FindPost

func FindPost(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Post, error)

FindPost retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Post) Delete

func (o *Post) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Post record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Post) Insert

func (o *Post) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Post) Reload

func (o *Post) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Post) Update

func (o *Post) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Post. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Post) Upsert

func (o *Post) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type PostSlice

type PostSlice []*Post

PostSlice is an alias for a slice of pointers to Post. This should generally be used opposed to []Post.

func (PostSlice) DeleteAll

func (o PostSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*PostSlice) ReloadAll

func (o *PostSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (PostSlice) UpdateAll

func (o PostSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Stake

type Stake struct {
	ID        int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Height    int64     `boil:"height" json:"height" toml:"height" yaml:"height"`
	VendorID  int       `boil:"vendor_id" json:"vendorID" toml:"vendorID" yaml:"vendorID"`
	PostID    string    `boil:"post_id" json:"postID" toml:"postID" yaml:"postID"`
	Delegator string    `boil:"delegator" json:"delegator" toml:"delegator" yaml:"delegator"`
	Validator string    `boil:"validator" json:"validator" toml:"validator" yaml:"validator"`
	Amount    int64     `boil:"amount" json:"amount" toml:"amount" yaml:"amount"`
	CreatedAt time.Time `boil:"created_at" json:"createdAt" toml:"createdAt" yaml:"createdAt"`
	UpdatedAt time.Time `boil:"updated_at" json:"updatedAt" toml:"updatedAt" yaml:"updatedAt"`
	DeletedAt null.Time `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deletedAt" yaml:"deletedAt,omitempty"`

	R *stakeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L stakeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Stake is an object representing the database table.

func FindStake

func FindStake(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Stake, error)

FindStake retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Stake) Delete

func (o *Stake) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Stake record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Stake) Insert

func (o *Stake) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Stake) Reload

func (o *Stake) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Stake) Update

func (o *Stake) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Stake. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Stake) Upsert

func (o *Stake) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type StakeSlice

type StakeSlice []*Stake

StakeSlice is an alias for a slice of pointers to Stake. This should generally be used opposed to []Stake.

func (StakeSlice) DeleteAll

func (o StakeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*StakeSlice) ReloadAll

func (o *StakeSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (StakeSlice) UpdateAll

func (o StakeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type SyncLog

type SyncLog struct {
	BlockHeight int64     `boil:"block_height" json:"blockHeight" toml:"blockHeight" yaml:"blockHeight"`
	Processed   bool      `boil:"processed" json:"processed" toml:"processed" yaml:"processed"`
	Retries     int       `boil:"retries" json:"retries" toml:"retries" yaml:"retries"`
	Step        int       `boil:"step" json:"step" toml:"step" yaml:"step"`
	NextRetry   null.Time `boil:"next_retry" json:"nextRetry,omitempty" toml:"nextRetry" yaml:"nextRetry,omitempty"`
	SyncedAt    null.Time `boil:"synced_at" json:"syncedAt,omitempty" toml:"syncedAt" yaml:"syncedAt,omitempty"`
	CreatedAt   time.Time `boil:"created_at" json:"createdAt" toml:"createdAt" yaml:"createdAt"`
	UpdatedAt   time.Time `boil:"updated_at" json:"updatedAt" toml:"updatedAt" yaml:"updatedAt"`
	DeletedAt   null.Time `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deletedAt" yaml:"deletedAt,omitempty"`

	R *syncLogR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L syncLogL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

SyncLog is an object representing the database table.

func FindSyncLog

func FindSyncLog(ctx context.Context, exec boil.ContextExecutor, blockHeight int64, selectCols ...string) (*SyncLog, error)

FindSyncLog retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*SyncLog) Delete

func (o *SyncLog) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single SyncLog record with an executor. Delete will match against the primary key column to find the record to delete.

func (*SyncLog) Insert

func (o *SyncLog) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*SyncLog) Reload

func (o *SyncLog) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*SyncLog) Update

func (o *SyncLog) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the SyncLog. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*SyncLog) Upsert

func (o *SyncLog) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type SyncLogSlice

type SyncLogSlice []*SyncLog

SyncLogSlice is an alias for a slice of pointers to SyncLog. This should generally be used opposed to []SyncLog.

func (SyncLogSlice) DeleteAll

func (o SyncLogSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*SyncLogSlice) ReloadAll

func (o *SyncLogSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (SyncLogSlice) UpdateAll

func (o SyncLogSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Transaction

type Transaction struct {
	Hash       string     `boil:"hash" json:"hash" toml:"hash" yaml:"hash"`
	GasWanted  int        `boil:"gas_wanted" json:"gasWanted" toml:"gasWanted" yaml:"gasWanted"`
	GasUsed    int        `boil:"gas_used" json:"gasUsed" toml:"gasUsed" yaml:"gasUsed"`
	Height     int64      `boil:"height" json:"height" toml:"height" yaml:"height"`
	Events     types.JSON `boil:"events" json:"events" toml:"events" yaml:"events"`
	Messages   types.JSON `boil:"messages" json:"messages" toml:"messages" yaml:"messages"`
	Fee        types.JSON `boil:"fee" json:"fee" toml:"fee" yaml:"fee"`
	Signatures types.JSON `boil:"signatures" json:"signatures" toml:"signatures" yaml:"signatures"`
	Memo       string     `boil:"memo" json:"memo" toml:"memo" yaml:"memo"`
	CreatedAt  time.Time  `boil:"created_at" json:"createdAt" toml:"createdAt" yaml:"createdAt"`
	UpdatedAt  time.Time  `boil:"updated_at" json:"updatedAt" toml:"updatedAt" yaml:"updatedAt"`
	DeletedAt  null.Time  `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deletedAt" yaml:"deletedAt,omitempty"`

	R *transactionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L transactionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Transaction is an object representing the database table.

func FindTransaction

func FindTransaction(ctx context.Context, exec boil.ContextExecutor, hash string, selectCols ...string) (*Transaction, error)

FindTransaction retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Transaction) Block

func (o *Transaction) Block(mods ...qm.QueryMod) blockQuery

Block pointed to by the foreign key.

func (*Transaction) Delete

func (o *Transaction) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Transaction record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Transaction) Insert

func (o *Transaction) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Transaction) Reload

func (o *Transaction) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Transaction) SetBlock

func (o *Transaction) SetBlock(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Block) error

SetBlock of the transaction to the related item. Sets o.R.Block to related. Adds o to related.R.HeightTransactions.

func (*Transaction) Update

func (o *Transaction) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Transaction. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Transaction) Upsert

func (o *Transaction) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type TransactionSlice

type TransactionSlice []*Transaction

TransactionSlice is an alias for a slice of pointers to Transaction. This should generally be used opposed to []Transaction.

func (TransactionSlice) DeleteAll

func (o TransactionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*TransactionSlice) ReloadAll

func (o *TransactionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (TransactionSlice) UpdateAll

func (o TransactionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Upvote

type Upvote struct {
	ID            string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Height        int64     `boil:"height" json:"height" toml:"height" yaml:"height"`
	VendorID      int       `boil:"vendor_id" json:"vendorID" toml:"vendorID" yaml:"vendorID"`
	PostID        string    `boil:"post_id" json:"postID" toml:"postID" yaml:"postID"`
	Creator       string    `boil:"creator" json:"creator" toml:"creator" yaml:"creator"`
	RewardAddress string    `boil:"reward_address" json:"rewardAddress" toml:"rewardAddress" yaml:"rewardAddress"`
	VoteNumber    int       `boil:"vote_number" json:"voteNumber" toml:"voteNumber" yaml:"voteNumber"`
	VoteAmount    int64     `boil:"vote_amount" json:"voteAmount" toml:"voteAmount" yaml:"voteAmount"`
	VoteDenom     string    `boil:"vote_denom" json:"voteDenom" toml:"voteDenom" yaml:"voteDenom"`
	Timestamp     time.Time `boil:"timestamp" json:"timestamp" toml:"timestamp" yaml:"timestamp"`
	Body          string    `boil:"body" json:"body" toml:"body" yaml:"body"`
	CreatedAt     time.Time `boil:"created_at" json:"createdAt" toml:"createdAt" yaml:"createdAt"`
	UpdatedAt     time.Time `boil:"updated_at" json:"updatedAt" toml:"updatedAt" yaml:"updatedAt"`
	DeletedAt     null.Time `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deletedAt" yaml:"deletedAt,omitempty"`

	R *upvoteR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L upvoteL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Upvote is an object representing the database table.

func FindUpvote

func FindUpvote(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Upvote, error)

FindUpvote retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Upvote) Delete

func (o *Upvote) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Upvote record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Upvote) Insert

func (o *Upvote) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Upvote) Reload

func (o *Upvote) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Upvote) Update

func (o *Upvote) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Upvote. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Upvote) Upsert

func (o *Upvote) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type UpvoteReward

type UpvoteReward struct {
	ID            int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Height        int64     `boil:"height" json:"height" toml:"height" yaml:"height"`
	VendorID      int       `boil:"vendor_id" json:"vendorID" toml:"vendorID" yaml:"vendorID"`
	PostID        string    `boil:"post_id" json:"postID" toml:"postID" yaml:"postID"`
	RewardAddress string    `boil:"reward_address" json:"rewardAddress" toml:"rewardAddress" yaml:"rewardAddress"`
	RewardAmount  int64     `boil:"reward_amount" json:"rewardAmount" toml:"rewardAmount" yaml:"rewardAmount"`
	RewardDenom   string    `boil:"reward_denom" json:"rewardDenom" toml:"rewardDenom" yaml:"rewardDenom"`
	CreatedAt     time.Time `boil:"created_at" json:"createdAt" toml:"createdAt" yaml:"createdAt"`
	UpdatedAt     time.Time `boil:"updated_at" json:"updatedAt" toml:"updatedAt" yaml:"updatedAt"`
	DeletedAt     null.Time `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deletedAt" yaml:"deletedAt,omitempty"`

	R *upvoteRewardR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L upvoteRewardL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

UpvoteReward is an object representing the database table.

func FindUpvoteReward

func FindUpvoteReward(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*UpvoteReward, error)

FindUpvoteReward retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*UpvoteReward) Delete

func (o *UpvoteReward) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single UpvoteReward record with an executor. Delete will match against the primary key column to find the record to delete.

func (*UpvoteReward) Insert

func (o *UpvoteReward) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*UpvoteReward) Reload

func (o *UpvoteReward) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*UpvoteReward) Update

func (o *UpvoteReward) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the UpvoteReward. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*UpvoteReward) Upsert

func (o *UpvoteReward) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type UpvoteRewardSlice

type UpvoteRewardSlice []*UpvoteReward

UpvoteRewardSlice is an alias for a slice of pointers to UpvoteReward. This should generally be used opposed to []UpvoteReward.

func (UpvoteRewardSlice) DeleteAll

func (o UpvoteRewardSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*UpvoteRewardSlice) ReloadAll

func (o *UpvoteRewardSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (UpvoteRewardSlice) UpdateAll

func (o UpvoteRewardSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type UpvoteSlice

type UpvoteSlice []*Upvote

UpvoteSlice is an alias for a slice of pointers to Upvote. This should generally be used opposed to []Upvote.

func (UpvoteSlice) DeleteAll

func (o UpvoteSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*UpvoteSlice) ReloadAll

func (o *UpvoteSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (UpvoteSlice) UpdateAll

func (o UpvoteSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Validator

type Validator struct {
	Address   string    `boil:"address" json:"address" toml:"address" yaml:"address"`
	PubKey    string    `boil:"pub_key" json:"pubKey" toml:"pubKey" yaml:"pubKey"`
	CreatedAt time.Time `boil:"created_at" json:"createdAt" toml:"createdAt" yaml:"createdAt"`
	UpdatedAt time.Time `boil:"updated_at" json:"updatedAt" toml:"updatedAt" yaml:"updatedAt"`
	DeletedAt null.Time `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deletedAt" yaml:"deletedAt,omitempty"`

	R *validatorR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L validatorL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Validator is an object representing the database table.

func FindValidator

func FindValidator(ctx context.Context, exec boil.ContextExecutor, address string, selectCols ...string) (*Validator, error)

FindValidator retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Validator) AddProposerAddressBlocks

func (o *Validator) AddProposerAddressBlocks(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Block) error

AddProposerAddressBlocks adds the given related objects to the existing relationships of the validator, optionally inserting them as new records. Appends related to o.R.ProposerAddressBlocks. Sets related.R.Proposer appropriately.

func (*Validator) AddValidatorAddressBlockSignatures

func (o *Validator) AddValidatorAddressBlockSignatures(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*BlockSignature) error

AddValidatorAddressBlockSignatures adds the given related objects to the existing relationships of the validator, optionally inserting them as new records. Appends related to o.R.ValidatorAddressBlockSignatures. Sets related.R.Validator appropriately.

func (*Validator) Delete

func (o *Validator) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Validator record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Validator) Insert

func (o *Validator) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Validator) ProposerAddressBlocks

func (o *Validator) ProposerAddressBlocks(mods ...qm.QueryMod) blockQuery

ProposerAddressBlocks retrieves all the block's Blocks with an executor via proposer_address column.

func (*Validator) Reload

func (o *Validator) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Validator) Update

func (o *Validator) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Validator. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Validator) Upsert

func (o *Validator) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*Validator) ValidatorAddressBlockSignatures

func (o *Validator) ValidatorAddressBlockSignatures(mods ...qm.QueryMod) blockSignatureQuery

ValidatorAddressBlockSignatures retrieves all the block_signature's BlockSignatures with an executor via validator_address column.

type ValidatorSlice

type ValidatorSlice []*Validator

ValidatorSlice is an alias for a slice of pointers to Validator. This should generally be used opposed to []Validator.

func (ValidatorSlice) DeleteAll

func (o ValidatorSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*ValidatorSlice) ReloadAll

func (o *ValidatorSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ValidatorSlice) UpdateAll

func (o ValidatorSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

Jump to

Keyboard shortcuts

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