@layr-labs/ecloud-sdk 0.4.0-dev.1 → 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 +16 -10
- package/tools/kms-client-linux-amd64 +0 -0
- package/tools/tls-keygen-linux-amd64 +0 -0
- package/LICENSE +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, WalletClient, PublicClient, Hex } from 'viem';
|
|
2
|
-
import { ad as Logger, a8 as EnvironmentConfig, Q as DeployAppOpts, A as AppId, R as UpgradeAppOpts, T as PrepareDeployOpts, a1 as PreparedDeploy, G as GasEstimate, W as PrepareDeployFromVerifiableBuildOpts, Z as ExecuteDeployResult, V as PrepareUpgradeOpts, a2 as PreparedUpgrade, X as PrepareUpgradeFromVerifiableBuildOpts, _ as ExecuteUpgradeResult, ae as AppProfile, af as AppProfileResponse, a3 as LifecycleOpts, y as AppConfig } from './index-
|
|
2
|
+
import { ad as Logger, a8 as EnvironmentConfig, Q as DeployAppOpts, A as AppId, R as UpgradeAppOpts, T as PrepareDeployOpts, a1 as PreparedDeploy, G as GasEstimate, W as PrepareDeployFromVerifiableBuildOpts, Z as ExecuteDeployResult, V as PrepareUpgradeOpts, a2 as PreparedUpgrade, X as PrepareUpgradeFromVerifiableBuildOpts, _ as ExecuteUpgradeResult, ae as AppProfile, af as AppProfileResponse, a3 as LifecycleOpts, y as AppConfig } from './index-BEbhrwWl.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Create command
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, WalletClient, PublicClient, Hex } from 'viem';
|
|
2
|
-
import { ad as Logger, a8 as EnvironmentConfig, Q as DeployAppOpts, A as AppId, R as UpgradeAppOpts, T as PrepareDeployOpts, a1 as PreparedDeploy, G as GasEstimate, W as PrepareDeployFromVerifiableBuildOpts, Z as ExecuteDeployResult, V as PrepareUpgradeOpts, a2 as PreparedUpgrade, X as PrepareUpgradeFromVerifiableBuildOpts, _ as ExecuteUpgradeResult, ae as AppProfile, af as AppProfileResponse, a3 as LifecycleOpts, y as AppConfig } from './index-
|
|
2
|
+
import { ad as Logger, a8 as EnvironmentConfig, Q as DeployAppOpts, A as AppId, R as UpgradeAppOpts, T as PrepareDeployOpts, a1 as PreparedDeploy, G as GasEstimate, W as PrepareDeployFromVerifiableBuildOpts, Z as ExecuteDeployResult, V as PrepareUpgradeOpts, a2 as PreparedUpgrade, X as PrepareUpgradeFromVerifiableBuildOpts, _ as ExecuteUpgradeResult, ae as AppProfile, af as AppProfileResponse, a3 as LifecycleOpts, y as AppConfig } from './index-BEbhrwWl.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Create command
|
package/dist/compute.cjs
CHANGED
|
@@ -576,6 +576,10 @@ setup_tls() {
|
|
|
576
576
|
# Run TLS setup
|
|
577
577
|
setup_tls
|
|
578
578
|
|
|
579
|
+
# Export KMS variables for attestation-based JWT auth
|
|
580
|
+
export KMS_SERVER_URL="{{kmsServerURL}}"
|
|
581
|
+
export KMS_PUBLIC_KEY="$(cat /usr/local/bin/kms-signing-public-key.pem)"
|
|
582
|
+
|
|
579
583
|
echo "compute-source-env.sh: Environment sourced."
|
|
580
584
|
|
|
581
585
|
# Drop privileges to original user for the application command
|
|
@@ -4699,7 +4703,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
|
|
|
4699
4703
|
var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
|
|
4700
4704
|
var CanUpdateAppProfilePermission = "0x036fef61";
|
|
4701
4705
|
function getDefaultClientId() {
|
|
4702
|
-
const version = true ? "0.4.0-dev.
|
|
4706
|
+
const version = true ? "0.4.0-dev.2" : "0.0.0";
|
|
4703
4707
|
return `ecloud-sdk/v${version}`;
|
|
4704
4708
|
}
|
|
4705
4709
|
var UserApiClient = class {
|
|
@@ -5271,7 +5275,8 @@ var ENVIRONMENTS = {
|
|
|
5271
5275
|
erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
|
|
5272
5276
|
kmsServerURL: "http://10.128.15.203:8080",
|
|
5273
5277
|
userApiServerURL: "https://userapi-compute-sepolia-prod.eigencloud.xyz",
|
|
5274
|
-
defaultRPCURL: "https://ethereum-sepolia-rpc.publicnode.com"
|
|
5278
|
+
defaultRPCURL: "https://ethereum-sepolia-rpc.publicnode.com",
|
|
5279
|
+
billingRPCURL: "https://ethereum-rpc.publicnode.com"
|
|
5275
5280
|
},
|
|
5276
5281
|
"mainnet-alpha": {
|
|
5277
5282
|
name: "mainnet-alpha",
|
|
@@ -5449,7 +5454,7 @@ function getPostHogAPIKey() {
|
|
|
5449
5454
|
if (process.env.ECLOUD_POSTHOG_KEY) {
|
|
5450
5455
|
return process.env.ECLOUD_POSTHOG_KEY;
|
|
5451
5456
|
}
|
|
5452
|
-
return
|
|
5457
|
+
return true ? "phc_BiKfywNft5iBI8N7MxmuVCkb4GGZj4mDFXYPmOPUAI8" : void 0;
|
|
5453
5458
|
}
|
|
5454
5459
|
function getPostHogEndpoint() {
|
|
5455
5460
|
return process.env.ECLOUD_POSTHOG_ENDPOINT || "https://us.i.posthog.com";
|