@wormhole-foundation/wormhole-connect 0.0.5 → 0.0.7
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/README.md +8 -4
- package/dist/main.js +19 -19
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/types.js +4 -0
- package/lib/esm/index.js +2 -2
- package/lib/esm/types.js +4 -0
- package/lib/types/types.d.ts +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ Integration does not get easier than this. Wormhole Connect is an easy seamless
|
|
|
4
4
|
|
|
5
5
|
## Integrate with script/link tags
|
|
6
6
|
|
|
7
|
+
> IMPORTANT! For the best performance and functionality, you should provide your own custom rpc endpoints for each supported network.
|
|
8
|
+
|
|
7
9
|
### 1. (Optional) Create a JSON config with customized values:
|
|
8
10
|
|
|
9
11
|
```ts
|
|
@@ -36,6 +38,7 @@ Networks (`networks`):
|
|
|
36
38
|
| moonbeam | moonbasealpha |
|
|
37
39
|
| solana | solana |
|
|
38
40
|
| sui | sui |
|
|
41
|
+
| aptos | aptos |
|
|
39
42
|
|
|
40
43
|
<br>
|
|
41
44
|
|
|
@@ -66,6 +69,7 @@ Tokens (`tokens`):
|
|
|
66
69
|
| SOL | WSOL |
|
|
67
70
|
| SUI | SUI |
|
|
68
71
|
| USDCsol | |
|
|
72
|
+
| APT | APT |
|
|
69
73
|
|
|
70
74
|
<br>
|
|
71
75
|
|
|
@@ -98,8 +102,8 @@ If you created a config from step 1, [stringify](https://developer.mozilla.org/e
|
|
|
98
102
|
|
|
99
103
|
```html
|
|
100
104
|
<!-- paste below into index.html body -->
|
|
101
|
-
<script src="https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.
|
|
102
|
-
<link href="https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.
|
|
105
|
+
<script src="https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.7/dist/main.js"></script>
|
|
106
|
+
<link href="https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.7/dist/main.css" />
|
|
103
107
|
```
|
|
104
108
|
|
|
105
109
|
Note that the `wormhole-connect` div with your config has to be present _before_ the scripts are loaded. If your application loads it after, you may need to add the scripts like this:
|
|
@@ -107,11 +111,11 @@ Note that the `wormhole-connect` div with your config has to be present _before_
|
|
|
107
111
|
```js
|
|
108
112
|
function mount () {
|
|
109
113
|
const script = document.createElement("script");
|
|
110
|
-
script.src = "https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.
|
|
114
|
+
script.src = "https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.6/dist/main.js";
|
|
111
115
|
script.async = true;
|
|
112
116
|
|
|
113
117
|
const link = document.createElement("link");
|
|
114
|
-
link.href = "https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.
|
|
118
|
+
link.href = "https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.6/dist/main.css";
|
|
115
119
|
|
|
116
120
|
document.body.appendChild(script);
|
|
117
121
|
document.body.appendChild(link);
|