Documentation ¶
Index ¶
- type AppChainDappLinkBridge
- type AppChainDappLinkBridgeDB
- type AppChainDappLinkBridgeDBView
- type AppChainIncreaseBatch
- type AppChainIncreaseBatchDB
- type AppChainIncreaseBatchDBView
- type AppChainLastBlock
- type AppChainLastBlockDB
- type AppChainLastBlockDBView
- type AppChainMigrateShares
- type AppChainMigrateSharesDB
- type AppChainMigrateSharesDBView
- type AppChainOperatorSharesIncreased
- type AppChainOperatorSharesIncreasedDB
- type AppChainOperatorSharesIncreasedDBView
- type AppChainStake
- type AppChainStakeDB
- type AppChainStakeDBView
- type AppChainUnStake
- type AppChainUnStakeDB
- type AppChainUnStakeDBView
- type AppChainWithdraw
- type AppChainWithdrawDB
- type AppChainWithdrawDBView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppChainDappLinkBridge ¶
type AppChainDappLinkBridge struct { GUID string `json:"guid" gorm:"primaryKey;DEFAULT replace(uuid_generate_v4()::text,'-','')"` TxHash common.Hash `json:"tx_hash"gorm:"serializer:bytes"` ChainId string `json:"chain_id"` SourceChainId string `json:"source_chain_id"` DestChainId string `json:"dest_chain_id"` Bridge common.Address `json:"bridge"gorm:"serializer:bytes"` StakingManagerAddress common.Address `json:"staking_manager_address"gorm:"serializer:bytes"` TokenAddress common.Address `json:"token_address"gorm:"serializer:bytes"` Amount *big.Int `json:"amount"gorm:"serializer:u256"` BatchId *big.Int `json:"batch_id"gorm:"serializer:u256"` Nonce *big.Int `json:"nonce"gorm:"serializer:u256"` NotifyRelayer bool `json:"notify_relayer"` Created uint64 `json:"created"` }
func (AppChainDappLinkBridge) TableName ¶
func (AppChainDappLinkBridge) TableName() string
type AppChainDappLinkBridgeDB ¶
type AppChainDappLinkBridgeDB interface { StroeAppChainDappLinkBridge(appChainDappLinkBridge AppChainDappLinkBridge) error NotifyAppChainDappLinkBridge(batchId *big.Int) error AppChainDappLinkBridgeDBView }
func NewAppChainDappLinkBridgeDB ¶
func NewAppChainDappLinkBridgeDB(db *gorm.DB) AppChainDappLinkBridgeDB
type AppChainDappLinkBridgeDBView ¶
type AppChainDappLinkBridgeDBView interface {
ListDataByNoNotifyRelayer(chainId string) []AppChainDappLinkBridge
}
type AppChainIncreaseBatch ¶
type AppChainIncreaseBatch struct { GUID uuid.UUID `json:"guid" gorm:"primaryKey;DEFAULT replace(uuid_generate_v4()::text,'-','');serializer:uuid"` StrategyAddress common.Address `json:"strategy_address"gorm:"serializer:bytes"` Staker common.Address `json:"staker"gorm:"serializer:bytes"` Operator common.Address `json:"operator"gorm:"serializer:bytes"` ChainId string `json:"chain_id"` BatchId string `json:"batch_id"` Created uint64 `json:"created"` NotifyRelayer bool `json:"notify_relayer"` }
func (AppChainIncreaseBatch) TableName ¶
func (AppChainIncreaseBatch) TableName() string
type AppChainIncreaseBatchDB ¶
type AppChainIncreaseBatchDB interface { StoreAppChainIncreasedBatch(appChainIncreaseBatch []AppChainIncreaseBatch) error NotifyBatchMintSuccess(batchId string) error AppChainIncreaseBatchDBView }
func NewAppChainIncreaseBatchDB ¶
func NewAppChainIncreaseBatchDB(db *gorm.DB) AppChainIncreaseBatchDB
type AppChainIncreaseBatchDBView ¶
type AppChainIncreaseBatchDBView interface {
ListBatchDataByBatchId(batchId string) []AppChainIncreaseBatch
}
type AppChainLastBlock ¶
type AppChainLastBlock struct { GUID uuid.UUID `json:"guid" gorm:"primaryKey;DEFAULT replace(uuid_generate_v4()::text,'-','');serializer:uuid"` ChainId string `json:"chain_id"` BlockNumber *big.Int `json:"block_number" gorm:"serializer:u256"` Created uint64 `json:"created"` Updated uint64 `json:"updated"` }
func (AppChainLastBlock) TableName ¶
func (AppChainLastBlock) TableName() string
type AppChainLastBlockDB ¶
type AppChainLastBlockDB interface { AppChainLastBlockDBView SaveOrUpdateLastBlockNumber(lastBlock AppChainLastBlock) error }
func NewAppChainLastBlockDB ¶
func NewAppChainLastBlockDB(db *gorm.DB) AppChainLastBlockDB
type AppChainLastBlockDBView ¶
type AppChainLastBlockDBView interface {
GetLastBlockNumber(chainId string) (lastBlock *AppChainLastBlock, err error)
}
type AppChainMigrateShares ¶
type AppChainMigrateShares struct {}
func (AppChainMigrateShares) TableName ¶
func (AppChainMigrateShares) TableName() string
type AppChainMigrateSharesDB ¶
type AppChainMigrateSharesDB interface { AppChainMigrateSharesDBView }
func NewAppChainMigrateSharesDB ¶
func NewAppChainMigrateSharesDB(db *gorm.DB) AppChainMigrateSharesDB
type AppChainMigrateSharesDBView ¶
type AppChainMigrateSharesDBView interface {
}type AppChainOperatorSharesIncreased ¶
type AppChainOperatorSharesIncreased struct {}
func (AppChainOperatorSharesIncreased) TableName ¶
func (AppChainOperatorSharesIncreased) TableName() string
type AppChainOperatorSharesIncreasedDB ¶
type AppChainOperatorSharesIncreasedDB interface { AppChainOperatorSharesIncreasedDBView }
func NewAppChainOperatorSharesIncreasedDB ¶
func NewAppChainOperatorSharesIncreasedDB(db *gorm.DB) AppChainOperatorSharesIncreasedDB
type AppChainOperatorSharesIncreasedDBView ¶
type AppChainOperatorSharesIncreasedDBView interface {}
type AppChainStake ¶
type AppChainStake struct { GUID uuid.UUID `json:"guid" gorm:"primaryKey;DEFAULT replace(uuid_generate_v4()::text,'-','');serializer:uuid"` BlockNumber *big.Int `json:"block_number" gorm:"serializer:u256"` TxHash common.Hash `json:"tx_hash" gorm:"serializer:bytes"` StrategyAddress common.Address `json:"strategy_address" gorm:"serializer:bytes"` Staker common.Address `json:"staker" gorm:"serializer:bytes"` TokenAddress common.Address `json:"token_address" gorm:"serializer:bytes"` ChainId string `json:"chain_id"` Created uint64 `json:"created"` IsPoints bool `json:"is_points"` }
func (AppChainStake) TableName ¶
func (AppChainStake) TableName() string
type AppChainStakeDB ¶
type AppChainStakeDB interface { AppChainStakeDBView StoreAppChainStake(cainStakeBatch AppChainStake) error UpdatePointsStatus(txHash common.Hash) error }
func NewAppChainStakeDB ¶
func NewAppChainStakeDB(db *gorm.DB) AppChainStakeDB
type AppChainStakeDBView ¶
type AppChainStakeDBView interface { ListAppChainStake(page, pageSize uint32, staker, strategy string) ([]AppChainStake, int64, int64) NeedPoints() []AppChainStake }
type AppChainUnStake ¶
type AppChainUnStake struct { GUID uuid.UUID `json:"guid" gorm:"primaryKey;DEFAULT replace(uuid_generate_v4()::text,'-','');serializer:uuid"` BlockNumber *big.Int `json:"block_number" gorm:"serializer:u256"` TxHash common.Hash `json:"tx_hash" gorm:"serializer:bytes"` EthAmount *big.Int `json:"eth_amount" gorm:"serializer:u256"` DETHLocked *big.Int `json:"locked_amount" gorm:"column:locked_amount;serializer:u256"` ClaimTxHash common.Hash `json:"claim_tx_hash" gorm:"serializer:bytes"` L2Strategy common.Address `json:"l2_strategy" gorm:"serializer:bytes"` Staker common.Address `json:"staker" gorm:"serializer:bytes"` Bridge common.Address `json:"bridge" gorm:"serializer:bytes"` SourceChainId string `json:"source_chain_id"` DestChainId string `json:"dest_chain_id"` UnstakeNonce *big.Int `json:"unstake_nonce" gorm:"serializer:u256"` Status uint8 `json:"status"` NotifyRelayer bool `json:"notify_relayer"` MigrateNotify bool `json:"migrate_notify"` Created uint64 `json:"created"` Updated uint64 `json:"updated"` IsPoints bool `json:"is_points"` }
func (AppChainUnStake) TableName ¶
func (AppChainUnStake) TableName() string
type AppChainUnStakeDB ¶
type AppChainUnStakeDB interface { AppChainUnStakeDBView StoreAppChainUnStake(cainUnStakeBatch AppChainUnStake) error NotifyAppChainUnStake(txHash string) error NotifyMigrate(txHash string) error UpdatePointsStatus(txHash common.Hash) error ClaimAppChainUnStake(chainUnStakeBatch AppChainUnStake, noClaim uint8) error }
func NewAppChainUnStakeDB ¶
func NewAppChainUnStakeDB(db *gorm.DB) AppChainUnStakeDB
type AppChainUnStakeDBView ¶
type AppChainUnStakeDBView interface { ListAppChainUnStake(page, pageSize uint32, staker, strategy string) ([]AppChainUnStake, int64, int64) ListAppChainUnStakeWaitNotify() []AppChainUnStake ListUnStakeMigrateNotify() []AppChainUnStake GetUnkStakeWaitNotify(unstakeNonce *big.Int) *AppChainUnStake NeedPoints() []AppChainUnStake }
type AppChainWithdraw ¶
type AppChainWithdraw struct { GUID uuid.UUID `json:"guid" gorm:"primaryKey;DEFAULT replace(uuid_generate_v4()::text,'-','');serializer:uuid"` BlockNumber *big.Int `json:"block_number" gorm:"serializer:u256"` TxHash common.Hash `json:"tx_hash" gorm:"serializer:bytes"` Operator common.Address `json:"operator" gorm:"serializer:bytes"` Strategy common.Address `json:"strategy" gorm:"serializer:bytes"` Staker common.Address `json:"staker" gorm:"serializer:bytes"` ChainId string `json:"chain_id"` Created uint64 `json:"created"` }
func (AppChainWithdraw) TableName ¶
func (AppChainWithdraw) TableName() string
type AppChainWithdrawDB ¶
type AppChainWithdrawDB interface { StoreAppchainWithdraw(chainWithdrawBatch AppChainWithdraw) error AppChainWithdrawDBView }
func NewAppChainWithdrawDB ¶
func NewAppChainWithdrawDB(db *gorm.DB) AppChainWithdrawDB
type AppChainWithdrawDBView ¶
type AppChainWithdrawDBView interface {
ListAppChainWithdraw(page, pageSize uint32, staker, strategy string) ([]AppChainWithdraw, int64, int64)
}
Click to show internal directories.
Click to hide internal directories.