2015-07-28 22:16:16 +00:00
package utils
import (
"math/big"
2018-07-20 21:31:26 +00:00
shardparams "github.com/prysmaticlabs/prysm/client/params"
2018-07-09 02:40:34 +00:00
"github.com/urfave/cli"
2018-01-13 22:31:28 +00:00
)
2015-07-28 22:16:16 +00:00
var (
2018-07-19 16:31:50 +00:00
// DepositFlag defines whether a node will withdraw ETH from the user's account.
2018-03-06 04:17:55 +00:00
DepositFlag = cli . BoolFlag {
Name : "deposit" ,
2018-07-27 00:29:28 +00:00
Usage : "To become a attester in a sharding node, " + new ( big . Int ) . Div ( shardparams . DefaultAttesterDeposit ( ) , new ( big . Int ) . Exp ( big . NewInt ( 10 ) , big . NewInt ( 18 ) , nil ) ) . String ( ) + " ETH will be deposited into SMC" ,
2018-02-25 10:04:38 +00:00
}
2018-07-26 01:57:19 +00:00
// ActorFlag defines the role of the sharding client. Either proposer, attester, or simulator.
2018-05-22 16:42:49 +00:00
ActorFlag = cli . StringFlag {
Name : "actor" ,
2018-07-26 01:57:19 +00:00
Usage : ` use the --actor attester or --actor proposer to start a attester or proposer service in the sharding node. If omitted, the sharding node registers an Observer service that simply observes the activity in the sharded network ` ,
2018-05-22 11:16:57 +00:00
}
2018-07-19 16:31:50 +00:00
// ShardIDFlag specifies which shard to listen to.
2018-06-11 15:41:59 +00:00
ShardIDFlag = cli . IntFlag {
2018-06-11 18:00:31 +00:00
Name : "shardid" ,
Usage : ` use the --shardid to determine which shard to start p2p server, listen for incoming transactions and perform proposer/observer duties ` ,
2018-06-11 15:41:59 +00:00
}
2018-08-01 22:08:44 +00:00
// BeaconRPCProviderFlag defines a beacon node RPC endpoint.
BeaconRPCProviderFlag = cli . StringFlag {
Name : "beacon-rpc-provider" ,
Usage : "Beacon node RPC provider endpoint" ,
Value : "http://localhost:4000/" ,
}
2015-07-28 22:16:16 +00:00
)