Rename env var for token symbol in contract migration
This commit is contained in:
parent
ea4c68f311
commit
b0638f2262
@ -1,3 +1,3 @@
|
|||||||
eth-contract-registry==0.5.5a3
|
#eth-contract-registry==0.5.5a3
|
||||||
erc20-demurrage-token==0.0.1b4
|
#erc20-demurrage-token==0.0.1b4
|
||||||
eth-address-index==0.1.1a12
|
#eth-address-index==0.1.1a12
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
cic-base[full]==0.1.2b18
|
cic_base[full]==0.1.3a3+build.4aa03607
|
||||||
sarafu-faucet~=0.0.3a4
|
sarafu-faucet~=0.0.4a1
|
||||||
cic-eth~=0.11.0b17
|
cic-eth~=0.11.1a2
|
||||||
erc20-demurrage-token==0.0.1b4
|
erc20-demurrage-token==0.0.2a1
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -a
|
set -a
|
||||||
|
echo fuck you $CIC_DEFAULT_TOKEN_SYMBOL
|
||||||
|
|
||||||
|
CIC_DEFAULT_TOKEN_SYMBOL=${CIC_DEFAULT_TOKEN_SYMBOL:-GFT}
|
||||||
|
echo fuck you $CIC_DEFAULT_TOKEN_SYMBOL
|
||||||
|
TOKEN_SYMBOL=${CIC_DEFAULT_TOKEN_SYMBOL}
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
external token settings:
|
external token settings:
|
||||||
token_name: $TOKEN_NAME
|
|
||||||
token_symbol: $TOKEN_SYMBOL
|
token_symbol: $TOKEN_SYMBOL
|
||||||
|
token_name: $TOKEN_NAME
|
||||||
token_decimals: $TOKEN_DECIMALS
|
token_decimals: $TOKEN_DECIMALS
|
||||||
token_demurrage: $TOKEN_DEMURRAGE_LEVEL
|
token_demurrage: $TOKEN_DEMURRAGE_LEVEL
|
||||||
token_redistribution_period: $TOKEN_REDISTRIBUTION_PERIOD
|
token_redistribution_period: $TOKEN_REDISTRIBUTION_PERIOD
|
||||||
@ -75,6 +79,9 @@ if [[ -n "${ETH_PROVIDER}" ]]; then
|
|||||||
DEV_RESERVE_ADDRESS=`giftable-token-deploy $gas_price_arg -p $ETH_PROVIDER -y $DEV_ETH_KEYSTORE_FILE -i $CIC_CHAIN_SPEC -vv -ww --name "Giftable Token" --symbol "GFT" --decimals 6 -vv`
|
DEV_RESERVE_ADDRESS=`giftable-token-deploy $gas_price_arg -p $ETH_PROVIDER -y $DEV_ETH_KEYSTORE_FILE -i $CIC_CHAIN_SPEC -vv -ww --name "Giftable Token" --symbol "GFT" --decimals 6 -vv`
|
||||||
else
|
else
|
||||||
>&2 echo "deploying 'redistributed demurrage token'"
|
>&2 echo "deploying 'redistributed demurrage token'"
|
||||||
|
if [ -z $TOKEN_SINK_ADDRESS && ! -z $TOKEN_REDISTRIBUTION_PERIOD ]; then
|
||||||
|
>&2 echo -e "\033[;93mtoken sink address not set, so redistribution will be BURNED\033[;39m"
|
||||||
|
fi
|
||||||
DEV_RESERVE_ADDRESS=`erc20-demurrage-token-deploy $gas_price_arg -p $ETH_PROVIDER -y $DEV_ETH_KEYSTORE_FILE -i $CIC_CHAIN_SPEC -vv -ww`
|
DEV_RESERVE_ADDRESS=`erc20-demurrage-token-deploy $gas_price_arg -p $ETH_PROVIDER -y $DEV_ETH_KEYSTORE_FILE -i $CIC_CHAIN_SPEC -vv -ww`
|
||||||
fi
|
fi
|
||||||
giftable-token-gift $gas_price_arg -p $ETH_PROVIDER -y $DEV_ETH_KEYSTORE_FILE -i $CIC_CHAIN_SPEC -vv -w -a $DEV_RESERVE_ADDRESS $DEV_RESERVE_AMOUNT
|
giftable-token-gift $gas_price_arg -p $ETH_PROVIDER -y $DEV_ETH_KEYSTORE_FILE -i $CIC_CHAIN_SPEC -vv -w -a $DEV_RESERVE_ADDRESS $DEV_RESERVE_AMOUNT
|
||||||
|
@ -14,6 +14,7 @@ DEV_DATABASE_NAME_CIC_ETH=${DEV_DATABASE_NAME_CIC_ETH:-"cic-eth"}
|
|||||||
CIC_DATA_DIR=${CIC_DATA_DIR:-/tmp/cic}
|
CIC_DATA_DIR=${CIC_DATA_DIR:-/tmp/cic}
|
||||||
ETH_PASSPHRASE=''
|
ETH_PASSPHRASE=''
|
||||||
CIC_DEFAULT_TOKEN_SYMBOL=${CIC_DEFAULT_TOKEN_SYMBOL:-GFT}
|
CIC_DEFAULT_TOKEN_SYMBOL=${CIC_DEFAULT_TOKEN_SYMBOL:-GFT}
|
||||||
|
TOKEN_SYMBOL=$CIC_DEFAULT_TOKEN_SYMBOL
|
||||||
if [[ $CIC_DEFAULT_TOKEN_SYMBOL != 'GFT' && $CIC_DEFAULT_TOKEN_SYMBOL != 'SRF' ]]; then
|
if [[ $CIC_DEFAULT_TOKEN_SYMBOL != 'GFT' && $CIC_DEFAULT_TOKEN_SYMBOL != 'SRF' ]]; then
|
||||||
>&2 echo CIC_DEFAULT_TOKEN_SYMBOL must be one of [GFT,SRF], but was $CIC_DEFAULT_TOKEN_SYMBOL
|
>&2 echo CIC_DEFAULT_TOKEN_SYMBOL must be one of [GFT,SRF], but was $CIC_DEFAULT_TOKEN_SYMBOL
|
||||||
exit 1
|
exit 1
|
||||||
@ -98,8 +99,8 @@ echo DEV_ETH_SARAFU_TOKEN_ADDRESS=$DEV_ETH_RESERVE_ADDRESS >> $env_out_file
|
|||||||
export DEV_ETH_SARAFU_TOKEN_ADDRESS=$DEV_ETH_RESERVE_ADDRESS
|
export DEV_ETH_SARAFU_TOKEN_ADDRESS=$DEV_ETH_RESERVE_ADDRESS
|
||||||
|
|
||||||
# Transfer tokens to gifter address
|
# Transfer tokens to gifter address
|
||||||
>&2 echo "transfer sarafu tokens to token gifter address"
|
>&2 echo "transfer tokens to token gifter address"
|
||||||
>&2 erc20-transfer -y $keystore_file -i $CIC_CHAIN_SPEC -p $ETH_PROVIDER --token-address $DEV_RESERVE_ADDRESS -w $debug $DEV_ETH_ACCOUNT_SARAFU_GIFTER ${token_amount:0:-1}
|
>&2 erc20-transfer -y $keystore_file -i $CIC_CHAIN_SPEC -p $ETH_PROVIDER --gas-limit 100000 --token-address $DEV_RESERVE_ADDRESS -w $debug $DEV_ETH_ACCOUNT_SARAFU_GIFTER ${token_amount:0:-1}
|
||||||
|
|
||||||
#echo -n 0 > $init_level_file
|
#echo -n 0 > $init_level_file
|
||||||
|
|
||||||
|
@ -9,13 +9,18 @@ fi
|
|||||||
t=$(mktemp)
|
t=$(mktemp)
|
||||||
>&2 echo using tmp $t
|
>&2 echo using tmp $t
|
||||||
|
|
||||||
repos=(../../cic-cache ../../cic-eth ../../cic-ussd ../../data-seeding ../../cic-notify)
|
repos=(../../cic-cache ../../cic-eth ../../cic-ussd ../../data-seeding ../../cic-notify ../../contract-migration)
|
||||||
|
|
||||||
for r in ${repos[@]}; do
|
for r in ${repos[@]}; do
|
||||||
f="$r/requirements.txt"
|
f="$r/requirements.txt"
|
||||||
>&2 echo updating $f
|
>&2 echo updating $f
|
||||||
|
pyreq-update $f base_requirement.txt > $t
|
||||||
|
cp $t $f
|
||||||
|
|
||||||
f="$r/test_requirements.txt"
|
f="$r/test_requirements.txt"
|
||||||
|
if [ -f $f ]; then
|
||||||
>&2 echo updating $f
|
>&2 echo updating $f
|
||||||
pyreq-update $f base_requirement.txt > $t
|
pyreq-update $f base_requirement.txt > $t
|
||||||
cp $t $f
|
cp $t $f
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
@ -102,15 +102,15 @@ services:
|
|||||||
DEV_PIP_EXTRA_INDEX_URL: ${DEV_PIP_EXTRA_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
DEV_PIP_EXTRA_INDEX_URL: ${DEV_PIP_EXTRA_INDEX_URL:-https://pip.grassrootseconomics.net:8433}
|
||||||
RUN_MASK: ${RUN_MASK:-0} # bit flags; 1: contract migrations 2: seed data
|
RUN_MASK: ${RUN_MASK:-0} # bit flags; 1: contract migrations 2: seed data
|
||||||
DEV_FAUCET_AMOUNT: ${DEV_FAUCET_AMOUNT:-0}
|
DEV_FAUCET_AMOUNT: ${DEV_FAUCET_AMOUNT:-0}
|
||||||
#CIC_DEFAULT_TOKEN_SYMBOL: ${CIC_DEFAULT_TOKEN_SYMBOL:-GFT}
|
|
||||||
#DEV_SARAFU_DEMURRAGE_LEVEL: ${DEV_SARAFU_DEMURRAGE_LEVEL:-196454828847045000000000000000000}
|
#DEV_SARAFU_DEMURRAGE_LEVEL: ${DEV_SARAFU_DEMURRAGE_LEVEL:-196454828847045000000000000000000}
|
||||||
DEV_ETH_GAS_PRICE: ${DEV_ETH_GAS_PRICE:-1}
|
DEV_ETH_GAS_PRICE: ${DEV_ETH_GAS_PRICE:-1}
|
||||||
|
CIC_DEFAULT_TOKEN_SYMBOL: ${CIC_DEFAULT_TOKEN_SYMBOL:-GFT}
|
||||||
TOKEN_NAME: $TOKEN_NAME
|
TOKEN_NAME: $TOKEN_NAME
|
||||||
TOKEN_SYMBOL: $TOKEN_SYMBOL
|
|
||||||
TOKEN_DECIMALS: $TOKEN_DECIMALS
|
TOKEN_DECIMALS: $TOKEN_DECIMALS
|
||||||
TOKEN_REDISTRIBUTION_PERIOD: $TOKEN_REDISTRIBUTION_PERIOD
|
TOKEN_REDISTRIBUTION_PERIOD: $TOKEN_REDISTRIBUTION_PERIOD
|
||||||
TOKEN_SUPPLY_LIMIT: $TOKEN_SUPPLY_LIMIT
|
TOKEN_SUPPLY_LIMIT: $TOKEN_SUPPLY_LIMIT
|
||||||
TOKEN_DEMURRAGE_LEVEL: ${TOKEN_DEMURRAGE_LEVEL:-196454828847045000000000000000000}
|
TOKEN_DEMURRAGE_LEVEL: ${TOKEN_DEMURRAGE_LEVEL:-196454828847045000000000000000000}
|
||||||
|
TOKEN_SINK_ADDRESS: $TOKEN_SINK_ADDRESS
|
||||||
#CONFINI_DIR: ${CONFINI_DIR:-/tmp/cic/config}
|
#CONFINI_DIR: ${CONFINI_DIR:-/tmp/cic/config}
|
||||||
command: ["./run_job.sh"]
|
command: ["./run_job.sh"]
|
||||||
#command: ["./reset.sh"]
|
#command: ["./reset.sh"]
|
||||||
|
Loading…
Reference in New Issue
Block a user