@gelatocloud/gasless 0.0.0
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/account/actions/getFeeQuote.d.ts +11 -0
- package/_dist/account/actions/getFeeQuote.d.ts.map +1 -0
- package/_dist/account/actions/getFeeQuote.js +21 -0
- package/_dist/account/actions/getFeeQuote.js.map +1 -0
- package/_dist/account/actions/index.d.ts +4 -0
- package/_dist/account/actions/index.d.ts.map +1 -0
- package/_dist/account/actions/index.js +20 -0
- package/_dist/account/actions/index.js.map +1 -0
- package/_dist/account/actions/sendTransaction.d.ts +20 -0
- package/_dist/account/actions/sendTransaction.d.ts.map +1 -0
- package/_dist/account/actions/sendTransaction.js +33 -0
- package/_dist/account/actions/sendTransaction.js.map +1 -0
- package/_dist/account/actions/sendTransactionSync.d.ts +9 -0
- package/_dist/account/actions/sendTransactionSync.d.ts.map +1 -0
- package/_dist/account/actions/sendTransactionSync.js +34 -0
- package/_dist/account/actions/sendTransactionSync.js.map +1 -0
- package/_dist/account/adapters/gelato/abi.d.ts +39 -0
- package/_dist/account/adapters/gelato/abi.d.ts.map +1 -0
- package/_dist/account/adapters/gelato/abi.js +13 -0
- package/_dist/account/adapters/gelato/abi.js.map +1 -0
- package/_dist/account/adapters/gelato/constants.d.ts +7 -0
- package/_dist/account/adapters/gelato/constants.d.ts.map +1 -0
- package/_dist/account/adapters/gelato/constants.js +9 -0
- package/_dist/account/adapters/gelato/constants.js.map +1 -0
- package/_dist/account/adapters/gelato/index.d.ts +10 -0
- package/_dist/account/adapters/gelato/index.d.ts.map +1 -0
- package/_dist/account/adapters/gelato/index.js +160 -0
- package/_dist/account/adapters/gelato/index.js.map +1 -0
- package/_dist/account/adapters/index.d.ts +2 -0
- package/_dist/account/adapters/index.d.ts.map +1 -0
- package/_dist/account/adapters/index.js +18 -0
- package/_dist/account/adapters/index.js.map +1 -0
- package/_dist/account/adapters/types/index.d.ts +22 -0
- package/_dist/account/adapters/types/index.d.ts.map +1 -0
- package/_dist/account/adapters/types/index.js +3 -0
- package/_dist/account/adapters/types/index.js.map +1 -0
- package/_dist/account/index.d.ts +17 -0
- package/_dist/account/index.d.ts.map +1 -0
- package/_dist/account/index.js +41 -0
- package/_dist/account/index.js.map +1 -0
- package/_dist/account/utils/delegation.d.ts +4 -0
- package/_dist/account/utils/delegation.d.ts.map +1 -0
- package/_dist/account/utils/delegation.js +12 -0
- package/_dist/account/utils/delegation.js.map +1 -0
- package/_dist/account/utils/estimation.d.ts +3 -0
- package/_dist/account/utils/estimation.d.ts.map +1 -0
- package/_dist/account/utils/estimation.js +19 -0
- package/_dist/account/utils/estimation.js.map +1 -0
- package/_dist/account/utils/index.d.ts +3 -0
- package/_dist/account/utils/index.d.ts.map +1 -0
- package/_dist/account/utils/index.js +19 -0
- package/_dist/account/utils/index.js.map +1 -0
- package/_dist/bundler/actions/estimateUserOperationGas.d.ts +6 -0
- package/_dist/bundler/actions/estimateUserOperationGas.d.ts.map +1 -0
- package/_dist/bundler/actions/estimateUserOperationGas.js +43 -0
- package/_dist/bundler/actions/estimateUserOperationGas.js.map +1 -0
- package/_dist/bundler/actions/getUserOperationGasPrice.d.ts +5 -0
- package/_dist/bundler/actions/getUserOperationGasPrice.d.ts.map +1 -0
- package/_dist/bundler/actions/getUserOperationGasPrice.js +20 -0
- package/_dist/bundler/actions/getUserOperationGasPrice.js.map +1 -0
- package/_dist/bundler/actions/getUserOperationQuote.d.ts +13 -0
- package/_dist/bundler/actions/getUserOperationQuote.d.ts.map +1 -0
- package/_dist/bundler/actions/getUserOperationQuote.js +50 -0
- package/_dist/bundler/actions/getUserOperationQuote.js.map +1 -0
- package/_dist/bundler/actions/index.d.ts +7 -0
- package/_dist/bundler/actions/index.d.ts.map +1 -0
- package/_dist/bundler/actions/index.js +23 -0
- package/_dist/bundler/actions/index.js.map +1 -0
- package/_dist/bundler/actions/prepareUserOperation.d.ts +6 -0
- package/_dist/bundler/actions/prepareUserOperation.d.ts.map +1 -0
- package/_dist/bundler/actions/prepareUserOperation.js +340 -0
- package/_dist/bundler/actions/prepareUserOperation.js.map +1 -0
- package/_dist/bundler/actions/sendUserOperation.d.ts +6 -0
- package/_dist/bundler/actions/sendUserOperation.d.ts.map +1 -0
- package/_dist/bundler/actions/sendUserOperation.js +41 -0
- package/_dist/bundler/actions/sendUserOperation.js.map +1 -0
- package/_dist/bundler/actions/sendUserOperationSync.d.ts +9 -0
- package/_dist/bundler/actions/sendUserOperationSync.d.ts.map +1 -0
- package/_dist/bundler/actions/sendUserOperationSync.js +42 -0
- package/_dist/bundler/actions/sendUserOperationSync.js.map +1 -0
- package/_dist/bundler/index.d.ts +18 -0
- package/_dist/bundler/index.d.ts.map +1 -0
- package/_dist/bundler/index.js +61 -0
- package/_dist/bundler/index.js.map +1 -0
- package/_dist/index.d.ts +5 -0
- package/_dist/index.d.ts.map +1 -0
- package/_dist/index.js +21 -0
- package/_dist/index.js.map +1 -0
- package/_dist/relayer/constants/index.d.ts +3 -0
- package/_dist/relayer/constants/index.d.ts.map +1 -0
- package/_dist/relayer/constants/index.js +6 -0
- package/_dist/relayer/constants/index.js.map +1 -0
- package/_dist/relayer/evm/actions/getCapabilities.d.ts +21 -0
- package/_dist/relayer/evm/actions/getCapabilities.d.ts.map +1 -0
- package/_dist/relayer/evm/actions/getCapabilities.js +19 -0
- package/_dist/relayer/evm/actions/getCapabilities.js.map +1 -0
- package/_dist/relayer/evm/actions/getFeeData.d.ts +21 -0
- package/_dist/relayer/evm/actions/getFeeData.d.ts.map +1 -0
- package/_dist/relayer/evm/actions/getFeeData.js +26 -0
- package/_dist/relayer/evm/actions/getFeeData.js.map +1 -0
- package/_dist/relayer/evm/actions/getFeeQuote.d.ts +22 -0
- package/_dist/relayer/evm/actions/getFeeQuote.d.ts.map +1 -0
- package/_dist/relayer/evm/actions/getFeeQuote.js +27 -0
- package/_dist/relayer/evm/actions/getFeeQuote.js.map +1 -0
- package/_dist/relayer/evm/actions/getStatus.d.ts +81 -0
- package/_dist/relayer/evm/actions/getStatus.d.ts.map +1 -0
- package/_dist/relayer/evm/actions/getStatus.js +72 -0
- package/_dist/relayer/evm/actions/getStatus.js.map +1 -0
- package/_dist/relayer/evm/actions/index.d.ts +8 -0
- package/_dist/relayer/evm/actions/index.d.ts.map +1 -0
- package/_dist/relayer/evm/actions/index.js +24 -0
- package/_dist/relayer/evm/actions/index.js.map +1 -0
- package/_dist/relayer/evm/actions/sendTransaction.d.ts +12 -0
- package/_dist/relayer/evm/actions/sendTransaction.d.ts.map +1 -0
- package/_dist/relayer/evm/actions/sendTransaction.js +22 -0
- package/_dist/relayer/evm/actions/sendTransaction.js.map +1 -0
- package/_dist/relayer/evm/actions/sendTransactionSync.d.ts +8 -0
- package/_dist/relayer/evm/actions/sendTransactionSync.d.ts.map +1 -0
- package/_dist/relayer/evm/actions/sendTransactionSync.js +23 -0
- package/_dist/relayer/evm/actions/sendTransactionSync.js.map +1 -0
- package/_dist/relayer/evm/actions/waitForStatus.d.ts +4 -0
- package/_dist/relayer/evm/actions/waitForStatus.d.ts.map +1 -0
- package/_dist/relayer/evm/actions/waitForStatus.js +17 -0
- package/_dist/relayer/evm/actions/waitForStatus.js.map +1 -0
- package/_dist/relayer/evm/index.d.ts +18 -0
- package/_dist/relayer/evm/index.d.ts.map +1 -0
- package/_dist/relayer/evm/index.js +46 -0
- package/_dist/relayer/evm/index.js.map +1 -0
- package/_dist/relayer/index.d.ts +2 -0
- package/_dist/relayer/index.d.ts.map +1 -0
- package/_dist/relayer/index.js +18 -0
- package/_dist/relayer/index.js.map +1 -0
- package/_dist/tsconfig.build.tsbuildinfo +1 -0
- package/_dist/types/error.d.ts +14 -0
- package/_dist/types/error.d.ts.map +1 -0
- package/_dist/types/error.js +27 -0
- package/_dist/types/error.js.map +1 -0
- package/_dist/types/index.d.ts +4 -0
- package/_dist/types/index.d.ts.map +1 -0
- package/_dist/types/index.js +20 -0
- package/_dist/types/index.js.map +1 -0
- package/_dist/types/payment.d.ts +17 -0
- package/_dist/types/payment.d.ts.map +1 -0
- package/_dist/types/payment.js +16 -0
- package/_dist/types/payment.js.map +1 -0
- package/_dist/types/schema.d.ts +10 -0
- package/_dist/types/schema.d.ts.map +1 -0
- package/_dist/types/schema.js +25 -0
- package/_dist/types/schema.js.map +1 -0
- package/_dist/utils/index.d.ts +3 -0
- package/_dist/utils/index.d.ts.map +1 -0
- package/_dist/utils/index.js +19 -0
- package/_dist/utils/index.js.map +1 -0
- package/_dist/utils/payment.d.ts +3 -0
- package/_dist/utils/payment.d.ts.map +1 -0
- package/_dist/utils/payment.js +17 -0
- package/_dist/utils/payment.js.map +1 -0
- package/_dist/utils/serialize.d.ts +17 -0
- package/_dist/utils/serialize.d.ts.map +1 -0
- package/_dist/utils/serialize.js +77 -0
- package/_dist/utils/serialize.js.map +1 -0
- package/account/actions/getFeeQuote.ts +34 -0
- package/account/actions/index.ts +3 -0
- package/account/actions/sendTransaction.ts +61 -0
- package/account/actions/sendTransactionSync.ts +51 -0
- package/account/adapters/gelato/abi.ts +13 -0
- package/account/adapters/gelato/constants.ts +13 -0
- package/account/adapters/gelato/index.ts +216 -0
- package/account/adapters/index.ts +1 -0
- package/account/adapters/types/index.ts +36 -0
- package/account/index.ts +60 -0
- package/account/utils/delegation.ts +9 -0
- package/account/utils/estimation.ts +29 -0
- package/account/utils/index.ts +2 -0
- package/bundler/actions/estimateUserOperationGas.ts +63 -0
- package/bundler/actions/getUserOperationGasPrice.ts +25 -0
- package/bundler/actions/getUserOperationQuote.ts +83 -0
- package/bundler/actions/index.ts +6 -0
- package/bundler/actions/prepareUserOperation.ts +437 -0
- package/bundler/actions/sendUserOperation.ts +64 -0
- package/bundler/actions/sendUserOperationSync.ts +71 -0
- package/bundler/index.ts +98 -0
- package/index.ts +4 -0
- package/package.json +36 -0
- package/relayer/constants/index.ts +2 -0
- package/relayer/evm/actions/getCapabilities.ts +22 -0
- package/relayer/evm/actions/getFeeData.ts +36 -0
- package/relayer/evm/actions/getFeeQuote.ts +39 -0
- package/relayer/evm/actions/getStatus.ts +92 -0
- package/relayer/evm/actions/index.ts +7 -0
- package/relayer/evm/actions/sendTransaction.ts +33 -0
- package/relayer/evm/actions/sendTransactionSync.ts +30 -0
- package/relayer/evm/actions/waitForStatus.ts +24 -0
- package/relayer/evm/index.ts +68 -0
- package/relayer/index.ts +1 -0
- package/tsconfig.build.json +19 -0
- package/tsconfig.json +8 -0
- package/types/error.ts +38 -0
- package/types/index.ts +3 -0
- package/types/payment.ts +23 -0
- package/types/schema.ts +28 -0
- package/utils/index.ts +2 -0
- package/utils/payment.ts +20 -0
- package/utils/serialize.ts +91 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../relayer/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,eAAO,MAAM,kBAAkB,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GELATO_STAGING_API = exports.GELATO_PROD_API = void 0;
|
|
4
|
+
exports.GELATO_PROD_API = 'https://api.gelato.cloud';
|
|
5
|
+
exports.GELATO_STAGING_API = 'https://api.t.gelato.cloud';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../relayer/constants/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,0BAA0B,CAAC;AAC7C,QAAA,kBAAkB,GAAG,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Transport } from 'viem';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
declare const capabilitiesByChainSchema: z.ZodObject<{
|
|
4
|
+
feeCollector: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
5
|
+
tokens: z.ZodArray<z.ZodObject<{
|
|
6
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
7
|
+
decimals: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const capabilitiesSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodCoercedNumber<string>>, z.ZodObject<{
|
|
11
|
+
feeCollector: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
12
|
+
tokens: z.ZodArray<z.ZodObject<{
|
|
13
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
14
|
+
decimals: z.ZodNumber;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
export type CapabilitiesByChain = z.infer<typeof capabilitiesByChainSchema>;
|
|
18
|
+
export type Capabilities = z.infer<typeof capabilitiesSchema>;
|
|
19
|
+
export declare const getCapabilities: (client: ReturnType<Transport>) => Promise<Capabilities>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=getCapabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCapabilities.d.ts","sourceRoot":"","sources":["../../../../relayer/evm/actions/getCapabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,QAAA,MAAM,yBAAyB;;;;;;iBAG7B,CAAC;AAEH,QAAA,MAAM,kBAAkB;;;;;;kBAA0E,CAAC;AAEnG,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,eAAe,GAAU,QAAQ,UAAU,CAAC,SAAS,CAAC,KAAG,OAAO,CAAC,YAAY,CAOzF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCapabilities = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const index_js_1 = require("../../../types/index.js");
|
|
6
|
+
const capabilitiesByChainSchema = zod_1.z.object({
|
|
7
|
+
feeCollector: index_js_1.evmAddressSchema,
|
|
8
|
+
tokens: zod_1.z.array(index_js_1.evmTokenSchema)
|
|
9
|
+
});
|
|
10
|
+
const capabilitiesSchema = zod_1.z.record(zod_1.z.string().pipe(zod_1.z.coerce.number()), capabilitiesByChainSchema);
|
|
11
|
+
const getCapabilities = async (client) => {
|
|
12
|
+
const result = await client.request({
|
|
13
|
+
method: 'relayer_getCapabilities',
|
|
14
|
+
params: []
|
|
15
|
+
});
|
|
16
|
+
return capabilitiesSchema.parse(result);
|
|
17
|
+
};
|
|
18
|
+
exports.getCapabilities = getCapabilities;
|
|
19
|
+
//# sourceMappingURL=getCapabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCapabilities.js","sourceRoot":"","sources":["../../../../relayer/evm/actions/getCapabilities.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AACxB,sDAA2E;AAE3E,MAAM,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,YAAY,EAAE,2BAAgB;IAC9B,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,yBAAc,CAAC;CAChC,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,yBAAyB,CAAC,CAAC;AAK5F,MAAM,eAAe,GAAG,KAAK,EAAE,MAA6B,EAAyB,EAAE;IAC5F,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,yBAAyB;QACjC,MAAM,EAAE,EAAE;KACX,CAAC,CAAC;IAEH,OAAO,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAC1C,CAAC,CAAC;AAPW,QAAA,eAAe,mBAO1B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Address, Transport } from 'viem';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
declare const feeDataSchema: z.ZodObject<{
|
|
4
|
+
chainId: z.ZodCoercedNumber<unknown>;
|
|
5
|
+
context: z.ZodOptional<z.ZodUnknown>;
|
|
6
|
+
expiry: z.ZodNumber;
|
|
7
|
+
gasPrice: z.ZodCoercedBigInt<unknown>;
|
|
8
|
+
rate: z.ZodNumber;
|
|
9
|
+
token: z.ZodObject<{
|
|
10
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
11
|
+
decimals: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type FeeData = z.infer<typeof feeDataSchema>;
|
|
15
|
+
export type GetFeeDataParameters = {
|
|
16
|
+
chainId: number;
|
|
17
|
+
token: Address;
|
|
18
|
+
};
|
|
19
|
+
export declare const getFeeData: (client: ReturnType<Transport>, parameters: GetFeeDataParameters) => Promise<FeeData>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=getFeeData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFeeData.d.ts","sourceRoot":"","sources":["../../../../relayer/evm/actions/getFeeData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,QAAA,MAAM,aAAa;;;;;;;;;;iBAOjB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,QAAQ,UAAU,CAAC,SAAS,CAAC,EAC7B,YAAY,oBAAoB,KAC/B,OAAO,CAAC,OAAO,CAYjB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getFeeData = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const index_js_1 = require("../../../types/index.js");
|
|
6
|
+
const feeDataSchema = zod_1.z.object({
|
|
7
|
+
chainId: zod_1.z.coerce.number(),
|
|
8
|
+
context: zod_1.z.unknown().optional(),
|
|
9
|
+
expiry: zod_1.z.number(),
|
|
10
|
+
gasPrice: zod_1.z.coerce.bigint(),
|
|
11
|
+
rate: zod_1.z.number(),
|
|
12
|
+
token: index_js_1.evmTokenSchema
|
|
13
|
+
});
|
|
14
|
+
const getFeeData = async (client, parameters) => {
|
|
15
|
+
const { chainId, token } = parameters;
|
|
16
|
+
const result = await client.request({
|
|
17
|
+
method: 'relayer_getFeeData',
|
|
18
|
+
params: {
|
|
19
|
+
chainId: chainId.toString(),
|
|
20
|
+
token
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
return feeDataSchema.parse(result);
|
|
24
|
+
};
|
|
25
|
+
exports.getFeeData = getFeeData;
|
|
26
|
+
//# sourceMappingURL=getFeeData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFeeData.js","sourceRoot":"","sources":["../../../../relayer/evm/actions/getFeeData.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AACxB,sDAAyD;AAEzD,MAAM,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC1B,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC3B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,yBAAc;CACtB,CAAC,CAAC;AASI,MAAM,UAAU,GAAG,KAAK,EAC7B,MAA6B,EAC7B,UAAgC,EACd,EAAE;IACpB,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC;IAEtC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,oBAAoB;QAC5B,MAAM,EAAE;YACN,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE;YAC3B,KAAK;SACN;KACF,CAAC,CAAC;IAEH,OAAO,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACrC,CAAC,CAAC;AAfW,QAAA,UAAU,cAerB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Address, Transport } from 'viem';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
declare const feeQuote: z.ZodObject<{
|
|
4
|
+
chainId: z.ZodCoercedNumber<unknown>;
|
|
5
|
+
context: z.ZodOptional<z.ZodUnknown>;
|
|
6
|
+
expiry: z.ZodNumber;
|
|
7
|
+
fee: z.ZodCoercedBigInt<unknown>;
|
|
8
|
+
token: z.ZodObject<{
|
|
9
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
10
|
+
decimals: z.ZodNumber;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type FeeQuote = z.infer<typeof feeQuote>;
|
|
14
|
+
export type GetFeeQuoteParameters = {
|
|
15
|
+
chainId: number;
|
|
16
|
+
gas: bigint;
|
|
17
|
+
l1Fee?: bigint;
|
|
18
|
+
token: Address;
|
|
19
|
+
};
|
|
20
|
+
export declare const getFeeQuote: (client: ReturnType<Transport>, parameters: GetFeeQuoteParameters) => Promise<FeeQuote>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=getFeeQuote.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFeeQuote.d.ts","sourceRoot":"","sources":["../../../../relayer/evm/actions/getFeeQuote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,QAAA,MAAM,QAAQ;;;;;;;;;iBAMZ,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,QAAQ,UAAU,CAAC,SAAS,CAAC,EAC7B,YAAY,qBAAqB,KAChC,OAAO,CAAC,QAAQ,CAclB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getFeeQuote = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const index_js_1 = require("../../../types/index.js");
|
|
6
|
+
const feeQuote = zod_1.z.object({
|
|
7
|
+
chainId: zod_1.z.coerce.number(),
|
|
8
|
+
context: zod_1.z.unknown().optional(),
|
|
9
|
+
expiry: zod_1.z.number(),
|
|
10
|
+
fee: zod_1.z.coerce.bigint(),
|
|
11
|
+
token: index_js_1.evmTokenSchema
|
|
12
|
+
});
|
|
13
|
+
const getFeeQuote = async (client, parameters) => {
|
|
14
|
+
const { chainId, gas, l1Fee, token } = parameters;
|
|
15
|
+
const result = await client.request({
|
|
16
|
+
method: 'relayer_getFeeQuote',
|
|
17
|
+
params: {
|
|
18
|
+
chainId: chainId.toString(),
|
|
19
|
+
gas: gas.toString(),
|
|
20
|
+
l1Fee: l1Fee ? l1Fee.toString() : undefined,
|
|
21
|
+
token
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return feeQuote.parse(result);
|
|
25
|
+
};
|
|
26
|
+
exports.getFeeQuote = getFeeQuote;
|
|
27
|
+
//# sourceMappingURL=getFeeQuote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFeeQuote.js","sourceRoot":"","sources":["../../../../relayer/evm/actions/getFeeQuote.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AACxB,sDAAyD;AAEzD,MAAM,QAAQ,GAAG,OAAC,CAAC,MAAM,CAAC;IACxB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC1B,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,GAAG,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IACtB,KAAK,EAAE,yBAAc;CACtB,CAAC,CAAC;AAWI,MAAM,WAAW,GAAG,KAAK,EAC9B,MAA6B,EAC7B,UAAiC,EACd,EAAE;IACrB,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC;IAElD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EAAE;YACN,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE;YAC3B,GAAG,EAAE,GAAG,CAAC,QAAQ,EAAE;YACnB,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS;YAC3C,KAAK;SACN;KACF,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAChC,CAAC,CAAC;AAjBW,QAAA,WAAW,eAiBtB"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { Transport } from 'viem';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare enum StatusCode {
|
|
4
|
+
Pending = 100,
|
|
5
|
+
Submitted = 110,
|
|
6
|
+
Included = 200,
|
|
7
|
+
Rejected = 400,
|
|
8
|
+
Reverted = 500
|
|
9
|
+
}
|
|
10
|
+
export declare const terminalStatusSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11
|
+
chainId: z.ZodCoercedNumber<unknown>;
|
|
12
|
+
createdAt: z.ZodNumber;
|
|
13
|
+
receipt: z.ZodObject<{
|
|
14
|
+
blockHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
15
|
+
blockNumber: z.ZodCoercedBigInt<unknown>;
|
|
16
|
+
gasUsed: z.ZodCoercedBigInt<unknown>;
|
|
17
|
+
logs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
19
|
+
data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
20
|
+
topics: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
21
|
+
}, z.core.$strip>>>;
|
|
22
|
+
transactionHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
status: z.ZodLiteral<StatusCode.Included>;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
chainId: z.ZodCoercedNumber<unknown>;
|
|
27
|
+
createdAt: z.ZodNumber;
|
|
28
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
29
|
+
message: z.ZodString;
|
|
30
|
+
status: z.ZodLiteral<StatusCode.Rejected>;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
chainId: z.ZodCoercedNumber<unknown>;
|
|
33
|
+
createdAt: z.ZodNumber;
|
|
34
|
+
data: z.ZodString;
|
|
35
|
+
message: z.ZodOptional<z.ZodString>;
|
|
36
|
+
status: z.ZodLiteral<StatusCode.Reverted>;
|
|
37
|
+
}, z.core.$strip>], "status">;
|
|
38
|
+
export declare const statusSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39
|
+
chainId: z.ZodCoercedNumber<unknown>;
|
|
40
|
+
createdAt: z.ZodNumber;
|
|
41
|
+
status: z.ZodLiteral<StatusCode.Pending>;
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
+
chainId: z.ZodCoercedNumber<unknown>;
|
|
44
|
+
createdAt: z.ZodNumber;
|
|
45
|
+
hash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
46
|
+
status: z.ZodLiteral<StatusCode.Submitted>;
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
+
chainId: z.ZodCoercedNumber<unknown>;
|
|
49
|
+
createdAt: z.ZodNumber;
|
|
50
|
+
receipt: z.ZodObject<{
|
|
51
|
+
blockHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
52
|
+
blockNumber: z.ZodCoercedBigInt<unknown>;
|
|
53
|
+
gasUsed: z.ZodCoercedBigInt<unknown>;
|
|
54
|
+
logs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
55
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
56
|
+
data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
57
|
+
topics: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
transactionHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
status: z.ZodLiteral<StatusCode.Included>;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
chainId: z.ZodCoercedNumber<unknown>;
|
|
64
|
+
createdAt: z.ZodNumber;
|
|
65
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
66
|
+
message: z.ZodString;
|
|
67
|
+
status: z.ZodLiteral<StatusCode.Rejected>;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
+
chainId: z.ZodCoercedNumber<unknown>;
|
|
70
|
+
createdAt: z.ZodNumber;
|
|
71
|
+
data: z.ZodString;
|
|
72
|
+
message: z.ZodOptional<z.ZodString>;
|
|
73
|
+
status: z.ZodLiteral<StatusCode.Reverted>;
|
|
74
|
+
}, z.core.$strip>], "status">;
|
|
75
|
+
export type TerminalStatus = z.infer<typeof terminalStatusSchema>;
|
|
76
|
+
export type Status = z.infer<typeof statusSchema>;
|
|
77
|
+
export type GetStatusParameters = {
|
|
78
|
+
id: string;
|
|
79
|
+
};
|
|
80
|
+
export declare const getStatus: (client: ReturnType<Transport>, parameters: GetStatusParameters) => Promise<Status>;
|
|
81
|
+
//# sourceMappingURL=getStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStatus.d.ts","sourceRoot":"","sources":["../../../../relayer/evm/actions/getStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,oBAAY,UAAU;IACpB,OAAO,MAAM;IACb,SAAS,MAAM;IACf,QAAQ,MAAM;IACd,QAAQ,MAAM;IACd,QAAQ,MAAM;CACf;AA+CD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAI/B,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAMvB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,QAAQ,UAAU,CAAC,SAAS,CAAC,EAC7B,YAAY,mBAAmB,KAC9B,OAAO,CAAC,MAAM,CAShB,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getStatus = exports.statusSchema = exports.terminalStatusSchema = exports.StatusCode = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const index_js_1 = require("../../../types/index.js");
|
|
6
|
+
var StatusCode;
|
|
7
|
+
(function (StatusCode) {
|
|
8
|
+
StatusCode[StatusCode["Pending"] = 100] = "Pending";
|
|
9
|
+
StatusCode[StatusCode["Submitted"] = 110] = "Submitted";
|
|
10
|
+
StatusCode[StatusCode["Included"] = 200] = "Included";
|
|
11
|
+
StatusCode[StatusCode["Rejected"] = 400] = "Rejected";
|
|
12
|
+
StatusCode[StatusCode["Reverted"] = 500] = "Reverted";
|
|
13
|
+
})(StatusCode || (exports.StatusCode = StatusCode = {}));
|
|
14
|
+
const logSchema = zod_1.z.object({
|
|
15
|
+
address: index_js_1.evmAddressSchema,
|
|
16
|
+
data: index_js_1.hexDataSchema,
|
|
17
|
+
topics: zod_1.z.array(index_js_1.hexData32Schema)
|
|
18
|
+
});
|
|
19
|
+
const receiptSchema = zod_1.z.object({
|
|
20
|
+
blockHash: index_js_1.hexData32Schema,
|
|
21
|
+
blockNumber: zod_1.z.coerce.bigint(),
|
|
22
|
+
gasUsed: zod_1.z.coerce.bigint(),
|
|
23
|
+
logs: zod_1.z.array(logSchema).optional(),
|
|
24
|
+
transactionHash: index_js_1.hexData32Schema
|
|
25
|
+
});
|
|
26
|
+
const baseStatusSchema = zod_1.z.object({
|
|
27
|
+
chainId: zod_1.z.coerce.number(),
|
|
28
|
+
createdAt: zod_1.z.number()
|
|
29
|
+
});
|
|
30
|
+
const pendingStatusSchema = baseStatusSchema.extend({
|
|
31
|
+
status: zod_1.z.literal(StatusCode.Pending)
|
|
32
|
+
});
|
|
33
|
+
const submittedStatusSchema = baseStatusSchema.extend({
|
|
34
|
+
hash: index_js_1.hexData32Schema,
|
|
35
|
+
status: zod_1.z.literal(StatusCode.Submitted)
|
|
36
|
+
});
|
|
37
|
+
const includedStatusSchema = baseStatusSchema.extend({
|
|
38
|
+
receipt: receiptSchema,
|
|
39
|
+
status: zod_1.z.literal(StatusCode.Included)
|
|
40
|
+
});
|
|
41
|
+
const rejectedStatusSchema = baseStatusSchema.extend({
|
|
42
|
+
data: zod_1.z.unknown().optional(),
|
|
43
|
+
message: zod_1.z.string(),
|
|
44
|
+
status: zod_1.z.literal(StatusCode.Rejected)
|
|
45
|
+
});
|
|
46
|
+
const revertedStatusSchema = baseStatusSchema.extend({
|
|
47
|
+
data: zod_1.z.string(),
|
|
48
|
+
message: zod_1.z.string().optional(),
|
|
49
|
+
status: zod_1.z.literal(StatusCode.Reverted)
|
|
50
|
+
});
|
|
51
|
+
exports.terminalStatusSchema = zod_1.z.discriminatedUnion('status', [
|
|
52
|
+
includedStatusSchema,
|
|
53
|
+
rejectedStatusSchema,
|
|
54
|
+
revertedStatusSchema
|
|
55
|
+
]);
|
|
56
|
+
exports.statusSchema = zod_1.z.discriminatedUnion('status', [
|
|
57
|
+
pendingStatusSchema,
|
|
58
|
+
submittedStatusSchema,
|
|
59
|
+
includedStatusSchema,
|
|
60
|
+
rejectedStatusSchema,
|
|
61
|
+
revertedStatusSchema
|
|
62
|
+
]);
|
|
63
|
+
const getStatus = async (client, parameters) => {
|
|
64
|
+
const { id } = parameters;
|
|
65
|
+
const result = await client.request({
|
|
66
|
+
method: 'relayer_getStatus',
|
|
67
|
+
params: { id }
|
|
68
|
+
});
|
|
69
|
+
return exports.statusSchema.parse(result);
|
|
70
|
+
};
|
|
71
|
+
exports.getStatus = getStatus;
|
|
72
|
+
//# sourceMappingURL=getStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStatus.js","sourceRoot":"","sources":["../../../../relayer/evm/actions/getStatus.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './getCapabilities.js';
|
|
2
|
+
export * from './getFeeData.js';
|
|
3
|
+
export * from './getFeeQuote.js';
|
|
4
|
+
export * from './getStatus.js';
|
|
5
|
+
export * from './sendTransaction.js';
|
|
6
|
+
export * from './sendTransactionSync.js';
|
|
7
|
+
export * from './waitForStatus.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../relayer/evm/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./getCapabilities.js"), exports);
|
|
18
|
+
__exportStar(require("./getFeeData.js"), exports);
|
|
19
|
+
__exportStar(require("./getFeeQuote.js"), exports);
|
|
20
|
+
__exportStar(require("./getStatus.js"), exports);
|
|
21
|
+
__exportStar(require("./sendTransaction.js"), exports);
|
|
22
|
+
__exportStar(require("./sendTransactionSync.js"), exports);
|
|
23
|
+
__exportStar(require("./waitForStatus.js"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../relayer/evm/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,iDAA+B;AAC/B,uDAAqC;AACrC,2DAAyC;AACzC,qDAAmC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Address, Hex, SignedAuthorizationList, Transport } from 'viem';
|
|
2
|
+
import { type Payment } from '../../../types/index.js';
|
|
3
|
+
export type SendTransactionParameters = {
|
|
4
|
+
authorizationList?: SignedAuthorizationList;
|
|
5
|
+
chainId: number;
|
|
6
|
+
context?: unknown;
|
|
7
|
+
data: Hex;
|
|
8
|
+
payment: Payment;
|
|
9
|
+
to: Address;
|
|
10
|
+
};
|
|
11
|
+
export declare const sendTransaction: (client: ReturnType<Transport>, parameters: SendTransactionParameters) => Promise<Hex>;
|
|
12
|
+
//# sourceMappingURL=sendTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendTransaction.d.ts","sourceRoot":"","sources":["../../../../relayer/evm/actions/sendTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,uBAAuB,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAC7E,OAAO,EAAmB,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGxE,MAAM,MAAM,yBAAyB,GAAG;IACtC,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,EAAE,OAAO,CAAC;IACjB,EAAE,EAAE,OAAO,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,QAAQ,UAAU,CAAC,SAAS,CAAC,EAC7B,YAAY,yBAAyB,KACpC,OAAO,CAAC,GAAG,CAgBb,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendTransaction = void 0;
|
|
4
|
+
const index_js_1 = require("../../../types/index.js");
|
|
5
|
+
const index_js_2 = require("../../../utils/index.js");
|
|
6
|
+
const sendTransaction = async (client, parameters) => {
|
|
7
|
+
const { chainId, data, to, payment, context, authorizationList } = parameters;
|
|
8
|
+
const result = await client.request({
|
|
9
|
+
method: 'relayer_sendTransaction',
|
|
10
|
+
params: {
|
|
11
|
+
authorizationList: authorizationList ? authorizationList.map(index_js_2.formatAuthorization) : undefined,
|
|
12
|
+
chainId: chainId.toString(),
|
|
13
|
+
context,
|
|
14
|
+
data,
|
|
15
|
+
payment,
|
|
16
|
+
to
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
return index_js_1.hexData32Schema.parse(result);
|
|
20
|
+
};
|
|
21
|
+
exports.sendTransaction = sendTransaction;
|
|
22
|
+
//# sourceMappingURL=sendTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendTransaction.js","sourceRoot":"","sources":["../../../../relayer/evm/actions/sendTransaction.ts"],"names":[],"mappings":";;;AACA,sDAAwE;AACxE,sDAA8D;AAWvD,MAAM,eAAe,GAAG,KAAK,EAClC,MAA6B,EAC7B,UAAqC,EACvB,EAAE;IAChB,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,GAAG,UAAU,CAAC;IAE9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,yBAAyB;QACjC,MAAM,EAAE;YACN,iBAAiB,EAAE,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,GAAG,CAAC,8BAAmB,CAAC,CAAC,CAAC,CAAC,SAAS;YAC7F,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE;YAC3B,OAAO;YACP,IAAI;YACJ,OAAO;YACP,EAAE;SACH;KACF,CAAC,CAAC;IAEH,OAAO,0BAAe,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACvC,CAAC,CAAC;AAnBW,QAAA,eAAe,mBAmB1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Transport } from 'viem';
|
|
2
|
+
import { type TerminalStatus } from './getStatus.js';
|
|
3
|
+
import type { SendTransactionParameters } from './sendTransaction.js';
|
|
4
|
+
export type SendTransactionSyncParameters = SendTransactionParameters & {
|
|
5
|
+
timeout?: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const sendTransactionSync: (client: ReturnType<Transport>, parameters: SendTransactionSyncParameters) => Promise<TerminalStatus>;
|
|
8
|
+
//# sourceMappingURL=sendTransactionSync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendTransactionSync.d.ts","sourceRoot":"","sources":["../../../../relayer/evm/actions/sendTransactionSync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEtC,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,gBAAgB,CAAC;AAC3E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,GAAG;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,UAAU,CAAC,SAAS,CAAC,EAC7B,YAAY,6BAA6B,KACxC,OAAO,CAAC,cAAc,CAiBxB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendTransactionSync = void 0;
|
|
4
|
+
const index_js_1 = require("../../../utils/index.js");
|
|
5
|
+
const getStatus_js_1 = require("./getStatus.js");
|
|
6
|
+
const sendTransactionSync = async (client, parameters) => {
|
|
7
|
+
const { chainId, data, to, payment, context, authorizationList, timeout } = parameters;
|
|
8
|
+
const result = await client.request({
|
|
9
|
+
method: 'relayer_sendTransactionSync',
|
|
10
|
+
params: {
|
|
11
|
+
authorizationList: authorizationList ? authorizationList.map(index_js_1.formatAuthorization) : undefined,
|
|
12
|
+
chainId: chainId.toString(),
|
|
13
|
+
context,
|
|
14
|
+
data,
|
|
15
|
+
payment,
|
|
16
|
+
timeout,
|
|
17
|
+
to
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
return getStatus_js_1.terminalStatusSchema.parse(result);
|
|
21
|
+
};
|
|
22
|
+
exports.sendTransactionSync = sendTransactionSync;
|
|
23
|
+
//# sourceMappingURL=sendTransactionSync.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendTransactionSync.js","sourceRoot":"","sources":["../../../../relayer/evm/actions/sendTransactionSync.ts"],"names":[],"mappings":";;;AACA,sDAA8D;AAC9D,iDAA2E;AAOpE,MAAM,mBAAmB,GAAG,KAAK,EACtC,MAA6B,EAC7B,UAAyC,EAChB,EAAE;IAC3B,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC;IAEvF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,6BAA6B;QACrC,MAAM,EAAE;YACN,iBAAiB,EAAE,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,GAAG,CAAC,8BAAmB,CAAC,CAAC,CAAC,CAAC,SAAS;YAC7F,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE;YAC3B,OAAO;YACP,IAAI;YACJ,OAAO;YACP,OAAO;YACP,EAAE;SACH;KACF,CAAC,CAAC;IAEH,OAAO,mCAAoB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAC5C,CAAC,CAAC;AApBW,QAAA,mBAAmB,uBAoB9B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Transport } from 'viem';
|
|
2
|
+
import { type GetStatusParameters, type TerminalStatus } from './getStatus.js';
|
|
3
|
+
export declare const waitForStatus: (client: ReturnType<Transport>, parameters: GetStatusParameters) => Promise<TerminalStatus>;
|
|
4
|
+
//# sourceMappingURL=waitForStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waitForStatus.d.ts","sourceRoot":"","sources":["../../../../relayer/evm/actions/waitForStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EACL,KAAK,mBAAmB,EAGxB,KAAK,cAAc,EACpB,MAAM,gBAAgB,CAAC;AAIxB,eAAO,MAAM,aAAa,GACxB,QAAQ,UAAU,CAAC,SAAS,CAAC,EAC7B,YAAY,mBAAmB,KAC9B,OAAO,CAAC,cAAc,CAUxB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitForStatus = void 0;
|
|
4
|
+
const getStatus_js_1 = require("./getStatus.js");
|
|
5
|
+
// TODO: use websockets
|
|
6
|
+
// TODO: make polling interval configurable
|
|
7
|
+
const waitForStatus = async (client, parameters) => {
|
|
8
|
+
while (true) {
|
|
9
|
+
const status = await (0, getStatus_js_1.getStatus)(client, parameters);
|
|
10
|
+
if (status.status !== getStatus_js_1.StatusCode.Pending && status.status !== getStatus_js_1.StatusCode.Submitted) {
|
|
11
|
+
return status;
|
|
12
|
+
}
|
|
13
|
+
await new Promise((r) => setTimeout(r, 100));
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
exports.waitForStatus = waitForStatus;
|
|
17
|
+
//# sourceMappingURL=waitForStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waitForStatus.js","sourceRoot":"","sources":["../../../../relayer/evm/actions/waitForStatus.ts"],"names":[],"mappings":";;;AACA,iDAKwB;AAExB,uBAAuB;AACvB,2CAA2C;AACpC,MAAM,aAAa,GAAG,KAAK,EAChC,MAA6B,EAC7B,UAA+B,EACN,EAAE;IAC3B,OAAO,IAAI,EAAE,CAAC;QACZ,MAAM,MAAM,GAAG,MAAM,IAAA,wBAAS,EAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAEnD,IAAI,MAAM,CAAC,MAAM,KAAK,yBAAU,CAAC,OAAO,IAAI,MAAM,CAAC,MAAM,KAAK,yBAAU,CAAC,SAAS,EAAE,CAAC;YACnF,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IAC/C,CAAC;AACH,CAAC,CAAC;AAbW,QAAA,aAAa,iBAaxB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type Hex } from 'viem';
|
|
2
|
+
import { type Capabilities, type FeeData, type FeeQuote, type GetFeeDataParameters, type GetFeeQuoteParameters, type GetStatusParameters, type SendTransactionParameters, type SendTransactionSyncParameters, type Status, type TerminalStatus } from './actions/index.js';
|
|
3
|
+
export * from './actions/index.js';
|
|
4
|
+
export type GelatoEvmRelayerClient = {
|
|
5
|
+
getCapabilities: () => Promise<Capabilities>;
|
|
6
|
+
getFeeData: (parameters: GetFeeDataParameters) => Promise<FeeData>;
|
|
7
|
+
getFeeQuote: (parameters: GetFeeQuoteParameters) => Promise<FeeQuote>;
|
|
8
|
+
getStatus: (parameters: GetStatusParameters) => Promise<Status>;
|
|
9
|
+
waitForStatus: (parameters: GetStatusParameters) => Promise<TerminalStatus>;
|
|
10
|
+
sendTransaction: (parameters: SendTransactionParameters) => Promise<Hex>;
|
|
11
|
+
sendTransactionSync: (parameters: SendTransactionSyncParameters) => Promise<TerminalStatus>;
|
|
12
|
+
};
|
|
13
|
+
export type GelatoEvmRelayerClientConfig = {
|
|
14
|
+
apiKey: string;
|
|
15
|
+
testnet: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const createGelatoEvmRelayerClient: (parameters: GelatoEvmRelayerClientConfig) => GelatoEvmRelayerClient;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../relayer/evm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAkC,MAAM,MAAM,CAAC;AAEhE,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EAKxB,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,MAAM,EAGX,KAAK,cAAc,EAEpB,MAAM,oBAAoB,CAAC;AAE5B,cAAc,oBAAoB,CAAC;AAEnC,MAAM,MAAM,sBAAsB,GAAG;IACnC,eAAe,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,CAAC;IAC7C,UAAU,EAAE,CAAC,UAAU,EAAE,oBAAoB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACnE,WAAW,EAAE,CAAC,UAAU,EAAE,qBAAqB,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IACtE,SAAS,EAAE,CAAC,UAAU,EAAE,mBAAmB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAChE,aAAa,EAAE,CAAC,UAAU,EAAE,mBAAmB,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;IAC5E,eAAe,EAAE,CAAC,UAAU,EAAE,yBAAyB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACzE,mBAAmB,EAAE,CAAC,UAAU,EAAE,6BAA6B,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;CAC7F,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,eAAO,MAAM,4BAA4B,GACvC,YAAY,4BAA4B,KACvC,sBAyBF,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.createGelatoEvmRelayerClient = void 0;
|
|
18
|
+
const viem_1 = require("viem");
|
|
19
|
+
const index_js_1 = require("../constants/index.js");
|
|
20
|
+
const index_js_2 = require("./actions/index.js");
|
|
21
|
+
__exportStar(require("./actions/index.js"), exports);
|
|
22
|
+
// TODO: the testnet/mainnet separation won't be necessary in the future
|
|
23
|
+
const createGelatoEvmRelayerClient = (parameters) => {
|
|
24
|
+
const { apiKey, testnet } = parameters;
|
|
25
|
+
const config = {
|
|
26
|
+
fetchOptions: {
|
|
27
|
+
headers: {
|
|
28
|
+
'X-API-Key': apiKey
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
// TODO: can just use prod endpoint in the future
|
|
33
|
+
const base = testnet ? index_js_1.GELATO_STAGING_API : index_js_1.GELATO_PROD_API;
|
|
34
|
+
const client = (0, viem_1.http)(`${base}/rpc`, config)({});
|
|
35
|
+
return {
|
|
36
|
+
getCapabilities: () => (0, index_js_2.getCapabilities)(client),
|
|
37
|
+
getFeeData: (parameters) => (0, index_js_2.getFeeData)(client, parameters),
|
|
38
|
+
getFeeQuote: (parameters) => (0, index_js_2.getFeeQuote)(client, parameters),
|
|
39
|
+
getStatus: (parameters) => (0, index_js_2.getStatus)(client, parameters),
|
|
40
|
+
sendTransaction: (parameters) => (0, index_js_2.sendTransaction)(client, parameters),
|
|
41
|
+
sendTransactionSync: (parameters) => (0, index_js_2.sendTransactionSync)(client, parameters),
|
|
42
|
+
waitForStatus: (parameters) => (0, index_js_2.waitForStatus)(client, parameters)
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
exports.createGelatoEvmRelayerClient = createGelatoEvmRelayerClient;
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../relayer/evm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+BAAgE;AAChE,oDAA4E;AAC5E,iDAkB4B;AAE5B,qDAAmC;AAiBnC,wEAAwE;AACjE,MAAM,4BAA4B,GAAG,CAC1C,UAAwC,EAChB,EAAE;IAC1B,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC;IAEvC,MAAM,MAAM,GAAwB;QAClC,YAAY,EAAE;YACZ,OAAO,EAAE;gBACP,WAAW,EAAE,MAAM;aACpB;SACF;KACF,CAAC;IAEF,iDAAiD;IACjD,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,6BAAkB,CAAC,CAAC,CAAC,0BAAe,CAAC;IAE5D,MAAM,MAAM,GAAG,IAAA,WAAI,EAAC,GAAG,IAAI,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC;IAE/C,OAAO;QACL,eAAe,EAAE,GAAG,EAAE,CAAC,IAAA,0BAAe,EAAC,MAAM,CAAC;QAC9C,UAAU,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,qBAAU,EAAC,MAAM,EAAE,UAAU,CAAC;QAC1D,WAAW,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,sBAAW,EAAC,MAAM,EAAE,UAAU,CAAC;QAC5D,SAAS,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,oBAAS,EAAC,MAAM,EAAE,UAAU,CAAC;QACxD,eAAe,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,0BAAe,EAAC,MAAM,EAAE,UAAU,CAAC;QACpE,mBAAmB,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,8BAAmB,EAAC,MAAM,EAAE,UAAU,CAAC;QAC5E,aAAa,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,wBAAa,EAAC,MAAM,EAAE,UAAU,CAAC;KACjE,CAAC;AACJ,CAAC,CAAC;AA3BW,QAAA,4BAA4B,gCA2BvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../relayer/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./evm/index.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../relayer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
|