@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.
Files changed (181) hide show
  1. package/README.md +104 -25
  2. package/dist/{addresses-Brzgurv_.d.ts → addresses-B7HybtbJ.d.ts} +2 -1
  3. package/dist/{addresses-D_0YAS6B.d.cts → addresses-CTVY1oi7.d.cts} +2 -1
  4. package/dist/arcium-BXXlryfe.d.cts +20 -0
  5. package/dist/arcium-BXXlryfe.d.ts +20 -0
  6. package/dist/chunk-4RHXVBNI.js +203 -0
  7. package/dist/chunk-4RHXVBNI.js.map +1 -0
  8. package/dist/chunk-4TZVXB5G.js +324 -0
  9. package/dist/chunk-4TZVXB5G.js.map +1 -0
  10. package/dist/chunk-5GUSMQ74.cjs +549 -0
  11. package/dist/chunk-5GUSMQ74.cjs.map +1 -0
  12. package/dist/chunk-5KPQXPQM.js +36 -0
  13. package/dist/chunk-5KPQXPQM.js.map +1 -0
  14. package/dist/chunk-AXD7LXYY.cjs +405 -0
  15. package/dist/chunk-AXD7LXYY.cjs.map +1 -0
  16. package/dist/{chunk-HOEXDXRC.cjs → chunk-BL6WXLPV.cjs} +32 -360
  17. package/dist/chunk-BL6WXLPV.cjs.map +1 -0
  18. package/dist/chunk-CFFLOE7D.cjs +598 -0
  19. package/dist/chunk-CFFLOE7D.cjs.map +1 -0
  20. package/dist/{chunk-BM7N6N7E.js → chunk-CFTW5WNG.js} +3 -325
  21. package/dist/chunk-CFTW5WNG.js.map +1 -0
  22. package/dist/chunk-DD2WCK4C.js +327 -0
  23. package/dist/chunk-DD2WCK4C.js.map +1 -0
  24. package/dist/chunk-DMPMQ74B.cjs +246 -0
  25. package/dist/chunk-DMPMQ74B.cjs.map +1 -0
  26. package/dist/{chunk-2Q75CQQJ.js → chunk-EEKF4553.js} +2 -2
  27. package/dist/chunk-EEKF4553.js.map +1 -0
  28. package/dist/chunk-ENVYYEM4.cjs +113 -0
  29. package/dist/chunk-ENVYYEM4.cjs.map +1 -0
  30. package/dist/chunk-FQX6ZYGJ.js +500 -0
  31. package/dist/chunk-FQX6ZYGJ.js.map +1 -0
  32. package/dist/chunk-FSK2ICMB.cjs +39 -0
  33. package/dist/chunk-FSK2ICMB.cjs.map +1 -0
  34. package/dist/chunk-FZYWLQAF.cjs +355 -0
  35. package/dist/chunk-FZYWLQAF.cjs.map +1 -0
  36. package/dist/chunk-GP26R377.js +436 -0
  37. package/dist/chunk-GP26R377.js.map +1 -0
  38. package/dist/chunk-HA5FLM63.js +393 -0
  39. package/dist/chunk-HA5FLM63.js.map +1 -0
  40. package/dist/chunk-INJ73LXQ.js +1107 -0
  41. package/dist/chunk-INJ73LXQ.js.map +1 -0
  42. package/dist/chunk-JPDF7BIT.cjs +10892 -0
  43. package/dist/chunk-JPDF7BIT.cjs.map +1 -0
  44. package/dist/{chunk-MDFSBU5W.cjs → chunk-LTCKPTZC.cjs} +2 -351
  45. package/dist/chunk-LTCKPTZC.cjs.map +1 -0
  46. package/dist/chunk-MKNCBUFA.js +564 -0
  47. package/dist/chunk-MKNCBUFA.js.map +1 -0
  48. package/dist/chunk-NKVMSABR.cjs +207 -0
  49. package/dist/chunk-NKVMSABR.cjs.map +1 -0
  50. package/dist/chunk-OFDWNWCL.js +70 -0
  51. package/dist/chunk-OFDWNWCL.js.map +1 -0
  52. package/dist/chunk-QJAUUYZU.cjs +331 -0
  53. package/dist/chunk-QJAUUYZU.cjs.map +1 -0
  54. package/dist/chunk-RVUYPKKD.js +10750 -0
  55. package/dist/chunk-RVUYPKKD.js.map +1 -0
  56. package/dist/chunk-TLR7A64G.js +103 -0
  57. package/dist/chunk-TLR7A64G.js.map +1 -0
  58. package/dist/{chunk-MVKTV3FT.cjs → chunk-TQQZGNOI.cjs} +2 -2
  59. package/dist/chunk-TQQZGNOI.cjs.map +1 -0
  60. package/dist/chunk-UOFYS6M3.js +219 -0
  61. package/dist/chunk-UOFYS6M3.js.map +1 -0
  62. package/dist/chunk-UXMQI6B7.js +2406 -0
  63. package/dist/chunk-UXMQI6B7.js.map +1 -0
  64. package/dist/chunk-WN75ORDT.js +571 -0
  65. package/dist/chunk-WN75ORDT.js.map +1 -0
  66. package/dist/chunk-Y55PYKXH.cjs +595 -0
  67. package/dist/chunk-Y55PYKXH.cjs.map +1 -0
  68. package/dist/chunk-YEZBTYCP.cjs +77 -0
  69. package/dist/chunk-YEZBTYCP.cjs.map +1 -0
  70. package/dist/chunk-ZQOIYCGA.cjs +1126 -0
  71. package/dist/chunk-ZQOIYCGA.cjs.map +1 -0
  72. package/dist/chunk-ZY3TSHMJ.cjs +2665 -0
  73. package/dist/chunk-ZY3TSHMJ.cjs.map +1 -0
  74. package/dist/client-DkVBHMWb.d.cts +2613 -0
  75. package/dist/client-V4AF6Bz9.d.ts +2613 -0
  76. package/dist/common/pda/index.cjs +145 -0
  77. package/dist/common/pda/index.cjs.map +1 -0
  78. package/dist/common/pda/index.d.cts +1250 -0
  79. package/dist/common/pda/index.d.ts +1250 -0
  80. package/dist/common/pda/index.js +8 -0
  81. package/dist/common/pda/index.js.map +1 -0
  82. package/dist/constants/index.cjs +38 -164
  83. package/dist/constants/index.cjs.map +1 -1
  84. package/dist/constants/index.d.cts +8 -425
  85. package/dist/constants/index.d.ts +8 -425
  86. package/dist/constants/index.js +15 -124
  87. package/dist/constants/index.js.map +1 -1
  88. package/dist/crypto/index.cjs +583 -0
  89. package/dist/crypto/index.cjs.map +1 -0
  90. package/dist/crypto/index.d.cts +6731 -0
  91. package/dist/crypto/index.d.ts +6731 -0
  92. package/dist/crypto/index.js +14 -0
  93. package/dist/crypto/index.js.map +1 -0
  94. package/dist/{cryptography-BTGC72u-.d.ts → cryptography-BFSJcvi6.d.ts} +3 -2465
  95. package/dist/{cryptography-BTGC72u-.d.cts → cryptography-D6tPDh-Y.d.cts} +3 -2465
  96. package/dist/errors/index.cjs +64 -54
  97. package/dist/errors/index.d.cts +7 -797
  98. package/dist/errors/index.d.ts +7 -797
  99. package/dist/errors/index.js +3 -1
  100. package/dist/errors-B9EoPeWV.d.cts +593 -0
  101. package/dist/errors-B9EoPeWV.d.ts +593 -0
  102. package/dist/errors-DAIrstEL.d.cts +300 -0
  103. package/dist/errors-DPNMfyh0.d.ts +300 -0
  104. package/dist/index-BG0yjL7C.d.cts +6006 -0
  105. package/dist/index-ByynoyBO.d.ts +6006 -0
  106. package/dist/index.cjs +5126 -16118
  107. package/dist/index.cjs.map +1 -1
  108. package/dist/index.d.cts +1031 -7685
  109. package/dist/index.d.ts +1031 -7685
  110. package/dist/index.js +3219 -14905
  111. package/dist/index.js.map +1 -1
  112. package/dist/interfaces/index.d.cts +14 -6
  113. package/dist/interfaces/index.d.ts +14 -6
  114. package/dist/interfaces-43cReBcS.d.cts +3346 -0
  115. package/dist/interfaces-B8xKNl_6.d.ts +997 -0
  116. package/dist/interfaces-D2NO6kDD.d.cts +997 -0
  117. package/dist/interfaces-z_xYJlgV.d.ts +3346 -0
  118. package/dist/math/index.cjs +115 -0
  119. package/dist/math/index.cjs.map +1 -0
  120. package/dist/math/index.d.cts +1327 -0
  121. package/dist/math/index.d.ts +1327 -0
  122. package/dist/math/index.js +10 -0
  123. package/dist/math/index.js.map +1 -0
  124. package/dist/networks-RMd3abPE.d.ts +44 -0
  125. package/dist/networks-yAoO8peQ.d.cts +44 -0
  126. package/dist/relayer-NRRMSMNB.js +4 -0
  127. package/dist/relayer-NRRMSMNB.js.map +1 -0
  128. package/dist/relayer-RJHEIXJG.cjs +21 -0
  129. package/dist/relayer-RJHEIXJG.cjs.map +1 -0
  130. package/dist/solana/index.cjs +56 -0
  131. package/dist/solana/index.cjs.map +1 -0
  132. package/dist/solana/index.d.cts +105 -0
  133. package/dist/solana/index.d.ts +105 -0
  134. package/dist/solana/index.js +7 -0
  135. package/dist/solana/index.js.map +1 -0
  136. package/dist/{index-CLj_zWSD.d.ts → temporal-BbRaEPoO.d.ts} +1 -1
  137. package/dist/{index-CX6_pIRS.d.cts → temporal-oUj7iCaq.d.cts} +1 -1
  138. package/dist/transaction-forwarder-5mAMTjw6.d.ts +1155 -0
  139. package/dist/transaction-forwarder-C6gMUG7a.d.cts +1155 -0
  140. package/dist/types/index.cjs +232 -231
  141. package/dist/types/index.d.cts +15 -1485
  142. package/dist/types/index.d.ts +15 -1485
  143. package/dist/types/index.js +2 -1
  144. package/dist/types-BohhvPth.d.cts +87 -0
  145. package/dist/types-CW0oTT0j.d.ts +87 -0
  146. package/dist/types-C_V_CaKK.d.cts +2468 -0
  147. package/dist/types-C_V_CaKK.d.ts +2468 -0
  148. package/dist/types-Ca7frykr.d.ts +793 -0
  149. package/dist/types-CuKeoI19.d.cts +1296 -0
  150. package/dist/types-CxfTIpN9.d.ts +1052 -0
  151. package/dist/{types-n-sHFcgr.d.ts → types-D1jDUjfN.d.ts} +2 -2
  152. package/dist/types-DKEDUlH9.d.ts +1296 -0
  153. package/dist/types-EKuIfxTz.d.cts +1052 -0
  154. package/dist/{types-BBuELtY8.d.cts → types-IMGYmlv-.d.cts} +2 -2
  155. package/dist/types-PwNLi_2k.d.cts +793 -0
  156. package/dist/utils/index.cjs +823 -525
  157. package/dist/utils/index.d.cts +1711 -4021
  158. package/dist/utils/index.d.ts +1711 -4021
  159. package/dist/utils/index.js +9 -3
  160. package/dist/{versions-D9PqsEvj.d.cts → versions-BRlR36EA.d.cts} +1 -0
  161. package/dist/{versions-D9PqsEvj.d.ts → versions-BRlR36EA.d.ts} +1 -0
  162. package/package.json +79 -18
  163. package/dist/chunk-2Q75CQQJ.js.map +0 -1
  164. package/dist/chunk-BM7N6N7E.js.map +0 -1
  165. package/dist/chunk-GXKSUB2U.cjs +0 -4416
  166. package/dist/chunk-GXKSUB2U.cjs.map +0 -1
  167. package/dist/chunk-HOEXDXRC.cjs.map +0 -1
  168. package/dist/chunk-MDFSBU5W.cjs.map +0 -1
  169. package/dist/chunk-MQY7HDIA.js +0 -600
  170. package/dist/chunk-MQY7HDIA.js.map +0 -1
  171. package/dist/chunk-MVKTV3FT.cjs.map +0 -1
  172. package/dist/chunk-PG2J6V6Y.js +0 -4094
  173. package/dist/chunk-PG2J6V6Y.js.map +0 -1
  174. package/dist/chunk-VEGLTTYQ.cjs +0 -621
  175. package/dist/chunk-VEGLTTYQ.cjs.map +0 -1
  176. package/dist/chunk-WVHQ46DD.js +0 -758
  177. package/dist/chunk-WVHQ46DD.js.map +0 -1
  178. package/dist/index-B9pDY73x.d.ts +0 -12933
  179. package/dist/index-D33yo0qB.d.cts +0 -12933
  180. package/dist/networks-C-orpSFW.d.ts +0 -65
  181. package/dist/networks-FxYERGD1.d.cts +0 -65
@@ -0,0 +1,10 @@
1
+ export { bn254Add, bn254ModuloPow, bn254Mul, bn254Sub, computeBn254LimbwiseSumInverse, computeBn254ModularInverse } from '../chunk-OFDWNWCL.js';
2
+ export { bn254FieldElementSampler, curve25519FieldElementSampler, curve25519ModuloAdd, curve25519ModuloInv, curve25519ModuloMul, curve25519ModuloPow, curve25519ModuloSub, getBn254FieldElementSampler, getBn254ModularAdder, getBn254ModularInverter, getBn254ModularMultiplier, getBn254ModularNegator, getBn254ModularSubtractor, getCurve25519FieldElementSampler, getCurve25519ModularAddFunction, getCurve25519ModularInvFunction, getCurve25519ModularMulFunction, getCurve25519ModularPowFunction, getCurve25519ModularSubFunction } from '../chunk-WN75ORDT.js';
3
+ import '../chunk-5KPQXPQM.js';
4
+ import '../chunk-UOFYS6M3.js';
5
+ import '../chunk-FQX6ZYGJ.js';
6
+ import '../chunk-4TZVXB5G.js';
7
+ import '../chunk-CFTW5WNG.js';
8
+ import '../chunk-7QVYU63E.js';
9
+ //# sourceMappingURL=index.js.map
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,44 @@
1
+ import { Address } from '@solana/kit';
2
+ import { N as Network } from './versions-BRlR36EA.js';
3
+ import { X as X25519PublicKey } from './cryptography-BFSJcvi6.js';
4
+
5
+ /**
6
+ * Per-Network Configuration
7
+ *
8
+ * Contains network-specific addresses and keys for each supported network.
9
+ * AUTO-GENERATED by the solana-program-builder pipeline.
10
+ * Do not edit manually — run populate-sdk-config + populate-sdk-alts + generate-sdk-networks.
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
+ interface NetworkConfig {
31
+ readonly programId: Address;
32
+ readonly mxeAccountAddress: Address;
33
+ readonly mxePubkey: X25519PublicKey;
34
+ readonly arciumProgramAddress: Address;
35
+ readonly addressLookupTables: Readonly<Record<number, Readonly<Record<string, AltEntry>>>>;
36
+ }
37
+ /**
38
+ * Get the network configuration for a given network.
39
+ *
40
+ * @throws {UmbraError} if the network has not been populated.
41
+ */
42
+ declare function getNetworkConfig(network: Network): NetworkConfig;
43
+
44
+ export { type AltEntry as A, type NetworkConfig as N, getNetworkConfig as g };
@@ -0,0 +1,44 @@
1
+ import { Address } from '@solana/kit';
2
+ import { N as Network } from './versions-BRlR36EA.cjs';
3
+ import { X as X25519PublicKey } from './cryptography-D6tPDh-Y.cjs';
4
+
5
+ /**
6
+ * Per-Network Configuration
7
+ *
8
+ * Contains network-specific addresses and keys for each supported network.
9
+ * AUTO-GENERATED by the solana-program-builder pipeline.
10
+ * Do not edit manually — run populate-sdk-config + populate-sdk-alts + generate-sdk-networks.
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
+ interface NetworkConfig {
31
+ readonly programId: Address;
32
+ readonly mxeAccountAddress: Address;
33
+ readonly mxePubkey: X25519PublicKey;
34
+ readonly arciumProgramAddress: Address;
35
+ readonly addressLookupTables: Readonly<Record<number, Readonly<Record<string, AltEntry>>>>;
36
+ }
37
+ /**
38
+ * Get the network configuration for a given network.
39
+ *
40
+ * @throws {UmbraError} if the network has not been populated.
41
+ */
42
+ declare function getNetworkConfig(network: Network): NetworkConfig;
43
+
44
+ export { type AltEntry as A, type NetworkConfig as N, getNetworkConfig as g };
@@ -0,0 +1,4 @@
1
+ export { RelayerError, getUmbraRelayer, pollClaimUntilTerminal } from './chunk-4RHXVBNI.js';
2
+ import './chunk-7QVYU63E.js';
3
+ //# sourceMappingURL=relayer-NRRMSMNB.js.map
4
+ //# sourceMappingURL=relayer-NRRMSMNB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"relayer-NRRMSMNB.js"}
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ var chunkNKVMSABR_cjs = require('./chunk-NKVMSABR.cjs');
4
+ require('./chunk-PK6SKIKE.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "RelayerError", {
9
+ enumerable: true,
10
+ get: function () { return chunkNKVMSABR_cjs.RelayerError; }
11
+ });
12
+ Object.defineProperty(exports, "getUmbraRelayer", {
13
+ enumerable: true,
14
+ get: function () { return chunkNKVMSABR_cjs.getUmbraRelayer; }
15
+ });
16
+ Object.defineProperty(exports, "pollClaimUntilTerminal", {
17
+ enumerable: true,
18
+ get: function () { return chunkNKVMSABR_cjs.pollClaimUntilTerminal; }
19
+ });
20
+ //# sourceMappingURL=relayer-RJHEIXJG.cjs.map
21
+ //# sourceMappingURL=relayer-RJHEIXJG.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"relayer-RJHEIXJG.cjs"}
@@ -0,0 +1,56 @@
1
+ 'use strict';
2
+
3
+ var chunkAXD7LXYY_cjs = require('../chunk-AXD7LXYY.cjs');
4
+ require('../chunk-ENVYYEM4.cjs');
5
+ require('../chunk-FZYWLQAF.cjs');
6
+ require('../chunk-LTCKPTZC.cjs');
7
+ require('../chunk-PK6SKIKE.cjs');
8
+
9
+
10
+
11
+ Object.defineProperty(exports, "buildAltAddressesRecord", {
12
+ enumerable: true,
13
+ get: function () { return chunkAXD7LXYY_cjs.buildAltAddressesRecord; }
14
+ });
15
+ Object.defineProperty(exports, "createInMemorySigner", {
16
+ enumerable: true,
17
+ get: function () { return chunkAXD7LXYY_cjs.createInMemorySigner; }
18
+ });
19
+ Object.defineProperty(exports, "createSignerFromKeyPair", {
20
+ enumerable: true,
21
+ get: function () { return chunkAXD7LXYY_cjs.createSignerFromKeyPair; }
22
+ });
23
+ Object.defineProperty(exports, "createSignerFromPrivateKeyBytes", {
24
+ enumerable: true,
25
+ get: function () { return chunkAXD7LXYY_cjs.createSignerFromPrivateKeyBytes; }
26
+ });
27
+ Object.defineProperty(exports, "createSignerFromWalletAccount", {
28
+ enumerable: true,
29
+ get: function () { return chunkAXD7LXYY_cjs.createSignerFromWalletAccount; }
30
+ });
31
+ Object.defineProperty(exports, "getPollingTransactionForwarder", {
32
+ enumerable: true,
33
+ get: function () { return chunkAXD7LXYY_cjs.getPollingTransactionForwarder; }
34
+ });
35
+ Object.defineProperty(exports, "getRpcAccountInfoProvider", {
36
+ enumerable: true,
37
+ get: function () { return chunkAXD7LXYY_cjs.getRpcAccountInfoProvider; }
38
+ });
39
+ Object.defineProperty(exports, "getRpcBlockhashProvider", {
40
+ enumerable: true,
41
+ get: function () { return chunkAXD7LXYY_cjs.getRpcBlockhashProvider; }
42
+ });
43
+ Object.defineProperty(exports, "getRpcEpochInfoProvider", {
44
+ enumerable: true,
45
+ get: function () { return chunkAXD7LXYY_cjs.getRpcEpochInfoProvider; }
46
+ });
47
+ Object.defineProperty(exports, "getWebsocketTransactionForwarder", {
48
+ enumerable: true,
49
+ get: function () { return chunkAXD7LXYY_cjs.getWebsocketTransactionForwarder; }
50
+ });
51
+ Object.defineProperty(exports, "lookupAltEntry", {
52
+ enumerable: true,
53
+ get: function () { return chunkAXD7LXYY_cjs.lookupAltEntry; }
54
+ });
55
+ //# sourceMappingURL=index.cjs.map
56
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,105 @@
1
+ export { O as OnTransactionConfirmed, P as PollingBasedTransactionForwarderConfig, a as PollingBasedTransactionForwarderDeps, b as PollingTransactionForwardOptions, R as RpcBasedAccountInfoProviderConfig, c as RpcBasedBlockhashProviderConfig, d as RpcBasedBlockhashProviderDeps, e as RpcBasedEpochInfoProviderConfig, f as RpcBasedEpochInfoProviderDeps, T as TransactionConfirmedInfo, g as TransactionForwardOptions, W as WebsocketBasedTransactionForwarderConfig, h as WebsocketBasedTransactionForwarderDeps, i as createInMemorySigner, j as createSignerFromKeyPair, k as createSignerFromPrivateKeyBytes, l as createSignerFromWalletAccount, m as getPollingTransactionForwarder, n as getRpcAccountInfoProvider, o as getRpcBlockhashProvider, p as getRpcEpochInfoProvider, q as getWebsocketTransactionForwarder } from '../transaction-forwarder-C6gMUG7a.cjs';
2
+ import { Address } from '@solana/kit';
3
+ import { A as AltEntry } from '../networks-yAoO8peQ.cjs';
4
+ import '../client-DkVBHMWb.cjs';
5
+ import '../types-C_V_CaKK.cjs';
6
+ import '../cryptography-D6tPDh-Y.cjs';
7
+ import '../types-EKuIfxTz.cjs';
8
+ import '../versions-BRlR36EA.cjs';
9
+ import '../types-IMGYmlv-.cjs';
10
+ import '@wallet-standard/core';
11
+
12
+ /**
13
+ * Address Lookup Table utilities for transaction compression.
14
+ *
15
+ * Address Lookup Tables (ALTs) are Solana on-chain accounts that store a list of
16
+ * public keys. When building versioned (v0) transactions, ALTs allow instructions
17
+ * to reference accounts by their index in the table rather than including the full
18
+ * 32-byte public key inline. This reduces transaction size and allows a single
19
+ * transaction to reference more accounts than the standard per-transaction limit.
20
+ *
21
+ * This module provides helpers for converting the SDK's internal {@link AltEntry}
22
+ * representation into the record format that `@solana/kit`'s
23
+ * `compressTransactionMessageUsingAddressLookupTables` expects.
24
+ *
25
+ * @remarks
26
+ * ALTs must be pre-loaded on-chain before they can be used in transactions. The
27
+ * Umbra SDK stores pre-baked ALT addresses and their contents in {@link NetworkConfig}
28
+ * so clients do not need to fetch ALT account data at runtime — the addresses are
29
+ * already known at build time.
30
+ *
31
+ * @see {@link AltEntry} for the SDK's internal ALT representation
32
+ * @see {@link buildAltAddressesRecord} for converting an ALT entry to the kit-compatible format
33
+ *
34
+ * @packageDocumentation
35
+ */
36
+
37
+ /**
38
+ * Converts an {@link AltEntry} into the record format expected by
39
+ * `compressTransactionMessageUsingAddressLookupTables`.
40
+ *
41
+ * The `@solana/kit` function `compressTransactionMessageUsingAddressLookupTables`
42
+ * accepts a `Record<Address, Address[]>` where each key is an ALT account address
43
+ * and each value is the ordered list of addresses stored within that table. This
44
+ * function performs that conversion from the SDK's {@link AltEntry} shape.
45
+ *
46
+ * @remarks
47
+ * The returned record is a shallow copy of the addresses array — mutations to the
48
+ * original {@link AltEntry} after this call will not affect the returned record.
49
+ *
50
+ * When a transaction message is compressed using this record, `@solana/kit` will
51
+ * replace any account references that match entries in the ALT with the
52
+ * corresponding table index, shrinking the serialized transaction size.
53
+ *
54
+ * @param altEntry - The pre-baked ALT entry sourced from {@link NetworkConfig}.
55
+ * Contains the on-chain ALT address and the ordered list of addresses it holds.
56
+ * @returns A `Record` mapping the ALT account address to the ordered array of
57
+ * addresses stored in the table. This format is consumed directly by
58
+ * `compressTransactionMessageUsingAddressLookupTables`.
59
+ *
60
+ * @example
61
+ * ```typescript
62
+ * import { buildAltAddressesRecord } from "./alt-utils";
63
+ * import { compressTransactionMessageUsingAddressLookupTables } from "@solana/kit";
64
+ * import { MAINNET_CONFIG } from "../constants/networks";
65
+ *
66
+ * const altRecord = buildAltAddressesRecord(MAINNET_CONFIG.alt);
67
+ *
68
+ * const compressedMessage = compressTransactionMessageUsingAddressLookupTables(
69
+ * transactionMessage,
70
+ * altRecord,
71
+ * );
72
+ * ```
73
+ *
74
+ * @example
75
+ * Combining multiple ALT entries into one record:
76
+ * ```typescript
77
+ * import { buildAltAddressesRecord } from "./alt-utils";
78
+ *
79
+ * const combinedAltRecord = {
80
+ * ...buildAltAddressesRecord(MAINNET_CONFIG.umbraAlt),
81
+ * ...buildAltAddressesRecord(MAINNET_CONFIG.arciumAlt),
82
+ * };
83
+ * ```
84
+ *
85
+ * @see {@link AltEntry} for the input type definition
86
+ * @public
87
+ */
88
+ declare function buildAltAddressesRecord(altEntry: AltEntry): Record<Address, Address[]>;
89
+ /**
90
+ * Looks up an ALT entry from the nested address lookup tables structure.
91
+ *
92
+ * The lookup tables are keyed by cluster offset (number), then by instruction
93
+ * name (string). Returns `undefined` if no ALT exists for the given cluster
94
+ * offset or instruction name.
95
+ *
96
+ * @param addressLookupTables - The nested ALT structure from {@link NetworkConfig}.
97
+ * @param clusterOffset - The Arcium cluster offset (fetched from the on-chain MXE account).
98
+ * @param instructionName - The snake_case instruction name.
99
+ * @returns The matching {@link AltEntry}, or `undefined` if not found.
100
+ *
101
+ * @public
102
+ */
103
+ declare function lookupAltEntry(addressLookupTables: Readonly<Record<number, Readonly<Record<string, AltEntry>>>>, clusterOffset: number, instructionName: string): AltEntry | undefined;
104
+
105
+ export { buildAltAddressesRecord, lookupAltEntry };
@@ -0,0 +1,105 @@
1
+ export { O as OnTransactionConfirmed, P as PollingBasedTransactionForwarderConfig, a as PollingBasedTransactionForwarderDeps, b as PollingTransactionForwardOptions, R as RpcBasedAccountInfoProviderConfig, c as RpcBasedBlockhashProviderConfig, d as RpcBasedBlockhashProviderDeps, e as RpcBasedEpochInfoProviderConfig, f as RpcBasedEpochInfoProviderDeps, T as TransactionConfirmedInfo, g as TransactionForwardOptions, W as WebsocketBasedTransactionForwarderConfig, h as WebsocketBasedTransactionForwarderDeps, i as createInMemorySigner, j as createSignerFromKeyPair, k as createSignerFromPrivateKeyBytes, l as createSignerFromWalletAccount, m as getPollingTransactionForwarder, n as getRpcAccountInfoProvider, o as getRpcBlockhashProvider, p as getRpcEpochInfoProvider, q as getWebsocketTransactionForwarder } from '../transaction-forwarder-5mAMTjw6.js';
2
+ import { Address } from '@solana/kit';
3
+ import { A as AltEntry } from '../networks-RMd3abPE.js';
4
+ import '../client-V4AF6Bz9.js';
5
+ import '../types-C_V_CaKK.js';
6
+ import '../cryptography-BFSJcvi6.js';
7
+ import '../types-CxfTIpN9.js';
8
+ import '../versions-BRlR36EA.js';
9
+ import '../types-D1jDUjfN.js';
10
+ import '@wallet-standard/core';
11
+
12
+ /**
13
+ * Address Lookup Table utilities for transaction compression.
14
+ *
15
+ * Address Lookup Tables (ALTs) are Solana on-chain accounts that store a list of
16
+ * public keys. When building versioned (v0) transactions, ALTs allow instructions
17
+ * to reference accounts by their index in the table rather than including the full
18
+ * 32-byte public key inline. This reduces transaction size and allows a single
19
+ * transaction to reference more accounts than the standard per-transaction limit.
20
+ *
21
+ * This module provides helpers for converting the SDK's internal {@link AltEntry}
22
+ * representation into the record format that `@solana/kit`'s
23
+ * `compressTransactionMessageUsingAddressLookupTables` expects.
24
+ *
25
+ * @remarks
26
+ * ALTs must be pre-loaded on-chain before they can be used in transactions. The
27
+ * Umbra SDK stores pre-baked ALT addresses and their contents in {@link NetworkConfig}
28
+ * so clients do not need to fetch ALT account data at runtime — the addresses are
29
+ * already known at build time.
30
+ *
31
+ * @see {@link AltEntry} for the SDK's internal ALT representation
32
+ * @see {@link buildAltAddressesRecord} for converting an ALT entry to the kit-compatible format
33
+ *
34
+ * @packageDocumentation
35
+ */
36
+
37
+ /**
38
+ * Converts an {@link AltEntry} into the record format expected by
39
+ * `compressTransactionMessageUsingAddressLookupTables`.
40
+ *
41
+ * The `@solana/kit` function `compressTransactionMessageUsingAddressLookupTables`
42
+ * accepts a `Record<Address, Address[]>` where each key is an ALT account address
43
+ * and each value is the ordered list of addresses stored within that table. This
44
+ * function performs that conversion from the SDK's {@link AltEntry} shape.
45
+ *
46
+ * @remarks
47
+ * The returned record is a shallow copy of the addresses array — mutations to the
48
+ * original {@link AltEntry} after this call will not affect the returned record.
49
+ *
50
+ * When a transaction message is compressed using this record, `@solana/kit` will
51
+ * replace any account references that match entries in the ALT with the
52
+ * corresponding table index, shrinking the serialized transaction size.
53
+ *
54
+ * @param altEntry - The pre-baked ALT entry sourced from {@link NetworkConfig}.
55
+ * Contains the on-chain ALT address and the ordered list of addresses it holds.
56
+ * @returns A `Record` mapping the ALT account address to the ordered array of
57
+ * addresses stored in the table. This format is consumed directly by
58
+ * `compressTransactionMessageUsingAddressLookupTables`.
59
+ *
60
+ * @example
61
+ * ```typescript
62
+ * import { buildAltAddressesRecord } from "./alt-utils";
63
+ * import { compressTransactionMessageUsingAddressLookupTables } from "@solana/kit";
64
+ * import { MAINNET_CONFIG } from "../constants/networks";
65
+ *
66
+ * const altRecord = buildAltAddressesRecord(MAINNET_CONFIG.alt);
67
+ *
68
+ * const compressedMessage = compressTransactionMessageUsingAddressLookupTables(
69
+ * transactionMessage,
70
+ * altRecord,
71
+ * );
72
+ * ```
73
+ *
74
+ * @example
75
+ * Combining multiple ALT entries into one record:
76
+ * ```typescript
77
+ * import { buildAltAddressesRecord } from "./alt-utils";
78
+ *
79
+ * const combinedAltRecord = {
80
+ * ...buildAltAddressesRecord(MAINNET_CONFIG.umbraAlt),
81
+ * ...buildAltAddressesRecord(MAINNET_CONFIG.arciumAlt),
82
+ * };
83
+ * ```
84
+ *
85
+ * @see {@link AltEntry} for the input type definition
86
+ * @public
87
+ */
88
+ declare function buildAltAddressesRecord(altEntry: AltEntry): Record<Address, Address[]>;
89
+ /**
90
+ * Looks up an ALT entry from the nested address lookup tables structure.
91
+ *
92
+ * The lookup tables are keyed by cluster offset (number), then by instruction
93
+ * name (string). Returns `undefined` if no ALT exists for the given cluster
94
+ * offset or instruction name.
95
+ *
96
+ * @param addressLookupTables - The nested ALT structure from {@link NetworkConfig}.
97
+ * @param clusterOffset - The Arcium cluster offset (fetched from the on-chain MXE account).
98
+ * @param instructionName - The snake_case instruction name.
99
+ * @returns The matching {@link AltEntry}, or `undefined` if not found.
100
+ *
101
+ * @public
102
+ */
103
+ declare function lookupAltEntry(addressLookupTables: Readonly<Record<number, Readonly<Record<string, AltEntry>>>>, clusterOffset: number, instructionName: string): AltEntry | undefined;
104
+
105
+ export { buildAltAddressesRecord, lookupAltEntry };
@@ -0,0 +1,7 @@
1
+ export { buildAltAddressesRecord, createInMemorySigner, createSignerFromKeyPair, createSignerFromPrivateKeyBytes, createSignerFromWalletAccount, getPollingTransactionForwarder, getRpcAccountInfoProvider, getRpcBlockhashProvider, getRpcEpochInfoProvider, getWebsocketTransactionForwarder, lookupAltEntry } from '../chunk-HA5FLM63.js';
2
+ import '../chunk-TLR7A64G.js';
3
+ import '../chunk-DD2WCK4C.js';
4
+ import '../chunk-CFTW5WNG.js';
5
+ import '../chunk-7QVYU63E.js';
6
+ //# sourceMappingURL=index.js.map
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -1,4 +1,4 @@
1
- import { Y as Year, M as Month, D as Day, H as Hour, a as Minute, S as Second } from './types-n-sHFcgr.js';
1
+ import { Y as Year, M as Month, D as Day, H as Hour, a as Minute, S as Second } from './types-D1jDUjfN.js';
2
2
 
3
3
  /**
4
4
  * Temporal Utilities
@@ -1,4 +1,4 @@
1
- import { Y as Year, M as Month, D as Day, H as Hour, a as Minute, S as Second } from './types-BBuELtY8.cjs';
1
+ import { Y as Year, M as Month, D as Day, H as Hour, a as Minute, S as Second } from './types-IMGYmlv-.cjs';
2
2
 
3
3
  /**
4
4
  * Temporal Utilities