@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/README.md
CHANGED
|
@@ -239,8 +239,8 @@ URN grammar the hub, extension, and companion use.
|
|
|
239
239
|
|
|
240
240
|
`import * as spend from "@dignetwork/dig-sdk/spend"` re-exports
|
|
241
241
|
[`@dignetwork/chip35-dl-coin-wasm`](https://www.npmjs.com/package/@dignetwork/chip35-dl-coin-wasm)
|
|
242
|
-
(≥ 0.
|
|
243
|
-
`oracleSpend`), assets (`mintNft`, `bulkMint`, `createDid`, `issueCat`), CHIP-0007 metadata
|
|
242
|
+
(≥ 0.13.0): store coins (`mintStore`, `meltStore`, `updateStoreMetadata`, `updateStoreOwnership`,
|
|
243
|
+
`oracleSpend`), assets (`mintNft`, `bulkMint`, `bulkMintFunded`, `createDid`, `issueCat`), CHIP-0007 metadata
|
|
244
244
|
(`buildChip0007Metadata`, `validateChip0007`, `generateItemMetadata`), offers (`encodeOffer`,
|
|
245
245
|
`decodeOffer`), monetization (`buildPayment`, `buildCatPayment`, `paymentNonce`,
|
|
246
246
|
`verifyPaymentReceipt`, `proveNftOwnership`, `proveCollectionMembership` — these back the
|
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(
|
|
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.
|
|
1151
|
+
var SDK_VERSION = "0.4.1" ;
|
|
1151
1152
|
var MODULES = Object.freeze([
|
|
1152
1153
|
{
|
|
1153
1154
|
name: "ChiaProvider",
|