您正在查看: 2018年8月

available to claim now with 'eosio::refund' action

取消抵押资源后

root@iZj6cdt5e7ronlinptyrmcZ:~/.local/share/eosio/nodeos/config# cleos -u https://nodes.get-scatter.com system undelegatebw bcskillsurou bcskillsurou "0.01 EOS" "0.01 EOS"
2018-08-21T04:36:44.906 thread-0   main.cpp:438                  create_action        ] result: {"binargs":"90b1cadec45aab4990b1cadec45aab49640000000000000004454f5300000000640000000000000004454f5300000000"} arg: {"code":"eosio","action":"undelegatebw","args":{"from":"bcskillsurou","receiver":"bcskillsurou","unstake_net_quantity":"0.0100 EOS","unstake_cpu_quantity":"0.0100 EOS"}} 
executed transaction: 6b38a7c368d63136434ea517c87331a56cd05755f08474b7181af035b4589d4e  184 bytes  1599 us
#         eosio <= eosio::undelegatebw          {"from":"bcskillsurou","receiver":"bcskillsurou","unstake_net_quantity":"0.0100 EOS","unstake_cpu_qu...
warning: transaction executed locally, but may not be confirmed by the network yet    ] 

三天后72h后解除抵押

root@iZj6cdt5e7ronlinptyrmcZ:~/.local/share/eosio/nodeos/config# cleos -u https://nodes.get-scatter.com get account bcskillsurou
permissions: 
     owner     1:    1 EOS6e6e35YaLjA1UMGH48DHaWUKGF32dDs2fvwEAe7jVPB9ptcyod
        active     1:    1 EOS6e6e35YaLjA1UMGH48DHaWUKGF32dDs2fvwEAe7jVPB9ptcyod
memory: 
     quota:     28.33 KiB    used:     4.738 KiB  

net bandwidth: 
     staked:          1.0127 EOS           (total stake delegated from account to self)
     delegated:       0.0010 EOS           (total staked delegated to account from others)
     used:               288 bytes
     available:        678.1 KiB  
     limit:            678.3 KiB  

cpu bandwidth:
     staked:          1.5808 EOS           (total stake delegated from account to self)
     delegated:       0.0000 EOS           (total staked delegated to account from others)
     used:             4.244 ms   
     available:        24.21 ms   
     limit:            28.45 ms   

unstaking tokens:
     time of unstake request:  2018-08-21T04:36:48 (funds will be available in 71.99 hr)
     from net bandwidth:              0.0100 EOS
     from cpu bandwidth:              0.0100 EOS
     total:                           0.0200 EOS

EOS balances: 
     liquid:            9.3080 EOS
     staked:            2.5935 EOS
     unstaking:         0.0200 EOS
     total:            11.9215 EOS

producers:     <not voted>

72h后查看账户

root@iZj6cdt5e7ronlinptyrmcZ:~/.local/share/eosio/nodeos/config# cleos -u https://nodes.get-scatter.com get account bcskillsurou
permissions: 
     owner     1:    1 EOS6e6e35YaLjA1UMGH48DHaWUKGF32dDs2fvwEAe7jVPB9ptcyod
        active     1:    1 EOS6e6e35YaLjA1UMGH48DHaWUKGF32dDs2fvwEAe7jVPB9ptcyod
memory: 
     quota:     28.33 KiB    used:     4.738 KiB  

net bandwidth: 
     staked:          1.0227 EOS           (total stake delegated from account to self)
     delegated:       0.0010 EOS           (total staked delegated to account from others)
     used:               193 bytes
     available:        684.8 KiB  
     limit:              685 KiB  

cpu bandwidth:
     staked:          1.5908 EOS           (total stake delegated from account to self)
     delegated:       0.0000 EOS           (total staked delegated to account from others)
     used:             3.144 ms   
     available:        20.34 ms   
     limit:            23.49 ms   

unstaking tokens:
     time of unstake request:  2018-08-17T11:24:32 (available to claim now with 'eosio::refund' action)
     from net bandwidth:              0.2000 EOS
     from cpu bandwidth:              0.8694 EOS
     total:                           1.0694 EOS

EOS balances: 
     liquid:            8.2386 EOS
     staked:            2.6135 EOS
     unstaking:         1.0694 EOS
     total:            11.9215 EOS

producers:     <not voted>

提示available to claim now with 'eosio::refund' action,抵押解除后,需要账户主动申请退款

root@iZj6cdt5e7ronlinptyrmcZ:~/.local/share/eosio/nodeos/config# cleos -u https://nodes.get-scatter.com push action eosio refund '{"owner": "bcskillsurou"}' -p bcskillsurou
executed transaction: 6fe98056dcc20ea62f59cd8aaa1be714ffdfbb556f142f2e4d1f23551426d5f4  104 bytes  1212 us
#         eosio <= eosio::refund                {"owner":"bcskillsurou"}
#   eosio.token <= eosio.token::transfer        {"from":"eosio.stake","to":"bcskillsurou","quantity":"1.0694 EOS","memo":"unstake"}
#   eosio.stake <= eosio.token::transfer        {"from":"eosio.stake","to":"bcskillsurou","quantity":"1.0694 EOS","memo":"unstake"}
#  bcskillsurou <= eosio.token::transfer        {"from":"eosio.stake","to":"bcskillsurou","quantity":"1.0694 EOS","memo":"unstake"}
warning: transaction executed locally, but may not be confirmed by the network yet    ]

查询账户,之前抵押已到账

root@iZj6cdt5e7ronlinptyrmcZ:~/.local/share/eosio/nodeos/config# cleos -u https://nodes.get-scatter.com get account bcskillsurou
permissions: 
     owner     1:    1 EOS6e6e35YaLjA1UMGH48DHaWUKGF32dDs2fvwEAe7jVPB9ptcyod
        active     1:    1 EOS6e6e35YaLjA1UMGH48DHaWUKGF32dDs2fvwEAe7jVPB9ptcyod
memory: 
     quota:     28.33 KiB    used:     4.477 KiB  

net bandwidth: 
     staked:          1.0227 EOS           (total stake delegated from account to self)
     delegated:       0.0010 EOS           (total staked delegated to account from others)
     used:               105 bytes
     available:        684.9 KiB  
     limit:              685 KiB  

cpu bandwidth:
     staked:          1.5908 EOS           (total stake delegated from account to self)
     delegated:       0.0000 EOS           (total staked delegated to account from others)
     used:             2.614 ms   
     available:        23.53 ms   
     limit:            26.15 ms   

EOS balances: 
     liquid:            9.3080 EOS
     staked:            2.6135 EOS
     unstaking:         0.0000 EOS
     total:            11.9215 EOS

producers:     <not voted>

EOS RPC API monitor Health Check

由于需要检查EOS Rpc API的健康运行情况,所以需要一个检查的脚本定期运行
监控需要发送微信消息,先参考《推荐一个简单的服务器监控,发送消息给微信的方案「Server酱」》,注册下面需要用的SCKEY
新建api_monitor.sh,内容如下

#!/bin/bash
# Update these for your own settings
declare -A APIS=( [eos-mainnet]=https://eos-mainnet.bcskill.com [get-scatter]=https://nodes.get-scatter.com )
WE_CHAT_WEBHOOK=https://sc.ftqq.com/SCKEY(去上面的参考去申请).send
#最新区块时间`head_block_time`与本地时间存在时差,不确定具体原因,暂时比对时间为容差为24h
DELAY=60*60*24

# Do not change below here
for K in "${!APIS[@]}"
do
    # Check the endpoint
    JSON=$(curl -s ${APIS[$K]}/v1/chain/get_info)

    # Fail if curl was unsuccessful
    if [ $? -ne 0 ]; then
        curl -s -X POST --data "text=\"\`$K\` API node cannot be accessed @ ${APIS[$K]}\"&desp=EOS Monitor Error" $WE_CHAT_WEBHOOK
        continue
    fi

    # Calculate the diff
    HEAD=$(echo $JSON | jq -r .head_block_time)
    BLOCK=$(date --date=$HEAD +"%s")
    NOW=$(date +"%s")
    DIFF="$(($NOW-$BLOCK))"

    # Fail if head block is older than acceptable delay
    if [[ $DIFF -gt $DELAY ]]; then
        curl -s -X POST --data "text=\"\`$K\` API head block time @ ${APIS[$K]}/v1/chain/get_info is lagging more than $DELAY seconds: $HEAD\"&desp=EOS Monitor Error" $WE_CHAT_WEBHOOK
    fi
done

依赖

返回结果依赖jq解析,需要先安装下

sudo apt-get install jq

修改文件权限

chmod 755 api_monitor.sh

运行

每30秒检查一次

watch -n 30 ./api_monitor.sh

等出问题时,会直接发送消息到绑定的微信

参考:https://github.com/BlockMatrixNetwork/eos-bp-failover/tree/master/external-rpc-api-monitor

推荐一个简单的服务器监控,发送消息给微信的方案「Server酱」

EOS Rpc服务器需要个简单的监控,出问题时发送消息给微信,方便运维同学尽快及时的处理,经过查询,Server酱的方案能简单的实现。

Server酱

官网:http://sc.ftqq.com

接入方法

  1. 登入:用GitHub账号登入网站,就能获得一个SCKEY(在「发送消息」页面)
  2. 绑定:点击「微信推送」,扫码关注同时即可完成绑定
  3. 发消息:往 http://sc.ftqq.com/SCKEY.send 发GET请求,就可以在微信里收到消息啦
    https://sc.ftqq.com/[SCKEY(登入后可见)].send?text=API node cannot be accessed&desp=EOS Monitor Error

    来个示意图

EOS自动的延迟转账

transaction 里面有一个 delay_sec 的参数,默认是0,可以通过自定义实现延迟EOS转账。
具体代码可以查看 contracts/eosiolib/transaction.hpp
我们通过写一个新的合约,实现延时转账的 send 功能

void send(account_name from, account_name to, asset amount, string memo, uint64_t delay) {
    eosio::transaction t{};
    t.actions.emplace_back(
    eosio::permission_level(from, N(active)), // with `from@active` permission
    N(eosio.token), // You're sending this to `eosio.token`
    N(transfer),   // to their `transfer` action
    std::make_tuple(from, to, amount, memo));  // with the appropriate args
    t.delay_sec = delay; // Set the delay
    t.send(eosio::string_to_name(memo.c_str()), from); // Send the transaction with some ID derived from the memo
    }
};

最后需要记得对发送者账户进行权限设置,让该合约有权限进行转账操作。

$ cleos set account permission <sender-account> active '{"threshold": 1,"keys": [{"key": "<sender-pubkey>","weight": 1}],"accounts": [{"permission":{"actor":"<contract-account>","permission":"eosio.code"},"weight":1}]}' owner -p <sender-account>

参考:https://eosio.stackexchange.com/questions/1900/how-to-transfer-eos-after-a-particular-delay
转自:http://blog.eosdata.io/index.php/2018/08/16/ru-he-jin-xing-zi-dong-de-yan-chieos-zhuan-zhang/

EOS核心仲裁庭收费标准

EOS核心仲裁庭费用表

本费用表适用于在EOS核心仲裁庭(ECAF)的争议解决机制(RDR)之下进行的仲裁,详情请参见此处https://eoscorearbitration.io/home/governance/
本费用表将会不定期的修订。ECAF的费用将以EOS的形式收取。如果需要从法币转换为EOS,操作过程在本备忘录末尾的货币转换部分做了详细说明。
该收费制度分为两部分,如下:
1.不可退还的诉讼费:在提交案件时支付。
2.仲裁费用:在案件结案时支付,用于补偿仲裁员、案件管理员、仲裁庭工作人员、外部专家等在案件上花费的时间成本。

注:费用与仲裁员针对潜在的判决可能要求当事人作为担保缴纳的任何保证金是分开的。
诉讼费:
当提交仲裁申请时,申请人应支付不可退还的诉讼费,该费用取决于索赔金额,具体如下:

仲裁费用

根据RDR第5.9节https://eoscorearbitration.io/home/governance/ :当仲裁程序开始,仲裁员将在切实可行的范围内尽快的提交一份仲裁费用的估算。
该仲裁费用将固定使用在仲裁上并且将被支付到本法庭账户。
这样的花费可能包括:
1、仲裁员的报酬;
2、仲裁员的花费;
3、专家和翻译的成本;
4、其它与本法庭审理该案件相关的报酬和花费;
5、当事人引发的合理的法律费用和其它花费;
6、由于消极的行动或行为被仲裁员征收的罚金;
7、任何与临时或者紧急救济通知有关的费用;
8、任何与请求合并仲裁有关的费用;
仲裁费用应参照仲裁庭成员的工作量计算。费率将取决于案件的具体情况,包括其复杂性和仲裁员可能具有的任何特殊资质。
费用将按小时收取,如下文(数字以美元报价,但以EOS收取,见后文关于货币兑换的部分)。适用的费率将取决于经验水平和本人对问题的专业程度。

保证金

仲裁员可指示当事人按其认为适当的比例和时间提交两种类型的保证金:

1.仲裁费用的预付款。根据ECAF规则,此类由当事人预付的保证金可以由ECAF用来支付任何此类仲裁费用(包括ECAF自己的费用和开支)。
2.占争议总金额一定百分比的保证金,作为对潜在判决的担保。

如果一方当事人未能或者拒绝支付任何款项到仲裁员指示的仲裁费用的账号,仲裁员可指示另一方或多方代为支付以允许仲裁继续进行(基于任何针对仲裁费用的仲裁令或裁定)。在这种情况下,代为付款的一方可以要求仲裁员给出一个命令或裁决,以便将该金额作为违约方的一笔立即到期债务和应付账款,来进行收回。

一方当事人申请紧急救济时,除了支付不可退还的诉讼费之外,还应支付相当于750美元的EOS的保证金(见后文关于货币兑换的说明)作为紧急救济程序的预付费用。如果没有同时支付诉讼费和保证金,ECAF将不会以紧急救济程序进行处理。

临时付款

随着仲裁程序的进行,由ECAF和仲裁员批准,部分保证金可能会不时地被释放,以覆盖仲裁费用的任何部分。

如果在需要临时付款时没有或欠缺资金,付款通知可以被提交给当事人直接进行付款。

支付方式

ECAF只会要求您将资金转入以下两个账户之一:

  • ecafeewallet
  • ecafescrowww

警告:不要将资金转移到任何其他帐户!任何向其他EOS帐户或交易所帐户付款的请求都是欺诈性请求! ECAF不会对转入其它账户的资金承担责任。

诉讼费的收取

申请人将通过ECAF官方网址的诉讼提交页面提起一个诉讼:https://eoscorearbitration.io/file-a-claim/
ECAF的案例经理随后将审核该诉讼。一旦案件经理确信不需要其他补充信息,他们将联系申请人提交诉讼费并附上适当的备注到以下地址:
Ecafeewallet
一旦成功收到诉讼费,该案件将被标记为已被仲裁庭接受,并等待分配给具体的一个仲裁员。

保证金的收取

当仲裁员被分配到一个案件时,他们将对仲裁费用进行初步估计。 (该估计将在结案时最终确定。)
仲裁员可以随后指示案件管理员将本案件的这些费用通知当事人。仲裁员还将确定是否需要要求一笔保证金来覆盖部分仲裁费用以及作为争议金额的保证金。
保证金将由案件经理负责征收,并将存入ECAF的托管账户,同时附有将提供给当事人的备注。保证金必须只能发送到以下这个账户:
Ecafescrowww

货币兑换

金额必须以EOS的形式支付。
如果任何到期金额没有以EOS为单位报价,则应按保证金和/或裁定的付款通知发出之日前一天的兑换率进行兑换。
EOS转换为美元使用的利率引用自CoinMarketCap https://coinmarketcap.com/currencies/eos/historical-data/ 在指定日期的收盘价。
如果该金额以美元以外的法定货币表示,则该金额应首先使用引用自OandA https://www.oanda.com/lang/cns/currency/converter/ 的在指定日期的平均卖出价,来转换为美元。然后再将其转换为如上所述的EOS单位。

请注意: 本文由EMAC(EOS 华语治理社区)仲裁候选人Achilles原创翻译,保留该声明即可转载。
原文来源:https://steemit.com/ecaf/@ecaf/ecaf-s-fee-schedule