ragraf_contract_pin_sample
版本: enterprise 能力: contract-pin 操作页面: contract_pin_sample
做什么
行为探针:一个操作实际返回什么,去掉易变字段后取哈希——签名固定看不见的那一部分
解决什么问题
取一份真实答案样本作为契约来源,而不是凭记忆描述。
如何调用
ragraf_contract_pin_sample()
ragraf -p config/ragraf.yaml query contract_pin_sample
省略号处是代理传入的值;可选参数可以不传。
参数
| 名称 | 类型 | 默认值 |
|---|---|---|
| mode | str | 'compare' |
| op | str | '' |
| limit | int | 50 |
| by | str | '' |
| note | str | '' |
| only_changed | bool | False |
| except_ops | str | '' |
返回什么
mode, probes, scope, selected, state