pay

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package pay contains a forked version of the bank module. It only contains a modified message handler to support the payement of stability taxes.

Taxes are of the fomula: min(principal * taxRate, taxCap). TaxCap and taxRate are stored by the treasury module. Should transactions fail midway, taxes are still paid and non-refundable.

Index

Constants

View Source
const (
	// LogKeyTax is to record treasury tax for a pay msg
	LogKeyTax = string("tax")
)

Variables

This section is empty.

Functions

func NewHandler

NewHandler returns a handler for "bank" type messages.

func RegisterCodec added in v0.2.0

func RegisterCodec(cdc *codec.Codec)

Register concrete types on codec codec

Types

type Log added in v0.2.0

type Log map[string]string

Log is map type object to organize msg result

func NewLog added in v0.2.0

func NewLog() Log

func (Log) String added in v0.2.0

func (log Log) String() string

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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