@wormhole-foundation/wormhole-connect 0.0.5 → 0.0.6
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 +6 -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
|
|
@@ -98,8 +100,8 @@ If you created a config from step 1, [stringify](https://developer.mozilla.org/e
|
|
|
98
100
|
|
|
99
101
|
```html
|
|
100
102
|
<!-- 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.
|
|
103
|
+
<script src="https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.6/dist/main.js"></script>
|
|
104
|
+
<link href="https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.6/dist/main.css" />
|
|
103
105
|
```
|
|
104
106
|
|
|
105
107
|
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 +109,11 @@ Note that the `wormhole-connect` div with your config has to be present _before_
|
|
|
107
109
|
```js
|
|
108
110
|
function mount () {
|
|
109
111
|
const script = document.createElement("script");
|
|
110
|
-
script.src = "https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.
|
|
112
|
+
script.src = "https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.6/dist/main.js";
|
|
111
113
|
script.async = true;
|
|
112
114
|
|
|
113
115
|
const link = document.createElement("link");
|
|
114
|
-
link.href = "https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.
|
|
116
|
+
link.href = "https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.6/dist/main.css";
|
|
115
117
|
|
|
116
118
|
document.body.appendChild(script);
|
|
117
119
|
document.body.appendChild(link);
|