-
Notifications
You must be signed in to change notification settings - Fork 2
/
deploy.sh
executable file
·43 lines (33 loc) · 1.93 KB
/
deploy.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
#! /usr/bin/env bash
_FROM="0x77De151AA7e619CD887462fC41365F628CC4B203"
_NETWORK="ropsten"
#local
_MASTER_MINTER="0xE8D48B40B7E6Eb263AD5AAd94E948fAe94A35Ad6"
_BLACK_LISTER="0xE8D48B40B7E6Eb263AD5AAd94E948fAe94A35Ad6"
_PAUSER="0xE8D48B40B7E6Eb263AD5AAd94E948fAe94A35Ad6"
_OWNER="0xE8D48B40B7E6Eb263AD5AAd94E948fAe94A35Ad6"
_ADMIN="0xE8D48B40B7E6Eb263AD5AAd94E948fAe94A35Ad6"
#rinkeby
#_MASTER_MINTER="0x96ec83a953533463ae2f3d2d80c4d10a573e044b"
#_BLACK_LISTER="0x96ec83a953533463ae2f3d2d80c4d10a573e044b"
#_PAUSER="0x96ec83a953533463ae2f3d2d80c4d10a573e044b"
#_OWNER="0x96ec83a953533463ae2f3d2d80c4d10a573e044b"
#_ADMIN="0x96ec83a953533463ae2f3d2d80c4d10a573e044b"
#ropsten
#_MASTER_MINTER="0x8d22df2734f37f4046ab5a9cfea6bc70e509a249"
#_BLACK_LISTER="0x8d22df2734f37f4046ab5a9cfea6bc70e509a249"
#_PAUSER="0x8d22df2734f37f4046ab5a9cfea6bc70e509a249"
#_OWNER="0x8d22df2734f37f4046ab5a9cfea6bc70e509a249"
#_ADMIN="0x8d22df2734f37f4046ab5a9cfea6bc70e509a249"
#_ARGS="\"cCLP Fiat Token\",\"cCLP\",18,$_MASTER_MINTER,$_BLACK_LISTER,$_PAUSER,$_OWNER"
#echo "$_ARGS"
echo "$_NETWORK"
#zos compile
#zos create FiatToken --network $_NETWORK --init initialize --args "$_ARGS" --from $_FROM -v
#zos set-admin FiatToken $_ADMIN --network $_NETWORK --from $_FROM
#zos push --network $_NETWORK --from $_FROM -v
#echo "zos set-admin FiatToken "$_ADMIN" --from "$_FROM""
export blacklistable=$(openzeppelin create Blacklistable --network $_NETWORK --from $_FROM --init initialize --args "$_BLACK_LISTER,$_OWNER")
export masterMinter=$(openzeppelin create MasterMinter --network $_NETWORK --from $_FROM --init initialize --args "$_MASTER_MINTER,$_OWNER")
export masterPauser=$(openzeppelin create MasterPauser --network $_NETWORK --from $_FROM --init initialize --args "$_PAUSER,$_OWNER")
export fiatToken=$(openzeppelin create FiatToken --network $_NETWORK --from $_FROM --init initialize --args "\"cCLP Fiat Token\",\"cCLP\",18,$masterMinter,$blacklistable,$masterPauser,$_OWNER")