Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWalletRepo ¶
Types ¶
type BalanceRequest ¶
type BalanceResponse ¶
type BalanceResponse struct { WalletAddress string `json:"walletAddress"` TokenBalance TokenBalance `json:"tokenBalance"` }
func GetERC20Balance ¶
func GetERC20Balance(ctx context.Context, client *w3.Client, req BalanceRequest) (BalanceResponse, error)
type TokenBalance ¶
type WalletKey ¶
type WalletKey struct { ID primitive.ObjectID `bson:"_id"` PublicKeyECB string `bson:"publicKeyECB"` PrivateKeyECB string `bson:"privateKeyECB"` IsEnabled bool `bson:"isEnabled"` ChainID float64 `bson:"chainId"` CanDoWithdrawals bool `bson:"canDoWithdrawals"` CanTakeDeposits bool `bson:"canTakeDeposits"` V float64 `bson:"__v"` CreatedAt time.Time `bson:"created_at"` UpdatedAt time.Time `bson:"updated_at"` }
Click to show internal directories.
Click to hide internal directories.