Documentation ¶
Index ¶
Constants ¶
View Source
const ( EverTxActionTransfer = "transfer" EverTxActionBundle = "bundle" )
Variables ¶
View Source
var ( ErrInvalidGenesisTx = errors.New("err_invalid_genesis_tx") ErrInvalidGenesisTotalSupply = errors.New("err_invalid_genesis_total_supply") ErrInvalidGenesisBalance = errors.New("err_invalid_genesis_balance") ErrInvalidGenesisStake = errors.New("err_invalid_genesis_stake") ErrInvalidSubmitTxNonce = errors.New("err_invalid_submit_tx_nonce") ErrMissParams = errors.New("err_miss_params") )
Functions ¶
This section is empty.
Types ¶
type BalanceRes ¶ added in v0.0.2
type GenesisTxData ¶
type GenesisTxData struct { Dapp string `json:"dapp"` ChainID string `json:"chainID"` Govern string `json:"govern"` // govern is an temporary solution and will use voting in the future FeeRecipient string `json:"feeRecipient"` RouterMinStake string `json:"routerMinStake"` Routers []string `json:"routers"` RouterStates map[string]*schema.RouterState `json:"routerStates"` StakePools []string `json:"stakePools"` OnlyUnStakePools []string `json:"onlyUnStakePools"` TokenSymbol string `json:"tokenSymbol"` TokenDecimals int64 `json:"tokenDecimals"` TokenTotalSupply string `json:"tokenTotalSupply"` TokenBalance map[string]string `json:"tokenBalance"` TokenStake map[string]map[string]string `json:"tokenStake"` }
type HaloTransaction ¶
type HaloTransaction struct { ID int64 `gorm:"primary_key;auto_increment" json:"-"` UpdatedAt *time.Time `gorm:"ASSOCIATION_AUTOUPDATE" json:"-"` CreatedAt *time.Time `gorm:"ASSOCIATION_AUTOCREATE" json:"createdAt"` EverHash string `gorm:"type:varchar(66);uniqueIndex" json:"everHash"` HaloHash string `gorm:"type:varchar(66);uniqueIndex" json:"haloHash"` hvmSchema.Transaction Error string `json:"error"` }
type TxApply ¶
type TxApply struct { Tx schema.Transaction `json:"tx"` DryRun bool `json:"dryRun"` }
type TxRes ¶
type TxRes struct {
Executed []TxWithValidity `json:"executed"` // executed tx
}
type TxWithValidity ¶
Click to show internal directories.
Click to hide internal directories.