特殊权益用户
简介
IRISnet引入了两种由基金会控制且具有一定特殊权益的系统用户:profiler和trustee。
Profiler的权益
- 通过治理提交软件升级/停止提议。
- 使用
profiling
模式发起服务调用,profiling
模式会免除服务费。
Trustee的权益
- 通过
CommunityTaxUsage
治理取回交易税费时,只能使用Trustee address作为取回地址。 - 发起
withdraw-tax
交易可以从iService
服务费税池中提取代币到指定账户。
- 通过
Genesis Profiler/Genesis Trustee的权益(在创世的genesis.json中定义)
- 只有Genesis Profiler可以 添加/删除 普通Profiler账户
- 只有Genesis Trustee可以 添加/删除 Trustee账户
使用场景
添加profiler和trustee
添加profiler (仅限Genesis Profiler)
iris tx guardian add-profiler --address=<profiler-address> --description=<profiler-description> --chain-id=irishub --from=<key-name> --fees=0.3iris
添加trustee(仅限Genesis Trustee)
iris tx guardian add-trustee --address=<trustee-address> --description=<trustee-description> --chain-id=irishub --from=<key-name> --fees=0.3iris
查询profiler和trustee列表
查询profiler列表
iris q guardian profilers
查询trustee列表
iris q guardian trustees
Profiler提交软件升级/停止提议
详细参考upgrade
Profiler使用
profiling
模式发起服务调用该模式免除服务费
iris tx service call --def-chain-id=<def-chain-id> --service-name=<service-name> --method-id=<method-id> --bind-chain-id=<bind-chain-id> --provider=<provider-address> --service-fee=1iris --request-data=<request-data> --chain-id=irishub --from=<key-name> --fees=0.3iris --profiling=true
通过
CommunityTaxUsage
治理取回交易税费详细参考governance
删除profiler和trustee
删除profiler:(仅限Genesis Profiler)
iris tx guardian delete-profiler --chain-id=irishub --from=<key-name> --fees=0.3iris --address=<profiler-address>
删除trustee:(仅限Genesis Trustee)
iris tx guardian delete-trustee --chain-id=irishub --from=<key-name> --fees=0.3iris --address=<trustee-address>