Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllTables = []any{&UserOp{}, &Config{}}
Functions ¶
This section is empty.
Types ¶
type ConfigStore ¶
type ConfigStore struct {
// contains filtered or unexported fields
}
func NewConfigStore ¶
func NewConfigStore(store *store.Store) *ConfigStore
type PackedUserOperation ¶
type PackedUserOperation struct {
Sender common.Address `json:"sender"`
Nonce *big.Int `json:"nonce"`
InitCode hexutil.Bytes `json:"initCode"`
CallData hexutil.Bytes `json:"callData"`
VerificationGasLimit *big.Int `json:"verificationGasLimit"`
CallGasLimit *big.Int `json:"callGasLimit"`
PreVerificationGas *big.Int `json:"preVerificationGas"`
MaxPriorityFeePerGas *big.Int `json:"maxPriorityFeePerGas"`
MaxFeePerGas *big.Int `json:"maxFeePerGas"`
Signature hexutil.Bytes `json:"signature"`
Paymaster common.Address `json:"paymaster"`
PaymasterVerificationGasLimit *big.Int `json:"paymasterVerificationGasLimit"`
PaymasterPostOpGasLimit *big.Int `json:"paymasterPostOpGasLimit"`
PaymasterData hexutil.Bytes `json:"paymasterData"`
}
type Store ¶
type Store struct {
*store.Store
UserOp *UserOpStore
Config *ConfigStore
}
type UserOp ¶
type UserOp struct {
Model
Hash string `gorm:"size:66;not null;unique"`
Sender string `gorm:"size:42;not null;index:idx_sender_time"`
Nonce string `gorm:"size:66;not null"`
Success bool `gorm:"not null"`
ActualGasCost decimal.Decimal `gorm:"type:decimal(32,0);not null"`
ActualGasUsed uint64 `gorm:"not null"`
BlockTime time.Time `gorm:"not null;index:idx_sender_time;index:idx_block_time"`
RawUserOp string `gorm:"type:text;not null"` // Empty when raw input is unavailable for an indirect EntryPoint call.
}
type UserOpStore ¶
type UserOpStore struct {
// contains filtered or unexported fields
}
func NewUserOpStore ¶
func NewUserOpStore(store *store.Store) *UserOpStore
func (*UserOpStore) Create ¶
func (store *UserOpStore) Create(userOp *contract.PackedUserOperation, event *account.EntryPointUserOperationEvent, blockTime time.Time, tx ...*gorm.DB) error
Create records the finalized event even if the raw UserOperation is unavailable.
func (*UserOpStore) GetCountByBlockTimestamp ¶
Click to show internal directories.
Click to hide internal directories.