-
Notifications
You must be signed in to change notification settings - Fork 1
/
consts.sh
95 lines (74 loc) · 2.6 KB
/
consts.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash
##---------------------------------------------------------##
##------------------------COMMON---------------------------##
##---------------------------------------------------------##
SCRIPTS_DIR=$PWD
CONTRACTS_DIR=$HOME/ibriz/ibc/IBC-Integration
CONTRACT_ADDRESSES_FOLDER=env
function log() {
echo "=============================================="
}
function separator() {
echo "----------------------------------------------"
}
##---------------------------------------------------------##
##------------------------Archway--------------------------##
##---------------------------------------------------------##
WASM=">>> COSMWASM: "
log
echo "$WASM: Archway Config"
ARCHWAY_WALLET=node1-account
ARCHWAY_NETWORK=localnet
ARCHWAY_NODE=https://rpc.constantine.archway.tech:443
CHAIN_ID=constantine-2
TOKEN=uconst
ARCHWAY_CONTRACT_ADDRESS=$CONTRACT_ADDRESSES_FOLDER/archway
case "$ARCHWAY_NETWORK" in
"localnet")
echo "Selected localnet..."
ARCHWAY_NODE=http://localhost:26657
CHAIN_ID=my-chain
TOKEN=validatortoken
;;
"docker")
echo "Selected docker image..."
ARCHWAY_NODE=http://localhost:26657
CHAIN_ID=localnet
TOKEN=stake
;;
"testnet")
echo "Selected constantine testnet"
ARCHWAY_NODE=https://rpc.constantine.archway.tech:443
CHAIN_ID=constantine-2
TOKEN=uconst
;;
esac
ARCHWAY_KEY_DIR=$HOME/.relayer/keys/$CHAIN_ID
IBC_WASM=$CONTRACTS_DIR/artifacts/cw_ibc_core.wasm
LIGHT_WASM=$CONTRACTS_DIR/artifacts/cw_icon_light_client.wasm
MOCK_WASM=$CONTRACTS_DIR/artifacts/cw_xcall.wasm
# all the contract addresses
WASM_IBC_CONTRACT=./env/archway/.ibcHandler
WASM_LIGHT_CLIENT_CONTRACT=./env/archway/.lightclient
WASM_MOCK_APP_CONTRACT=./env/archway/.mockapp
log
##---------------------------------------------------------##
##------------------------ ICON ---------------------------##
##---------------------------------------------------------##
ICON=">>> ICON : "
echo "$ICON Icon Config---"
echo "Selected gochain..."
ICON_CONTRACT_ADDRESS=$CONTRACT_ADDRESSES_FOLDER/icon
JAVA=contracts/javascore
LIB=build/libs
ICON_WALLET=$HOME/keystore/godWallet.json
IBC_ICON=$CONTRACTS_DIR/$JAVA/ibc/$LIB/ibc-0.1.0-optimized.jar
LIGHT_ICON=$CONTRACTS_DIR/$JAVA/lightclients/tendermint/$LIB/tendermint-0.1.0-optimized.jar
MOCK_ICON=$CONTRACTS_DIR/$JAVA/modules/mockapp/$LIB/mockapp-0.1.0-optimized.jar
# all the contract addresses
ICON_IBC_CONTRACT=./env/icon/.ibcHandler
ICON_LIGHT_CLIENT_CONTRACT=./env/icon/.lightclient
ICON_MOCK_APP_CONTRACT=./env/icon/.mockapp
export ICON_NODE=http://localhost:9082/api/v3/
export ICON_NODE_DEBUG=http://localhost:9082/api/v3d
log