Constructors
constructor
- new HplHolderAccount(_currency, address, _holderAccount, _tokenAccount): HplHolderAccount
-
Parameters
-
-
address: PublicKey
-
-
_tokenAccount: Account
Properties
Readonly
address
address: PublicKey
Accessors
amount
- get amount(): BN
-
Returns BN
delegate
- get delegate(): PublicKey
-
Returns PublicKey
delegatedAmount
- get delegatedAmount(): bigint
-
Returns bigint
isActive
- get isActive(): boolean
-
Returns boolean
owner
- get owner(): PublicKey
-
Returns PublicKey
status
- get status(): HolderStatus
-
tokenAccount
- get tokenAccount(): PublicKey
-
Returns PublicKey
Methods
approveDelegate
- approveDelegate(amount, delegate, confirmOptions?): Promise<ConfirmedContext>
-
Parameters
-
amount: number
-
delegate: PublicKey
-
Optional
confirmOptions: ConfirmOptions
Returns Promise<ConfirmedContext>
burn
- burn(amount, confirmOptions?): Promise<ConfirmedContext>
-
Parameters
-
amount: number
-
Optional
confirmOptions: ConfirmOptions
Returns Promise<ConfirmedContext>
currency
- currency(): HplCurrency
-
fund
- fund(amount, confirmOptions?): Promise<ConfirmedContext>
-
Parameters
-
amount: number
-
Optional
confirmOptions: ConfirmOptions
Returns Promise<ConfirmedContext>
mint
- mint(amount, confirmOptions?): Promise<ConfirmedContext>
-
Parameters
-
amount: number
-
Optional
confirmOptions: ConfirmOptions
Returns Promise<ConfirmedContext>
revokeDelegate
- revokeDelegate(confirmOptions?): Promise<ConfirmedContext>
-
Parameters
-
Optional
confirmOptions: ConfirmOptions
Returns Promise<ConfirmedContext>
setHolderStatus
- setHolderStatus(status, confirmOptions?): Promise<ConfirmedContext>
-
Parameters
-
-
Optional
confirmOptions: ConfirmOptions
Returns Promise<ConfirmedContext>
transfer
- transfer(amount, to, confirmOptions?): Promise<ConfirmedContext>
-
Parameters
-
amount: number
-
-
Optional
confirmOptions: ConfirmOptions
Returns Promise<ConfirmedContext>
HplHolderAccount class represents the holder account of HplCurrency.