New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@near-eth/utils

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@near-eth/utils - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0-0

dist/findProof.d.ts

1

dist/index.d.ts

@@ -5,2 +5,3 @@ export * as urlParams from './url-params';

export { nearOnEthSyncHeight } from './nearOnEthClient';
export { findEthProof, findNearProof } from './findProof';
//# sourceMappingURL=index.d.ts.map

5

dist/index.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.nearOnEthSyncHeight = exports.ethOnNearSyncHeight = exports.borshifyOutcomeProof = exports.urlParams = void 0;
exports.findNearProof = exports.findEthProof = exports.nearOnEthSyncHeight = exports.ethOnNearSyncHeight = exports.borshifyOutcomeProof = exports.urlParams = void 0;
exports.urlParams = __importStar(require("./url-params"));

@@ -31,2 +31,5 @@ var borshify_proof_1 = require("./borshify-proof");

Object.defineProperty(exports, "nearOnEthSyncHeight", { enumerable: true, get: function () { return nearOnEthClient_1.nearOnEthSyncHeight; } });
var findProof_1 = require("./findProof");
Object.defineProperty(exports, "findEthProof", { enumerable: true, get: function () { return findProof_1.findEthProof; } });
Object.defineProperty(exports, "findNearProof", { enumerable: true, get: function () { return findProof_1.findNearProof; } });
//# sourceMappingURL=index.js.map

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

export declare function nearOnEthSyncHeight(provider: any): Promise<number>;
import { ethers } from 'ethers';
export declare function nearOnEthSyncHeight(provider: ethers.providers.Provider): Promise<number>;
//# sourceMappingURL=nearOnEthClient.d.ts.map
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.nearOnEthSyncHeight = void 0;
const web3_1 = __importDefault(require("web3"));
const ethers_1 = require("ethers");
async function nearOnEthSyncHeight(provider) {
const web3 = new web3_1.default(provider);
const nearOnEthClient = new web3.eth.Contract(JSON.parse(process.env.ethNearOnEthClientAbiText), process.env.ethClientAddress);
const { currentHeight } = await nearOnEthClient.methods.bridgeState().call();
const nearOnEthClient = new ethers_1.ethers.Contract(process.env.ethClientAddress, process.env.ethNearOnEthClientAbiText, provider);
const { currentHeight } = await nearOnEthClient.bridgeState();
return Number(currentHeight);

@@ -13,0 +9,0 @@ }

{
"name": "@near-eth/utils",
"version": "1.0.0",
"version": "1.1.0-0",
"license": "(MIT AND Apache-2.0)",

@@ -24,4 +24,7 @@ "main": "dist/index.js",

"bs58": "^4.0.1",
"near-api-js": "^0.39.0",
"web3": "^1.3.4",
"eth-object": "aurora-is-near/eth-object#383b6ea68c7050bea4cab6950c1d5a7fa553e72b",
"ethereumjs-util": "^7.0.10",
"ethers": "^5.4.0",
"lite-merkle-patricia-tree": "1.0.0",
"near-api-js": "https://github.com/near/near-api-js#fef7f683fca86980f3509987226fbc7f63b455cb",
"web3-utils": "^1.3.4"

@@ -28,0 +31,0 @@ },

`@near-eth/utils`
=================
<a href="https://www.npmjs.com/package/@near-eth/utils"><img alt="@near-eth/utils Version" src="https://img.shields.io/npm/v/@near-eth/utils"></a>
Common utils for connector packages

@@ -4,0 +7,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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