@wormhole-foundation/wormhole-connect 0.2.2 → 0.2.4

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/lib/cjs/index.js CHANGED
@@ -17,7 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  var jsx_runtime_1 = require("react/jsx-runtime");
18
18
  var react_1 = require("react");
19
19
  var PACKAGE_NAME = "@wormhole-foundation/wormhole-connect";
20
- var DEFAULT_VERSION = "0.2.2" || "latest";
20
+ var DEFAULT_VERSION = "0.2.4" || "latest";
21
21
  function WormholeBridge(_a) {
22
22
  var config = _a.config, _b = _a.versionOrTag, versionOrTag = _b === void 0 ? DEFAULT_VERSION : _b;
23
23
  (0, react_1.useEffect)(function () {
package/lib/cjs/types.js CHANGED
@@ -8,6 +8,7 @@ exports.MAINNET_CHAINS = {
8
8
  polygon: 5,
9
9
  avalanche: 6,
10
10
  fantom: 10,
11
+ klaytn: 13,
11
12
  celo: 14,
12
13
  moonbeam: 16,
13
14
  osmosis: 20,
@@ -27,6 +28,7 @@ exports.TESTNET_CHAINS = {
27
28
  mumbai: 5,
28
29
  fuji: 6,
29
30
  fantom: 10,
31
+ klaytn: 13,
30
32
  alfajores: 14,
31
33
  moonbasealpha: 16,
32
34
  osmosis: 20,
@@ -38,4 +40,8 @@ exports.TESTNET_CHAINS = {
38
40
  wormchain: 3104,
39
41
  evmos: 4001,
40
42
  kujira: 4002,
43
+ sepolia: 10002,
44
+ arbitrum_sepolia: 10003,
45
+ base_sepolia: 10004,
46
+ optimism_sepolia: 10005,
41
47
  };
package/lib/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useEffect } from "react";
3
3
  var PACKAGE_NAME = "@wormhole-foundation/wormhole-connect";
4
- var DEFAULT_VERSION = "0.2.2" || "latest";
4
+ var DEFAULT_VERSION = "0.2.4" || "latest";
5
5
  function WormholeBridge(_a) {
6
6
  var config = _a.config, _b = _a.versionOrTag, versionOrTag = _b === void 0 ? DEFAULT_VERSION : _b;
7
7
  useEffect(function () {
package/lib/esm/types.js CHANGED
@@ -5,6 +5,7 @@ export var MAINNET_CHAINS = {
5
5
  polygon: 5,
6
6
  avalanche: 6,
7
7
  fantom: 10,
8
+ klaytn: 13,
8
9
  celo: 14,
9
10
  moonbeam: 16,
10
11
  osmosis: 20,
@@ -24,6 +25,7 @@ export var TESTNET_CHAINS = {
24
25
  mumbai: 5,
25
26
  fuji: 6,
26
27
  fantom: 10,
28
+ klaytn: 13,
27
29
  alfajores: 14,
28
30
  moonbasealpha: 16,
29
31
  osmosis: 20,
@@ -35,4 +37,8 @@ export var TESTNET_CHAINS = {
35
37
  wormchain: 3104,
36
38
  evmos: 4001,
37
39
  kujira: 4002,
40
+ sepolia: 10002,
41
+ arbitrum_sepolia: 10003,
42
+ base_sepolia: 10004,
43
+ optimism_sepolia: 10005,
38
44
  };
@@ -6,6 +6,7 @@ export declare const MAINNET_CHAINS: {
6
6
  readonly polygon: 5;
7
7
  readonly avalanche: 6;
8
8
  readonly fantom: 10;
9
+ readonly klaytn: 13;
9
10
  readonly celo: 14;
10
11
  readonly moonbeam: 16;
11
12
  readonly osmosis: 20;
@@ -27,6 +28,7 @@ export declare const TESTNET_CHAINS: {
27
28
  readonly mumbai: 5;
28
29
  readonly fuji: 6;
29
30
  readonly fantom: 10;
31
+ readonly klaytn: 13;
30
32
  readonly alfajores: 14;
31
33
  readonly moonbasealpha: 16;
32
34
  readonly osmosis: 20;
@@ -38,6 +40,10 @@ export declare const TESTNET_CHAINS: {
38
40
  readonly wormchain: 3104;
39
41
  readonly evmos: 4001;
40
42
  readonly kujira: 4002;
43
+ readonly sepolia: 10002;
44
+ readonly arbitrum_sepolia: 10003;
45
+ readonly base_sepolia: 10004;
46
+ readonly optimism_sepolia: 10005;
41
47
  };
42
48
  export type TestnetChainName = keyof typeof TESTNET_CHAINS;
43
49
  export type TestnetChainId = (typeof TESTNET_CHAINS)[TestnetChainName];
@@ -81,6 +87,7 @@ export interface WormholeConnectConfig {
81
87
  walletConnectProjectId?: string;
82
88
  ethBridgeMaxAmount?: number;
83
89
  wstETHBridgeMaxAmount?: number;
90
+ coinGeckoApiKey?: string;
84
91
  }
85
92
  export type ExplorerConfig = {
86
93
  href: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wormhole-foundation/wormhole-connect",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "dependencies": {
5
5
  "@mui/material": "^5.12.1"
6
6
  },
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "scripts": {
18
18
  "lint:ci": "prettier -c ./src && eslint --max-warnings=0 ./src",
19
- "build:deps": "rm -rf dist && mkdir dist && cp -r ../wormhole-connect/build/* dist/ && mv dist/main-*.css dist/main.css",
19
+ "build:deps": "rm -rf dist && mkdir dist && cp -r ../wormhole-connect/build/* dist/ && cp dist/main-*.css dist/main.css",
20
20
  "build:cjs": "tsc -p tsconfig.cjs.json",
21
21
  "build:esm": "tsc -p tsconfig.esm.json",
22
22
  "build": "npm run build:deps && rm -rf lib && npm run build:cjs && npm run build:esm && node scripts/replaceEnvWithCurrentVersion"