chore: remove stagnet1, fix env vars for api endpoints (#1163)

This commit is contained in:
Matthew Russell 2022-08-25 17:07:27 -07:00 committed by GitHub
parent 760a24b500
commit 4af10977d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
49 changed files with 45 additions and 456 deletions

View File

@ -6,6 +6,5 @@ __generated__
apps/static/src/assets/devnet-tranches.json
apps/static/src/assets/mainnet-tranches.json
apps/static/src/assets/stagnet1-tranches.json
apps/static/src/assets/stagnet3-tranches.json
apps/static/src/assets/testnet-tranches.json

View File

@ -127,7 +127,7 @@ As environment variables are build time and not run time in frontend application
In order to override specific environment variables you can pass these to the container like this:
```bash
docker run -e NX_VEGA_URL=https://n04.d.vega.xyz/query -p 3000:80 [TAG]
docker run -e NX_VEGA_URL=https://api.n04.d.vega.xyz/graphql -p 3000:80 [TAG]
```
Which will now point the app to use a devnet data node. To see a list of all possible config properties see the readme.md for each app in the app directory.

View File

@ -1,8 +1,8 @@
# App configuration variables
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/devnet-network.json
NX_VEGA_URL=https://n04.d.vega.xyz/query
NX_VEGA_URL=https://api.n04.d.vega.xyz/graphql
NX_VEGA_ENV=DEVNET
NX_VEGA_REST=https://n04.d.vega.xyz/datanode/rest
NX_VEGA_REST=https://api.n04.d.vega.xyz
NX_VEGA_NETWORKS={\"MAINNET\":\"https://alpha.console.vega.xyz\"}
NX_ETHEREUM_PROVIDER_URL=https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8
NX_ETHERSCAN_URL=https://ropsten.etherscan.io

View File

@ -2,7 +2,7 @@
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/mainnet-network.json
NX_VEGA_URL=https://api.token.vega.xyz/query
NX_VEGA_ENV=MAINNET
NX_VEGA_REST=https://api.token.vega.xyz/
NX_VEGA_REST=https://api.token.vega.xyz
NX_VEGA_NETWORKS='{\"MAINNET\":\"https://alpha.console.vega.xyz\"}'
NX_ETHEREUM_PROVIDER_URL=https://mainnet.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8
NX_ETHERSCAN_URL=https://etherscan.io

View File

@ -1,9 +0,0 @@
# App configuration variables
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/stagnet1-network.json
NX_VEGA_URL=https://n03.s.vega.xyz/query
NX_VEGA_ENV=STAGNET
NX_VEGA_REST=https://n03.s.vega.xyz/datanode/rest
NX_VEGA_NETWORKS='{\"MAINNET\":\"https://alpha.console.vega.xyz\"}'
NX_ETHEREUM_PROVIDER_URL=https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8
NX_ETHERSCAN_URL=https://ropsten.etherscan.io
NX_VEGA_EXPLORER_URL=https://staging.explorer.vega.xyz

View File

@ -1,8 +1,8 @@
# App configuration variables
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/stagnet3-network.json
NX_VEGA_URL=https://n01.stagnet3.vega.xyz/query
NX_VEGA_URL=https://api.n01.stagnet3.vega.xyz/graphql
NX_VEGA_ENV=STAGNET3
NX_VEGA_REST=https://n01.stagnet3.vega.xyz/datanode/rest
NX_VEGA_REST=https://api.n01.stagnet3.vega.xyz
NX_ETHEREUM_PROVIDER_URL=https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8
NX_ETHERSCAN_URL=https://ropsten.etherscan.io
NX_VEGA_EXPLORER_URL=https://staging2.explorer.vega.xyz

View File

@ -2,9 +2,9 @@
NX_CHAIN_EXPLORER_URL=https://explorer.vega.trading/.netlify/functions/chain-explorer-api
NX_TENDERMINT_URL=https://n04.d.vega.xyz/tm
NX_TENDERMINT_WEBSOCKET_URL=wss://n04.d.vega.xyz/tm/websocket
NX_VEGA_URL=https://n04.d.vega.xyz/query
NX_VEGA_URL=https://api.n04.d.vega.xyz/graphql
NX_VEGA_ENV=DEVNET
NX_VEGA_REST=https://n04.d.vega.xyz/datanode/rest
NX_VEGA_REST=https://api.n04.d.vega.xyz
# App flags
NX_EXPLORER_ASSETS=1

View File

@ -1,18 +0,0 @@
# App configuration variables
NX_CHAIN_EXPLORER_URL=https://explorer.vega.trading/.netlify/functions/chain-explorer-api
NX_TENDERMINT_URL=https://n03.s.vega.xyz/tm
NX_TENDERMINT_WEBSOCKET_URL=wss://n03.s.vega.xyz/tm/websocket
NX_VEGA_URL=https://n03.s.vega.xyz/query
NX_VEGA_ENV=STAGNET
NX_VEGA_REST=https://n03.s.vega.xyz/datanode/rest
# App flags
NX_EXPLORER_ASSETS=1
NX_EXPLORER_GENESIS=1
NX_EXPLORER_GOVERNANCE=1
NX_EXPLORER_MARKETS=1
NX_EXPLORER_ORACLES=1
NX_EXPLORER_TXS_LIST=1
NX_EXPLORER_NETWORK_PARAMETERS=1
NX_EXPLORER_PARTIES=1
NX_EXPLORER_VALIDATORS=1

View File

@ -2,9 +2,9 @@
NX_CHAIN_EXPLORER_URL=https://explorer.vega.trading/.netlify/functions/chain-explorer-api
NX_TENDERMINT_URL=https://n01.stagnet3.vega.xyz/tm
NX_TENDERMINT_WEBSOCKET_URL=wss://n01.stagnet3.vega.xyz/tm/websocket
NX_VEGA_URL=https://n01.stagnet3.vega.xyz/query
NX_VEGA_URL=https://api.n01.stagnet3.vega.xyz/graphql
NX_VEGA_ENV=STAGNET3
NX_VEGA_REST=https://n01.stagnet3.vega.xyz/datanode/rest
NX_VEGA_REST=https://api.n01.stagnet3.vega.xyz
# App flags
NX_EXPLORER_ASSETS=1

View File

@ -8,7 +8,7 @@ NX_CHAIN_EXPLORER_URL=https://explorer.vega.trading/.netlify/functions/chain-exp
NX_TENDERMINT_URL=https://n01.stagnet3.vega.xyz/tm
NX_TENDERMINT_WEBSOCKET_URL=wss://n01.stagnet3.vega.xyz/tm/websocket
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/stagnet3-network.json
NX_VEGA_URL=https://n01.stagnet3.vega.xyz/query
NX_VEGA_URL=https://api.n01.stagnet3.vega.xyz/graphql
NX_VEGA_NETWORKS='{"TESTNET":"https://explorer.fairground.wtf","MAINNET":"https://explorer.vega.xyz"}'
NX_VEGA_ENV=STAGNET3
NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions

View File

@ -3,7 +3,7 @@ NX_CHAIN_EXPLORER_URL=https://explorer.vega.trading/.netlify/functions/chain-exp
NX_TENDERMINT_URL=https://n04.d.vega.xyz/tm
NX_TENDERMINT_WEBSOCKET_URL=wss://n04.d.vega.xyz/tm/websocket
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/devnet-network.json
NX_VEGA_URL=https://n04.d.vega.xyz/query
NX_VEGA_URL=https://api.n04.d.vega.xyz/graphql
NX_VEGA_NETWORKS='{"TESTNET":"https://explorer.fairground.wtf","MAINNET":"https://explorer.vega.xyz"}'
NX_VEGA_ENV=DEVNET
NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions

View File

@ -1,9 +0,0 @@
# App configuration variables
NX_CHAIN_EXPLORER_URL=https://explorer.vega.trading/.netlify/functions/chain-explorer-api
NX_TENDERMINT_URL=https://n03.s.vega.xyz/tm
NX_TENDERMINT_WEBSOCKET_URL=wss://n03.s.vega.xyz/tm/websocket
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/stagnet1-network.json
NX_VEGA_URL=https://n03.s.vega.xyz/query
NX_VEGA_NETWORKS='{"TESTNET":"https://explorer.fairground.wtf","MAINNET":"https://explorer.vega.xyz"}'
NX_VEGA_ENV=STAGNET
NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions

View File

@ -3,7 +3,7 @@ NX_CHAIN_EXPLORER_URL=https://explorer.vega.trading/.netlify/functions/chain-exp
NX_TENDERMINT_URL=https://n01.stagnet3.vega.xyz/tm
NX_TENDERMINT_WEBSOCKET_URL=wss://n01.stagnet3.vega.xyz/tm/websocket
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/stagnet3-network.json
NX_VEGA_URL=https://n01.stagnet3.vega.xyz/query
NX_VEGA_URL=https://api.n01.stagnet3.vega.xyz/graphql
NX_VEGA_NETWORKS='{"TESTNET":"https://explorer.fairground.wtf","MAINNET":"https://explorer.vega.xyz"}'
NX_VEGA_ENV=STAGNET3
NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions

View File

@ -35,13 +35,12 @@ Example configurations are provided here:
- [Devnet](./.env.devnet)
- [Capsule](./.env.capsule)
- [Testnet](./.env.testnet)
- [Stagnet1](./.env.stagnet1)
- [Stagnet3](./.env.stagnet3)
For convenience, you can boot the app injecting one of the configurations above by running:
```bash
yarn nx run explorer:serve --env={env} # e.g. stagnet1
yarn nx run explorer:serve --env={env} # e.g. stagnet3
```
There are a few different configuration options offered for this app:

View File

@ -1,3 +1,3 @@
{
"hosts": ["https://n04.d.vega.xyz/query"]
"hosts": ["https://api.n04.d.vega.xyz/graphql"]
}

View File

@ -1,3 +0,0 @@
{
"hosts": ["https://n03.s.vega.xyz/query"]
}

View File

@ -1,316 +0,0 @@
[
{
"tranche_id": 4,
"tranche_start": "2021-05-15T09:09:30.000Z",
"tranche_end": "2022-05-15T09:09:30.000Z",
"total_added": "100",
"total_removed": "0",
"locked_amount": "0",
"deposits": [
{
"amount": "100",
"user": "0xFc00fa2A8B7f0D85a39e101B985a74e83f5c8980",
"tx": "0xaf36ffbe4a40813ef0f778054f78aa0a506211a56e976193fb046571995cc76a"
}
],
"withdrawals": [],
"users": [
{
"address": "0xFc00fa2A8B7f0D85a39e101B985a74e83f5c8980",
"deposits": [
{
"amount": "100",
"user": "0xFc00fa2A8B7f0D85a39e101B985a74e83f5c8980",
"tranche_id": 4,
"tx": "0xaf36ffbe4a40813ef0f778054f78aa0a506211a56e976193fb046571995cc76a"
}
],
"withdrawals": [],
"total_tokens": "100",
"withdrawn_tokens": "0",
"remaining_tokens": "100"
}
]
},
{
"tranche_id": 5,
"tranche_start": "2021-11-26T13:48:10.000Z",
"tranche_end": "2022-11-26T13:48:10.000Z",
"total_added": "100",
"total_removed": "0",
"locked_amount": "25.43070776255708",
"deposits": [
{
"amount": "100",
"user": "0xaA383f95fa88e979e7de91B37433a38B293b7432",
"tx": "0x8f97b9e33af057e155f3d745cefe43ee2408f0ae8df89ecbc2d4dedbd1389114"
}
],
"withdrawals": [],
"users": [
{
"address": "0xaA383f95fa88e979e7de91B37433a38B293b7432",
"deposits": [
{
"amount": "100",
"user": "0xaA383f95fa88e979e7de91B37433a38B293b7432",
"tranche_id": 5,
"tx": "0x8f97b9e33af057e155f3d745cefe43ee2408f0ae8df89ecbc2d4dedbd1389114"
}
],
"withdrawals": [],
"total_tokens": "100",
"withdrawn_tokens": "0",
"remaining_tokens": "100"
}
]
},
{
"tranche_id": 1,
"tranche_start": "1970-01-01T00:00:00.000Z",
"tranche_end": "1970-01-01T00:00:00.000Z",
"total_added": "11200",
"total_removed": "10100",
"locked_amount": "0",
"deposits": [
{
"amount": "600",
"user": "0x9804C6E98dA75e3271ccE3aA56728FD8e9376155",
"tx": "0xbcccc6382d70694e48c342c00b52422a1594be74cedf18dcf0f76d1049484868"
},
{
"amount": "100",
"user": "0xAbEbf1f93aA8C80fB38C896c9a76e266A8EB1d99",
"tx": "0xf1902e5ef53e51dfd8b8c95babd22118c3c3818d6ca775530885808ab2125eb9"
},
{
"amount": "500",
"user": "0x58F0F575eFA3De140aaEDcbffe31B724994e2ec6",
"tx": "0xde7f73f9c46a83796467a12987a2946dea081124483bc3477ca8e0596c03421e"
},
{
"amount": "10000",
"user": "0x7382EF0cDb0168D9c1106Efbc43e8a12fB6106cB",
"tx": "0xfaf9be231e81948888804534a2f1869e270086583570f3c802507f9e9388d238"
}
],
"withdrawals": [
{
"amount": "100",
"user": "0xAbEbf1f93aA8C80fB38C896c9a76e266A8EB1d99",
"tx": "0x3ca0e398ef7d33731d65f4de0c73c24a5dd3604a959d58553bebcae166dc24cc"
},
{
"amount": "10000",
"user": "0x7382EF0cDb0168D9c1106Efbc43e8a12fB6106cB",
"tx": "0x00ca6784af8d8674d4cc418abb3aab601efa0e2968720610b0094c84366bf5a7"
}
],
"users": [
{
"address": "0x9804C6E98dA75e3271ccE3aA56728FD8e9376155",
"deposits": [
{
"amount": "600",
"user": "0x9804C6E98dA75e3271ccE3aA56728FD8e9376155",
"tranche_id": 1,
"tx": "0xbcccc6382d70694e48c342c00b52422a1594be74cedf18dcf0f76d1049484868"
}
],
"withdrawals": [],
"total_tokens": "600",
"withdrawn_tokens": "0",
"remaining_tokens": "600"
},
{
"address": "0xAbEbf1f93aA8C80fB38C896c9a76e266A8EB1d99",
"deposits": [
{
"amount": "100",
"user": "0xAbEbf1f93aA8C80fB38C896c9a76e266A8EB1d99",
"tranche_id": 1,
"tx": "0xf1902e5ef53e51dfd8b8c95babd22118c3c3818d6ca775530885808ab2125eb9"
}
],
"withdrawals": [
{
"amount": "100",
"user": "0xAbEbf1f93aA8C80fB38C896c9a76e266A8EB1d99",
"tranche_id": 1,
"tx": "0x3ca0e398ef7d33731d65f4de0c73c24a5dd3604a959d58553bebcae166dc24cc"
}
],
"total_tokens": "100",
"withdrawn_tokens": "100",
"remaining_tokens": "0"
},
{
"address": "0x58F0F575eFA3De140aaEDcbffe31B724994e2ec6",
"deposits": [
{
"amount": "500",
"user": "0x58F0F575eFA3De140aaEDcbffe31B724994e2ec6",
"tranche_id": 1,
"tx": "0xde7f73f9c46a83796467a12987a2946dea081124483bc3477ca8e0596c03421e"
}
],
"withdrawals": [],
"total_tokens": "500",
"withdrawn_tokens": "0",
"remaining_tokens": "500"
},
{
"address": "0x7382EF0cDb0168D9c1106Efbc43e8a12fB6106cB",
"deposits": [
{
"amount": "10000",
"user": "0x7382EF0cDb0168D9c1106Efbc43e8a12fB6106cB",
"tranche_id": 1,
"tx": "0xfaf9be231e81948888804534a2f1869e270086583570f3c802507f9e9388d238"
}
],
"withdrawals": [
{
"amount": "10000",
"user": "0x7382EF0cDb0168D9c1106Efbc43e8a12fB6106cB",
"tranche_id": 1,
"tx": "0x00ca6784af8d8674d4cc418abb3aab601efa0e2968720610b0094c84366bf5a7"
}
],
"total_tokens": "10000",
"withdrawn_tokens": "10000",
"remaining_tokens": "0"
}
]
},
{
"tranche_id": 2,
"tranche_start": "2033-05-18T03:33:20.000Z",
"tranche_end": "2033-05-18T03:33:20.000Z",
"total_added": "600",
"total_removed": "0",
"locked_amount": "600",
"deposits": [
{
"amount": "100",
"user": "0xAbEbf1f93aA8C80fB38C896c9a76e266A8EB1d99",
"tx": "0x1de2c1884b96c2f58930cc08e0eb2739abedeea4527943cd4989310415e142ed"
},
{
"amount": "500",
"user": "0x58F0F575eFA3De140aaEDcbffe31B724994e2ec6",
"tx": "0x54b0c591f9582767aaa3ea9661ed65bbe4ba5cacc66f292b4978fd3b93dec8e6"
}
],
"withdrawals": [],
"users": [
{
"address": "0xAbEbf1f93aA8C80fB38C896c9a76e266A8EB1d99",
"deposits": [
{
"amount": "100",
"user": "0xAbEbf1f93aA8C80fB38C896c9a76e266A8EB1d99",
"tranche_id": 2,
"tx": "0x1de2c1884b96c2f58930cc08e0eb2739abedeea4527943cd4989310415e142ed"
}
],
"withdrawals": [],
"total_tokens": "100",
"withdrawn_tokens": "0",
"remaining_tokens": "100"
},
{
"address": "0x58F0F575eFA3De140aaEDcbffe31B724994e2ec6",
"deposits": [
{
"amount": "500",
"user": "0x58F0F575eFA3De140aaEDcbffe31B724994e2ec6",
"tranche_id": 2,
"tx": "0x54b0c591f9582767aaa3ea9661ed65bbe4ba5cacc66f292b4978fd3b93dec8e6"
}
],
"withdrawals": [],
"total_tokens": "500",
"withdrawn_tokens": "0",
"remaining_tokens": "500"
}
]
},
{
"tranche_id": 3,
"tranche_start": "2021-10-12T00:53:20.000Z",
"tranche_end": "2022-10-12T00:53:20.000Z",
"total_added": "1100",
"total_removed": "673.04388635",
"locked_amount": "142.499739979705724",
"deposits": [
{
"amount": "1000",
"user": "0x970Bf6C66E55f90a7D455354954Af5CaBA11318C",
"tx": "0xfee1971d3403ecfbee9b88a14aee2654a5a397d9fb5e4a1787b0a8d4a60dd42c"
},
{
"amount": "100",
"user": "0xFc00fa2A8B7f0D85a39e101B985a74e83f5c8980",
"tx": "0xf3a97d073a229b78b0dfacb6b24d6eb2fc89d79dc003bff114c1d205705f880b"
}
],
"withdrawals": [
{
"amount": "673.00240994",
"user": "0x970Bf6C66E55f90a7D455354954Af5CaBA11318C",
"tx": "0xdaf6124a50ae4cfed3e72d42e5bb43dcc707538d3db1355f215aac162c3f35a4"
},
{
"amount": "0.04147641",
"user": "0x970Bf6C66E55f90a7D455354954Af5CaBA11318C",
"tx": "0x8c9b4e7bb2ef3f06f47c614ac42f466de3b6994c36a5061e7d384607bdbdfb01"
}
],
"users": [
{
"address": "0x970Bf6C66E55f90a7D455354954Af5CaBA11318C",
"deposits": [
{
"amount": "1000",
"user": "0x970Bf6C66E55f90a7D455354954Af5CaBA11318C",
"tranche_id": 3,
"tx": "0xfee1971d3403ecfbee9b88a14aee2654a5a397d9fb5e4a1787b0a8d4a60dd42c"
}
],
"withdrawals": [
{
"amount": "673.00240994",
"user": "0x970Bf6C66E55f90a7D455354954Af5CaBA11318C",
"tranche_id": 3,
"tx": "0xdaf6124a50ae4cfed3e72d42e5bb43dcc707538d3db1355f215aac162c3f35a4"
},
{
"amount": "0.04147641",
"user": "0x970Bf6C66E55f90a7D455354954Af5CaBA11318C",
"tranche_id": 3,
"tx": "0x8c9b4e7bb2ef3f06f47c614ac42f466de3b6994c36a5061e7d384607bdbdfb01"
}
],
"total_tokens": "1000",
"withdrawn_tokens": "673.04388635",
"remaining_tokens": "326.95611365"
},
{
"address": "0xFc00fa2A8B7f0D85a39e101B985a74e83f5c8980",
"deposits": [
{
"amount": "100",
"user": "0xFc00fa2A8B7f0D85a39e101B985a74e83f5c8980",
"tranche_id": 3,
"tx": "0xf3a97d073a229b78b0dfacb6b24d6eb2fc89d79dc003bff114c1d205705f880b"
}
],
"withdrawals": [],
"total_tokens": "100",
"withdrawn_tokens": "0",
"remaining_tokens": "100"
}
]
}
]

View File

@ -1,3 +1,3 @@
{
"hosts": ["https://n01.stagnet3.vega.xyz/query"]
"hosts": ["https://api.n01.stagnet3.vega.xyz/graphql"]
}

View File

@ -1,3 +1,3 @@
{
"hosts": ["https://lb.testnet.vega.xyz/query"]
"hosts": ["https://api.n09.testnet.vega.xyz/graphql"]
}

View File

@ -1,4 +1,4 @@
# App configuration variables
NX_VEGA_ENV=DEVNET
CYPRESS_VEGA_ENV=DEVNET
NX_VEGA_REST=https://n04.d.vega.xyz/datanode/rest
NX_VEGA_REST=https://api.n04.d.vega.xyz

View File

@ -1,4 +0,0 @@
# App configuration variables
NX_VEGA_ENV=STAGNET 1
CYPRESS_VEGA_ENV=STAGNET 1
NX_VEGA_REST=https://n03.s.vega.xyz/datanode/rest

View File

@ -1,4 +1,4 @@
# App configuration variables
NX_VEGA_ENV=STAGNET 3
CYPRESS_VEGA_ENV=STAGNET 3
NX_VEGA_REST=https://n01.stagnet3.vega.xyz/datanode/rest
NX_VEGA_ENV=STAGNET3
CYPRESS_VEGA_ENV=STAGNET3
NX_VEGA_REST=https://api.n01.stagnet3.vega.xyz

View File

@ -1,3 +1,3 @@
# App configuration variables
NX_VEGA_ENV=DEVNET
NX_VEGA_URL=https://n04.d.vega.xyz/query
NX_VEGA_URL=https://api.n04.d.vega.xyz/graphql

View File

@ -1,3 +0,0 @@
# App configuration variables
NX_VEGA_ENV=STAGNET1;
NX_VEGA_URL=https://n03.s.vega.xyz/query;

View File

@ -1,3 +1,3 @@
# App configuration variables
NX_VEGA_URL=https://n01.stagnet3.vega.xyz/query;
NX_VEGA_URL=https://api.n01.stagnet3.vega.xyz/graphql
NX_VEGA_ENV=STAGNET3;

View File

@ -1,5 +1,5 @@
# App configuration variables
NX_VEGA_ENV=DEVNET
NX_VEGA_URL=https://n04.d.vega.xyz/query
NX_VEGA_URL=https://api.n04.d.vega.xyz/graphql
NX_ETHEREUM_PROVIDER_URL=https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8
NX_ETHERSCAN_URL=https://ropsten.etherscan.io

View File

@ -1,5 +0,0 @@
# App configuration variables
NX_VEGA_ENV=STAGNET
NX_VEGA_URL=https://n03.s.vega.xyz/query
NX_ETHEREUM_PROVIDER_URL=https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8
NX_ETHERSCAN_URL=https://ropsten.etherscan.io

View File

@ -1,5 +1,5 @@
# App configuration variables
NX_VEGA_ENV=STAGNET3
NX_VEGA_URL=https://n01.stagnet3.vega.xyz/query
NX_VEGA_URL=https://api.n01.stagnet3.vega.xyz/graphql
NX_ETHEREUM_PROVIDER_URL=https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8
NX_ETHERSCAN_URL=https://ropsten.etherscan.io

View File

@ -6,7 +6,7 @@ NX_ETHEREUM_PROVIDER_URL=https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9
NX_ETHERSCAN_URL=https://ropsten.etherscan.io
NX_VEGA_REST=https://api.n11.testnet.vega.xyz
NX_FAIRGROUND=false
NX_VEGA_NETWORKS='{"DEVNET":"https://dev.token.vega.xyz","STAGNET":"https://staging.token.vega.xyz","STAGNET3":"https://stagnet3.token.vega.xyz","TESTNET":"https://token.fairground.wtf","MAINNET":"https://token.vega.xyz"}'
NX_VEGA_NETWORKS='{"DEVNET":"https://dev.token.vega.xyz","STAGNET3":"https://stagnet3.token.vega.xyz","TESTNET":"https://token.fairground.wtf","MAINNET":"https://token.vega.xyz"}'
NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions
NX_VEGA_WALLET_URL=http://localhost:1789/api/v1

View File

@ -3,7 +3,7 @@ NX_VEGA_ENV=TESTNET
NX_ETHEREUM_PROVIDER_URL=http://localhost:8545
NX_ETHERSCAN_URL=https://ropsten.etherscan.io
NX_FAIRGROUND=false
NX_VEGA_NETWORKS='{"DEVNET":"https://dev.token.vega.xyz","STAGNET":"https://staging.token.vega.xyz","STAGNET3":"https://stagnet3.token.vega.xyz","TESTNET":"https://token.fairground.wtf","MAINNET":"https://token.vega.xyz"}'
NX_VEGA_NETWORKS='{"DEVNET":"https://dev.token.vega.xyz","STAGNET3":"https://stagnet3.token.vega.xyz","TESTNET":"https://token.fairground.wtf","MAINNET":"https://token.vega.xyz"}'
NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions
NX_VEGA_CONFIG_URL=''

View File

@ -1,9 +1,9 @@
# App configuration variables
NX_VEGA_ENV=DEVNET
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/devnet-network.json
NX_VEGA_URL=https://n04.d.vega.xyz/query
NX_VEGA_REST=https://n04.d.vega.xyz/datanode/rest
NX_VEGA_NETWORKS='{"DEVNET":"https://dev.token.vega.xyz","STAGNET":"https://staging.token.vega.xyz","STAGNET3":"https://stagnet3.token.vega.xyz","TESTNET":"https://token.fairground.wtf","MAINNET":"https://token.vega.xyz"}'
NX_VEGA_URL=https://api.n04.d.vega.xyz/graphql
NX_VEGA_REST=https://api.n04.d.vega.xyz
NX_VEGA_NETWORKS='{"DEVNET":"https://dev.token.vega.xyz","STAGNET3":"https://stagnet3.token.vega.xyz","TESTNET":"https://token.fairground.wtf","MAINNET":"https://token.vega.xyz"}'
NX_ETHEREUM_PROVIDER_URL=https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8
NX_ETHERSCAN_URL=https://ropsten.etherscan.io
NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions

View File

@ -2,7 +2,7 @@
NX_VEGA_ENV=MAINNET
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/mainnet-network.json
NX_VEGA_URL=https://api.token.vega.xyz/query
NX_VEGA_NETWORKS='{"DEVNET":"https://dev.token.vega.xyz","STAGNET":"https://staging.token.vega.xyz","STAGNET3":"https://stagnet3.token.vega.xyz","TESTNET":"https://token.fairground.wtf","MAINNET":"https://token.vega.xyz"}'
NX_VEGA_NETWORKS='{"DEVNET":"https://dev.token.vega.xyz","STAGNET3":"https://stagnet3.token.vega.xyz","TESTNET":"https://token.fairground.wtf","MAINNET":"https://token.vega.xyz"}'
NX_ETHEREUM_PROVIDER_URL=https://mainnet.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8
NX_ETHERSCAN_URL=https://etherscan.io
NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions

View File

@ -1,9 +0,0 @@
# App configuration variables
NX_VEGA_ENV=STAGNET
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/stagnet1-network.json
NX_VEGA_URL=https://n03.s.vega.xyz/query
NX_VEGA_NETWORKS='{"DEVNET":"https://dev.token.vega.xyz","STAGNET":"https://staging.token.vega.xyz","STAGNET3":"https://stagnet3.token.vega.xyz","TESTNET":"https://token.fairground.wtf","MAINNET":"https://token.vega.xyz"}'
NX_ETHEREUM_PROVIDER_URL=https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8
NX_ETHERSCAN_URL=https://ropsten.etherscan.io
NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions
NX_VEGA_REST=https://n03.s.vega.xyz/datanode/rest

View File

@ -2,10 +2,10 @@
NX_CHAIN_EXPLORER_URL=https://explorer.vega.trading/.netlify/functions/chain-explorer-api
NX_TENDERMINT_URL=https://tm.n01.stagnet3.vega.xyz/
NX_TENDERMINT_WEBSOCKET_URL=wss://tm.n01.stagnet3.vega.xyz/websocket
NX_VEGA_URL=https://api.n01.stagnet3.vega.xyz/query
NX_VEGA_URL=https://api.n01.stagnet3.vega.xyz/graphql
NX_VEGA_ENV=STAGNET3
NX_VEGA_REST=https://api.n01.stagnet3.vega.xyz
NX_VEGA_NETWORKS='{"DEVNET":"https://dev.token.vega.xyz","STAGNET":"https://staging.token.vega.xyz","STAGNET3":"https://stagnet3.token.vega.xyz","TESTNET":"https://token.fairground.wtf","MAINNET":"https://token.vega.xyz"}'
NX_VEGA_NETWORKS='{"DEVNET":"https://dev.token.vega.xyz","STAGNET3":"https://stagnet3.token.vega.xyz","TESTNET":"https://token.fairground.wtf","MAINNET":"https://token.vega.xyz"}'
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/stagnet3-network.json
# App flags

View File

@ -2,7 +2,7 @@
NX_VEGA_ENV=TESTNET
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/testnet-network.json
NX_VEGA_URL=https://api.n11.testnet.vega.xyz/graphql
NX_VEGA_NETWORKS='{"DEVNET":"https://dev.token.vega.xyz","STAGNET":"https://staging.token.vega.xyz","STAGNET3":"https://stagnet3.token.vega.xyz","TESTNET":"https://token.fairground.wtf","MAINNET":"https://token.vega.xyz"}'
NX_VEGA_NETWORKS='{"DEVNET":"https://dev.token.vega.xyz","STAGNET3":"https://stagnet3.token.vega.xyz","TESTNET":"https://token.fairground.wtf","MAINNET":"https://token.vega.xyz"}'
NX_ETHEREUM_PROVIDER_URL=https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8
NX_ETHERSCAN_URL=https://ropsten.etherscan.io
NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions

View File

@ -27,13 +27,12 @@ Example configurations are provided here:
- [Mainnet](./.env.mainnet)
- [Devnet](./.env.devnet)
- [Testnet](./.env.testnet)
- [Stagnet1](./.env.stagnet1)
- [Stagnet3](./.env.stagnet3)
For convenience, you can boot the app injecting one of the configurations above by running:
```bash
yarn nx run token:serve --env={env} # e.g. stagnet1
yarn nx run token:serve --env={env} # e.g. stagnet3
```
There are a few different configuration options offered for this app:

View File

@ -28,10 +28,6 @@ export const ContractAddresses: {
claimAddress: '0x8Cef746ab7C83B61F6461cC92882bD61AB65a994',
lockedAddress: '0x0',
},
STAGNET: {
claimAddress: '0x8Cef746ab7C83B61F6461cC92882bD61AB65a994', // TODO not deployed to this env, but random address so app doesn't error
lockedAddress: '0x0', // TODO not deployed to this env
},
STAGNET3: {
claimAddress: '0x8Cef746ab7C83B61F6461cC92882bD61AB65a994', // TODO not deployed to this env, but random address so app doesn't error
lockedAddress: '0x0', // TODO not deployed to this env

View File

@ -9,7 +9,6 @@ import { BigNumber } from '../lib/bignumber';
const TRANCHES_URLS: { [N in Networks]: string } = {
MAINNET: 'https://static.vega.xyz/assets/mainnet-tranches.json',
TESTNET: 'https://static.vega.xyz/assets/testnet-tranches.json',
STAGNET: 'https://static.vega.xyz/assets/stagnet1-tranches.json',
STAGNET3: 'https://static.vega.xyz/assets/stagnet3-tranches.json',
DEVNET: 'https://static.vega.xyz/assets/devnet-tranches.json',
CUSTOM: 'https://static.vega.xyz/assets/testnet-tranches.json',

View File

@ -1,7 +1,7 @@
# App configuration variables
NX_VEGA_ENV=DEVNET
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/devnet-network.json
NX_VEGA_URL=https://n04.d.vega.xyz/query
NX_VEGA_URL=https://api.n04.d.vega.xyz/graphql
NX_VEGA_NETWORKS={\"MAINNET\":\"https://alpha.console.vega.xyz\"}
NX_ETHEREUM_PROVIDER_URL=https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8
NX_ETHERSCAN_URL=https://ropsten.etherscan.io

View File

@ -1,8 +0,0 @@
# App configuration variables
NX_VEGA_ENV=STAGNET
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/stagnet1-network.json
NX_VEGA_URL=https://n03.s.vega.xyz/query
NX_VEGA_NETWORKS='{\"MAINNET\":\"https://alpha.console.vega.xyz\"}'
NX_ETHEREUM_PROVIDER_URL=https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8
NX_ETHERSCAN_URL=https://ropsten.etherscan.io
NX_VEGA_EXPLORER_URL=https://staging.explorer.vega.xyz

View File

@ -1,7 +1,7 @@
# App configuration variables
NX_VEGA_ENV=STAGNET3
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/stagnet3-network.json
NX_VEGA_URL=https://n01.stagnet3.vega.xyz/query
NX_VEGA_URL=https://api.n01.stagnet3.vega.xyz/graphql
NX_VEGA_NETWORKS='{\"MAINNET\":\"https://alpha.console.vega.xyz\"}'
NX_ETHEREUM_PROVIDER_URL=https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8
NX_ETHERSCAN_URL=https://ropsten.etherscan.io

View File

@ -21,13 +21,12 @@ Example configurations are provided here:
- [Mainnet](./.env.mainnet)
- [Devnet](./.env.devnet)
- [Testnet](./.env.testnet)
- [Stagnet1](./.env.stagnet1)
- [Stagnet3](./.env.stagnet3)
For convenience, you can boot the app injecting one of the configurations above by running:
```bash
yarn nx run token:serve --env={env} # e.g. stagnet1
yarn nx run token:serve --env={env} # e.g. stagnet3
```
There are a few different configuration options offered for this app:

View File

@ -16,7 +16,6 @@ describe('Network switcher', () => {
network | label
${Networks.CUSTOM} | ${envTriggerMapping[Networks.CUSTOM]}
${Networks.DEVNET} | ${envTriggerMapping[Networks.DEVNET]}
${Networks.STAGNET} | ${envTriggerMapping[Networks.STAGNET]}
${Networks.STAGNET3} | ${envTriggerMapping[Networks.STAGNET3]}
${Networks.TESTNET} | ${envTriggerMapping[Networks.TESTNET]}
${Networks.MAINNET} | ${envTriggerMapping[Networks.MAINNET]}
@ -137,7 +136,6 @@ describe('Network switcher', () => {
[Networks.MAINNET]: 'https://main.net',
[Networks.TESTNET]: 'https://test.net',
[Networks.STAGNET3]: 'https://stag3.net',
[Networks.STAGNET]: 'https://stag.net',
[Networks.DEVNET]: 'https://dev.net',
};
// @ts-ignore Typescript doesn't know about this module being mocked
@ -155,7 +153,6 @@ describe('Network switcher', () => {
Networks.MAINNET,
Networks.TESTNET,
Networks.STAGNET3,
Networks.STAGNET,
Networks.DEVNET,
].forEach((network) => {
expect(
@ -174,7 +171,6 @@ describe('Network switcher', () => {
[Networks.MAINNET]: 'https://main.net',
[Networks.TESTNET]: 'https://test.net',
[Networks.STAGNET3]: 'https://stag3.net',
[Networks.STAGNET]: 'https://stag.net',
[Networks.DEVNET]: 'https://dev.net',
};
// @ts-ignore Typescript doesn't know about this module being mocked
@ -203,7 +199,6 @@ describe('Network switcher', () => {
[Networks.MAINNET]: undefined,
[Networks.TESTNET]: 'https://test.net',
[Networks.STAGNET3]: 'https://stag3.net',
[Networks.STAGNET]: 'https://stag.net',
[Networks.DEVNET]: 'https://dev.net',
};
// @ts-ignore Typescript doesn't know about this module being mocked

View File

@ -15,7 +15,6 @@ import { Networks } from '../../types';
export const envNameMapping: Record<Networks, string> = {
[Networks.CUSTOM]: t('Custom'),
[Networks.DEVNET]: t('Devnet'),
[Networks.STAGNET]: t('Stagnet'),
[Networks.STAGNET3]: t('Stagnet3'),
[Networks.TESTNET]: t('Fairground testnet'),
[Networks.MAINNET]: t('Mainnet'),
@ -29,10 +28,7 @@ export const envTriggerMapping: Record<Networks, string> = {
export const envDescriptionMapping: Record<Networks, string> = {
[Networks.CUSTOM]: '',
[Networks.DEVNET]: t('The latest Vega code auto-deployed'),
[Networks.STAGNET]: t('A staging environment with trading'),
[Networks.STAGNET3]: t(
'A testnet that simulates validators coming and going'
),
[Networks.STAGNET3]: t('A staging environment with trading'),
[Networks.TESTNET]: t(
'Public testnet run by the Vega team, often used for incentives'
),
@ -44,7 +40,6 @@ const advancedNetworkKeys = [
Networks.MAINNET,
Networks.TESTNET,
Networks.STAGNET3,
Networks.STAGNET,
Networks.DEVNET,
];

View File

@ -149,7 +149,7 @@ describe('throws error', () => {
);
});
it('throws a validation error when VEGA_NETWORKS is has an invalid network as a key', () => {
it('throws a validation error when VEGA_NETWORKS has an invalid network as a key', () => {
process.env['NX_VEGA_NETWORKS'] = JSON.stringify({
NOT_A_NETWORK: 'https://somewhere.url',
});
@ -159,7 +159,7 @@ describe('throws error', () => {
});
expect(result).toThrow(
`Error processing the vega app environment:
- All keys in NX_VEGA_NETWORKS must represent a valid environment: CUSTOM | TESTNET | STAGNET | STAGNET3 | DEVNET | MAINNET`
- All keys in NX_VEGA_NETWORKS must represent a valid environment: CUSTOM | TESTNET | STAGNET3 | DEVNET | MAINNET`
);
});
@ -183,7 +183,7 @@ describe('throws error', () => {
});
expect(result).toThrow(
`Error processing the vega app environment:
- NX_VEGA_ENV is invalid, received "undefined" instead of: 'CUSTOM' | 'TESTNET' | 'STAGNET' | 'STAGNET3' | 'DEVNET' | 'MAINNET'`
- NX_VEGA_ENV is invalid, received "undefined" instead of: 'CUSTOM' | 'TESTNET' | 'STAGNET3' | 'DEVNET' | 'MAINNET'`
);
});
@ -195,7 +195,7 @@ describe('throws error', () => {
});
expect(result).not.toThrow(
`Error processing the vega app environment:
- NX_VEGA_ENV is invalid, received "SOMETHING" instead of: CUSTOM | TESTNET | STAGNET | DEVNET | MAINNET`
- NX_VEGA_ENV is invalid, received "SOMETHING" instead of: CUSTOM | TESTNET | STAGNET3 | DEVNET | MAINNET`
);
});
});

View File

@ -33,7 +33,7 @@ const mockEnvironmentState = {
VEGA_CONFIG_URL: 'https://vega.xyz/testnet-config.json',
VEGA_NETWORKS: {
TESTNET: 'https://testnet.url',
STAGNET: 'https://stagnet.url',
STAGNET3: 'https://stagnet3.url',
MAINNET: 'https://mainnet.url',
},
ETHEREUM_PROVIDER_URL: 'https://ether.provider',
@ -191,7 +191,6 @@ it.each`
env | etherscanUrl | providerUrl
${Networks.DEVNET} | ${'https://ropsten.etherscan.io'} | ${'https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8'}
${Networks.TESTNET} | ${'https://ropsten.etherscan.io'} | ${'https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8'}
${Networks.STAGNET} | ${'https://ropsten.etherscan.io'} | ${'https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8'}
${Networks.STAGNET3} | ${'https://ropsten.etherscan.io'} | ${'https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8'}
${Networks.MAINNET} | ${'https://etherscan.io'} | ${'https://mainnet.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8'}
`(

View File

@ -6,7 +6,6 @@ import { compileErrors } from './compile-errors';
export enum Networks {
CUSTOM = 'CUSTOM',
TESTNET = 'TESTNET',
STAGNET = 'STAGNET',
STAGNET3 = 'STAGNET3',
DEVNET = 'DEVNET',
MAINNET = 'MAINNET',

View File

@ -1 +1 @@
NX_VEGA_URL=https://n04.d.vega.xyz/query
NX_VEGA_URL=https://api.n04.d.vega.xyz/graphql

View File

@ -18,12 +18,6 @@ const CONFIG = [
provider: 'https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8',
startBlock: 11340808,
},
{
env: 'stagnet1',
contract: '0xfCe6eB272D3d4146A96bC28de71212b327F575fa',
provider: 'https://ropsten.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8',
startBlock: 11259488,
},
{
env: 'stagnet3',
contract: '0x9F10cBeEf03A564Fb914c2010c0Cd55E9BB11406',