mirror of
https://github.com/oceanprotocol/barge.git
synced 2024-11-25 11:28:45 +01:00
Added pacific network
This commit is contained in:
parent
aad2a11928
commit
7267adf10c
23
compose-files/nodes/pacific_node.yml
Normal file
23
compose-files/nodes/pacific_node.yml
Normal file
@ -0,0 +1,23 @@
|
||||
version: '3'
|
||||
services:
|
||||
keeper-node:
|
||||
image: ${PARITY_IMAGE}
|
||||
command:
|
||||
--config /home/parity/parity/config/config.toml
|
||||
--db-path /home/parity/chains
|
||||
--base-path /home/parity/base
|
||||
--ws-interface all
|
||||
--jsonrpc-cors all
|
||||
--jsonrpc-interface all
|
||||
--jsonrpc-hosts all
|
||||
--jsonrpc-apis all
|
||||
volumes:
|
||||
- ../networks/nile/config:/home/parity/parity/config
|
||||
- keeper-node:/home/parity/.local/share/io.parity.ethereum/
|
||||
- ../networks/nile/authorities/validator0.json:/home/parity/.local/share/io.parity.ethereum/keys/nile/validator.json
|
||||
- ../networks/nile/authorities/validator0.pwd:/home/parity/parity/validator.pwd
|
||||
ports:
|
||||
- 8545:8545
|
||||
networks:
|
||||
backend:
|
||||
ipv4_address: 172.15.0.12
|
109
networks/pacific/config/chain.json
Normal file
109
networks/pacific/config/chain.json
Normal file
@ -0,0 +1,109 @@
|
||||
{
|
||||
"name": "pacific",
|
||||
"engine": {
|
||||
"authorityRound": {
|
||||
"params": {
|
||||
"stepDuration": "5",
|
||||
"validators": {
|
||||
"multi": {
|
||||
"0": {
|
||||
"list": [
|
||||
"0x58c0131d5a14b508a7d2cea1179cf8d384b7bf1a",
|
||||
"0x5676b8e60728efdc33a65fcdb8c6d0965d5b045a",
|
||||
"0xbe7ef68dcdbe6520a4ba380c59d1dadc012effff"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"params": {
|
||||
"maximumExtraDataSize": "0x20",
|
||||
"minGasLimit": "0x1388",
|
||||
"networkID": "0xCEA11",
|
||||
"gasLimitBoundDivisor": "0x400",
|
||||
"eip140Transition": "0",
|
||||
"eip145Transition": "0",
|
||||
"eip211Transition": "0",
|
||||
"eip214Transition": "0",
|
||||
"eip658Transition": "0",
|
||||
"eip1014Transition": "0",
|
||||
"eip1052Transition": "0",
|
||||
"eip1283Transition": "0",
|
||||
"kip4Transition": "0",
|
||||
"kip6Transition": "0",
|
||||
"wasmActivationTransition": "0"
|
||||
},
|
||||
"genesis": {
|
||||
"seal": {
|
||||
"authorityRound": {
|
||||
"step": "0x0",
|
||||
"signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
|
||||
}
|
||||
},
|
||||
"difficulty": "0x20000",
|
||||
"gasLimit": "0x165A0BC00"
|
||||
},
|
||||
"accounts": {
|
||||
"0x0000000000000000000000000000000000000001": {
|
||||
"balance": "1",
|
||||
"builtin": {
|
||||
"name": "ecrecover",
|
||||
"pricing": {
|
||||
"linear": {
|
||||
"base": 3000,
|
||||
"word": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"0x0000000000000000000000000000000000000002": {
|
||||
"balance": "1",
|
||||
"builtin": {
|
||||
"name": "sha256",
|
||||
"pricing": {
|
||||
"linear": {
|
||||
"base": 60,
|
||||
"word": 12
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"0x0000000000000000000000000000000000000003": {
|
||||
"balance": "1",
|
||||
"builtin": {
|
||||
"name": "ripemd160",
|
||||
"pricing": {
|
||||
"linear": {
|
||||
"base": 600,
|
||||
"word": 120
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"0x0000000000000000000000000000000000000004": {
|
||||
"balance": "1",
|
||||
"builtin": {
|
||||
"name": "identity",
|
||||
"pricing": {
|
||||
"linear": {
|
||||
"base": 15,
|
||||
"word": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"0x7eed82a01e7b3cc6c3bb472d34d875e6e2ead48b": {
|
||||
"balance": "1606938044258990275541962092341162602522202993782792835301376"
|
||||
}
|
||||
},
|
||||
"nodes": [
|
||||
"enode://e5e44f4a86a706b4d00a51078df37c0240872a4b1a0b1561266573e42c1e76e8b48a80b46526accba41677323288cc395babd39ac7483b98808c2387addcd949@3.217.145.228:30303",
|
||||
"enode://6a4aac724a2dc1076e26837723958549feef5202ce5dce35bfad443782a0a73da31a7dabe285d18d61c26dfb39e2dec55ed6d61e1af27b927741b5ff1ac399d7@3.217.208.52:30303",
|
||||
"enode://7797c7ba758004af448ea0a33a9815b4578a14c98a1feb1717a954d9927d9b59c194dc50c59a9b4053277a92e0e96917e3340a2bcdb5d09e49cf9907f090d94b@3.217.90.136:30303",
|
||||
"enode://c3c6b58cb12afee2b5ab92e418b86c542c3debebdc08f8c16e3e674b302517ac85118ee6519ab89855a45b0f2136d06a63194fa668d18d5757a1a0f0dfca18d9@3.218.32.223:30303",
|
||||
"enode://58fea462352fa09ae22893a849ca6a6600a1a24ffacd25fe7f380ec442163edd0ce5b5884ab63451adf6b1df9b651ad6b5ffcaa74fe1e2346aabda3419686e52@52.206.124.28:30303",
|
||||
"enode://496cdd8b49f17cbe3000ef3d0cad2ff92aa321a04e791af562fb6f66dfe634a5eb28fb80148d58d5bf99e115a21f3d433f8ce54f9ae79a9e619e213bb6585d73@54.158.180.108:30303"
|
||||
]
|
||||
}
|
19
networks/pacific/config/config.toml
Normal file
19
networks/pacific/config/config.toml
Normal file
@ -0,0 +1,19 @@
|
||||
# Users config file in users.toml
|
||||
# This configuration file can be used for either Alice, Bob or Charlie
|
||||
|
||||
[parity]
|
||||
chain = "/home/parity/parity/config/chain.json"
|
||||
|
||||
[rpc]
|
||||
port = 8545
|
||||
interface = "0.0.0.0"
|
||||
cors = ["all"]
|
||||
hosts = ["all"]
|
||||
apis = ["web3", "eth", "pubsub", "net", "parity", "parity_pubsub", "parity_accounts", "traces", "rpc", "shh", "shh_pubsub"]
|
||||
|
||||
[network]
|
||||
port = 30303
|
||||
discovery = true
|
||||
|
||||
#[account]
|
||||
#password = ["/home/parity/parity/validator.pwd"]
|
22
networks/pacific/keys/account1.json
Executable file
22
networks/pacific/keys/account1.json
Executable file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"id": "50aa801a-8d66-1402-1fa4-d8987868c2ce",
|
||||
"version": 3,
|
||||
"crypto": {
|
||||
"cipher": "aes-128-ctr",
|
||||
"cipherparams": {
|
||||
"iv": "a874e6fe50a5bb088826c45560dc1b7e"
|
||||
},
|
||||
"ciphertext": "2383c6aa50c744b6558e77b5dcec6137f647c81f10f71f22a87321fd1306056c",
|
||||
"kdf": "pbkdf2",
|
||||
"kdfparams": {
|
||||
"c": 10240,
|
||||
"dklen": 32,
|
||||
"prf": "hmac-sha256",
|
||||
"salt": "eca6ccc9fbb0bdc3a516c7576808ba5031669e6878f3bb95624ddb46449e119c"
|
||||
},
|
||||
"mac": "14e9a33a45ae32f88a0bd5aac14521c1fcf14f56fd55c1a1c080b2f81ddb8d44"
|
||||
},
|
||||
"address": "068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0",
|
||||
"name": "",
|
||||
"meta": "{}"
|
||||
}
|
109
networks/secret-store/config/chain_pacific.json
Normal file
109
networks/secret-store/config/chain_pacific.json
Normal file
@ -0,0 +1,109 @@
|
||||
{
|
||||
"name": "pacific",
|
||||
"engine": {
|
||||
"authorityRound": {
|
||||
"params": {
|
||||
"stepDuration": "5",
|
||||
"validators": {
|
||||
"multi": {
|
||||
"0": {
|
||||
"list": [
|
||||
"0x58c0131d5a14b508a7d2cea1179cf8d384b7bf1a",
|
||||
"0x5676b8e60728efdc33a65fcdb8c6d0965d5b045a",
|
||||
"0xbe7ef68dcdbe6520a4ba380c59d1dadc012effff"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"params": {
|
||||
"maximumExtraDataSize": "0x20",
|
||||
"minGasLimit": "0x1388",
|
||||
"networkID": "0xCEA11",
|
||||
"gasLimitBoundDivisor": "0x400",
|
||||
"eip140Transition": "0",
|
||||
"eip145Transition": "0",
|
||||
"eip211Transition": "0",
|
||||
"eip214Transition": "0",
|
||||
"eip658Transition": "0",
|
||||
"eip1014Transition": "0",
|
||||
"eip1052Transition": "0",
|
||||
"eip1283Transition": "0",
|
||||
"kip4Transition": "0",
|
||||
"kip6Transition": "0",
|
||||
"wasmActivationTransition": "0"
|
||||
},
|
||||
"genesis": {
|
||||
"seal": {
|
||||
"authorityRound": {
|
||||
"step": "0x0",
|
||||
"signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
|
||||
}
|
||||
},
|
||||
"difficulty": "0x20000",
|
||||
"gasLimit": "0x165A0BC00"
|
||||
},
|
||||
"accounts": {
|
||||
"0x0000000000000000000000000000000000000001": {
|
||||
"balance": "1",
|
||||
"builtin": {
|
||||
"name": "ecrecover",
|
||||
"pricing": {
|
||||
"linear": {
|
||||
"base": 3000,
|
||||
"word": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"0x0000000000000000000000000000000000000002": {
|
||||
"balance": "1",
|
||||
"builtin": {
|
||||
"name": "sha256",
|
||||
"pricing": {
|
||||
"linear": {
|
||||
"base": 60,
|
||||
"word": 12
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"0x0000000000000000000000000000000000000003": {
|
||||
"balance": "1",
|
||||
"builtin": {
|
||||
"name": "ripemd160",
|
||||
"pricing": {
|
||||
"linear": {
|
||||
"base": 600,
|
||||
"word": 120
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"0x0000000000000000000000000000000000000004": {
|
||||
"balance": "1",
|
||||
"builtin": {
|
||||
"name": "identity",
|
||||
"pricing": {
|
||||
"linear": {
|
||||
"base": 15,
|
||||
"word": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"0x7eed82a01e7b3cc6c3bb472d34d875e6e2ead48b": {
|
||||
"balance": "1606938044258990275541962092341162602522202993782792835301376"
|
||||
}
|
||||
},
|
||||
"nodes": [
|
||||
"enode://e5e44f4a86a706b4d00a51078df37c0240872a4b1a0b1561266573e42c1e76e8b48a80b46526accba41677323288cc395babd39ac7483b98808c2387addcd949@3.217.145.228:30303",
|
||||
"enode://6a4aac724a2dc1076e26837723958549feef5202ce5dce35bfad443782a0a73da31a7dabe285d18d61c26dfb39e2dec55ed6d61e1af27b927741b5ff1ac399d7@3.217.208.52:30303",
|
||||
"enode://7797c7ba758004af448ea0a33a9815b4578a14c98a1feb1717a954d9927d9b59c194dc50c59a9b4053277a92e0e96917e3340a2bcdb5d09e49cf9907f090d94b@3.217.90.136:30303",
|
||||
"enode://c3c6b58cb12afee2b5ab92e418b86c542c3debebdc08f8c16e3e674b302517ac85118ee6519ab89855a45b0f2136d06a63194fa668d18d5757a1a0f0dfca18d9@3.218.32.223:30303",
|
||||
"enode://58fea462352fa09ae22893a849ca6a6600a1a24ffacd25fe7f380ec442163edd0ce5b5884ab63451adf6b1df9b651ad6b5ffcaa74fe1e2346aabda3419686e52@52.206.124.28:30303",
|
||||
"enode://496cdd8b49f17cbe3000ef3d0cad2ff92aa321a04e791af562fb6f66dfe634a5eb28fb80148d58d5bf99e115a21f3d433f8ce54f9ae79a9e619e213bb6585d73@54.158.180.108:30303"
|
||||
]
|
||||
}
|
3
pacific_acl_contract_addresses.txt
Normal file
3
pacific_acl_contract_addresses.txt
Normal file
@ -0,0 +1,3 @@
|
||||
Pacific
|
||||
Version=address
|
||||
latest=0x0000000000000000000000000000000000000000
|
@ -73,7 +73,8 @@ function get_acl_address {
|
||||
local version="${1:-latest}"
|
||||
line=$(grep "^${version}=" "${DIR}/${KEEPER_NETWORK_NAME}_acl_contract_addresses.txt")
|
||||
address="${line##*=}"
|
||||
[ -z "${address}" ] && echo "Cannot determine the ACL Contract Address for ${KEEPER_NETWORK_NAME} version ${version}. Exiting" && exit 1
|
||||
# [ -z "${address}" ] && echo "Cannot determine the ACL Contract Address for ${KEEPER_NETWORK_NAME} version ${version}. Exiting" && exit 1
|
||||
[ -z "${address}" ] && line=$(grep "^$latest=" "${DIR}/${KEEPER_NETWORK_NAME}_acl_contract_addresses.txt") && address="${line##*=}"
|
||||
echo "${address}"
|
||||
}
|
||||
|
||||
@ -257,6 +258,18 @@ while :; do
|
||||
printf $COLOR_Y'Starting with local Duero node...\n\n'$COLOR_RESET
|
||||
printf $COLOR_Y'Starting without Secret Store...\n\n'$COLOR_RESET
|
||||
;;
|
||||
# connects you to Pacific ocean network
|
||||
--local-pacific-node)
|
||||
export NODE_COMPOSE_FILE="${COMPOSE_DIR}/nodes/pacific_node.yml"
|
||||
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/keeper_contracts.yml/}"
|
||||
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/secret_store.yml/}"
|
||||
export KEEPER_MNEMONIC=''
|
||||
export KEEPER_NETWORK_NAME="pacific"
|
||||
export KEEPER_DEPLOY_CONTRACTS="false"
|
||||
export ACL_CONTRACT_ADDRESS="$(get_acl_address ${KEEPER_VERSION})"
|
||||
printf $COLOR_Y'Starting with local Pacific node...\n\n'$COLOR_RESET
|
||||
printf $COLOR_Y'Starting without Secret Store...\n\n'$COLOR_RESET
|
||||
;;
|
||||
# spins up spree local testnet
|
||||
--local-spree-node)
|
||||
export NODE_COMPOSE_FILE="${COMPOSE_DIR}/nodes/spree_node.yml"
|
||||
|
Loading…
Reference in New Issue
Block a user