Documentation ¶
Index ¶
- Variables
- func CreateBuiltInFunctionContainer(args ArgsCreateBuiltInFunctionContainer) (process.BuiltInFunctionContainer, error)
- func NewBuiltInFunctionContainer() *functionContainer
- func NewChangeOwnerAddressFunc(gasCost uint64) *changeOwnerAddress
- func NewClaimDeveloperRewardsFunc(gasCost uint64) *claimDeveloperRewards
- func NewESDTTransferFunc(funcGasCost uint64, marshalizer marshal.Marshalizer) (*esdtTransfer, 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 ESDigitalToken
- func (*ESDigitalToken) Descriptor() ([]byte, []int)
- func (this *ESDigitalToken) Equal(that interface{}) bool
- func (m *ESDigitalToken) GetValue() *math_big.Int
- func (this *ESDigitalToken) GoString() string
- func (m *ESDigitalToken) Marshal() (dAtA []byte, err error)
- func (m *ESDigitalToken) MarshalTo(dAtA []byte) (int, error)
- func (m *ESDigitalToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ESDigitalToken) ProtoMessage()
- func (m *ESDigitalToken) Reset()
- func (m *ESDigitalToken) Size() (n int)
- func (this *ESDigitalToken) String() string
- func (m *ESDigitalToken) Unmarshal(dAtA []byte) error
- func (m *ESDigitalToken) XXX_DiscardUnknown()
- func (m *ESDigitalToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ESDigitalToken) XXX_Merge(src proto.Message)
- func (m *ESDigitalToken) XXX_Size() int
- func (m *ESDigitalToken) 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 NewESDTTransferFunc ¶ added in v1.0.114
func NewESDTTransferFunc( funcGasCost uint64, marshalizer marshal.Marshalizer, ) (*esdtTransfer, error)
NewESDTTransferFunc returns the esdt 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 ESDTTransfer uint64 }
BuiltInCost defines cost for built-in methods
type ESDigitalToken ¶ added in v1.0.114
ESDigitalToken holds the data for a elrond standard digital token transaction
func (*ESDigitalToken) Descriptor ¶ added in v1.0.114
func (*ESDigitalToken) Descriptor() ([]byte, []int)
func (*ESDigitalToken) Equal ¶ added in v1.0.114
func (this *ESDigitalToken) Equal(that interface{}) bool
func (*ESDigitalToken) GetValue ¶ added in v1.0.114
func (m *ESDigitalToken) GetValue() *math_big.Int
func (*ESDigitalToken) GoString ¶ added in v1.0.114
func (this *ESDigitalToken) GoString() string
func (*ESDigitalToken) Marshal ¶ added in v1.0.114
func (m *ESDigitalToken) Marshal() (dAtA []byte, err error)
func (*ESDigitalToken) MarshalTo ¶ added in v1.0.114
func (m *ESDigitalToken) MarshalTo(dAtA []byte) (int, error)
func (*ESDigitalToken) MarshalToSizedBuffer ¶ added in v1.0.114
func (m *ESDigitalToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ESDigitalToken) ProtoMessage ¶ added in v1.0.114
func (*ESDigitalToken) ProtoMessage()
func (*ESDigitalToken) Reset ¶ added in v1.0.114
func (m *ESDigitalToken) Reset()
func (*ESDigitalToken) Size ¶ added in v1.0.114
func (m *ESDigitalToken) Size() (n int)
func (*ESDigitalToken) String ¶ added in v1.0.114
func (this *ESDigitalToken) String() string
func (*ESDigitalToken) Unmarshal ¶ added in v1.0.114
func (m *ESDigitalToken) Unmarshal(dAtA []byte) error
func (*ESDigitalToken) XXX_DiscardUnknown ¶ added in v1.0.114
func (m *ESDigitalToken) XXX_DiscardUnknown()
func (*ESDigitalToken) XXX_Marshal ¶ added in v1.0.114
func (m *ESDigitalToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ESDigitalToken) XXX_Merge ¶ added in v1.0.114
func (m *ESDigitalToken) XXX_Merge(src proto.Message)
func (*ESDigitalToken) XXX_Size ¶ added in v1.0.114
func (m *ESDigitalToken) XXX_Size() int
func (*ESDigitalToken) XXX_Unmarshal ¶ added in v1.0.114
func (m *ESDigitalToken) XXX_Unmarshal(b []byte) error
type GasCost ¶
type GasCost struct { BaseOperationCost BaseOperationCost BuiltInCost BuiltInCost }
GasCost holds all the needed gas costs for system smart contracts