@diviswap/sdk 1.9.0 → 1.9.1
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/dist/cli/index.js +1 -1
- package/dist/index.d.mts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +4 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -24
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.d.mts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/{wallet-Cohx6L51.d.mts → wallet-yDJlJqCw.d.mts} +2 -2
- package/dist/{wallet-Cohx6L51.d.ts → wallet-yDJlJqCw.d.ts} +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -459,21 +459,12 @@ var SANDBOX_DEPOSIT_ADDRESSES = {
|
|
|
459
459
|
polygon: "0xa3da8ffC1D131F917f9D0Ac078D82914e75d9651",
|
|
460
460
|
solana: "EokHeEoZpGtBNeuJKRPvtxzXqaXz6bM5zsVB5TVPtNee"
|
|
461
461
|
};
|
|
462
|
-
var DEVELOPMENT_DEPOSIT_ADDRESSES = {
|
|
463
|
-
ethereum: "0xa3da8ffC1D131F917f9D0Ac078D82914e75d9651",
|
|
464
|
-
// Same unified address
|
|
465
|
-
base: "0xa3da8ffC1D131F917f9D0Ac078D82914e75d9651",
|
|
466
|
-
polygon: "0xa3da8ffC1D131F917f9D0Ac078D82914e75d9651",
|
|
467
|
-
solana: "EokHeEoZpGtBNeuJKRPvtxzXqaXz6bM5zsVB5TVPtNee"
|
|
468
|
-
};
|
|
469
462
|
function getDepositAddresses(environment) {
|
|
470
463
|
switch (environment) {
|
|
471
464
|
case "production":
|
|
472
465
|
return PRODUCTION_DEPOSIT_ADDRESSES;
|
|
473
466
|
case "sandbox":
|
|
474
467
|
return SANDBOX_DEPOSIT_ADDRESSES;
|
|
475
|
-
case "development":
|
|
476
|
-
return DEVELOPMENT_DEPOSIT_ADDRESSES;
|
|
477
468
|
default:
|
|
478
469
|
return SANDBOX_DEPOSIT_ADDRESSES;
|
|
479
470
|
}
|
|
@@ -1823,16 +1814,8 @@ var UnifiedApiClient = class _UnifiedApiClient {
|
|
|
1823
1814
|
);
|
|
1824
1815
|
}
|
|
1825
1816
|
}
|
|
1826
|
-
static getDefaultApiUrl(
|
|
1827
|
-
|
|
1828
|
-
case "production":
|
|
1829
|
-
case "sandbox":
|
|
1830
|
-
return "https://api.diviswap.com";
|
|
1831
|
-
case "development":
|
|
1832
|
-
return "https://dev-api.diviswap.com";
|
|
1833
|
-
default:
|
|
1834
|
-
return "https://api.diviswap.com";
|
|
1835
|
-
}
|
|
1817
|
+
static getDefaultApiUrl(_environment) {
|
|
1818
|
+
return "https://api.diviswap.com";
|
|
1836
1819
|
}
|
|
1837
1820
|
/**
|
|
1838
1821
|
* Update customer context for partner auth
|
|
@@ -2214,11 +2197,9 @@ var _Diviswap = class _Diviswap {
|
|
|
2214
2197
|
);
|
|
2215
2198
|
}
|
|
2216
2199
|
}
|
|
2217
|
-
if (config.environment && !["production", "sandbox"
|
|
2218
|
-
config.environment
|
|
2219
|
-
)) {
|
|
2200
|
+
if (config.environment && !["production", "sandbox"].includes(config.environment)) {
|
|
2220
2201
|
throw new ConfigurationError(
|
|
2221
|
-
"Invalid environment. Must be one of: production, sandbox
|
|
2202
|
+
"Invalid environment. Must be one of: production, sandbox"
|
|
2222
2203
|
);
|
|
2223
2204
|
}
|
|
2224
2205
|
}
|
|
@@ -2447,6 +2428,6 @@ function extractTransactionHash(result) {
|
|
|
2447
2428
|
return result;
|
|
2448
2429
|
}
|
|
2449
2430
|
|
|
2450
|
-
export { AuthenticationError, CHAIN_IDS, CHAIN_ID_TO_NAME, CHAIN_NAME_TO_ID, ConfigurationError,
|
|
2431
|
+
export { AuthenticationError, CHAIN_IDS, CHAIN_ID_TO_NAME, CHAIN_NAME_TO_ID, ConfigurationError, Diviswap, DiviswapError, Diviswap as LiberEx, LiberExError, NetworkError, PRODUCTION_DEPOSIT_ADDRESSES, SANDBOX_DEPOSIT_ADDRESSES, STABLECOIN_ADDRESSES, ValidationError, WalletTracker, connectWallet, extractTransactionHash, getDepositAddresses, setupWalletTracking, trackCurrentWallet };
|
|
2451
2432
|
//# sourceMappingURL=index.mjs.map
|
|
2452
2433
|
//# sourceMappingURL=index.mjs.map
|