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
} | ^1.3.0 | runtime |
@0xsodium/estimatorEnvironment{
"local_name": "@0xsodium/estimator",
"alias": false,
"peer_metadata": null
} | ^1.3.0 | runtime |
@0xsodium/networkEnvironment{
"local_name": "@0xsodium/network",
"alias": false,
"peer_metadata": null
} | ^1.3.0 | runtime |
@0xsodium/transactionsEnvironment{
"local_name": "@0xsodium/transactions",
"alias": false,
"peer_metadata": null
} | ^1.3.0 | runtime |
@0xsodium/utilsEnvironment{
"local_name": "@0xsodium/utils",
"alias": false,
"peer_metadata": null
} | ^1.3.0 | runtime |
@0xsodium/wallet-contractsEnvironment{
"local_name": "@0xsodium/wallet-contracts",
"alias": false,
"peer_metadata": null
} | ^0.0.5-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-1jvhdZli4CNx2muhl2qlxfTq6RKQLndmrsj+48QEibQCvbcDQbUqttzSOGfml5KcLWnQ+RjbYemwyZ+VbRa4aw==",
"shasum": "12a3f7cc42e031d1f3b6c3af9a9b0115c860d4a6",
"tarball": "https://registry.npmjs.org/@0xsodium/sdk4337/-/sdk4337-1.3.0.tgz",
"fileCount": 15,
"unpackedSize": 44371,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEQCICUMvS03C5z5C05UuGnoBr3gcnlLuLqK/dsCP9NYrX5aAiBLUrc1r1tL17kR5dpEWtYyZjysJ2q9pLyLOopIfkraMg=="
}
],
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/BNcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp20BAAl7Oj6YXL/tNcbyTuX7lriq2BJ+TLYsK06gULBRwF0qraN9+B\r\nEfmMHiGokKxb6PBeJPulj46KesZ3AchPyaURKznQgDY4KhaVPImtlrSNGhoG\r\nvCVyBNTQ0rGVePNrogRxcq4F6FV8Y0Y1RKdZ6btKGMj712UIwfRBgatZICiT\r\nBEFTiVnPnrdA5gKrR/0vDUx38aWvAAHvsEbB5tbr4azrcR+1NswidjMJoggP\r\nkZTlO2i4uAUMuOklgRcfF99bKM3ITK/3whox4AejEClHf6rhriW99OnsnySY\r\nvyvOcQbKzRJ3R7BWM4h3JtEs/dOpZhf+/eTJGTHiu1pqKJ/eGCWPVHKLerSp\r\nfsm8X/KNpnkBsfAnlTYKW+HXVkQKnfLze1U5EQzD5i+d5sftqWEdRFa0VMqi\r\nzOtSGu7r9uupqunmaWW/IhYAQcoMG1MDll9Sh6ihtU2klL3cORWMBXkOK+sB\r\nc7K4e+nun2aA+/4+jPAcI6OzTkeGJIfM3Dc6GAAP65EHKjwPfNq0dCmImdOt\r\nIAx2g/BbX4Tj9H2koEmehVt5tapCR84Zvl9GwcTeCRn8mTNxsV9hbPMxFc9U\r\nQkqceISoM/lWz49RVoTotWgYMhdDwLiYLGpxLVjdsSsKjkoCc4TI3BGi9NI3\r\nOZaS4nY0OYyiUjzuukqwbPuhdmW4nSFr56E=\r\n=oKXR\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:2485a3c4a0074ec692217ad7093e5e145aac6ea50c8f87388dbeebee5f3d58b3