-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from Chia-Network/develop
Release 1.3.0
- Loading branch information
Showing
13 changed files
with
930 additions
and
2,282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
const express = require("express"); | ||
const app = express(); | ||
const port = 31313; | ||
|
||
app.get("/v1/activities", (req, res) => { | ||
if (req.query.page == 1) { | ||
if (req.query.minHeight > 1000000) { | ||
res.json({ | ||
activities: [], | ||
}); | ||
} | ||
res.json({ | ||
activities: [ | ||
{ | ||
height: 1000000, | ||
beneficiary_name: "John Doe", | ||
beneficiary_address: "0x1234", | ||
amount: 10000, | ||
mode: "PERMISSIONLESS_RETIREMENT", | ||
cw_unit: { | ||
marketplaceIdentifier: | ||
"0xf4d61bef9f3022cc2961ca8861c327d104c5e0761cb5fe010d718134d4cd4441", | ||
}, | ||
}, | ||
], | ||
}); | ||
} else { | ||
res.json({ | ||
activities: [], | ||
}); | ||
} | ||
}); | ||
|
||
app.listen(port, () => { | ||
console.log(`Server running on http://localhost:${port}`); | ||
}); |
Oops, something went wrong.