Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
1700276
modify to serve for data streaming to arweave using ardrive sdk
IDEA-godwin May 15, 2025
ea104b4
modify view
IDEA-godwin May 15, 2025
c882e70
fix invalid tag
IDEA-godwin May 22, 2025
754aa9d
fix tag error
IDEA-godwin May 22, 2025
6dbd7a2
fix tag error 4 real
IDEA-godwin May 22, 2025
d04269f
fix tag error
IDEA-godwin May 22, 2025
1ab47f8
fix tag error
IDEA-godwin May 22, 2025
7d20c1e
fix tag error
IDEA-godwin May 22, 2025
17fc151
fix tag error
IDEA-godwin May 22, 2025
e6318d1
fix tag error
IDEA-godwin May 22, 2025
ce47c05
fix tag error
IDEA-godwin May 22, 2025
b929f51
fix tag error
IDEA-godwin May 22, 2025
05d550f
fix tag error
IDEA-godwin May 22, 2025
976fc24
fix tag error
IDEA-godwin May 22, 2025
214e8c5
feat(database): implement SQLite database management for meters and t…
Emmo00 Aug 12, 2025
3a77da2
feat: migrate from LevelDB to SQLite and add Arweave integration
Emmo00 Aug 13, 2025
a5c141e
tests: fix failing
Emmo00 Aug 14, 2025
027143e
refactor(arweave): remove unused tags from payload
Emmo00 Aug 14, 2025
7cf4b2f
feat: update environment variables and remove node-cron dependency
Emmo00 Aug 14, 2025
7820b2d
fix: Removes manual verification jobs endpoint
Emmo00 Aug 15, 2025
986decf
fix: Refactors payload decoding and simplifies transaction flow
Emmo00 Aug 17, 2025
676878a
refactor,review: better meter and transaction handling by removing co…
Emmo00 Aug 19, 2025
ad13061
refactor: update BatchTransactionPayload structure and simplify build…
Emmo00 Aug 19, 2025
519be3e
fix: update fetch URL in sendTransactionsToProver and ensure meter_id…
Emmo00 Aug 19, 2025
e03bcce
chore: flow testings
Emmo00 Aug 22, 2025
88facdb
fix: destructure transaction data in arweave tags
Emmo00 Aug 26, 2025
631a38e
Merge pull request #6 from Emmo00/feat/sqlite-store-publish-arweave
iChristwin Sep 16, 2025
12b635a
fix: update @ardrive/turbo-sdk to version 1.30.0 and adjust interact …
Emmo00 Sep 26, 2025
f0275f8
refactor: update interact and decodePayload functions, transaction ha…
Emmo00 Sep 26, 2025
0979649
refactor: remove unused M3terPayload import and enhance logging in ha…
Emmo00 Sep 27, 2025
0943472
fix: add error handling and reconnect logging in MQTT client
Emmo00 Sep 27, 2025
efaeb51
Merge pull request #7 from Emmo00/feat/sqlite-store-publish-arweave
iChristwin Sep 27, 2025
2b46ac7
fix: correct payload encoding from hex to base64 and improve error ha…
Emmo00 Sep 27, 2025
9a9c04c
fix: update m3ter contract address to the correct value
Emmo00 Sep 27, 2025
091ee0d
fix: get latestNonce from onchain state
Emmo00 Sep 28, 2025
494cd41
fix: remove unnecessary console log and update public key format in M…
Emmo00 Sep 28, 2025
d573178
feat: add devEui handling for meters and update database schema
Emmo00 Sep 29, 2025
76ed431
feat: update MeterRecord to require devEui and enhance meter handling…
Emmo00 Sep 29, 2025
05e7608
feat: add Dockerfile for pnpm setup and application configuration
Emmo00 Sep 29, 2025
ecd4b0f
fix: remove unused Dockerfile for pnpm setup
Emmo00 Sep 29, 2025
f047795
...
Emmo00 Sep 29, 2025
b85be24
feat: save new meter information and log details in handleMessage fun…
Emmo00 Sep 29, 2025
82690f2
fix: correct nonce handling in enqueue function for meter state
Emmo00 Sep 29, 2025
75bb369
refactor: streamline state handling and nonce validation in handleMes…
Emmo00 Sep 29, 2025
b441030
Merge pull request #10 from Emmo00/feat/sqlite-store-publish-arweave
iChristwin Sep 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ GNOSIS_RPC="https://gnosis-rpc.publicnode.com"
APPLICATION_ID="..."
CONTRACT_LABEL="M3ters"
CHIRPSTACK_HOST="..."
PREFERRED_PROVER_NODE="https://prover.m3tering.com"
MAINNET_RPC="https://eth.drpc.org"
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: M3tering Console Tests

on: [workflow_dispatch, push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "18"

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#test scripts
emulate.ts
test-database.ts
script.*.ts

# Database files
*.db
src/db

# data files
transactions.json

.idea

# Logs
Expand Down
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
presets: [
["@babel/preset-env", { targets: { node: "current" } }],
"@babel/preset-typescript",
],
};
Loading