Socket
Socket
Sign inDemoInstall

@gearbox-protocol/devops

Package Overview
Dependencies
Maintainers
8
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gearbox-protocol/devops - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

3

lib/providers/RotateProvider.d.ts

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

import type { FilterByBlockHash } from "@ethersproject/abstract-provider";
import { providers as prov } from "ethers";

@@ -16,6 +17,8 @@ interface Logger {

detectNetwork(): Promise<prov.Network>;
getLogs(filter: prov.Filter | FilterByBlockHash | Promise<prov.Filter | FilterByBlockHash>): Promise<prov.Log[]>;
perform(method: string, params: {
[name: string]: any;
}): Promise<any>;
private withRotation;
}
export {};

@@ -56,6 +56,12 @@ "use strict";

}
async getLogs(filter) {
return this.withRotation(next => this.providers[next].getLogs(filter));
}
async perform(method, params) {
return this.withRotation(next => this.providers[next].perform(method, params));
}
async withRotation(fn) {
let next = this.i;
return (0, p_retry_1.default)(async () => {
const resp = this.providers[next].perform(method, params);
const resp = await fn(next);
this.i = next;

@@ -62,0 +68,0 @@ return resp;

2

package.json
{
"name": "@gearbox-protocol/devops",
"version": "1.6.1",
"version": "1.6.2",
"description": "Gearbox Devops for SC development",

@@ -5,0 +5,0 @@ "license": "MIT",

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