Documentation ¶
Index ¶
- Constants
- Variables
- type CheckerTrace
- type OutputObject
- type Service
- func (s *Service) AddFunds(wallet Wallet, amount float64, sig string, mappings map[string]string, ...) (*sbacapi.Transaction, error)
- func (s *Service) AddFundsChecker(tr *CheckerTrace) bool
- func (s *Service) CreateWallet(address, pubkey, initobjID string, mappings map[string]string) (*sbacapi.Transaction, error)
- func (s *Service) CreateWalletChecker(tr *CheckerTrace) bool
- func (s *Service) Init(addr string) string
- func (s *Service) TransferFunds(fromWallet, toWallet Wallet, amount float64, sig string, ...) (*sbacapi.Transaction, error)
- func (s *Service) TransferFundsChecker(tr *CheckerTrace) bool
- type Wallet
Constants ¶
View Source
const (
ContractID = "cs-coin"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CheckerTrace ¶
type CheckerTrace struct { Dependencies []CheckerTrace `json:"dependencies"` Inputs []string `json:"inputs"` Outputs []OutputObject `json:"outputs"` Parameters []string `json:"parameters"` ReferenceInputs []string `json:"referenceInputs"` Returns []string `json:"returns"` }
CheckerTrace
type OutputObject ¶
OutputObject ...
type Service ¶
type Service struct { }
func (*Service) AddFunds ¶
func (s *Service) AddFunds( wallet Wallet, amount float64, sig string, mappings map[string]string, walletID string) (*sbacapi.Transaction, error)
AddFunds add new funds to a given wallet
func (*Service) AddFundsChecker ¶
func (s *Service) AddFundsChecker(tr *CheckerTrace) bool
func (*Service) CreateWallet ¶
func (s *Service) CreateWallet(address, pubkey, initobjID string, mappings map[string]string, ) (*sbacapi.Transaction, error)
CreateWallet Create a new Wallet from an address
func (*Service) CreateWalletChecker ¶
func (s *Service) CreateWalletChecker(tr *CheckerTrace) bool
func (*Service) Init ¶
Init create the seed object required to initialize the contract for a new wallet
func (*Service) TransferFunds ¶
func (s *Service) TransferFunds( fromWallet, toWallet Wallet, amount float64, sig string, mappings map[string]string, fromWalletID, toWalletID string, ) (*sbacapi.Transaction, error)
TransferFunds transfer money from a wallet to another
func (*Service) TransferFundsChecker ¶
func (s *Service) TransferFundsChecker(tr *CheckerTrace) bool
Click to show internal directories.
Click to hide internal directories.