Skip to content

Commit

Permalink
Merge pull request #181 from luxfi/backend
Browse files Browse the repository at this point in the history
update: bridge server
  • Loading branch information
venuswhispers authored Nov 6, 2024
2 parents 9c7041d + 9f4e149 commit dc28d7b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/server/src/helpers/mpcHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import axios from "axios"
const mpc_nodes = [
// "http://127.0.0.1:6000",
// "http://127.0.0.1:6000",
"https://teleport-0.lux.network",
"https://teleport-1.lux.network"
// "https://teleport-0.lux.network",
// "https://teleport-1.lux.network"
// 'https://teleport.lux.network/node2',
"http://mpc-node-0:6000",
"http://mpc-node-1:6000"
// "http://mpc-node-2:6000"
]

export const getSigFromMpcOracleNetwork = (signData: { txId: string; fromNetworkId: string; toNetworkId: string; toTokenAddress: string; msgSignature: string; receiverAddressHash: string }) => {
Expand Down
4 changes: 4 additions & 0 deletions apps/server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ app.use(express.urlencoded({ extended: true }))
app.use("/api/swaps", swaps)
app.use("/api/explorer", explorer)

app.get("/", async (req, res) => {
res.json(">>> Hello world. We are LUX!!!")
})

app.listen(port, "0.0.0.0", function () {
console.log(`>> Server is Running At: Port ${port}`)
})

0 comments on commit dc28d7b

Please sign in to comment.