Skip to content

Commit caa13df

Browse files
authored
Merge pull request #297 from rsksmart/develop
Merge develop into master
2 parents ac46554 + ba37aa2 commit caa13df

File tree

11 files changed

+56
-28
lines changed

11 files changed

+56
-28
lines changed

.github/workflows/codeql.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ on:
99
- cron: "0 0 * * *"
1010

1111
# Declare default permissions as read only.
12-
permissions:
13-
contents: read
12+
permissions: read-all
1413

1514
jobs:
1615
analyze:
@@ -31,15 +30,15 @@ jobs:
3130
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3231

3332
- name: Initialize CodeQL
34-
uses: github/codeql-action/init@aa578102511db1f4524ed59b8cc2bae4f6e88195 #v3.27.6
33+
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a #v3.28.8
3534
with:
3635
languages: ${{ matrix.language }}
3736
queries: +security-and-quality
3837

3938
- name: Autobuild
40-
uses: github/codeql-action/autobuild@aa578102511db1f4524ed59b8cc2bae4f6e88195 #v3.27.6
39+
uses: github/codeql-action/autobuild@dd746615b3b9d728a6a37ca2045b68ca76d4841a #v3.28.8
4140

4241
- name: Perform CodeQL Analysis
43-
uses: github/codeql-action/analyze@aa578102511db1f4524ed59b8cc2bae4f6e88195 #v3.27.6
42+
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a #v3.28.8
4443
with:
4544
category: "/language:${{ matrix.language }}"

.github/workflows/mainnet-deploy.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches: [master]
66

7+
# Declare default permissions as read only.
8+
permissions: read-all
9+
710
jobs:
811
mainnet_build_and_deploy:
912
runs-on: ubuntu-latest
@@ -13,10 +16,10 @@ jobs:
1316

1417
steps:
1518
- name: Checkout
16-
uses: actions/checkout@v2
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1720

1821
- name: Setup Node 16
19-
uses: actions/setup-node@v1
22+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a #v4.2.0
2023
with:
2124
node-version: "16"
2225

@@ -27,7 +30,7 @@ jobs:
2730
run: npm run build-with-tracking:mainnet
2831

2932
- name: Configure AWS credentials
30-
uses: aws-actions/configure-aws-credentials@v4
33+
uses: aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 #v4.0.3
3134
with:
3235
role-to-assume: ${{ secrets.MAINNET_ROLE_ARN }}
3336
aws-region: ${{ secrets.MAINNET_AWS_REGION }}

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
3434
# format to the repository Actions tab.
3535
- name: "Upload artifact"
36-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 #v4.4.3
36+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 #v4.6.0
3737
with:
3838
name: SARIF file
3939
path: results.sarif
@@ -42,6 +42,6 @@ jobs:
4242
# Upload the results to GitHub's code scanning dashboard (optional).
4343
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
4444
- name: "Upload to code-scanning"
45-
uses: github/codeql-action/upload-sarif@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
45+
uses: github/codeql-action/upload-sarif@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
4646
with:
4747
sarif_file: results.sarif

.github/workflows/staging-deploy.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches: [staging]
66

7+
# Declare default permissions as read only.
8+
permissions: read-all
9+
710
jobs:
811
staging_build_and_deploy:
912
runs-on: ubuntu-latest
@@ -13,10 +16,10 @@ jobs:
1316

1417
steps:
1518
- name: Checkout
16-
uses: actions/checkout@v2
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1720

1821
- name: Setup Node 16
19-
uses: actions/setup-node@v1
22+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a #v4.2.0
2023
with:
2124
node-version: "16"
2225

@@ -27,7 +30,7 @@ jobs:
2730
run: npm run build-with-tracking:staging
2831

2932
- name: Configure AWS credentials
30-
uses: aws-actions/configure-aws-credentials@v4
33+
uses: aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 #v4.0.3
3134
with:
3235
role-to-assume: ${{ secrets.STAGING_ROLE_ARN }}
3336
aws-region: ${{ secrets.STAGING_AWS_REGION }}

.github/workflows/testnet-deploy.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches: [develop]
66

7+
# Declare default permissions as read only.
8+
permissions: read-all
9+
710
jobs:
811
testnet_build_and_deploy:
912
runs-on: ubuntu-latest
@@ -13,10 +16,10 @@ jobs:
1316

1417
steps:
1518
- name: Checkout
16-
uses: actions/checkout@v2
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1720

1821
- name: Setup Node 16
19-
uses: actions/setup-node@v1
22+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a #v4.2.0
2023
with:
2124
node-version: "16"
2225

@@ -27,7 +30,7 @@ jobs:
2730
run: npm run build-with-tracking:testnet
2831

2932
- name: Configure AWS credentials
30-
uses: aws-actions/configure-aws-credentials@v4
33+
uses: aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 #v4.0.3
3134
with:
3235
role-to-assume: ${{ secrets.TESTNET_ROLE_ARN }}
3336
aws-region: ${{ secrets.TESTNET_AWS_REGION }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rsk-explorer",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"private": true,
55
"description": "Rsk explorer client",
66
"author": "emi <emiliorizzo@gmail.com>",

src/config/entities/balances.js

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ const Balances = () => {
2323
field: 'timestamp',
2424
type: 'date'
2525
},
26-
time: {
27-
field: 'timestamp',
28-
type: 'timestamp'
29-
},
3026
balance
3127
}
3228
}
@@ -36,10 +32,27 @@ const Balance = () => {
3632
let { fields } = Balances()
3733
const { balance } = Address().fields
3834
balance.filters = valueFilters()
35+
36+
// reset these fields for proper order display
37+
delete fields.block
38+
delete fields.date
39+
delete fields.balance
40+
3941
fields = Object.assign(fields, {
4042
balance,
4143
address: { trim: 'auto' },
42-
blockHash: { trim: 'auto' }
44+
blockHash: { trim: 'auto' },
45+
block: {
46+
field: 'blockNumber'
47+
},
48+
time: {
49+
field: 'timestamp',
50+
type: 'timestamp'
51+
},
52+
date: {
53+
field: 'timestamp',
54+
type: 'date'
55+
}
4356
})
4457
return {
4558

src/config/entities/event.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ export const Events = () => {
7272
renderAs: 'field-list',
7373
renderAsProps: eventArgumentData
7474
},
75-
timestamp: null,
7675
blockNumber: {
7776
type: 'block'
7877
}
@@ -116,7 +115,10 @@ export const EventFields = () => {
116115
hideIfEmpty: true,
117116
trim: 0
118117
},
119-
timestamp: null,
118+
timestamp: {
119+
field: 'timestamp',
120+
type: 'timestamp'
121+
},
120122
created: {
121123
field: 'timestamp',
122124
type: 'date'

src/config/entities/internalTransaction.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ const InternalTransactions = () => {
5555
type: {
5656
field: '_type'
5757
},
58-
timestamp: null,
5958
value: {
6059
field: 'action.value',
6160
filters: valueFilters(true),
@@ -84,7 +83,7 @@ const InternalTransactions = () => {
8483
}
8584

8685
const InternalTransaction = () => {
87-
const { from, to, timestamp, value } = InternalTransactions().fields
86+
const { from, to, value } = InternalTransactions().fields
8887
value.filters = valueFilters()
8988
const fields = {
9089
from,
@@ -102,7 +101,10 @@ const InternalTransaction = () => {
102101
status: {
103102
field: 'status'
104103
},
105-
timestamp,
104+
timestamp: {
105+
field: 'timestamp',
106+
type: 'timestamp'
107+
},
106108
date: {
107109
field: 'timestamp',
108110
format: 'date'

src/config/entities/transaction.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ const TxFields = () => {
123123
const Txs = () => {
124124
const fields = TxFields()
125125
delete (fields.index)
126+
delete (fields.time)
126127
fields.status = Object.assign(fields.status, {
127128
filters: [(value, data, context) => {
128129
if (isExport(context)) return txStatus(value)

0 commit comments

Comments
 (0)