@layr-labs/ecloud-sdk 0.4.0-dev.0 → 0.4.0-dev.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/VERSION +2 -0
- package/dist/attest.cjs +185 -0
- package/dist/attest.cjs.map +1 -0
- package/dist/attest.d.cts +28 -0
- package/dist/attest.d.ts +28 -0
- package/dist/attest.js +147 -0
- package/dist/attest.js.map +1 -0
- package/dist/billing.cjs +1380 -4
- package/dist/billing.cjs.map +1 -1
- package/dist/billing.d.cts +25 -3
- package/dist/billing.d.ts +25 -3
- package/dist/billing.js +1380 -4
- package/dist/billing.js.map +1 -1
- package/dist/browser.cjs +3 -2
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +4 -4
- package/dist/browser.d.ts +4 -4
- package/dist/browser.js +3 -2
- package/dist/browser.js.map +1 -1
- package/dist/{compute-DccJLbtV.d.cts → compute-BRDk7QM4.d.cts} +1 -1
- package/dist/{compute-DlilmZYC.d.ts → compute-CC55YQ_a.d.ts} +1 -1
- package/dist/compute.cjs +8 -3
- package/dist/compute.cjs.map +1 -1
- package/dist/compute.d.cts +2 -2
- package/dist/compute.d.ts +2 -2
- package/dist/compute.js +8 -3
- package/dist/compute.js.map +1 -1
- package/dist/{helpers-D_AbDeP4.d.ts → helpers-BcoV07Me.d.ts} +1 -1
- package/dist/{helpers-BNeMZYcY.d.cts → helpers-DdtPaQr9.d.cts} +1 -1
- package/dist/{index-DD7ZLbqD.d.cts → index-BEbhrwWl.d.cts} +1 -0
- package/dist/{index-DD7ZLbqD.d.ts → index-BEbhrwWl.d.ts} +1 -0
- package/dist/index.cjs +330 -95
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +328 -95
- package/dist/index.js.map +1 -1
- package/package.json +6 -1
- package/tools/kms-client-linux-amd64 +0 -0
- package/tools/tls-keygen-linux-amd64 +0 -0
package/dist/compute.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as AppModule, j as AppModuleConfig, C as ComputeModule, d as ComputeModuleConfig, i as createAppModule, b as createComputeModule, e as encodeStartAppData, f as encodeStopAppData, h as encodeTerminateAppData } from './compute-
|
|
1
|
+
export { A as AppModule, j as AppModuleConfig, C as ComputeModule, d as ComputeModuleConfig, i as createAppModule, b as createComputeModule, e as encodeStartAppData, f as encodeStopAppData, h as encodeTerminateAppData } from './compute-BRDk7QM4.cjs';
|
|
2
2
|
import 'viem';
|
|
3
|
-
import './index-
|
|
3
|
+
import './index-BEbhrwWl.cjs';
|
package/dist/compute.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as AppModule, j as AppModuleConfig, C as ComputeModule, d as ComputeModuleConfig, i as createAppModule, b as createComputeModule, e as encodeStartAppData, f as encodeStopAppData, h as encodeTerminateAppData } from './compute-
|
|
1
|
+
export { A as AppModule, j as AppModuleConfig, C as ComputeModule, d as ComputeModuleConfig, i as createAppModule, b as createComputeModule, e as encodeStartAppData, f as encodeStopAppData, h as encodeTerminateAppData } from './compute-CC55YQ_a.js';
|
|
2
2
|
import 'viem';
|
|
3
|
-
import './index-
|
|
3
|
+
import './index-BEbhrwWl.js';
|
package/dist/compute.js
CHANGED
|
@@ -541,6 +541,10 @@ setup_tls() {
|
|
|
541
541
|
# Run TLS setup
|
|
542
542
|
setup_tls
|
|
543
543
|
|
|
544
|
+
# Export KMS variables for attestation-based JWT auth
|
|
545
|
+
export KMS_SERVER_URL="{{kmsServerURL}}"
|
|
546
|
+
export KMS_PUBLIC_KEY="$(cat /usr/local/bin/kms-signing-public-key.pem)"
|
|
547
|
+
|
|
544
548
|
echo "compute-source-env.sh: Environment sourced."
|
|
545
549
|
|
|
546
550
|
# Drop privileges to original user for the application command
|
|
@@ -4663,7 +4667,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
|
|
|
4663
4667
|
var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
|
|
4664
4668
|
var CanUpdateAppProfilePermission = "0x036fef61";
|
|
4665
4669
|
function getDefaultClientId() {
|
|
4666
|
-
const version = true ? "0.4.0-dev.
|
|
4670
|
+
const version = true ? "0.4.0-dev.2" : "0.0.0";
|
|
4667
4671
|
return `ecloud-sdk/v${version}`;
|
|
4668
4672
|
}
|
|
4669
4673
|
var UserApiClient = class {
|
|
@@ -5235,7 +5239,8 @@ var ENVIRONMENTS = {
|
|
|
5235
5239
|
erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
|
|
5236
5240
|
kmsServerURL: "http://10.128.15.203:8080",
|
|
5237
5241
|
userApiServerURL: "https://userapi-compute-sepolia-prod.eigencloud.xyz",
|
|
5238
|
-
defaultRPCURL: "https://ethereum-sepolia-rpc.publicnode.com"
|
|
5242
|
+
defaultRPCURL: "https://ethereum-sepolia-rpc.publicnode.com",
|
|
5243
|
+
billingRPCURL: "https://ethereum-rpc.publicnode.com"
|
|
5239
5244
|
},
|
|
5240
5245
|
"mainnet-alpha": {
|
|
5241
5246
|
name: "mainnet-alpha",
|
|
@@ -5413,7 +5418,7 @@ function getPostHogAPIKey() {
|
|
|
5413
5418
|
if (process.env.ECLOUD_POSTHOG_KEY) {
|
|
5414
5419
|
return process.env.ECLOUD_POSTHOG_KEY;
|
|
5415
5420
|
}
|
|
5416
|
-
return
|
|
5421
|
+
return true ? "phc_BiKfywNft5iBI8N7MxmuVCkb4GGZj4mDFXYPmOPUAI8" : void 0;
|
|
5417
5422
|
}
|
|
5418
5423
|
function getPostHogEndpoint() {
|
|
5419
5424
|
return process.env.ECLOUD_POSTHOG_ENDPOINT || "https://us.i.posthog.com";
|