core/types: add docs for abstract tx

This commit is contained in:
lightclient 2026-01-03 11:18:03 -07:00
parent 2859da852d
commit c051a69bfb
No known key found for this signature in database
GPG key ID: 657913021EF45A6A

View file

@ -25,6 +25,8 @@ import (
"github.com/holiman/uint256"
)
// AbstractAuthorization is the input used to abstractly validate
// authorizations.
type AbstractAuthorization struct {
Target common.Address
Data []byte
@ -42,6 +44,8 @@ func (a *AbstractAuthorization) copy() *AbstractAuthorization {
}
}
// PaymasterAuthorization includes the neccessary data to validate an
// authorization from a paymaster to sponsor the transaction.
type PaymasterAuthorization struct {
Target common.Address
Data []byte
@ -61,6 +65,8 @@ func (a *PaymasterAuthorization) copy() *PaymasterAuthorization {
}
}
// AbstractTx implements the EIP-7701 transaction type that allows arbitrary
// implementation of sender validation and paymaster validation.
type AbstractTx struct {
ChainID *uint256.Int
Nonce uint64