@actalink/commonlib 0.0.27 → 0.0.29

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
@@ -1812,7 +1812,7 @@ var ActaDeposit = class {
1812
1812
  this.serviceSessionParams = void 0;
1813
1813
  this.depositSessionId = "";
1814
1814
  this.status = "not_started";
1815
- this.serviceType = "deposit";
1815
+ this.serviceType = "bexo";
1816
1816
  this.allowMaxTokenApproval = false;
1817
1817
  var _a, _b, _c;
1818
1818
  this.connectorType = parameters.connectorType;
@@ -1937,7 +1937,7 @@ var ActaDeposit = class {
1937
1937
  return __async(this, null, function* () {
1938
1938
  try {
1939
1939
  if (this.paymentType === "single") {
1940
- const paymentParams = this.serviceType === "deposit" ? __spreadProps(__spreadValues({}, servicePaymentParams), {
1940
+ const paymentParams = this.serviceType === "bexo" ? __spreadProps(__spreadValues({}, servicePaymentParams), {
1941
1941
  depositSessionId: this.depositSessionId
1942
1942
  }) : servicePaymentParams;
1943
1943
  const id = yield this.createSinglePayment(paymentParams);
@@ -1946,7 +1946,7 @@ var ActaDeposit = class {
1946
1946
  if (this.paymentType === "choose") {
1947
1947
  }
1948
1948
  if (this.paymentType === "recurring") {
1949
- const paymentParams = this.serviceType === "deposit" ? __spreadProps(__spreadValues({}, servicePaymentParams), {
1949
+ const paymentParams = this.serviceType === "bexo" ? __spreadProps(__spreadValues({}, servicePaymentParams), {
1950
1950
  depositSessionId: this.depositSessionId
1951
1951
  }) : servicePaymentParams;
1952
1952
  const id = yield this.createRecurringPayments(paymentParams);
@@ -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
@@ -1739,7 +1739,7 @@ var ActaDeposit = class {
1739
1739
  this.serviceSessionParams = void 0;
1740
1740
  this.depositSessionId = "";
1741
1741
  this.status = "not_started";
1742
- this.serviceType = "deposit";
1742
+ this.serviceType = "bexo";
1743
1743
  this.allowMaxTokenApproval = false;
1744
1744
  var _a, _b, _c;
1745
1745
  this.connectorType = parameters.connectorType;
@@ -1864,7 +1864,7 @@ var ActaDeposit = class {
1864
1864
  return __async(this, null, function* () {
1865
1865
  try {
1866
1866
  if (this.paymentType === "single") {
1867
- const paymentParams = this.serviceType === "deposit" ? __spreadProps(__spreadValues({}, servicePaymentParams), {
1867
+ const paymentParams = this.serviceType === "bexo" ? __spreadProps(__spreadValues({}, servicePaymentParams), {
1868
1868
  depositSessionId: this.depositSessionId
1869
1869
  }) : servicePaymentParams;
1870
1870
  const id = yield this.createSinglePayment(paymentParams);
@@ -1873,7 +1873,7 @@ var ActaDeposit = class {
1873
1873
  if (this.paymentType === "choose") {
1874
1874
  }
1875
1875
  if (this.paymentType === "recurring") {
1876
- const paymentParams = this.serviceType === "deposit" ? __spreadProps(__spreadValues({}, servicePaymentParams), {
1876
+ const paymentParams = this.serviceType === "bexo" ? __spreadProps(__spreadValues({}, servicePaymentParams), {
1877
1877
  depositSessionId: this.depositSessionId
1878
1878
  }) : servicePaymentParams;
1879
1879
  const id = yield this.createRecurringPayments(paymentParams);
@@ -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.27",
3
+ "version": "0.0.29",
4
4
  "author": "Actalink",
5
5
  "license": "MIT license",
6
6
  "publishConfig": {