costcenter

package
v0.9.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrototypeReference, _ = insolar.NewReferenceFromBase58("0111A62HrJvAimG7M1r8XdeBVMw4X6ge8hGzVStfnn4e")

PrototypeReference to prototype of this contract error checking hides in generator

Functions

func GetPrototype

func GetPrototype() insolar.Reference

GetPrototype returns reference to the prototype

Types

type ContractConstructorHolder

type ContractConstructorHolder struct {
	// contains filtered or unexported fields
}

ContractConstructorHolder holds logic with object construction

func New

func New(feeMember *insolar.Reference, fee string) *ContractConstructorHolder

New is constructor

func (*ContractConstructorHolder) AsChild

AsChild saves object as child

type CostCenter

type CostCenter struct {
	Reference insolar.Reference
	Prototype insolar.Reference
	Code      insolar.Reference
}

CostCenter holds proxy type

func GetObject

func GetObject(ref insolar.Reference) *CostCenter

GetObject returns proxy object

func (*CostCenter) CalcFee

func (r *CostCenter) CalcFee(amountStr string) (string, error)

CalcFeeAsImmutable is proxy generated method

func (*CostCenter) CalcFeeAsMutable

func (r *CostCenter) CalcFeeAsMutable(amountStr string) (string, error)

CalcFee is proxy generated method

func (*CostCenter) GetCode

func (r *CostCenter) GetCode() (insolar.Reference, error)

GetCode returns reference to the code

func (*CostCenter) GetFeeMember added in v0.9.1

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

GetFeeMemberAsImmutable is proxy generated method

func (*CostCenter) GetFeeMemberAsMutable added in v0.9.1

func (r *CostCenter) GetFeeMemberAsMutable() (*insolar.Reference, error)

GetFeeMember is proxy generated method

func (*CostCenter) GetPrototype

func (r *CostCenter) GetPrototype() (insolar.Reference, error)

GetPrototype returns reference to the code

func (*CostCenter) GetReference

func (r *CostCenter) GetReference() insolar.Reference

GetReference returns reference of the object

Jump to

Keyboard shortcuts

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