 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- func GetCallDataForAprove(userAddr common.Address, destAddress common.Address, ...) ([]byte, error)
- func GetCallDataForBatchExecute(targets []common.Address, originalCallDatas [][]byte) ([]byte, error)
- func GetCallDataForCommit(commitment [32]byte) ([]byte, error)
- func GetCallDataForMint(smartAccountAddress common.Address, fullTokensToMint *big.Int, ...) ([]byte, error)
- func GetCallDataForRegister(nameFirstPart string, registrantAccount common.Address, ...) ([]byte, error)
- func New() app.Component
- type AccountAbstractionService
- type OperationInfo
Constants ¶
      View Source
      
  
const CName = "any-ns.aa"
    Variables ¶
This section is empty.
Functions ¶
func GetCallDataForAprove ¶
func GetCallDataForBatchExecute ¶
func GetCallDataForBatchExecute(targets []common.Address, originalCallDatas [][]byte) ([]byte, error)
in reality we call "execute" method
func GetCallDataForCommit ¶
func GetCallDataForMint ¶
func GetCallDataForRegister ¶
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)
	// 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.