@dynamic-labs-sdk/aleo 0.27.3 → 1.1.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.
Files changed (48) hide show
  1. package/dist/exports/walletStandard.d.ts +5 -0
  2. package/dist/exports/walletStandard.d.ts.map +1 -0
  3. package/dist/getNetworkByChainId-BUqTAdJz.cjs +115 -0
  4. package/dist/getNetworkByChainId-BUqTAdJz.cjs.map +1 -0
  5. package/dist/getNetworkByChainId-BaSjULzX.esm.js +68 -0
  6. package/dist/getNetworkByChainId-BaSjULzX.esm.js.map +1 -0
  7. package/dist/index.cjs +10 -73
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.esm.js +1 -64
  10. package/dist/index.esm.js.map +1 -1
  11. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  12. package/dist/utils/bytesToHex/bytesToHex.d.ts +15 -0
  13. package/dist/utils/bytesToHex/bytesToHex.d.ts.map +1 -0
  14. package/dist/utils/bytesToHex/index.d.ts +2 -0
  15. package/dist/utils/bytesToHex/index.d.ts.map +1 -0
  16. package/dist/walletStandard/AleoStandardWallet.types.d.ts +80 -0
  17. package/dist/walletStandard/AleoStandardWallet.types.d.ts.map +1 -0
  18. package/dist/walletStandard/addAleoWalletStandardExtension/addAleoWalletStandardExtension.d.ts +18 -0
  19. package/dist/walletStandard/addAleoWalletStandardExtension/addAleoWalletStandardExtension.d.ts.map +1 -0
  20. package/dist/walletStandard/addAleoWalletStandardExtension/index.d.ts +2 -0
  21. package/dist/walletStandard/addAleoWalletStandardExtension/index.d.ts.map +1 -0
  22. package/dist/walletStandard/aleoStandardWalletWindowKeys.d.ts +14 -0
  23. package/dist/walletStandard/aleoStandardWalletWindowKeys.d.ts.map +1 -0
  24. package/dist/walletStandard/utils/aleoChainForChainId/aleoChainForChainId.d.ts +20 -0
  25. package/dist/walletStandard/utils/aleoChainForChainId/aleoChainForChainId.d.ts.map +1 -0
  26. package/dist/walletStandard/utils/aleoChainForChainId/index.d.ts +2 -0
  27. package/dist/walletStandard/utils/aleoChainForChainId/index.d.ts.map +1 -0
  28. package/dist/walletStandard/utils/chainIdForAleoChain/chainIdForAleoChain.d.ts +21 -0
  29. package/dist/walletStandard/utils/chainIdForAleoChain/chainIdForAleoChain.d.ts.map +1 -0
  30. package/dist/walletStandard/utils/chainIdForAleoChain/index.d.ts +2 -0
  31. package/dist/walletStandard/utils/chainIdForAleoChain/index.d.ts.map +1 -0
  32. package/dist/walletStandard/utils/createWalletProviderFromAleoStandardWallet/createWalletProviderFromAleoStandardWallet.d.ts +17 -0
  33. package/dist/walletStandard/utils/createWalletProviderFromAleoStandardWallet/createWalletProviderFromAleoStandardWallet.d.ts.map +1 -0
  34. package/dist/walletStandard/utils/createWalletProviderFromAleoStandardWallet/index.d.ts +2 -0
  35. package/dist/walletStandard/utils/createWalletProviderFromAleoStandardWallet/index.d.ts.map +1 -0
  36. package/dist/walletStandard/utils/isAleoStandardWallet/index.d.ts +2 -0
  37. package/dist/walletStandard/utils/isAleoStandardWallet/index.d.ts.map +1 -0
  38. package/dist/walletStandard/utils/isAleoStandardWallet/isAleoStandardWallet.d.ts +15 -0
  39. package/dist/walletStandard/utils/isAleoStandardWallet/isAleoStandardWallet.d.ts.map +1 -0
  40. package/dist/walletStandard/utils/normalizeAleoStandardWalletAccount/index.d.ts +2 -0
  41. package/dist/walletStandard/utils/normalizeAleoStandardWalletAccount/index.d.ts.map +1 -0
  42. package/dist/walletStandard/utils/normalizeAleoStandardWalletAccount/normalizeAleoStandardWalletAccount.d.ts +22 -0
  43. package/dist/walletStandard/utils/normalizeAleoStandardWalletAccount/normalizeAleoStandardWalletAccount.d.ts.map +1 -0
  44. package/dist/walletStandard.cjs +412 -0
  45. package/dist/walletStandard.cjs.map +1 -0
  46. package/dist/walletStandard.esm.js +409 -0
  47. package/dist/walletStandard.esm.js.map +1 -0
  48. package/package.json +9 -4
@@ -0,0 +1,15 @@
1
+ type BytesToHexParams = {
2
+ bytes: Uint8Array;
3
+ };
4
+ /**
5
+ * Encode a `Uint8Array` as a lowercase hex string with no separator.
6
+ * Used to render Aleo signature bytes for the `signMessage` provider
7
+ * surface (which yields a hex `signature: string` per the Dynamic
8
+ * `WalletProvider` contract) and any other place we need a stable
9
+ * compact bytes-to-text encoding.
10
+ *
11
+ * @not-instrumented
12
+ */
13
+ export declare const bytesToHex: ({ bytes }: BytesToHexParams) => string;
14
+ export {};
15
+ //# sourceMappingURL=bytesToHex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bytesToHex.d.ts","sourceRoot":"","sources":["../../../src/utils/bytesToHex/bytesToHex.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,cAAe,gBAAgB,KAAG,MACW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { bytesToHex } from './bytesToHex';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/bytesToHex/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,80 @@
1
+ import type { Network } from '@provablehq/aleo-types';
2
+ import type { AleoChain, StandardWallet, WalletDecryptPermission, WalletFeatureName } from '@provablehq/aleo-wallet-standard';
3
+ /**
4
+ * Typed view of the `'standard:connect'` feature on an Aleo Wallet
5
+ * Standard wallet. The wallet exposes `features[...]` as an unindexed
6
+ * record; this shape lets us pass typed args without `any` in the
7
+ * provider factory and the discovery helper.
8
+ */
9
+ export type ConnectFeatureDetails = {
10
+ available: boolean;
11
+ connect: (network: AleoChain, decryptPermission: WalletDecryptPermission, programs?: string[]) => Promise<{
12
+ address: string;
13
+ }>;
14
+ disconnect: () => Promise<void>;
15
+ };
16
+ /** Typed view of the `'standard:accounts'` feature. */
17
+ export type AccountsFeatureDetails = {
18
+ available: boolean;
19
+ getAccounts: () => Promise<{
20
+ address: string;
21
+ }[] | string[]>;
22
+ };
23
+ /** Typed view of the `'aleo:sign'` feature. */
24
+ export type SignFeatureDetails = {
25
+ available: boolean;
26
+ signMessage: (message: Uint8Array) => Promise<Uint8Array>;
27
+ };
28
+ /** Typed view of the `'aleo:execute'` feature. */
29
+ export type ExecuteFeatureDetails = {
30
+ available: boolean;
31
+ executeTransaction: (options: {
32
+ fee?: number;
33
+ function: string;
34
+ inputs: string[];
35
+ privateFee?: boolean;
36
+ program: string;
37
+ }) => Promise<{
38
+ transactionId: string;
39
+ }>;
40
+ };
41
+ /** Typed view of the `'standard:chains'` feature. */
42
+ export type ChainFeatureDetails = {
43
+ available: boolean;
44
+ chains: AleoChain[];
45
+ };
46
+ /** Typed view of the `'standard:switch-network'` feature. */
47
+ export type SwitchNetworkFeatureDetails = {
48
+ available: boolean;
49
+ switchNetwork: (network: Network) => Promise<void>;
50
+ };
51
+ /** Typed view of the `'standard:decrypt'` feature. */
52
+ export type DecryptFeatureDetails = {
53
+ available: boolean;
54
+ decrypt: (ciphertext: string, tpk?: string, programId?: string, functionName?: string, index?: number) => Promise<string>;
55
+ };
56
+ /** Typed view of the `'standard:request-records'` feature. */
57
+ export type RequestRecordsFeatureDetails = {
58
+ available: boolean;
59
+ requestRecords: (program: string, includePlaintext?: boolean) => Promise<unknown[]>;
60
+ };
61
+ /** The full set of typed Aleo Wallet Standard features we consume. */
62
+ export type TypedFeatures = {
63
+ [WalletFeatureName.CONNECT]?: ConnectFeatureDetails;
64
+ [WalletFeatureName.ACCOUNTS]?: AccountsFeatureDetails;
65
+ [WalletFeatureName.SIGN]?: SignFeatureDetails;
66
+ [WalletFeatureName.EXECUTE]?: ExecuteFeatureDetails;
67
+ [WalletFeatureName.CHAINS]?: ChainFeatureDetails;
68
+ [WalletFeatureName.SWITCH_NETWORK]?: SwitchNetworkFeatureDetails;
69
+ [WalletFeatureName.DECRYPT]?: DecryptFeatureDetails;
70
+ [WalletFeatureName.REQUEST_RECORDS]?: RequestRecordsFeatureDetails;
71
+ };
72
+ /**
73
+ * An Aleo `StandardWallet` whose `features` map is narrowed to our
74
+ * typed feature shapes — produced by `isAleoStandardWallet`, consumed
75
+ * by `createWalletProviderFromAleoStandardWallet`.
76
+ */
77
+ export type TypedStandardWallet = Omit<StandardWallet, 'features'> & {
78
+ features: TypedFeatures;
79
+ };
80
+ //# sourceMappingURL=AleoStandardWallet.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AleoStandardWallet.types.d.ts","sourceRoot":"","sources":["../../src/walletStandard/AleoStandardWallet.types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,18 @@
1
+ export declare const ALEO_WALLET_STANDARD_EXTENSION_KEY = "aleoWalletStandard";
2
+ /**
3
+ * Adds the Aleo Wallet Standard extension to the Dynamic client.
4
+ *
5
+ * Scans `window` at each of the known Aleo Wallet Standard injection
6
+ * keys (see `ALEO_STANDARD_WALLET_WINDOW_KEYS`) via the shared
7
+ * `getAllProvidersFromWindow` helper, wraps every found wallet as a
8
+ * Dynamic `WalletProvider`, and registers it. The caller doesn't
9
+ * enumerate wallets — same shape as EVM's
10
+ * `addEvmWindowInjectedExtension` and Tron's
11
+ * `addTronWalletAdaptersExtension`.
12
+ *
13
+ * @param [client] - The Dynamic client instance. Only required when
14
+ * using multiple Dynamic clients.
15
+ * @not-instrumented
16
+ */
17
+ export declare const addAleoWalletStandardExtension: (client?: import("@dynamic-labs-sdk/client").DynamicClient) => void;
18
+ //# sourceMappingURL=addAleoWalletStandardExtension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addAleoWalletStandardExtension.d.ts","sourceRoot":"","sources":["../../../src/walletStandard/addAleoWalletStandardExtension/addAleoWalletStandardExtension.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,kCAAkC,uBAAuB,CAAC;AAEvE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,8BAA8B,iEAExC,IA+BF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { ALEO_WALLET_STANDARD_EXTENSION_KEY, addAleoWalletStandardExtension, } from './addAleoWalletStandardExtension';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/walletStandard/addAleoWalletStandardExtension/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,8BAA8B,GAC/B,MAAM,kCAAkC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The `window` keys at which known Aleo Wallet Standard wallets inject
3
+ * themselves. Scanned by `addAleoWalletStandardExtension` to discover
4
+ * available wallets — analogous to EVM's hardcoded `'ethereum'` path in
5
+ * `getEvmInjectedProviders`, or Tron's hardcoded adapter constructors
6
+ * in `addTronWalletAdaptersExtension`.
7
+ *
8
+ * As new wallets adopt `@provablehq/aleo-wallet-standard`, add their
9
+ * injection key here. Wallets that use the legacy adapter API
10
+ * (`@provablehq/aleo-wallet-adaptor-core` — Leo, Puzzle, Fox, etc.) are
11
+ * registered through `addAleoWalletAdaptersExtension` instead.
12
+ */
13
+ export declare const ALEO_STANDARD_WALLET_WINDOW_KEYS: readonly string[];
14
+ //# sourceMappingURL=aleoStandardWalletWindowKeys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aleoStandardWalletWindowKeys.d.ts","sourceRoot":"","sources":["../../src/walletStandard/aleoStandardWalletWindowKeys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gCAAgC,EAAE,SAAS,MAAM,EAAe,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { type AleoChain } from '@provablehq/aleo-wallet-standard';
2
+ type AleoChainForChainIdParams = {
3
+ /**
4
+ * The Dynamic numeric chain id, as a string. `'0'` is mainnet;
5
+ * anything else is treated as testnet.
6
+ */
7
+ networkId: string;
8
+ };
9
+ /**
10
+ * Inverse of `chainIdForAleoChain` — resolve the Aleo Wallet Standard
11
+ * chain string for a Dynamic numeric chain id. Used by the
12
+ * walletStandard provider's `switchActiveNetwork` to translate the
13
+ * SDK's stringly-typed chain id into the wallet's expected `AleoChain`
14
+ * value.
15
+ *
16
+ * @not-instrumented
17
+ */
18
+ export declare const aleoChainForChainId: ({ networkId, }: AleoChainForChainIdParams) => AleoChain;
19
+ export {};
20
+ //# sourceMappingURL=aleoChainForChainId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aleoChainForChainId.d.ts","sourceRoot":"","sources":["../../../../src/walletStandard/utils/aleoChainForChainId/aleoChainForChainId.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EACf,MAAM,kCAAkC,CAAC;AAI1C,KAAK,yBAAyB,GAAG;IAC/B;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,mBAE7B,yBAAyB,KAAG,SAGS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { aleoChainForChainId } from './aleoChainForChainId';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/walletStandard/utils/aleoChainForChainId/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { type AleoChain } from '@provablehq/aleo-wallet-standard';
2
+ type ChainIdForAleoChainParams = {
3
+ /**
4
+ * The Aleo Wallet Standard `AleoChain` string (`'aleo:mainnet'` /
5
+ * `'aleo:testnet'`), or `undefined` when the wallet exposed no
6
+ * CHAINS feature.
7
+ */
8
+ chain: AleoChain | undefined;
9
+ };
10
+ /**
11
+ * Resolve the Dynamic numeric chain id for an Aleo Wallet Standard chain
12
+ * string. `undefined` is treated as MAINNET to match
13
+ * `createWalletProviderFromAleoStandardWallet`'s `connect()` default —
14
+ * otherwise the SDK would report a different network than the one the
15
+ * wallet was actually connected to.
16
+ *
17
+ * @not-instrumented
18
+ */
19
+ export declare const chainIdForAleoChain: ({ chain, }: ChainIdForAleoChainParams) => string;
20
+ export {};
21
+ //# sourceMappingURL=chainIdForAleoChain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chainIdForAleoChain.d.ts","sourceRoot":"","sources":["../../../../src/walletStandard/utils/chainIdForAleoChain/chainIdForAleoChain.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,SAAS,EACf,MAAM,kCAAkC,CAAC;AAI1C,KAAK,yBAAyB,GAAG;IAC/B;;;;OAIG;IACH,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,eAE7B,yBAAyB,KAAG,MAK9B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { chainIdForAleoChain } from './chainIdForAleoChain';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/walletStandard/utils/chainIdForAleoChain/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type DynamicClient } from '@dynamic-labs-sdk/client';
2
+ import type { AleoWalletProvider } from '../../../AleoWalletProvider.types';
3
+ import type { TypedStandardWallet } from '../../AleoStandardWallet.types';
4
+ type CreateWalletProviderFromAleoStandardWalletParams = {
5
+ dynamicClient: DynamicClient;
6
+ walletStandardWallet: TypedStandardWallet;
7
+ };
8
+ /**
9
+ * Translate an Aleo StandardWallet (feature-map API) into a Dynamic
10
+ * `WalletProvider`. Unsupported features fall through as undefined methods
11
+ * on the returned provider — callers should guard accordingly.
12
+ *
13
+ * @not-instrumented
14
+ */
15
+ export declare const createWalletProviderFromAleoStandardWallet: ({ dynamicClient, walletStandardWallet, }: CreateWalletProviderFromAleoStandardWalletParams) => AleoWalletProvider;
16
+ export {};
17
+ //# sourceMappingURL=createWalletProviderFromAleoStandardWallet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createWalletProviderFromAleoStandardWallet.d.ts","sourceRoot":"","sources":["../../../../src/walletStandard/utils/createWalletProviderFromAleoStandardWallet/createWalletProviderFromAleoStandardWallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAGnB,MAAM,0BAA0B,CAAC;AAelC,OAAO,KAAK,EAEV,kBAAkB,EACnB,MAAM,mCAAmC,CAAC;AAG3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAK1E,KAAK,gDAAgD,GAAG;IACtD,aAAa,EAAE,aAAa,CAAC;IAC7B,oBAAoB,EAAE,mBAAmB,CAAC;CAC3C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0CAA0C,6CAGpD,gDAAgD,KAAG,kBA6OrD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createWalletProviderFromAleoStandardWallet } from './createWalletProviderFromAleoStandardWallet';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/walletStandard/utils/createWalletProviderFromAleoStandardWallet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0CAA0C,EAAE,MAAM,8CAA8C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { isAleoStandardWallet } from './isAleoStandardWallet';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/walletStandard/utils/isAleoStandardWallet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { TypedStandardWallet } from '../../AleoStandardWallet.types';
2
+ /**
3
+ * Type guard for an Aleo Wallet Standard wallet injected on the page —
4
+ * checks the minimum shape we need (an object with a `features` map)
5
+ * before we hand it to `createWalletProviderFromAleoStandardWallet`.
6
+ *
7
+ * Used to filter the candidate list returned by
8
+ * `getAllProvidersFromWindow` (which can return anything sitting at the
9
+ * configured window key, including the wallet's own `.providers`
10
+ * sibling for EIP-5749-style multi-wallet injections).
11
+ *
12
+ * @not-instrumented
13
+ */
14
+ export declare const isAleoStandardWallet: (value: unknown) => value is TypedStandardWallet;
15
+ //# sourceMappingURL=isAleoStandardWallet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isAleoStandardWallet.d.ts","sourceRoot":"","sources":["../../../../src/walletStandard/utils/isAleoStandardWallet/isAleoStandardWallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE1E;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,oBAAoB,UACxB,OAAO,KACb,KAAK,IAAI,mBAIqD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { normalizeAleoStandardWalletAccount } from './normalizeAleoStandardWalletAccount';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/walletStandard/utils/normalizeAleoStandardWalletAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC"}
@@ -0,0 +1,22 @@
1
+ type NormalizeAleoStandardWalletAccountParams = {
2
+ /**
3
+ * An Aleo Wallet Standard account entry as returned by
4
+ * `wallet.features['standard:accounts'].getAccounts()`. Wallets may
5
+ * emit either a plain address string (older drafts of the spec) or a
6
+ * `{ address: string }` object (current spec) — this normalizer
7
+ * accepts both.
8
+ */
9
+ account: {
10
+ address: string;
11
+ } | string;
12
+ };
13
+ /**
14
+ * Reduce either string-form or object-form Aleo Wallet Standard
15
+ * account entries to the bare address string the Dynamic SDK works
16
+ * with.
17
+ *
18
+ * @not-instrumented
19
+ */
20
+ export declare const normalizeAleoStandardWalletAccount: ({ account, }: NormalizeAleoStandardWalletAccountParams) => string;
21
+ export {};
22
+ //# sourceMappingURL=normalizeAleoStandardWalletAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizeAleoStandardWalletAccount.d.ts","sourceRoot":"","sources":["../../../../src/walletStandard/utils/normalizeAleoStandardWalletAccount/normalizeAleoStandardWalletAccount.ts"],"names":[],"mappings":"AAAA,KAAK,wCAAwC,GAAG;IAC9C;;;;;;OAMG;IACH,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC;CACvC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,iBAE5C,wCAAwC,KAAG,MACW,CAAC"}