@actalink/commonlib 0.0.17 → 0.0.18
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/dist/index.cjs +14 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2382,12 +2382,16 @@ var returnEnvUrl = (chainId) => {
|
|
|
2382
2382
|
};
|
|
2383
2383
|
var ActaBatch = class {
|
|
2384
2384
|
constructor(parameters) {
|
|
2385
|
-
|
|
2385
|
+
var _a;
|
|
2386
|
+
this.APIkey = (_a = parameters.APIKey) != null ? _a : void 0;
|
|
2386
2387
|
}
|
|
2387
2388
|
createSession(params) {
|
|
2388
2389
|
return __async(this, null, function* () {
|
|
2389
2390
|
try {
|
|
2390
2391
|
const { instructionId, name, signerAddress, token: token2, chainId } = params;
|
|
2392
|
+
if (!this.APIkey) {
|
|
2393
|
+
throw new Error("No API key provided.");
|
|
2394
|
+
}
|
|
2391
2395
|
if (!signerAddress || signerAddress === import_viem7.zeroAddress) {
|
|
2392
2396
|
throw new Error("Signer address is required.");
|
|
2393
2397
|
}
|
|
@@ -2434,6 +2438,9 @@ var ActaBatch = class {
|
|
|
2434
2438
|
walletClient,
|
|
2435
2439
|
instructionId
|
|
2436
2440
|
} = parameters;
|
|
2441
|
+
if (!this.APIkey) {
|
|
2442
|
+
throw new Error("No API key provided.");
|
|
2443
|
+
}
|
|
2437
2444
|
let isFeeInclusive = false;
|
|
2438
2445
|
if (feeInclusive) {
|
|
2439
2446
|
isFeeInclusive = true;
|
|
@@ -2517,6 +2524,9 @@ var ActaBatch = class {
|
|
|
2517
2524
|
allowMaxTokenApproval,
|
|
2518
2525
|
instructionId
|
|
2519
2526
|
} = params;
|
|
2527
|
+
if (!this.APIkey) {
|
|
2528
|
+
throw new Error("No API key provided.");
|
|
2529
|
+
}
|
|
2520
2530
|
let isFeeInclusive = false;
|
|
2521
2531
|
if (feeInclusive) {
|
|
2522
2532
|
isFeeInclusive = true;
|
|
@@ -2603,6 +2613,9 @@ var ActaBatch = class {
|
|
|
2603
2613
|
instructionId,
|
|
2604
2614
|
executionTime
|
|
2605
2615
|
} = params;
|
|
2616
|
+
if (!this.APIkey) {
|
|
2617
|
+
throw new Error("No API key provided.");
|
|
2618
|
+
}
|
|
2606
2619
|
let isFeeInclusive = false;
|
|
2607
2620
|
if (feeInclusive) {
|
|
2608
2621
|
isFeeInclusive = true;
|
package/dist/index.d.cts
CHANGED
|
@@ -67,7 +67,7 @@ interface BillingClassParams extends AbstractPaymentParams {
|
|
|
67
67
|
allowMaxTokenApproval?: boolean;
|
|
68
68
|
}
|
|
69
69
|
interface BatchClassParams {
|
|
70
|
-
APIKey
|
|
70
|
+
APIKey?: string;
|
|
71
71
|
}
|
|
72
72
|
type EstimateSinglePaymentGasParameters = Omit<AbstractPaymentParams, "connectorType" | "signer" | "walletClient" | "serviceType" | "paymentType" | "count" | "intervalUnit" | "startDate" | "endDate" | "serviceUrl" | "serviceParams" | "serviceSessionParams"> & {
|
|
73
73
|
feebps: 20 | 10 | 15;
|
package/dist/index.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ interface BillingClassParams extends AbstractPaymentParams {
|
|
|
67
67
|
allowMaxTokenApproval?: boolean;
|
|
68
68
|
}
|
|
69
69
|
interface BatchClassParams {
|
|
70
|
-
APIKey
|
|
70
|
+
APIKey?: string;
|
|
71
71
|
}
|
|
72
72
|
type EstimateSinglePaymentGasParameters = Omit<AbstractPaymentParams, "connectorType" | "signer" | "walletClient" | "serviceType" | "paymentType" | "count" | "intervalUnit" | "startDate" | "endDate" | "serviceUrl" | "serviceParams" | "serviceSessionParams"> & {
|
|
73
73
|
feebps: 20 | 10 | 15;
|
package/dist/index.js
CHANGED
|
@@ -2314,12 +2314,16 @@ var returnEnvUrl = (chainId) => {
|
|
|
2314
2314
|
};
|
|
2315
2315
|
var ActaBatch = class {
|
|
2316
2316
|
constructor(parameters) {
|
|
2317
|
-
|
|
2317
|
+
var _a;
|
|
2318
|
+
this.APIkey = (_a = parameters.APIKey) != null ? _a : void 0;
|
|
2318
2319
|
}
|
|
2319
2320
|
createSession(params) {
|
|
2320
2321
|
return __async(this, null, function* () {
|
|
2321
2322
|
try {
|
|
2322
2323
|
const { instructionId, name, signerAddress, token: token2, chainId } = params;
|
|
2324
|
+
if (!this.APIkey) {
|
|
2325
|
+
throw new Error("No API key provided.");
|
|
2326
|
+
}
|
|
2323
2327
|
if (!signerAddress || signerAddress === zeroAddress5) {
|
|
2324
2328
|
throw new Error("Signer address is required.");
|
|
2325
2329
|
}
|
|
@@ -2366,6 +2370,9 @@ var ActaBatch = class {
|
|
|
2366
2370
|
walletClient,
|
|
2367
2371
|
instructionId
|
|
2368
2372
|
} = parameters;
|
|
2373
|
+
if (!this.APIkey) {
|
|
2374
|
+
throw new Error("No API key provided.");
|
|
2375
|
+
}
|
|
2369
2376
|
let isFeeInclusive = false;
|
|
2370
2377
|
if (feeInclusive) {
|
|
2371
2378
|
isFeeInclusive = true;
|
|
@@ -2449,6 +2456,9 @@ var ActaBatch = class {
|
|
|
2449
2456
|
allowMaxTokenApproval,
|
|
2450
2457
|
instructionId
|
|
2451
2458
|
} = params;
|
|
2459
|
+
if (!this.APIkey) {
|
|
2460
|
+
throw new Error("No API key provided.");
|
|
2461
|
+
}
|
|
2452
2462
|
let isFeeInclusive = false;
|
|
2453
2463
|
if (feeInclusive) {
|
|
2454
2464
|
isFeeInclusive = true;
|
|
@@ -2535,6 +2545,9 @@ var ActaBatch = class {
|
|
|
2535
2545
|
instructionId,
|
|
2536
2546
|
executionTime
|
|
2537
2547
|
} = params;
|
|
2548
|
+
if (!this.APIkey) {
|
|
2549
|
+
throw new Error("No API key provided.");
|
|
2550
|
+
}
|
|
2538
2551
|
let isFeeInclusive = false;
|
|
2539
2552
|
if (feeInclusive) {
|
|
2540
2553
|
isFeeInclusive = true;
|