@shapeshiftoss/swap-widget 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -10
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -108,7 +108,6 @@ import { createPublicClient, http } from "viem";
|
|
|
108
108
|
import { mainnet as mainnet2 } from "viem/chains";
|
|
109
109
|
|
|
110
110
|
// src/constants/viemChains.ts
|
|
111
|
-
import { defineChain } from "viem";
|
|
112
111
|
import {
|
|
113
112
|
arbitrum,
|
|
114
113
|
avalanche,
|
|
@@ -118,20 +117,12 @@ import {
|
|
|
118
117
|
hyperEvm,
|
|
119
118
|
katana,
|
|
120
119
|
mainnet,
|
|
120
|
+
megaeth,
|
|
121
121
|
monad,
|
|
122
122
|
optimism,
|
|
123
123
|
plasma,
|
|
124
124
|
polygon
|
|
125
125
|
} from "viem/chains";
|
|
126
|
-
var megaeth = defineChain({
|
|
127
|
-
id: 4326,
|
|
128
|
-
name: "MegaETH",
|
|
129
|
-
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
130
|
-
rpcUrls: { default: { http: ["https://mainnet.megaeth.com/rpc"] } },
|
|
131
|
-
blockExplorers: {
|
|
132
|
-
default: { name: "MegaETH Explorer", url: "https://megaeth.blockscout.com" }
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
126
|
var VIEM_CHAINS_BY_ID = {
|
|
136
127
|
[mainnet.id]: {
|
|
137
128
|
...mainnet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapeshiftoss/swap-widget",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Embeddable swap widget using ShapeShift API",
|
|
5
5
|
"repository": "https://github.com/shapeshift/web",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"p-queue": "^8.0.1",
|
|
31
31
|
"react-virtuoso": "^4.7.11",
|
|
32
32
|
"xstate": "5.28.0",
|
|
33
|
-
"@shapeshiftoss/caip": "^8.16.
|
|
34
|
-
"@shapeshiftoss/
|
|
35
|
-
"@shapeshiftoss/
|
|
33
|
+
"@shapeshiftoss/caip": "^8.16.10",
|
|
34
|
+
"@shapeshiftoss/types": "^8.6.8",
|
|
35
|
+
"@shapeshiftoss/utils": "^1.1.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@wagmi/core": "^2.0.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@tanstack/react-query": "^5.69.0",
|
|
46
46
|
"react": "^18.0.0 || ^19.0.0",
|
|
47
47
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
48
|
-
"viem": "^2.
|
|
48
|
+
"viem": "^2.45.0",
|
|
49
49
|
"wagmi": "^2.19.5"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"react-dom": "^19.0.0",
|
|
89
89
|
"tsup": "^8.5.1",
|
|
90
90
|
"typescript": "~5.2.2",
|
|
91
|
-
"viem": "2.
|
|
91
|
+
"viem": "2.46.3",
|
|
92
92
|
"vite": "^5.0.0",
|
|
93
93
|
"vite-plugin-node-polyfills": "0.23.0",
|
|
94
94
|
"wagmi": "2.19.5"
|