Skip to content

Commit d3b24e2

Browse files
2 parents 4a8a917 + a1ceca8 commit d3b24e2

File tree

104 files changed

+5317
-3177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+5317
-3177
lines changed

.env.example

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ NUXT_PUBLIC_PLAUSIBLE_DOMAIN=localhost:8080
44
NUXT_PUBLIC_MIDDLEWARE_URL=https://mainnet.aeternity.io/mdw
55
NUXT_PUBLIC_NODE_URL=https://mainnet.aeternity.io
66
NUXT_PUBLIC_WEBSOCKET_URL=wss://mainnet.aeternity.io/mdw/v2/websocket
7-
NUXT_PUBLIC_DEX_BACKEND_URL=https://dex-backend-mainnet.prd.aepps.com
7+
NUXT_PUBLIC_DEX_BACKEND_URL=https://dex-backend-mainnet.prd.service.aepps.com
88
NUXT_PUBLIC_NETWORK_NAME=MAINNET
9+
NUXT_PUBLIC_NETWORK_ID=ae_mainnet
910
NUXT_PUBLIC_ALTERNATIVE_NETWORK_URL=http://localhost:8081
1011
NUXT_PUBLIC_ALTERNATIVE_NETWORK_NAME=TESTNET
1112
NUXT_PUBLIC_AE_TOKEN_ID=ct_J3zBY8xxjsRr3QojETNw48Eb38fjvEuJKkQ6KzECvubvEcvCa
1213
NUXT_PUBLIC_DEBUG_MODE=false
13-
NUXT_PUBLIC_SH_DEX_CONTRACTS='ct_2mfj3FoZxnhkSw5RZMcP8BfPoB1QR4QiYGNCdkAvLZ1zfF6paW;ct_azbNZ1XrPjXfqBqbAh1ffLNTQ1sbnuUDFvJrXjYz7JQA1saQ3'
14+
NUXT_PUBLIC_SH_DEX_CONTRACTS='ct_2mfj3FoZxnhkSw5RZMcP8BfPoB1QR4QiYGNCdkAvLZ1zfF6paW;ct_azbNZ1XrPjXfqBqbAh1ffLNTQ1sbnuUDFvJrXjYz7JQA1saQ3'
15+
NUXT_PUBLIC_CONTRACT_VERIFICATION_SERVICE_URL=https://scv-gateway.dev.service.aepps.com

.github/workflows/ci-code.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v2
24-
- name: Use Node.js 18.x
24+
- name: Use Node.js 20.x
2525
uses: actions/setup-node@v1
2626
with:
27-
node-version: '18'
27+
node-version: '20'
2828
cache: 'yarn'
2929
- run: yarn install --frozen-lockfile
3030
- run: yarn lint:ci

.github/workflows/release-create.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
name: Create release branch
1818
runs-on: ubuntu-latest
1919
steps:
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: 20
2024
- name: Checkout code
2125
uses: actions/checkout@v2
2226
with:

.github/workflows/stg-pipeline-mainnet.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
fetch-depth: 0
2525
ref: ${{ github.event.pull_request.head.sha }}
26-
26+
2727
- name: Set up Docker Buildx
2828
id: buildx
2929
# Use the action from the master, as we've seen some inconsistencies with @v1
@@ -56,14 +56,14 @@ jobs:
5656
images: aeternity/aescan
5757
tags: |
5858
type=ref,event=pr
59-
59+
6060
- name: Get commit sha on PR Sync
61-
if: github.event_name == 'pull_request' && github.event.action == 'synchronize'
61+
if: github.event_name == 'pull_request' && github.event.action == 'synchronize'
6262
id: git-sha
6363
shell: bash
6464
run: |
6565
echo GIT_SHA=$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
66-
66+
6767
- name: Create dotenv
6868
run: |
6969
echo APP_VERSION=$(git describe --tags)-preview >> .env
@@ -97,13 +97,13 @@ jobs:
9797
token: ${{ secrets.BOT_GITHUB_TOKEN }}
9898
persist-credentials: false
9999
fetch-depth: 0
100-
100+
101101
- name: Chekc the initial PR deployment status before make a PR Sync.
102102
if: github.event_name == 'pull_request' && github.event.action == 'synchronize'
103103
uses: aeternity/ae-github-actions/deploy-status@v7
104104
with:
105105
url: https://pr-${{ env.PR_NUMBER }}-${{ env.APP }}.${{ env.ENV }}.service.aepps.com
106-
106+
107107
- name: Staging PR Sync
108108
if: github.event_name == 'pull_request' && github.event.action == 'synchronize'
109109
uses: aeternity/ae-github-actions/argocd-pr-sync@v5
@@ -135,7 +135,7 @@ jobs:
135135
env:
136136
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
137137
with:
138-
msg: Deployed to https://pr-${{ env.PR_NUMBER }}-${{ env.APP }}.${{ env.ENV }}.service.aepps.com
138+
msg: Deployed to https://pr-${{ env.PR_NUMBER }}-aescan.${{ env.ENV }}.service.aepps.com and https://pr-${{ env.PR_NUMBER }}-aescan-testnet.${{ env.ENV }}.service.aepps.com
139139
check_for_duplicate_msg: true
140140

141141
- name: Push changes
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
name: Pull Request Preview pipelines Testnet
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
7+
- release/*
8+
types: [ opened, synchronize, closed ]
9+
10+
env:
11+
PR_NUMBER: ${{ github.event.pull_request.number }}
12+
ENV: "stg"
13+
APP: "aescan-testnet"
14+
15+
concurrency: aescan_staging_environment-${{ github.ref }}
16+
17+
jobs:
18+
main:
19+
runs-on: ubuntu-latest
20+
name: Staging Pipeline Aescan Frontend Testnet
21+
steps:
22+
- uses: actions/checkout@v3
23+
with:
24+
fetch-depth: 0
25+
ref: ${{ github.event.pull_request.head.sha }}
26+
27+
- name: Set up Docker Buildx
28+
id: buildx
29+
# Use the action from the master, as we've seen some inconsistencies with @v1
30+
# Issue: https://github.com/docker/build-push-action/issues/286
31+
uses: docker/setup-buildx-action@master
32+
# Only worked for us with this option on
33+
with:
34+
install: true
35+
36+
- name: Cache Docker layers
37+
uses: actions/cache@v2
38+
with:
39+
path: /tmp/.buildx-cache
40+
# Key is named differently to avoid collision
41+
key: ${{ runner.os }}-${{ env.ENV }}-buildx-${{ github.sha }}
42+
restore-keys: |
43+
${{ runner.os }}-${{ env.ENV }}-buildx
44+
45+
- name: Log in to dockerhub
46+
uses: docker/login-action@v1
47+
with:
48+
username: ${{ secrets.DOCKERHUB_USER }}
49+
password: ${{ secrets.DOCKERHUB_PASS }}
50+
51+
- name: Extract metadata for docker
52+
if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize'
53+
id: meta
54+
uses: docker/metadata-action@v3
55+
with:
56+
images: aeternity/aescan
57+
tags: |
58+
type=ref,event=pr
59+
60+
- name: Get commit sha on PR Sync
61+
if: github.event_name == 'pull_request' && github.event.action == 'synchronize'
62+
id: git-sha
63+
shell: bash
64+
run: |
65+
echo GIT_SHA=$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
66+
67+
- name: Create dotenv
68+
run: |
69+
echo APP_VERSION=$(git describe --tags)-preview >> .env
70+
71+
- name: Build and push docker image
72+
if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize'
73+
uses: docker/build-push-action@v2
74+
with:
75+
context: .
76+
file: Dockerfile
77+
push: true
78+
build-args: BUILD_MODE=development
79+
tags: ${{ steps.meta.outputs.tags }}
80+
labels: ${{ steps.meta.outputs.labels }}
81+
cache-from: type=local,src=/tmp/.buildx-cache
82+
# Note the mode=max here
83+
# More: https://github.com/moby/buildkit#--export-cache-options
84+
# And: https://github.com/docker/buildx#--cache-tonametypetypekeyvalue
85+
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new
86+
87+
- name: Move cache
88+
if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize'
89+
run: |
90+
rm -rf /tmp/.buildx-cache
91+
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
92+
93+
- uses: actions/checkout@v2
94+
with:
95+
repository: aeternity/gitops-apps-aelabs.git
96+
ref: stg
97+
token: ${{ secrets.BOT_GITHUB_TOKEN }}
98+
persist-credentials: false
99+
fetch-depth: 0
100+
101+
- name: Chekc the initial PR deployment status before make a PR Sync.
102+
if: github.event_name == 'pull_request' && github.event.action == 'synchronize'
103+
uses: aeternity/ae-github-actions/deploy-status@v7
104+
with:
105+
url: https://pr-${{ env.PR_NUMBER }}-${{ env.APP }}.${{ env.ENV }}.service.aepps.com
106+
107+
- name: Staging PR Sync
108+
if: github.event_name == 'pull_request' && github.event.action == 'synchronize'
109+
uses: aeternity/ae-github-actions/argocd-pr-sync@v5
110+
with:
111+
git-sha: ${{ steps.git-sha.outputs.GIT_SHA }}
112+
url-prefix: pr-${{ env.PR_NUMBER }}
113+
env: ${{ env.ENV }}
114+
app: ${{ env.APP }}
115+
116+
- name: Staging deploy
117+
if: github.event_name == 'pull_request' && github.event.action == 'opened'
118+
uses: aeternity/ae-github-actions/argocd-deploy@v5
119+
with:
120+
url-prefix: pr-${{ env.PR_NUMBER }}
121+
env: ${{ env.ENV }}
122+
app: ${{ env.APP }}
123+
124+
- name: Staging undeploy
125+
if: github.event_name == 'pull_request' && github.event.action == 'closed' && startsWith(github.head_ref, 'release') != true
126+
uses: aeternity/ae-github-actions/argocd-undeploy@v5
127+
with:
128+
url-prefix: pr-${{ env.PR_NUMBER }}
129+
env: ${{ env.ENV }}
130+
app: ${{ env.APP }}
131+
132+
- name: Print PR url
133+
uses: unsplash/[email protected]
134+
if: github.event_name == 'pull_request' && github.event.action == 'opened'
135+
env:
136+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
137+
with:
138+
msg: Deployed to https://pr-${{ env.PR_NUMBER }}-aescan.${{ env.ENV }}.service.aepps.com and https://pr-${{ env.PR_NUMBER }}-aescan-testnet.${{ env.ENV }}.service.aepps.com
139+
check_for_duplicate_msg: true
140+
141+
- name: Push changes
142+
uses: ad-m/github-push-action@master
143+
with:
144+
repository: aeternity/gitops-apps-aelabs
145+
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
146+
branch: stg

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# Changelog
22

3+
## [0.12.0](https://github.com/aeternity/aescan/compare/0.11.1...0.12.0) (2024-04-30)
4+
5+
6+
### Features
7+
8+
* Hide token market cap ([#711](https://github.com/aeternity/aescan/issues/711)) ([1e4d0b1](https://github.com/aeternity/aescan/commit/1e4d0b15ca5d5bbc1a6b6016cc3a24fc20284199))
9+
* internal Chain.spend values ([#700](https://github.com/aeternity/aescan/issues/700)) ([0b20a49](https://github.com/aeternity/aescan/commit/0b20a4934af2fdfbdf7da71edcf1883196399b8a))
10+
* Migrate to v3 endpoints pt1 ([#703](https://github.com/aeternity/aescan/issues/703)) ([99863de](https://github.com/aeternity/aescan/commit/99863dedbfc514aa83e48f1d0b1c2e72becb35f4))
11+
* revert listed tokens do not appear ([#701](https://github.com/aeternity/aescan/issues/701)) ([917856b](https://github.com/aeternity/aescan/commit/917856b99bf0c98eec83e437cda591f2544f1fdd))
12+
* smart contract verification terms conditions ([#723](https://github.com/aeternity/aescan/issues/723)) ([ab51619](https://github.com/aeternity/aescan/commit/ab51619ccd4e67017fc3cd01ee34e3cbb34b5f96))
13+
* upgrade all dependencies ([#718](https://github.com/aeternity/aescan/issues/718)) ([4ec85a2](https://github.com/aeternity/aescan/commit/4ec85a2509a8ae89ae7dae1deb12dced1301405e))
14+
* Warning about MDW out of sync ([#684](https://github.com/aeternity/aescan/issues/684)) ([1c9b7e5](https://github.com/aeternity/aescan/commit/1c9b7e5e01ddf2ccbcbe4cccda2974a867b2aa6f))
15+
* making call arguments collapsible ([#567](https://github.com/aeternity/aescan/issues/567)) ([e6f837e](https://github.com/aeternity/aescan/commit/e6f837ef8eb5a67dfb9e7faaca781f64b4414cd0))
16+
* update readme urls ([#698](https://github.com/aeternity/aescan/issues/698)) ([48beaa4](https://github.com/aeternity/aescan/commit/48beaa48fd98de60b658e0e4ff3f2c0cc8ceee07))
17+
* Update borders color ([#687](https://github.com/aeternity/aescan/issues/687)) ([b9ea0f8](https://github.com/aeternity/aescan/commit/b9ea0f8ba7dcf020c4d41c4d481a74e14f1cdfa4))
18+
* contract events arguments mismatch ([#686](https://github.com/aeternity/aescan/issues/686)) ([5d4474d](https://github.com/aeternity/aescan/commit/5d4474dac7a74b8f6f566f7f3d48aa7199c86223))
19+
* transaction trend in the last 24 hours ([#673](https://github.com/aeternity/aescan/issues/673)) ([8a0f329](https://github.com/aeternity/aescan/commit/8a0f329c54afe897653d1e0b1e58f3ac18578837))
20+
* Add smart contract verified ([#663](https://github.com/aeternity/aescan/issues/663)) ([432dd45](https://github.com/aeternity/aescan/commit/432dd45b75e7657b15eedacd5a532dd75843b7af))
21+
* Add smart contract verification ([#665](https://github.com/aeternity/aescan/issues/665)) ([835697b](https://github.com/aeternity/aescan/commit/835697b3fec31b386dab5244fc5fadc71c4e8b44))
22+
* New menu structure ([#627](https://github.com/aeternity/aescan/issues/627)) ([c2fc9b2](https://github.com/aeternity/aescan/commit/c2fc9b28f7cc2a7a52596275dd1072a646f458fa))
23+
* upgrade node version to v20 ([#656](https://github.com/aeternity/aescan/issues/656)) ([465c3da](https://github.com/aeternity/aescan/commit/465c3daf669ef49c8da05dc286df9225e1e0910a))
24+
* upgrade sdk to 13.3.2 ([#743](https://github.com/aeternity/aescan/issues/743)) ([b9c4101](https://github.com/aeternity/aescan/commit/b9c4101eb520c087bc0edb63949093edb364ee24))
25+
26+
27+
### Bug Fixes
28+
29+
* Older button becomes broken in payingfor tx + UI fixes ([#708](https://github.com/aeternity/aescan/issues/708)) ([85e55cc](https://github.com/aeternity/aescan/commit/85e55cc641b563d46bf6e23099fae41ef0a8973d))
30+
* Separate direct file selection does not add files ([#731](https://github.com/aeternity/aescan/issues/731)) ([c611acf](https://github.com/aeternity/aescan/commit/c611acf8f1f5f2f46dd9e24cefcc76096028732c))
31+
* The full file path is not visible when Contract Files are uploaded ([#735](https://github.com/aeternity/aescan/issues/735)) ([3e08d3b](https://github.com/aeternity/aescan/commit/3e08d3b6346425299738aac18542bd095b46bd30))
32+
* Aligning in Custom pointers to chain names ([#682](https://github.com/aeternity/aescan/issues/682)) ([6d49a4c](https://github.com/aeternity/aescan/commit/6d49a4cab4312ef6c2618daa65e3075b0d85190a))
33+
* Improve transaction stats loading ([#683](https://github.com/aeternity/aescan/issues/683)) ([ee5a6eb](https://github.com/aeternity/aescan/commit/ee5a6ebbab3f9dd71dad0cb5807c3ed49fded20d))
34+
* When transaction is unavailable the app shows 500 error ([#675](https://github.com/aeternity/aescan/issues/675)) ([af475f3](https://github.com/aeternity/aescan/commit/af475f3549a284d0a1aa82fee9ba09ae82c50c72))
35+
* If user look at the activity of the selected account, then in the third step the view will break ([#672](https://github.com/aeternity/aescan/issues/672)) ([72e2176](https://github.com/aeternity/aescan/commit/72e2176a493566ccd1f7602bef453bab141f1f07))
36+
* fetching listed tokens ([#670](https://github.com/aeternity/aescan/issues/670)) ([4e67b2b](https://github.com/aeternity/aescan/commit/4e67b2bdb9c940beeb20f7aab1bc961a6f1fff55))
37+
* The full file path is not visible when Contract Files are uploaded ([#735](https://github.com/aeternity/aescan/issues/735)) ([3e08d3b](https://github.com/aeternity/aescan/commit/3e08d3b6346425299738aac18542bd095b46bd30))
38+
339
## [0.11.1](https://github.com/aeternity/aescan/compare/0.11.0...0.11.1) (2024-03-25)
440

541

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ user experience with Server Side Rendering enabled.
3131

3232
## Getting started
3333

34-
First, download and install [Node.js](https://nodejs.org/en/download). Version 18
34+
First, download and install [Node.js](https://nodejs.org/en/download). Version 20
3535
or higher is required.
3636

3737
Clone æScan repository
@@ -99,12 +99,12 @@ Three different deployment stages are available to test or use æScan:
9999
</tr>
100100
<tr>
101101
<td>Development</td>
102-
<td>https://aescan.dev.aepps.com</td>
102+
<td>https://aescan.dev.service.aepps.com</td>
103103
<td>Development environment deployed automatically after every push to the develop branch.</td>
104104
</tr>
105105
<tr>
106106
<td>PR preview</td>
107-
<td>https://pr-[PR-id]-aescan.stg.aepps.com</td>
107+
<td>https://pr-[PR-id]-aescan.stg.service.aepps.com</td>
108108
<td>Pull Request preview deployed automatically after every commit to an open pull request.</td>
109109
</tr>
110110
</table>

nuxt.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default defineNuxtConfig({
1212
'@pinia/nuxt',
1313
'@nuxtjs/plausible',
1414
'nuxt-simple-sitemap',
15+
'nuxt-monaco-editor',
1516
],
1617
imports: {
1718
dirs: ['./stores'],
@@ -36,6 +37,7 @@ export default defineNuxtConfig({
3637
ALTERNATIVE_NETWORK_NAME: process.env.ALTERNATIVE_NETWORK_NAME,
3738
AE_TOKEN_ID: process.env.AE_TOKEN_ID,
3839
DEBUG_MODE: process.env.DEBUG_MODE,
40+
CONTRACT_VERIFICATION_SERVICE_URL: process.env.CONTRACT_VERIFICATION_SERVICE_URL,
3941
SH_DEX_CONTRACTS: process.env.SH_DEX_CONTRACTS?.split(';'),
4042
},
4143
},
@@ -79,4 +81,10 @@ export default defineNuxtConfig({
7981
},
8082
],
8183
},
84+
monacoEditor: {
85+
locale: 'en',
86+
componentName: {
87+
codeEditor: 'MonacoEditor',
88+
},
89+
},
8290
})

0 commit comments

Comments
 (0)