@dignetwork/dig-sdk 0.3.3 → 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/README.md +2 -2
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/dist/index.d.cts
CHANGED
|
@@ -47,6 +47,7 @@ declare class WalletConnectTransport implements WalletTransport {
|
|
|
47
47
|
readonly topic: string;
|
|
48
48
|
private readonly client;
|
|
49
49
|
private readonly requestTimeoutMs;
|
|
50
|
+
private readonly backoffBaseMs;
|
|
50
51
|
private constructor();
|
|
51
52
|
/**
|
|
52
53
|
* Initialize SignClient, open a pairing (emitting the URI via `onUri`), and resolve to a
|
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ declare class WalletConnectTransport implements WalletTransport {
|
|
|
47
47
|
readonly topic: string;
|
|
48
48
|
private readonly client;
|
|
49
49
|
private readonly requestTimeoutMs;
|
|
50
|
+
private readonly backoffBaseMs;
|
|
50
51
|
private constructor();
|
|
51
52
|
/**
|
|
52
53
|
* Initialize SignClient, open a pairing (emitting the URI via `onUri`), and resolve to a
|
package/dist/index.js
CHANGED
|
@@ -139,12 +139,13 @@ function isTransientPublishError(err) {
|
|
|
139
139
|
|
|
140
140
|
// src/provider/walletconnect.ts
|
|
141
141
|
var WalletConnectTransport = class _WalletConnectTransport {
|
|
142
|
-
constructor(client, session, chain, requestTimeoutMs) {
|
|
142
|
+
constructor(client, session, chain, requestTimeoutMs, backoffBaseMs = 1200) {
|
|
143
143
|
this.backend = "walletconnect";
|
|
144
144
|
this.client = client;
|
|
145
145
|
this.topic = session.topic;
|
|
146
146
|
this.chain = chain;
|
|
147
147
|
this.requestTimeoutMs = requestTimeoutMs;
|
|
148
|
+
this.backoffBaseMs = backoffBaseMs;
|
|
148
149
|
}
|
|
149
150
|
/**
|
|
150
151
|
* Initialize SignClient, open a pairing (emitting the URI via `onUri`), and resolve to a
|
|
@@ -220,7 +221,7 @@ var WalletConnectTransport = class _WalletConnectTransport {
|
|
|
220
221
|
} catch (e) {
|
|
221
222
|
lastErr = e;
|
|
222
223
|
if (i < MAX_ATTEMPTS - 1 && isTransientPublishError(e)) {
|
|
223
|
-
await sleep(
|
|
224
|
+
await sleep(this.backoffBaseMs * (i + 1));
|
|
224
225
|
continue;
|
|
225
226
|
}
|
|
226
227
|
throw e;
|
|
@@ -1144,7 +1145,7 @@ function undefinedFetch() {
|
|
|
1144
1145
|
}
|
|
1145
1146
|
|
|
1146
1147
|
// src/capabilities.ts
|
|
1147
|
-
var SDK_VERSION = "0.
|
|
1148
|
+
var SDK_VERSION = "0.4.1" ;
|
|
1148
1149
|
var MODULES = Object.freeze([
|
|
1149
1150
|
{
|
|
1150
1151
|
name: "ChiaProvider",
|