@inco/js 0.1.29 → 0.1.30
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.
@@ -3,4 +3,5 @@ export declare const localNodeLightningConfig: {
|
|
3
3
|
readonly eciesPublicKey: "0x026812a7776af85b464bbcffb2227f8859338c4726f896cf47a12406467f9dc8ab";
|
4
4
|
readonly chainId: 31337;
|
5
5
|
readonly covalidatorUrl: "http://localhost:50055";
|
6
|
+
readonly senderPrivateKey: "0x5e537a659b227da26561c436c9b8b9e286fe99a6f462b0a282bfbec9595dee26";
|
6
7
|
};
|
package/dist/lite/index.cjs
CHANGED
@@ -47303,7 +47303,8 @@ var localNodeLightningConfig = {
|
|
47303
47303
|
executorAddress: "0x63D8135aF4D393B1dB43B649010c8D3EE19FC9fd",
|
47304
47304
|
eciesPublicKey: "0x026812a7776af85b464bbcffb2227f8859338c4726f896cf47a12406467f9dc8ab",
|
47305
47305
|
chainId: 31337,
|
47306
|
-
covalidatorUrl: "http://localhost:50055"
|
47306
|
+
covalidatorUrl: "http://localhost:50055",
|
47307
|
+
senderPrivateKey: "0x5e537a659b227da26561c436c9b8b9e286fe99a6f462b0a282bfbec9595dee26"
|
47307
47308
|
};
|
47308
47309
|
|
47309
47310
|
// ../node_modules/@connectrpc/connect/dist/esm/code.js
|
@@ -52725,12 +52726,8 @@ class Lightning {
|
|
52725
52726
|
}
|
52726
52727
|
return new Lightning(deployment, Lightning.getCovalidatorUrl(deployment));
|
52727
52728
|
}
|
52728
|
-
static custom(
|
52729
|
-
return new Lightning(
|
52730
|
-
chainId,
|
52731
|
-
executorAddress,
|
52732
|
-
eciesPublicKey
|
52733
|
-
}, covalidatorUrl);
|
52729
|
+
static custom(config2) {
|
52730
|
+
return new Lightning(config2, config2.covalidatorUrl);
|
52734
52731
|
}
|
52735
52732
|
static latestDeployment(pepper, chainId) {
|
52736
52733
|
const latestByPepper = lightningDeployments.find((d) => d.pepper === pepper && d.chainId === chainId);
|
package/dist/lite/index.mjs
CHANGED
@@ -66127,7 +66127,8 @@ var localNodeLightningConfig = {
|
|
66127
66127
|
executorAddress: "0x63D8135aF4D393B1dB43B649010c8D3EE19FC9fd",
|
66128
66128
|
eciesPublicKey: "0x026812a7776af85b464bbcffb2227f8859338c4726f896cf47a12406467f9dc8ab",
|
66129
66129
|
chainId: 31337,
|
66130
|
-
covalidatorUrl: "http://localhost:50055"
|
66130
|
+
covalidatorUrl: "http://localhost:50055",
|
66131
|
+
senderPrivateKey: "0x5e537a659b227da26561c436c9b8b9e286fe99a6f462b0a282bfbec9595dee26"
|
66131
66132
|
};
|
66132
66133
|
|
66133
66134
|
// ../node_modules/@connectrpc/connect/dist/esm/code.js
|
@@ -71549,12 +71550,8 @@ class Lightning {
|
|
71549
71550
|
}
|
71550
71551
|
return new Lightning(deployment, Lightning.getCovalidatorUrl(deployment));
|
71551
71552
|
}
|
71552
|
-
static custom(
|
71553
|
-
return new Lightning(
|
71554
|
-
chainId,
|
71555
|
-
executorAddress,
|
71556
|
-
eciesPublicKey
|
71557
|
-
}, covalidatorUrl);
|
71553
|
+
static custom(config2) {
|
71554
|
+
return new Lightning(config2, config2.covalidatorUrl);
|
71558
71555
|
}
|
71559
71556
|
static latestDeployment(pepper, chainId) {
|
71560
71557
|
const latestByPepper = lightningDeployments.find((d) => d.pepper === pepper && d.chainId === chainId);
|
package/dist/lite/lightning.d.ts
CHANGED
@@ -26,6 +26,7 @@ export type CustomConfig = {
|
|
26
26
|
eciesPublicKey: string;
|
27
27
|
chainId: number;
|
28
28
|
covalidatorUrl: string;
|
29
|
+
senderPrivateKey?: HexString;
|
29
30
|
};
|
30
31
|
/**
|
31
32
|
* The Lightning class provides a convenient way to interact with the Inco Lightning contract by binding to a specific
|
@@ -65,12 +66,10 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
65
66
|
/**
|
66
67
|
* Get a Lightning deployment for a local or custom node
|
67
68
|
*
|
68
|
-
* @param
|
69
|
-
*
|
70
|
-
* @param chainId the chainId of the host chain
|
71
|
-
* @param covalidatorUrl the gRPC endpoint of the covalidator
|
69
|
+
* @param config this is an object containing the executorAddress, eciesPublicKey, chainId and covalidatorUrl.
|
70
|
+
* additional fields past will be made available as part of the `deployment` property.
|
72
71
|
*/
|
73
|
-
static custom
|
72
|
+
static custom<T extends CustomConfig>(config: T): Lightning<DeploymentSlice & T>;
|
74
73
|
/**
|
75
74
|
* Get the latest deployment for a given pepper, which usually denotes a family of deployments distinct from their
|
76
75
|
* version such as 'devnet', 'testnet', 'mainnet', etc.
|