The parameters defining the module parameters.
A Module object with standardized methods and properties.
const myModule = toModule({
accountAddress: '0x1234...',
address: '0x5678...',
signer: mySigner,
initData: '0xabcd...',
// ... other parameters
});
getStubSignature
method generates a dummy signature for testing or placeholder purposes.signUserOpHash
and signMessage
methods use the provided signer to create actual signatures.
Creates a Module object from the given parameters parameters.
This function takes the module parameters details and constructs a standardized Module object with methods for signing and generating stub signatures.