remove: remove training voucher, update deps

This commit is contained in:
Mohamed Sohail 2023-06-01 13:44:47 +08:00
parent 0b141252d2
commit f3d27afbbc
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D
3 changed files with 7 additions and 17 deletions

View File

@ -4,13 +4,13 @@ eth-erc20==0.7.3
eth-erc721==0.2.1
eth-erc712==0.0.1
ccw==0.0.6
eth-accounts-index==0.5.2
eth-accounts-index==0.5.3
eth-contract-registry==0.11.0
erc20-faucet==0.8.0
eth-address-index==0.7.3
eth-token-index==0.6.1
eth-faucet==0.3.4
eth-faucet==0.3.5
erc20-transfer-authorization==0.5.0
erc20-demurrage-token==0.5.2
erc20-demurrage-token==0.5.3
eth-interface==0.1.1
#cic-contracts==0.2.0

16
boot.sh
View File

@ -3,12 +3,6 @@ CHAIN_SPEC=${CHAIN_SPEC:-evm:celo:1337:celo}
KEY_FILE=${KEY_FILE:-keyfile.json}
RPC_DIALECT=${RPC_DIALECT:-chainlib_eth_celo}
TOKEN_NAME="TrainingVoucher"
TOKEN_SYMBOL=TRN
TOKEN_DECIMALS=6
TOKEN_DEMURRAGE=20000
TOKEN_PERIOD=43200
TOKEN_SINK_ADDRESS=${TOKEN_SINK_ADDRESS:-Eb3907eCad74a0013c259D5874AE7f22DcBcC95C}
# 30 * 20000000010 * 100000
GAS_FAUCET_AMOUNT=${GAS_FAUCET_AMOUNT:-60000000030000000}
# 5 * 20000000010 * 100000
@ -31,9 +25,6 @@ writer=$(eth-checksum $writer)
>&2 echo writer: $writer
>&2 echo datadir: $t
# publish a voucher token
token=$(erc20-demurrage-token-publish --name $TOKEN_NAME --symbol $TOKEN_SYMBOL --decimals $TOKEN_DECIMALS --demurrage-level $TOKEN_DEMURRAGE --redistribution-period $TOKEN_PERIOD --sink-address $TOKEN_SINK_ADDRESS -y $KEY_FILE --fee-limit 6000000 -s -w $log | tee $t/token.txt)
# account registry
accounts=$(eth-accounts-index-publish -y $KEY_FILE --fee-limit 2000000 -s -w $log | tee $t/accounts.txt)
@ -64,20 +55,19 @@ if [ ! -z "$GAS_FAUCET_PERIOD" ]; then
fi
eth-encode -y $KEY_FILE --mode tx --signature addWriter a:$writer -e $(eth-checksum $accounts) --fee-limit 100000 -s -w $log
eth-encode -y $KEY_FILE --mode tx --signature addWriter a:$writer -e $(eth-checksum $token) --fee-limit 100000 -s -w $log
eth-encode -y $KEY_FILE --mode tx --signature addWriter a:$writer -e $(eth-checksum $index) --fee-limit 100000 -s -w $log
# publish custodial registration proxy
proxy=$(ge-custodial-registration-proxy-publish -y $KEY_FILE --fee-limit 2000000 -s -w $log --eth-faucet-address $gasfaucet --account-index-address $accounts --training-voucher-address $token --system-account-address $publisher | tee $t/proxy.txt)
proxy=$(ge-custodial-registration-proxy-publish -y $KEY_FILE --fee-limit 2000000 -s -w $log --eth-faucet-address $gasfaucet --account-index-address $accounts --system-account-address $publisher | tee $t/proxy.txt)
# publish contract registry
contracts=$(eth-contract-registry-publish -y $KEY_FILE --fee-limit 2000000 -s -w $log --identifier TrainingVoucher --identifier AccountIndex --identifier TokenIndex --identifier GasFaucet --identifier CustodialRegistrationProxy | tee $t/contracts.txt)
contracts=$(eth-contract-registry-publish -y $KEY_FILE --fee-limit 2000000 -s -w $log --identifier PeriodBackend --identifier AccountIndex --identifier TokenIndex --identifier GasFaucet --identifier CustodialRegistrationProxy | tee $t/contracts.txt)
contracts=$(eth-checksum $contracts)
eth-contract-registry-set -y $KEY_FILE --fee-limit 100000 -s -w $log -e $contracts -a $(eth-checksum $token) TrainingVoucher
eth-contract-registry-set -y $KEY_FILE --fee-limit 100000 -s -w $log -e $contracts -a $(eth-checksum $accounts) AccountIndex
eth-contract-registry-set -y $KEY_FILE --fee-limit 100000 -s -w $log -e $contracts -a $(eth-checksum $index) TokenIndex
eth-contract-registry-set -y $KEY_FILE --fee-limit 100000 -s -w $log -e $contracts -a $(eth-checksum $gasfaucet) GasFaucet
eth-contract-registry-set -y $KEY_FILE --fee-limit 100000 -s -w $log -e $contracts -a $(eth-checksum $period) PeriodBackend
eth-contract-registry-set -y $KEY_FILE --fee-limit 100000 -s -w $log -e $contracts -a $(eth-checksum $proxy) CustodialRegistrationProxy
set -e

View File

@ -1 +1 @@
custodial-registration-proxy==0.1.0
custodial-registration-proxy==0.3.1