![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@reservoir0x/ethers-wallet-adapter
Advanced tools
An adapter used to convert an ethersjs signer to a Reservoir Wallet for use in the @reservoir0x/reservoir-sdk
yarn add @reservoir0x/ethers-wallet-adapter @reservoir0x/reservoir-sdk
Also make sure to install the peer dependencies required by the adapter if your application doesn't already include them:
yarn add ethers viem @reservoir0x/reservoir-sdk
To use the adapter simply pass in your ethers signer and receive a normalized ReservoirWallet object:
import { getClient } from '@reservoir0x/reservoir-sdk'
import { adaptEthersSigner } from '@reservoir0x/ethers-wallet-adapter'
import { useSigner } from 'wagmi'
...
const { data: signer } = useSigner()
const wallet = adaptEthersSigner(signer)
getClient().actions.buyToken({
items: [
{
collection: '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d',
},
],
wallet,
onProgress: () => {},
})
In the code snippet above we use the wagmi useSigner
method, which is not required, you can create your ethers signer however you wish. We then adapt the signer to the ReservoirWallet object and pass this into any of the SDK methods. Here we pass it into the buyToken method along with the other required parameters.
FAQs
An adapter used to convert an ethersjs signer to a Reservoir Wallet for use in the @reservoir0x/reservoir-sdk
The npm package @reservoir0x/ethers-wallet-adapter receives a total of 529 weekly downloads. As such, @reservoir0x/ethers-wallet-adapter popularity was classified as not popular.
We found that @reservoir0x/ethers-wallet-adapter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.