@dynamic-labs-sdk/aleo 1.17.1 → 1.19.0

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.
@@ -11,14 +11,18 @@ type GetAleoExplorerTxUrlParams = {
11
11
  /**
12
12
  * Build the Provable explorer URL for an Aleo transaction id.
13
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...'
14
+ * @example
15
+ * ```ts
16
+ * const url = getAleoExplorerTxUrl({ txId: 'at1abc...', networkId: 0 });
17
+ * // 'https://explorer.provable.com/transaction/at1abc...'
18
+ * ```
19
19
  *
20
- * @throws InvalidAleoTransactionIdError when `txId` is not a well-formed
21
- * bech32 Aleo transaction id.
20
+ * @param params.txId - Aleo transaction id (`at1...`).
21
+ * @param [params.networkId] - `0` = mainnet, `1` = testnet.
22
+ * @returns The Provable explorer URL for the transaction.
23
+ * @throws {InvalidAleoTransactionIdError} When `txId` is not a well-formed bech32 Aleo transaction id.
24
+ * @see getNetworkByChainId
25
+ * @see isAleoWalletAccount
22
26
  * @notInstrumented
23
27
  */
24
28
  export declare const getAleoExplorerTxUrl: ({ txId, networkId, }: GetAleoExplorerTxUrlParams) => string;
@@ -1 +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"}
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;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,oBAAoB,yBAG9B,0BAA0B,KAAG,MAM/B,CAAC"}
@@ -12,9 +12,16 @@ type GetNetworkByChainIdParams = {
12
12
  * chain id, the bridge between the SDK's chain ids and the on-chain
13
13
  * network identifier the Aleo libraries expect.
14
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.
15
+ * @example
16
+ * ```ts
17
+ * const network = getNetworkByChainId({ chainId: 0 });
18
+ * // → Network.MAINNET
19
+ * ```
20
+ *
21
+ * @param params.chainId - The numeric chain id (`0` = mainnet, `1` = testnet).
22
+ * @returns The matching `Network` enum value, or `undefined` when the id is not a known Aleo network.
23
+ * @see getAleoExplorerTxUrl
24
+ * @see isAleoNetworkProvider
18
25
  * @notInstrumented
19
26
  */
20
27
  export declare const getNetworkByChainId: ({ chainId, }: GetNetworkByChainIdParams) => Network | undefined;
@@ -1 +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"}
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;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB,iBAE7B,yBAAyB,KAAG,OAAO,GAAG,SAKxC,CAAC"}
@@ -1,4 +1,4 @@
1
- const require_getNetworkByChainId = require('./getNetworkByChainId-Ba68AHas.cjs');
1
+ const require_getNetworkByChainId = require('./getNetworkByChainId-DsbZv2dw.cjs');
2
2
  let _dynamic_labs_sdk_assert_package_version = require("@dynamic-labs-sdk/assert-package-version");
3
3
  let _dynamic_labs_sdk_client = require("@dynamic-labs-sdk/client");
4
4
  let _provablehq_aleo_types = require("@provablehq/aleo-types");
@@ -1,4 +1,4 @@
1
- import { a as MICROCREDITS_PER_CREDIT, c as version, o as AleoFeatureUnsupportedError, r as ALEO_MAINNET_NETWORK_ID, s as name, t as ALEO_NETWORK_TO_ID_MAP } from "./getNetworkByChainId-DfVnWNr0.esm.js";
1
+ import { a as MICROCREDITS_PER_CREDIT, c as version, o as AleoFeatureUnsupportedError, r as ALEO_MAINNET_NETWORK_ID, s as name, t as ALEO_NETWORK_TO_ID_MAP } from "./getNetworkByChainId-CgfjwS3y.esm.js";
2
2
  import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
3
3
  import { assertWalletAccountSigningAvailability } from "@dynamic-labs-sdk/client";
4
4
  import { Network } from "@provablehq/aleo-types";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs-sdk/aleo",
3
- "version": "1.17.1",
3
+ "version": "1.19.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.esm.js",
@@ -22,13 +22,13 @@
22
22
  }
23
23
  },
24
24
  "dependencies": {
25
- "@dynamic-labs/sdk-api-core": "0.0.1064",
25
+ "@dynamic-labs/sdk-api-core": "0.0.1074",
26
26
  "@provablehq/aleo-types": "0.3.0-alpha.3",
27
27
  "@provablehq/aleo-wallet-adaptor-core": "0.3.0-alpha.3",
28
28
  "@provablehq/aleo-wallet-adaptor-shield": "0.3.0-alpha.3",
29
29
  "@provablehq/aleo-wallet-standard": "0.3.0-alpha.3",
30
- "@dynamic-labs-sdk/assert-package-version": "1.17.1",
31
- "@dynamic-labs-sdk/client": "1.17.1"
30
+ "@dynamic-labs-sdk/assert-package-version": "1.19.0",
31
+ "@dynamic-labs-sdk/client": "1.19.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "vitest": "4.1.6"