wallet

package
v0.0.0-...-8aa4d74 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Implement CLI for payment, account creation, and freezing requests

Implement CLI for payment, account creation, and freezing requests

Index

Constants

This section is empty.

Variables

View Source
var (
	PaymentCmd *cobra.Command
)
View Source
var (
	UnfreezeRequestCmd *cobra.Command
)

Functions

func MakeTransactionCreateAccount

func MakeTransactionCreateAccount(kpSource keypair.KP, kpDest keypair.KP, amount common.Amount, seqid uint64, isFrozen bool) transaction.Transaction

/ / Make a full transaction, with a single operation to create an account / / TODO: / Move to lib (it was 'borrowed' from test code) / / Params: / kpSource = Sender's keypair.Full seed/address / kpDest = Newly created account's address / amount = Amount to send as initial value / seqid = SequenceID of the last transaction / target = Address of the linked account, if we're creating a frozen account / / Returns: / `sebak.Transaction` = The generated `Transaction` creating the account /

func MakeTransactionPayment

func MakeTransactionPayment(kpSource keypair.KP, kpDest keypair.KP, amount common.Amount, seqid uint64) transaction.Transaction

/ / Make a full transaction, with a single payment operation in it / / TODO: / Move to lib (it was 'borrowed' from test code) / / Params: / kpSource = Sender's keypair.Full seed/address / kpDest = Receiver's keypair.FromAddress address / amount = Amount to send as initial value / seqid = SequenceID of the last transaction / / Returns: / `sebak.Transaction` = The generated `Transaction` to do a payment /

Types

This section is empty.

Jump to

Keyboard shortcuts

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