@kaspacom/swap-sdk 1.1.25 → 1.1.27
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 +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -101,7 +101,7 @@ console.log(tokens);
|
|
|
101
101
|
### createKaspaComSwapController(options)
|
|
102
102
|
Creates and returns a `SwapSdkController` instance. Accepts either a preset string for `networkConfig` or a full `SwapSdkNetworkConfig` object.
|
|
103
103
|
|
|
104
|
-
- **options.networkConfig**: `'kasplex-testnet'`, `'igra-testnet'`, `'kasplex'` or `SwapSdkNetworkConfig`
|
|
104
|
+
- **options.networkConfig**: `'kasplex-testnet'`, `'igra-testnet'`, `'kasplex'`(prod), `'igra'`(prod) or `SwapSdkNetworkConfig`
|
|
105
105
|
- **options.walletProvider**: EIP-1193 provider (e.g., `window.ethereum`)
|
|
106
106
|
- **options.partnerKey?**: Optional partner key string
|
|
107
107
|
- **options.onChange?**: `(state, patch) => Promise<void>` callback invoked on any state change
|
|
@@ -221,7 +221,7 @@ All types are exported from `swap-widget`.
|
|
|
221
221
|
The wrapped native token (WKAS).
|
|
222
222
|
|
|
223
223
|
- **NETWORKS**
|
|
224
|
-
- Preset map of network keys to `SwapSdkNetworkConfig` objects. Includes `'kasplex-testnet'`, `'kasplex'`.
|
|
224
|
+
- Preset map of network keys to `SwapSdkNetworkConfig` objects. Includes `'kasplex-testnet'`, `'kasplex'`, `'igra-testnet'`, `'igra'`.
|
|
225
225
|
|
|
226
226
|
|
|
227
227
|
## Usage Patterns
|
package/dist/index.cjs
CHANGED
|
@@ -2159,7 +2159,7 @@ var NETWORKS = {
|
|
|
2159
2159
|
routerAddress: "0x771dfB21e1CD8EA3e8B68cB2469eDaF9548c2523",
|
|
2160
2160
|
factoryAddress: "0x21350BcDa9E81731CF4cDE3DbC457e3de2739c01",
|
|
2161
2161
|
proxyAddress: "0xDD1aBB133D027f4F67571b5bEEDC9cd9a93C13Ca",
|
|
2162
|
-
badckendApiUrl: "https://
|
|
2162
|
+
badckendApiUrl: "https://api-defi.kaspa.com",
|
|
2163
2163
|
blockExplorerUrl: "https://explorer.igralabs.com",
|
|
2164
2164
|
additionalJsonRpcApiProviderOptionsOptions: {
|
|
2165
2165
|
batchMaxSize: 0
|