@opendatalabs/vana-sdk 3.0.1-pr.147.a4abdb1 → 3.0.1-pr.147.f9fcf43
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/account/personal-server-lite-owner-binding.js +1 -1
- package/dist/account/personal-server-registration.js +1 -1
- package/dist/auth/errors.js +1 -1
- package/dist/auth/web3-signed-builder.js +1 -1
- package/dist/auth/web3-signed.js +3 -3
- package/dist/browser.js +1 -1
- package/dist/chains/definitions.js +1 -1
- package/dist/chains/index.js +1 -1
- package/dist/chains.browser.js +1 -1
- package/dist/chains.js +1 -1
- package/dist/chains.node.js +1 -1
- package/dist/contracts/contractController.js +4 -4
- package/dist/core/client.js +1 -1
- package/dist/crypto/ecies/base.js +3 -3
- package/dist/crypto/ecies/browser.js +1 -1
- package/dist/crypto/ecies/index.js +1 -1
- package/dist/crypto/ecies/interface.js +1 -1
- package/dist/crypto/ecies/node.js +1 -1
- package/dist/crypto/services/WalletKeyEncryptionService.js +1 -1
- package/dist/generated/abi/index.js +26 -26
- package/dist/node.js +1 -1
- package/dist/platform/browser-only.js +1 -1
- package/dist/platform/browser-safe.js +1 -1
- package/dist/platform/browser.js +6 -6
- package/dist/platform/index.js +4 -4
- package/dist/platform/node.js +8 -8
- package/dist/platform/utils.js +2 -2
- package/dist/platform.browser.js +3 -3
- package/dist/platform.js +4 -4
- package/dist/platform.node.js +4 -4
- package/dist/protocol/grants.js +1 -1
- package/dist/protocol/personal-server-registration.js +1 -1
- package/dist/storage/default.js +1 -1
- package/dist/storage/index.js +10 -10
- package/dist/storage/manager.js +1 -1
- package/dist/storage/providers/callback-storage.js +1 -1
- package/dist/storage/providers/dropbox.js +1 -1
- package/dist/storage/providers/google-drive.js +1 -1
- package/dist/storage/providers/ipfs.js +2 -2
- package/dist/storage/providers/pinata.js +1 -1
- package/dist/storage/providers/r2.js +1 -1
- package/dist/storage/providers/vana-storage.js +2 -2
- package/dist/types/index.js +2 -2
- package/dist/types.js +1 -1
- package/package.json +4 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildPersonalServerLiteOwnerBindingMessage,
|
|
3
3
|
PERSONAL_SERVER_LITE_OWNER_BINDING_PURPOSE
|
|
4
|
-
} from "../protocol/personal-server-lite-owner-binding";
|
|
4
|
+
} from "../protocol/personal-server-lite-owner-binding.js";
|
|
5
5
|
class AccountPersonalServerLiteOwnerBindingError extends Error {
|
|
6
6
|
code;
|
|
7
7
|
details;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isAddress } from "viem";
|
|
2
2
|
import {
|
|
3
3
|
buildPersonalServerRegistrationTypedData
|
|
4
|
-
} from "../protocol/personal-server-registration";
|
|
4
|
+
} from "../protocol/personal-server-registration.js";
|
|
5
5
|
const ACCOUNT_PERSONAL_SERVER_REGISTRATION_INTENT = "personal_server.server_registration.v1";
|
|
6
6
|
class AccountPersonalServerRegistrationError extends Error {
|
|
7
7
|
status;
|
package/dist/auth/errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { sha256 } from "@noble/hashes/sha2";
|
|
2
2
|
import { bytesToHex } from "viem";
|
|
3
|
-
import { toBase64 } from "../utils/encoding";
|
|
3
|
+
import { toBase64 } from "../utils/encoding.js";
|
|
4
4
|
const EMPTY_BODY_HASH = "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
|
|
5
5
|
const DEFAULT_TTL_SECONDS = 300;
|
|
6
6
|
function base64urlEncode(input) {
|
package/dist/auth/web3-signed.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { recoverMessageAddress } from "viem";
|
|
2
|
-
import { fromBase64 } from "../utils/encoding";
|
|
2
|
+
import { fromBase64 } from "../utils/encoding.js";
|
|
3
3
|
import {
|
|
4
4
|
MissingAuthError,
|
|
5
5
|
InvalidSignatureError,
|
|
6
6
|
ExpiredTokenError
|
|
7
|
-
} from "./errors";
|
|
8
|
-
import { computeBodyHash } from "./web3-signed-builder";
|
|
7
|
+
} from "./errors.js";
|
|
8
|
+
import { computeBodyHash } from "./web3-signed-builder.js";
|
|
9
9
|
const WEB3_SIGNED_PREFIX = "Web3Signed ";
|
|
10
10
|
const CLOCK_SKEW_SECONDS = 60;
|
|
11
11
|
function base64urlDecode(input) {
|
package/dist/browser.js
CHANGED
package/dist/chains/index.js
CHANGED
package/dist/chains.browser.js
CHANGED
package/dist/chains.js
CHANGED
package/dist/chains.node.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getContract
|
|
3
3
|
} from "viem";
|
|
4
|
-
import { getAbi } from "../generated/abi";
|
|
5
|
-
import { getContractAddress, CONTRACT_ADDRESSES } from "../generated/addresses";
|
|
6
|
-
import { createClient } from "../core/client";
|
|
7
|
-
import { vanaMainnet } from "../config/chains";
|
|
4
|
+
import { getAbi } from "../generated/abi/index.js";
|
|
5
|
+
import { getContractAddress, CONTRACT_ADDRESSES } from "../generated/addresses.js";
|
|
6
|
+
import { createClient } from "../core/client.js";
|
|
7
|
+
import { vanaMainnet } from "../config/chains.js";
|
|
8
8
|
const contractCache = /* @__PURE__ */ new Map();
|
|
9
9
|
const contractCacheForTesting = contractCache;
|
|
10
10
|
function createCacheKey(contract, chainId) {
|
package/dist/core/client.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
http,
|
|
4
4
|
createWalletClient as viemCreateWalletClient
|
|
5
5
|
} from "viem";
|
|
6
|
-
import { chains, mokshaTestnet } from "../config/chains";
|
|
6
|
+
import { chains, mokshaTestnet } from "../config/chains.js";
|
|
7
7
|
const defaultFromBlocks = {
|
|
8
8
|
14800: 732312n,
|
|
9
9
|
// Moksha Testnet - earliest contract deployment
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ECIESError, isECIESEncrypted } from "./interface";
|
|
2
|
-
import { CURVE, CIPHER, KDF } from "./constants";
|
|
3
|
-
import { constantTimeEqual } from "./utils";
|
|
1
|
+
import { ECIESError, isECIESEncrypted } from "./interface.js";
|
|
2
|
+
import { CURVE, CIPHER, KDF } from "./constants.js";
|
|
3
|
+
import { constantTimeEqual } from "./utils.js";
|
|
4
4
|
import { concat } from "viem";
|
|
5
5
|
class BaseECIESUint8 {
|
|
6
6
|
// Cache for validated public keys to avoid repeated validation
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as secp256k1 from "@noble/secp256k1";
|
|
2
|
-
import { BaseECIESUint8 } from "./base";
|
|
2
|
+
import { BaseECIESUint8 } from "./base.js";
|
|
3
3
|
import { toHex } from "viem";
|
|
4
4
|
import { hmac } from "@noble/hashes/hmac";
|
|
5
5
|
import { sha256, sha512 as nobleSha512 } from "@noble/hashes/sha2";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
createDecipheriv
|
|
7
7
|
} from "crypto";
|
|
8
8
|
import secp256k1Import from "secp256k1";
|
|
9
|
-
import { BaseECIESUint8 } from "./base";
|
|
9
|
+
import { BaseECIESUint8 } from "./base.js";
|
|
10
10
|
import { toHex } from "viem";
|
|
11
11
|
const secp256k1 = secp256k1Import;
|
|
12
12
|
class NodeECIESUint8Provider extends BaseECIESUint8 {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
processWalletPublicKey,
|
|
3
3
|
processWalletPrivateKey,
|
|
4
4
|
parseEncryptedDataBuffer
|
|
5
|
-
} from "../../utils/crypto-utils";
|
|
5
|
+
} from "../../utils/crypto-utils.js";
|
|
6
6
|
import { stringToBytes, bytesToString, toHex, fromHex, concat } from "viem";
|
|
7
7
|
class WalletKeyEncryptionService {
|
|
8
8
|
eciesProvider;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { ComputeEngineABI } from "./ComputeEngineImplementation";
|
|
2
|
-
import { DataRegistryABI } from "./DataRegistryImplementation";
|
|
3
|
-
import { TeePoolPhalaABI } from "./TeePoolPhalaImplementation";
|
|
4
|
-
import { DataPortabilityPermissionsABI } from "./DataPortabilityPermissionsImplementation";
|
|
5
|
-
import { DataPortabilityServersABI } from "./DataPortabilityServersImplementation";
|
|
6
|
-
import { DataPortabilityGranteesABI } from "./DataPortabilityGranteesImplementation";
|
|
7
|
-
import { DataRefinerRegistryABI } from "./DataRefinerRegistryImplementation";
|
|
8
|
-
import { QueryEngineABI } from "./QueryEngineImplementation";
|
|
9
|
-
import { ComputeInstructionRegistryABI } from "./ComputeInstructionRegistryImplementation";
|
|
10
|
-
import { TeePoolEphemeralStandardABI } from "./TeePoolEphemeralStandardImplementation";
|
|
11
|
-
import { TeePoolPersistentStandardABI } from "./TeePoolPersistentStandardImplementation";
|
|
12
|
-
import { TeePoolPersistentGpuABI } from "./TeePoolPersistentGpuImplementation";
|
|
13
|
-
import { TeePoolDedicatedStandardABI } from "./TeePoolDedicatedStandardImplementation";
|
|
14
|
-
import { TeePoolDedicatedGpuABI } from "./TeePoolDedicatedGpuImplementation";
|
|
15
|
-
import { VanaEpochABI } from "./VanaEpochImplementation";
|
|
16
|
-
import { DLPRegistryABI } from "./DLPRegistryImplementation";
|
|
17
|
-
import { DLPRegistryTreasuryABI } from "./DLPTreasuryImplementation";
|
|
18
|
-
import { VanaTreasuryABI } from "./VanaTreasuryImplementation";
|
|
19
|
-
import { DLPRegistryTreasuryABI as DLPRegistryTreasuryImplementationABI } from "./DLPRegistryTreasuryImplementation";
|
|
20
|
-
import { VanaPoolStakingABI } from "./VanaPoolStakingImplementation";
|
|
21
|
-
import { VanaPoolEntityABI } from "./VanaPoolEntityImplementation";
|
|
22
|
-
import { VanaPoolTreasuryABI } from "./VanaPoolTreasuryImplementation";
|
|
23
|
-
import { DATABI } from "./DATImplementation";
|
|
24
|
-
import { DATFactoryABI } from "./DATFactoryImplementation";
|
|
25
|
-
import { DATPausableABI } from "./DATPausableImplementation";
|
|
26
|
-
import { DATVotesABI } from "./DATVotesImplementation";
|
|
1
|
+
import { ComputeEngineABI } from "./ComputeEngineImplementation.js";
|
|
2
|
+
import { DataRegistryABI } from "./DataRegistryImplementation.js";
|
|
3
|
+
import { TeePoolPhalaABI } from "./TeePoolPhalaImplementation.js";
|
|
4
|
+
import { DataPortabilityPermissionsABI } from "./DataPortabilityPermissionsImplementation.js";
|
|
5
|
+
import { DataPortabilityServersABI } from "./DataPortabilityServersImplementation.js";
|
|
6
|
+
import { DataPortabilityGranteesABI } from "./DataPortabilityGranteesImplementation.js";
|
|
7
|
+
import { DataRefinerRegistryABI } from "./DataRefinerRegistryImplementation.js";
|
|
8
|
+
import { QueryEngineABI } from "./QueryEngineImplementation.js";
|
|
9
|
+
import { ComputeInstructionRegistryABI } from "./ComputeInstructionRegistryImplementation.js";
|
|
10
|
+
import { TeePoolEphemeralStandardABI } from "./TeePoolEphemeralStandardImplementation.js";
|
|
11
|
+
import { TeePoolPersistentStandardABI } from "./TeePoolPersistentStandardImplementation.js";
|
|
12
|
+
import { TeePoolPersistentGpuABI } from "./TeePoolPersistentGpuImplementation.js";
|
|
13
|
+
import { TeePoolDedicatedStandardABI } from "./TeePoolDedicatedStandardImplementation.js";
|
|
14
|
+
import { TeePoolDedicatedGpuABI } from "./TeePoolDedicatedGpuImplementation.js";
|
|
15
|
+
import { VanaEpochABI } from "./VanaEpochImplementation.js";
|
|
16
|
+
import { DLPRegistryABI } from "./DLPRegistryImplementation.js";
|
|
17
|
+
import { DLPRegistryTreasuryABI } from "./DLPTreasuryImplementation.js";
|
|
18
|
+
import { VanaTreasuryABI } from "./VanaTreasuryImplementation.js";
|
|
19
|
+
import { DLPRegistryTreasuryABI as DLPRegistryTreasuryImplementationABI } from "./DLPRegistryTreasuryImplementation.js";
|
|
20
|
+
import { VanaPoolStakingABI } from "./VanaPoolStakingImplementation.js";
|
|
21
|
+
import { VanaPoolEntityABI } from "./VanaPoolEntityImplementation.js";
|
|
22
|
+
import { VanaPoolTreasuryABI } from "./VanaPoolTreasuryImplementation.js";
|
|
23
|
+
import { DATABI } from "./DATImplementation.js";
|
|
24
|
+
import { DATFactoryABI } from "./DATFactoryImplementation.js";
|
|
25
|
+
import { DATPausableABI } from "./DATPausableImplementation.js";
|
|
26
|
+
import { DATVotesABI } from "./DATVotesImplementation.js";
|
|
27
27
|
const contractAbis = {
|
|
28
28
|
DataPortabilityPermissions: DataPortabilityPermissionsABI,
|
|
29
29
|
DataPortabilityServers: DataPortabilityServersABI,
|
package/dist/node.js
CHANGED
package/dist/platform/browser.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { getPGPKeyGenParams } from "./shared/pgp-utils";
|
|
2
|
-
import { wrapCryptoError } from "./shared/error-utils";
|
|
3
|
-
import { lazyImport } from "../utils/lazy-import";
|
|
4
|
-
import { WalletKeyEncryptionService } from "../crypto/services/WalletKeyEncryptionService";
|
|
5
|
-
import { parseEncryptedDataBuffer } from "../utils/crypto-utils";
|
|
1
|
+
import { getPGPKeyGenParams } from "./shared/pgp-utils.js";
|
|
2
|
+
import { wrapCryptoError } from "./shared/error-utils.js";
|
|
3
|
+
import { lazyImport } from "../utils/lazy-import.js";
|
|
4
|
+
import { WalletKeyEncryptionService } from "../crypto/services/WalletKeyEncryptionService.js";
|
|
5
|
+
import { parseEncryptedDataBuffer } from "../utils/crypto-utils.js";
|
|
6
6
|
import { toHex, fromHex, stringToBytes, bytesToString, concat } from "viem";
|
|
7
7
|
import * as secp256k1 from "@noble/secp256k1";
|
|
8
|
-
import { BrowserECIESUint8Provider } from "../crypto/ecies/browser";
|
|
8
|
+
import { BrowserECIESUint8Provider } from "../crypto/ecies/browser.js";
|
|
9
9
|
const getOpenPGP = lazyImport(() => import("openpgp"));
|
|
10
10
|
class BrowserCryptoAdapter {
|
|
11
11
|
eciesProvider = new BrowserECIESUint8Provider();
|
package/dist/platform/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { NodePlatformAdapter } from "./node";
|
|
2
|
-
import { BrowserPlatformAdapter } from "./browser";
|
|
1
|
+
import { NodePlatformAdapter } from "./node.js";
|
|
2
|
+
import { BrowserPlatformAdapter } from "./browser.js";
|
|
3
3
|
import {
|
|
4
4
|
detectPlatform,
|
|
5
5
|
createPlatformAdapter,
|
|
6
6
|
createPlatformAdapterFor,
|
|
7
7
|
isPlatformSupported,
|
|
8
8
|
getPlatformCapabilities
|
|
9
|
-
} from "./utils";
|
|
9
|
+
} from "./utils.js";
|
|
10
10
|
import {
|
|
11
11
|
createNodePlatformAdapter,
|
|
12
12
|
createBrowserPlatformAdapter,
|
|
13
13
|
createPlatformAdapterSafe
|
|
14
|
-
} from "./browser-safe";
|
|
14
|
+
} from "./browser-safe.js";
|
|
15
15
|
export {
|
|
16
16
|
BrowserPlatformAdapter,
|
|
17
17
|
NodePlatformAdapter,
|
package/dist/platform/node.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { getPGPKeyGenParams } from "./shared/pgp-utils";
|
|
2
|
-
import { wrapCryptoError } from "./shared/error-utils";
|
|
3
|
-
import { streamToUint8Array } from "./shared/stream-utils";
|
|
4
|
-
import { lazyImport } from "../utils/lazy-import";
|
|
5
|
-
import { WalletKeyEncryptionService } from "../crypto/services/WalletKeyEncryptionService";
|
|
1
|
+
import { getPGPKeyGenParams } from "./shared/pgp-utils.js";
|
|
2
|
+
import { wrapCryptoError } from "./shared/error-utils.js";
|
|
3
|
+
import { streamToUint8Array } from "./shared/stream-utils.js";
|
|
4
|
+
import { lazyImport } from "../utils/lazy-import.js";
|
|
5
|
+
import { WalletKeyEncryptionService } from "../crypto/services/WalletKeyEncryptionService.js";
|
|
6
6
|
import {
|
|
7
7
|
processWalletPrivateKey,
|
|
8
8
|
parseEncryptedDataBuffer,
|
|
9
9
|
processWalletPublicKey
|
|
10
|
-
} from "../utils/crypto-utils";
|
|
10
|
+
} from "../utils/crypto-utils.js";
|
|
11
11
|
const getOpenPGP = lazyImport(() => import("openpgp"));
|
|
12
|
-
import { NodeECIESUint8Provider } from "../crypto/ecies/node";
|
|
13
|
-
import { ECIESError } from "../crypto/ecies/interface";
|
|
12
|
+
import { NodeECIESUint8Provider } from "../crypto/ecies/node.js";
|
|
13
|
+
import { ECIESError } from "../crypto/ecies/interface.js";
|
|
14
14
|
import { randomBytes } from "crypto";
|
|
15
15
|
import secp256k1Import from "secp256k1";
|
|
16
16
|
class NodeCryptoAdapter {
|
package/dist/platform/utils.js
CHANGED
|
@@ -20,7 +20,7 @@ async function createPlatformAdapter() {
|
|
|
20
20
|
const { NodePlatformAdapter } = await import(moduleName);
|
|
21
21
|
return new NodePlatformAdapter();
|
|
22
22
|
} else {
|
|
23
|
-
const { BrowserPlatformAdapter } = await import("./browser");
|
|
23
|
+
const { BrowserPlatformAdapter } = await import("./browser.js");
|
|
24
24
|
return new BrowserPlatformAdapter();
|
|
25
25
|
}
|
|
26
26
|
} catch (error) {
|
|
@@ -41,7 +41,7 @@ async function createPlatformAdapterFor(platformType) {
|
|
|
41
41
|
const { NodePlatformAdapter } = await import(moduleName);
|
|
42
42
|
return new NodePlatformAdapter();
|
|
43
43
|
} else {
|
|
44
|
-
const { BrowserPlatformAdapter } = await import("./browser");
|
|
44
|
+
const { BrowserPlatformAdapter } = await import("./browser.js");
|
|
45
45
|
return new BrowserPlatformAdapter();
|
|
46
46
|
}
|
|
47
47
|
} catch (error) {
|
package/dist/platform.browser.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { BrowserPlatformAdapter } from "./platform/browser";
|
|
1
|
+
import { BrowserPlatformAdapter } from "./platform/browser.js";
|
|
2
2
|
import {
|
|
3
3
|
createBrowserPlatformAdapter,
|
|
4
4
|
createPlatformAdapterSafe
|
|
5
|
-
} from "./platform/browser-only";
|
|
5
|
+
} from "./platform/browser-only.js";
|
|
6
6
|
import {
|
|
7
7
|
detectPlatform,
|
|
8
8
|
isPlatformSupported,
|
|
9
9
|
getPlatformCapabilities
|
|
10
|
-
} from "./platform/utils";
|
|
10
|
+
} from "./platform/utils.js";
|
|
11
11
|
export {
|
|
12
12
|
BrowserPlatformAdapter,
|
|
13
13
|
createBrowserPlatformAdapter,
|
package/dist/platform.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { BrowserPlatformAdapter } from "./platform/browser";
|
|
2
|
-
import { NodePlatformAdapter } from "./platform/node";
|
|
1
|
+
import { BrowserPlatformAdapter } from "./platform/browser.js";
|
|
2
|
+
import { NodePlatformAdapter } from "./platform/node.js";
|
|
3
3
|
import {
|
|
4
4
|
detectPlatform,
|
|
5
5
|
createPlatformAdapter,
|
|
6
6
|
createPlatformAdapterFor,
|
|
7
7
|
isPlatformSupported,
|
|
8
8
|
getPlatformCapabilities
|
|
9
|
-
} from "./platform/utils";
|
|
9
|
+
} from "./platform/utils.js";
|
|
10
10
|
import {
|
|
11
11
|
createNodePlatformAdapter,
|
|
12
12
|
createBrowserPlatformAdapter,
|
|
13
13
|
createPlatformAdapterSafe
|
|
14
|
-
} from "./platform/browser-safe";
|
|
14
|
+
} from "./platform/browser-safe.js";
|
|
15
15
|
export {
|
|
16
16
|
BrowserPlatformAdapter,
|
|
17
17
|
NodePlatformAdapter,
|
package/dist/platform.node.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { BrowserPlatformAdapter } from "./platform/browser";
|
|
2
|
-
import { NodePlatformAdapter } from "./platform/node";
|
|
1
|
+
import { BrowserPlatformAdapter } from "./platform/browser.js";
|
|
2
|
+
import { NodePlatformAdapter } from "./platform/node.js";
|
|
3
3
|
import {
|
|
4
4
|
detectPlatform,
|
|
5
5
|
createPlatformAdapter,
|
|
6
6
|
createPlatformAdapterFor,
|
|
7
7
|
isPlatformSupported,
|
|
8
8
|
getPlatformCapabilities
|
|
9
|
-
} from "./platform/utils";
|
|
9
|
+
} from "./platform/utils.js";
|
|
10
10
|
import {
|
|
11
11
|
createNodePlatformAdapter,
|
|
12
12
|
createBrowserPlatformAdapter,
|
|
13
13
|
createPlatformAdapterSafe
|
|
14
|
-
} from "./platform/browser-safe";
|
|
14
|
+
} from "./platform/browser-safe.js";
|
|
15
15
|
export {
|
|
16
16
|
BrowserPlatformAdapter,
|
|
17
17
|
NodePlatformAdapter,
|
package/dist/protocol/grants.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
SERVER_REGISTRATION_TYPES,
|
|
6
6
|
serverRegistrationDomain
|
|
7
|
-
} from "./eip712";
|
|
7
|
+
} from "./eip712.js";
|
|
8
8
|
const PERSONAL_SERVER_REGISTRATION_DEFAULT_CHAIN_ID = 1480;
|
|
9
9
|
const PERSONAL_SERVER_REGISTRATION_DEFAULT_VERIFYING_CONTRACT = "0x1483B1F634DBA75AeaE60da7f01A679aabd5ee2c";
|
|
10
10
|
function assertAddress(value, name) {
|
package/dist/storage/default.js
CHANGED
package/dist/storage/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { StorageError } from "../types/storage";
|
|
2
|
-
import { createVanaStorageProvider } from "./default";
|
|
3
|
-
import { R2Storage } from "./providers/r2";
|
|
4
|
-
import { VanaStorage } from "./providers/vana-storage";
|
|
5
|
-
import { GoogleDriveStorage } from "./providers/google-drive";
|
|
6
|
-
import { DropboxStorage } from "./providers/dropbox";
|
|
7
|
-
import { IpfsStorage } from "./providers/ipfs";
|
|
8
|
-
import { PinataStorage } from "./providers/pinata";
|
|
9
|
-
import { CallbackStorage } from "./providers/callback-storage";
|
|
10
|
-
import { StorageManager } from "./manager";
|
|
1
|
+
import { StorageError } from "../types/storage.js";
|
|
2
|
+
import { createVanaStorageProvider } from "./default.js";
|
|
3
|
+
import { R2Storage } from "./providers/r2.js";
|
|
4
|
+
import { VanaStorage } from "./providers/vana-storage.js";
|
|
5
|
+
import { GoogleDriveStorage } from "./providers/google-drive.js";
|
|
6
|
+
import { DropboxStorage } from "./providers/dropbox.js";
|
|
7
|
+
import { IpfsStorage } from "./providers/ipfs.js";
|
|
8
|
+
import { PinataStorage } from "./providers/pinata.js";
|
|
9
|
+
import { CallbackStorage } from "./providers/callback-storage.js";
|
|
10
|
+
import { StorageManager } from "./manager.js";
|
|
11
11
|
export {
|
|
12
12
|
CallbackStorage,
|
|
13
13
|
DropboxStorage,
|
package/dist/storage/manager.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorageError
|
|
3
|
-
} from "../index";
|
|
3
|
+
} from "../index.js";
|
|
4
4
|
import {
|
|
5
5
|
buildWeb3SignedHeader
|
|
6
|
-
} from "../../auth/web3-signed-builder";
|
|
6
|
+
} from "../../auth/web3-signed-builder.js";
|
|
7
7
|
const DEFAULT_ENDPOINT = "https://storage.vana.org";
|
|
8
8
|
const BLOB_PATH_PREFIX = "/v1/blobs";
|
|
9
9
|
const DEFAULT_TOKEN_TTL_SECONDS = 300;
|
package/dist/types/index.js
CHANGED
package/dist/types.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./types/index";
|
|
1
|
+
export * from "./types/index.js";
|
|
2
2
|
//# sourceMappingURL=types.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendatalabs/vana-sdk",
|
|
3
|
-
"version": "3.0.1-pr.147.
|
|
3
|
+
"version": "3.0.1-pr.147.f9fcf43",
|
|
4
4
|
"description": "A TypeScript library for interacting with Vana Network smart contracts.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -87,11 +87,13 @@
|
|
|
87
87
|
"build:node": "tsup --config tsup.config.ts",
|
|
88
88
|
"build:browser": "tsup --config tsup-browser.config.ts",
|
|
89
89
|
"build:entries": "tsx scripts/bundle-entry-points.ts",
|
|
90
|
-
"build": "
|
|
90
|
+
"build:fix-esm": "tsx scripts/fix-esm-import-extensions.ts",
|
|
91
|
+
"build": "npm run clean && npm run build:types && npm run build:node && npm run build:browser && npm run build:entries && npm run build:fix-esm",
|
|
91
92
|
"dev": "npm run build -- --watch",
|
|
92
93
|
"lint": "eslint .",
|
|
93
94
|
"lint:fix": "eslint . --fix",
|
|
94
95
|
"typecheck": "tsc -p tsconfig.json",
|
|
96
|
+
"validate:package-imports": "npm run build && tsx scripts/validate-package-imports.ts",
|
|
95
97
|
"validate:types": "rimraf test-dist && tsc -p tsconfig.build.json --outDir test-dist && test -f test-dist/index.node.d.ts && test -f test-dist/index.browser.d.ts && echo '✅ Type declarations can be generated' && rimraf test-dist || (echo '❌ Failed to generate type declarations' && rimraf test-dist && exit 1)",
|
|
96
98
|
"test": "vitest",
|
|
97
99
|
"test:verbose": "vitest --reporter=verbose",
|