@pythnetwork/express-relay-evm-js
Advanced tools
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
33650
705
0
6
10
+ Addedopenapi-typescript@^6.5.5
+ Added@fastify/busboy@2.1.1(transitive)
+ Added@nodelib/fs.scandir@2.1.5(transitive)
+ Added@nodelib/fs.stat@2.0.5(transitive)
+ Added@nodelib/fs.walk@1.2.8(transitive)
+ Addedansi-colors@4.1.3(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedfast-glob@3.3.2(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedmerge2@1.4.1(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedopenapi-typescript@6.7.6(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedreusify@1.0.4(transitive)
+ Addedrun-parallel@1.2.0(transitive)
+ Addedsupports-color@9.4.0(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedundici@5.28.4(transitive)
+ Addedyargs-parser@21.1.1(transitive)