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

@gelatonetwork/relay-sdk

Package Overview
Dependencies
Maintainers
17
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 5.5.5 to 5.5.6-next.0

4

dist/lib/types/index.d.ts

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

import { BytesLike, ethers } from "ethers";
import { BytesLike, Signer, BrowserProvider } from "ethers";
export declare enum RelayCall {

@@ -60,2 +60,2 @@ CallWithSyncFee = 0,

};
export type SignerOrProvider = ethers.BrowserProvider | ethers.Signer;
export type SignerOrProvider = BrowserProvider | Signer;

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

const randomSeed = Math.floor(Math.random() * 1000000);
const dataEncoded = ethers_1.ethers.AbiCoder.defaultAbiCoder().encode(["uint256", "uint256"], [randomSeed, new Date().getMilliseconds()]);
return ethers_1.ethers.keccak256(dataEncoded);
const dataEncoded = ethers_1.AbiCoder.defaultAbiCoder().encode(["uint256", "uint256"], [randomSeed, new Date().getMilliseconds()]);
return (0, ethers_1.keccak256)(dataEncoded);
};
exports.generateSalt = generateSalt;

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

const chainId = yield (0, getProviderChainId_1.getProviderChainId)(signerOrProvider);
const contract = new ethers_1.ethers.Contract((0, relayAddress_1.getGelatoRelayERC2771Address)({ chainId, type }, config), constants_1.USER_NONCE_ABI, signerOrProvider);
const contract = new ethers_1.Contract((0, relayAddress_1.getGelatoRelayERC2771Address)({ chainId, type }, config), constants_1.USER_NONCE_ABI, signerOrProvider);
return (yield contract.userNonce(account));
});
exports.getUserNonce = getUserNonce;

@@ -1,3 +0,3 @@

import { ethers } from "ethers";
import { Signer } from "ethers";
import { SignerOrProvider } from "../lib/types";
export declare const isSigner: (signerOrProvider: SignerOrProvider) => signerOrProvider is ethers.Signer;
export declare const isSigner: (signerOrProvider: SignerOrProvider) => signerOrProvider is Signer;
{
"name": "@gelatonetwork/relay-sdk",
"version": "5.5.5",
"version": "5.5.6-next.0",
"description": "SDK to integrate with Gelato Relay",

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

"format:check": "prettier --check \"*/**/*.{js,json,md,ts}\"",
"format": "prettier --write */**/*.{js,json,md,ts}",
"format": "prettier --write \"*/**/*.{js,json,md,ts}\"",
"lint": "eslint --cache .",

@@ -21,2 +21,3 @@ "prepare": "husky install"

},
"sideEffects": false,
"keywords": [],

@@ -26,2 +27,3 @@ "author": "",

"devDependencies": {
"@changesets/cli": "^2.27.1",
"@tsconfig/recommended": "1.0.2",

@@ -52,3 +54,4 @@ "@types/node": "16.18.25",

"*.{ts,js}": "yarn lint"
}
},
"packageManager": "yarn@4.1.0"
}
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