1. 程式人生 > >學了3天EOS, 其它沒學會,就學會了發私人數字幣

學了3天EOS, 其它沒學會,就學會了發私人數字幣

color anti acc nsf font 過程 net aop user

關於 EOS的 鑄幣及發幣(以下是精華
張永@CoinXP

以下見證阿狗發幣過程

1.創建兩個賬戶, 阿狗張 和 阿狗老婆

cleos create account user1 ago.zhang EOS7pH6zRkknTfqJubtmxV3yBMck3judTiieHxM9BH7k84mDDpXLo EOS57YLonZVzHixdtvfJg3FXzPi8D2utjHs7iUMh9zx6qCw3YmhtX


cleos create account user1 ago.laopo EOS7pH6zRkknTfqJubtmxV3yBMck3judTiieHxM9BH7k84mDDpXLo EOS57YLonZVzHixdtvfJg3FXzPi8D2utjHs7iUMh9zx6qCw3YmhtX

 

2. 阿狗張 部署發幣合約

xiyi@ubuntu:~/eos$ cleos set contract ago.zhang build/contracts/eosio.token -p ago.zhang
Reading WAST/WASM from build/contracts/eosio.token/eosio.token.wasm...
Using already assembled WASM...
Publishing contract...
executed transaction: 2b77b64597d06afab69fc0b2b0e1f437685664c34d56abfc97b2894433fed365 
8104 bytes 2253 us # eosio <= eosio::setcode {"account":"ago.zhang","vmtype":0,"vmversion":0,"code":"0061736d01000000017e1560037f7e7f0060057f7e7e... # eosio <= eosio::setabi {"account":"ago.zhang","abi":"0e656f73696f3a3a6162692f312e30010c6163636f756e745f6e616d65046e616d6505... warning: transaction executed locally, but may not be confirmed by the network yet



3. 阿狗張 鑄幣

xiyi@ubuntu:~/eos$ cleos push action ago.zhang create [ "ago.laopo", "1000000000.0000 GOB", 0, 0, 0] -p ago.zhang
executed transaction: a3666350922a61f649204a5c2cee48e944fbf703a6fba4bbf93cb06ccceba41b 120 bytes 821 us
# ago.zhang <= ago.zhang::create {"issuer":"ago.laopo","maximum_supply":"1000000000.0000 GOB"}
warning: transaction executed locally, but may not be confirmed by the network yet

說明:阿狗 鑄造了 阿狗幣(AGB) ,並把10億阿狗幣 全給阿狗老婆, 阿狗老婆負責管理

4.阿老婆打賞

xiyi@ubuntu:~/eos$ cleos push action ago.zhang issue [ "user1", "99.0000 GOB","memo" ] -p ago.laopo
executed transaction: 4b18a1d678a5a01a258a65294f1e726bd7eb589c64f7a11a5dc8f886bebbfa24 128 bytes 2218 us
# ago.zhang <= ago.zhang::issue {"to":"user1","quantity":"99.0000 GOB","memo":"memo"}
# ago.zhang <= ago.zhang::transfer {"from":"ago.laopo","to":"user1","quantity":"99.0000 GOB","memo":"memo"}
# ago.laopo <= ago.zhang::transfer {"from":"ago.laopo","to":"user1","quantity":"99.0000 GOB","memo":"memo"}
# user1 <= ago.zhang::transfer {"from":"ago.laopo","to":"user1","quantity":"99.0000 GOB","memo":"memo"}
warning: transaction executed locally, but may not be confirmed by the network yet

說明:阿狗老婆把 99 個阿狗幣 GOB , 給了 eos 上的一個普通用戶 user1

5.user1 有幣了

xiyi@ubuntu:~/eos$ cleos get table ago.zhang user1 accounts
{
"rows": [{
"balance": "99.0000 GOB"
}
],
"more": false
}

 

字數不足,補足內容:
CoinXP最大的特點是將交易記錄和報價體系“搬到”鏈上。
資管與結算公鏈CoinXP認為,無論是哪類交易所,都存在“自背書”的問題,用戶無法確認資金的“位置”,只能“盲信”。因此,CoinXP希望用一條公鏈幫交易所做數字資產的確權,讓交易所賬本更公開可信;同時建立交易所聯盟,聚合不同交易所的掛單,擴大合作方的流動性和交易深度,將做市商利用交易所間價差獲得的收益返還到個人投資者手中。

學了3天EOS, 其它沒學會,就學會了發私人數字幣