Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare Mainnet #91

Merged
merged 7 commits into from
Nov 1, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bridge_ui/src/utils/consts.ts
Original file line number Diff line number Diff line change
@@ -310,7 +310,7 @@ export const TERRA_HOST =

export const EXPLORER_API_SERVER_HOST =
CLUSTER === 'mainnet'
? ''
? 'https//indexer-api.explorer.bridge.alephium.org'
: CLUSTER === 'testnet'
? 'https://v2.indexer-api.explorer.testnet.bridge.alephium.org'
: 'http://localhost:8100'
2 changes: 1 addition & 1 deletion configs/alephium/mainnet.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"chainId": 255,
"groupIndex": 0,
"initRewards": 0,
"initRewards": 1000,
Lbqds marked this conversation as resolved.
Show resolved Hide resolved
"minimalConsistencyLevel": 105,
"messageFee": "0",
"contracts": {
10 changes: 5 additions & 5 deletions configs/guardian/mainnet.json
Original file line number Diff line number Diff line change
@@ -2,12 +2,12 @@
"governanceChainId": 0,
"governanceEmitterAddress": "0000000000000000000000000000000000000000000000000000000000000004",
"initSigners": [
"0x2F10c48859bf00F743971aCb287b8876bC9ef7F3",
"0x8A3Bc2996485A9e49B104601F40d7b75b79ce3a9",
"0xEa7d9D838ea90D2316Ab0c80c8D92719AD5885e8",
"0x99068B602684ac2227F21463bf90c29bcBA651Ef"
"0x214f15D574A4D7895EEd709F80F7B49E5fE5Ad29",
"0x78C7B8dD49CEdd6311f03357bBD7299B4d747852",
"0x4B2CbEa0E19473D90e41581d4F39FA44b5fb88fB",
"0x9eFb0cd728D59bA13EAbe2f17ceBF9f3AB6989A1"
Lbqds marked this conversation as resolved.
Show resolved Hide resolved
],
"guardianUrls": [
"https://guardian-0.mainnet.bridge.alephium.org"
"https://guardian-0.bridge.alephium.org"
]
}
1 change: 1 addition & 0 deletions ethereum/package.json
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@
"test": "mkdir -p build/contracts && cp node_modules/@openzeppelin/contracts/build/contracts/* build/contracts/ && CHAIN_NAME=ethereum truffle test --network test",
"migrate": "mkdir -p build/contracts && cp node_modules/@openzeppelin/contracts/build/contracts/* build/contracts/ && truffle migrate --to 6",
"migrate:goerli": "mkdir -p build/contracts && cp node_modules/@openzeppelin/contracts/build/contracts/* build/contracts/ && truffle migrate --to 6 --network goerli --skip-dry-run",
"migrate:mainnet": "mkdir -p build/contracts && cp node_modules/@openzeppelin/contracts/build/contracts/* build/contracts/ && truffle migrate --to 6 --network mainnet --skip-dry-run",
"flatten": "mkdir -p node_modules/@poanet/solidity-flattener/contracts && cp -r contracts/* node_modules/@poanet/solidity-flattener/contracts/ && poa-solidity-flattener",
"verify": "patch -u -f node_modules/truffle-plugin-verify/constants.js -i truffle-verify-constants.patch; truffle run verify $npm_config_module@$npm_config_contract_address --network $npm_config_network",
"abigen": "truffle run abigen"
3 changes: 1 addition & 2 deletions ethereum/truffle-config.js
Original file line number Diff line number Diff line change
@@ -30,8 +30,7 @@ module.exports = {
`https://mainnet.infura.io/v3/` + process.env.INFURA_KEY
),
network_id: 1,
gas: 10000000,
gasPrice: 191000000000,
gasPrice: 20000000000,
confirmations: 1,
timeoutBlocks: 200,
skipDryRun: false,
2 changes: 1 addition & 1 deletion explorer/.env.production
Original file line number Diff line number Diff line change
@@ -3,6 +3,6 @@ GATSBY_GA_TAG=not_available

GATSBY_DEVNET_BACKEND_URL=http://localhost:8100/
GATSBY_TESTNET_BACKEND_URL=https://v2.indexer-api.explorer.testnet.bridge.alephium.org/
GATSBY_MAINNET_BACKEND_URL=http://not_available
GATSBY_MAINNET_BACKEND_URL=https://indexer-api.explorer.bridge.alephium.org/

GATSBY_DEFAULT_NETWORK=testnet
2 changes: 1 addition & 1 deletion relayer-engine/src/middleware/source-tx.middleware.ts
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ export interface SourceTxContext extends Context {
}

export const explorerApiServerEndpoints: { [k in NetworkId]: string | undefined } = {
['mainnet']: undefined,
['mainnet']: "https://indexer-api.explorer.bridge.alephium.org",
['testnet']: "https://v2.indexer-api.explorer.testnet.bridge.alephium.org",
['devnet']: "https://localhost:8100",
};