![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@reservoir0x/relay-ethers-wallet-adapter
Advanced tools
An adapter used to convert an ethersjs signer to an Adapted Wallet for use in the @reservoir0x/relay-sdk
yarn add @reservoir0x/relay-ethers-wallet-adapter @reservoir0x/relay-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/relay-sdk
To use the adapter simply pass in your ethers signer and receive a normalized AdaptedWallet object:
import { getClient } from "@reservoir0x/relay-sdk";
import { adaptEthersSigner } from "@reservoir0x/relay-ethers-wallet-adapter";
import { useSigner } from "wagmi";
const { data: signer } = useSigner();
const wallet = adaptEthersSigner(signer);
const quote = getClient().actions.getQuote({
chainId: 7777777,
toChainId: 8453,
txs: [{ to: "0x30385bce01da4b415cae1db21d41e9f6eab3ba50", value: "1000000" }],
wallet: wallet,
});
getClient().actions.execute({
quote: quote,
wallet: wallet,
onProgress: (steps) => {
console.log(steps);
},
});
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 AdaptedWallet object and pass this into any of the SDK methods. Here we pass it into the call method along with the other required parameters.
FAQs
An adapter used to convert an ethersjs signer to an Adapted Wallet for use in the @reservoir0x/relay-sdk
The npm package @reservoir0x/relay-ethers-wallet-adapter receives a total of 12 weekly downloads. As such, @reservoir0x/relay-ethers-wallet-adapter popularity was classified as not popular.
We found that @reservoir0x/relay-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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.