@vulcx/widget 0.2.1 → 0.2.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/README.md +3 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Or via CDN (no build step needed):
|
|
|
24
24
|
<vulcx-swap
|
|
25
25
|
api-key="vulcx_your_api_key"
|
|
26
26
|
default-input-mint="So11111111111111111111111111111111111111112"
|
|
27
|
-
default-output-mint="
|
|
27
|
+
default-output-mint="uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG"
|
|
28
28
|
theme="dark"
|
|
29
29
|
></vulcx-swap>
|
|
30
30
|
```
|
|
@@ -39,7 +39,7 @@ function App() {
|
|
|
39
39
|
<vulcx-swap
|
|
40
40
|
api-key="vulcx_your_api_key"
|
|
41
41
|
default-input-mint="So11111111111111111111111111111111111111112"
|
|
42
|
-
default-output-mint="
|
|
42
|
+
default-output-mint="uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG"
|
|
43
43
|
theme="dark"
|
|
44
44
|
/>
|
|
45
45
|
);
|
|
@@ -71,7 +71,7 @@ declare namespace JSX {
|
|
|
71
71
|
<vulcx-swap
|
|
72
72
|
api-key="vulcx_your_api_key"
|
|
73
73
|
default-input-mint="So11111111111111111111111111111111111111112"
|
|
74
|
-
default-output-mint="
|
|
74
|
+
default-output-mint="uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG"
|
|
75
75
|
theme="dark"
|
|
76
76
|
@quote-update="onQuote"
|
|
77
77
|
@swap-complete="onSwap"
|
|
@@ -118,7 +118,6 @@ export default function SwapWidget() {
|
|
|
118
118
|
| Attribute | Type | Default | Description |
|
|
119
119
|
| --------------------- | ------------------ | ---------- | ------------------------------ |
|
|
120
120
|
| `api-key` | `string` | — | **Required.** Your API key |
|
|
121
|
-
| `chain` | `"solana"\|"fogo"` | `"solana"` | Target chain |
|
|
122
121
|
| `base-url` | `string` | Production | API base URL override |
|
|
123
122
|
| `default-input-mint` | `string` | — | Pre-selected input token mint |
|
|
124
123
|
| `default-output-mint` | `string` | — | Pre-selected output token mint |
|