@gelatonetwork/relay-sdk
Advanced tools
Comparing version 3.1.0 to 3.2.0
import { BigNumber, ethers } from "ethers"; | ||
import { CallWithSyncFeeRequest } from "./lib/callWithSyncFee/types"; | ||
import { SponsoredCallRequest } from "./lib/sponsoredCall/types"; | ||
import { SponsoredCallERC2771Request } from "./lib/sponsoredCallERC2771/types"; | ||
import { SignatureData, SponsoredCallERC2771Request } from "./lib/erc2771/types"; | ||
import { TransactionStatusResponse } from "./lib/status/types"; | ||
import { RelayRequestOptions, RelayResponse } from "./lib/types"; | ||
export { CallWithSyncFeeRequest, SponsoredCallERC2771Request, SponsoredCallRequest, RelayRequestOptions, TransactionStatusResponse, RelayResponse, }; | ||
export { CallWithSyncFeeRequest, SponsoredCallERC2771Request, SponsoredCallRequest, RelayRequestOptions, TransactionStatusResponse, RelayResponse, SignatureData, }; | ||
export declare class GelatoRelay { | ||
@@ -34,2 +34,18 @@ /** | ||
/** | ||
* @param {SponsoredCallERC2771Request} request - SponsoredCallERC2771Request to be relayed by Gelato Executors | ||
* @param {ethers.providers.Web3Provider} provider - Web3Provider to sign the payload | ||
* @returns {Promise<SignatureData>} Response object with taskId parameter | ||
* | ||
*/ | ||
getSignatureDataERC2771: (request: SponsoredCallERC2771Request, provider: ethers.providers.Web3Provider) => Promise<SignatureData>; | ||
/** | ||
* @param {SignatureData["struct"]} struct - Struct that can be obtained from getSignatureDataERC2771 | ||
* @param {SignatureData["signature"]} signature - Signature that can be obtained from getSignatureDataERC2771 | ||
* @param {string} sponsorApiKey - Sponsor API key | ||
* @param {RelayRequestOptions} [options] - Optional Relay configuration | ||
* @returns {Promise<RelayResponse>} Response object with taskId parameter | ||
* | ||
*/ | ||
sponsoredCallERC2771WithSignature: (struct: SignatureData["struct"], signature: SignatureData["signature"], sponsorApiKey: string, options?: RelayRequestOptions | undefined) => Promise<RelayResponse>; | ||
/** | ||
* @param {number} chainId - Chain Id | ||
@@ -36,0 +52,0 @@ * @returns {Promise<boolean>} Boolean to demonstrate if Relay V2 is supported on the provided chain |
@@ -52,2 +52,18 @@ "use strict"; | ||
/** | ||
* @param {SponsoredCallERC2771Request} request - SponsoredCallERC2771Request to be relayed by Gelato Executors | ||
* @param {ethers.providers.Web3Provider} provider - Web3Provider to sign the payload | ||
* @returns {Promise<SignatureData>} Response object with taskId parameter | ||
* | ||
*/ | ||
this.getSignatureDataERC2771 = (request, provider) => library.getSignatureDataERC2771(request, provider); | ||
/** | ||
* @param {SignatureData["struct"]} struct - Struct that can be obtained from getSignatureDataERC2771 | ||
* @param {SignatureData["signature"]} signature - Signature that can be obtained from getSignatureDataERC2771 | ||
* @param {string} sponsorApiKey - Sponsor API key | ||
* @param {RelayRequestOptions} [options] - Optional Relay configuration | ||
* @returns {Promise<RelayResponse>} Response object with taskId parameter | ||
* | ||
*/ | ||
this.sponsoredCallERC2771WithSignature = (struct, signature, sponsorApiKey, options) => library.sponsoredCallERC2771WithSignature(struct, signature, sponsorApiKey, options); | ||
/** | ||
* @param {number} chainId - Chain Id | ||
@@ -54,0 +70,0 @@ * @returns {Promise<boolean>} Boolean to demonstrate if Relay V2 is supported on the provided chain |
export { relayWithSyncFee } from "./callWithSyncFee"; | ||
export { relayWithSponsoredCall } from "./sponsoredCall"; | ||
export { relayWithSponsoredCallERC2771 } from "./sponsoredCallERC2771"; | ||
export { relayWithSponsoredCallERC2771, getSignatureDataERC2771, sponsoredCallERC2771WithSignature, } from "./erc2771"; | ||
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.relayWithSponsoredCallERC2771 = exports.relayWithSponsoredCall = exports.relayWithSyncFee = void 0; | ||
exports.getTaskStatus = exports.isNetworkSupported = exports.getSupportedNetworks = exports.isOracleActive = exports.getPaymentTokens = exports.getGelatoOracles = exports.getEstimatedFee = exports.sponsoredCallERC2771WithSignature = exports.getSignatureDataERC2771 = exports.relayWithSponsoredCallERC2771 = exports.relayWithSponsoredCall = exports.relayWithSyncFee = void 0; | ||
var callWithSyncFee_1 = require("./callWithSyncFee"); | ||
@@ -8,4 +8,6 @@ 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 sponsoredCallERC2771_1 = require("./sponsoredCallERC2771"); | ||
Object.defineProperty(exports, "relayWithSponsoredCallERC2771", { enumerable: true, get: function () { return sponsoredCallERC2771_1.relayWithSponsoredCallERC2771; } }); | ||
var erc2771_1 = require("./erc2771"); | ||
Object.defineProperty(exports, "relayWithSponsoredCallERC2771", { enumerable: true, get: function () { return erc2771_1.relayWithSponsoredCallERC2771; } }); | ||
Object.defineProperty(exports, "getSignatureDataERC2771", { enumerable: true, get: function () { return erc2771_1.getSignatureDataERC2771; } }); | ||
Object.defineProperty(exports, "sponsoredCallERC2771WithSignature", { enumerable: true, get: function () { return erc2771_1.sponsoredCallERC2771WithSignature; } }); | ||
var oracle_1 = require("./oracle"); | ||
@@ -12,0 +14,0 @@ Object.defineProperty(exports, "getEstimatedFee", { enumerable: true, get: function () { return oracle_1.getEstimatedFee; } }); |
import { ethers, providers } from "ethers"; | ||
import { SponsoredCallERC2771Request, SponsoredCallERC2771RequestOptionalParameters } from "../lib/sponsoredCallERC2771/types"; | ||
import { SponsoredCallERC2771Request, SponsoredCallERC2771RequestOptionalParameters } from "../lib/erc2771/types"; | ||
export declare const populateOptionalUserParameters: <Request extends SponsoredCallERC2771Request, OptionalParameters extends SponsoredCallERC2771RequestOptionalParameters>(request: Request, provider: providers.Web3Provider | ethers.providers.Provider) => Promise<Partial<OptionalParameters>>; |
import { providers } from "ethers"; | ||
import { SponsoredCallERC2771PayloadToSign } from "../lib/sponsoredCallERC2771/types"; | ||
import { SponsoredCallERC2771PayloadToSign } from "../lib/erc2771/types"; | ||
export declare const signTypedDataV4: (provider: providers.Web3Provider, address: string, payload: SponsoredCallERC2771PayloadToSign) => Promise<string>; |
{ | ||
"name": "@gelatonetwork/relay-sdk", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "SDK to integrate with Gelato Relay", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54729
58
983