Documentation ¶
Index ¶
Constants ¶
View Source
const ModuleName = "jungletv:wallet"
ModuleName is the name by which this module can be require()d in a script
Variables ¶
This section is empty.
Functions ¶
func EmptyApplicationWallet ¶
func EmptyApplicationWallet(applicationWallet *wallet.Wallet, paymentAccountPool *payment.PaymentAccountPool) error
EmptyApplicationWallet is meant to be used when deleting an application this is not a very clean approach but it's better than copying the code into the app editor, or bringing up a true app instance just to delete the app (which would be unclean in its own ways)
Types ¶
type WalletModule ¶
type WalletModule interface { modules.NativeModule DebitFromApplicationWallet(amount payment.Amount) error }
WalletModule allows interactions with an application's wallet
func New ¶
func New(appContext modules.ApplicationContext, applicationWallet *wallet.Wallet, paymentAccountPool *payment.PaymentAccountPool, defaultRepresentative string) WalletModule
New returns a new wallet module
Click to show internal directories.
Click to hide internal directories.