@inco/js 0.1.23 → 0.1.25
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/encryption/index.cjs +1702 -1
- package/dist/encryption/index.mjs +1702 -1
- package/dist/generated/abis/addTwo.d.ts +8 -0
- package/dist/generated/abis/index.cjs +11 -0
- package/dist/generated/abis/index.mjs +11 -0
- package/dist/index.cjs +1949 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1949 -1
- package/dist/lite/index.cjs +15096 -13293
- package/dist/lite/index.d.ts +3 -2
- package/dist/lite/index.mjs +15090 -13287
- package/dist/lite/lightning.d.ts +12 -3
- package/dist/lite/reencrypt.d.ts +2 -2
- package/dist/local/index.cjs +1702 -1
- package/dist/local/index.mjs +1702 -1
- package/dist/reencryption/index.cjs +1702 -1
- package/dist/reencryption/index.mjs +1702 -1
- package/package.json +1 -1
package/dist/lite/lightning.d.ts
CHANGED
@@ -2,7 +2,6 @@ import { Account, Chain, Transport, WalletClient } from 'viem';
|
|
2
2
|
import { HexString } from '../binary';
|
3
3
|
import { EciesScheme } from '../encryption';
|
4
4
|
import { lightningDeployments } from '../generated/lightning';
|
5
|
-
import { LocalNodeEnv } from '../local';
|
6
5
|
import type { Reencryptor } from '../reencryption';
|
7
6
|
type TupleToUnion<T> = T extends readonly unknown[] ? T[number] : never;
|
8
7
|
type ToBigInt<T extends string> = T extends `${infer N extends bigint}` ? N : never;
|
@@ -38,14 +37,24 @@ export declare class Lightning<T extends DeploymentSlice> {
|
|
38
37
|
private readonly encryptor;
|
39
38
|
private readonly ephemeralKeypair;
|
40
39
|
private readonly kmsClient;
|
41
|
-
constructor(
|
40
|
+
private constructor();
|
42
41
|
/**
|
43
42
|
* Get a Lightning deployment by name or executor address on a particular chain.
|
44
43
|
*
|
45
44
|
* @param id this is an object containing either the pair of name and chainId or the executorAddress and chainId
|
46
45
|
*/
|
47
46
|
static at(id: DeploymentId): Lightning<Deployment>;
|
48
|
-
|
47
|
+
/**
|
48
|
+
* Get a Lightning deployment for a local or custom node
|
49
|
+
*
|
50
|
+
* @param executorAddress the address of the executor contract on the host chain
|
51
|
+
* @param eciesPublicKey the public ECIES key of the Lightning deployment used for encryption
|
52
|
+
* @param chainId the chainId of the host chain
|
53
|
+
* @param covalidatorUrl the gRPC endpoint of the covalidator
|
54
|
+
*/
|
55
|
+
static custom({ executorAddress, eciesPublicKey, chainId, covalidatorUrl, }: {
|
56
|
+
executorAddress: string;
|
57
|
+
eciesPublicKey: string;
|
49
58
|
chainId: bigint;
|
50
59
|
covalidatorUrl: string;
|
51
60
|
}): Lightning<DeploymentSlice>;
|
package/dist/lite/reencrypt.d.ts
CHANGED
@@ -19,5 +19,5 @@ export declare function getKmsClient(kmsConnectRpcEndpointOrClient: string | Cli
|
|
19
19
|
export declare function decryptGrpcResponse<T extends SupportedFheType>(response: ReencryptResponse, ephemeralKeypair: Secp256k1Keypair, handle: Handle): Promise<import("../encryption/encryption").PlaintextOf<1, T>>;
|
20
20
|
export declare function defaultCovalidatorGrpc(chain: SupportedChain): string;
|
21
21
|
export declare function pulumiCovalidatorGrpc(chain: SupportedChain): string;
|
22
|
-
export declare function
|
23
|
-
export declare function
|
22
|
+
export declare function lightningDevnetCovalidatorGrpc(chain: SupportedChain): string;
|
23
|
+
export declare function lightningTestnetCovalidatorGrpc(chain: SupportedChain): string;
|