wallet

package
v0.0.0-...-36085eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL