{
  "id": "starkli",
  "name": "Starkli",
  "homepage": "https://book.starkli.rs",
  "description": "Starkli is a command line tool for interacting with Starknet, powered by starknet-rs.",
  "executables": [
    "starkli"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/starkli/profiles.toml"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": "[configHome]/starkli/profiles.toml",
        "match": {
          "key_path": [
            "*.networks.*.provider.headers.*.value"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Starkli",
    "description": "Read-only contract calls and chain queries against a Starknet node. Transactions, declarations and account management are left out.",
    "quality": "ai-draft",
    "base": "fig:starkli",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/starkli.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "call"
        ],
        "label": "Call a contract function",
        "description": "Call a contract function without sending a transaction.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/starkli.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "address",
            "label": "Contract address",
            "type": "string",
            "position": 0,
            "description": "Contract address.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "selector",
            "label": "Function name",
            "type": "string",
            "position": 1,
            "description": "Name of the function being called.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "calldata",
            "label": "Calldata",
            "type": "string",
            "position": 2,
            "description": "Raw function call arguments.",
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "rpc",
            "label": "RPC endpoint",
            "type": "url",
            "option": [
              "--rpc"
            ],
            "description": "Starknet JSON-RPC endpoint.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "network",
            "label": "Network",
            "type": "string",
            "option": [
              "--network"
            ],
            "description": "Starknet network.",
            "suggestions": [
              {
                "value": "mainnet",
                "label": "mainnet"
              },
              {
                "value": "goerli-1",
                "label": "goerli-1"
              },
              {
                "value": "goerli-2",
                "label": "goerli-2"
              },
              {
                "value": "integration",
                "label": "integration"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "log_traffic",
            "label": "Log traffic",
            "type": "boolean",
            "option": [
              "--log-traffic"
            ],
            "description": "Log raw request/response traffic.",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "call",
            "label": "Call",
            "fields": [
              "address",
              "selector",
              "calldata",
              "rpc",
              "network"
            ],
            "required": [
              "address",
              "selector"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "address",
              "selector",
              "calldata",
              "rpc",
              "network"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "log_traffic"
            ]
          }
        ]
      },
      {
        "path": [
          "block-number"
        ],
        "label": "Latest block number",
        "description": "Get the latest block number.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/starkli.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "rpc",
            "label": "RPC endpoint",
            "type": "url",
            "option": [
              "--rpc"
            ],
            "description": "Starknet JSON-RPC endpoint.",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "number",
            "label": "Block number",
            "fields": [
              "rpc"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "rpc"
            ]
          }
        ]
      }
    ]
  }
}
