@veridex/sdk 1.1.4 → 1.1.5
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/index.d.mts +38 -10
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6351,6 +6351,10 @@ var VeridexSDK = class {
|
|
|
6351
6351
|
};
|
|
6352
6352
|
|
|
6353
6353
|
// src/factory.ts
|
|
6354
|
+
var DEFAULT_PUBLIC_RELAYER_URLS = {
|
|
6355
|
+
testnet: "https://relayer.veridex.network"
|
|
6356
|
+
// mainnet: '<set when public mainnet relayer ships>',
|
|
6357
|
+
};
|
|
6354
6358
|
function createChainClient(chain, network, customRpcUrl) {
|
|
6355
6359
|
const preset = getChainPreset(chain);
|
|
6356
6360
|
const config = preset[network];
|
|
@@ -6463,7 +6467,7 @@ function createSDK(chain, config = {}) {
|
|
|
6463
6467
|
return new VeridexSDK({
|
|
6464
6468
|
chain: chainClient,
|
|
6465
6469
|
testnet: network === "testnet",
|
|
6466
|
-
relayerUrl: config.relayerUrl,
|
|
6470
|
+
relayerUrl: config.relayerUrl ?? DEFAULT_PUBLIC_RELAYER_URLS[network],
|
|
6467
6471
|
relayerApiKey: config.relayerApiKey,
|
|
6468
6472
|
sponsorPrivateKey: config.sponsorPrivateKey,
|
|
6469
6473
|
integratorSponsorKey: config.integratorSponsorKey,
|