models

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IssuanceWeeksJobStatusStarted  string = "Started"
	IssuanceWeeksJobStatusFailed   string = "Failed"
	IssuanceWeeksJobStatusFinished string = "Finished"
)

Enum values for IssuanceWeeksJobStatus

View Source
const (
	WalletTypeBaseline    string = "Baseline"
	WalletTypeReferrals   string = "Referrals"
	WalletTypeMarketplace string = "Marketplace"
)

Enum values for WalletType

View Source
const (
	MetaTransactionRequestStatusUnsubmitted string = "Unsubmitted"
	MetaTransactionRequestStatusSubmitted   string = "Submitted"
	MetaTransactionRequestStatusMined       string = "Mined"
	MetaTransactionRequestStatusConfirmed   string = "Confirmed"
)

Enum values for MetaTransactionRequestStatus

View Source
const (
	RewardsTransferFailureReasonDidntQualify string = "DidntQualify"
	RewardsTransferFailureReasonTxReverted   string = "TxReverted"
)

Enum values for RewardsTransferFailureReason

Variables

View Source
var BlacklistColumns = struct {
	UserEthereumAddress string
	CreatedAt           string
	Note                string
}{
	UserEthereumAddress: "user_ethereum_address",
	CreatedAt:           "created_at",
	Note:                "note",
}
View Source
var BlacklistRels = struct {
}{}

BlacklistRels is where relationship names are stored.

View Source
var BlacklistTableColumns = struct {
	UserEthereumAddress string
	CreatedAt           string
	Note                string
}{
	UserEthereumAddress: "blacklist.user_ethereum_address",
	CreatedAt:           "blacklist.created_at",
	Note:                "blacklist.note",
}
View Source
var BlacklistWhere = struct {
	UserEthereumAddress whereHelperstring
	CreatedAt           whereHelpertime_Time
	Note                whereHelperstring
}{
	UserEthereumAddress: whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:           whereHelpertime_Time{/* contains filtered or unexported fields */},
	Note:                whereHelperstring{/* 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 IssuanceWeekColumns = struct {
	ID        string
	JobStatus string
	CreatedAt string
	UpdatedAt string
	StartsAt  string
	EndsAt    string
}{
	ID:        "id",
	JobStatus: "job_status",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	StartsAt:  "starts_at",
	EndsAt:    "ends_at",
}
View Source
var IssuanceWeekRels = struct {
	Rewards string
}{
	Rewards: "Rewards",
}

IssuanceWeekRels is where relationship names are stored.

View Source
var IssuanceWeekTableColumns = struct {
	ID        string
	JobStatus string
	CreatedAt string
	UpdatedAt string
	StartsAt  string
	EndsAt    string
}{
	ID:        "issuance_weeks.id",
	JobStatus: "issuance_weeks.job_status",
	CreatedAt: "issuance_weeks.created_at",
	UpdatedAt: "issuance_weeks.updated_at",
	StartsAt:  "issuance_weeks.starts_at",
	EndsAt:    "issuance_weeks.ends_at",
}
View Source
var IssuanceWeekWhere = struct {
	ID        whereHelperint
	JobStatus whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	StartsAt  whereHelpertime_Time
	EndsAt    whereHelpertime_Time
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	JobStatus: whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	StartsAt:  whereHelpertime_Time{/* contains filtered or unexported fields */},
	EndsAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var KnownWalletColumns = struct {
	ChainID     string
	Address     string
	Description string
	Type        string
}{
	ChainID:     "chain_id",
	Address:     "address",
	Description: "description",
	Type:        "type",
}
View Source
var KnownWalletRels = struct {
}{}

KnownWalletRels is where relationship names are stored.

View Source
var KnownWalletTableColumns = struct {
	ChainID     string
	Address     string
	Description string
	Type        string
}{
	ChainID:     "known_wallets.chain_id",
	Address:     "known_wallets.address",
	Description: "known_wallets.description",
	Type:        "known_wallets.type",
}
View Source
var KnownWalletWhere = struct {
	ChainID     whereHelperint64
	Address     whereHelper__byte
	Description whereHelperstring
	Type        whereHelpernull_String
}{
	ChainID:     whereHelperint64{/* contains filtered or unexported fields */},
	Address:     whereHelper__byte{/* contains filtered or unexported fields */},
	Description: whereHelperstring{/* contains filtered or unexported fields */},
	Type:        whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var MetaTransactionRequestColumns = struct {
	ID         string
	Hash       string
	Status     string
	Successful string
	CreatedAt  string
	UpdatedAt  string
}{
	ID:         "id",
	Hash:       "hash",
	Status:     "status",
	Successful: "successful",
	CreatedAt:  "created_at",
	UpdatedAt:  "updated_at",
}
View Source
var MetaTransactionRequestRels = struct {
	TransferMetaTransactionRequestRewards string
}{
	TransferMetaTransactionRequestRewards: "TransferMetaTransactionRequestRewards",
}

MetaTransactionRequestRels is where relationship names are stored.

View Source
var MetaTransactionRequestTableColumns = struct {
	ID         string
	Hash       string
	Status     string
	Successful string
	CreatedAt  string
	UpdatedAt  string
}{
	ID:         "meta_transaction_requests.id",
	Hash:       "meta_transaction_requests.hash",
	Status:     "meta_transaction_requests.status",
	Successful: "meta_transaction_requests.successful",
	CreatedAt:  "meta_transaction_requests.created_at",
	UpdatedAt:  "meta_transaction_requests.updated_at",
}
View Source
var MetaTransactionRequestWhere = struct {
	ID         whereHelperstring
	Hash       whereHelpernull_String
	Status     whereHelperstring
	Successful whereHelpernull_Bool
	CreatedAt  whereHelpertime_Time
	UpdatedAt  whereHelpertime_Time
}{
	ID:         whereHelperstring{/* contains filtered or unexported fields */},
	Hash:       whereHelpernull_String{/* contains filtered or unexported fields */},
	Status:     whereHelperstring{/* contains filtered or unexported fields */},
	Successful: whereHelpernull_Bool{/* contains filtered or unexported fields */},
	CreatedAt:  whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:  whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var OverrideColumns = struct {
	IssuanceWeekID   string
	UserDeviceID     string
	ConnectionStreak string
	Note             string
}{
	IssuanceWeekID:   "issuance_week_id",
	UserDeviceID:     "user_device_id",
	ConnectionStreak: "connection_streak",
	Note:             "note",
}
View Source
var OverrideRels = struct {
}{}

OverrideRels is where relationship names are stored.

View Source
var OverrideTableColumns = struct {
	IssuanceWeekID   string
	UserDeviceID     string
	ConnectionStreak string
	Note             string
}{
	IssuanceWeekID:   "overrides.issuance_week_id",
	UserDeviceID:     "overrides.user_device_id",
	ConnectionStreak: "overrides.connection_streak",
	Note:             "overrides.note",
}
View Source
var OverrideWhere = struct {
	IssuanceWeekID   whereHelperint
	UserDeviceID     whereHelperstring
	ConnectionStreak whereHelperint
	Note             whereHelperstring
}{
	IssuanceWeekID:   whereHelperint{/* contains filtered or unexported fields */},
	UserDeviceID:     whereHelperstring{/* contains filtered or unexported fields */},
	ConnectionStreak: whereHelperint{/* contains filtered or unexported fields */},
	Note:             whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var RewardColumns = struct {
	IssuanceWeekID                   string
	UserDeviceID                     string
	UserID                           string
	ConnectionStreak                 string
	DisconnectionStreak              string
	StreakPoints                     string
	IntegrationIds                   string
	IntegrationPoints                string
	CreatedAt                        string
	UpdatedAt                        string
	Tokens                           string
	UserEthereumAddress              string
	UserDeviceTokenID                string
	TransferMetaTransactionRequestID string
	TransferSuccessful               string
	TransferFailureReason            string
	AftermarketTokenID               string
}{
	IssuanceWeekID:                   "issuance_week_id",
	UserDeviceID:                     "user_device_id",
	UserID:                           "user_id",
	ConnectionStreak:                 "connection_streak",
	DisconnectionStreak:              "disconnection_streak",
	StreakPoints:                     "streak_points",
	IntegrationIds:                   "integration_ids",
	IntegrationPoints:                "integration_points",
	CreatedAt:                        "created_at",
	UpdatedAt:                        "updated_at",
	Tokens:                           "tokens",
	UserEthereumAddress:              "user_ethereum_address",
	UserDeviceTokenID:                "user_device_token_id",
	TransferMetaTransactionRequestID: "transfer_meta_transaction_request_id",
	TransferSuccessful:               "transfer_successful",
	TransferFailureReason:            "transfer_failure_reason",
	AftermarketTokenID:               "aftermarket_token_id",
}
View Source
var RewardRels = struct {
	IssuanceWeek                   string
	TransferMetaTransactionRequest string
}{
	IssuanceWeek:                   "IssuanceWeek",
	TransferMetaTransactionRequest: "TransferMetaTransactionRequest",
}

RewardRels is where relationship names are stored.

View Source
var RewardTableColumns = struct {
	IssuanceWeekID                   string
	UserDeviceID                     string
	UserID                           string
	ConnectionStreak                 string
	DisconnectionStreak              string
	StreakPoints                     string
	IntegrationIds                   string
	IntegrationPoints                string
	CreatedAt                        string
	UpdatedAt                        string
	Tokens                           string
	UserEthereumAddress              string
	UserDeviceTokenID                string
	TransferMetaTransactionRequestID string
	TransferSuccessful               string
	TransferFailureReason            string
	AftermarketTokenID               string
}{
	IssuanceWeekID:                   "rewards.issuance_week_id",
	UserDeviceID:                     "rewards.user_device_id",
	UserID:                           "rewards.user_id",
	ConnectionStreak:                 "rewards.connection_streak",
	DisconnectionStreak:              "rewards.disconnection_streak",
	StreakPoints:                     "rewards.streak_points",
	IntegrationIds:                   "rewards.integration_ids",
	IntegrationPoints:                "rewards.integration_points",
	CreatedAt:                        "rewards.created_at",
	UpdatedAt:                        "rewards.updated_at",
	Tokens:                           "rewards.tokens",
	UserEthereumAddress:              "rewards.user_ethereum_address",
	UserDeviceTokenID:                "rewards.user_device_token_id",
	TransferMetaTransactionRequestID: "rewards.transfer_meta_transaction_request_id",
	TransferSuccessful:               "rewards.transfer_successful",
	TransferFailureReason:            "rewards.transfer_failure_reason",
	AftermarketTokenID:               "rewards.aftermarket_token_id",
}
View Source
var RewardWhere = struct {
	IssuanceWeekID                   whereHelperint
	UserDeviceID                     whereHelperstring
	UserID                           whereHelperstring
	ConnectionStreak                 whereHelperint
	DisconnectionStreak              whereHelperint
	StreakPoints                     whereHelperint
	IntegrationIds                   whereHelpertypes_StringArray
	IntegrationPoints                whereHelperint
	CreatedAt                        whereHelpertime_Time
	UpdatedAt                        whereHelpertime_Time
	Tokens                           whereHelpertypes_NullDecimal
	UserEthereumAddress              whereHelpernull_String
	UserDeviceTokenID                whereHelpertypes_NullDecimal
	TransferMetaTransactionRequestID whereHelpernull_String
	TransferSuccessful               whereHelpernull_Bool
	TransferFailureReason            whereHelpernull_String
	AftermarketTokenID               whereHelpertypes_NullDecimal
}{
	IssuanceWeekID:                   whereHelperint{/* contains filtered or unexported fields */},
	UserDeviceID:                     whereHelperstring{/* contains filtered or unexported fields */},
	UserID:                           whereHelperstring{/* contains filtered or unexported fields */},
	ConnectionStreak:                 whereHelperint{/* contains filtered or unexported fields */},
	DisconnectionStreak:              whereHelperint{/* contains filtered or unexported fields */},
	StreakPoints:                     whereHelperint{/* contains filtered or unexported fields */},
	IntegrationIds:                   whereHelpertypes_StringArray{/* contains filtered or unexported fields */},
	IntegrationPoints:                whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt:                        whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:                        whereHelpertime_Time{/* contains filtered or unexported fields */},
	Tokens:                           whereHelpertypes_NullDecimal{/* contains filtered or unexported fields */},
	UserEthereumAddress:              whereHelpernull_String{/* contains filtered or unexported fields */},
	UserDeviceTokenID:                whereHelpertypes_NullDecimal{/* contains filtered or unexported fields */},
	TransferMetaTransactionRequestID: whereHelpernull_String{/* contains filtered or unexported fields */},
	TransferSuccessful:               whereHelpernull_Bool{/* contains filtered or unexported fields */},
	TransferFailureReason:            whereHelpernull_String{/* contains filtered or unexported fields */},
	AftermarketTokenID:               whereHelpertypes_NullDecimal{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Blacklist               string
	IssuanceWeeks           string
	KnownWallets            string
	MetaTransactionRequests string
	Overrides               string
	Rewards                 string
	TokenTransfers          string
}{
	Blacklist:               "blacklist",
	IssuanceWeeks:           "issuance_weeks",
	KnownWallets:            "known_wallets",
	MetaTransactionRequests: "meta_transaction_requests",
	Overrides:               "overrides",
	Rewards:                 "rewards",
	TokenTransfers:          "token_transfers",
}
View Source
var TokenTransferColumns = struct {
	ChainID         string
	AddressFrom     string
	AddressTo       string
	Amount          string
	TransactionHash string
	LogIndex        string
	BlockTimestamp  string
	UpdatedAt       string
}{
	ChainID:         "chain_id",
	AddressFrom:     "address_from",
	AddressTo:       "address_to",
	Amount:          "amount",
	TransactionHash: "transaction_hash",
	LogIndex:        "log_index",
	BlockTimestamp:  "block_timestamp",
	UpdatedAt:       "updated_at",
}
View Source
var TokenTransferRels = struct {
}{}

TokenTransferRels is where relationship names are stored.

View Source
var TokenTransferTableColumns = struct {
	ChainID         string
	AddressFrom     string
	AddressTo       string
	Amount          string
	TransactionHash string
	LogIndex        string
	BlockTimestamp  string
	UpdatedAt       string
}{
	ChainID:         "token_transfers.chain_id",
	AddressFrom:     "token_transfers.address_from",
	AddressTo:       "token_transfers.address_to",
	Amount:          "token_transfers.amount",
	TransactionHash: "token_transfers.transaction_hash",
	LogIndex:        "token_transfers.log_index",
	BlockTimestamp:  "token_transfers.block_timestamp",
	UpdatedAt:       "token_transfers.updated_at",
}
View Source
var TokenTransferWhere = struct {
	ChainID         whereHelperint64
	AddressFrom     whereHelper__byte
	AddressTo       whereHelper__byte
	Amount          whereHelpertypes_Decimal
	TransactionHash whereHelper__byte
	LogIndex        whereHelperint
	BlockTimestamp  whereHelpertime_Time
	UpdatedAt       whereHelpertime_Time
}{
	ChainID:         whereHelperint64{/* contains filtered or unexported fields */},
	AddressFrom:     whereHelper__byte{/* contains filtered or unexported fields */},
	AddressTo:       whereHelper__byte{/* contains filtered or unexported fields */},
	Amount:          whereHelpertypes_Decimal{/* contains filtered or unexported fields */},
	TransactionHash: whereHelper__byte{/* contains filtered or unexported fields */},
	LogIndex:        whereHelperint{/* contains filtered or unexported fields */},
	BlockTimestamp:  whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ViewNames = struct {
}{}

Functions

func AddBlacklistHook added in v1.4.0

func AddBlacklistHook(hookPoint boil.HookPoint, blacklistHook BlacklistHook)

AddBlacklistHook registers your hook function for all future operations.

func AddIssuanceWeekHook

func AddIssuanceWeekHook(hookPoint boil.HookPoint, issuanceWeekHook IssuanceWeekHook)

AddIssuanceWeekHook registers your hook function for all future operations.

func AddKnownWalletHook added in v1.5.0

func AddKnownWalletHook(hookPoint boil.HookPoint, knownWalletHook KnownWalletHook)

AddKnownWalletHook registers your hook function for all future operations.

func AddMetaTransactionRequestHook added in v1.0.0

func AddMetaTransactionRequestHook(hookPoint boil.HookPoint, metaTransactionRequestHook MetaTransactionRequestHook)

AddMetaTransactionRequestHook registers your hook function for all future operations.

func AddOverrideHook added in v1.3.0

func AddOverrideHook(hookPoint boil.HookPoint, overrideHook OverrideHook)

AddOverrideHook registers your hook function for all future operations.

func AddRewardHook

func AddRewardHook(hookPoint boil.HookPoint, rewardHook RewardHook)

AddRewardHook registers your hook function for all future operations.

func AddTokenTransferHook added in v1.5.0

func AddTokenTransferHook(hookPoint boil.HookPoint, tokenTransferHook TokenTransferHook)

AddTokenTransferHook registers your hook function for all future operations.

func AllIssuanceWeeksJobStatus added in v1.0.0

func AllIssuanceWeeksJobStatus() []string

func AllMetaTransactionRequestStatus added in v1.0.0

func AllMetaTransactionRequestStatus() []string

func AllRewardsTransferFailureReason added in v1.0.0

func AllRewardsTransferFailureReason() []string

func AllWalletType added in v1.5.0

func AllWalletType() []string

func BlacklistExists added in v1.4.0

func BlacklistExists(ctx context.Context, exec boil.ContextExecutor, userEthereumAddress string) (bool, error)

BlacklistExists checks if the Blacklist row exists.

func Blacklists added in v1.4.0

func Blacklists(mods ...qm.QueryMod) blacklistQuery

Blacklists retrieves all the records using an executor.

func IssuanceWeekExists

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

IssuanceWeekExists checks if the IssuanceWeek row exists.

func IssuanceWeeks

func IssuanceWeeks(mods ...qm.QueryMod) issuanceWeekQuery

IssuanceWeeks retrieves all the records using an executor.

func KnownWalletExists added in v1.5.0

func KnownWalletExists(ctx context.Context, exec boil.ContextExecutor, chainID int64, address []byte) (bool, error)

KnownWalletExists checks if the KnownWallet row exists.

func KnownWallets added in v1.5.0

func KnownWallets(mods ...qm.QueryMod) knownWalletQuery

KnownWallets retrieves all the records using an executor.

func MetaTransactionRequestExists added in v1.0.0

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

MetaTransactionRequestExists checks if the MetaTransactionRequest row exists.

func MetaTransactionRequests added in v1.0.0

func MetaTransactionRequests(mods ...qm.QueryMod) metaTransactionRequestQuery

MetaTransactionRequests 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 OverrideExists added in v1.3.0

func OverrideExists(ctx context.Context, exec boil.ContextExecutor, issuanceWeekID int, userDeviceID string) (bool, error)

OverrideExists checks if the Override row exists.

func Overrides added in v1.3.0

func Overrides(mods ...qm.QueryMod) overrideQuery

Overrides retrieves all the records using an executor.

func RewardExists

func RewardExists(ctx context.Context, exec boil.ContextExecutor, issuanceWeekID int, userDeviceID string) (bool, error)

RewardExists checks if the Reward row exists.

func Rewards

func Rewards(mods ...qm.QueryMod) rewardQuery

Rewards retrieves all the records using an executor.

func TokenTransferExists added in v1.5.0

func TokenTransferExists(ctx context.Context, exec boil.ContextExecutor, chainID int64, transactionHash []byte, logIndex int) (bool, error)

TokenTransferExists checks if the TokenTransfer row exists.

func TokenTransfers added in v1.5.0

func TokenTransfers(mods ...qm.QueryMod) tokenTransferQuery

TokenTransfers retrieves all the records using an executor.

Types

type Blacklist added in v1.4.0

type Blacklist struct {
	UserEthereumAddress string    `boil:"user_ethereum_address" json:"user_ethereum_address" toml:"user_ethereum_address" yaml:"user_ethereum_address"`
	CreatedAt           time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	Note                string    `boil:"note" json:"note" toml:"note" yaml:"note"`

	R *blacklistR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L blacklistL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Blacklist is an object representing the database table.

func FindBlacklist added in v1.4.0

func FindBlacklist(ctx context.Context, exec boil.ContextExecutor, userEthereumAddress string, selectCols ...string) (*Blacklist, error)

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

func (*Blacklist) Delete added in v1.4.0

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

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

func (*Blacklist) Exists added in v1.5.0

func (o *Blacklist) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Blacklist row exists.

func (*Blacklist) Insert added in v1.4.0

func (o *Blacklist) 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 (*Blacklist) Reload added in v1.4.0

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

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

func (*Blacklist) Update added in v1.4.0

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

Update uses an executor to update the Blacklist. 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 (*Blacklist) Upsert added in v1.4.0

func (o *Blacklist) 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 BlacklistHook added in v1.4.0

type BlacklistHook func(context.Context, boil.ContextExecutor, *Blacklist) error

BlacklistHook is the signature for custom Blacklist hook methods

type BlacklistSlice added in v1.4.0

type BlacklistSlice []*Blacklist

BlacklistSlice is an alias for a slice of pointers to Blacklist. This should almost always be used instead of []Blacklist.

func (BlacklistSlice) DeleteAll added in v1.4.0

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

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

func (*BlacklistSlice) ReloadAll added in v1.4.0

func (o *BlacklistSlice) 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 (BlacklistSlice) UpdateAll added in v1.4.0

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

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

type IssuanceWeek

type IssuanceWeek struct {
	ID        int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	JobStatus string    `boil:"job_status" json:"job_status" toml:"job_status" yaml:"job_status"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	StartsAt  time.Time `boil:"starts_at" json:"starts_at" toml:"starts_at" yaml:"starts_at"`
	EndsAt    time.Time `boil:"ends_at" json:"ends_at" toml:"ends_at" yaml:"ends_at"`

	R *issuanceWeekR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L issuanceWeekL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

IssuanceWeek is an object representing the database table.

func FindIssuanceWeek

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

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

func (*IssuanceWeek) AddRewards

func (o *IssuanceWeek) AddRewards(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Reward) error

AddRewards adds the given related objects to the existing relationships of the issuance_week, optionally inserting them as new records. Appends related to o.R.Rewards. Sets related.R.IssuanceWeek appropriately.

func (*IssuanceWeek) Delete

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

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

func (*IssuanceWeek) Exists added in v1.5.0

func (o *IssuanceWeek) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the IssuanceWeek row exists.

func (*IssuanceWeek) Insert

func (o *IssuanceWeek) 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 (*IssuanceWeek) Reload

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

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

func (*IssuanceWeek) Rewards

func (o *IssuanceWeek) Rewards(mods ...qm.QueryMod) rewardQuery

Rewards retrieves all the reward's Rewards with an executor.

func (*IssuanceWeek) Update

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

Update uses an executor to update the IssuanceWeek. 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 (*IssuanceWeek) Upsert

func (o *IssuanceWeek) 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 IssuanceWeekHook

type IssuanceWeekHook func(context.Context, boil.ContextExecutor, *IssuanceWeek) error

IssuanceWeekHook is the signature for custom IssuanceWeek hook methods

type IssuanceWeekSlice

type IssuanceWeekSlice []*IssuanceWeek

IssuanceWeekSlice is an alias for a slice of pointers to IssuanceWeek. This should almost always be used instead of []IssuanceWeek.

func (IssuanceWeekSlice) DeleteAll

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

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

func (*IssuanceWeekSlice) ReloadAll

func (o *IssuanceWeekSlice) 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 (IssuanceWeekSlice) UpdateAll

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

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

type KnownWallet added in v1.5.0

type KnownWallet struct {
	ChainID     int64       `boil:"chain_id" json:"chain_id" toml:"chain_id" yaml:"chain_id"`
	Address     []byte      `boil:"address" json:"address" toml:"address" yaml:"address"`
	Description string      `boil:"description" json:"description" toml:"description" yaml:"description"`
	Type        null.String `boil:"type" json:"type,omitempty" toml:"type" yaml:"type,omitempty"`

	R *knownWalletR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L knownWalletL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

KnownWallet is an object representing the database table.

func FindKnownWallet added in v1.5.0

func FindKnownWallet(ctx context.Context, exec boil.ContextExecutor, chainID int64, address []byte, selectCols ...string) (*KnownWallet, error)

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

func (*KnownWallet) Delete added in v1.5.0

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

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

func (*KnownWallet) Exists added in v1.5.0

func (o *KnownWallet) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the KnownWallet row exists.

func (*KnownWallet) Insert added in v1.5.0

func (o *KnownWallet) 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 (*KnownWallet) Reload added in v1.5.0

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

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

func (*KnownWallet) Update added in v1.5.0

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

Update uses an executor to update the KnownWallet. 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 (*KnownWallet) Upsert added in v1.5.0

func (o *KnownWallet) 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 KnownWalletHook added in v1.5.0

type KnownWalletHook func(context.Context, boil.ContextExecutor, *KnownWallet) error

KnownWalletHook is the signature for custom KnownWallet hook methods

type KnownWalletSlice added in v1.5.0

type KnownWalletSlice []*KnownWallet

KnownWalletSlice is an alias for a slice of pointers to KnownWallet. This should almost always be used instead of []KnownWallet.

func (KnownWalletSlice) DeleteAll added in v1.5.0

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

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

func (*KnownWalletSlice) ReloadAll added in v1.5.0

func (o *KnownWalletSlice) 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 (KnownWalletSlice) UpdateAll added in v1.5.0

func (o KnownWalletSlice) 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 MetaTransactionRequest added in v1.0.0

type MetaTransactionRequest struct {
	ID         string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Hash       null.String `boil:"hash" json:"hash,omitempty" toml:"hash" yaml:"hash,omitempty"`
	Status     string      `boil:"status" json:"status" toml:"status" yaml:"status"`
	Successful null.Bool   `boil:"successful" json:"successful,omitempty" toml:"successful" yaml:"successful,omitempty"`
	CreatedAt  time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt  time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *metaTransactionRequestR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L metaTransactionRequestL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

MetaTransactionRequest is an object representing the database table.

func FindMetaTransactionRequest added in v1.0.0

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

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

func (*MetaTransactionRequest) AddTransferMetaTransactionRequestRewards added in v1.0.0

func (o *MetaTransactionRequest) AddTransferMetaTransactionRequestRewards(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Reward) error

AddTransferMetaTransactionRequestRewards adds the given related objects to the existing relationships of the meta_transaction_request, optionally inserting them as new records. Appends related to o.R.TransferMetaTransactionRequestRewards. Sets related.R.TransferMetaTransactionRequest appropriately.

func (*MetaTransactionRequest) Delete added in v1.0.0

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

func (*MetaTransactionRequest) Exists added in v1.5.0

Exists checks if the MetaTransactionRequest row exists.

func (*MetaTransactionRequest) Insert added in v1.0.0

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

func (*MetaTransactionRequest) Reload added in v1.0.0

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

func (*MetaTransactionRequest) RemoveTransferMetaTransactionRequestRewards added in v1.0.0

func (o *MetaTransactionRequest) RemoveTransferMetaTransactionRequestRewards(ctx context.Context, exec boil.ContextExecutor, related ...*Reward) error

RemoveTransferMetaTransactionRequestRewards relationships from objects passed in. Removes related items from R.TransferMetaTransactionRequestRewards (uses pointer comparison, removal does not keep order) Sets related.R.TransferMetaTransactionRequest.

func (*MetaTransactionRequest) SetTransferMetaTransactionRequestRewards added in v1.0.0

func (o *MetaTransactionRequest) SetTransferMetaTransactionRequestRewards(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Reward) error

SetTransferMetaTransactionRequestRewards removes all previously related items of the meta_transaction_request replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.TransferMetaTransactionRequest's TransferMetaTransactionRequestRewards accordingly. Replaces o.R.TransferMetaTransactionRequestRewards with related. Sets related.R.TransferMetaTransactionRequest's TransferMetaTransactionRequestRewards accordingly.

func (*MetaTransactionRequest) TransferMetaTransactionRequestRewards added in v1.0.0

func (o *MetaTransactionRequest) TransferMetaTransactionRequestRewards(mods ...qm.QueryMod) rewardQuery

TransferMetaTransactionRequestRewards retrieves all the reward's Rewards with an executor via transfer_meta_transaction_request_id column.

func (*MetaTransactionRequest) Update added in v1.0.0

Update uses an executor to update the MetaTransactionRequest. 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 (*MetaTransactionRequest) Upsert added in v1.0.0

func (o *MetaTransactionRequest) 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 MetaTransactionRequestHook added in v1.0.0

type MetaTransactionRequestHook func(context.Context, boil.ContextExecutor, *MetaTransactionRequest) error

MetaTransactionRequestHook is the signature for custom MetaTransactionRequest hook methods

type MetaTransactionRequestSlice added in v1.0.0

type MetaTransactionRequestSlice []*MetaTransactionRequest

MetaTransactionRequestSlice is an alias for a slice of pointers to MetaTransactionRequest. This should almost always be used instead of []MetaTransactionRequest.

func (MetaTransactionRequestSlice) DeleteAll added in v1.0.0

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

func (*MetaTransactionRequestSlice) ReloadAll added in v1.0.0

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

func (MetaTransactionRequestSlice) UpdateAll added in v1.0.0

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

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

type Override added in v1.3.0

type Override struct {
	IssuanceWeekID   int    `boil:"issuance_week_id" json:"issuance_week_id" toml:"issuance_week_id" yaml:"issuance_week_id"`
	UserDeviceID     string `boil:"user_device_id" json:"user_device_id" toml:"user_device_id" yaml:"user_device_id"`
	ConnectionStreak int    `boil:"connection_streak" json:"connection_streak" toml:"connection_streak" yaml:"connection_streak"`
	Note             string `boil:"note" json:"note" toml:"note" yaml:"note"`

	R *overrideR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L overrideL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Override is an object representing the database table.

func FindOverride added in v1.3.0

func FindOverride(ctx context.Context, exec boil.ContextExecutor, issuanceWeekID int, userDeviceID string, selectCols ...string) (*Override, error)

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

func (*Override) Delete added in v1.3.0

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

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

func (*Override) Exists added in v1.5.0

func (o *Override) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Override row exists.

func (*Override) Insert added in v1.3.0

func (o *Override) 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 (*Override) Reload added in v1.3.0

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

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

func (*Override) Update added in v1.3.0

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

Update uses an executor to update the Override. 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 (*Override) Upsert added in v1.3.0

func (o *Override) 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 OverrideHook added in v1.3.0

type OverrideHook func(context.Context, boil.ContextExecutor, *Override) error

OverrideHook is the signature for custom Override hook methods

type OverrideSlice added in v1.3.0

type OverrideSlice []*Override

OverrideSlice is an alias for a slice of pointers to Override. This should almost always be used instead of []Override.

func (OverrideSlice) DeleteAll added in v1.3.0

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

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

func (*OverrideSlice) ReloadAll added in v1.3.0

func (o *OverrideSlice) 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 (OverrideSlice) UpdateAll added in v1.3.0

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

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

type Reward

type Reward struct {
	IssuanceWeekID                   int               `boil:"issuance_week_id" json:"issuance_week_id" toml:"issuance_week_id" yaml:"issuance_week_id"`
	UserDeviceID                     string            `boil:"user_device_id" json:"user_device_id" toml:"user_device_id" yaml:"user_device_id"`
	UserID                           string            `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	ConnectionStreak                 int               `boil:"connection_streak" json:"connection_streak" toml:"connection_streak" yaml:"connection_streak"`
	DisconnectionStreak              int               `boil:"disconnection_streak" json:"disconnection_streak" toml:"disconnection_streak" yaml:"disconnection_streak"`
	StreakPoints                     int               `boil:"streak_points" json:"streak_points" toml:"streak_points" yaml:"streak_points"`
	IntegrationIds                   types.StringArray `boil:"integration_ids" json:"integration_ids" toml:"integration_ids" yaml:"integration_ids"`
	IntegrationPoints                int               `boil:"integration_points" json:"integration_points" toml:"integration_points" yaml:"integration_points"`
	CreatedAt                        time.Time         `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt                        time.Time         `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	Tokens                           types.NullDecimal `boil:"tokens" json:"tokens,omitempty" toml:"tokens" yaml:"tokens,omitempty"`
	UserEthereumAddress              null.String       `` /* 135-byte string literal not displayed */
	UserDeviceTokenID                types.NullDecimal `` /* 131-byte string literal not displayed */
	TransferMetaTransactionRequestID null.String       `` /* 195-byte string literal not displayed */
	TransferSuccessful               null.Bool         `` /* 127-byte string literal not displayed */
	TransferFailureReason            null.String       `` /* 143-byte string literal not displayed */
	AftermarketTokenID               types.NullDecimal `` /* 131-byte string literal not displayed */

	R *rewardR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L rewardL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Reward is an object representing the database table.

func FindReward

func FindReward(ctx context.Context, exec boil.ContextExecutor, issuanceWeekID int, userDeviceID string, selectCols ...string) (*Reward, error)

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

func (*Reward) Delete

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

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

func (*Reward) Exists added in v1.5.0

func (o *Reward) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Reward row exists.

func (*Reward) Insert

func (o *Reward) 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 (*Reward) IssuanceWeek

func (o *Reward) IssuanceWeek(mods ...qm.QueryMod) issuanceWeekQuery

IssuanceWeek pointed to by the foreign key.

func (*Reward) Reload

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

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

func (*Reward) RemoveTransferMetaTransactionRequest added in v1.0.0

func (o *Reward) RemoveTransferMetaTransactionRequest(ctx context.Context, exec boil.ContextExecutor, related *MetaTransactionRequest) error

RemoveTransferMetaTransactionRequest relationship. Sets o.R.TransferMetaTransactionRequest to nil. Removes o from all passed in related items' relationships struct.

func (*Reward) SetIssuanceWeek

func (o *Reward) SetIssuanceWeek(ctx context.Context, exec boil.ContextExecutor, insert bool, related *IssuanceWeek) error

SetIssuanceWeek of the reward to the related item. Sets o.R.IssuanceWeek to related. Adds o to related.R.Rewards.

func (*Reward) SetTransferMetaTransactionRequest added in v1.0.0

func (o *Reward) SetTransferMetaTransactionRequest(ctx context.Context, exec boil.ContextExecutor, insert bool, related *MetaTransactionRequest) error

SetTransferMetaTransactionRequest of the reward to the related item. Sets o.R.TransferMetaTransactionRequest to related. Adds o to related.R.TransferMetaTransactionRequestRewards.

func (*Reward) TransferMetaTransactionRequest added in v1.0.0

func (o *Reward) TransferMetaTransactionRequest(mods ...qm.QueryMod) metaTransactionRequestQuery

TransferMetaTransactionRequest pointed to by the foreign key.

func (*Reward) Update

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

Update uses an executor to update the Reward. 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 (*Reward) Upsert

func (o *Reward) 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 RewardHook

type RewardHook func(context.Context, boil.ContextExecutor, *Reward) error

RewardHook is the signature for custom Reward hook methods

type RewardSlice

type RewardSlice []*Reward

RewardSlice is an alias for a slice of pointers to Reward. This should almost always be used instead of []Reward.

func (RewardSlice) DeleteAll

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

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

func (*RewardSlice) ReloadAll

func (o *RewardSlice) 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 (RewardSlice) UpdateAll

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

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

type TokenTransfer added in v1.5.0

type TokenTransfer struct {
	ChainID         int64         `boil:"chain_id" json:"chain_id" toml:"chain_id" yaml:"chain_id"`
	AddressFrom     []byte        `boil:"address_from" json:"address_from" toml:"address_from" yaml:"address_from"`
	AddressTo       []byte        `boil:"address_to" json:"address_to" toml:"address_to" yaml:"address_to"`
	Amount          types.Decimal `boil:"amount" json:"amount" toml:"amount" yaml:"amount"`
	TransactionHash []byte        `boil:"transaction_hash" json:"transaction_hash" toml:"transaction_hash" yaml:"transaction_hash"`
	LogIndex        int           `boil:"log_index" json:"log_index" toml:"log_index" yaml:"log_index"`
	BlockTimestamp  time.Time     `boil:"block_timestamp" json:"block_timestamp" toml:"block_timestamp" yaml:"block_timestamp"`
	UpdatedAt       time.Time     `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *tokenTransferR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L tokenTransferL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

TokenTransfer is an object representing the database table.

func FindTokenTransfer added in v1.5.0

func FindTokenTransfer(ctx context.Context, exec boil.ContextExecutor, chainID int64, transactionHash []byte, logIndex int, selectCols ...string) (*TokenTransfer, error)

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

func (*TokenTransfer) Delete added in v1.5.0

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

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

func (*TokenTransfer) Exists added in v1.5.0

func (o *TokenTransfer) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the TokenTransfer row exists.

func (*TokenTransfer) Insert added in v1.5.0

func (o *TokenTransfer) 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 (*TokenTransfer) Reload added in v1.5.0

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

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

func (*TokenTransfer) Update added in v1.5.0

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

Update uses an executor to update the TokenTransfer. 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 (*TokenTransfer) Upsert added in v1.5.0

func (o *TokenTransfer) 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 TokenTransferHook added in v1.5.0

type TokenTransferHook func(context.Context, boil.ContextExecutor, *TokenTransfer) error

TokenTransferHook is the signature for custom TokenTransfer hook methods

type TokenTransferSlice added in v1.5.0

type TokenTransferSlice []*TokenTransfer

TokenTransferSlice is an alias for a slice of pointers to TokenTransfer. This should almost always be used instead of []TokenTransfer.

func (TokenTransferSlice) DeleteAll added in v1.5.0

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

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

func (*TokenTransferSlice) ReloadAll added in v1.5.0

func (o *TokenTransferSlice) 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 (TokenTransferSlice) UpdateAll added in v1.5.0

func (o TokenTransferSlice) 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