Documentation ¶
Index ¶
- Variables
- func IsNeatioContractAddr(addr *common.Address) bool
- type CreateChildChainArgs
- type DelegateArgs
- type DepositInChildChainArgs
- type DepositInMainChainArgs
- type EditValidatorArgs
- type FunctionType
- type JoinChildChainArgs
- type RegisterArgs
- type RevealVoteArgs
- type SetBlockRewardArgs
- type SetCommissionArgs
- type UnDelegateArgs
- type UnForbiddenArgs
- type VoteNextEpochArgs
- type WithdrawFromChildChainArgs
- type WithdrawFromMainChainArgs
- type WithdrawRewardArgs
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Cross Chain Function CreateChildChain = FunctionType{0, true, true, false} JoinChildChain = FunctionType{1, true, true, false} DepositInMainChain = FunctionType{2, true, true, false} DepositInChildChain = FunctionType{3, true, false, true} WithdrawFromChildChain = FunctionType{4, true, false, true} WithdrawFromMainChain = FunctionType{5, true, true, false} SaveDataToMainChain = FunctionType{6, true, true, false} SetBlockReward = FunctionType{7, true, false, true} // Non-Cross Chain Function 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} UnForbidden = FunctionType{18, false, true, true} SetCommission = FunctionType{19, false, true, true} // Unknown Unknown = FunctionType{-1, false, false, false} )
View Source
var ChainABI abi.ABI
View Source
var ChainContractMagicAddr = common.StringToAddress("NEATFFFFFFFFFFFFFFFFFFFFFFFFFFFF") // don't conflict with neatio/core/vm/contracts.go
Neatio Internal Contract Address
View Source
var ChildChainTokenIncentiveAddr = common.StringToAddress("NEATEEEEEEEEEEEEEEEEEEEEEEEEEEEE")
Neatio Child Chain Token Incentive Address
Functions ¶
func IsNeatioContractAddr ¶
Types ¶
type CreateChildChainArgs ¶
type DelegateArgs ¶
type DepositInChildChainArgs ¶
type DepositInMainChainArgs ¶
type DepositInMainChainArgs struct {
ChainId string
}
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) AllowInChildChain ¶
func (t FunctionType) AllowInChildChain() bool
func (FunctionType) AllowInMainChain ¶
func (t FunctionType) AllowInMainChain() 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 JoinChildChainArgs ¶
type RegisterArgs ¶
type RevealVoteArgs ¶
type SetBlockRewardArgs ¶
type SetCommissionArgs ¶
type SetCommissionArgs struct {
Commission uint8
}
type UnForbiddenArgs ¶
type UnForbiddenArgs struct { }
type VoteNextEpochArgs ¶
type WithdrawFromChildChainArgs ¶
type WithdrawFromChildChainArgs struct {
ChainId string
}
type WithdrawRewardArgs ¶
Click to show internal directories.
Click to hide internal directories.