@gelatonetwork/relay-sdk
Advanced tools
Comparing version 5.5.5 to 5.5.6-next.0
@@ -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" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
129949
16
2