@dynamic-labs-sdk/aleo 0.0.0 → 0.27.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 +21 -0
- package/dist/AleoNetworkProvider.types.d.ts +8 -0
- package/dist/AleoNetworkProvider.types.d.ts.map +1 -0
- package/dist/AleoWalletAccount.types.d.ts +8 -0
- package/dist/AleoWalletAccount.types.d.ts.map +1 -0
- package/dist/AleoWalletProvider.types.d.ts +80 -0
- package/dist/AleoWalletProvider.types.d.ts.map +1 -0
- package/dist/errors/AleoFeatureUnsupportedError/AleoFeatureUnsupportedError.d.ts +16 -0
- package/dist/errors/AleoFeatureUnsupportedError/AleoFeatureUnsupportedError.d.ts.map +1 -0
- package/dist/errors/AleoFeatureUnsupportedError/index.d.ts +2 -0
- package/dist/errors/AleoFeatureUnsupportedError/index.d.ts.map +1 -0
- package/dist/errors/InvalidAleoTransactionIdError/InvalidAleoTransactionIdError.d.ts +13 -0
- package/dist/errors/InvalidAleoTransactionIdError/InvalidAleoTransactionIdError.d.ts.map +1 -0
- package/dist/errors/InvalidAleoTransactionIdError/index.d.ts +2 -0
- package/dist/errors/InvalidAleoTransactionIdError/index.d.ts.map +1 -0
- package/dist/errors/NotAleoProviderError/NotAleoProviderError.d.ts +15 -0
- package/dist/errors/NotAleoProviderError/NotAleoProviderError.d.ts.map +1 -0
- package/dist/errors/NotAleoProviderError/index.d.ts +2 -0
- package/dist/errors/NotAleoProviderError/index.d.ts.map +1 -0
- package/dist/exports/index.d.ts +13 -0
- package/dist/exports/index.d.ts.map +1 -0
- package/dist/index.cjs +211 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.esm.js +200 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/isAleoNetworkProvider/index.d.ts +2 -0
- package/dist/isAleoNetworkProvider/index.d.ts.map +1 -0
- package/dist/isAleoNetworkProvider/isAleoNetworkProvider.d.ts +11 -0
- package/dist/isAleoNetworkProvider/isAleoNetworkProvider.d.ts.map +1 -0
- package/dist/isAleoWalletAccount/index.d.ts +2 -0
- package/dist/isAleoWalletAccount/index.d.ts.map +1 -0
- package/dist/isAleoWalletAccount/isAleoWalletAccount.d.ts +11 -0
- package/dist/isAleoWalletAccount/isAleoWalletAccount.d.ts.map +1 -0
- package/dist/isAleoWalletProvider/index.d.ts +2 -0
- package/dist/isAleoWalletProvider/index.d.ts.map +1 -0
- package/dist/isAleoWalletProvider/isAleoWalletProvider.d.ts +13 -0
- package/dist/isAleoWalletProvider/isAleoWalletProvider.d.ts.map +1 -0
- package/dist/registerAleoNetworkProviderBuilder/index.d.ts +2 -0
- package/dist/registerAleoNetworkProviderBuilder/index.d.ts.map +1 -0
- package/dist/registerAleoNetworkProviderBuilder/registerAleoNetworkProviderBuilder.d.ts +17 -0
- package/dist/registerAleoNetworkProviderBuilder/registerAleoNetworkProviderBuilder.d.ts.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -0
- package/dist/utils/constants.d.ts +8 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/createAleoNetworkProvider/createAleoNetworkProvider.d.ts +15 -0
- package/dist/utils/createAleoNetworkProvider/createAleoNetworkProvider.d.ts.map +1 -0
- package/dist/utils/createAleoNetworkProvider/index.d.ts +2 -0
- package/dist/utils/createAleoNetworkProvider/index.d.ts.map +1 -0
- package/dist/utils/fetchAleoBalance/fetchAleoBalance.d.ts +22 -0
- package/dist/utils/fetchAleoBalance/fetchAleoBalance.d.ts.map +1 -0
- package/dist/utils/fetchAleoBalance/index.d.ts +2 -0
- package/dist/utils/fetchAleoBalance/index.d.ts.map +1 -0
- package/dist/utils/formatMicrocreditsAsCredits/formatMicrocreditsAsCredits.d.ts +13 -0
- package/dist/utils/formatMicrocreditsAsCredits/formatMicrocreditsAsCredits.d.ts.map +1 -0
- package/dist/utils/formatMicrocreditsAsCredits/index.d.ts +2 -0
- package/dist/utils/formatMicrocreditsAsCredits/index.d.ts.map +1 -0
- package/dist/utils/getAleoExplorerTxUrl/getAleoExplorerTxUrl.d.ts +26 -0
- package/dist/utils/getAleoExplorerTxUrl/getAleoExplorerTxUrl.d.ts.map +1 -0
- package/dist/utils/getAleoExplorerTxUrl/index.d.ts +2 -0
- package/dist/utils/getAleoExplorerTxUrl/index.d.ts.map +1 -0
- package/dist/utils/getNetworkByChainId/getNetworkByChainId.d.ts +22 -0
- package/dist/utils/getNetworkByChainId/getNetworkByChainId.d.ts.map +1 -0
- package/dist/utils/getNetworkByChainId/index.d.ts +2 -0
- package/dist/utils/getNetworkByChainId/index.d.ts.map +1 -0
- package/dist/utils/isAleoMainnet/index.d.ts +2 -0
- package/dist/utils/isAleoMainnet/index.d.ts.map +1 -0
- package/dist/utils/isAleoMainnet/isAleoMainnet.d.ts +12 -0
- package/dist/utils/isAleoMainnet/isAleoMainnet.d.ts.map +1 -0
- package/dist/utils/parseAleoMicrocreditsLiteral/index.d.ts +2 -0
- package/dist/utils/parseAleoMicrocreditsLiteral/index.d.ts.map +1 -0
- package/dist/utils/parseAleoMicrocreditsLiteral/parseAleoMicrocreditsLiteral.d.ts +20 -0
- package/dist/utils/parseAleoMicrocreditsLiteral/parseAleoMicrocreditsLiteral.d.ts.map +1 -0
- package/package.json +40 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Aleo credits are denominated in microcredits — 1 credit = 1,000,000 mc.
|
|
3
|
+
* Mirrors the SUN_PER_TRX / lamports-per-sol pattern in sibling chain packages.
|
|
4
|
+
*/
|
|
5
|
+
export declare const MICROCREDITS_PER_CREDIT = 1000000;
|
|
6
|
+
export declare const ALEO_MAINNET_NETWORK_ID = 0;
|
|
7
|
+
export declare const ALEO_TESTNET_NETWORK_ID = 1;
|
|
8
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,uBAAuB,UAAY,CAAC;AAEjD,eAAO,MAAM,uBAAuB,IAAI,CAAC;AACzC,eAAO,MAAM,uBAAuB,IAAI,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NetworkData } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { AleoNetworkProvider } from '../../AleoNetworkProvider.types';
|
|
3
|
+
/**
|
|
4
|
+
* Build an `AleoNetworkProvider` bound to a specific `NetworkData`
|
|
5
|
+
* (mainnet vs. testnet — anything the SDK config exposes). The provider
|
|
6
|
+
* exposes a `getBalance({ address })` that proxies to
|
|
7
|
+
* `fetchAleoBalance` over the configured RPC, returning public credits
|
|
8
|
+
* only (private records require a connected wallet adapter).
|
|
9
|
+
*
|
|
10
|
+
* Called by `registerAleoNetworkProviderBuilder` — not invoked directly.
|
|
11
|
+
*
|
|
12
|
+
* @not-instrumented
|
|
13
|
+
*/
|
|
14
|
+
export declare const createAleoNetworkProvider: (networkData: NetworkData) => AleoNetworkProvider;
|
|
15
|
+
//# sourceMappingURL=createAleoNetworkProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAleoNetworkProvider.d.ts","sourceRoot":"","sources":["../../../src/utils/createAleoNetworkProvider/createAleoNetworkProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAG3E;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,yBAAyB,gBACvB,WAAW,KACvB,mBAQD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/createAleoNetworkProvider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { NetworkData } from '@dynamic-labs-sdk/client';
|
|
2
|
+
type FetchAleoBalanceParams = {
|
|
3
|
+
address: string;
|
|
4
|
+
networkData: NetworkData;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Fetches the public credits balance for an Aleo address by querying the
|
|
8
|
+
* `account` mapping on `credits.aleo` via the network's HTTP RPC. Returns
|
|
9
|
+
* the balance as a credits string (private records are not visible here —
|
|
10
|
+
* they live on the wallet and require a connected adapter to enumerate).
|
|
11
|
+
*
|
|
12
|
+
* Returns `null` when the address is malformed or no RPC URL is
|
|
13
|
+
* configured; returns `'0'` for any other failure mode (non-OK status,
|
|
14
|
+
* empty body, `null` mapping, unparseable payload). This keeps the
|
|
15
|
+
* function fail-soft for the network-provider machinery, which surfaces
|
|
16
|
+
* the result directly to the UI.
|
|
17
|
+
*
|
|
18
|
+
* @not-instrumented
|
|
19
|
+
*/
|
|
20
|
+
export declare const fetchAleoBalance: ({ address, networkData, }: FetchAleoBalanceParams) => Promise<string | null>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=fetchAleoBalance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAleoBalance.d.ts","sourceRoot":"","sources":["../../../src/utils/fetchAleoBalance/fetchAleoBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAK5D,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AAUF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,8BAG1B,sBAAsB,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CA+BhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/fetchAleoBalance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format microcredits (bigint) as a decimal credits string without
|
|
3
|
+
* losing precision for balances beyond `Number.MAX_SAFE_INTEGER`.
|
|
4
|
+
*
|
|
5
|
+
* The integer credits portion and the microcredits remainder are
|
|
6
|
+
* computed in the bigint domain, then the remainder is zero-padded to
|
|
7
|
+
* six digits and trailing fractional zeros are trimmed. Whole-credit
|
|
8
|
+
* balances render without a redundant `.000000` suffix.
|
|
9
|
+
*
|
|
10
|
+
* @not-instrumented
|
|
11
|
+
*/
|
|
12
|
+
export declare const formatMicrocreditsAsCredits: (microcredits: bigint) => string;
|
|
13
|
+
//# sourceMappingURL=formatMicrocreditsAsCredits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatMicrocreditsAsCredits.d.ts","sourceRoot":"","sources":["../../../src/utils/formatMicrocreditsAsCredits/formatMicrocreditsAsCredits.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,2BAA2B,iBAAkB,MAAM,KAAG,MAQlE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/formatMicrocreditsAsCredits/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type GetAleoExplorerTxUrlParams = {
|
|
2
|
+
/**
|
|
3
|
+
* `0` = mainnet, `1` = testnet. When omitted, defaults to testnet so a
|
|
4
|
+
* stale UI never accidentally links to a mainnet explorer for a testnet
|
|
5
|
+
* transaction.
|
|
6
|
+
*/
|
|
7
|
+
networkId?: number | string;
|
|
8
|
+
/** Aleo transaction id (`at1...`). */
|
|
9
|
+
txId: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Build the Provable explorer URL for an Aleo transaction id.
|
|
13
|
+
*
|
|
14
|
+
* Examples:
|
|
15
|
+
* getAleoExplorerTxUrl({ txId: 'at1abc...', networkId: 0 })
|
|
16
|
+
* → 'https://explorer.provable.com/transaction/at1abc...'
|
|
17
|
+
* getAleoExplorerTxUrl({ txId: 'at1abc...', networkId: 1 })
|
|
18
|
+
* → 'https://testnet.explorer.provable.com/transaction/at1abc...'
|
|
19
|
+
*
|
|
20
|
+
* @throws InvalidAleoTransactionIdError when `txId` is not a well-formed
|
|
21
|
+
* bech32 Aleo transaction id.
|
|
22
|
+
* @not-instrumented
|
|
23
|
+
*/
|
|
24
|
+
export declare const getAleoExplorerTxUrl: ({ txId, networkId, }: GetAleoExplorerTxUrlParams) => string;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=getAleoExplorerTxUrl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAleoExplorerTxUrl.d.ts","sourceRoot":"","sources":["../../../src/utils/getAleoExplorerTxUrl/getAleoExplorerTxUrl.ts"],"names":[],"mappings":"AAYA,KAAK,0BAA0B,GAAG;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB,yBAG9B,0BAA0B,KAAG,MAM/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/getAleoExplorerTxUrl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Network } from '@provablehq/aleo-types';
|
|
2
|
+
/**
|
|
3
|
+
* Map from `@provablehq/aleo-types` Network enum to the numeric chain id used
|
|
4
|
+
* everywhere else in the SDK (`0` = mainnet, `1` = testnet).
|
|
5
|
+
*/
|
|
6
|
+
export declare const ALEO_NETWORK_TO_ID_MAP: Partial<Record<Network, number>>;
|
|
7
|
+
type GetNetworkByChainIdParams = {
|
|
8
|
+
chainId: number;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Resolve the `@provablehq/aleo-types` Network enum value for a numeric
|
|
12
|
+
* chain id, the bridge between the SDK's chain ids and the on-chain
|
|
13
|
+
* network identifier the Aleo libraries expect.
|
|
14
|
+
*
|
|
15
|
+
* @param params.chainId The numeric chain id (`0` = mainnet, `1` = testnet).
|
|
16
|
+
* @returns The matching `Network` enum value, or `undefined` when the id is
|
|
17
|
+
* not a known Aleo network.
|
|
18
|
+
* @not-instrumented
|
|
19
|
+
*/
|
|
20
|
+
export declare const getNetworkByChainId: ({ chainId, }: GetNetworkByChainIdParams) => Network | undefined;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=getNetworkByChainId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNetworkByChainId.d.ts","sourceRoot":"","sources":["../../../src/utils/getNetworkByChainId/getNetworkByChainId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAOjD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAGnE,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,iBAE7B,yBAAyB,KAAG,OAAO,GAAG,SAKxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/getNetworkByChainId/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/isAleoMainnet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a numeric/string chain id points at the Aleo mainnet (`0`)
|
|
3
|
+
* rather than a testnet. Both numeric and string ids are accepted so
|
|
4
|
+
* callers can pass `walletAccount.activeNetworkId` (which is stringly-
|
|
5
|
+
* typed) directly. `undefined` and `null` resolve to `false` so a
|
|
6
|
+
* stale or unknown id falls back to testnet behaviour at the call
|
|
7
|
+
* site.
|
|
8
|
+
*
|
|
9
|
+
* @not-instrumented
|
|
10
|
+
*/
|
|
11
|
+
export declare const isAleoMainnet: (networkId: number | string | undefined | null) => boolean;
|
|
12
|
+
//# sourceMappingURL=isAleoMainnet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isAleoMainnet.d.ts","sourceRoot":"","sources":["../../../src/utils/isAleoMainnet/isAleoMainnet.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH,eAAO,MAAM,aAAa,cACb,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,KAC5C,OAMF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/parseAleoMicrocreditsLiteral/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse an Aleo VM mapping plaintext literal into microcredits.
|
|
3
|
+
*
|
|
4
|
+
* Accepts the shapes the Aleo `account` mapping endpoint actually
|
|
5
|
+
* emits — e.g. `1500000u64.private`, `1_500_000u64`, or a bare integer
|
|
6
|
+
* wrapped in JSON quotes. Strips the trailing `u64` / `u64.private`
|
|
7
|
+
* type suffix, surrounding quotes, and the cosmetic `_` group
|
|
8
|
+
* separators Aleo plaintext literals allow.
|
|
9
|
+
*
|
|
10
|
+
* Returns `0n` for empty input and for any payload that doesn't parse
|
|
11
|
+
* as an integer. `BigInt()` throws `SyntaxError` on anything that
|
|
12
|
+
* isn't a parseable integer — a corrupted RPC response, a mid-flight
|
|
13
|
+
* truncation, or an upstream API change could deliver such a payload,
|
|
14
|
+
* and we'd rather show a zero balance than crash the network-provider
|
|
15
|
+
* machinery with an unhandled rejection.
|
|
16
|
+
*
|
|
17
|
+
* @not-instrumented
|
|
18
|
+
*/
|
|
19
|
+
export declare const parseAleoMicrocreditsLiteral: (raw: string) => bigint;
|
|
20
|
+
//# sourceMappingURL=parseAleoMicrocreditsLiteral.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseAleoMicrocreditsLiteral.d.ts","sourceRoot":"","sources":["../../../src/utils/parseAleoMicrocreditsLiteral/parseAleoMicrocreditsLiteral.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;GAiBG;AAEH,eAAO,MAAM,4BAA4B,QAAS,MAAM,KAAG,MAiB1D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1 +1,40 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@dynamic-labs-sdk/aleo",
|
|
3
|
+
"version": "0.27.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
|
+
"module": "./dist/index.esm.js",
|
|
7
|
+
"types": "./dist/exports/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
"./package.json": "./package.json",
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/exports/index.d.ts",
|
|
15
|
+
"import": "./dist/index.esm.js",
|
|
16
|
+
"default": "./dist/index.cjs"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@dynamic-labs/sdk-api-core": "0.0.968",
|
|
21
|
+
"@provablehq/aleo-types": "0.3.0-alpha.3",
|
|
22
|
+
"@provablehq/aleo-wallet-adaptor-core": "0.3.0-alpha.3",
|
|
23
|
+
"@provablehq/aleo-wallet-adaptor-shield": "0.3.0-alpha.3",
|
|
24
|
+
"@provablehq/aleo-wallet-standard": "0.3.0-alpha.3",
|
|
25
|
+
"@dynamic-labs-sdk/assert-package-version": "0.27.1",
|
|
26
|
+
"@dynamic-labs-sdk/client": "0.27.1"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"vitest": "2.1.9"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "rm -rf dist && tsdown && pnpm exec tsc --emitDeclarationOnly -p ./tsconfig.lib.json",
|
|
33
|
+
"lint": "eslint .",
|
|
34
|
+
"lint:fix": "eslint . --fix",
|
|
35
|
+
"test": "vitest run",
|
|
36
|
+
"test:watch": "vitest",
|
|
37
|
+
"test-with-coverage": "vitest run --coverage",
|
|
38
|
+
"check-versions": "pnpm --filter @tools/sync-package-versions run sync --check-only --package-filter aleo"
|
|
39
|
+
}
|
|
40
|
+
}
|