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

@pythnetwork/express-relay-evm-js

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pythnetwork/express-relay-evm-js - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

@@ -24,3 +24,10 @@ "use strict";

async bidStatusHandler(bidStatus) {
console.log(`Bid status for bid ${bidStatus.id}: ${bidStatus.status} ${bidStatus.status == "submitted" ? bidStatus.result : ""}`);
let resultDetails = "";
if (bidStatus.type == "submitted") {
resultDetails = `, transaction ${bidStatus.result}, index ${bidStatus.index} of multicall`;
}
else if (bidStatus.type == "lost") {
resultDetails = `, transaction ${bidStatus.result}`;
}
console.log(`Bid status for bid ${bidStatus.id}: ${bidStatus.type}${resultDetails}`);
}

@@ -27,0 +34,0 @@ async opportunityHandler(opportunity) {

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

/// <reference types="ws" />
import type { components } from "./serverTypes";

@@ -3,0 +2,0 @@ import { ClientOptions as FetchClientOptions } from "openapi-fetch";

{
"name": "@pythnetwork/express-relay-evm-js",
"version": "0.2.0",
"version": "0.2.1",
"description": "Utilities for interacting with the express relay protocol",

@@ -40,2 +40,3 @@ "homepage": "https://github.com/pyth-network/pyth-crosschain/tree/main/express_relay/sdk/js",

"openapi-fetch": "^0.8.2",
"openapi-typescript": "^6.5.5",
"viem": "^2.7.6",

@@ -45,2 +46,4 @@ "ws": "^8.16.0"

"devDependencies": {
"@pythnetwork/pyth-evm-js": "*",
"@types/node": "^20.12.7",
"@types/yargs": "^17.0.10",

@@ -51,9 +54,8 @@ "@typescript-eslint/eslint-plugin": "^5.21.0",

"jest": "^27.5.1",
"openapi-typescript": "^6.5.5",
"prettier": "^2.6.2",
"typescript": "^5.1",
"typescript": "^5.3.3",
"yargs": "^17.4.1"
},
"license": "Apache-2.0",
"gitHead": "f14dd35d1abe0dc5e35752db4a77f4781d0a5c83"
"gitHead": "70c2c8ec4b5092729791f642493072565d953439"
}

Sorry, the diff of this file is not supported yet