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

@gooddollar/bridge-app

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gooddollar/bridge-app - npm Package Compare versions

Comparing version 1.4.3 to 1.4.4

10

dist/sdk.js

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

let signedCheckPoint;
const checkPointBlockNumber = maxTxBlockNumber + (this.registryBlockFrequency - (maxTxBlockNumber % this.registryBlockFrequency));
let checkPointBlockNumber = maxTxBlockNumber + (this.registryBlockFrequency - (maxTxBlockNumber % this.registryBlockFrequency));
if (!sourceTxBlockHash || sourceTxBlockHash === ethers_1.ethers.constants.HashZero) {

@@ -106,3 +106,9 @@ if (getCheckpointFromEvents) {

else {
this.logger.info('getBlocksToSubmit found verified checkpoint:', { maxTxBlockNumber, sourceTxBlockHash });
checkPointBlockNumber = maxTxBlockNumber;
this.logger.info('getBlocksToSubmit found verified checkpoint:', {
minTxBlockNumber,
checkPointBlockNumber,
maxTxBlockNumber,
sourceTxBlockHash,
});
}

@@ -109,0 +115,0 @@ const parentAndCheckpointBlocks = await this.getChainBlockHeaders(sourceChainId, minTxBlockNumber, checkPointBlockNumber);

2

package.json
{
"name": "@gooddollar/bridge-app",
"version": "1.4.3",
"version": "1.4.4",
"description": "Minimalistic bridge",

@@ -5,0 +5,0 @@ "engines": {

@@ -100,3 +100,3 @@ import { JsonRpcBatchProvider, JsonRpcProvider } from '@ethersproject/providers';

let signedCheckPoint;
const checkPointBlockNumber =
let checkPointBlockNumber =
maxTxBlockNumber + (this.registryBlockFrequency - (maxTxBlockNumber % this.registryBlockFrequency));

@@ -129,3 +129,9 @@

} else {
this.logger.info('getBlocksToSubmit found verified checkpoint:', { maxTxBlockNumber, sourceTxBlockHash });
checkPointBlockNumber = maxTxBlockNumber; //since latest required block is already verified we dont need checkpoint
this.logger.info('getBlocksToSubmit found verified checkpoint:', {
minTxBlockNumber,
checkPointBlockNumber,
maxTxBlockNumber,
sourceTxBlockHash,
});
}

@@ -132,0 +138,0 @@ //in anycase fetch checkpoint + parent blocks, since we require to submit the block rlp header with proof

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