YOYOW 测试网抢先测试的具体操作

在此前的YOYOW经济白皮书发布中,YOYOW团队详细介绍了YOYOW主网2.0的规划细则及功能参数设置。为实现主网2.0正式网的顺利及时上线,此后YOYOW团队率先发布测试网。

目前,YOYOW的测试网已经发布,大家比较关心的是这次大的更新带来的内容激励相关问题。用户如何通过发文章和评分来实现获得YOYO奖励呢?




下面由小编给大家详细介绍一下如何在命令行钱包里进行具体操作:


### 准备工作


下载最新版的YOYOW 命令行客户端


```

wget https://test-1255746684.cos.ap

shanghai.myqcloud.com/yoyow_programs.tar.gz

```

解压:

```

tar zxvf yoyow_programs.tar.gz

```

启动:

```

cd yoyow_programs/

./yoyow_client -s ws://47.52.155.181:10011 --chain-id=70f798eec64e1aea86efa8be3466480a1db1f97215a0de0c1a7ab0e1f3fd09fb

```

设置钱包密码

```

set_password 123

```

解锁钱包

```

unlock 123

```

在网页钱包注册测试网的账户,网页钱包地址:<http://demo.yoyow.org:8000>,可以查看[注册教程](https://steemit.com/cn/@peterchen145/yoyow-online-wallet-sign-up-tutorial),注册登录。(注:旧的测试网已被重置,之前的测试网账号已失效,需要重新注册新的账户)


导入 Active Key,可以在网页钱包:“设置”-->“账号”中,查看Active Key的私钥,如果想了解更多可以查看[YOYOW的私钥教程]

(https://steemit.com/cn/@peterchen145/yoyow-keys-tutorial-yoyow)。

```

import_key 

test9 5JKsA3Lnc7YmyRQ53DgFKBVwKmyd3mtUKbgYxQzk8Dd5p7Nfuh9

```

注意将 “test9”替换为你的账号如: "235145448"

```

Please use the set_password method to initialize a new wallet before continuing

2133174ms th_a       main.cpp:239                  main                 ] Listening for incoming HTTP RPC requests on 0.0.0.0:8099

new >>> set_password 123

set_password 123

null

locked >>> unlock 123

unlock 123

null

unlocked >>>

 import_key


test9 5JKsA3Lnc7YmyRQ53DgFKBVwKmyd3mtUKbgYxQzk8Dd5p7Nfuh9

import_key 

test9 5JKsA3Lnc7YmyRQ53DgFKBVwKmyd3mtUKbgYxQzk8Dd5p7Nfuh9

2578831ms th_a       

wallet.cpp:797                

save_wallet_file     ] saving wallet to file wallet.json

trueunlocked >>>

```

以上不清楚的小伙伴可以参考[链接]

(

https://steemit.com/cn/@peterchen145/yoyow-online-wallet-sign-up-tutorial)


### 创建平台


新版YOYOW设定中,只有平台才有发文权限(用户可以授权给平台发文),简单起见,我们注册个平台开始测试发文吧。


`create_platform test9 "myPlatform" 10000 YOYO "www.example.com" "{}" true true`

```

create_platform test9 "myPlatform" 10000 YOYO "www.example.com" "{}" true true

{

  "ref_block_num": 13758,

  "ref_block_prefix": 27039386,

  "expiration": "2019-04-11T10:48:30",

  "operations": [[

      20,{

        "fee": {

          "total": {

            "amount": 100002928,

            "asset_id": 0

          }

        },

        "account": 32945,

        "pledge": {

          "amount": 1000000000,

          "asset_id": 0

        },

        "name": "myPlatform",

        "url": "www.example.com",

        "extra_data": "{}"

      }

    ]

  ],

  "signatures": [

"1f7869933c9d53cec80db3535e7d7603cfc1c71853c17817ab57468f0fc5d14e1c0be2ed638e0aec28b376c865420465c270771bde1f7c22a0fef8d22ff0a486a6"

  ]

}


unlocked >>> get_platform test9

get_platform test9

{

  "id": "1.6.7",

  "owner": 32945,

  "name": "myPlatform",

  "sequence": 1,

  "is_valid": true,

  "total_votes": 0,

  "url": "www.example.com",

  "pledge": 1000000000,

  "pledge_last_update": "2019-04-11T10:46:33",

  "average_pledge": 0,

  "average_pledge_last_update": "2019-04-11T10:46:33",

  "average_pledge_next_update_block": 16267887,

  "last_advertising_sequence": 0,

  "last_license_sequence": 0,

  "vote_profits": [],

  "period_profits": [],

  "extra_data": "{}",

  "create_time": "2019-04-11T10:46:33",

  "last_update_time": "1970-01-01T00:00:00"

}

```

如上所示,我们平台已经创建成功且可以查阅其信息。


新版YOYOW设定,平台需要指定一个License 作为在平台发文的版权声明

```

unlocked >>> create_license test9 1 "this is license_hash" "this_is_license_title" "this_is_license_contents" "this_is_extra_infos" true true

create_license test9 1 "this is license_hash" "this_is_license_title" "this_is_license_contents" "this_is_extra_infos" true true

{

  "ref_block_num": 13906,

  "ref_block_prefix": 1862096867,

  "expiration": "2019-04-11T10:55:54",

  "operations": [[

      41,{

        "fee": {

          "total": {

            "amount": 165429,

            "asset_id": 0

          },

          "options": {

            "from_csaf": {

              "amount": 165429,

              "asset_id": 0

            }

          }

        },

        "license_lid": 1,

        "platform": 32945,

        "type": 1,

        "hash_value": "this is license_hash",

        "extra_data": "this_is_extra_infos",

        "title": "this_is_license_title",

        "body": "this_is_license_contents"

      }

    ]

  ],

  "signatures": [

    "204833b35e4310b627e2425b51c716429f8847fa18d00dc01ef09b00d2a89407d11ede0d19961e196f500423892bc02fb357f7e45454c81b678627f8e830a310ba"

  ]

}

```

注意: 返回值里有一个 license_lid ,需要记录备用。



### 发布文章

按照下述命令创建一篇文章


```

create_post test9 test9 "this_is_post_hash" "post_title" "post_body" "post_extra_datas" "" "" "" {post_type :0, forward_price :null, receiptors :null, license_lid :1, permission_flags :255} true true

```

```

unlocked >>> create_post test9 test9 "this_is_post_hash" "post_title" "post_body" "post_extra_datas" "" "" "" {post_type :0, forward_price :null, receiptors :null, license_lid :1, permission_flags :255} true true

create_post test9 test9 "this_is_post_hash" "post_title" "post_body" "post_extra_datas" "" "" "" {post_type :0, forward_price :null, receiptors :null, license_lid :1, permission_flags :255} true true

{

  "ref_block_num": 13982,

  "ref_block_prefix": 3776234094,

  "expiration": "2019-04-11T10:59:42",

  "operations": [[

      18,{

        "fee": {

          "total": {

            "amount": 15467,

            "asset_id": 0

          },

          "options": {

            "from_csaf": {

              "amount": 15467,

              "asset_id": 0

            }

          }

        },

        "post_pid": 1,

        "platform": 32945,

        "poster": 32945,

        "hash_value": "this_is_post_hash",

        "extra_data": "post_extra_datas",

        "title": "post_title",

        "body": "post_body",

        "extensions": {

          "post_type": 0,

          "license_lid": 1,

          "permission_flags": 255

        }

      }

    ]

  ],

  "signatures": [


"1f045d545abcb6f98908cdd68c818dc112c22e7803de1607e887b1d4f55b8564b92347fcf0c4b84888f99a4b54d737ae0a11cad5d1f7249723f0c7ca6151e0368a"

  ]

}

```


可以看到返回的post_pid1 ,说明是该用户的第一篇文章,据此可以查询相关信息。

```

unlocked >>> get_post test9 test9 1

get_post test9 test9 1

{

  "id": "1.7.24",

  "platform": 32945,

  "poster": 32945,

  "post_pid": 1,

  "hash_value": "this_is_post_hash",

  "extra_data": "post_extra_datas",

  "title": "post_title",

  "body": "post_body",

  "create_time": "2019-04-11T10:57:45",

  "last_update_time": "2019-04-11T10:57:45",

  "receiptors": [[

      32945,{

license post wallet yoyow 钱包

分享新闻到
微信朋友圈
扫描后点
右上角分享

0 Comments

Leave a Comment

Ad

Related Posts: