Documentation ¶
Index ¶
- Variables
- func IsNeatChainContractAddr(addr *common.Address) bool
- type CreateSideChainArgs
- type DelegateArgs
- type DepositInMainChainArgs
- type DepositInSideChainArgs
- type EditValidatorArgs
- type FunctionType
- type JoinSideChainArgs
- type RegisterArgs
- type RevealVoteArgs
- type SetBlockRewardArgs
- type SetCommissionArgs
- type UnBannedArgs
- type UnDelegateArgs
- type VoteNextEpochArgs
- type WithdrawFromMainChainArgs
- type WithdrawFromSideChainArgs
- type WithdrawRewardArgs
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CreateSideChain = FunctionType{0, true, true, false} JoinSideChain = FunctionType{1, true, true, false} DepositInMainChain = FunctionType{2, true, true, false} DepositInSideChain = FunctionType{3, true, false, true} WithdrawFromSideChain = FunctionType{4, true, false, true} WithdrawFromMainChain = FunctionType{5, true, true, false} SaveDataToMainChain = FunctionType{6, true, true, false} SetBlockReward = FunctionType{7, true, false, true} VoteNextEpoch = FunctionType{10, false, true, true} RevealVote = FunctionType{11, false, true, true} Delegate = FunctionType{12, false, true, true} UnDelegate = FunctionType{13, false, true, true} Register = FunctionType{14, false, true, true} UnRegister = FunctionType{15, false, true, true} EditValidator = FunctionType{16, false, true, true} WithdrawReward = FunctionType{17, false, true, true} UnBanned = FunctionType{18, false, true, true} SetCommission = FunctionType{19, false, true, true} Unknown = FunctionType{-1, false, false, false} )
View Source
var ChainABI abi.ABI
View Source
var ChainContractMagicAddr = common.StringToAddress("NEATioMiningSmartContractAddress")
View Source
var SideChainTokenIncentiveAddr = common.StringToAddress("NEATioSideChainsTokenDepositAddy")
Functions ¶
func IsNeatChainContractAddr ¶
Types ¶
type CreateSideChainArgs ¶
type DelegateArgs ¶
type DepositInMainChainArgs ¶
type DepositInMainChainArgs struct {
ChainId string
}
type DepositInSideChainArgs ¶
type EditValidatorArgs ¶
type FunctionType ¶
type FunctionType struct {
// contains filtered or unexported fields
}
func FunctionTypeFromId ¶
func FunctionTypeFromId(sigdata []byte) (FunctionType, error)
func StringToFunctionType ¶
func StringToFunctionType(s string) FunctionType
func (FunctionType) AllowInMainChain ¶
func (t FunctionType) AllowInMainChain() bool
func (FunctionType) AllowInSideChain ¶
func (t FunctionType) AllowInSideChain() bool
func (FunctionType) IsCrossChainType ¶
func (t FunctionType) IsCrossChainType() bool
func (FunctionType) RequiredGas ¶
func (t FunctionType) RequiredGas() uint64
func (FunctionType) String ¶
func (t FunctionType) String() string
type JoinSideChainArgs ¶
type RegisterArgs ¶
type RevealVoteArgs ¶
type SetBlockRewardArgs ¶
type SetCommissionArgs ¶
type SetCommissionArgs struct {
Commission uint8
}
type UnBannedArgs ¶
type UnBannedArgs struct { }
type VoteNextEpochArgs ¶
type WithdrawFromSideChainArgs ¶
type WithdrawFromSideChainArgs struct {
ChainId string
}
type WithdrawRewardArgs ¶
Click to show internal directories.
Click to hide internal directories.