Skip to content

Commit

Permalink
refactor: drop unnecessary compiler setup
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Dec 23, 2023
1 parent 0bb931f commit bdbdaf1
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 37 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/_validate-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:
- run: npm test
working-directory: 'backend'
- run: npm ci --legacy-peer-deps # TODO: remove --legacy-peer-deps after updating dependencies
- run: docker-compose up -d compiler
- run: perl -i -pe 's/https:\/\/compiler\.aepps\.com/http:\/\/localhost:3078/g' src/lib/networksRegistry.js
- run: npm test
- uses: stefanzweifel/git-auto-commit-action@v4
if: failure()
Expand Down
4 changes: 0 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,3 @@ services:
image: aepp-base-backend
build: backend
ports: ["3079:80"]
compiler:
image: aeternity/aesophia_http:v6.1.0
hostname: compiler
ports: ["3078:3080"]
1 change: 0 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
url: '$VUE_APP_NODE_URL',
middlewareUrl: '$VUE_APP_MIDDLEWARE_URL',
explorerUrl: '$VUE_APP_EXPLORER_URL',
compilerUrl: '$VUE_APP_COMPILER_URL',
};
window.overrideBackendUrl = '$VUE_APP_BACKEND_URL';
</script>
Expand Down
3 changes: 0 additions & 3 deletions src/lib/networksRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,20 @@ const mainNetwork = {
url: 'https://mainnet.aeternity.io',
middlewareUrl: 'https://mainnet.aeternity.io/mdw',
explorerUrl: 'https://explorer.aeternity.io',
compilerUrl: 'https://compiler.aepps.com',
};

const testNetwork = {
name: 'Testnet',
url: 'https://testnet.aeternity.io',
middlewareUrl: 'https://testnet.aeternity.io/mdw',
explorerUrl: 'https://explorer.testnet.aeternity.io',
compilerUrl: 'https://compiler.aepps.com',
};

const envNetwork = {
name: process.env.VUE_APP_NETWORK_NAME,
url: process.env.VUE_APP_NODE_URL,
middlewareUrl: process.env.VUE_APP_MIDDLEWARE_URL,
explorerUrl: process.env.VUE_APP_EXPLORER_URL,
compilerUrl: process.env.VUE_APP_COMPILER_URL,
};

const networks = (() => {
Expand Down
6 changes: 1 addition & 5 deletions src/locales/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -682,17 +682,13 @@

"info": {
"title": "Info",
"subtitle": "SDK, node, compiler versions",
"subtitle": "SDK, node, middleware versions",
"version": "Version",
"node": {
"url": "Node URL",
"version": "Node version",
"height": "Node height"
},
"compiler": {
"url": "Compiler URL",
"version": "Compiler version"
},
"sdk-version": "SDK version",
"middleware": {
"url": "Middleware URL",
Expand Down
6 changes: 1 addition & 5 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -682,17 +682,13 @@

"info": {
"title": "Info",
"subtitle": "SDK, node, compiler versions",
"subtitle": "SDK, node, middleware versions",
"version": "Version",
"node": {
"url": "Node URL",
"version": "Node version",
"height": "Node height"
},
"compiler": {
"url": "Compiler URL",
"version": "Compiler version"
},
"sdk-version": "SDK version",
"middleware": {
"url": "Middleware URL",
Expand Down
6 changes: 1 addition & 5 deletions src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -682,17 +682,13 @@

"info": {
"title": "Info",
"subtitle": "SDK, node, compiler versions",
"subtitle": "SDK, node, middleware versions",
"version": "Version",
"node": {
"url": "Node URL",
"version": "Node version",
"height": "Node height"
},
"compiler": {
"url": "Compiler URL",
"version": "Compiler version"
},
"sdk-version": "SDK version",
"middleware": {
"url": "Middleware URL",
Expand Down
6 changes: 1 addition & 5 deletions src/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -682,17 +682,13 @@

"info": {
"title": "О приложении",
"subtitle": "Версии: SDK, узла, компилятора",
"subtitle": "Версии: SDK, узла, middleware",
"version": "Версия сборки",
"node": {
"url": "Адрес узла",
"version": "Версия узла",
"height": "Блоков синхронизировано"
},
"compiler": {
"url": "Адрес компилятора",
"version": "Версия компилятора"
},
"sdk-version": "Версия SDK",
"middleware": {
"url": "Адрес middleware",
Expand Down
6 changes: 0 additions & 6 deletions src/pages/mobile/SettingsInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ export default {
}, {
name: this.$t('settings.info.node.height'),
value: this.topBlockHeight,
}, {
name: this.$t('settings.info.compiler.url'),
subtitle: currentNetwork.compilerUrl,
}, {
name: this.$t('settings.info.compiler.version'),
value: sdk?.compilerVersion,
}, {
name: this.$t('settings.info.middleware.url'),
subtitle: currentNetwork.middlewareUrl,
Expand Down
1 change: 0 additions & 1 deletion src/store/plugins/initSdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ export default (store) => {
name: network.name,
instance: await Node({ url: network.url }),
}],
compilerUrl: network.compilerUrl,
name: 'Base Aepp',
onConnection: acceptCb,
async onSubscription(_, { accept }, origin) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bdbdaf1

Please sign in to comment.