@umbra-privacy/sdk 1.0.0 → 2.0.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/README.md +104 -25
- package/dist/{addresses-Brzgurv_.d.ts → addresses-B7HybtbJ.d.ts} +2 -1
- package/dist/{addresses-D_0YAS6B.d.cts → addresses-CTVY1oi7.d.cts} +2 -1
- package/dist/arcium-BXXlryfe.d.cts +20 -0
- package/dist/arcium-BXXlryfe.d.ts +20 -0
- package/dist/chunk-4RHXVBNI.js +203 -0
- package/dist/chunk-4RHXVBNI.js.map +1 -0
- package/dist/chunk-4TZVXB5G.js +324 -0
- package/dist/chunk-4TZVXB5G.js.map +1 -0
- package/dist/chunk-5GUSMQ74.cjs +549 -0
- package/dist/chunk-5GUSMQ74.cjs.map +1 -0
- package/dist/chunk-5KPQXPQM.js +36 -0
- package/dist/chunk-5KPQXPQM.js.map +1 -0
- package/dist/chunk-AXD7LXYY.cjs +405 -0
- package/dist/chunk-AXD7LXYY.cjs.map +1 -0
- package/dist/{chunk-HOEXDXRC.cjs → chunk-BL6WXLPV.cjs} +32 -360
- package/dist/chunk-BL6WXLPV.cjs.map +1 -0
- package/dist/chunk-CFFLOE7D.cjs +598 -0
- package/dist/chunk-CFFLOE7D.cjs.map +1 -0
- package/dist/{chunk-BM7N6N7E.js → chunk-CFTW5WNG.js} +3 -325
- package/dist/chunk-CFTW5WNG.js.map +1 -0
- package/dist/chunk-DD2WCK4C.js +327 -0
- package/dist/chunk-DD2WCK4C.js.map +1 -0
- package/dist/chunk-DMPMQ74B.cjs +246 -0
- package/dist/chunk-DMPMQ74B.cjs.map +1 -0
- package/dist/{chunk-2Q75CQQJ.js → chunk-EEKF4553.js} +2 -2
- package/dist/chunk-EEKF4553.js.map +1 -0
- package/dist/chunk-ENVYYEM4.cjs +113 -0
- package/dist/chunk-ENVYYEM4.cjs.map +1 -0
- package/dist/chunk-FQX6ZYGJ.js +500 -0
- package/dist/chunk-FQX6ZYGJ.js.map +1 -0
- package/dist/chunk-FSK2ICMB.cjs +39 -0
- package/dist/chunk-FSK2ICMB.cjs.map +1 -0
- package/dist/chunk-FZYWLQAF.cjs +355 -0
- package/dist/chunk-FZYWLQAF.cjs.map +1 -0
- package/dist/chunk-GP26R377.js +436 -0
- package/dist/chunk-GP26R377.js.map +1 -0
- package/dist/chunk-HA5FLM63.js +393 -0
- package/dist/chunk-HA5FLM63.js.map +1 -0
- package/dist/chunk-INJ73LXQ.js +1107 -0
- package/dist/chunk-INJ73LXQ.js.map +1 -0
- package/dist/chunk-JPDF7BIT.cjs +10892 -0
- package/dist/chunk-JPDF7BIT.cjs.map +1 -0
- package/dist/{chunk-MDFSBU5W.cjs → chunk-LTCKPTZC.cjs} +2 -351
- package/dist/chunk-LTCKPTZC.cjs.map +1 -0
- package/dist/chunk-MKNCBUFA.js +564 -0
- package/dist/chunk-MKNCBUFA.js.map +1 -0
- package/dist/chunk-NKVMSABR.cjs +207 -0
- package/dist/chunk-NKVMSABR.cjs.map +1 -0
- package/dist/chunk-OFDWNWCL.js +70 -0
- package/dist/chunk-OFDWNWCL.js.map +1 -0
- package/dist/chunk-QJAUUYZU.cjs +331 -0
- package/dist/chunk-QJAUUYZU.cjs.map +1 -0
- package/dist/chunk-RVUYPKKD.js +10750 -0
- package/dist/chunk-RVUYPKKD.js.map +1 -0
- package/dist/chunk-TLR7A64G.js +103 -0
- package/dist/chunk-TLR7A64G.js.map +1 -0
- package/dist/{chunk-MVKTV3FT.cjs → chunk-TQQZGNOI.cjs} +2 -2
- package/dist/chunk-TQQZGNOI.cjs.map +1 -0
- package/dist/chunk-UOFYS6M3.js +219 -0
- package/dist/chunk-UOFYS6M3.js.map +1 -0
- package/dist/chunk-UXMQI6B7.js +2406 -0
- package/dist/chunk-UXMQI6B7.js.map +1 -0
- package/dist/chunk-WN75ORDT.js +571 -0
- package/dist/chunk-WN75ORDT.js.map +1 -0
- package/dist/chunk-Y55PYKXH.cjs +595 -0
- package/dist/chunk-Y55PYKXH.cjs.map +1 -0
- package/dist/chunk-YEZBTYCP.cjs +77 -0
- package/dist/chunk-YEZBTYCP.cjs.map +1 -0
- package/dist/chunk-ZQOIYCGA.cjs +1126 -0
- package/dist/chunk-ZQOIYCGA.cjs.map +1 -0
- package/dist/chunk-ZY3TSHMJ.cjs +2665 -0
- package/dist/chunk-ZY3TSHMJ.cjs.map +1 -0
- package/dist/client-DkVBHMWb.d.cts +2613 -0
- package/dist/client-V4AF6Bz9.d.ts +2613 -0
- package/dist/common/pda/index.cjs +145 -0
- package/dist/common/pda/index.cjs.map +1 -0
- package/dist/common/pda/index.d.cts +1250 -0
- package/dist/common/pda/index.d.ts +1250 -0
- package/dist/common/pda/index.js +8 -0
- package/dist/common/pda/index.js.map +1 -0
- package/dist/constants/index.cjs +38 -164
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +8 -425
- package/dist/constants/index.d.ts +8 -425
- package/dist/constants/index.js +15 -124
- package/dist/constants/index.js.map +1 -1
- package/dist/crypto/index.cjs +583 -0
- package/dist/crypto/index.cjs.map +1 -0
- package/dist/crypto/index.d.cts +6731 -0
- package/dist/crypto/index.d.ts +6731 -0
- package/dist/crypto/index.js +14 -0
- package/dist/crypto/index.js.map +1 -0
- package/dist/{cryptography-BTGC72u-.d.ts → cryptography-BFSJcvi6.d.ts} +3 -2465
- package/dist/{cryptography-BTGC72u-.d.cts → cryptography-D6tPDh-Y.d.cts} +3 -2465
- package/dist/errors/index.cjs +64 -54
- package/dist/errors/index.d.cts +7 -797
- package/dist/errors/index.d.ts +7 -797
- package/dist/errors/index.js +3 -1
- package/dist/errors-B9EoPeWV.d.cts +593 -0
- package/dist/errors-B9EoPeWV.d.ts +593 -0
- package/dist/errors-DAIrstEL.d.cts +300 -0
- package/dist/errors-DPNMfyh0.d.ts +300 -0
- package/dist/index-BG0yjL7C.d.cts +6006 -0
- package/dist/index-ByynoyBO.d.ts +6006 -0
- package/dist/index.cjs +5126 -16118
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1031 -7685
- package/dist/index.d.ts +1031 -7685
- package/dist/index.js +3219 -14905
- package/dist/index.js.map +1 -1
- package/dist/interfaces/index.d.cts +14 -6
- package/dist/interfaces/index.d.ts +14 -6
- package/dist/interfaces-43cReBcS.d.cts +3346 -0
- package/dist/interfaces-B8xKNl_6.d.ts +997 -0
- package/dist/interfaces-D2NO6kDD.d.cts +997 -0
- package/dist/interfaces-z_xYJlgV.d.ts +3346 -0
- package/dist/math/index.cjs +115 -0
- package/dist/math/index.cjs.map +1 -0
- package/dist/math/index.d.cts +1327 -0
- package/dist/math/index.d.ts +1327 -0
- package/dist/math/index.js +10 -0
- package/dist/math/index.js.map +1 -0
- package/dist/networks-RMd3abPE.d.ts +44 -0
- package/dist/networks-yAoO8peQ.d.cts +44 -0
- package/dist/relayer-NRRMSMNB.js +4 -0
- package/dist/relayer-NRRMSMNB.js.map +1 -0
- package/dist/relayer-RJHEIXJG.cjs +21 -0
- package/dist/relayer-RJHEIXJG.cjs.map +1 -0
- package/dist/solana/index.cjs +56 -0
- package/dist/solana/index.cjs.map +1 -0
- package/dist/solana/index.d.cts +105 -0
- package/dist/solana/index.d.ts +105 -0
- package/dist/solana/index.js +7 -0
- package/dist/solana/index.js.map +1 -0
- package/dist/{index-CLj_zWSD.d.ts → temporal-BbRaEPoO.d.ts} +1 -1
- package/dist/{index-CX6_pIRS.d.cts → temporal-oUj7iCaq.d.cts} +1 -1
- package/dist/transaction-forwarder-5mAMTjw6.d.ts +1155 -0
- package/dist/transaction-forwarder-C6gMUG7a.d.cts +1155 -0
- package/dist/types/index.cjs +232 -231
- package/dist/types/index.d.cts +15 -1485
- package/dist/types/index.d.ts +15 -1485
- package/dist/types/index.js +2 -1
- package/dist/types-BohhvPth.d.cts +87 -0
- package/dist/types-CW0oTT0j.d.ts +87 -0
- package/dist/types-C_V_CaKK.d.cts +2468 -0
- package/dist/types-C_V_CaKK.d.ts +2468 -0
- package/dist/types-Ca7frykr.d.ts +793 -0
- package/dist/types-CuKeoI19.d.cts +1296 -0
- package/dist/types-CxfTIpN9.d.ts +1052 -0
- package/dist/{types-n-sHFcgr.d.ts → types-D1jDUjfN.d.ts} +2 -2
- package/dist/types-DKEDUlH9.d.ts +1296 -0
- package/dist/types-EKuIfxTz.d.cts +1052 -0
- package/dist/{types-BBuELtY8.d.cts → types-IMGYmlv-.d.cts} +2 -2
- package/dist/types-PwNLi_2k.d.cts +793 -0
- package/dist/utils/index.cjs +823 -525
- package/dist/utils/index.d.cts +1711 -4021
- package/dist/utils/index.d.ts +1711 -4021
- package/dist/utils/index.js +9 -3
- package/dist/{versions-D9PqsEvj.d.cts → versions-BRlR36EA.d.cts} +1 -0
- package/dist/{versions-D9PqsEvj.d.ts → versions-BRlR36EA.d.ts} +1 -0
- package/package.json +79 -18
- package/dist/chunk-2Q75CQQJ.js.map +0 -1
- package/dist/chunk-BM7N6N7E.js.map +0 -1
- package/dist/chunk-GXKSUB2U.cjs +0 -4416
- package/dist/chunk-GXKSUB2U.cjs.map +0 -1
- package/dist/chunk-HOEXDXRC.cjs.map +0 -1
- package/dist/chunk-MDFSBU5W.cjs.map +0 -1
- package/dist/chunk-MQY7HDIA.js +0 -600
- package/dist/chunk-MQY7HDIA.js.map +0 -1
- package/dist/chunk-MVKTV3FT.cjs.map +0 -1
- package/dist/chunk-PG2J6V6Y.js +0 -4094
- package/dist/chunk-PG2J6V6Y.js.map +0 -1
- package/dist/chunk-VEGLTTYQ.cjs +0 -621
- package/dist/chunk-VEGLTTYQ.cjs.map +0 -1
- package/dist/chunk-WVHQ46DD.js +0 -758
- package/dist/chunk-WVHQ46DD.js.map +0 -1
- package/dist/index-B9pDY73x.d.ts +0 -12933
- package/dist/index-D33yo0qB.d.cts +0 -12933
- package/dist/networks-C-orpSFW.d.ts +0 -65
- package/dist/networks-FxYERGD1.d.cts +0 -65
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Address } from '@solana/kit';
|
|
2
|
-
import { N as Network } from './versions-D9PqsEvj.js';
|
|
3
|
-
import { X as X25519PublicKey } from './cryptography-BTGC72u-.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Per-Network Configuration
|
|
7
|
-
*
|
|
8
|
-
* Contains network-specific addresses and keys for each supported network.
|
|
9
|
-
* Populated by the `fetch-mxe-pubkey.ts` tooling script. Networks that have
|
|
10
|
-
* not been populated will throw an error when accessed.
|
|
11
|
-
*
|
|
12
|
-
* @module constants/networks
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* A pre-baked Address Lookup Table entry.
|
|
17
|
-
*
|
|
18
|
-
* Contains the on-chain ALT address and the list of addresses it holds,
|
|
19
|
-
* so no RPC call is needed to resolve the table at transaction build time.
|
|
20
|
-
*/
|
|
21
|
-
interface AltEntry {
|
|
22
|
-
/** The on-chain Address Lookup Table address. */
|
|
23
|
-
readonly altAddress: Address;
|
|
24
|
-
/** The ordered list of addresses stored in this ALT. */
|
|
25
|
-
readonly addresses: readonly Address[];
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Configuration for a single network deployment.
|
|
29
|
-
*
|
|
30
|
-
* Contains all network-specific addresses and keys needed by the SDK
|
|
31
|
-
* to interact with the Umbra protocol on that network.
|
|
32
|
-
*/
|
|
33
|
-
interface NetworkConfig {
|
|
34
|
-
/** The Umbra program address on this network. */
|
|
35
|
-
readonly programId: Address;
|
|
36
|
-
/** The MXE account PDA address (derived from Arcium program + Umbra program). */
|
|
37
|
-
readonly mxeAccountAddress: Address;
|
|
38
|
-
/** The MXE X25519 public key (fetched on-chain from the MXE account). */
|
|
39
|
-
readonly mxePubkey: X25519PublicKey;
|
|
40
|
-
/** The Arcium program address on this network. */
|
|
41
|
-
readonly arciumProgramAddress: Address;
|
|
42
|
-
/** The cluster offset for this network's Arcium cluster. */
|
|
43
|
-
readonly clusterOffset: number;
|
|
44
|
-
/**
|
|
45
|
-
* Per-instruction Address Lookup Tables.
|
|
46
|
-
*
|
|
47
|
-
* Keys are instruction snake_case names (e.g., "public_token_deposit_into_existing_mxe_balance_v3").
|
|
48
|
-
* Populated by `packages/tooling/scripts/populate-alt-addresses.ts`.
|
|
49
|
-
*/
|
|
50
|
-
readonly addressLookupTables: Readonly<Record<string, AltEntry>>;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Get the network configuration for a given network.
|
|
54
|
-
*
|
|
55
|
-
* @throws {UmbraError} if the network has not been populated by the tooling script.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```typescript
|
|
59
|
-
* const config = getNetworkConfig("devnet");
|
|
60
|
-
* console.log(config.programId); // The Umbra program address on devnet
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
declare function getNetworkConfig(network: Network): NetworkConfig;
|
|
64
|
-
|
|
65
|
-
export { type AltEntry as A, type NetworkConfig as N, getNetworkConfig as g };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Address } from '@solana/kit';
|
|
2
|
-
import { N as Network } from './versions-D9PqsEvj.cjs';
|
|
3
|
-
import { X as X25519PublicKey } from './cryptography-BTGC72u-.cjs';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Per-Network Configuration
|
|
7
|
-
*
|
|
8
|
-
* Contains network-specific addresses and keys for each supported network.
|
|
9
|
-
* Populated by the `fetch-mxe-pubkey.ts` tooling script. Networks that have
|
|
10
|
-
* not been populated will throw an error when accessed.
|
|
11
|
-
*
|
|
12
|
-
* @module constants/networks
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* A pre-baked Address Lookup Table entry.
|
|
17
|
-
*
|
|
18
|
-
* Contains the on-chain ALT address and the list of addresses it holds,
|
|
19
|
-
* so no RPC call is needed to resolve the table at transaction build time.
|
|
20
|
-
*/
|
|
21
|
-
interface AltEntry {
|
|
22
|
-
/** The on-chain Address Lookup Table address. */
|
|
23
|
-
readonly altAddress: Address;
|
|
24
|
-
/** The ordered list of addresses stored in this ALT. */
|
|
25
|
-
readonly addresses: readonly Address[];
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Configuration for a single network deployment.
|
|
29
|
-
*
|
|
30
|
-
* Contains all network-specific addresses and keys needed by the SDK
|
|
31
|
-
* to interact with the Umbra protocol on that network.
|
|
32
|
-
*/
|
|
33
|
-
interface NetworkConfig {
|
|
34
|
-
/** The Umbra program address on this network. */
|
|
35
|
-
readonly programId: Address;
|
|
36
|
-
/** The MXE account PDA address (derived from Arcium program + Umbra program). */
|
|
37
|
-
readonly mxeAccountAddress: Address;
|
|
38
|
-
/** The MXE X25519 public key (fetched on-chain from the MXE account). */
|
|
39
|
-
readonly mxePubkey: X25519PublicKey;
|
|
40
|
-
/** The Arcium program address on this network. */
|
|
41
|
-
readonly arciumProgramAddress: Address;
|
|
42
|
-
/** The cluster offset for this network's Arcium cluster. */
|
|
43
|
-
readonly clusterOffset: number;
|
|
44
|
-
/**
|
|
45
|
-
* Per-instruction Address Lookup Tables.
|
|
46
|
-
*
|
|
47
|
-
* Keys are instruction snake_case names (e.g., "public_token_deposit_into_existing_mxe_balance_v3").
|
|
48
|
-
* Populated by `packages/tooling/scripts/populate-alt-addresses.ts`.
|
|
49
|
-
*/
|
|
50
|
-
readonly addressLookupTables: Readonly<Record<string, AltEntry>>;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Get the network configuration for a given network.
|
|
54
|
-
*
|
|
55
|
-
* @throws {UmbraError} if the network has not been populated by the tooling script.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```typescript
|
|
59
|
-
* const config = getNetworkConfig("devnet");
|
|
60
|
-
* console.log(config.programId); // The Umbra program address on devnet
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
declare function getNetworkConfig(network: Network): NetworkConfig;
|
|
64
|
-
|
|
65
|
-
export { type AltEntry as A, type NetworkConfig as N, getNetworkConfig as g };
|