costcenter

package
v1.12.4-0...-e320c17 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Fee = "100000000"
View Source
const PanicIsLogicalError = false

Variables

This section is empty.

Functions

func INSCONSTRUCTOR_New

func INSCONSTRUCTOR_New(ref insolar.Reference, data []byte) (state []byte, result []byte, err error)

func INSMETHOD_CalcFee

func INSMETHOD_CalcFee(object []byte, data []byte) (newState []byte, result []byte, err error)

func INSMETHOD_GetCode

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

func INSMETHOD_GetFeeMember

func INSMETHOD_GetFeeMember(object []byte, data []byte) (newState []byte, result []byte, err 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() 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

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