Documentation ¶
Index ¶
Constants ¶
View Source
const CName = "any-ns.aa"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountAbstractionService ¶
type AccountAbstractionService interface { GetOperation(ctx context.Context, operationID string) (info *OperationInfo, err error) // each EOA has an associated smart wallet address // even if it is not deployed yet - we can determine it GetSmartWalletAddress(ctx context.Context, eoa common.Address) (address common.Address, err error) IsScwDeployed(ctx context.Context, scw common.Address) (bool, error) GetNamesCountLeft(ctx context.Context, scw common.Address) (count uint64, err error) // will mint + approve tokens to the specified smart wallet AdminMintAccessTokens(ctx context.Context, scw common.Address, amount *big.Int) (operationID string, err error) // use it to register a name on behalf of a user AdminNameRegister(ctx context.Context, in *nsp.NameRegisterRequest) (operationID string, err error) AdminNameRenew(ctx context.Context, in *nsp.NameRenewRequest) (operationID string, err error) // get data to sign with your PK: GetDataNameRegister(ctx context.Context, in *nsp.NameRegisterRequest) (dataOut []byte, contextData []byte, err error) GetDataNameRegisterForSpace(ctx context.Context, in *nsp.NameRegisterForSpaceRequest) (dataOut []byte, contextData []byte, err error) // after data is signed - now you are ready to send it // contextData was received from functions like GetDataNameRegister and should be left intact SendUserOperation(ctx context.Context, contextData []byte, signedByUserData []byte) (operationID string, err error) app.Component }
type OperationInfo ¶
type OperationInfo struct {
OperationState nsp.OperationState
}
Click to show internal directories.
Click to hide internal directories.