eos icon indicating copy to clipboard operation
eos copied to clipboard

Add support for name bidding in cleos

Open zorba80 opened this issue 8 years ago • 2 comments

zorba80 avatar May 22 '18 15:05 zorba80

hi, I've created a pull request https://github.com/EOSIO/eos/pull/3792. Would anyone help review this?

taokayan avatar Jun 04 '18 07:06 taokayan

brief of feature:

in EOS all names with "." are reserved to the user with the highest bid. User can use "bidname" to make or update a bid for any name suffix(short name after ".")

command: cleos system bidname: make or update a bid for an account name suffix

Usage: ./cleos system bidname [OPTIONS] bidder newname bid

Positionals:
  bidder TEXT                 The bidding account (required)
  newname TEXT                The bidding name (required)
  bid TEXT                    The amount of EOS to bid (required)

Options:
  -h,--help                   Print this help message and exit
  -x,--expiration             set the time in seconds before a transaction expires, defaults to 30s
  -f,--force-unique           force the transaction to be unique. this will consume extra bandwidth and remove any protections against accidently issuing the same transaction multiple times
  -s,--skip-sign              Specify if unlocked wallet keys should be used to sign transaction
  -j,--json                   print result as json
  -d,--dont-broadcast         don't broadcast transaction to the network (just print to stdout)
  -r,--ref-block TEXT         set the reference block num or block id used for TAPOS (Transaction as Proof-of-Stake)
  -p,--permission TEXT ...    An account and permission level to authorize, as in 'account@permission'
  --max-cpu-usage-ms UINT     set an upper limit on the milliseconds of cpu usage budget, for the execution of the transaction (defaults to 0 which means no limit)
  --max-net-usage UINT        set an upper limit on the net usage budget, in bytes, for the transaction (defaults to 0 which means no limit)

for example, to bid the name "com" with 10.0000 EOS

./cleos system bidname a123 com "10.0000 EOS" -p a123

command: cleos system bidnameinfo: to check the current highest bid for a short name

Usage: ./cleos system bidname [OPTIONS] bidder newname bid

Positionals:
  bidder TEXT                 The bidding account (required)
  newname TEXT                The bidding name (required)
  bid TEXT                    The amount of EOS to bid (required)

Options:
  -h,--help                   Print this help message and exit
  -x,--expiration             set the time in seconds before a transaction expires, defaults to 30s
  -f,--force-unique           force the transaction to be unique. this will consume extra bandwidth and remove any protections against accidently issuing the same transaction multiple times
  -s,--skip-sign              Specify if unlocked wallet keys should be used to sign transaction
  -j,--json                   print result as json
  -d,--dont-broadcast         don't broadcast transaction to the network (just print to stdout)
  -r,--ref-block TEXT         set the reference block num or block id used for TAPOS (Transaction as Proof-of-Stake)
  -p,--permission TEXT ...    An account and permission level to authorize, as in 'account@permission'
  --max-cpu-usage-ms UINT     set an upper limit on the milliseconds of cpu usage budget, for the execution of the transaction (defaults to 0 which means no limit)
  --max-net-usage UINT        set an upper limit on the net usage budget, in bytes, for the transaction (defaults to 0 which means no limit)

for example: to check the current highest bid of "com"

./cleos system bidnameinfo com
bidname:                               com
highest bidder:                       a123
highest bid:                        100000
last bid time:     2018-07-16T03:48:23.000

taokayan avatar Jul 16 '18 04:07 taokayan