costcenter

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func INSCONSTRUCTOR_New

func INSCONSTRUCTOR_New(data []byte) ([]byte, []byte, error)

func INSMETHOD_CalcFee

func INSMETHOD_CalcFee(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetCode

func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetFeeMember added in v0.9.1

func INSMETHOD_GetFeeMember(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetPrototype

func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)

func INS_META_INFO

func INS_META_INFO() []map[string]string

func Initialize

func Initialize() XXX_insolar.ContractWrapper

Types

type CostCenter

type CostCenter struct {
	foundation.BaseContract
	FeeMember *insolar.Reference
}

func New

func New(feeMember *insolar.Reference) (*CostCenter, error)

New creates new CostCenter.

func (CostCenter) CalcFee

func (cc CostCenter) CalcFee(amountStr string) (string, error)

CalcFee calculates fee for amount. Returns fee. ins:immutable

func (CostCenter) GetFeeMember added in v0.9.1

func (cc CostCenter) GetFeeMember() (*insolar.Reference, error)

GetFeeMember gets fee member reference. ins:immutable

Jump to

Keyboard shortcuts

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