Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gelatonetwork/relay-sdk

Package Overview
Dependencies
Maintainers
16
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gelatonetwork/relay-sdk - npm Package Compare versions

Comparing version 2.1.0 to 3.0.0

dist/lib/sponsoredCallERC2771/index.d.ts

1

dist/constants/index.d.ts

@@ -7,1 +7,2 @@ export declare const GELATO_RELAY_URL = "https://relay.gelato.digital";

export declare const GELATO_RELAY_ADDRESS = "0xaBcC9b596420A9E9172FD5938620E265a0f9Df92";
export declare const GELATO_RELAY_ERC2771_ADDRESS = "0xBf175FCC7086b4f9bd59d5EAE8eA67b8f940DE0d";

3

dist/constants/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GELATO_RELAY_ADDRESS = exports.USER_NONCE_ABI = exports.DEFAULT_DEADLINE_GAP = exports.DEFAULT_INTERNAL_ERROR_MESSAGE = exports.SIGN_TYPED_DATA_V4 = exports.GELATO_RELAY_URL = void 0;
exports.GELATO_RELAY_ERC2771_ADDRESS = exports.GELATO_RELAY_ADDRESS = exports.USER_NONCE_ABI = exports.DEFAULT_DEADLINE_GAP = exports.DEFAULT_INTERNAL_ERROR_MESSAGE = exports.SIGN_TYPED_DATA_V4 = exports.GELATO_RELAY_URL = void 0;
exports.GELATO_RELAY_URL = "https://relay.gelato.digital"; //Relay GW

@@ -12,1 +12,2 @@ exports.SIGN_TYPED_DATA_V4 = "eth_signTypedData_v4";

exports.GELATO_RELAY_ADDRESS = "0xaBcC9b596420A9E9172FD5938620E265a0f9Df92";
exports.GELATO_RELAY_ERC2771_ADDRESS = "0xBf175FCC7086b4f9bd59d5EAE8eA67b8f940DE0d";

@@ -1,1 +0,73 @@

export * as GelatoRelaySDK from "./lib";
import { BigNumber, ethers } from "ethers";
import { CallWithSyncFeeRequest } from "./lib/callWithSyncFee/types";
import { SponsoredCallRequest } from "./lib/sponsoredCall/types";
import { SponsoredCallERC2771Request } from "./lib/sponsoredCallERC2771/types";
import { TransactionStatusResponse } from "./lib/status/types";
import { RelayRequestOptions, RelayResponse } from "./lib/types";
export { CallWithSyncFeeRequest, SponsoredCallERC2771Request, SponsoredCallRequest, RelayRequestOptions, TransactionStatusResponse, RelayResponse, };
export declare class GelatoRelay {
/**
* @param {CallWithSyncFeeRequest} request - CallWithSyncFee request to be relayed by Gelato Executors
* @param {RelayRequestOptions} [options] - Optional Relay configuration
* @returns {Promise<RelayResponse>} Response object with taskId parameter
*
*/
callWithSyncFee: (request: CallWithSyncFeeRequest, options?: RelayRequestOptions | undefined) => Promise<RelayResponse>;
/**
* @param {SponsoredCallRequest} request SponsoredCallRequest to be relayed by the Gelato Executors.
* @param {string} sponsorApiKey Sponsor API key to be used for the call
* @param {RelayRequestOptions} [options] Optional Relay configuration
* @returns {Promise<RelayResponse>} Response object with taskId parameter
*
*/
sponsoredCall: (request: SponsoredCallRequest, sponsorApiKey: string, options?: RelayRequestOptions | undefined) => Promise<RelayResponse>;
/**
* @param {SponsoredCallERC2771Request} request - SponsoredCallERC2771Request to be relayed by Gelato Executors
* @param {ethers.providers.Web3Provider} provider - Web3Provider to sign the payload
* @param {string} sponsorApiKey - Sponsor API key
* @param {RelayRequestOptions} [options] - Optional Relay configuration
* @returns {Promise<RelayResponse>} Response object with taskId parameter
*
*/
sponsoredCallERC2771: (request: SponsoredCallERC2771Request, provider: ethers.providers.Web3Provider, sponsorApiKey: string, options?: RelayRequestOptions | undefined) => Promise<RelayResponse>;
/**
* @param {number} chainId - Chain Id
* @returns {Promise<boolean>} Boolean to demonstrate if Relay V2 is supported on the provided chain
*/
isNetworkSupported: (chainId: number) => Promise<boolean>;
/**
* @returns {Promise<string[]>} List of networks where Relay V2 is supported
*/
getSupportedNetworks: () => Promise<string[]>;
/**
* @param {number} chainId - Chain Id
* @returns {Promise<boolean>} Boolean to demonstrate if the oracle is active on the provided chain
*/
isOracleActive: (chainId: number) => Promise<boolean>;
/**
* @returns {Promise<string[]>} List of chain ids where the Gelato Oracle is active
*/
getGelatoOracles: () => Promise<string[]>;
/**
* @param {number} chainId - Chain Id
* @returns {Promise<string[]>} List of all payment tokens on the provided chain
*
*/
getPaymentTokens: (chainId: number) => Promise<string[]>;
/**
* @param {number} chainId - Chain Id
* @param {string} paymentToken - Payment Token
* @param {BigNumber} gasLimit - Gas Limit
* @param {boolean} isHighPriority - Priority Level
* @param {BigNumber} [gasLimitL1=BigNumber.from(0)] - Gas Limit for Layer 1
* @returns {Promise<BigNumber>} Estimated Fee
*
*/
getEstimatedFee: (chainId: number, paymentToken: string, gasLimit: BigNumber, isHighPriority: boolean, gasLimitL1?: BigNumber) => Promise<BigNumber>;
/**
* @param {string} taskId - Task Id
* @returns {Promise<TransactionStatusResponse | undefined>} Transaction status of the task id
*
*/
getTaskStatus: (taskId: string) => Promise<TransactionStatusResponse | undefined>;
}

@@ -22,3 +22,73 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.GelatoRelaySDK = void 0;
exports.GelatoRelaySDK = __importStar(require("./lib"));
exports.GelatoRelay = void 0;
const ethers_1 = require("ethers");
const library = __importStar(require("./lib"));
class GelatoRelay {
constructor() {
/**
* @param {CallWithSyncFeeRequest} request - CallWithSyncFee request to be relayed by Gelato Executors
* @param {RelayRequestOptions} [options] - Optional Relay configuration
* @returns {Promise<RelayResponse>} Response object with taskId parameter
*
*/
this.callWithSyncFee = (request, options) => library.relayWithSyncFee(request, options);
/**
* @param {SponsoredCallRequest} request SponsoredCallRequest to be relayed by the Gelato Executors.
* @param {string} sponsorApiKey Sponsor API key to be used for the call
* @param {RelayRequestOptions} [options] Optional Relay configuration
* @returns {Promise<RelayResponse>} Response object with taskId parameter
*
*/
this.sponsoredCall = (request, sponsorApiKey, options) => library.relayWithSponsoredCall(request, sponsorApiKey, options);
/**
* @param {SponsoredCallERC2771Request} request - SponsoredCallERC2771Request to be relayed by Gelato Executors
* @param {ethers.providers.Web3Provider} provider - Web3Provider to sign the payload
* @param {string} sponsorApiKey - Sponsor API key
* @param {RelayRequestOptions} [options] - Optional Relay configuration
* @returns {Promise<RelayResponse>} Response object with taskId parameter
*
*/
this.sponsoredCallERC2771 = (request, provider, sponsorApiKey, options) => library.relayWithSponsoredCallERC2771(request, provider, sponsorApiKey, options);
/**
* @param {number} chainId - Chain Id
* @returns {Promise<boolean>} Boolean to demonstrate if Relay V2 is supported on the provided chain
*/
this.isNetworkSupported = (chainId) => library.isNetworkSupported(chainId);
/**
* @returns {Promise<string[]>} List of networks where Relay V2 is supported
*/
this.getSupportedNetworks = () => library.getSupportedNetworks();
/**
* @param {number} chainId - Chain Id
* @returns {Promise<boolean>} Boolean to demonstrate if the oracle is active on the provided chain
*/
this.isOracleActive = (chainId) => library.isOracleActive(chainId);
/**
* @returns {Promise<string[]>} List of chain ids where the Gelato Oracle is active
*/
this.getGelatoOracles = () => library.getGelatoOracles();
/**
* @param {number} chainId - Chain Id
* @returns {Promise<string[]>} List of all payment tokens on the provided chain
*
*/
this.getPaymentTokens = (chainId) => library.getPaymentTokens(chainId);
/**
* @param {number} chainId - Chain Id
* @param {string} paymentToken - Payment Token
* @param {BigNumber} gasLimit - Gas Limit
* @param {boolean} isHighPriority - Priority Level
* @param {BigNumber} [gasLimitL1=BigNumber.from(0)] - Gas Limit for Layer 1
* @returns {Promise<BigNumber>} Estimated Fee
*
*/
this.getEstimatedFee = (chainId, paymentToken, gasLimit, isHighPriority, gasLimitL1 = ethers_1.BigNumber.from(0)) => library.getEstimatedFee(chainId, paymentToken, gasLimit, isHighPriority, gasLimitL1);
/**
* @param {string} taskId - Task Id
* @returns {Promise<TransactionStatusResponse | undefined>} Transaction status of the task id
*
*/
this.getTaskStatus = (taskId) => library.getTaskStatus(taskId);
}
}
exports.GelatoRelay = GelatoRelay;
import { RelayRequestOptions, RelayResponse } from "../types";
import { CallWithSyncFeeRequest } from "./types";
/**
* @param {CallWithSyncFeeRequest} request - CallWithSyncFee request to be relayed by Gelato Executors
* @param {RelayRequestOptions} [options] - Optional Relay configuration
* @returns {Promise<RelayResponse>} Response object with taskId parameter
*
*/
export declare const relayWithSyncFee: (request: CallWithSyncFeeRequest, options?: RelayRequestOptions | undefined) => Promise<RelayResponse>;

@@ -20,8 +20,2 @@ "use strict";

const network_1 = require("../network");
/**
* @param {CallWithSyncFeeRequest} request - CallWithSyncFee request to be relayed by Gelato Executors
* @param {RelayRequestOptions} [options] - Optional Relay configuration
* @returns {Promise<RelayResponse>} Response object with taskId parameter
*
*/
const relayWithSyncFee = (request, options) => __awaiter(void 0, void 0, void 0, function* () {

@@ -28,0 +22,0 @@ var _a;

export { relayWithSyncFee } from "./callWithSyncFee";
export { relayWithSponsoredCall } from "./sponsoredCall";
export { relayWithSponsoredUserAuthCall } from "./sponsoredUserAuthCall";
export { relayWithSponsoredCallERC2771 } from "./sponsoredCallERC2771";
export { getEstimatedFee, getGelatoOracles, getPaymentTokens, isOracleActive, } from "./oracle";
export { getSupportedNetworks, isNetworkSupported } from "./network";
export { getTaskStatus } from "./status";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTaskStatus = exports.isNetworkSupported = exports.getSupportedNetworks = exports.isOracleActive = exports.getPaymentTokens = exports.getGelatoOracles = exports.getEstimatedFee = exports.relayWithSponsoredUserAuthCall = exports.relayWithSponsoredCall = exports.relayWithSyncFee = void 0;
exports.getTaskStatus = exports.isNetworkSupported = exports.getSupportedNetworks = exports.isOracleActive = exports.getPaymentTokens = exports.getGelatoOracles = exports.getEstimatedFee = exports.relayWithSponsoredCallERC2771 = exports.relayWithSponsoredCall = exports.relayWithSyncFee = void 0;
var callWithSyncFee_1 = require("./callWithSyncFee");

@@ -8,4 +8,4 @@ Object.defineProperty(exports, "relayWithSyncFee", { enumerable: true, get: function () { return callWithSyncFee_1.relayWithSyncFee; } });

Object.defineProperty(exports, "relayWithSponsoredCall", { enumerable: true, get: function () { return sponsoredCall_1.relayWithSponsoredCall; } });
var sponsoredUserAuthCall_1 = require("./sponsoredUserAuthCall");
Object.defineProperty(exports, "relayWithSponsoredUserAuthCall", { enumerable: true, get: function () { return sponsoredUserAuthCall_1.relayWithSponsoredUserAuthCall; } });
var sponsoredCallERC2771_1 = require("./sponsoredCallERC2771");
Object.defineProperty(exports, "relayWithSponsoredCallERC2771", { enumerable: true, get: function () { return sponsoredCallERC2771_1.relayWithSponsoredCallERC2771; } });
var oracle_1 = require("./oracle");

@@ -12,0 +12,0 @@ Object.defineProperty(exports, "getEstimatedFee", { enumerable: true, get: function () { return oracle_1.getEstimatedFee; } });

@@ -1,11 +0,2 @@

/**
* @param {number} chainId - Chain Id
* @returns {Promise<boolean>} Boolean to demonstrate if Relay V2 is supported on the provided chain
*
*/
export declare const isNetworkSupported: (chainId: number) => Promise<boolean>;
/**
* @returns {Promise<string[]>} List of networks where Relay V2 is supported
*
*/
export declare const getSupportedNetworks: () => Promise<string[]>;

@@ -19,7 +19,2 @@ "use strict";

const utils_1 = require("../../utils");
/**
* @param {number} chainId - Chain Id
* @returns {Promise<boolean>} Boolean to demonstrate if Relay V2 is supported on the provided chain
*
*/
const isNetworkSupported = (chainId) => __awaiter(void 0, void 0, void 0, function* () {

@@ -30,6 +25,2 @@ const supportedNetworks = yield (0, exports.getSupportedNetworks)();

exports.isNetworkSupported = isNetworkSupported;
/**
* @returns {Promise<string[]>} List of networks where Relay V2 is supported
*
*/
const getSupportedNetworks = () => __awaiter(void 0, void 0, void 0, function* () {

@@ -36,0 +27,0 @@ try {

import { BigNumber } from "ethers";
/**
* @param {number} chainId - Chain Id
* @returns {Promise<boolean>} Boolean to demonstrate if the oracle is active on the provided chain
*
*/
export declare const isOracleActive: (chainId: number) => Promise<boolean>;
/**
* @returns {Promise<string[]>} List of chain ids where the Gelato Oracle is active
*
*/
export declare const getGelatoOracles: () => Promise<string[]>;
/**
* @param {number} chainId - Chain Id
* @returns {Promise<string[]>} List of all payment tokens on the provided chain
*
*/
export declare const getPaymentTokens: (chainId: number) => Promise<string[]>;
/**
* @param {number} chainId - Chain Id
* @param {string} paymentToken - Payment Token
* @param {BigNumber} gasLimit - Gas Limit
* @param {boolean} isHighPriority - Priority Level
* @param {BigNumber} [gasLimitL1=BigNumber.from(0)] - Gas Limit for Layer 1
* @returns {Promise<BigNumber>} Estimated Fee
*
*/
export declare const getEstimatedFee: (chainId: number, paymentToken: string, gasLimit: BigNumber, isHighPriority: boolean, gasLimitL1?: BigNumber) => Promise<BigNumber>;

@@ -20,7 +20,2 @@ "use strict";

const utils_1 = require("../../utils");
/**
* @param {number} chainId - Chain Id
* @returns {Promise<boolean>} Boolean to demonstrate if the oracle is active on the provided chain
*
*/
const isOracleActive = (chainId) => __awaiter(void 0, void 0, void 0, function* () {

@@ -31,6 +26,2 @@ const oracles = yield (0, exports.getGelatoOracles)();

exports.isOracleActive = isOracleActive;
/**
* @returns {Promise<string[]>} List of chain ids where the Gelato Oracle is active
*
*/
const getGelatoOracles = () => __awaiter(void 0, void 0, void 0, function* () {

@@ -45,7 +36,2 @@ try {

exports.getGelatoOracles = getGelatoOracles;
/**
* @param {number} chainId - Chain Id
* @returns {Promise<string[]>} List of all payment tokens on the provided chain
*
*/
const getPaymentTokens = (chainId) => __awaiter(void 0, void 0, void 0, function* () {

@@ -60,11 +46,2 @@ try {

exports.getPaymentTokens = getPaymentTokens;
/**
* @param {number} chainId - Chain Id
* @param {string} paymentToken - Payment Token
* @param {BigNumber} gasLimit - Gas Limit
* @param {boolean} isHighPriority - Priority Level
* @param {BigNumber} [gasLimitL1=BigNumber.from(0)] - Gas Limit for Layer 1
* @returns {Promise<BigNumber>} Estimated Fee
*
*/
const getEstimatedFee = (chainId, paymentToken, gasLimit, isHighPriority, gasLimitL1 = ethers_1.BigNumber.from(0)) => __awaiter(void 0, void 0, void 0, function* () {

@@ -71,0 +48,0 @@ const params = {

import { RelayRequestOptions, RelayResponse } from "../types";
import { SponsoredCallRequest } from "./types";
/**
* @function
* @param {SponsoredCallRequest} request SponsoredCallRequest to be relayed by the Gelato Executors.
* @param {string} sponsorApiKey Sponsor API key to be used for the call
* @param {RelayRequestOptions} [options] Optional Relay configuration
* @returns {Promise<RelayResponse>} Response object with taskId parameter
*
*/
export declare const relayWithSponsoredCall: (request: SponsoredCallRequest, sponsorApiKey: string, options?: RelayRequestOptions | undefined) => Promise<RelayResponse>;

@@ -18,10 +18,2 @@ "use strict";

const types_1 = require("../types");
/**
* @function
* @param {SponsoredCallRequest} request SponsoredCallRequest to be relayed by the Gelato Executors.
* @param {string} sponsorApiKey Sponsor API key to be used for the call
* @param {RelayRequestOptions} [options] Optional Relay configuration
* @returns {Promise<RelayResponse>} Response object with taskId parameter
*
*/
const relayWithSponsoredCall = (request, sponsorApiKey, options) => __awaiter(void 0, void 0, void 0, function* () {

@@ -45,3 +37,3 @@ return yield sponsoredCall(request, sponsorApiKey, options);

const struct = yield mapRequestToStruct(request);
const postResponse = yield (0, utils_2.postAuthCall)(types_1.RelayCall.Sponsored, Object.assign(Object.assign(Object.assign({}, struct), options), { sponsorApiKey }));
const postResponse = yield (0, utils_2.postSponsoredCall)(types_1.RelayCall.Sponsored, Object.assign(Object.assign(Object.assign({}, struct), options), { sponsorApiKey }));
return postResponse;

@@ -48,0 +40,0 @@ }

@@ -1,7 +0,2 @@

import { TransactionStatus } from "./types";
/**
* @param {string} taskId - Task Id
* @returns {Promise<TransactionStatus | undefined>} Transaction status of the task id
*
*/
export declare const getTaskStatus: (taskId: string) => Promise<TransactionStatus | undefined>;
import { TransactionStatusResponse } from "./types";
export declare const getTaskStatus: (taskId: string) => Promise<TransactionStatusResponse | undefined>;

@@ -19,7 +19,2 @@ "use strict";

const utils_1 = require("../../utils");
/**
* @param {string} taskId - Task Id
* @returns {Promise<TransactionStatus | undefined>} Transaction status of the task id
*
*/
const getTaskStatus = (taskId) => __awaiter(void 0, void 0, void 0, function* () {

@@ -26,0 +21,0 @@ try {

@@ -1,2 +0,2 @@

export declare type TransactionStatus = {
export declare type TransactionStatusResponse = {
chainId: number;

@@ -3,0 +3,0 @@ taskId: string;

import { BigNumberish } from "ethers";
export declare enum RelayContract {
GelatoRelay = "GelatoRelay"
}
export declare enum RelayCall {
Sponsored = 0,
SponsoredUserAuth = 1
SponsoredCallERC2771 = 1
}

@@ -9,0 +6,0 @@ export declare type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EIP712_DOMAIN_TYPE_DATA = exports.RelayCall = exports.RelayContract = void 0;
var RelayContract;
(function (RelayContract) {
RelayContract["GelatoRelay"] = "GelatoRelay";
})(RelayContract = exports.RelayContract || (exports.RelayContract = {}));
exports.EIP712_DOMAIN_TYPE_DATA = exports.RelayCall = void 0;
var RelayCall;
(function (RelayCall) {
RelayCall[RelayCall["Sponsored"] = 0] = "Sponsored";
RelayCall[RelayCall["SponsoredUserAuth"] = 1] = "SponsoredUserAuth";
RelayCall[RelayCall["SponsoredCallERC2771"] = 1] = "SponsoredCallERC2771";
})(RelayCall = exports.RelayCall || (exports.RelayCall = {}));

@@ -13,0 +9,0 @@ exports.EIP712_DOMAIN_TYPE_DATA = {

@@ -1,2 +0,2 @@

import { EIP712Domain, RelayContract } from "../lib/types";
export declare const getEIP712Domain: (chainId: number, relayContract: RelayContract) => EIP712Domain;
import { EIP712Domain } from "../lib/types";
export declare const getEIP712Domain: (chainId: number) => EIP712Domain;

@@ -5,18 +5,10 @@ "use strict";

const constants_1 = require("../constants");
const types_1 = require("../lib/types");
const getEIP712Domain = (chainId, relayContract) => {
switch (relayContract) {
case types_1.RelayContract.GelatoRelay:
return {
name: "GelatoRelay",
version: "1",
chainId,
verifyingContract: constants_1.GELATO_RELAY_ADDRESS,
};
default: {
const _exhaustiveCheck = relayContract;
return _exhaustiveCheck;
}
}
const getEIP712Domain = (chainId) => {
return {
name: "GelatoRelayERC2771",
version: "1",
chainId,
verifyingContract: constants_1.GELATO_RELAY_ERC2771_ADDRESS,
};
};
exports.getEIP712Domain = getEIP712Domain;

@@ -16,5 +16,5 @@ "use strict";

const getUserNonce = (account, provider) => __awaiter(void 0, void 0, void 0, function* () {
const contract = new ethers_1.ethers.Contract(constants_1.GELATO_RELAY_ADDRESS, constants_1.USER_NONCE_ABI, provider);
const contract = new ethers_1.ethers.Contract(constants_1.GELATO_RELAY_ERC2771_ADDRESS, constants_1.USER_NONCE_ABI, provider);
return yield contract.userNonce(account);
});
exports.getUserNonce = getUserNonce;
import { ethers, providers } from "ethers";
import { SponsoredUserAuthCallRequest, SponsoredUserAuthCallRequestOptionalParameters } from "../lib/sponsoredUserAuthCall/types";
export declare const populateOptionalUserParameters: <Request extends SponsoredUserAuthCallRequest, OptionalParameters extends SponsoredUserAuthCallRequestOptionalParameters>(request: Request, provider: providers.Web3Provider | ethers.providers.Provider) => Promise<Partial<OptionalParameters>>;
import { SponsoredCallERC2771Request, SponsoredCallERC2771RequestOptionalParameters } from "../lib/sponsoredCallERC2771/types";
export declare const populateOptionalUserParameters: <Request extends SponsoredCallERC2771Request, OptionalParameters extends SponsoredCallERC2771RequestOptionalParameters>(request: Request, provider: providers.Web3Provider | ethers.providers.Provider) => Promise<Partial<OptionalParameters>>;
import { RelayCall } from "../lib/types";
export declare const postAuthCall: <Request, Response>(relayCall: RelayCall, request: Request) => Promise<Response>;
export declare const postSponsoredCall: <Request, Response>(relayCall: RelayCall, request: Request) => Promise<Response>;

@@ -15,3 +15,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.postAuthCall = void 0;
exports.postSponsoredCall = void 0;
const axios_1 = __importDefault(require("axios"));

@@ -21,3 +21,3 @@ const constants_1 = require("../constants");

const getHttpErrorMessage_1 = require("./getHttpErrorMessage");
const postAuthCall = (relayCall, request) => __awaiter(void 0, void 0, void 0, function* () {
const postSponsoredCall = (relayCall, request) => __awaiter(void 0, void 0, void 0, function* () {
try {

@@ -29,4 +29,4 @@ let path;

break;
case types_1.RelayCall.SponsoredUserAuth:
path = `${constants_1.GELATO_RELAY_URL}/relays/v2/sponsored-user-auth-call`;
case types_1.RelayCall.SponsoredCallERC2771:
path = `${constants_1.GELATO_RELAY_URL}/relays/v2/sponsored-call-erc2771`;
break;

@@ -44,2 +44,2 @@ default: {

});
exports.postAuthCall = postAuthCall;
exports.postSponsoredCall = postSponsoredCall;
{
"name": "@gelatonetwork/relay-sdk",
"version": "2.1.0",
"version": "3.0.0",
"description": "SDK to integrate with Gelato Relay",

@@ -15,4 +15,3 @@ "main": "dist/index.js",

"lint": "eslint --cache .",
"prepare": "husky install",
"test": "npx ts-node test/test.ts"
"prepare": "husky install"
},

@@ -40,6 +39,4 @@ "keywords": [],

"dependencies": {
"@gelatonetwork/1balance-sdk": "0.3.0-0",
"@gelatonetwork/core-sdk": "^0.3.0",
"axios": "0.24.0",
"ethers": "5.7.0"
"ethers": "5.7.2"
},

@@ -46,0 +43,0 @@ "lint-staged": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc