Documentation ¶
Index ¶
- Variables
- func CreateBuiltInFunctionContainer(args ArgsCreateBuiltInFunctionContainer) (process.BuiltInFunctionContainer, error)
- func NewBuiltInFunctionContainer() *functionContainer
- func NewChangeOwnerAddressFunc(gasCost uint64) *changeOwnerAddress
- func NewClaimDeveloperRewardsFunc(gasCost uint64) *claimDeveloperRewards
- func NewDCTTransferFunc(funcGasCost uint64, marshalizer marshal.Marshalizer) (*dctTransfer, error)
- func NewSaveKeyValueStorageFunc(gasConfig BaseOperationCost, funcGasCost uint64) (*saveKeyValueStorage, error)
- func NewSaveUserNameFunc(gasCost uint64, mapDnsAddresses map[string]struct{}, enableChange bool) (*saveUserName, error)
- type ArgsCreateBuiltInFunctionContainer
- type BaseOperationCost
- type BuiltInCost
- type DCToken
- func (*DCToken) Descriptor() ([]byte, []int)
- func (this *DCToken) Equal(that interface{}) bool
- func (m *DCToken) GetValue() *math_big.Int
- func (this *DCToken) GoString() string
- func (m *DCToken) Marshal() (dAtA []byte, err error)
- func (m *DCToken) MarshalTo(dAtA []byte) (int, error)
- func (m *DCToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DCToken) ProtoMessage()
- func (m *DCToken) Reset()
- func (m *DCToken) Size() (n int)
- func (this *DCToken) String() string
- func (m *DCToken) Unmarshal(dAtA []byte) error
- func (m *DCToken) XXX_DiscardUnknown()
- func (m *DCToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DCToken) XXX_Merge(src proto.Message)
- func (m *DCToken) XXX_Size() int
- func (m *DCToken) XXX_Unmarshal(b []byte) error
- type GasCost
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreateBuiltInFunctionContainer ¶
func CreateBuiltInFunctionContainer(args ArgsCreateBuiltInFunctionContainer) (process.BuiltInFunctionContainer, error)
CreateBuiltInFunctionContainer will create the list of built-in functions
func NewBuiltInFunctionContainer ¶
func NewBuiltInFunctionContainer() *functionContainer
NewBuiltInFunctionContainer will create a new instance of a container
func NewChangeOwnerAddressFunc ¶
func NewChangeOwnerAddressFunc(gasCost uint64) *changeOwnerAddress
NewChangeOwnerAddressFunc create a new change owner built in function
func NewClaimDeveloperRewardsFunc ¶
func NewClaimDeveloperRewardsFunc(gasCost uint64) *claimDeveloperRewards
NewClaimDeveloperRewardsFunc returns a new developer rewards implementation
func NewDCTTransferFunc ¶
func NewDCTTransferFunc( funcGasCost uint64, marshalizer marshal.Marshalizer, ) (*dctTransfer, error)
NewDCTTransferFunc returns the dct transfer built-in function component
func NewSaveKeyValueStorageFunc ¶
func NewSaveKeyValueStorageFunc( gasConfig BaseOperationCost, funcGasCost uint64, ) (*saveKeyValueStorage, error)
NewSaveKeyValueStorageFunc returns the save key-value storage built in function
Types ¶
type ArgsCreateBuiltInFunctionContainer ¶
type ArgsCreateBuiltInFunctionContainer struct { GasMap map[string]map[string]uint64 MapDNSAddresses map[string]struct{} EnableUserNameChange bool Marshalizer marshal.Marshalizer }
ArgsCreateBuiltInFunctionContainer -
type BaseOperationCost ¶
type BaseOperationCost struct { StorePerByte uint64 ReleasePerByte uint64 DataCopyPerByte uint64 PersistPerByte uint64 CompilePerByte uint64 }
BaseOperationCost defines cost for base operation cost
type BuiltInCost ¶
type BuiltInCost struct { ChangeOwnerAddress uint64 ClaimDeveloperRewards uint64 SaveUserName uint64 SaveKeyValue uint64 DCTTransfer uint64 }
BuiltInCost defines cost for built-in methods
type DCToken ¶
DCToken holds the data for a dharitri standard digital token transaction
func (*DCToken) Descriptor ¶
func (*DCToken) MarshalToSizedBuffer ¶
func (*DCToken) ProtoMessage ¶
func (*DCToken) ProtoMessage()
func (*DCToken) XXX_DiscardUnknown ¶
func (m *DCToken) XXX_DiscardUnknown()
func (*DCToken) XXX_Marshal ¶
func (*DCToken) XXX_Unmarshal ¶
type GasCost ¶
type GasCost struct { BaseOperationCost BaseOperationCost BuiltInCost BuiltInCost }
GasCost holds all the needed gas costs for system smart contracts