@layr-labs/ecloud-sdk 1.0.0-dev.5 → 1.0.0-dev.7
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 -2
- package/dist/billing.cjs +6 -0
- package/dist/billing.cjs.map +1 -1
- package/dist/billing.d.cts +1 -1
- package/dist/billing.d.ts +1 -1
- package/dist/billing.js +6 -0
- package/dist/billing.js.map +1 -1
- package/dist/browser.cjs +1641 -69
- 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 +1640 -69
- package/dist/browser.js.map +1 -1
- package/dist/{compute-9bzsfthb.d.ts → compute-BqouWhdQ.d.ts} +1 -1
- package/dist/{compute-RhRi2H8h.d.cts → compute-DwReciJz.d.cts} +1 -1
- package/dist/compute.cjs +1636 -66
- 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 +1636 -66
- package/dist/compute.js.map +1 -1
- package/dist/{helpers-DEGFGA-T.d.ts → helpers-BSorDsUi.d.ts} +1 -1
- package/dist/{helpers-CqrBJ39N.d.cts → helpers-Dcp_0i_r.d.cts} +1 -1
- package/dist/{index-CLhRJNai.d.cts → index-BVnxNfqb.d.cts} +32 -1
- package/dist/{index-CLhRJNai.d.ts → index-BVnxNfqb.d.ts} +32 -1
- package/dist/index.cjs +1640 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1639 -68
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as EnvironmentConfig, aj as SubscriptionStatus, j as BillingEnvironmentConfig, aa as ProductID, q as CreateSubscriptionOptions, r as CreateSubscriptionResponse, O as GetSubscriptionOptions, ab as ProductSubscriptionResponse, Z as PaymentMethodsResponse, s as CreditPurchaseResponse, p as CreateCouponResponse, T as ListCouponsResponse, N as GetCouponResponse, a as AddAdminResponse, S as ListAdminsResponse, ac as RedeemCouponResponse, L as GasEstimate, U as Logger } from './index-BVnxNfqb.js';
|
|
2
2
|
import { Address, Hex, WalletClient, PublicClient, SignAuthorizationReturnType, Chain } from 'viem';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as EnvironmentConfig, aj as SubscriptionStatus, j as BillingEnvironmentConfig, aa as ProductID, q as CreateSubscriptionOptions, r as CreateSubscriptionResponse, O as GetSubscriptionOptions, ab as ProductSubscriptionResponse, Z as PaymentMethodsResponse, s as CreditPurchaseResponse, p as CreateCouponResponse, T as ListCouponsResponse, N as GetCouponResponse, a as AddAdminResponse, S as ListAdminsResponse, ac as RedeemCouponResponse, L as GasEstimate, U as Logger } from './index-BVnxNfqb.cjs';
|
|
2
2
|
import { Address, Hex, WalletClient, PublicClient, SignAuthorizationReturnType, Chain } from 'viem';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -604,11 +604,20 @@ interface DeployResult {
|
|
|
604
604
|
/** Transaction hash */
|
|
605
605
|
txHash: Hex;
|
|
606
606
|
}
|
|
607
|
+
/**
|
|
608
|
+
* On-chain AppController ABI version for an environment.
|
|
609
|
+
* - "v1.4": 3-field Release struct (sepolia, mainnet-alpha)
|
|
610
|
+
* - "v1.5": 4-field Release struct with containerPolicy (sepolia-dev)
|
|
611
|
+
* Omitted defaults to the latest ("v1.5") in the contract caller.
|
|
612
|
+
*/
|
|
613
|
+
type AppControllerAbiVersion = "v1.4" | "v1.5";
|
|
607
614
|
interface EnvironmentConfig {
|
|
608
615
|
name: string;
|
|
609
616
|
build: "dev" | "prod";
|
|
610
617
|
chainID: bigint;
|
|
611
618
|
appControllerAddress: Address;
|
|
619
|
+
/** Deployed AppController ABI version; selects Release encoding. Defaults to v1.5 when omitted. */
|
|
620
|
+
releaseAbiVersion?: AppControllerAbiVersion;
|
|
612
621
|
permissionControllerAddress: string;
|
|
613
622
|
erc7702DelegatorAddress: string;
|
|
614
623
|
kmsServerURL: string;
|
|
@@ -619,6 +628,27 @@ interface EnvironmentConfig {
|
|
|
619
628
|
baseUsdcCreditsAddress?: Address;
|
|
620
629
|
baseRPCURL?: string;
|
|
621
630
|
}
|
|
631
|
+
interface EnvVar {
|
|
632
|
+
key: string;
|
|
633
|
+
value: string;
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Container runtime policy attached to a release (AppController v1.5.0+).
|
|
637
|
+
*
|
|
638
|
+
* Added to the on-chain `Release` struct in eigenx-contracts (KMS-006). All
|
|
639
|
+
* fields are optional knobs over the container's entrypoint/runtime; an empty
|
|
640
|
+
* policy (see EMPTY_CONTAINER_POLICY) preserves the image's own
|
|
641
|
+
* CMD/ENTRYPOINT/env.
|
|
642
|
+
*/
|
|
643
|
+
interface ContainerPolicy {
|
|
644
|
+
args: string[];
|
|
645
|
+
cmdOverride: string[];
|
|
646
|
+
env: EnvVar[];
|
|
647
|
+
envOverride: EnvVar[];
|
|
648
|
+
restartPolicy: string;
|
|
649
|
+
}
|
|
650
|
+
/** An empty ContainerPolicy — defers entirely to the image defaults. */
|
|
651
|
+
declare const EMPTY_CONTAINER_POLICY: ContainerPolicy;
|
|
622
652
|
interface Release {
|
|
623
653
|
rmsRelease: {
|
|
624
654
|
artifacts: Array<{
|
|
@@ -629,6 +659,7 @@ interface Release {
|
|
|
629
659
|
};
|
|
630
660
|
publicEnv: Uint8Array;
|
|
631
661
|
encryptedEnv: Uint8Array;
|
|
662
|
+
containerPolicy?: ContainerPolicy;
|
|
632
663
|
}
|
|
633
664
|
interface ParsedEnvironment {
|
|
634
665
|
public: Record<string, string>;
|
|
@@ -827,4 +858,4 @@ interface RedeemCouponResponse {
|
|
|
827
858
|
amountCents: number;
|
|
828
859
|
}
|
|
829
860
|
|
|
830
|
-
export { type
|
|
861
|
+
export { type PrepareDeployFromVerifiableBuildOpts as $, type AppId as A, type BatchedDeployResult as B, type CalculateAppIDOptions as C, type DeployAppOptions as D, EMPTY_CONTAINER_POLICY as E, type EnvironmentConfig as F, type EstimateGasOptions as G, type ExecuteDeployBatchedOptions as H, type ExecuteDeployResult as I, type ExecuteDeploySequentialOptions as J, type ExecuteUpgradeResult as K, type GasEstimate as L, type GasOpts as M, type GetCouponResponse as N, type GetSubscriptionOptions as O, type ImageDigestResult as P, type IsDelegatedOptions as Q, type LifecycleOpts as R, type ListAdminsResponse as S, type ListCouponsResponse as T, type Logger as U, type NoActiveSubscriptionResponse as V, type ParsedEnvironment as W, type PaymentIssueResponse as X, type PaymentMethod as Y, type PaymentMethodsResponse as Z, type PrepareDeployBatchOptions as _, type AddAdminResponse as a, type PrepareDeployOpts as a0, type PrepareUpgradeBatchOptions as a1, type PrepareUpgradeFromVerifiableBuildOpts as a2, type PrepareUpgradeOpts as a3, type PreparedDeploy as a4, type PreparedDeployBatch as a5, type PreparedDeployData as a6, type PreparedUpgrade as a7, type PreparedUpgradeBatch as a8, type PreparedUpgradeData as a9, getAppsByDeveloper as aA, getBillingType as aB, getMaxActiveAppsPerUser as aC, isDelegated as aD, type logVisibility as aE, noopLogger as aF, prepareDeployBatch as aG, prepareUpgradeBatch as aH, sendAndWaitForTransaction as aI, supportsEIP5792 as aJ, supportsEIP7702 as aK, suspend as aL, undelegate as aM, upgradeApp as aN, getAppLatestReleaseBlockNumbers as aO, getBlockTimestamps as aP, type ProductID as aa, type ProductSubscriptionResponse as ab, type RedeemCouponResponse as ac, type Release as ad, type SendTransactionOptions as ae, type SequentialDeployResult as af, type SubscribeResponse as ag, type SubscriptionLineItem as ah, type SubscriptionOpts as ai, type SubscriptionStatus as aj, type SuspendOptions as ak, type UndelegateOptions as al, type UpgradeAppOptions as am, type UpgradeAppOpts as an, calculateAppID as ao, deployApp as ap, estimateTransactionGas as aq, executeDeployBatch as ar, executeDeployBatched as as, executeDeploySequential as at, executeUpgradeBatch as au, formatETH as av, getActiveAppCount as aw, getAllAppsByDeveloper as ax, getAppsByBillingAccount as ay, getAppsByCreator as az, type AdminCoupon as b, type AdminUser as c, type AlreadyActiveResponse as d, type AppConfig as e, type AppControllerAbiVersion as f, type AppProfile as g, type AppProfileResponse as h, type AppRecord as i, type BillingEnvironmentConfig as j, type CancelResponse as k, type CancelSuccessResponse as l, type ChainID as m, type CheckoutCreatedResponse as n, type ContainerPolicy as o, type CreateCouponResponse as p, type CreateSubscriptionOptions as q, type CreateSubscriptionResponse as r, type CreditPurchaseResponse as s, type DeployAppOpts as t, type DeployOptions as u, type DeployProgressCallback as v, type DeployResult as w, type DeployStep as x, type DockerImageConfig as y, type EnvVar as z };
|
|
@@ -604,11 +604,20 @@ interface DeployResult {
|
|
|
604
604
|
/** Transaction hash */
|
|
605
605
|
txHash: Hex;
|
|
606
606
|
}
|
|
607
|
+
/**
|
|
608
|
+
* On-chain AppController ABI version for an environment.
|
|
609
|
+
* - "v1.4": 3-field Release struct (sepolia, mainnet-alpha)
|
|
610
|
+
* - "v1.5": 4-field Release struct with containerPolicy (sepolia-dev)
|
|
611
|
+
* Omitted defaults to the latest ("v1.5") in the contract caller.
|
|
612
|
+
*/
|
|
613
|
+
type AppControllerAbiVersion = "v1.4" | "v1.5";
|
|
607
614
|
interface EnvironmentConfig {
|
|
608
615
|
name: string;
|
|
609
616
|
build: "dev" | "prod";
|
|
610
617
|
chainID: bigint;
|
|
611
618
|
appControllerAddress: Address;
|
|
619
|
+
/** Deployed AppController ABI version; selects Release encoding. Defaults to v1.5 when omitted. */
|
|
620
|
+
releaseAbiVersion?: AppControllerAbiVersion;
|
|
612
621
|
permissionControllerAddress: string;
|
|
613
622
|
erc7702DelegatorAddress: string;
|
|
614
623
|
kmsServerURL: string;
|
|
@@ -619,6 +628,27 @@ interface EnvironmentConfig {
|
|
|
619
628
|
baseUsdcCreditsAddress?: Address;
|
|
620
629
|
baseRPCURL?: string;
|
|
621
630
|
}
|
|
631
|
+
interface EnvVar {
|
|
632
|
+
key: string;
|
|
633
|
+
value: string;
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Container runtime policy attached to a release (AppController v1.5.0+).
|
|
637
|
+
*
|
|
638
|
+
* Added to the on-chain `Release` struct in eigenx-contracts (KMS-006). All
|
|
639
|
+
* fields are optional knobs over the container's entrypoint/runtime; an empty
|
|
640
|
+
* policy (see EMPTY_CONTAINER_POLICY) preserves the image's own
|
|
641
|
+
* CMD/ENTRYPOINT/env.
|
|
642
|
+
*/
|
|
643
|
+
interface ContainerPolicy {
|
|
644
|
+
args: string[];
|
|
645
|
+
cmdOverride: string[];
|
|
646
|
+
env: EnvVar[];
|
|
647
|
+
envOverride: EnvVar[];
|
|
648
|
+
restartPolicy: string;
|
|
649
|
+
}
|
|
650
|
+
/** An empty ContainerPolicy — defers entirely to the image defaults. */
|
|
651
|
+
declare const EMPTY_CONTAINER_POLICY: ContainerPolicy;
|
|
622
652
|
interface Release {
|
|
623
653
|
rmsRelease: {
|
|
624
654
|
artifacts: Array<{
|
|
@@ -629,6 +659,7 @@ interface Release {
|
|
|
629
659
|
};
|
|
630
660
|
publicEnv: Uint8Array;
|
|
631
661
|
encryptedEnv: Uint8Array;
|
|
662
|
+
containerPolicy?: ContainerPolicy;
|
|
632
663
|
}
|
|
633
664
|
interface ParsedEnvironment {
|
|
634
665
|
public: Record<string, string>;
|
|
@@ -827,4 +858,4 @@ interface RedeemCouponResponse {
|
|
|
827
858
|
amountCents: number;
|
|
828
859
|
}
|
|
829
860
|
|
|
830
|
-
export { type
|
|
861
|
+
export { type PrepareDeployFromVerifiableBuildOpts as $, type AppId as A, type BatchedDeployResult as B, type CalculateAppIDOptions as C, type DeployAppOptions as D, EMPTY_CONTAINER_POLICY as E, type EnvironmentConfig as F, type EstimateGasOptions as G, type ExecuteDeployBatchedOptions as H, type ExecuteDeployResult as I, type ExecuteDeploySequentialOptions as J, type ExecuteUpgradeResult as K, type GasEstimate as L, type GasOpts as M, type GetCouponResponse as N, type GetSubscriptionOptions as O, type ImageDigestResult as P, type IsDelegatedOptions as Q, type LifecycleOpts as R, type ListAdminsResponse as S, type ListCouponsResponse as T, type Logger as U, type NoActiveSubscriptionResponse as V, type ParsedEnvironment as W, type PaymentIssueResponse as X, type PaymentMethod as Y, type PaymentMethodsResponse as Z, type PrepareDeployBatchOptions as _, type AddAdminResponse as a, type PrepareDeployOpts as a0, type PrepareUpgradeBatchOptions as a1, type PrepareUpgradeFromVerifiableBuildOpts as a2, type PrepareUpgradeOpts as a3, type PreparedDeploy as a4, type PreparedDeployBatch as a5, type PreparedDeployData as a6, type PreparedUpgrade as a7, type PreparedUpgradeBatch as a8, type PreparedUpgradeData as a9, getAppsByDeveloper as aA, getBillingType as aB, getMaxActiveAppsPerUser as aC, isDelegated as aD, type logVisibility as aE, noopLogger as aF, prepareDeployBatch as aG, prepareUpgradeBatch as aH, sendAndWaitForTransaction as aI, supportsEIP5792 as aJ, supportsEIP7702 as aK, suspend as aL, undelegate as aM, upgradeApp as aN, getAppLatestReleaseBlockNumbers as aO, getBlockTimestamps as aP, type ProductID as aa, type ProductSubscriptionResponse as ab, type RedeemCouponResponse as ac, type Release as ad, type SendTransactionOptions as ae, type SequentialDeployResult as af, type SubscribeResponse as ag, type SubscriptionLineItem as ah, type SubscriptionOpts as ai, type SubscriptionStatus as aj, type SuspendOptions as ak, type UndelegateOptions as al, type UpgradeAppOptions as am, type UpgradeAppOpts as an, calculateAppID as ao, deployApp as ap, estimateTransactionGas as aq, executeDeployBatch as ar, executeDeployBatched as as, executeDeploySequential as at, executeUpgradeBatch as au, formatETH as av, getActiveAppCount as aw, getAllAppsByDeveloper as ax, getAppsByBillingAccount as ay, getAppsByCreator as az, type AdminCoupon as b, type AdminUser as c, type AlreadyActiveResponse as d, type AppConfig as e, type AppControllerAbiVersion as f, type AppProfile as g, type AppProfileResponse as h, type AppRecord as i, type BillingEnvironmentConfig as j, type CancelResponse as k, type CancelSuccessResponse as l, type ChainID as m, type CheckoutCreatedResponse as n, type ContainerPolicy as o, type CreateCouponResponse as p, type CreateSubscriptionOptions as q, type CreateSubscriptionResponse as r, type CreditPurchaseResponse as s, type DeployAppOpts as t, type DeployOptions as u, type DeployProgressCallback as v, type DeployResult as w, type DeployStep as x, type DockerImageConfig as y, type EnvVar as z };
|