@layr-labs/ecloud-sdk 0.4.0 → 0.4.1-dev
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 +4 -1
- 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 +4 -1
- package/dist/billing.js.map +1 -1
- package/dist/browser.cjs +6 -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 +6 -2
- package/dist/browser.js.map +1 -1
- package/dist/{compute-CC55YQ_a.d.ts → compute-BurtCz2l.d.ts} +1 -1
- package/dist/{compute-BRDk7QM4.d.cts → compute-CGbWIlic.d.cts} +1 -1
- package/dist/compute.cjs +6 -2
- 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 +6 -2
- package/dist/compute.js.map +1 -1
- package/dist/{helpers-BcoV07Me.d.ts → helpers-B3ZK7w_7.d.ts} +1 -1
- package/dist/{helpers-DdtPaQr9.d.cts → helpers-CXevm4tr.d.cts} +1 -1
- package/dist/{index-BEbhrwWl.d.cts → index-0GwdZDmQ.d.cts} +2 -0
- package/dist/{index-BEbhrwWl.d.ts → index-0GwdZDmQ.d.ts} +2 -0
- package/dist/index.cjs +6 -2
- 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 +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a8 as EnvironmentConfig, ai as SubscriptionStatus, a7 as BillingEnvironmentConfig, ag as ProductID, ak as CreateSubscriptionOptions, am as CreateSubscriptionResponse, al as GetSubscriptionOptions, au as ProductSubscriptionResponse, G as GasEstimate, ad as Logger } from './index-
|
|
1
|
+
import { a8 as EnvironmentConfig, ai as SubscriptionStatus, a7 as BillingEnvironmentConfig, ag as ProductID, ak as CreateSubscriptionOptions, am as CreateSubscriptionResponse, al as GetSubscriptionOptions, au as ProductSubscriptionResponse, G as GasEstimate, ad as Logger } from './index-0GwdZDmQ.js';
|
|
2
2
|
import { Address, Hex, WalletClient, PublicClient, SignAuthorizationReturnType, Chain } from 'viem';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a8 as EnvironmentConfig, ai as SubscriptionStatus, a7 as BillingEnvironmentConfig, ag as ProductID, ak as CreateSubscriptionOptions, am as CreateSubscriptionResponse, al as GetSubscriptionOptions, au as ProductSubscriptionResponse, G as GasEstimate, ad as Logger } from './index-
|
|
1
|
+
import { a8 as EnvironmentConfig, ai as SubscriptionStatus, a7 as BillingEnvironmentConfig, ag as ProductID, ak as CreateSubscriptionOptions, am as CreateSubscriptionResponse, al as GetSubscriptionOptions, au as ProductSubscriptionResponse, G as GasEstimate, ad as Logger } from './index-0GwdZDmQ.cjs';
|
|
2
2
|
import { Address, Hex, WalletClient, PublicClient, SignAuthorizationReturnType, Chain } from 'viem';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -34,6 +34,8 @@ interface GasEstimate {
|
|
|
34
34
|
maxCostWei: bigint;
|
|
35
35
|
/** Maximum cost formatted as ETH string */
|
|
36
36
|
maxCostEth: string;
|
|
37
|
+
/** Optional nonce override (for replacing stuck transactions) */
|
|
38
|
+
nonce?: number;
|
|
37
39
|
}
|
|
38
40
|
/**
|
|
39
41
|
* Options for estimating transaction gas
|
|
@@ -34,6 +34,8 @@ interface GasEstimate {
|
|
|
34
34
|
maxCostWei: bigint;
|
|
35
35
|
/** Maximum cost formatted as ETH string */
|
|
36
36
|
maxCostEth: string;
|
|
37
|
+
/** Optional nonce override (for replacing stuck transactions) */
|
|
38
|
+
nonce?: number;
|
|
37
39
|
}
|
|
38
40
|
/**
|
|
39
41
|
* Options for estimating transaction gas
|
package/dist/index.cjs
CHANGED
|
@@ -2604,6 +2604,9 @@ async function executeBatch(options, logger = noopLogger) {
|
|
|
2604
2604
|
if (gas?.maxPriorityFeePerGas) {
|
|
2605
2605
|
txRequest.maxPriorityFeePerGas = gas.maxPriorityFeePerGas;
|
|
2606
2606
|
}
|
|
2607
|
+
if (gas?.nonce != null) {
|
|
2608
|
+
txRequest.nonce = gas.nonce;
|
|
2609
|
+
}
|
|
2607
2610
|
const hash = await walletClient.sendTransaction(txRequest);
|
|
2608
2611
|
logger.info(`Transaction sent: ${hash}`);
|
|
2609
2612
|
const receipt = await waitForReceipt(publicClient, hash, logger);
|
|
@@ -4650,6 +4653,7 @@ ${pendingMessage}`);
|
|
|
4650
4653
|
...gas?.maxPriorityFeePerGas && {
|
|
4651
4654
|
maxPriorityFeePerGas: gas.maxPriorityFeePerGas
|
|
4652
4655
|
},
|
|
4656
|
+
...gas?.nonce != null && { nonce: gas.nonce },
|
|
4653
4657
|
chain
|
|
4654
4658
|
});
|
|
4655
4659
|
logger.info(`Transaction sent: ${hash}`);
|
|
@@ -4982,7 +4986,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
|
|
|
4982
4986
|
var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
|
|
4983
4987
|
var CanUpdateAppProfilePermission = "0x036fef61";
|
|
4984
4988
|
function getDefaultClientId() {
|
|
4985
|
-
const version = true ? "0.4.
|
|
4989
|
+
const version = true ? "0.4.1-dev" : "0.0.0";
|
|
4986
4990
|
return `ecloud-sdk/v${version}`;
|
|
4987
4991
|
}
|
|
4988
4992
|
var UserApiClient = class {
|
|
@@ -5830,7 +5834,7 @@ function getBillingEnvironmentConfig(build) {
|
|
|
5830
5834
|
return config;
|
|
5831
5835
|
}
|
|
5832
5836
|
function getBuildType() {
|
|
5833
|
-
const buildTimeType = true ? "
|
|
5837
|
+
const buildTimeType = true ? "dev"?.toLowerCase() : void 0;
|
|
5834
5838
|
const runtimeType = process.env.BUILD_TYPE?.toLowerCase();
|
|
5835
5839
|
const buildType = buildTimeType || runtimeType;
|
|
5836
5840
|
if (buildType === "dev") {
|