Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DayPerMonth = 30 OneHundredDeposit = 100 FiveHundredDeposit = 500 OneHundredDepositMaxTaskPerEpoch = 100 FiveHundredDepositMaxTaskPerEpoch = 100 OneHundredDepositRewardPerMonth = 1 * params.AMT FiveHundredDepositRewardPerMonth = 6.25 * params.AMT //max uint64 = ^uint64(0) ≈ 18.44 AMT so 15 AMT is ok )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deposit ¶
type Deposit struct {
// contains filtered or unexported fields
}
func NewDeposit ¶
func NewDeposit(ctx context.Context, bc common.IBlockChain, db kv.RwDB, depositContracts map[types.Address]DepositContract) *Deposit
func (*Deposit) IsDepositAction ¶
func (d *Deposit) IsDepositAction(txs *transaction.Transaction) bool
type DepositContract ¶
type DepositContract interface { WithdrawnSignature() types.Hash DepositSignature() types.Hash UnpackDepositLogData(data []byte) (publicKey []byte, signature []byte, depositAmount *uint256.Int, err error) IsDepositAction(sig [4]byte) bool }
DepositContract d
Click to show internal directories.
Click to hide internal directories.