@dignetwork/dig-sdk 0.4.0 → 0.4.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/index.cjs CHANGED
@@ -142,12 +142,13 @@ function isTransientPublishError(err) {
142
142
 
143
143
  // src/provider/walletconnect.ts
144
144
  var WalletConnectTransport = class _WalletConnectTransport {
145
- constructor(client, session, chain, requestTimeoutMs) {
145
+ constructor(client, session, chain, requestTimeoutMs, backoffBaseMs = 1200) {
146
146
  this.backend = "walletconnect";
147
147
  this.client = client;
148
148
  this.topic = session.topic;
149
149
  this.chain = chain;
150
150
  this.requestTimeoutMs = requestTimeoutMs;
151
+ this.backoffBaseMs = backoffBaseMs;
151
152
  }
152
153
  /**
153
154
  * Initialize SignClient, open a pairing (emitting the URI via `onUri`), and resolve to a
@@ -223,7 +224,7 @@ var WalletConnectTransport = class _WalletConnectTransport {
223
224
  } catch (e) {
224
225
  lastErr = e;
225
226
  if (i < MAX_ATTEMPTS - 1 && isTransientPublishError(e)) {
226
- await sleep(1200 * (i + 1));
227
+ await sleep(this.backoffBaseMs * (i + 1));
227
228
  continue;
228
229
  }
229
230
  throw e;
@@ -1147,7 +1148,7 @@ function undefinedFetch() {
1147
1148
  }
1148
1149
 
1149
1150
  // src/capabilities.ts
1150
- var SDK_VERSION = "0.4.0" ;
1151
+ var SDK_VERSION = "0.4.1" ;
1151
1152
  var MODULES = Object.freeze([
1152
1153
  {
1153
1154
  name: "ChiaProvider",