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
0
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 2.6.0 to 2.6.1

9

dist/findProof.d.ts

@@ -12,3 +12,3 @@ import { FinalExecutionOutcome } from 'near-api-js/lib/providers';

*/
export declare function parseETHBurnReceipt(burnTx: FinalExecutionOutcome, auroraEvmAccount: string, nearProvider: najProviders.Provider): Promise<{
export declare function parseETHBurnReceipt(burnTx: FinalExecutionOutcome, etherNep141Factory: string, nearProvider: najProviders.Provider): Promise<{
id: string;

@@ -70,2 +70,9 @@ blockHeight: number;

}>;
export declare function selectEtherNep141Factory({ etherNep141FactoryMigrationHeight, etherNep141Factory, auroraEvmAccount, blockHash, nearProvider }: {
blockHash: string;
etherNep141FactoryMigrationHeight: number;
etherNep141Factory: string;
auroraEvmAccount: string;
nearProvider: najProviders.Provider;
}): Promise<string>;
//# sourceMappingURL=findProof.d.ts.map

14

dist/findProof.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.parseNep141LockReceipt = exports.parseNep141BurnReceipt = exports.parseNEARLockReceipt = exports.parseETHBurnReceipt = exports.findNearProof = exports.findEthProof = void 0;
exports.selectEtherNep141Factory = exports.parseNep141LockReceipt = exports.parseNep141BurnReceipt = exports.parseNEARLockReceipt = exports.parseETHBurnReceipt = exports.findNearProof = exports.findEthProof = void 0;
const lite_merkle_patricia_tree_1 = require("lite-merkle-patricia-tree");

@@ -144,3 +144,3 @@ // import Tree from 'merkle-patricia-tree'

*/
async function parseETHBurnReceipt(burnTx, auroraEvmAccount, nearProvider) {
async function parseETHBurnReceipt(burnTx, etherNep141Factory, nearProvider) {
let event;

@@ -150,3 +150,3 @@ let bridgeReceipt;

// @ts-expect-error
if (receipt.outcome.executor_id !== auroraEvmAccount)
if (receipt.outcome.executor_id !== etherNep141Factory)
return false;

@@ -362,2 +362,10 @@ try {

exports.parseNep141LockReceipt = parseNep141LockReceipt;
async function selectEtherNep141Factory({ etherNep141FactoryMigrationHeight, etherNep141Factory, auroraEvmAccount, blockHash, nearProvider }) {
const txBlock = await nearProvider.block({ blockId: blockHash });
const blockHeight = Number(txBlock.header.height);
return blockHeight > etherNep141FactoryMigrationHeight
? etherNep141Factory
: auroraEvmAccount;
}
exports.selectEtherNep141Factory = selectEtherNep141Factory;
//# sourceMappingURL=findProof.js.map

@@ -9,4 +9,4 @@ export * as urlParams from './url-params';

export { nearOnEthSyncHeight } from './nearOnEthClient';
export { findEthProof, findNearProof, parseETHBurnReceipt, parseNEARLockReceipt, parseNep141BurnReceipt, parseNep141LockReceipt } from './findProof';
export { findEthProof, findNearProof, parseETHBurnReceipt, parseNEARLockReceipt, parseNep141BurnReceipt, parseNep141LockReceipt, selectEtherNep141Factory } from './findProof';
export { buildIndexerTxQuery } from './indexer';
//# sourceMappingURL=index.d.ts.map

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.buildIndexerTxQuery = exports.parseNep141LockReceipt = exports.parseNep141BurnReceipt = exports.parseNEARLockReceipt = exports.parseETHBurnReceipt = exports.findNearProof = exports.findEthProof = exports.nearOnEthSyncHeight = exports.ethOnNearSyncHeight = exports.borshifyOutcomeProof = exports.findFinalizationTxOnNear = exports.findFinalizationTxOnEthereum = exports.aurora = exports.nep141 = exports.erc20 = exports.urlParams = void 0;
exports.buildIndexerTxQuery = exports.selectEtherNep141Factory = exports.parseNep141LockReceipt = exports.parseNep141BurnReceipt = exports.parseNEARLockReceipt = exports.parseETHBurnReceipt = exports.findNearProof = exports.findEthProof = exports.nearOnEthSyncHeight = exports.ethOnNearSyncHeight = exports.borshifyOutcomeProof = exports.findFinalizationTxOnNear = exports.findFinalizationTxOnEthereum = exports.aurora = exports.nep141 = exports.erc20 = exports.urlParams = void 0;
exports.urlParams = __importStar(require("./url-params"));

@@ -48,4 +48,5 @@ exports.erc20 = __importStar(require("./erc20"));

Object.defineProperty(exports, "parseNep141LockReceipt", { enumerable: true, get: function () { return findProof_1.parseNep141LockReceipt; } });
Object.defineProperty(exports, "selectEtherNep141Factory", { enumerable: true, get: function () { return findProof_1.selectEtherNep141Factory; } });
var indexer_1 = require("./indexer");
Object.defineProperty(exports, "buildIndexerTxQuery", { enumerable: true, get: function () { return indexer_1.buildIndexerTxQuery; } });
//# sourceMappingURL=index.js.map
{
"name": "@near-eth/utils",
"version": "2.6.0",
"version": "2.6.1",
"license": "(MIT AND Apache-2.0)",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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