Documentation ¶
Index ¶
- func InsertTokenCommunityMemberships(ctx context.Context, q *db.Queries, memberships []db.TokenCommunityMembership, ...) ([]db.TokenCommunityMembership, error)
- func InsertTokenDefinitions(ctx context.Context, q *db.Queries, tokens []db.TokenDefinition) ([]db.TokenDefinition, []bool, error)
- type TokenFullDetails
- type TokenUpsertDeletionParams
- type TokenUpsertParams
- type UpsertToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertTokenDefinitions ¶
func InsertTokenDefinitions(ctx context.Context, q *db.Queries, tokens []db.TokenDefinition) ([]db.TokenDefinition, []bool, error)
Types ¶
type TokenFullDetails ¶
type TokenFullDetails struct { Instance db.Token Contract db.Contract Definition db.TokenDefinition }
func InsertTokens ¶
func InsertTokens(ctx context.Context, q *db.Queries, tokens []UpsertToken, opt TokenUpsertParams) (time.Time, []TokenFullDetails, error)
func TokenFullDetailsByUserTokenIdentifiers ¶
func TokenFullDetailsByUserTokenIdentifiers(ctx context.Context, q *db.Queries, userID persist.DBID, tID persist.TokenIdentifiers) (TokenFullDetails, error)
type TokenUpsertDeletionParams ¶
type TokenUpsertDeletionParams struct { DeleteCreatorStatus bool DeleteHolderStatus bool OnlyFromUserID *persist.DBID OnlyFromContracts []persist.DBID OnlyFromChains []persist.Chain }
func (*TokenUpsertDeletionParams) ToParams ¶
func (d *TokenUpsertDeletionParams) ToParams(upsertTime time.Time) db.DeleteTokensBeforeTimestampParams
type TokenUpsertParams ¶
type TokenUpsertParams struct { SetCreatorFields bool SetHolderFields bool // If OptionalDelete is nil, no delete will be performed OptionalDelete *TokenUpsertDeletionParams }
type UpsertToken ¶
type UpsertToken struct { Token db.Token // Identifiers aren't saved to the database, but are used for joining the token to its definitions Identifiers persist.TokenIdentifiers }
Click to show internal directories.
Click to hide internal directories.