@actalink/commonlib 0.0.28 → 0.0.30

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 CHANGED
@@ -2282,7 +2282,7 @@ var ActaBilling = class {
2282
2282
  },
2283
2283
  servicePaymentParams
2284
2284
  );
2285
- return txn.transaction.id;
2285
+ return txn;
2286
2286
  } catch (error) {
2287
2287
  if (error instanceof Error) {
2288
2288
  throw new Error(error.message);
@@ -2354,7 +2354,7 @@ var ActaBilling = class {
2354
2354
  },
2355
2355
  __spreadValues({}, servicePaymentParams)
2356
2356
  );
2357
- return txn.recurringTransaction.id;
2357
+ return txn;
2358
2358
  });
2359
2359
  }
2360
2360
  getPaymentSteps() {
@@ -2394,9 +2394,7 @@ var ActaBilling = class {
2394
2394
 
2395
2395
  // src/batch.ts
2396
2396
  var import_viem7 = require("viem");
2397
- var transactionServiceUrl2 = "https://api.acta.link/transaction/v1/";
2398
2397
  var batchServiceUrl = "https://api.acta.link/batch/api/v1/";
2399
- var transactionServiceTestUrl2 = "https://api.acta.link/transaction/test/v1/";
2400
2398
  var batchServiceTestUrl = "https://api.acta.link/batch/test/api/v1/";
2401
2399
  var returnEnvUrl3 = (chainId) => {
2402
2400
  const mainnetChain = mainnetChains.find((c) => c.id === chainId);
@@ -2406,12 +2404,10 @@ var returnEnvUrl3 = (chainId) => {
2406
2404
  }
2407
2405
  if (mainnetChain) {
2408
2406
  return {
2409
- envTransactionServiceUrl: transactionServiceUrl2,
2410
2407
  envBatchServiceUrl: batchServiceUrl
2411
2408
  };
2412
2409
  } else {
2413
2410
  return {
2414
- envTransactionServiceUrl: transactionServiceTestUrl2,
2415
2411
  envBatchServiceUrl: batchServiceTestUrl
2416
2412
  };
2417
2413
  }
@@ -2870,7 +2866,7 @@ var import_semver = require("semver");
2870
2866
  var ECDSA_SIGNER_CONTRACT = "0x6A6F069E2a08c2468e7724Ab3250CdBFBA14D4FF";
2871
2867
  var billingServiceUrl2 = "https://api.acta.link/pay/v1/";
2872
2868
  var depositServiceUrl2 = "https://api.acta.link/deposit/v1/";
2873
- var transactionServiceUrl3 = "https://api.acta.link/transaction/v1/";
2869
+ var transactionServiceUrl2 = "https://api.acta.link/transaction/v1/";
2874
2870
  var billingServiceTestUrl2 = "https://api.acta.link/pay/test/v1/";
2875
2871
  var toSignerId = (signer) => {
2876
2872
  return (0, import_viem8.encodeAbiParameters)(
@@ -3270,7 +3266,7 @@ var cancelRecurringTransaction = (_0) => __async(null, [_0], function* ({
3270
3266
  });
3271
3267
  console.log(rpcParameters);
3272
3268
  const txn = yield cancelRecurringPaymentAPICall(
3273
- `${transactionServiceUrl3}execute/cancel`,
3269
+ `${transactionServiceUrl2}execute/cancel`,
3274
3270
  rpcParameters,
3275
3271
  {
3276
3272
  chainId,
package/dist/index.js CHANGED
@@ -2209,7 +2209,7 @@ var ActaBilling = class {
2209
2209
  },
2210
2210
  servicePaymentParams
2211
2211
  );
2212
- return txn.transaction.id;
2212
+ return txn;
2213
2213
  } catch (error) {
2214
2214
  if (error instanceof Error) {
2215
2215
  throw new Error(error.message);
@@ -2281,7 +2281,7 @@ var ActaBilling = class {
2281
2281
  },
2282
2282
  __spreadValues({}, servicePaymentParams)
2283
2283
  );
2284
- return txn.recurringTransaction.id;
2284
+ return txn;
2285
2285
  });
2286
2286
  }
2287
2287
  getPaymentSteps() {
@@ -2326,9 +2326,7 @@ import {
2326
2326
  toHex as toHex4,
2327
2327
  zeroAddress as zeroAddress4
2328
2328
  } from "viem";
2329
- var transactionServiceUrl2 = "https://api.acta.link/transaction/v1/";
2330
2329
  var batchServiceUrl = "https://api.acta.link/batch/api/v1/";
2331
- var transactionServiceTestUrl2 = "https://api.acta.link/transaction/test/v1/";
2332
2330
  var batchServiceTestUrl = "https://api.acta.link/batch/test/api/v1/";
2333
2331
  var returnEnvUrl3 = (chainId) => {
2334
2332
  const mainnetChain = mainnetChains.find((c) => c.id === chainId);
@@ -2338,12 +2336,10 @@ var returnEnvUrl3 = (chainId) => {
2338
2336
  }
2339
2337
  if (mainnetChain) {
2340
2338
  return {
2341
- envTransactionServiceUrl: transactionServiceUrl2,
2342
2339
  envBatchServiceUrl: batchServiceUrl
2343
2340
  };
2344
2341
  } else {
2345
2342
  return {
2346
- envTransactionServiceUrl: transactionServiceTestUrl2,
2347
2343
  envBatchServiceUrl: batchServiceTestUrl
2348
2344
  };
2349
2345
  }
@@ -2833,7 +2829,7 @@ import { coerce, gt } from "semver";
2833
2829
  var ECDSA_SIGNER_CONTRACT = "0x6A6F069E2a08c2468e7724Ab3250CdBFBA14D4FF";
2834
2830
  var billingServiceUrl2 = "https://api.acta.link/pay/v1/";
2835
2831
  var depositServiceUrl2 = "https://api.acta.link/deposit/v1/";
2836
- var transactionServiceUrl3 = "https://api.acta.link/transaction/v1/";
2832
+ var transactionServiceUrl2 = "https://api.acta.link/transaction/v1/";
2837
2833
  var billingServiceTestUrl2 = "https://api.acta.link/pay/test/v1/";
2838
2834
  var toSignerId = (signer) => {
2839
2835
  return encodeAbiParameters(
@@ -3233,7 +3229,7 @@ var cancelRecurringTransaction = (_0) => __async(null, [_0], function* ({
3233
3229
  });
3234
3230
  console.log(rpcParameters);
3235
3231
  const txn = yield cancelRecurringPaymentAPICall(
3236
- `${transactionServiceUrl3}execute/cancel`,
3232
+ `${transactionServiceUrl2}execute/cancel`,
3237
3233
  rpcParameters,
3238
3234
  {
3239
3235
  chainId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actalink/commonlib",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "author": "Actalink",
5
5
  "license": "MIT license",
6
6
  "publishConfig": {