@actalink/commonlib 0.1.2-dev → 0.1.4-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/dist/index.cjs +2 -12
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +2 -11
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -85,7 +85,6 @@ __export(index_exports, {
|
|
|
85
85
|
bscBNB: () => bscBNB,
|
|
86
86
|
bscUSDC: () => bscUSDC,
|
|
87
87
|
bscUSDT: () => bscUSDT,
|
|
88
|
-
bscWBNB: () => bscWBNB,
|
|
89
88
|
bytesToBase64: () => bytesToBase64,
|
|
90
89
|
cancelRecurringPaymentAPICall: () => cancelRecurringPaymentAPICall,
|
|
91
90
|
cancelRecurringTransaction: () => cancelRecurringTransaction,
|
|
@@ -337,14 +336,6 @@ var bscBNB = nativeToken({
|
|
|
337
336
|
symbol: "BNB",
|
|
338
337
|
logoURI: "https://api.acta.link/deposit/v1/logos/bnb.png" /* BNB */
|
|
339
338
|
});
|
|
340
|
-
var bscWBNB = token({
|
|
341
|
-
chainId: import_chains3.bsc.id,
|
|
342
|
-
address: (0, import_viem.getAddress)("0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"),
|
|
343
|
-
decimals: 18,
|
|
344
|
-
name: "Wrapped BNB",
|
|
345
|
-
symbol: "WBNB",
|
|
346
|
-
logoURI: "https://api.acta.link/deposit/v1/logos/bnb.png" /* BNB */
|
|
347
|
-
});
|
|
348
339
|
var bscUSDC = token({
|
|
349
340
|
chainId: import_chains3.bsc.id,
|
|
350
341
|
address: (0, import_viem.getAddress)("0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"),
|
|
@@ -3665,8 +3656,8 @@ var import_semver = require("semver");
|
|
|
3665
3656
|
var ECDSA_SIGNER_CONTRACT = "0x6A6F069E2a08c2468e7724Ab3250CdBFBA14D4FF";
|
|
3666
3657
|
var depositServiceUrl2 = "https://api.acta.link/bexo/v1/";
|
|
3667
3658
|
var transactionServiceUrl2 = "https://api.acta.link/transaction/v1/";
|
|
3668
|
-
var billingServiceUrl2 = "https://pay-api.fhoton.xyz/pay/
|
|
3669
|
-
var billingServiceTestUrl2 = "https://pay-api.fhoton.xyz/pay/test/
|
|
3659
|
+
var billingServiceUrl2 = "https://pay-api.fhoton.xyz/pay/v1/";
|
|
3660
|
+
var billingServiceTestUrl2 = "https://pay-api.fhoton.xyz/pay/test/v1/";
|
|
3670
3661
|
var toSignerId = (signer) => {
|
|
3671
3662
|
return (0, import_viem9.encodeAbiParameters)(
|
|
3672
3663
|
[{ name: "signerData", type: "bytes" }],
|
|
@@ -4124,7 +4115,6 @@ var cancelRecurringTransaction = (_0) => __async(null, [_0], function* ({
|
|
|
4124
4115
|
bscBNB,
|
|
4125
4116
|
bscUSDC,
|
|
4126
4117
|
bscUSDT,
|
|
4127
|
-
bscWBNB,
|
|
4128
4118
|
bytesToBase64,
|
|
4129
4119
|
cancelRecurringPaymentAPICall,
|
|
4130
4120
|
cancelRecurringTransaction,
|
package/dist/index.d.cts
CHANGED
|
@@ -216,7 +216,6 @@ declare const baseUSDbC: Token;
|
|
|
216
216
|
declare const baseDAI: Token;
|
|
217
217
|
declare const baseUSDT: Token;
|
|
218
218
|
declare const bscBNB: Token;
|
|
219
|
-
declare const bscWBNB: Token;
|
|
220
219
|
declare const bscUSDC: Token;
|
|
221
220
|
declare const bscUSDT: Token;
|
|
222
221
|
declare const ethereumETH: Token;
|
|
@@ -12444,4 +12443,4 @@ declare function createBatchSessionAPICall(url: string, APIKey: string, params:
|
|
|
12444
12443
|
}): Promise<any>;
|
|
12445
12444
|
declare function fetchBatchInstructionDetails(url: string, APIKey: string): Promise<any>;
|
|
12446
12445
|
|
|
12447
|
-
export { type AbstractPaymentParams, ActaAccount, ActaBatch, ActaBilling, ActaFlexBatch, ActaFlexDeposit, type ApproveToken, type BatchClassParams, type BillingClassParams, type CalculateSingleBatchPaymentGasParameters, type CheckAllowance, ConnectorType, type DepositClassParams, type EstimatePaymentAmount, type EstimateSingleBatchPaymentGasParameters, type EstimateSinglePaymentGasParameters, type ExportPermissionAccountParams, type GetTransactionReceipt, 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,
|
|
12446
|
+
export { type AbstractPaymentParams, ActaAccount, ActaBatch, ActaBilling, ActaFlexBatch, ActaFlexDeposit, type ApproveToken, type BatchClassParams, type BillingClassParams, type CalculateSingleBatchPaymentGasParameters, type CheckAllowance, ConnectorType, type DepositClassParams, type EstimatePaymentAmount, type EstimateSingleBatchPaymentGasParameters, type EstimateSinglePaymentGasParameters, type ExportPermissionAccountParams, type GetTransactionReceipt, 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, 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
|
@@ -216,7 +216,6 @@ declare const baseUSDbC: Token;
|
|
|
216
216
|
declare const baseDAI: Token;
|
|
217
217
|
declare const baseUSDT: Token;
|
|
218
218
|
declare const bscBNB: Token;
|
|
219
|
-
declare const bscWBNB: Token;
|
|
220
219
|
declare const bscUSDC: Token;
|
|
221
220
|
declare const bscUSDT: Token;
|
|
222
221
|
declare const ethereumETH: Token;
|
|
@@ -12444,4 +12443,4 @@ declare function createBatchSessionAPICall(url: string, APIKey: string, params:
|
|
|
12444
12443
|
}): Promise<any>;
|
|
12445
12444
|
declare function fetchBatchInstructionDetails(url: string, APIKey: string): Promise<any>;
|
|
12446
12445
|
|
|
12447
|
-
export { type AbstractPaymentParams, ActaAccount, ActaBatch, ActaBilling, ActaFlexBatch, ActaFlexDeposit, type ApproveToken, type BatchClassParams, type BillingClassParams, type CalculateSingleBatchPaymentGasParameters, type CheckAllowance, ConnectorType, type DepositClassParams, type EstimatePaymentAmount, type EstimateSingleBatchPaymentGasParameters, type EstimateSinglePaymentGasParameters, type ExportPermissionAccountParams, type GetTransactionReceipt, 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,
|
|
12446
|
+
export { type AbstractPaymentParams, ActaAccount, ActaBatch, ActaBilling, ActaFlexBatch, ActaFlexDeposit, type ApproveToken, type BatchClassParams, type BillingClassParams, type CalculateSingleBatchPaymentGasParameters, type CheckAllowance, ConnectorType, type DepositClassParams, type EstimatePaymentAmount, type EstimateSingleBatchPaymentGasParameters, type EstimateSinglePaymentGasParameters, type ExportPermissionAccountParams, type GetTransactionReceipt, 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, 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.js
CHANGED
|
@@ -231,14 +231,6 @@ var bscBNB = nativeToken({
|
|
|
231
231
|
symbol: "BNB",
|
|
232
232
|
logoURI: "https://api.acta.link/deposit/v1/logos/bnb.png" /* BNB */
|
|
233
233
|
});
|
|
234
|
-
var bscWBNB = token({
|
|
235
|
-
chainId: bsc2.id,
|
|
236
|
-
address: getAddress("0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"),
|
|
237
|
-
decimals: 18,
|
|
238
|
-
name: "Wrapped BNB",
|
|
239
|
-
symbol: "WBNB",
|
|
240
|
-
logoURI: "https://api.acta.link/deposit/v1/logos/bnb.png" /* BNB */
|
|
241
|
-
});
|
|
242
234
|
var bscUSDC = token({
|
|
243
235
|
chainId: bsc2.id,
|
|
244
236
|
address: getAddress("0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"),
|
|
@@ -3635,8 +3627,8 @@ import { coerce, gt } from "semver";
|
|
|
3635
3627
|
var ECDSA_SIGNER_CONTRACT = "0x6A6F069E2a08c2468e7724Ab3250CdBFBA14D4FF";
|
|
3636
3628
|
var depositServiceUrl2 = "https://api.acta.link/bexo/v1/";
|
|
3637
3629
|
var transactionServiceUrl2 = "https://api.acta.link/transaction/v1/";
|
|
3638
|
-
var billingServiceUrl2 = "https://pay-api.fhoton.xyz/pay/
|
|
3639
|
-
var billingServiceTestUrl2 = "https://pay-api.fhoton.xyz/pay/test/
|
|
3630
|
+
var billingServiceUrl2 = "https://pay-api.fhoton.xyz/pay/v1/";
|
|
3631
|
+
var billingServiceTestUrl2 = "https://pay-api.fhoton.xyz/pay/test/v1/";
|
|
3640
3632
|
var toSignerId = (signer) => {
|
|
3641
3633
|
return encodeAbiParameters(
|
|
3642
3634
|
[{ name: "signerData", type: "bytes" }],
|
|
@@ -4093,7 +4085,6 @@ export {
|
|
|
4093
4085
|
bscBNB,
|
|
4094
4086
|
bscUSDC,
|
|
4095
4087
|
bscUSDT,
|
|
4096
|
-
bscWBNB,
|
|
4097
4088
|
bytesToBase64,
|
|
4098
4089
|
cancelRecurringPaymentAPICall,
|
|
4099
4090
|
cancelRecurringTransaction,
|