Skip to content

Commit

Permalink
Merge pull request #50 from ferrumnet/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
AbdulAhadArain authored Oct 22, 2024
2 parents 5d5a6b1 + 6e24ac2 commit 60f9b40
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
PORT=3000
MONGODB_URL=
RPC_URL=
EXPLORER_URL=
EXPLORER_URL=

# Path: .env
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.12.1-alpine
FROM node:18.12.1

ENV MONGODB_URL=

Expand All @@ -11,4 +11,4 @@ RUN yarn install

EXPOSE 3000

CMD yarn dev
CMD yarn dev
1 change: 1 addition & 0 deletions src/models/quantumPortalBlock.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const quantumPortalBlockSchema = new Schema({
number: Number,
nonce: String,
timestamp: String,
dateTimestamp: Date,
difficulty: String,
gasLimit: String,
gasUsed: String,
Expand Down
1 change: 1 addition & 0 deletions src/models/quantumPortalTransaction.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const quantumPortalTransactionSchema = new Schema({
value: String,
chainId: Number,
timestamp: String,
dateTimestamp: Date,
fee: String,
inputData: String,
decodedInput: Object,
Expand Down
2 changes: 2 additions & 0 deletions src/services/node.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const processBlockAndTransaction = async (
number: block.data.height,
nonce: block.data.nonce,
timestamp: block.data.timestamp,
dateTimestamp: new Date(block.data.timestamp),
difficulty: block.data.difficulty,
gasLimit: block.data.gas_limit,
gasUsed: block.data.gas_used,
Expand Down Expand Up @@ -54,6 +55,7 @@ export const processBlockAndTransaction = async (
status: tx.status,
method: tx.method,
timestamp: tx.timestamp,
dateTimestamp: new Date(tx.timestamp),
from: tx?.from?.hash,
fromDetails: tx?.from,
to: tx?.to?.hash,
Expand Down

0 comments on commit 60f9b40

Please sign in to comment.