标签:issue font cts mem 16px cee lis 因此 zha
关于 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希望用一条公链帮交易所做数字资产的确权,让交易所账本更公开可信;同时建立交易所联盟,聚合不同交易所的挂单,扩大合作方的流动性和交易深度,将做市商利用交易所间价差获得的收益返还到个人投资者手中。
标签:issue font cts mem 16px cee lis 因此 zha
原文地址:https://www.cnblogs.com/xiaoxuebiye/p/9301072.html