@unicitylabs/sphere-sdk 0.3.7 → 0.3.8
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/core/index.cjs +97 -2589
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +11 -222
- package/dist/core/index.d.ts +11 -222
- package/dist/core/index.js +93 -2585
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/index.cjs +233 -195
- package/dist/impl/browser/index.cjs.map +1 -1
- package/dist/impl/browser/index.js +234 -198
- package/dist/impl/browser/index.js.map +1 -1
- package/dist/impl/browser/ipfs.cjs +6 -1
- package/dist/impl/browser/ipfs.cjs.map +1 -1
- package/dist/impl/browser/ipfs.js +6 -1
- package/dist/impl/browser/ipfs.js.map +1 -1
- package/dist/impl/nodejs/index.cjs +205 -142
- package/dist/impl/nodejs/index.cjs.map +1 -1
- package/dist/impl/nodejs/index.d.cts +2 -70
- package/dist/impl/nodejs/index.d.ts +2 -70
- package/dist/impl/nodejs/index.js +206 -145
- package/dist/impl/nodejs/index.js.map +1 -1
- package/dist/index.cjs +239 -2600
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -226
- package/dist/index.d.ts +60 -226
- package/dist/index.js +235 -2593
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -560,6 +560,7 @@ async function loadIpnsModule() {
|
|
|
560
560
|
async function createSignedRecord(keyPair, cid, sequenceNumber, lifetimeMs = DEFAULT_LIFETIME_MS) {
|
|
561
561
|
const { createIPNSRecord, marshalIPNSRecord } = await loadIpnsModule();
|
|
562
562
|
const record = await createIPNSRecord(
|
|
563
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
563
564
|
keyPair,
|
|
564
565
|
`/ipfs/${cid}`,
|
|
565
566
|
sequenceNumber,
|
|
@@ -1670,7 +1671,11 @@ var STORAGE_KEYS_GLOBAL = {
|
|
|
1670
1671
|
/** Cached token registry JSON (fetched from remote) */
|
|
1671
1672
|
TOKEN_REGISTRY_CACHE: "token_registry_cache",
|
|
1672
1673
|
/** Timestamp of last token registry cache update (ms since epoch) */
|
|
1673
|
-
TOKEN_REGISTRY_CACHE_TS: "token_registry_cache_ts"
|
|
1674
|
+
TOKEN_REGISTRY_CACHE_TS: "token_registry_cache_ts",
|
|
1675
|
+
/** Cached price data JSON (from CoinGecko or other provider) */
|
|
1676
|
+
PRICE_CACHE: "price_cache",
|
|
1677
|
+
/** Timestamp of last price cache update (ms since epoch) */
|
|
1678
|
+
PRICE_CACHE_TS: "price_cache_ts"
|
|
1674
1679
|
};
|
|
1675
1680
|
var STORAGE_KEYS_ADDRESS = {
|
|
1676
1681
|
/** Pending transfers for this address */
|