TITLE: Deploying and Migrating CKB Contracts with ckb-cinnabar DESCRIPTION: Illustrates command-line usage of `ckb-cinnabar` for deploying a new CKB contract and migrating an existing one to a new version. This tool simplifies contract management, especially when leveraging the Type ID mechanism for upgrades. SOURCE: https://github.com/ckb-devrel/ckb-ssri-std/blob/main/ckb-ssri-std/README.md#_snippet_1 LANGUAGE: Shell CODE: ``` ckb-cinnabar deploy --contract-name pausable-udt --tag transaction.v241112 --payer-address ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqtxe0gs9yvwrsc40znvdc6sg4fehd2mttsngg4t4 --type-id ckb-cinnabar migrate --contract-name pausable-udt --from-tag v241030.1 --to-tag v241030.2 ``` ---------------------------------------- TITLE: Call run_script Method via SSRI-server RPC DESCRIPTION: This shell command demonstrates how to invoke the `run_script` method on an SSRI-server RPC endpoint. It sends a JSON-RPC 2.0 request with parameters including the transaction hash of the target cell, its index, and an array specifying the method path and arguments. This allows users to obtain Script-Source Rich Information or a transaction object directly. SOURCE: https://github.com/ckb-devrel/ckb-ssri-std/blob/main/ckb-ssri-std/README.md#_snippet_2 LANGUAGE: sh CODE: ``` echo '{ "id": 2, "jsonrpc": "2.0", "method": "run_script", "params": ["", , [, <...argv>]] }' ``` ---------------------------------------- TITLE: SSRI Default Namespace API Reference DESCRIPTION: Defines the core methods available within the default SSRI namespace for querying script-sourced rich information. These methods allow checking the module version, retrieving a list of exposed methods, and verifying the existence of specific methods. SOURCE: https://github.com/ckb-devrel/ckb-ssri-std/blob/main/ckb-ssri-std/README.md#_snippet_0 LANGUAGE: APIDOC CODE: ``` SSRI.version() -> u8 SSRI.get_methods(offset: u64, limit: u64) -> Vec SSRI.has_methods(methods: Vec) -> Vec ```