@actalink/commonlib 0.0.40 → 0.0.42

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.d.cts CHANGED
@@ -1378,7 +1378,7 @@ declare const testnetChains: ({
1378
1378
  declare function getChainById(chainId: number): Chain | undefined;
1379
1379
  declare function getChainExplorerByChainId(chainId: number): string | undefined;
1380
1380
 
1381
- declare class ActaDeposit {
1381
+ declare class ActaFlexDeposit {
1382
1382
  private readonly connectorType;
1383
1383
  private readonly walletClient;
1384
1384
  private readonly signerAddress;
@@ -1435,6 +1435,76 @@ declare class ActaDeposit {
1435
1435
  getPaymentSteps(): Promise<string[]>;
1436
1436
  }
1437
1437
 
1438
+ declare class ActaFlexBatch {
1439
+ private readonly APIkey;
1440
+ constructor(parameters: BatchClassParams);
1441
+ createSession(params: {
1442
+ name: string;
1443
+ signerAddress: Address;
1444
+ token: "USDC" | "USDT";
1445
+ chainId: 1 | 42161 | 8453 | 59144 | 56 | 10 | 137 | 80002 | 84532 | 11155111;
1446
+ instructionId: string;
1447
+ }): Promise<string>;
1448
+ estimateSinglePaymentGas(parameters: CalculateSingleBatchPaymentGasParameters): Promise<{
1449
+ estimatedGasCostInToken: bigint;
1450
+ ActalinkFeesInToken: bigint;
1451
+ feeInclusiveAmountInToken: bigint;
1452
+ feeExclusiveAmountInToken: bigint;
1453
+ estimatedTotalFeesInToken: bigint;
1454
+ paymaster: `0x${string}`;
1455
+ userOperation: {
1456
+ authorization?: viem.SignedAuthorization<number> | undefined;
1457
+ callData: viem.Hex;
1458
+ callGasLimit: bigint;
1459
+ factory?: Address | undefined;
1460
+ factoryData?: viem.Hex | undefined;
1461
+ maxFeePerGas: bigint;
1462
+ maxPriorityFeePerGas: bigint;
1463
+ nonce: bigint;
1464
+ paymaster?: Address | undefined;
1465
+ paymasterData?: viem.Hex | undefined;
1466
+ paymasterPostOpGasLimit?: bigint | undefined;
1467
+ paymasterVerificationGasLimit?: bigint | undefined;
1468
+ preVerificationGas: bigint;
1469
+ sender: Address;
1470
+ signature: viem.Hex;
1471
+ verificationGasLimit: bigint;
1472
+ };
1473
+ }>;
1474
+ createSingleBatchPayment(params: SingleBatchPaymentClassParamsType, serviceParams: {
1475
+ sessionId: string;
1476
+ }): Promise<any>;
1477
+ createScheduleBatchPayment(params: ScheduleBatchPaymentClassParamsType, serviceParams: {
1478
+ sessionId: string;
1479
+ }): Promise<any>;
1480
+ createSingleBatchPaymentWithoutKey(params: SingleBatchPaymentWithoutKeyClassParamsType, serviceParams: {
1481
+ sessionId: string;
1482
+ }): Promise<{
1483
+ senderAddress: `0x${string}` | undefined;
1484
+ chainId: 80002 | 42161 | 8453 | 56 | 1 | 10 | 137 | 84532 | 11155111 | 59144;
1485
+ tokenAddress: `0x${string}`;
1486
+ amount: `0x${string}`;
1487
+ feeInclusive: boolean;
1488
+ serviceType: string;
1489
+ sessionId: string;
1490
+ rpcParameters: viem.RpcUserOperation;
1491
+ }>;
1492
+ createScheduleBatchPaymentWithoutKey(params: ScheduleBatchPaymentWithoutKeyClassParamsType, serviceParams: {
1493
+ sessionId: string;
1494
+ }): Promise<{
1495
+ senderAddress: `0x${string}` | undefined;
1496
+ chainId: 80002 | 42161 | 8453 | 56 | 1 | 10 | 137 | 84532 | 11155111 | 59144;
1497
+ tokenAddress: `0x${string}`;
1498
+ amount: `0x${string}`;
1499
+ feeInclusive: boolean;
1500
+ serviceType: string;
1501
+ amountExclusive: `0x${string}`;
1502
+ approval: string;
1503
+ executionAt: number;
1504
+ sessionId: string;
1505
+ }>;
1506
+ }
1507
+
1438
1508
  declare class ActaBilling {
1439
1509
  private readonly connectorType;
1440
1510
  private readonly walletClient;
@@ -15517,4 +15587,4 @@ declare function createBatchSessionAPICall(url: string, APIKey: string, params:
15517
15587
  }): Promise<any>;
15518
15588
  declare function fetchBatchInstructionDetails(url: string, APIKey: string): Promise<any>;
15519
15589
 
15520
- export { type AbstractPaymentParams, ActaAccount, ActaBatch, ActaBilling, ActaDeposit, type BatchClassParams, type BillingClassParams, type CalculateSingleBatchPaymentGasParameters, ConnectorType, type DepositClassParams, type EstimateSingleBatchPaymentGasParameters, type EstimateSinglePaymentGasParameters, type ExportPermissionAccountParams, HttpMethod, type ModularSigner, type PermissionAccountParams, type PermissionData, type PermissionPlugin, type PermissionPluginParams, type Policy, PolicyFlags, type PolicyParams, type RecurringPaymentParamsType, type ScheduleBatchPaymentClassParamsType, type ScheduleBatchPaymentWithoutKeyClassParamsType, type ScheduleOrRecurringBatchPaymentParamsType, type SingleBatchPaymentClassParamsType, type SingleBatchPaymentParamsType, type SingleBatchPaymentWithoutKeyClassParamsType, type SinglePaymentParamsType, type Token, TokenLogo, ViemClient, arbitrumDAI, arbitrumETH, arbitrumUSDC, arbitrumUSDCe, arbitrumUSDT, arbitrumWETH, base64ToBytes, baseDAI, baseETH, baseEURC, baseSepoliaUSDC, baseUSDC, baseUSDT, baseUSDbC, baseWETH, bscBNB, bscUSDC, bscUSDT, bscWBNB, bytesToBase64, cancelRecurringPaymentAPICall, cancelRecurringTransaction, createBatchSessionAPICall, createBillingCheckoutSession, createBillingSessionAPICall, createPolicyFromParams, createSessionAPICall, decodeParamsFromInitCode, deserializePermissionAccount, deserializePermissionAccountParams, ethereumDAI, ethereumETH, ethereumEURC, ethereumUSDC, ethereumUSDT, ethereumWETH, executeScheduleBatchPaymentAPICall, executeSingleBatchPaymentAPICall, executeSinglePaymentAPICall, fetchBatchInstructionDetails, fetchBillingSessionDetails, fetchRecurringTransactionWithId, getBillingPaymentSessionDetails, getChainById, getChainExplorerByChainId, getPeriodInterval, getRpcByChainId, getTokenByChainIdAndAddress, getTokenByChainIdAndSymbol, isKernelVersionAfter, isPermissionValidatorPlugin, lineaDAI, lineaETH, lineaUSDC, lineaWETH, mainnetChains, optimismDAI, optimismETH, optimismUSDC, optimismUSDCe, optimismUSDT, optimismWETH, polygonAmoyUSDC, polygonDAI, polygonPOL, polygonUSDC, polygonUSDCe, polygonUSDT, polygonWETH, polygonWPOL, scheduleRecurringPaymentsAPICall, scheduleSubscriptionPaymentsAPICall, sendRequest, sepoliaUSDC, serializePermissionAccountParams, supportedChains, supportedTokensByChain, testnetChains, toECDSASigner, toPermissionValidator, toPolicyId, toSignerId, token, tokensCommonSymbols, verifySessionAPICall };
15590
+ export { type AbstractPaymentParams, ActaAccount, ActaBatch, ActaBilling, ActaFlexBatch, ActaFlexDeposit, type BatchClassParams, type BillingClassParams, type CalculateSingleBatchPaymentGasParameters, ConnectorType, type DepositClassParams, type EstimateSingleBatchPaymentGasParameters, type EstimateSinglePaymentGasParameters, type ExportPermissionAccountParams, HttpMethod, type ModularSigner, type PermissionAccountParams, type PermissionData, type PermissionPlugin, type PermissionPluginParams, type Policy, PolicyFlags, type PolicyParams, type RecurringPaymentParamsType, type ScheduleBatchPaymentClassParamsType, type ScheduleBatchPaymentWithoutKeyClassParamsType, type ScheduleOrRecurringBatchPaymentParamsType, type SingleBatchPaymentClassParamsType, type SingleBatchPaymentParamsType, type SingleBatchPaymentWithoutKeyClassParamsType, type SinglePaymentParamsType, type Token, TokenLogo, ViemClient, arbitrumDAI, arbitrumETH, arbitrumUSDC, arbitrumUSDCe, arbitrumUSDT, arbitrumWETH, base64ToBytes, baseDAI, baseETH, baseEURC, baseSepoliaUSDC, baseUSDC, baseUSDT, baseUSDbC, baseWETH, bscBNB, bscUSDC, bscUSDT, bscWBNB, bytesToBase64, cancelRecurringPaymentAPICall, cancelRecurringTransaction, createBatchSessionAPICall, createBillingCheckoutSession, createBillingSessionAPICall, createPolicyFromParams, createSessionAPICall, decodeParamsFromInitCode, deserializePermissionAccount, deserializePermissionAccountParams, ethereumDAI, ethereumETH, ethereumEURC, ethereumUSDC, ethereumUSDT, ethereumWETH, executeScheduleBatchPaymentAPICall, executeSingleBatchPaymentAPICall, executeSinglePaymentAPICall, fetchBatchInstructionDetails, fetchBillingSessionDetails, fetchRecurringTransactionWithId, getBillingPaymentSessionDetails, getChainById, getChainExplorerByChainId, getPeriodInterval, getRpcByChainId, getTokenByChainIdAndAddress, getTokenByChainIdAndSymbol, isKernelVersionAfter, isPermissionValidatorPlugin, lineaDAI, lineaETH, lineaUSDC, lineaWETH, mainnetChains, optimismDAI, optimismETH, optimismUSDC, optimismUSDCe, optimismUSDT, optimismWETH, polygonAmoyUSDC, polygonDAI, polygonPOL, polygonUSDC, polygonUSDCe, polygonUSDT, polygonWETH, polygonWPOL, scheduleRecurringPaymentsAPICall, scheduleSubscriptionPaymentsAPICall, sendRequest, sepoliaUSDC, serializePermissionAccountParams, supportedChains, supportedTokensByChain, testnetChains, toECDSASigner, toPermissionValidator, toPolicyId, toSignerId, token, tokensCommonSymbols, verifySessionAPICall };
package/dist/index.d.ts CHANGED
@@ -1378,7 +1378,7 @@ declare const testnetChains: ({
1378
1378
  declare function getChainById(chainId: number): Chain | undefined;
1379
1379
  declare function getChainExplorerByChainId(chainId: number): string | undefined;
1380
1380
 
1381
- declare class ActaDeposit {
1381
+ declare class ActaFlexDeposit {
1382
1382
  private readonly connectorType;
1383
1383
  private readonly walletClient;
1384
1384
  private readonly signerAddress;
@@ -1435,6 +1435,76 @@ declare class ActaDeposit {
1435
1435
  getPaymentSteps(): Promise<string[]>;
1436
1436
  }
1437
1437
 
1438
+ declare class ActaFlexBatch {
1439
+ private readonly APIkey;
1440
+ constructor(parameters: BatchClassParams);
1441
+ createSession(params: {
1442
+ name: string;
1443
+ signerAddress: Address;
1444
+ token: "USDC" | "USDT";
1445
+ chainId: 1 | 42161 | 8453 | 59144 | 56 | 10 | 137 | 80002 | 84532 | 11155111;
1446
+ instructionId: string;
1447
+ }): Promise<string>;
1448
+ estimateSinglePaymentGas(parameters: CalculateSingleBatchPaymentGasParameters): Promise<{
1449
+ estimatedGasCostInToken: bigint;
1450
+ ActalinkFeesInToken: bigint;
1451
+ feeInclusiveAmountInToken: bigint;
1452
+ feeExclusiveAmountInToken: bigint;
1453
+ estimatedTotalFeesInToken: bigint;
1454
+ paymaster: `0x${string}`;
1455
+ userOperation: {
1456
+ authorization?: viem.SignedAuthorization<number> | undefined;
1457
+ callData: viem.Hex;
1458
+ callGasLimit: bigint;
1459
+ factory?: Address | undefined;
1460
+ factoryData?: viem.Hex | undefined;
1461
+ maxFeePerGas: bigint;
1462
+ maxPriorityFeePerGas: bigint;
1463
+ nonce: bigint;
1464
+ paymaster?: Address | undefined;
1465
+ paymasterData?: viem.Hex | undefined;
1466
+ paymasterPostOpGasLimit?: bigint | undefined;
1467
+ paymasterVerificationGasLimit?: bigint | undefined;
1468
+ preVerificationGas: bigint;
1469
+ sender: Address;
1470
+ signature: viem.Hex;
1471
+ verificationGasLimit: bigint;
1472
+ };
1473
+ }>;
1474
+ createSingleBatchPayment(params: SingleBatchPaymentClassParamsType, serviceParams: {
1475
+ sessionId: string;
1476
+ }): Promise<any>;
1477
+ createScheduleBatchPayment(params: ScheduleBatchPaymentClassParamsType, serviceParams: {
1478
+ sessionId: string;
1479
+ }): Promise<any>;
1480
+ createSingleBatchPaymentWithoutKey(params: SingleBatchPaymentWithoutKeyClassParamsType, serviceParams: {
1481
+ sessionId: string;
1482
+ }): Promise<{
1483
+ senderAddress: `0x${string}` | undefined;
1484
+ chainId: 80002 | 42161 | 8453 | 56 | 1 | 10 | 137 | 84532 | 11155111 | 59144;
1485
+ tokenAddress: `0x${string}`;
1486
+ amount: `0x${string}`;
1487
+ feeInclusive: boolean;
1488
+ serviceType: string;
1489
+ sessionId: string;
1490
+ rpcParameters: viem.RpcUserOperation;
1491
+ }>;
1492
+ createScheduleBatchPaymentWithoutKey(params: ScheduleBatchPaymentWithoutKeyClassParamsType, serviceParams: {
1493
+ sessionId: string;
1494
+ }): Promise<{
1495
+ senderAddress: `0x${string}` | undefined;
1496
+ chainId: 80002 | 42161 | 8453 | 56 | 1 | 10 | 137 | 84532 | 11155111 | 59144;
1497
+ tokenAddress: `0x${string}`;
1498
+ amount: `0x${string}`;
1499
+ feeInclusive: boolean;
1500
+ serviceType: string;
1501
+ amountExclusive: `0x${string}`;
1502
+ approval: string;
1503
+ executionAt: number;
1504
+ sessionId: string;
1505
+ }>;
1506
+ }
1507
+
1438
1508
  declare class ActaBilling {
1439
1509
  private readonly connectorType;
1440
1510
  private readonly walletClient;
@@ -15517,4 +15587,4 @@ declare function createBatchSessionAPICall(url: string, APIKey: string, params:
15517
15587
  }): Promise<any>;
15518
15588
  declare function fetchBatchInstructionDetails(url: string, APIKey: string): Promise<any>;
15519
15589
 
15520
- export { type AbstractPaymentParams, ActaAccount, ActaBatch, ActaBilling, ActaDeposit, type BatchClassParams, type BillingClassParams, type CalculateSingleBatchPaymentGasParameters, ConnectorType, type DepositClassParams, type EstimateSingleBatchPaymentGasParameters, type EstimateSinglePaymentGasParameters, type ExportPermissionAccountParams, HttpMethod, type ModularSigner, type PermissionAccountParams, type PermissionData, type PermissionPlugin, type PermissionPluginParams, type Policy, PolicyFlags, type PolicyParams, type RecurringPaymentParamsType, type ScheduleBatchPaymentClassParamsType, type ScheduleBatchPaymentWithoutKeyClassParamsType, type ScheduleOrRecurringBatchPaymentParamsType, type SingleBatchPaymentClassParamsType, type SingleBatchPaymentParamsType, type SingleBatchPaymentWithoutKeyClassParamsType, type SinglePaymentParamsType, type Token, TokenLogo, ViemClient, arbitrumDAI, arbitrumETH, arbitrumUSDC, arbitrumUSDCe, arbitrumUSDT, arbitrumWETH, base64ToBytes, baseDAI, baseETH, baseEURC, baseSepoliaUSDC, baseUSDC, baseUSDT, baseUSDbC, baseWETH, bscBNB, bscUSDC, bscUSDT, bscWBNB, bytesToBase64, cancelRecurringPaymentAPICall, cancelRecurringTransaction, createBatchSessionAPICall, createBillingCheckoutSession, createBillingSessionAPICall, createPolicyFromParams, createSessionAPICall, decodeParamsFromInitCode, deserializePermissionAccount, deserializePermissionAccountParams, ethereumDAI, ethereumETH, ethereumEURC, ethereumUSDC, ethereumUSDT, ethereumWETH, executeScheduleBatchPaymentAPICall, executeSingleBatchPaymentAPICall, executeSinglePaymentAPICall, fetchBatchInstructionDetails, fetchBillingSessionDetails, fetchRecurringTransactionWithId, getBillingPaymentSessionDetails, getChainById, getChainExplorerByChainId, getPeriodInterval, getRpcByChainId, getTokenByChainIdAndAddress, getTokenByChainIdAndSymbol, isKernelVersionAfter, isPermissionValidatorPlugin, lineaDAI, lineaETH, lineaUSDC, lineaWETH, mainnetChains, optimismDAI, optimismETH, optimismUSDC, optimismUSDCe, optimismUSDT, optimismWETH, polygonAmoyUSDC, polygonDAI, polygonPOL, polygonUSDC, polygonUSDCe, polygonUSDT, polygonWETH, polygonWPOL, scheduleRecurringPaymentsAPICall, scheduleSubscriptionPaymentsAPICall, sendRequest, sepoliaUSDC, serializePermissionAccountParams, supportedChains, supportedTokensByChain, testnetChains, toECDSASigner, toPermissionValidator, toPolicyId, toSignerId, token, tokensCommonSymbols, verifySessionAPICall };
15590
+ export { type AbstractPaymentParams, ActaAccount, ActaBatch, ActaBilling, ActaFlexBatch, ActaFlexDeposit, type BatchClassParams, type BillingClassParams, type CalculateSingleBatchPaymentGasParameters, ConnectorType, type DepositClassParams, type EstimateSingleBatchPaymentGasParameters, type EstimateSinglePaymentGasParameters, type ExportPermissionAccountParams, HttpMethod, type ModularSigner, type PermissionAccountParams, type PermissionData, type PermissionPlugin, type PermissionPluginParams, type Policy, PolicyFlags, type PolicyParams, type RecurringPaymentParamsType, type ScheduleBatchPaymentClassParamsType, type ScheduleBatchPaymentWithoutKeyClassParamsType, type ScheduleOrRecurringBatchPaymentParamsType, type SingleBatchPaymentClassParamsType, type SingleBatchPaymentParamsType, type SingleBatchPaymentWithoutKeyClassParamsType, type SinglePaymentParamsType, type Token, TokenLogo, ViemClient, arbitrumDAI, arbitrumETH, arbitrumUSDC, arbitrumUSDCe, arbitrumUSDT, arbitrumWETH, base64ToBytes, baseDAI, baseETH, baseEURC, baseSepoliaUSDC, baseUSDC, baseUSDT, baseUSDbC, baseWETH, bscBNB, bscUSDC, bscUSDT, bscWBNB, bytesToBase64, cancelRecurringPaymentAPICall, cancelRecurringTransaction, createBatchSessionAPICall, createBillingCheckoutSession, createBillingSessionAPICall, createPolicyFromParams, createSessionAPICall, decodeParamsFromInitCode, deserializePermissionAccount, deserializePermissionAccountParams, ethereumDAI, ethereumETH, ethereumEURC, ethereumUSDC, ethereumUSDT, ethereumWETH, executeScheduleBatchPaymentAPICall, executeSingleBatchPaymentAPICall, executeSinglePaymentAPICall, fetchBatchInstructionDetails, fetchBillingSessionDetails, fetchRecurringTransactionWithId, getBillingPaymentSessionDetails, getChainById, getChainExplorerByChainId, getPeriodInterval, getRpcByChainId, getTokenByChainIdAndAddress, getTokenByChainIdAndSymbol, isKernelVersionAfter, isPermissionValidatorPlugin, lineaDAI, lineaETH, lineaUSDC, lineaWETH, mainnetChains, optimismDAI, optimismETH, optimismUSDC, optimismUSDCe, optimismUSDT, optimismWETH, polygonAmoyUSDC, polygonDAI, polygonPOL, polygonUSDC, polygonUSDCe, polygonUSDT, polygonWETH, polygonWPOL, scheduleRecurringPaymentsAPICall, scheduleSubscriptionPaymentsAPICall, sendRequest, sepoliaUSDC, serializePermissionAccountParams, supportedChains, supportedTokensByChain, testnetChains, toECDSASigner, toPermissionValidator, toPolicyId, toSignerId, token, tokensCommonSymbols, verifySessionAPICall };