Documentation ¶
Index ¶
- Constants
- func INSCONSTRUCTOR_New(ref insolar.Reference, data []byte) (state []byte, result []byte, err error)
- func INSMETHOD_CalcFee(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetFeeMember(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)
- func INS_META_INFO() []map[string]string
- func Initialize() insolar.ContractWrapper
- type CostCenter
Constants ¶
View Source
const Fee = "100000000"
View Source
const PanicIsLogicalError = false
Variables ¶
This section is empty.
Functions ¶
func INSCONSTRUCTOR_New ¶
func INSMETHOD_CalcFee ¶
func INSMETHOD_GetFeeMember ¶
func INSMETHOD_GetPrototype ¶
func INS_META_INFO ¶
func Initialize ¶
func Initialize() insolar.ContractWrapper
Types ¶
type CostCenter ¶
type CostCenter struct { foundation.BaseContract FeeMember *insolar.Reference }
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
Click to show internal directories.
Click to hide internal directories.