feat: kv storage for contracts

This commit is contained in:
ppe
2022-12-20 20:35:45 +01:00
committed by just_ppe
parent f279c1659c
commit e944cd7c0f
30 changed files with 688 additions and 10085 deletions

View File

@@ -65,7 +65,7 @@ app.get('/:type/:key/:blockHeight', async function (req, res, next) {
const { type, key } = req.params;
const blockHeight = parseInt(req.params.blockHeight);
const result = await caches[type].get(key, blockHeight);
const result = await caches[type].get({ key: key, sortKey: blockHeight});
console.log('get', result);
res.send(result);