Documentation ¶
Index ¶
- Constants
- func RecordDropForWallet(pk *Wallet) error
- type User
- func CreateUser(email string) (*User, error)
- func FindUserByEmail(email string) (User, error)
- func FindUserById(userId uint) (User, error)
- func FindUserBySubOrganizationId(subOrganizationId string) (User, error)
- func UpdateUserTurnkeySubOrganization(userId uint, subOrganizationId string) (*User, error)
- type Wallet
Constants ¶
View Source
const MAX_DROPS_PER_KEY uint8 = 10
Variables ¶
This section is empty.
Functions ¶
func RecordDropForWallet ¶
Types ¶
type User ¶
type User struct { gorm.Model Email string `gorm:"size:255;not null;unique" json:"email"` SubOrganizationId sql.NullString `gorm:"size:255;unique;default:null" json:"subOrganizationId"` }
func CreateUser ¶
func FindUserByEmail ¶
func FindUserById ¶
func (*User) TurnkeyName ¶
Given an internal user name, return the name of that user on the Turnkey side We prefix all end-users with "wallet-user-" for convenience
type Wallet ¶
type Wallet struct { gorm.Model User User UserID int TurnkeyUUID string `gorm:"size:255; not null"` EthereumAddress string `gorm:"size:255; not null"` Drops uint8 `gorm:"default:0"` }
Represents a Turnkey private key, created by our backend on behalf of a user This private key is bound to a user via Turnkey Policies.
func GetWalletForUser ¶
Click to show internal directories.
Click to hide internal directories.