@actalink/sdkv2 0.1.3 → 0.1.5
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 +6 -6
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -57,8 +57,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
57
57
|
// src/index.ts
|
|
58
58
|
var index_exports = {};
|
|
59
59
|
__export(index_exports, {
|
|
60
|
-
ActaAccessSDK: () => ActaAccessSDK,
|
|
61
60
|
ActaAccount: () => ActaAccount,
|
|
61
|
+
ActaFlexSDK: () => ActaFlexSDK,
|
|
62
62
|
HttpMethod: () => HttpMethod,
|
|
63
63
|
ViemClient: () => ViemClient,
|
|
64
64
|
arbitrumDAI: () => arbitrumDAI,
|
|
@@ -807,8 +807,8 @@ var import_permissions = require("@zerodev/permissions");
|
|
|
807
807
|
var import_policies = require("@zerodev/permissions/policies");
|
|
808
808
|
|
|
809
809
|
// src/constants.ts
|
|
810
|
-
var ACCESS_URL = "https://api.acta.link/deposit";
|
|
811
|
-
var ACCESS_TESTNET_URL = "https://api.acta.link/deposit/test";
|
|
810
|
+
var ACCESS_URL = "https://flex-api.acta.link/flex/deposit";
|
|
811
|
+
var ACCESS_TESTNET_URL = "https://flex-api.acta.link/flex/deposit/test";
|
|
812
812
|
var PROXY_URL = `https://api.acta.link/proxy/v1`;
|
|
813
813
|
|
|
814
814
|
// src/account.ts
|
|
@@ -1461,8 +1461,8 @@ function createRecurringePaymentInternal(parameters) {
|
|
|
1461
1461
|
});
|
|
1462
1462
|
}
|
|
1463
1463
|
|
|
1464
|
-
// src/
|
|
1465
|
-
var
|
|
1464
|
+
// src/flex.ts
|
|
1465
|
+
var ActaFlexSDK = class {
|
|
1466
1466
|
constructor(parameters) {
|
|
1467
1467
|
this.projectId = parameters.projectId;
|
|
1468
1468
|
}
|
|
@@ -1535,8 +1535,8 @@ var ActaAccessSDK = class {
|
|
|
1535
1535
|
};
|
|
1536
1536
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1537
1537
|
0 && (module.exports = {
|
|
1538
|
-
ActaAccessSDK,
|
|
1539
1538
|
ActaAccount,
|
|
1539
|
+
ActaFlexSDK,
|
|
1540
1540
|
HttpMethod,
|
|
1541
1541
|
ViemClient,
|
|
1542
1542
|
arbitrumDAI,
|
package/dist/index.d.cts
CHANGED
|
@@ -21,7 +21,7 @@ declare const ActaAccessConfigSchema: z.ZodObject<{
|
|
|
21
21
|
projectId: z.ZodString;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
declare const CreateSinglePaymentSchema: z.ZodObject<{
|
|
24
|
-
signerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string
|
|
24
|
+
signerAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
25
25
|
chainId: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<42161>, z.ZodLiteral<8453>, z.ZodLiteral<59144>, z.ZodLiteral<56>, z.ZodLiteral<10>, z.ZodLiteral<137>, z.ZodLiteral<84532>, z.ZodLiteral<11155111>, z.ZodLiteral<80002>]>;
|
|
26
26
|
publicClient: z.ZodCustom<{
|
|
27
27
|
account: undefined;
|
|
@@ -16092,11 +16092,11 @@ declare const CreateSinglePaymentSchema: z.ZodObject<{
|
|
|
16092
16092
|
USDT: "USDT";
|
|
16093
16093
|
}>;
|
|
16094
16094
|
amount: z.ZodBigInt;
|
|
16095
|
-
receiver: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string
|
|
16095
|
+
receiver: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
16096
16096
|
allowMaxTokenApproval: z.ZodBoolean;
|
|
16097
16097
|
}, z.core.$strip>;
|
|
16098
16098
|
declare const CreateRecurringPaymentSchema: z.ZodObject<{
|
|
16099
|
-
signerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string
|
|
16099
|
+
signerAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
16100
16100
|
chainId: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<42161>, z.ZodLiteral<8453>, z.ZodLiteral<59144>, z.ZodLiteral<56>, z.ZodLiteral<10>, z.ZodLiteral<137>, z.ZodLiteral<84532>, z.ZodLiteral<11155111>, z.ZodLiteral<80002>]>;
|
|
16101
16101
|
publicClient: z.ZodCustom<{
|
|
16102
16102
|
account: undefined;
|
|
@@ -32167,7 +32167,7 @@ declare const CreateRecurringPaymentSchema: z.ZodObject<{
|
|
|
32167
32167
|
USDT: "USDT";
|
|
32168
32168
|
}>;
|
|
32169
32169
|
amount: z.ZodBigInt;
|
|
32170
|
-
receiver: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string
|
|
32170
|
+
receiver: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
32171
32171
|
allowMaxTokenApproval: z.ZodBoolean;
|
|
32172
32172
|
count: z.ZodNumber;
|
|
32173
32173
|
intervalUnit: z.ZodEnum<{
|
|
@@ -32178,7 +32178,7 @@ declare const CreateRecurringPaymentSchema: z.ZodObject<{
|
|
|
32178
32178
|
}>;
|
|
32179
32179
|
}, z.core.$strip>;
|
|
32180
32180
|
declare const EstimateSinglePaymentGasSchema: z.ZodObject<{
|
|
32181
|
-
signerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string
|
|
32181
|
+
signerAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
32182
32182
|
chainId: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<42161>, z.ZodLiteral<8453>, z.ZodLiteral<59144>, z.ZodLiteral<56>, z.ZodLiteral<10>, z.ZodLiteral<137>, z.ZodLiteral<84532>, z.ZodLiteral<11155111>, z.ZodLiteral<80002>]>;
|
|
32183
32183
|
publicClient: z.ZodCustom<{
|
|
32184
32184
|
account: undefined;
|
|
@@ -48249,7 +48249,7 @@ declare const EstimateSinglePaymentGasSchema: z.ZodObject<{
|
|
|
48249
48249
|
USDT: "USDT";
|
|
48250
48250
|
}>;
|
|
48251
48251
|
amount: z.ZodBigInt;
|
|
48252
|
-
receiver: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string
|
|
48252
|
+
receiver: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
48253
48253
|
}, z.core.$strip>;
|
|
48254
48254
|
declare const PaymentStatusSchema: z.ZodObject<{
|
|
48255
48255
|
id: z.ZodString;
|
|
@@ -52967,7 +52967,7 @@ declare function fetchRecurringTransactionWithId(url: string): Promise<any>;
|
|
|
52967
52967
|
declare function fetchPaymentStatus(url: string, id: string): Promise<any>;
|
|
52968
52968
|
declare function waitForPaymentStatus(url: string, id: string, intervalMs?: number): Promise<PaymentStatus>;
|
|
52969
52969
|
|
|
52970
|
-
declare class
|
|
52970
|
+
declare class ActaFlexSDK {
|
|
52971
52971
|
private projectId;
|
|
52972
52972
|
constructor(parameters: ActaAccessConfig);
|
|
52973
52973
|
estimateSinglePaymentGasInToken(parameters: EstimateSinglePaymentGas): Promise<bigint>;
|
|
@@ -52976,4 +52976,4 @@ declare class ActaAccessSDK {
|
|
|
52976
52976
|
waitForPaymentStatus(id: string, intervalMs?: number): Promise<PaymentStatus>;
|
|
52977
52977
|
}
|
|
52978
52978
|
|
|
52979
|
-
export {
|
|
52979
|
+
export { ActaAccount, ActaFlexSDK, HttpMethod, type HttpRequest, type JsonResponse, ViemClient, arbitrumDAI, arbitrumETH, arbitrumUSDC, arbitrumUSDCe, arbitrumUSDT, arbitrumWETH, baseDAI, baseETH, baseEURC, baseSepoliaUSDC, baseUSDC, baseUSDT, baseUSDbC, baseWETH, bscBNB, bscUSDC, bscUSDT, bscWBNB, ethereumDAI, ethereumETH, ethereumEURC, ethereumUSDC, ethereumUSDT, ethereumWETH, executeSinglePaymentAPICall, fetchPaymentStatus, fetchRecurringTransactionWithId, getChainById, getChainExplorerByChainId, getTokenByChainIdAndAddress, getTokenByChainIdAndSymbol, lineaDAI, lineaETH, lineaUSDC, lineaWETH, mainnetChains, optimismDAI, optimismETH, optimismUSDC, optimismUSDCe, optimismUSDT, optimismWETH, polygonAmoyUSDC, polygonDAI, polygonPOL, polygonUSDC, polygonUSDCe, polygonUSDT, polygonWETH, polygonWPOL, scheduleRecurringPaymentsAPICall, sendRequest, sepoliaUSDC, supportedChains, supportedTokensByChain, testnetChains, token, tokensCommonSymbols, waitForPaymentStatus };
|
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ declare const ActaAccessConfigSchema: z.ZodObject<{
|
|
|
21
21
|
projectId: z.ZodString;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
declare const CreateSinglePaymentSchema: z.ZodObject<{
|
|
24
|
-
signerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string
|
|
24
|
+
signerAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
25
25
|
chainId: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<42161>, z.ZodLiteral<8453>, z.ZodLiteral<59144>, z.ZodLiteral<56>, z.ZodLiteral<10>, z.ZodLiteral<137>, z.ZodLiteral<84532>, z.ZodLiteral<11155111>, z.ZodLiteral<80002>]>;
|
|
26
26
|
publicClient: z.ZodCustom<{
|
|
27
27
|
account: undefined;
|
|
@@ -16092,11 +16092,11 @@ declare const CreateSinglePaymentSchema: z.ZodObject<{
|
|
|
16092
16092
|
USDT: "USDT";
|
|
16093
16093
|
}>;
|
|
16094
16094
|
amount: z.ZodBigInt;
|
|
16095
|
-
receiver: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string
|
|
16095
|
+
receiver: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
16096
16096
|
allowMaxTokenApproval: z.ZodBoolean;
|
|
16097
16097
|
}, z.core.$strip>;
|
|
16098
16098
|
declare const CreateRecurringPaymentSchema: z.ZodObject<{
|
|
16099
|
-
signerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string
|
|
16099
|
+
signerAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
16100
16100
|
chainId: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<42161>, z.ZodLiteral<8453>, z.ZodLiteral<59144>, z.ZodLiteral<56>, z.ZodLiteral<10>, z.ZodLiteral<137>, z.ZodLiteral<84532>, z.ZodLiteral<11155111>, z.ZodLiteral<80002>]>;
|
|
16101
16101
|
publicClient: z.ZodCustom<{
|
|
16102
16102
|
account: undefined;
|
|
@@ -32167,7 +32167,7 @@ declare const CreateRecurringPaymentSchema: z.ZodObject<{
|
|
|
32167
32167
|
USDT: "USDT";
|
|
32168
32168
|
}>;
|
|
32169
32169
|
amount: z.ZodBigInt;
|
|
32170
|
-
receiver: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string
|
|
32170
|
+
receiver: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
32171
32171
|
allowMaxTokenApproval: z.ZodBoolean;
|
|
32172
32172
|
count: z.ZodNumber;
|
|
32173
32173
|
intervalUnit: z.ZodEnum<{
|
|
@@ -32178,7 +32178,7 @@ declare const CreateRecurringPaymentSchema: z.ZodObject<{
|
|
|
32178
32178
|
}>;
|
|
32179
32179
|
}, z.core.$strip>;
|
|
32180
32180
|
declare const EstimateSinglePaymentGasSchema: z.ZodObject<{
|
|
32181
|
-
signerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string
|
|
32181
|
+
signerAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
32182
32182
|
chainId: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<42161>, z.ZodLiteral<8453>, z.ZodLiteral<59144>, z.ZodLiteral<56>, z.ZodLiteral<10>, z.ZodLiteral<137>, z.ZodLiteral<84532>, z.ZodLiteral<11155111>, z.ZodLiteral<80002>]>;
|
|
32183
32183
|
publicClient: z.ZodCustom<{
|
|
32184
32184
|
account: undefined;
|
|
@@ -48249,7 +48249,7 @@ declare const EstimateSinglePaymentGasSchema: z.ZodObject<{
|
|
|
48249
48249
|
USDT: "USDT";
|
|
48250
48250
|
}>;
|
|
48251
48251
|
amount: z.ZodBigInt;
|
|
48252
|
-
receiver: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string
|
|
48252
|
+
receiver: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
48253
48253
|
}, z.core.$strip>;
|
|
48254
48254
|
declare const PaymentStatusSchema: z.ZodObject<{
|
|
48255
48255
|
id: z.ZodString;
|
|
@@ -52967,7 +52967,7 @@ declare function fetchRecurringTransactionWithId(url: string): Promise<any>;
|
|
|
52967
52967
|
declare function fetchPaymentStatus(url: string, id: string): Promise<any>;
|
|
52968
52968
|
declare function waitForPaymentStatus(url: string, id: string, intervalMs?: number): Promise<PaymentStatus>;
|
|
52969
52969
|
|
|
52970
|
-
declare class
|
|
52970
|
+
declare class ActaFlexSDK {
|
|
52971
52971
|
private projectId;
|
|
52972
52972
|
constructor(parameters: ActaAccessConfig);
|
|
52973
52973
|
estimateSinglePaymentGasInToken(parameters: EstimateSinglePaymentGas): Promise<bigint>;
|
|
@@ -52976,4 +52976,4 @@ declare class ActaAccessSDK {
|
|
|
52976
52976
|
waitForPaymentStatus(id: string, intervalMs?: number): Promise<PaymentStatus>;
|
|
52977
52977
|
}
|
|
52978
52978
|
|
|
52979
|
-
export {
|
|
52979
|
+
export { ActaAccount, ActaFlexSDK, HttpMethod, type HttpRequest, type JsonResponse, ViemClient, arbitrumDAI, arbitrumETH, arbitrumUSDC, arbitrumUSDCe, arbitrumUSDT, arbitrumWETH, baseDAI, baseETH, baseEURC, baseSepoliaUSDC, baseUSDC, baseUSDT, baseUSDbC, baseWETH, bscBNB, bscUSDC, bscUSDT, bscWBNB, ethereumDAI, ethereumETH, ethereumEURC, ethereumUSDC, ethereumUSDT, ethereumWETH, executeSinglePaymentAPICall, fetchPaymentStatus, fetchRecurringTransactionWithId, getChainById, getChainExplorerByChainId, getTokenByChainIdAndAddress, getTokenByChainIdAndSymbol, lineaDAI, lineaETH, lineaUSDC, lineaWETH, mainnetChains, optimismDAI, optimismETH, optimismUSDC, optimismUSDCe, optimismUSDT, optimismWETH, polygonAmoyUSDC, polygonDAI, polygonPOL, polygonUSDC, polygonUSDCe, polygonUSDT, polygonWETH, polygonWPOL, scheduleRecurringPaymentsAPICall, sendRequest, sepoliaUSDC, supportedChains, supportedTokensByChain, testnetChains, token, tokensCommonSymbols, waitForPaymentStatus };
|
package/dist/index.js
CHANGED
|
@@ -755,8 +755,8 @@ import {
|
|
|
755
755
|
} from "@zerodev/permissions/policies";
|
|
756
756
|
|
|
757
757
|
// src/constants.ts
|
|
758
|
-
var ACCESS_URL = "https://api.acta.link/deposit";
|
|
759
|
-
var ACCESS_TESTNET_URL = "https://api.acta.link/deposit/test";
|
|
758
|
+
var ACCESS_URL = "https://flex-api.acta.link/flex/deposit";
|
|
759
|
+
var ACCESS_TESTNET_URL = "https://flex-api.acta.link/flex/deposit/test";
|
|
760
760
|
var PROXY_URL = `https://api.acta.link/proxy/v1`;
|
|
761
761
|
|
|
762
762
|
// src/account.ts
|
|
@@ -1409,8 +1409,8 @@ function createRecurringePaymentInternal(parameters) {
|
|
|
1409
1409
|
});
|
|
1410
1410
|
}
|
|
1411
1411
|
|
|
1412
|
-
// src/
|
|
1413
|
-
var
|
|
1412
|
+
// src/flex.ts
|
|
1413
|
+
var ActaFlexSDK = class {
|
|
1414
1414
|
constructor(parameters) {
|
|
1415
1415
|
this.projectId = parameters.projectId;
|
|
1416
1416
|
}
|
|
@@ -1482,8 +1482,8 @@ var ActaAccessSDK = class {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
};
|
|
1484
1484
|
export {
|
|
1485
|
-
ActaAccessSDK,
|
|
1486
1485
|
ActaAccount,
|
|
1486
|
+
ActaFlexSDK,
|
|
1487
1487
|
HttpMethod,
|
|
1488
1488
|
ViemClient,
|
|
1489
1489
|
arbitrumDAI,
|