xflows 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +59 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18654,8 +18654,66 @@ import * as crypto2 from "crypto";
|
|
|
18654
18654
|
import * as fs from "fs";
|
|
18655
18655
|
import * as path from "path";
|
|
18656
18656
|
import * as readline from "readline";
|
|
18657
|
+
// package.json
|
|
18658
|
+
var package_default = {
|
|
18659
|
+
name: "xflows",
|
|
18660
|
+
version: "1.0.2",
|
|
18661
|
+
description: "CLI tool for Wanchain XFlows cross-chain bridge - wallet management, quote queries, and cross-chain transactions",
|
|
18662
|
+
type: "module",
|
|
18663
|
+
bin: {
|
|
18664
|
+
xflows: "dist/index.js"
|
|
18665
|
+
},
|
|
18666
|
+
files: [
|
|
18667
|
+
"dist",
|
|
18668
|
+
"README.md",
|
|
18669
|
+
"LICENSE"
|
|
18670
|
+
],
|
|
18671
|
+
scripts: {
|
|
18672
|
+
build: "bun build src/index.ts --outfile dist/index.js --target node --format esm && chmod +x dist/index.js",
|
|
18673
|
+
prepublishOnly: "bun run build",
|
|
18674
|
+
start: "bun src/index.ts",
|
|
18675
|
+
test: "bun test"
|
|
18676
|
+
},
|
|
18677
|
+
keywords: [
|
|
18678
|
+
"wanchain",
|
|
18679
|
+
"xflows",
|
|
18680
|
+
"cross-chain",
|
|
18681
|
+
"bridge",
|
|
18682
|
+
"cli",
|
|
18683
|
+
"defi",
|
|
18684
|
+
"web3",
|
|
18685
|
+
"evm",
|
|
18686
|
+
"swap"
|
|
18687
|
+
],
|
|
18688
|
+
author: "lolieatapple@gmail.com",
|
|
18689
|
+
license: "MIT",
|
|
18690
|
+
repository: {
|
|
18691
|
+
type: "git",
|
|
18692
|
+
url: "git+https://github.com/wandevs/xflows-cli.git"
|
|
18693
|
+
},
|
|
18694
|
+
bugs: {
|
|
18695
|
+
url: "https://github.com/wandevs/xflows-cli/issues"
|
|
18696
|
+
},
|
|
18697
|
+
homepage: "https://github.com/wandevs/xflows-cli#readme",
|
|
18698
|
+
engines: {
|
|
18699
|
+
node: ">=18"
|
|
18700
|
+
},
|
|
18701
|
+
devDependencies: {
|
|
18702
|
+
"@types/bun": "latest"
|
|
18703
|
+
},
|
|
18704
|
+
peerDependencies: {
|
|
18705
|
+
typescript: "^5"
|
|
18706
|
+
},
|
|
18707
|
+
dependencies: {
|
|
18708
|
+
chalk: "^5.6.2",
|
|
18709
|
+
commander: "^14.0.3",
|
|
18710
|
+
ethers: "^6.16.0"
|
|
18711
|
+
}
|
|
18712
|
+
};
|
|
18713
|
+
|
|
18714
|
+
// src/index.ts
|
|
18657
18715
|
var API_BASE = "https://xflows.wanchain.org/api/v3";
|
|
18658
|
-
var VERSION =
|
|
18716
|
+
var VERSION = package_default.version;
|
|
18659
18717
|
var RPC_MAP = {
|
|
18660
18718
|
"1": "https://ethereum-rpc.publicnode.com",
|
|
18661
18719
|
"56": "https://bsc-rpc.publicnode.com",
|