@actalink/commonlib 0.0.15 → 0.0.17
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 +221 -63
- package/dist/index.d.cts +50 -3
- package/dist/index.d.ts +50 -3
- package/dist/index.js +222 -64
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ interface AbstractPaymentParams {
|
|
|
52
52
|
token: "USDC" | "USDT" | "DAI" | "ETH" | "WETH" | "BNB" | "WBNB" | "USDCe" | "USDbC" | "EURC" | "POL" | "WPOL";
|
|
53
53
|
amount: bigint;
|
|
54
54
|
receiver: Address;
|
|
55
|
-
feeInclusive
|
|
55
|
+
feeInclusive?: boolean;
|
|
56
56
|
paymentType: "single" | "recurring" | "choose";
|
|
57
57
|
count?: number;
|
|
58
58
|
intervalUnit?: "5mins" | "day" | "week" | "month" | "year";
|
|
@@ -69,7 +69,9 @@ interface BillingClassParams extends AbstractPaymentParams {
|
|
|
69
69
|
interface BatchClassParams {
|
|
70
70
|
APIKey: string;
|
|
71
71
|
}
|
|
72
|
-
type EstimateSinglePaymentGasParameters = Omit<AbstractPaymentParams, "connectorType" | "signer" | "walletClient" | "serviceType" | "paymentType" | "count" | "intervalUnit" | "startDate" | "endDate" | "serviceUrl" | "serviceParams" | "serviceSessionParams"
|
|
72
|
+
type EstimateSinglePaymentGasParameters = Omit<AbstractPaymentParams, "connectorType" | "signer" | "walletClient" | "serviceType" | "paymentType" | "count" | "intervalUnit" | "startDate" | "endDate" | "serviceUrl" | "serviceParams" | "serviceSessionParams"> & {
|
|
73
|
+
feebps: 20 | 10 | 15;
|
|
74
|
+
};
|
|
73
75
|
type EstimateSingleBatchPaymentGasParameters = Omit<AbstractPaymentParams, "connectorType" | "signer" | "serviceType" | "paymentType" | "count" | "intervalUnit" | "startDate" | "endDate" | "serviceUrl" | "serviceParams" | "serviceSessionParams" | "receiver" | "amount" | "token"> & {
|
|
74
76
|
receivers: {
|
|
75
77
|
address: Address;
|
|
@@ -77,6 +79,7 @@ type EstimateSingleBatchPaymentGasParameters = Omit<AbstractPaymentParams, "conn
|
|
|
77
79
|
}[];
|
|
78
80
|
token: "USDC" | "USDT";
|
|
79
81
|
totalAmount: bigint;
|
|
82
|
+
feebps: 20 | 10 | 15;
|
|
80
83
|
};
|
|
81
84
|
type CalculateSingleBatchPaymentGasParameters = Omit<AbstractPaymentParams, "connectorType" | "signer" | "serviceType" | "paymentType" | "count" | "intervalUnit" | "startDate" | "endDate" | "serviceUrl" | "serviceParams" | "serviceSessionParams" | "receiver" | "amount" | "receivers" | "token"> & {
|
|
82
85
|
token: "USDC" | "USDT";
|
|
@@ -142,6 +145,7 @@ type PermissionAccountParams = {
|
|
|
142
145
|
};
|
|
143
146
|
type SinglePaymentParamsType = Omit<AbstractPaymentParams, "connectorType" | "signer" | "walletClient" | "serviceType" | "serviceUrl" | "serviceSessionParams" | "count" | "intervalUnit" | "startDate" | "endDate" | "paymentType"> & {
|
|
144
147
|
allowMaxTokenApproval?: boolean;
|
|
148
|
+
feebps: 20 | 10 | 15;
|
|
145
149
|
};
|
|
146
150
|
type SingleBatchPaymentParamsType = Omit<AbstractPaymentParams, "connectorType" | "signer" | "serviceType" | "serviceUrl" | "serviceSessionParams" | "count" | "intervalUnit" | "startDate" | "endDate" | "paymentType" | "receiver" | "amount" | "token"> & {
|
|
147
151
|
allowMaxTokenApproval?: boolean;
|
|
@@ -151,21 +155,38 @@ type SingleBatchPaymentParamsType = Omit<AbstractPaymentParams, "connectorType"
|
|
|
151
155
|
}[];
|
|
152
156
|
token: "USDC" | "USDT";
|
|
153
157
|
totalAmount: bigint;
|
|
158
|
+
feebps: 20 | 10 | 15;
|
|
154
159
|
};
|
|
155
160
|
type ScheduleOrRecurringBatchPaymentParamsType = SingleBatchPaymentParamsType & {
|
|
156
161
|
count: number;
|
|
162
|
+
feebps: 20 | 10 | 15;
|
|
157
163
|
};
|
|
158
164
|
type SingleBatchPaymentClassParamsType = Omit<AbstractPaymentParams, "connectorType" | "signer" | "serviceType" | "serviceUrl" | "serviceSessionParams" | "count" | "intervalUnit" | "startDate" | "endDate" | "paymentType" | "receiver" | "amount" | "token"> & {
|
|
159
165
|
allowMaxTokenApproval?: boolean;
|
|
160
166
|
token: "USDC" | "USDT";
|
|
161
167
|
instructionId: string;
|
|
162
168
|
};
|
|
169
|
+
type SingleBatchPaymentWithoutKeyClassParamsType = Omit<SingleBatchPaymentClassParamsType, "instructionId"> & {
|
|
170
|
+
receivers: {
|
|
171
|
+
address: Address;
|
|
172
|
+
amount: bigint;
|
|
173
|
+
}[];
|
|
174
|
+
totalAmount: bigint;
|
|
175
|
+
};
|
|
163
176
|
type ScheduleBatchPaymentClassParamsType = SingleBatchPaymentClassParamsType & {
|
|
164
177
|
executionTime: number;
|
|
165
178
|
};
|
|
179
|
+
type ScheduleBatchPaymentWithoutKeyClassParamsType = Omit<ScheduleBatchPaymentClassParamsType, "instructionId"> & {
|
|
180
|
+
receivers: {
|
|
181
|
+
address: Address;
|
|
182
|
+
amount: bigint;
|
|
183
|
+
}[];
|
|
184
|
+
totalAmount: bigint;
|
|
185
|
+
};
|
|
166
186
|
type RecurringPaymentParamsType = Omit<AbstractPaymentParams, "connectorType" | "signer" | "walletClient" | "serviceType" | "paymentType" | "serviceUrl" | "serviceSessionParams"> & {
|
|
167
187
|
endDate?: number;
|
|
168
188
|
allowMaxTokenApproval?: boolean;
|
|
189
|
+
feebps: 20 | 10 | 15;
|
|
169
190
|
};
|
|
170
191
|
|
|
171
192
|
declare const arbitrumETH: Token;
|
|
@@ -1512,6 +1533,32 @@ declare class ActaBatch {
|
|
|
1512
1533
|
createScheduleBatchPayment(params: ScheduleBatchPaymentClassParamsType, serviceParams: {
|
|
1513
1534
|
sessionId: string;
|
|
1514
1535
|
}): Promise<any>;
|
|
1536
|
+
createSingleBatchPaymentWithoutKey(params: SingleBatchPaymentWithoutKeyClassParamsType, serviceParams: {
|
|
1537
|
+
sessionId: string;
|
|
1538
|
+
}): Promise<{
|
|
1539
|
+
senderAddress: `0x${string}` | undefined;
|
|
1540
|
+
chainId: 80002 | 42161 | 8453 | 56 | 1 | 10 | 137 | 84532 | 11155111 | 59144;
|
|
1541
|
+
tokenAddress: `0x${string}`;
|
|
1542
|
+
amount: `0x${string}`;
|
|
1543
|
+
feeInclusive: boolean;
|
|
1544
|
+
serviceType: string;
|
|
1545
|
+
sessionId: string;
|
|
1546
|
+
rpcParameters: viem.RpcUserOperation;
|
|
1547
|
+
}>;
|
|
1548
|
+
createScheduleBatchPaymentWithoutKey(params: ScheduleBatchPaymentWithoutKeyClassParamsType, serviceParams: {
|
|
1549
|
+
sessionId: string;
|
|
1550
|
+
}): Promise<{
|
|
1551
|
+
senderAddress: `0x${string}` | undefined;
|
|
1552
|
+
chainId: 80002 | 42161 | 8453 | 56 | 1 | 10 | 137 | 84532 | 11155111 | 59144;
|
|
1553
|
+
tokenAddress: `0x${string}`;
|
|
1554
|
+
amount: `0x${string}`;
|
|
1555
|
+
feeInclusive: boolean;
|
|
1556
|
+
serviceType: string;
|
|
1557
|
+
amountExclusive: `0x${string}`;
|
|
1558
|
+
approval: string;
|
|
1559
|
+
executionAt: number;
|
|
1560
|
+
sessionId: string;
|
|
1561
|
+
}>;
|
|
1515
1562
|
}
|
|
1516
1563
|
|
|
1517
1564
|
declare class ActaAccount {
|
|
@@ -12015,4 +12062,4 @@ declare function createBatchSessionAPICall(url: string, APIKey: string, params:
|
|
|
12015
12062
|
}): Promise<any>;
|
|
12016
12063
|
declare function fetchBatchInstructionDetails(url: string, APIKey: string): Promise<any>;
|
|
12017
12064
|
|
|
12018
|
-
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 ScheduleOrRecurringBatchPaymentParamsType, type SingleBatchPaymentClassParamsType, type SingleBatchPaymentParamsType, 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, getPimlicoRpcByChainId, 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, sendRequest, sepoliaUSDC, serializePermissionAccountParams, supportedChains, supportedTokensByChain, testnetChains, toECDSASigner, toPermissionValidator, toPolicyId, toSignerId, token, tokensCommonSymbols, verifySessionAPICall };
|
|
12065
|
+
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, getPimlicoRpcByChainId, 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, sendRequest, sepoliaUSDC, serializePermissionAccountParams, supportedChains, supportedTokensByChain, testnetChains, toECDSASigner, toPermissionValidator, toPolicyId, toSignerId, token, tokensCommonSymbols, verifySessionAPICall };
|