Skip to content

Commit

Permalink
Viem V2 / Ethers V6 and update deps (#178)
Browse files Browse the repository at this point in the history
* update deps

* update polkadot deps versions

* install ts-node for jest

* update lock file

* viem version range peer dep

* change viem contract instancing

* fix typying issues

* viem version range

* revert polkadot versions

* update ethers to V6

* update package versions

* fix ethers estimated gas

* fix ethers 6 migration

* add changeset

* update peerdep

* update changeset

* update ethers

* update Readme

* update Readme

* remove v0 links from Readme
  • Loading branch information
mmaurello authored Feb 19, 2024
1 parent d25cd6b commit 5e77c1e
Show file tree
Hide file tree
Showing 12 changed files with 3,465 additions and 3,277 deletions.
20 changes: 20 additions & 0 deletions .changeset/gentle-squids-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
'@moonbeam-network/xcm-config': major
'@moonbeam-network/xcm-utils': major
'@moonbeam-network/xcm-sdk': major
'@moonbeam-network/xcm-builder': major
'@moonbeam-network/xcm-types': major
---

Upgrate Viem and ethers major versions

Breaking changes: we now require either `viem` V2 or `ethers` V6

To upgrade to this version just update the corresponding library. Here are the migration guides for both:

viem:
https://wagmi.sh/core/guides/migrate-from-v1-to-v2
https://wagmi.sh/react/guides/migrate-from-v1-to-v2

ethers:
https://docs.ethers.org/v6/migrating/
2 changes: 1 addition & 1 deletion examples/sdk-simple/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { setTimeout } from 'node:timers/promises';
// Moonbeam Signer ===========================================================

const moonbeamPrivateKey = '';
const provider = new ethers.providers.WebSocketProvider(moonbeam.ws, {
const provider = new ethers.WebSocketProvider(moonbeam.ws, {
chainId: moonbeam.id,
name: moonbeam.name,
});
Expand Down
2 changes: 1 addition & 1 deletion examples/sdk-simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"@moonbeam-network/xcm-utils": "1.0.4"
},
"devDependencies": {
"bun": "^1.0.20"
"bun": "^1.0.21"
}
}
Loading

0 comments on commit 5e77c1e

Please sign in to comment.