Skip to content

Commit

Permalink
Merge pull request #147 from Chia-Network/develop
Browse files Browse the repository at this point in the history
Release 1.3.0
  • Loading branch information
MichaelTaylor3D authored Sep 5, 2023
2 parents 0dbe735 + 39dcbd0 commit 922bc83
Show file tree
Hide file tree
Showing 13 changed files with 930 additions and 2,282 deletions.
2 changes: 1 addition & 1 deletion datalayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const getStoreIds = async (orgUid) => {
.agent(baseOptions.agent)
.key(baseOptions.key)
.cert(baseOptions.cert)
.timeout(timeout);
.timeout(baseOptions.timeout);

const data = response.body;

Expand Down
36 changes: 36 additions & 0 deletions mock.js
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}`);
});
Loading

0 comments on commit 922bc83

Please sign in to comment.