-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: show network name instead network url, and related fixes (#36)
* chore: add link to docs * chore: add configuration to run locally * chore: don't show empty revision in docker * fix: show network name instead network url * feat: get primary color and symbol from node configs
- Loading branch information
Showing
7 changed files
with
102 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
services: | ||
middleware: | ||
# TODO: use upstream after solving https://github.com/aeternity/ae_mdw/issues/1758 | ||
image: davidyuk/temp:mdw-dev-mode | ||
ports: [4000:4000, 4001:4001, 3013:3013, 3313:3313] | ||
volumes: | ||
- ./docker/aeternity.yaml:/home/aeternity/aeternity.yaml | ||
stop_grace_period: 0s | ||
|
||
explorer: | ||
# TODO: use upstream after merging https://github.com/aeternity/aescan/pull/774 | ||
image: davidyuk/temp:explorer | ||
ports: [3070:80] | ||
environment: | ||
- NUXT_PUBLIC_NETWORK_NAME=Localnet | ||
- NUXT_PUBLIC_NODE_URL=http://host.docker.internal:3013 | ||
- NUXT_PUBLIC_MIDDLEWARE_URL=http://host.docker.internal:4000 | ||
- NUXT_PUBLIC_WEBSOCKET_URL=ws://host.docker.internal:4001/v2/websocket | ||
depends_on: | ||
middleware: | ||
condition: service_healthy | ||
|
||
faucet: | ||
build: . | ||
ports: [5001:5000] | ||
environment: | ||
- FAUCET_ACCOUNT_PRIV_KEY=9ebd7beda0c79af72a42ece3821a56eff16359b6df376cf049aee995565f022f840c974b97164776454ba119d84edc4d6058a8dec92b6edc578ab2d30b4c4200 | ||
- TOPUP_AMOUNT=0.01 | ||
- SPEND_TX_PAYLOAD=Test Faucet Tx | ||
- NODE_URL=http://host.docker.internal:3013 | ||
- EXPLORER_URL=http://host.docker.internal:3070 | ||
depends_on: | ||
middleware: | ||
condition: service_healthy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# yaml-language-server: $schema=https://github.com/aeternity/aeternity/raw/master/apps/aeutils/priv/aeternity_config_schema.json | ||
|
||
system: | ||
dev_mode: true | ||
plugins: | ||
- name: aeplugin_dev_mode | ||
|
||
dev_mode: | ||
auto_emit_microblocks: true | ||
|
||
chain: | ||
persist: false | ||
hard_forks: | ||
"1": 0 | ||
"6": 1 | ||
genesis_accounts: | ||
ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E: 10000000000000000000 | ||
currency: | ||
symbol: LAE | ||
display: | ||
network_name: Localnet | ||
primary_colour: '#29f752' | ||
|
||
# TODO: remove after solving https://github.com/aeternity/ae_mdw/issues/1760 | ||
fork_management: | ||
network_id: ae_dev | ||
|
||
# TODO remove after solving https://github.com/aeternity/ae_mdw/issues/1760#issuecomment-2102872638 | ||
mining: | ||
beneficiary: ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env node | ||
|
||
import { execSync } from 'child_process'; | ||
|
||
// TODO: remove after solving https://github.com/aeternity/ae_mdw/issues/1758 | ||
try { | ||
execSync( | ||
'docker compose exec middleware ./bin/ae_mdw rpc ":aeplugin_dev_mode_app.start_unlink()"', | ||
{ stdio : 'pipe' }, | ||
); | ||
} catch (error) { | ||
if (!error.message.includes('{:error, {:already_started')) throw error; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters