@lightprotocol/stateless.js 0.20.1 → 0.20.2
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/cjs/browser/index.cjs +1 -1
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/browser/rpc-interface.d.ts +2 -2
- package/dist/cjs/browser/rpc.d.ts +6 -0
- package/dist/cjs/node/index.cjs +1 -1
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/cjs/node/rpc-interface.d.ts +2 -2
- package/dist/cjs/node/rpc.d.ts +6 -0
- package/dist/types/index.d.ts +9 -3
- package/package.json +1 -2
|
@@ -656,8 +656,8 @@ export declare const NewAddressProofResult: Struct<{
|
|
|
656
656
|
export declare const ValidityProofResult: Struct<{
|
|
657
657
|
compressedProof: {
|
|
658
658
|
a: number[];
|
|
659
|
-
c: number[];
|
|
660
659
|
b: number[];
|
|
660
|
+
c: number[];
|
|
661
661
|
};
|
|
662
662
|
leafIndices: number[];
|
|
663
663
|
leaves: BN[];
|
|
@@ -667,8 +667,8 @@ export declare const ValidityProofResult: Struct<{
|
|
|
667
667
|
}, {
|
|
668
668
|
compressedProof: Struct<{
|
|
669
669
|
a: number[];
|
|
670
|
-
c: number[];
|
|
671
670
|
b: number[];
|
|
671
|
+
c: number[];
|
|
672
672
|
}, {
|
|
673
673
|
a: Struct<number[], Struct<number, null>>;
|
|
674
674
|
b: Struct<number[], Struct<number, null>>;
|
|
@@ -26,6 +26,12 @@ export declare function parseAccountData({ discriminator, data, dataHash, }: {
|
|
|
26
26
|
* @param connectionConfig Optional connection config
|
|
27
27
|
*/
|
|
28
28
|
export declare function createRpc(endpointOrWeb3JsConnection?: string | Connection, compressionApiEndpoint?: string, proverEndpoint?: string, config?: ConnectionConfig): Rpc;
|
|
29
|
+
/**
|
|
30
|
+
* Helper function to preprocess the response to wrap numbers as strings
|
|
31
|
+
* @param {string} text - The JSON string to preprocess
|
|
32
|
+
* @returns {string} - The preprocessed JSON string with numbers wrapped as strings
|
|
33
|
+
*/
|
|
34
|
+
export declare function wrapBigNumbersAsStrings(text: string): string;
|
|
29
35
|
/** @internal */
|
|
30
36
|
export declare const rpcRequest: (rpcEndpoint: string, method: string, params?: any, convertToCamelCase?: boolean, debug?: boolean) => Promise<any>;
|
|
31
37
|
/** @internal */
|