@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.
- package/dist/{getNetworkByChainId-DfVnWNr0.esm.js → getNetworkByChainId-CgfjwS3y.esm.js} +12 -5
- package/dist/{getNetworkByChainId-DfVnWNr0.esm.js.map → getNetworkByChainId-CgfjwS3y.esm.js.map} +1 -1
- package/dist/{getNetworkByChainId-Ba68AHas.cjs → getNetworkByChainId-DsbZv2dw.cjs} +12 -5
- package/dist/{getNetworkByChainId-Ba68AHas.cjs.map → getNetworkByChainId-DsbZv2dw.cjs.map} +1 -1
- package/dist/index.cjs +44 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +44 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/isAleoNetworkProvider/isAleoNetworkProvider.d.ts +11 -0
- package/dist/isAleoNetworkProvider/isAleoNetworkProvider.d.ts.map +1 -1
- package/dist/isAleoWalletAccount/isAleoWalletAccount.d.ts +10 -0
- package/dist/isAleoWalletAccount/isAleoWalletAccount.d.ts.map +1 -1
- package/dist/isAleoWalletProvider/isAleoWalletProvider.d.ts +11 -0
- package/dist/isAleoWalletProvider/isAleoWalletProvider.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/utils/getAleoExplorerTxUrl/getAleoExplorerTxUrl.d.ts +11 -7
- package/dist/utils/getAleoExplorerTxUrl/getAleoExplorerTxUrl.d.ts.map +1 -1
- package/dist/utils/getNetworkByChainId/getNetworkByChainId.d.ts +10 -3
- package/dist/utils/getNetworkByChainId/getNetworkByChainId.d.ts.map +1 -1
- package/dist/walletStandard.cjs +1 -1
- package/dist/walletStandard.esm.js +1 -1
- package/package.json +4 -4
|
@@ -11,14 +11,18 @@ type GetAleoExplorerTxUrlParams = {
|
|
|
11
11
|
/**
|
|
12
12
|
* Build the Provable explorer URL for an Aleo transaction id.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const url = getAleoExplorerTxUrl({ txId: 'at1abc...', networkId: 0 });
|
|
17
|
+
* // → 'https://explorer.provable.com/transaction/at1abc...'
|
|
18
|
+
* ```
|
|
19
19
|
*
|
|
20
|
-
* @
|
|
21
|
-
*
|
|
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
|
|
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
|
-
* @
|
|
16
|
-
*
|
|
17
|
-
*
|
|
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
|
|
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"}
|
package/dist/walletStandard.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_getNetworkByChainId = require('./getNetworkByChainId-
|
|
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-
|
|
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.
|
|
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.
|
|
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.
|
|
31
|
-
"@dynamic-labs-sdk/client": "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"
|