Skip to content

Commit

Permalink
fix grpc endpoint issue and update chain configration
Browse files Browse the repository at this point in the history
  • Loading branch information
soring323 committed Aug 18, 2023
1 parent 3c8e336 commit 5c356a3
Show file tree
Hide file tree
Showing 41 changed files with 43 additions and 6,266 deletions.
30 changes: 15 additions & 15 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,46 @@ build:
accounts:
- name: alice
coins:
- 10000000000000000000000000000000aside
- 10000000000000000000000000000000ausdc
- 10000000000000000000000000000000uside
- 10000000000000000000000000000000uusdc

- name: bob
mnemonic: actress letter whip youth flip sort announce chief traffic side destroy seek parade warrior awake scan panther nominee harsh spawn differ enroll glue become
coins:
- 10000000000000000000000000000000aside
- 10000000000000000000000000000000ausdc
- 10000000000000000000000000000000uside
- 10000000000000000000000000000000uusdc

faucet:
name: bob
coins:
- 10aside
host: 0.0.0.0:4500
# faucet:
# name: bob
# coins:
# - 10uside
# host: 0.0.0.0:4500
genesis:
app_state:
crisis:
constant_fee:
denom: aside
denom: uside
evm:
params:
evm_denom: aside
evm_denom: uside
gov:
deposit_params:
min_deposit:
- amount: "10000000"
denom: aside
denom: uside
mint:
params:
mint_denom: aside
mint_denom: uside
staking:
params:
bond_denom: aside
bond_denom: uside
chain_id: side_1818-1
consensus_params:
block:
max_gas: "100000000"
validators:
- name: alice
bonded: 10000000000000000000000aside
bonded: 10000000000000000000000uside
home: $HOME/.sidechain
client:
openapi:
Expand Down
4 changes: 2 additions & 2 deletions development/deployment/Dockerfile-node0
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ RUN chmod +x /app/cosmovisor/genesis/bin/sidechaind
RUN chown -R nobody:nogroup /app
USER nobody
EXPOSE 26657
EXPOSE 9091
EXPOSE 9090
EXPOSE 1317
CMD ./cosmovisor/cosmovisor start --api.enable --api.swagger --rpc.laddr "tcp://0.0.0.0:26657" --api.address "tcp://0.0.0.0:1317" --home /app
CMD ./cosmovisor/cosmovisor start --api.enable --grpc.enable --api.swagger --rpc.laddr "tcp://0.0.0.0:26657" --api.address "tcp://0.0.0.0:1317" --grpc.address "0.0.0.0:9090" --home /app
25 changes: 1 addition & 24 deletions development/deployment/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,8 @@ services:
container_name: side_testnet_node0
ports:
- "26657:26657"
- "9091:9091"
- "9090:9090"
- "1317:1317"
node1:
build:
context: ../..
dockerfile: development/deployment/Dockerfile-node1
container_name: side_testnet_node1

node2:
build:
context: ../..
dockerfile: development/deployment/Dockerfile-node2
container_name: side_testnet_node2

node3:
build:
context: ../..
dockerfile: development/deployment/Dockerfile-node3
container_name: side_testnet_node3

node4:
build:
context: ../..
dockerfile: development/deployment/Dockerfile-node4
container_name: side_testnet_node4

networks:
default:
Expand Down
2 changes: 1 addition & 1 deletion development/testnet/gentx/node0.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"node0","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"side1003jhq6l89qyaxgsjg56xpe43jdlz45lg95h32","validator_address":"sidevaloper1003jhq6l89qyaxgsjg56xpe43jdlz45lsmstjw","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"Gr169UH/1xrKrUOH60IvZ/46ZEGAuYZhlXVTX2qCKD0="},"value":{"denom":"aside","amount":"7000000000000"}}],"memo":"6a4fa5865eda7c4f3e9d257190f4635008a3c8d6@side_testnet_node0:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A5EgokuJz4L0SorvZbOT7HgYpBi2Z6poQbgZiZ3x6evK"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""},"tip":null},"signatures":["5KTcBN4foK9b+JWjohhA+mf5CP6XvOUqcTwbc13X8sB6q5Dj5S8ckQA5ubr/iZgMIvtkSLNw+jt0TVzJ1QSR4g=="]}
{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"node0","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"side1rmad8n79ct8vzg4vk6zu7j8tu95x5lnhrtt9gn","validator_address":"sidevaloper1rmad8n79ct8vzg4vk6zu7j8tu95x5lnhm40eth","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"C9Vw0Aod/SwvfjR46G1MxUjwbdJYp6R56/tIfPBRDCI="},"value":{"denom":"uside","amount":"7000000000000"}}],"memo":"ad8f2a2815751d10ea4a621532aac6c78998f286@side_testnet_node0:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"Al1brB1S5HAbH4nh54XxyqmTM8pUcaH66EE7EaHa4si/"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""},"tip":null},"signatures":["bkfJxomGsXXN7f9lCHBrb63ehs/SRbYec/4D/PVAJU8s+yMSZEQSV6Dt/G0oU9IjvMMm68w2ZLh3aZGXGlQe/Q=="]}
1 change: 0 additions & 1 deletion development/testnet/gentx/node1.json

This file was deleted.

1 change: 0 additions & 1 deletion development/testnet/gentx/node2.json

This file was deleted.

1 change: 0 additions & 1 deletion development/testnet/gentx/node3.json

This file was deleted.

1 change: 0 additions & 1 deletion development/testnet/gentx/node4.json

This file was deleted.

2 changes: 1 addition & 1 deletion development/testnet/node0/config/client.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###############################################################################

# The network chain ID
chain-id = "side_1818-1"
chain-id = "side-testnet-1"
# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory)
keyring-backend = "os"
# CLI output format (text|json)
Expand Down
2 changes: 1 addition & 1 deletion development/testnet/node0/config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ external_address = ""
seeds = ""

# Comma separated list of nodes to keep persistent connections to
persistent_peers = "0c67aeefb476568b130b07d375b8c13d6337510f@side_testnet_node2:26656,1089b01253dfb66c953d11a16465ffca62182fee@side_testnet_node3:26656,39d7b1765dcf8bc51f21ed286c948d7726f01208@side_testnet_node1:26656,73d6e6342d87ebbfe7c84ce835918ad57c35313a@side_testnet_node4:26656"
persistent_peers = ""

# UPNP port forwarding
upnp = false
Expand Down
Loading

0 comments on commit 5c356a3

Please sign in to comment.