Skip to content

Commit

Permalink
Merge pull request #151 from Cerebellum-Network/release/0.28.0
Browse files Browse the repository at this point in the history
Release/0.28.0
  • Loading branch information
MRamanenkau authored Apr 22, 2024
2 parents e87edfa + 3f08f79 commit e777293
Show file tree
Hide file tree
Showing 10 changed files with 226 additions and 49 deletions.
19 changes: 19 additions & 0 deletions .env.qa
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
PORT=3000
HTTPS=true

REACT_APP_ENV=development
REACT_APP_SS58_PREFIX=54

REACT_APP_SUPPORT_SERVICE="Discord"
REACT_APP_SUPPORT_URL="https://cere.network/discord"

REACT_APP_WALLET_CONNECT_V2_TOKEN="1c577e873c4c74d6a6a870a8c8128232"

## These are only required if using Sentry for error logging
REACT_APP_SENTRY_DSN_URL="https://3d39fa05d843482eb93377947b435b5b@o318183.ingest.sentry.io/5987177"
SENTRY_AUTH_TOKEN="db67ae12222811ecabd2564b6436d30d"
REACT_APP_SENTRY_RELEASE="0.21.0"

REACT_APP_MAINTENANCE=false
REACT_APP_CONNECT_WITH_SUBSTRATE_WALLET_ENABLED=true
REACT_APP_TRANSFER_FALLBACK_ENABLED=true
23 changes: 23 additions & 0 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release to QA
on:
push:
branches:
- qa-cere
workflow_dispatch:

jobs:
build-and-deploy:
uses: Cerebellum-Network/reusable-workflows/.github/workflows/build-and-upload-static.yaml@master
with:
runs-on: '["self-hosted", "cere-network-xlarge"]'
build_container: 'node:16-buster'
deploy_container: 'ubuntu:20.04'
install_packages_command: 'cp .env.qa .env; sh ./scripts/copy-qa-config.sh; yarn install'
build_command: 'yarn build'
path_to_static_files_to_upload: 'build'
secrets:
NETWORK_AWS_ACCESS_KEY_ID: ${{ secrets.DEV_NETWORK_AWS_ACCESS_KEY_ID }}
NETWORK_AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_NETWORK_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME_QA }}
CF_DISTRIBUTION_ID: ${{ secrets.CF_DISTRIBUTION_ID_QA }}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## vNext
...

## v0.28.0
- Update config to use Polygon Amoy and Ethereum Sepolia

## v0.27.0
- Added the ability to select a HomeChain for EVM-based networks.

Expand Down
45 changes: 22 additions & 23 deletions config/chainbridge-runtime-config.cere.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ window.__RUNTIME_CONFIG__ = {
chains: [
{
chainId: 2,
networkId: 80001,
name: "Polygon Mumbai",
networkId: 80002,
name: "Polygon Amoy",
decimals: cereTokenDecimals,
bridgeAddress: "0x80C8ee1C89c574eB97B3783f0B9C9483EdF8B92E",
erc20HandlerAddress: "0x53cc2228587EAca7CcE3189f24BC9bd490E43C48",
rpcUrl:
"https://polygon-mumbai.infura.io/v3/0aca1499facc499bb195d2d437f78603",
blockExplorer: "https://mumbai.polygonscan.com/tx",
bridgeAddress: "0xf2686661e3297d737D7Ae709A433639151d11Ed6",
erc20HandlerAddress: "0xCA8C0076262797f7f35E3874e7E208c9e394195E",
rpcUrl: "https://polygon-amoy.infura.io/v3/c97784f674164ef7b58e6261d6b1c012",
blockExplorer: "https://www.oklink.com/amoy/tx",
type: "Ethereum",
nativeTokenSymbol: "MATIC",
defaultGasPrice: 800,
Expand All @@ -27,12 +26,12 @@ window.__RUNTIME_CONFIG__ = {
availableAsHomeNetwork: true,
tokens: [
{
address: "0xcD54b7066839B25A0E5fDf76866D338cc7257179",
name: "CN",
symbol: "CS",
address: "0x8C7B1504d5E7Aa3e2E38353CFFd7526019b3cBBB",
name: "Devnet Cere",
symbol: "DEVCERE",
imageUri: "CEREIcon",
resourceId:
"0x000000000000000000000000000000c76ebe4a02bbc34786d860b355f5a5ce00",
"0x000000000000000000000000000000c76ebe4a02bbc34786d860b355f5a5ce00",
decimals: cereTokenDecimals,
isDoubleApproval: false,
},
Expand All @@ -54,7 +53,7 @@ window.__RUNTIME_CONFIG__ = {
decimals: cereTokenDecimals,
rpcUrl: "wss://rpc.devnet.cere.network/ws",
blockExplorer:
"https://explorer.cere.network/?rpc=wss%3A%2F%2Farchive.devnet.cere.network%2Fws#/explorer/query",
"https://explorer.cere.network/?rpc=wss%3A%2F%2Farchive.devnet.cere.network%2Fws#/explorer/query",
rpcFallbackUrls: ["wss://archive.devnet.cere.network/ws"],
type: "Substrate",
nativeTokenSymbol: "CERE",
Expand All @@ -73,7 +72,7 @@ window.__RUNTIME_CONFIG__ = {
symbol: cereTokenSymbol,
imageUri: "CEREIcon",
resourceId:
"0x000000000000000000000000000000c76ebe4a02bbc34786d860b355f5a5ce00",
"0x000000000000000000000000000000c76ebe4a02bbc34786d860b355f5a5ce00",
decimals: cereTokenDecimals,
},
],
Expand All @@ -89,25 +88,25 @@ window.__RUNTIME_CONFIG__ = {
},
{
chainId: 0,
networkId: 5,
name: "Ethereum Goerli",
networkId: 11155111,
name: "Ethereum Sepolia",
decimals: cereTokenDecimals,
rpcUrl: "https://goerli.infura.io/v3/0aca1499facc499bb195d2d437f78603",
blockExplorer: "https://goerli.etherscan.io/tx",
bridgeAddress: "0xa806cA3bD88F790744462cBC34c40EDd5b8dc2Dd",
erc20HandlerAddress: "0xf934Bfc8B5241b6C9e0DfC9A329AD687e79c5498",
rpcUrl: "https://sepolia.infura.io/v3/0aca1499facc499bb195d2d437f78603",
blockExplorer: "https://sepolia.etherscan.io/tx",
bridgeAddress: "0xf2686661e3297d737D7Ae709A433639151d11Ed6",
erc20HandlerAddress: "0xCA8C0076262797f7f35E3874e7E208c9e394195E",
type: "Ethereum",
nativeTokenSymbol: "ETH",
defaultGasPrice: 400,
availableAsHomeNetwork: true,
tokens: [
{
address: "0xb8A59CEF67d12C5C75836aEfF1d97943F5A9F662",
name: "CN",
symbol: "CS",
address: "0x8C7B1504d5E7Aa3e2E38353CFFd7526019b3cBBB",
name: "Devnet Cere",
symbol: "DEVCERE",
imageUri: "CEREIcon",
resourceId:
"0x000000000000000000000000000000c76ebe4a02bbc34786d860b355f5a5ce00",
"0x000000000000000000000000000000c76ebe4a02bbc34786d860b355f5a5ce00",
decimals: cereTokenDecimals,
isDoubleApproval: false,
},
Expand Down
126 changes: 126 additions & 0 deletions config/chainbridge-runtime-config.cere.qa.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
const cereTokenName = "CERE Network";
const cereTokenSymbol = "CERE";
const cereTokenDecimals = 10;

window.__RUNTIME_CONFIG__ = {
CHAINBRIDGE: {
ga: {
trackingId: "G-EVYKNM010Y",
appName: "chainbridge-ui",
},
chains: [
{
chainId: 2,
networkId: 80002,
name: "Polygon Amoy",
decimals: cereTokenDecimals,
bridgeAddress: "0x0086e7687F7326A3b77857F2870e185EC0EA5126",
erc20HandlerAddress: "0x310E5834F95964EAe7098D3dA9CD26c17cd83137",
rpcUrl: "https://polygon-amoy.infura.io/v3/c97784f674164ef7b58e6261d6b1c012",
blockExplorer: "https://www.oklink.com/amoy/tx",
type: "Ethereum",
nativeTokenSymbol: "MATIC",
defaultGasPrice: 800,
gasPriceSuggestionEnabled: true,
defaultGasPriceIncreaseInPercents: 10,
availableAsHomeNetwork: true,
tokens: [
{
address: "0xA8Dcf93a639E3A3834892DEE2E8f07270e7E58F7",
name: "Testnet CERE",
symbol: "TSTCERE",
imageUri: "CEREIcon",
resourceId:
"0x000000000000000000000000000000c76ebe4a02bbc34786d860b355f5a5ce00",
decimals: cereTokenDecimals,
isDoubleApproval: false,
},
],
transferFallback: [
{
chainId: 1,
delayMs: 4 * 60 * 1000,
blockTimeMs: 6000,
pollingMinIntervalMs: 15000,
pollingMaxIntervalMs: 30000,
},
],
},
{
chainId: 1,
networkId: 2,
name: "Cere Qanet",
decimals: cereTokenDecimals,
rpcUrl: "wss://rpc.qanet.cere.network/ws",
blockExplorer:
"https://explorer.cere.network/?rpc=wss%3A%2F%2Farchive.qanet.cere.network%2Fws#/explorer/query",
rpcFallbackUrls: ["wss://archive.qanet.cere.network/ws"],
type: "Substrate",
nativeTokenSymbol: "CERE",
availableAsHomeNetwork: true,
chainbridgePalletName: "chainBridge",
bridgeFeeValue: 0,
transferPalletName: "erc20",
transferFunctionName: "transferNative",
typesFileName: "bridgeTypes.json",
existentialDepositPlusNetworkFee: "1.03",
bridgeAccountId: "5EYCAe5g7bGpFHagwe26HiRHdHdE3hobrwV6hq1UD2BPAiZb",
tokens: [
{
address: "cere-native",
name: cereTokenName,
symbol: cereTokenSymbol,
imageUri: "CEREIcon",
resourceId:
"0x000000000000000000000000000000c76ebe4a02bbc34786d860b355f5a5ce00",
decimals: cereTokenDecimals,
},
],
transferFallback: [
{
chainId: 2,
delayMs: 3 * 60 * 1000,
blockTimeMs: 3000,
pollingMinIntervalMs: 15000,
pollingMaxIntervalMs: 30000,
},
],
},
{
chainId: 0,
networkId: 11155111,
name: "Ethereum Sepolia",
decimals: cereTokenDecimals,
rpcUrl: "https://sepolia.infura.io/v3/0aca1499facc499bb195d2d437f78603",
blockExplorer: "https://sepolia.etherscan.io/tx",
bridgeAddress: "0x310E5834F95964EAe7098D3dA9CD26c17cd83137",
erc20HandlerAddress: "0x56F464e1b2592b4B73CE2FcAe8e5de921A276167",
type: "Ethereum",
nativeTokenSymbol: "ETH",
defaultGasPrice: 400,
availableAsHomeNetwork: true,
tokens: [
{
address: "0x0086e7687F7326A3b77857F2870e185EC0EA5126",
name: "Testnet CERE",
symbol: "TSTCERE",
imageUri: "CEREIcon",
resourceId:
"0x000000000000000000000000000000c76ebe4a02bbc34786d860b355f5a5ce00",
decimals: cereTokenDecimals,
isDoubleApproval: false,
},
],
transferFallback: [
{
chainId: 1,
delayMs: 6 * 60 * 1000,
blockTimeMs: 6000,
pollingMinIntervalMs: 15000,
pollingMaxIntervalMs: 30000,
},
],
},
],
},
};
45 changes: 22 additions & 23 deletions config/chainbridge-runtime-config.cere.stage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const cereTokenName = "CERE Network";
const cereTokenSymbol = "CERE";
const cereTokenName = "Testnet Cere";
const cereTokenSymbol = "TST_CERE";
const cereTokenDecimals = 10;

window.__RUNTIME_CONFIG__ = {
Expand All @@ -11,14 +11,13 @@ window.__RUNTIME_CONFIG__ = {
chains: [
{
chainId: 2,
networkId: 80001,
name: "Polygon Mumbai",
networkId: 80002,
name: "Polygon Amoy",
decimals: cereTokenDecimals,
bridgeAddress: "0xBDc040b15561CFC9ED1Ce049DE8bEAbf0b520b33",
erc20HandlerAddress: "0x8Ee8876d13e79b846fb6c3e5Ffe226a2e111387a",
rpcUrl:
"https://polygon-mumbai.infura.io/v3/0aca1499facc499bb195d2d437f78603",
blockExplorer: "https://mumbai.polygonscan.com/tx",
bridgeAddress: "0xD134be2c9d23a5e1d7b632633dDD832066D39dE8",
erc20HandlerAddress: "0x4bF13AF921eb468F6B0Fc19f9b41a2Fd7769D99C",
rpcUrl: "https://polygon-amoy.infura.io/v3/c97784f674164ef7b58e6261d6b1c012",
blockExplorer: "https://www.oklink.com/amoy/tx",
type: "Ethereum",
nativeTokenSymbol: "MATIC",
defaultGasPrice: 800,
Expand All @@ -27,12 +26,12 @@ window.__RUNTIME_CONFIG__ = {
availableAsHomeNetwork: true,
tokens: [
{
address: "0xd111d479e23A8342A81ad595Ea1CAF229B3528c3",
name: "CN",
symbol: "CS",
address: "0x6A077176E22c05a9607A32cdc9fE23Dd6db2A9Ca",
name: "Testnet CERE",
symbol: "TST_CERE",
imageUri: "CEREIcon",
resourceId:
"0x000000000000000000000000000000c76ebe4a02bbc34786d860b355f5a5ce00",
"0x000000000000000000000000000000c76ebe4a02bbc34786d860b355f5a5ce00",
decimals: cereTokenDecimals,
isDoubleApproval: false,
},
Expand All @@ -54,7 +53,7 @@ window.__RUNTIME_CONFIG__ = {
decimals: cereTokenDecimals,
rpcUrl: "wss://rpc.testnet.cere.network/ws",
blockExplorer:
"https://explorer.cere.network/?rpc=wss%3A%2F%2Farchive.testnet.cere.network%2Fws#/explorer/query",
"https://explorer.cere.network/?rpc=wss%3A%2F%2Farchive.testnet.cere.network%2Fws#/explorer/query",
rpcFallbackUrls: ["wss://archive.testnet.cere.network/ws"],
type: "Substrate",
nativeTokenSymbol: "CERE",
Expand All @@ -73,7 +72,7 @@ window.__RUNTIME_CONFIG__ = {
symbol: cereTokenSymbol,
imageUri: "CEREIcon",
resourceId:
"0x000000000000000000000000000000c76ebe4a02bbc34786d860b355f5a5ce00",
"0x000000000000000000000000000000c76ebe4a02bbc34786d860b355f5a5ce00",
decimals: cereTokenDecimals,
},
],
Expand All @@ -89,25 +88,25 @@ window.__RUNTIME_CONFIG__ = {
},
{
chainId: 0,
networkId: 5,
name: "Ethereum Goerli",
networkId: 11155111,
name: "Ethereum Sepolia",
decimals: cereTokenDecimals,
rpcUrl: "https://goerli.infura.io/v3/0aca1499facc499bb195d2d437f78603",
blockExplorer: "https://goerli.etherscan.io/tx",
bridgeAddress: "0x4E297d17A3d945Ed96dBbD205317501e92d8D6E8",
erc20HandlerAddress: "0x92c1576845703089CF6c0788379ED81f75F45dd5",
rpcUrl: "https://rpc.ankr.com/ethereum_sepolia/c3f39efa809ec60e8a5f1d035689162b51c1d9eb39233314e7725556faf7f503",
blockExplorer: "https://sepolia.etherscan.io/tx",
bridgeAddress: "0x120B0ba52DC11acA91E8d679eF127815Af0920CD",
erc20HandlerAddress: "0x6A077176E22c05a9607A32cdc9fE23Dd6db2A9Ca",
type: "Ethereum",
nativeTokenSymbol: "ETH",
defaultGasPrice: 400,
availableAsHomeNetwork: true,
tokens: [
{
address: "0x0b10e304088b2BA2B2acfD2f72573FAaD31a13A5",
address: "0x244A84580B96C49BDf552E18613227eF30951b04",
name: cereTokenName,
symbol: cereTokenSymbol,
imageUri: "CEREIcon",
resourceId:
"0x000000000000000000000000000000c76ebe4a02bbc34786d860b355f5a5ce00",
"0x000000000000000000000000000000c76ebe4a02bbc34786d860b355f5a5ce00",
decimals: cereTokenDecimals,
isDoubleApproval: false,
},
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@Cerebellum-Network/chainbridge-ui",
"version": "0.26.0",
"version": "0.28.0",
"private": true,
"engines": {
"node": "^16.0.0"
Expand Down Expand Up @@ -121,6 +121,7 @@
"setup:example": "./scripts/setup-eth-example.sh && node --experimental-json-modules ./scripts/setup-sub-example.mjs",
"setup:centrifuge": "./scripts/setup-eth-centrifuge.sh",
"setup:copy-dev-config": "./scripts/copy-dev-config.sh",
"setup:copy-qa-config": "./scripts/copy-qa-config.sh",
"setup:copy-stage-config": "./scripts/copy-stage-config.sh",
"setup:copy-prod-config": "./scripts/copy-prod-config.sh"
},
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; connect-src ws://localhost:3000 http://localhost:3000 ws://127.0.0.1:9944 wss://*.cere.network https://*.infura.io https://*.google-analytics.com wss://*.walletconnect.com https://*.walletconnect.com https://*.sentry.io https://*.etherchain.org; style-src 'self' 'unsafe-inline'; img-src 'self' data: https://*.walletconnect.com; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.googletagmanager.com">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; connect-src ws://localhost:3000 http://localhost:3000 ws://127.0.0.1:9944 wss://*.cere.network https://rpc.ankr.com https://*.infura.io https://*.google-analytics.com wss://*.walletconnect.com https://*.walletconnect.com https://*.sentry.io https://*.etherchain.org; style-src 'self' 'unsafe-inline'; img-src 'self' data: https://*.walletconnect.com; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.googletagmanager.com">
<meta http-equiv="Strict-Transport-Security" content="max-age=63072000; includeSubDomains; preload">
<meta http-equiv="Referrer-Policy" content="no-referrer, strict-origin-when-cross-origin">
<link rel="icon" href="%PUBLIC_URL%/favicon.ico?v=6" />
Expand Down
Loading

0 comments on commit e777293

Please sign in to comment.