Observed since 21 Oct, 11:33 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0xsodium/sdk4337
This package provides 2 APIs for using UserOperations:
This package provides 2 APIs for using UserOperations:
An abstract base-class to create UserOperation for a contract wallet.
An implementation of the BaseWalletAPi, for the SimpleWallet sample of account-abstraction.
owner = provider.getSigner()
const walletAPI = new SimpleWalletAPI({
provider,
entryPointAddress,
owner,
factoryAddress
})
const op = await walletAPi.createSignedUserOp({
target: recipient.address,
data: recipient.interface.encodeFunctionData('something', ['hello'])
})
A simplified mode that doesn't require a different wallet extension. Instead, the current provider's account is used as wallet owner by calling its "Sign Message" operation.
This can only work for wallets that use an EIP-191 ("Ethereum Signed Message") signatures (like our sample SimpleWallet) Also, the UX is not great (the user is asked to sign a hash, and even the wallet address is not mentioned, only the signer)
import { wrapProvider } from '@account-abstraction/sdk'
//use this account as wallet-owner (which will be used to sign the requests)
const signer = provider.getSigner()
const config = {
chainId: await provider.getNetwork().then(net => net.chainId),
entryPointAddress,
bundlerUrl: 'http://localhost:3000/rpc'
}
const aaProvider = await wrapProvider(provider, config, aasigner)
const walletAddress = await aaProvider.getSigner().getAddress()
// send some eth to the wallet Address: wallet should have some balance to pay for its own creation, and for calling methods.
const myContract = new Contract(abi, aaProvider)
// this method will get called from the wallet address, through account-abstraction EntryPoint
await myContract.someMethod()
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
@0xsodium/configEnvironment{
"local_name": "@0xsodium/config",
"alias": false,
"peer_metadata": null
} | ^0.14.0 | runtime |
@0xsodium/estimatorEnvironment{
"local_name": "@0xsodium/estimator",
"alias": false,
"peer_metadata": null
} | ^0.14.0 | runtime |
@0xsodium/networkEnvironment{
"local_name": "@0xsodium/network",
"alias": false,
"peer_metadata": null
} | ^0.14.0 | runtime |
@0xsodium/transactionsEnvironment{
"local_name": "@0xsodium/transactions",
"alias": false,
"peer_metadata": null
} | ^0.14.0 | runtime |
@0xsodium/utilsEnvironment{
"local_name": "@0xsodium/utils",
"alias": false,
"peer_metadata": null
} | ^0.14.0 | runtime |
@0xsodium/wallet-contractsEnvironment{
"local_name": "@0xsodium/wallet-contracts",
"alias": false,
"peer_metadata": null
} | ^0.0.4-beta | runtime |
@ethersproject/abstract-providerEnvironment{
"local_name": "@ethersproject/abstract-provider",
"alias": false,
"peer_metadata": null
} | ^5.7.0 | runtime |
@ethersproject/abstract-signerEnvironment{
"local_name": "@ethersproject/abstract-signer",
"alias": false,
"peer_metadata": null
} | ^5.7.0 | runtime |
@ethersproject/networksEnvironment{
"local_name": "@ethersproject/networks",
"alias": false,
"peer_metadata": null
} | ^5.7.0 | runtime |
@ethersproject/propertiesEnvironment{
"local_name": "@ethersproject/properties",
"alias": false,
"peer_metadata": null
} | ^5.7.0 | runtime |
@ethersproject/providersEnvironment{
"local_name": "@ethersproject/providers",
"alias": false,
"peer_metadata": null
} | ^5.7.0 | runtime |
@types/debugEnvironment{
"local_name": "@types/debug",
"alias": false,
"peer_metadata": null
} | ^4.1.7 | runtime |
bufferEnvironment{
"local_name": "buffer",
"alias": false,
"peer_metadata": null
} | ^6.0.3 | runtime |
debugEnvironment{
"local_name": "debug",
"alias": false,
"peer_metadata": null
} | ^4.3.4 | runtime |
ethersEnvironment{
"local_name": "ethers",
"alias": false,
"peer_metadata": null
} | ^5.7.0 | runtime |
@nomicfoundation/hardhat-chai-matchersEnvironment{
"local_name": "@nomicfoundation/hardhat-chai-matchers",
"alias": false,
"peer_metadata": null
} | ^1.0.3 | development |
@nomicfoundation/hardhat-toolboxEnvironment{
"local_name": "@nomicfoundation/hardhat-toolbox",
"alias": false,
"peer_metadata": null
} | ^1.0.2 | development |
@nomiclabs/hardhat-ethersEnvironment{
"local_name": "@nomiclabs/hardhat-ethers",
"alias": false,
"peer_metadata": null
} | ^2.0.0 | development |
chaiEnvironment{
"local_name": "chai",
"alias": false,
"peer_metadata": null
} | ^4.3.6 | development |
hardhatEnvironment{
"local_name": "hardhat",
"alias": false,
"peer_metadata": null
} | ^2.11.0 | development |
Source distribution
{
"integrity": "sha512-IDXYv2ntrudOjKduuUvIbSFT6wH63rVL86W7h/aRVPPiGvZA0tSHFAYzFjnjW1hhYDRJGZujnIMb8KjOD7BmSA==",
"shasum": "adae9bf3bdb4874ea64fb53566d09136902b4988",
"tarball": "https://registry.npmjs.org/@0xsodium/sdk4337/-/sdk4337-0.14.0.tgz",
"fileCount": 28,
"unpackedSize": 130672,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCICK0X8bP0hNnrs1uetBBnRZEO7KQA9u16fdycxDs4xtjAiEAvW4Q+HWcV182vWrDPFxwD7/HlSAuIk0qMATB9yO2Ge0="
}
],
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3GclACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/4w/+OUEt9KMRP0K2qWzzIb5IefLReTJypvpfVo5lpx8yiwz/6WWB\r\nfAYCygnTGYOBmUI7GliHrtFj6zJVwNUwMfsqanGCvLn0mmd/O2+W8H0Q3SDO\r\nBjEA8nNa/pruD7/VL6ceuEnMXzH+V7BYrLvezeO1uDQ0DhfsTp/jb+GY+ntt\r\nze2SCAZhlAAs69X2I//r1m2FGwkA2hcWfost6S1XJkIjfKB2zXYjzzqYh7qg\r\nKfcXY5E2vc3nq+5coTLobvyMhXPga4ZnU7lFkX//GkDRwi/L8h/sarOxg2wY\r\nSTqFDPx5/o1GAJNxuYQsM5RYKbKbjJvEDsMtm0E9zSmLkhj6RbgjSxd6+Ut7\r\nIq4uG7D98GSOudItELu2wPbRqmT5GGbfP1UcKuitoxmGmYFFJmWK0zPciA+w\r\nbTQjLEeCWZ0sr+JzzHMW7VibLOeqjXYuRMcFT6a6R3okZ+iWjaUSmBWQcZZ6\r\nz8Vq+ckDlYw2V8i36j+yw+C/uO+x/f947SxwZiunoQ778FBEJthuEGG8+ruN\r\nIBCENGhcPgF0QHXa8R/AhH7DXURnAGOlUr/+HPFilAY4E14onGBJsRbc+xym\r\ncOwasSUbx+tzyFIXOur2tLOZlzxYyER18kKAmKYUab/q+dSgBb474jHVKuCu\r\nXrqBPjn68T8K7gSOtq7itLpaprVoMurzMPA=\r\n=9C8I\r\n-----END PGP SIGNATURE-----\r\n"
}Observed since 21 Oct, 11:33 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:f1b7e7ff8bd50a04f062aa80313033ef67cb042fbdff56221cd4690d7b86e869