BRAINIAC Crypto Security

Paid Crypto Security API via x402. Unpaid tool calls return 402.

¿Debería usar esto?

Calidad y seguridad

B
Calidad de la descripción
100%
Integridad del esquema
98%
Calidad de los nombres
35%
Riesgo de envenenamiento
100%
Coincidencia de permisos
100%
Cumplimiento del protocolo
100%

Hallazgos (7)

  • LOWTool 'crypto-security_transaction-intent-verify' doesn't follow camelCase/snake_caseen crypto-security_transaction-intent-verify
  • LOWTool 'crypto-security_transaction-intent-verify' name length outside 3-30 rangeen crypto-security_transaction-intent-verify
  • LOWTool 'crypto-security_intent-safety' doesn't follow camelCase/snake_caseen crypto-security_intent-safety
  • LOWTool 'crypto-security_proxy-upgrade-storage-audit' doesn't follow camelCase/snake_caseen crypto-security_proxy-upgrade-storage-audit
  • LOWTool 'crypto-security_proxy-upgrade-storage-audit' name length outside 3-30 rangeen crypto-security_proxy-upgrade-storage-audit
  • LOWTool 'crypto-security_storage-slot-grade' doesn't follow camelCase/snake_caseen crypto-security_storage-slot-grade
  • LOWTool 'crypto-security_storage-slot-grade' name length outside 3-30 rangeen crypto-security_storage-slot-grade

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~5,329Tokens (definiciones de herramientas)
~14.5 KBTamaño de respuesta típico
Impacto significativo en la atención (4.16% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

{
  "mcpServers": {
    "crypto-security": {
      "url": "https://www.brainiac.software/mcp/crypto-security"
    }
  }
}

Puntos de conexión remotos

https://www.brainiac.software/mcp/crypto-securitystreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (4)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟢crypto-security_transaction-intent-verify(chainId, contractAddress, calldata, value, expectedAction, ...)

Compare an EVM transaction's calldata and native value with the action declared in the request. Docs: https://www.brainiac.software/api/crypto-security/transaction-intent-verify Keywords: before you sign or send a transaction, chainId, contractAddress, calldata, value, expectedAction, expected, abi, intent match, intent_match, risk level, risk_level, mismatches, decoded transaction, decoded_transaction.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "chainId": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647,
      "description": "chainId, integer, from any to 2147483647. Required."
    },
    "contractAddress": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "contractAddress, string. Required."
    },
    "calldata": {
      "type": "string",
      "maxLength": 131074,
      "pattern": "^0x(?:[0-9a-fA-F]{2})*$",
      "description": "calldata, string, length 0 to 131074. Required."
    },
    "value": {
      "type": "string",
      "description": "value, string. Required."
    },
    "expectedAction": {
      "type": "string",
      "enum": [
        "transfer",
        "token_approval",
        "swap",
        "contract_interaction"
      ],
      "description": "expectedAction, string, one of transfer, token_approval, swap, contract_interaction. Required."
    },
    "expected": {
      "description": "expected, object. Optional.",
      "type": "object",
      "properties": {
        "recipient": {
          "description": "recipient, string. Optional.",
          "type": "string",
          "pattern": "^0x[0-9a-fA-F]{40}$"
        },
        "token": {
          "description": "token, string. Optional.",
          "type": "string",
          "pattern": "^0x[0-9a-fA-F]{40}$"
        },
        "amount": {
          "description": "amount, string. Optional.",
          "type": "string"
        },
        "spender": {
          "description": "spender, string. Optional.",
          "type": "string",
          "pattern": "^0x[0-9a-fA-F]{40}$"
        },
        "contract": {
          "description": "contract, string. Optional.",
          "type": "string",
          "pattern": "^0x[0-9a-fA-F]{40}$"
        },
        "functionName": {
          "description": "functionName, string. Optional.",
          "type": "string",
          "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,79}$"
        },
        "nativeValue": {
          "description": "nativeValue, string. Optional.",
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "abi": {
      "description": "abi, array. Optional.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "function",
              "constructor",
              "receive",
              "fallback",
              "event",
              "error"
            ],
            "description": "type, string, one of function, constructor, receive, fallback, event, error. Required."
          },
          "name": {
            "description": "name, string, length 0 to 80. Optional.",
            "type": "string",
            "maxLength": 80
          },
          "stateMutability": {
            "description": "stateMutability, string, one of pure, view, nonpayable, payable. Optional.",
            "type": "string",
            "enum": [
              "pure",
              "view",
              "nonpayable",
              "payable"
            ]
          },
          "inputs": {
            "description": "inputs, array. Optional.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "description": "name, string, length 0 to 80. Optional.",
                  "type": "string",
                  "maxLength": 80
                },
                "type": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "description": "type, string, length 1 to 200. Required."
                },
                "internalType": {
                  "description": "internalType, string, length 0 to 200. Optional.",
                  "type": "string",
                  "maxLength": 200
                },
                "indexed": {
                  "description": "indexed, boolean. Optional.",
                  "type": "boolean"
                },
                "components": {
                  "description": "components, array. Optional.",
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {},
                    "description": "item. Value."
                  }
                }
              },
              "required": [
                "type"
              ],
              "additionalProperties": false,
              "description": "item, object. Required."
            }
          },
          "outputs": {
            "description": "outputs, array. Optional.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "description": "name, string, length 0 to 80. Optional.",
                  "type": "string",
                  "maxLength": 80
                },
                "type": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "description": "type, string, length 1 to 200. Required."
                },
                "internalType": {
                  "description": "internalType, string, length 0 to 200. Optional.",
                  "type": "string",
                  "maxLength": 200
                },
                "indexed": {
                  "description": "indexed, boolean. Optional.",
                  "type": "boolean"
                },
                "components": {
                  "description": "components, array. Optional.",
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {},
                    "description": "item. Value."
                  }
                }
              },
              "required": [
                "type"
              ],
              "additionalProperties": false,
              "description": "item, object. Required."
            }
          },
          "anonymous": {
            "description": "anonymous, boolean. Optional.",
            "type": "boolean"
          }
        },
        "required": [
          "type"
        ],
        "additionalProperties": false,
        "description": "item, object. Required."
      }
    }
  },
  "required": [
    "chainId",
    "contractAddress",
    "calldata",
    "value",
    "expectedAction"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "description": "status. String."
    },
    "result_id": {
      "type": "string",
      "description": "result_id. String."
    },
    "received_at": {
      "type": "string",
      "description": "received_at. String."
    },
    "missing_items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "check": {
            "type": "string",
            "description": "check. String."
          },
          "reason": {
            "type": "string",
            "description": "reason. String."
          },
          "detail": {
            "type": "string",
            "description": "detail. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "missing_items. Array."
    },
    "intent_match": {
      "type": "boolean",
      "description": "intent_match. Boolean."
    },
    "risk_level": {
      "type": "string",
      "description": "risk_level. String."
    },
    "mismatches": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "description": "field. String."
          },
          "expected": {
            "type": "string",
            "description": "expected. String."
          },
          "actual": {
            "type": "string",
            "description": "actual. String."
          },
          "detail": {
            "type": "string",
            "description": "detail. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "mismatches. Array."
    },
    "decoded_transaction": {
      "type": "object",
      "properties": {
        "selector": {
          "type": "string",
          "description": "selector. String."
        },
        "function_name": {
          "type": "string",
          "description": "function_name. String."
        },
        "parameters": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "name. String."
              },
              "type": {
                "type": "string",
                "description": "type. String."
              },
              "value": {
                "type": "string",
                "description": "value. String."
              }
            },
            "additionalProperties": {},
            "description": "item. Object."
          },
          "description": "parameters. Array."
        }
      },
      "additionalProperties": {},
      "description": "decoded_transaction. Object."
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "code. String."
          },
          "detail": {
            "type": "string",
            "description": "detail. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "warnings. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢crypto-security_intent-safety(transaction, typed_data)

Read a caller-supplied EVM transaction or an EIP-712 typed-data message and describe the transfer, approval, permit, or outer call it encodes. Docs: https://www.brainiac.software/api/crypto-security/intent-safety Keywords: before you sign or send a transaction, transaction, typed data, intent safety score, intent_safety_score, unintended transfers risk, unintended_transfers_risk, human readable intent, human_readable_intent, Score transaction intent safety, intent safety.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "transaction": {
      "description": "transaction, object. Optional.",
      "type": "object",
      "properties": {
        "to": {
          "description": "to, string. Optional.",
          "type": "string",
          "pattern": "^0x[0-9a-fA-F]{40}$"
        },
        "value": {
          "description": "value, string. Optional.",
          "type": "string",
          "pattern": "^(0x[0-9a-fA-F]+|\\d+)$"
        },
        "data": {
          "type": "string",
          "maxLength": 100000,
          "pattern": "^(0x)?[0-9a-fA-F]*$",
          "description": "data, string, length 0 to 100000. Required."
        }
      },
      "required": [
        "data"
      ]
    },
    "typed_data": {
      "description": "typed data, object. Optional.",
      "type": "object",
      "properties": {
        "primaryType": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80,
          "description": "primaryType, string, length 1 to 80. Required."
        },
        "domain": {
          "description": "domain, object. Optional.",
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        },
        "types": {
          "description": "types, object. Optional.",
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "maxItems": 40,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                "type": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                }
              },
              "required": [
                "name",
                "type"
              ]
            }
          }
        },
        "message": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {},
          "description": "message, object. Required."
        }
      },
      "required": [
        "primaryType",
        "message"
      ]
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "description": "status. String."
    },
    "result_id": {
      "type": "string",
      "description": "result_id. String."
    },
    "received_at": {
      "type": "string",
      "description": "received_at. String."
    },
    "missing_items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "check": {
            "type": "string",
            "description": "check. String."
          },
          "reason": {
            "type": "string",
            "description": "reason. String."
          },
          "detail": {
            "type": "string",
            "description": "detail. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "missing_items. Array."
    },
    "intent_safety_score": {
      "type": "number",
      "description": "intent_safety_score. Number."
    },
    "unintended_transfers_risk": {
      "type": "number",
      "description": "unintended_transfers_risk. Number."
    },
    "human_readable_intent": {
      "type": "string",
      "description": "human_readable_intent. String."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢crypto-security_proxy-upgrade-storage-audit(proxyPattern, current, proposed, currentMetadata, proposedMetadata)

Compare the Solidity storage layout of an upgradeable implementation with a proposed replacement. Docs: https://www.brainiac.software/api/crypto-security/proxy-upgrade-storage-audit Keywords: before you sign or send a transaction, current, proposed, proxyPattern, currentMetadata, proposedMetadata, compatibility status, compatibility_status, risk level, risk_level, storage differences, storage_differences, affected variables, affected_variables, slot collisions.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "proxyPattern": {
      "description": "proxyPattern, string, one of uups, transparent, beacon, custom. Optional.",
      "type": "string",
      "enum": [
        "uups",
        "transparent",
        "beacon",
        "custom"
      ]
    },
    "current": {
      "type": "object",
      "properties": {
        "storage": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "astId": {
                "description": "astId, integer, from 0 to 9007199254740991. Optional.",
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "contract": {
                "description": "contract, string, length 1 to 200. Optional.",
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80,
                "description": "label, string, length 1 to 80. Required."
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 31,
                "description": "offset, integer, from 0 to 31. Required."
              },
              "slot": {
                "type": "string",
                "pattern": "^(0|[1-9][0-9]{0,77})$",
                "description": "slot, string. Required."
              },
              "type": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "description": "type, string, length 1 to 200. Required."
              }
            },
            "required": [
              "label",
              "offset",
              "slot",
              "type"
            ],
            "additionalProperties": false,
            "description": "item, object. Required."
          },
          "description": "storage, array. Required."
        },
        "types": {
          "description": "types, object. Optional.",
          "type": "object",
          "propertyNames": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "additionalProperties": {
            "type": "object",
            "properties": {
              "encoding": {
                "type": "string",
                "enum": [
                  "inplace",
                  "mapping",
                  "dynamic_array",
                  "bytes"
                ]
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "numberOfBytes": {
                "type": "string",
                "pattern": "^(0|[1-9][0-9]{0,8})$"
              },
              "base": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "members": {
                "maxItems": 64,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "astId": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "contract": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "label": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "offset": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 31
                    },
                    "slot": {
                      "type": "string",
                      "pattern": "^(0|[1-9][0-9]{0,77})$"
                    },
                    "type": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    }
                  },
                  "required": [
                    "label",
                    "offset",
                    "slot",
                    "type"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "encoding",
              "label"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "storage"
      ],
      "additionalProperties": false,
      "description": "current, object. Required."
    },
    "proposed": {
      "type": "object",
      "properties": {
        "storage": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "astId": {
                "description": "astId, integer, from 0 to 9007199254740991. Optional.",
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "contract": {
                "description": "contract, string, length 1 to 200. Optional.",
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80,
                "description": "label, string, length 1 to 80. Required."
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 31,
                "description": "offset, integer, from 0 to 31. Required."
              },
              "slot": {
                "type": "string",
                "pattern": "^(0|[1-9][0-9]{0,77})$",
                "description": "slot, string. Required."
              },
              "type": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "description": "type, string, length 1 to 200. Required."
              }
            },
            "required": [
              "label",
              "offset",
              "slot",
              "type"
            ],
            "additionalProperties": false,
            "description": "item, object. Required."
          },
          "description": "storage, array. Required."
        },
        "types": {
          "description": "types, object. Optional.",
          "type": "object",
          "propertyNames": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "additionalProperties": {
            "type": "object",
            "properties": {
              "encoding": {
                "type": "string",
                "enum": [
                  "inplace",
                  "mapping",
                  "dynamic_array",
                  "bytes"
                ]
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "numberOfBytes": {
                "type": "string",
                "pattern": "^(0|[1-9][0-9]{0,8})$"
              },
              "base": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "members": {
                "maxItems": 64,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "astId": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "contract": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "label": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "offset": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 31
                    },
                    "slot": {
                      "type": "string",
                      "pattern": "^(0|[1-9][0-9]{0,77})$"
                    },
                    "type": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    }
                  },
                  "required": [
                    "label",
                    "offset",
                    "slot",
                    "type"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "encoding",
              "label"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "storage"
      ],
      "additionalProperties": false,
      "description": "current, object. Required."
    },
    "currentMetadata": {
      "description": "currentMetadata, object. Optional.",
      "type": "object",
      "properties": {
        "contractName": {
          "description": "contractName, string, length 1 to 120. Optional.",
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        },
        "compilerVersion": {
          "description": "compilerVersion, string, length 1 to 40. Optional.",
          "type": "string",
          "minLength": 1,
          "maxLength": 40
        },
        "sourceName": {
          "description": "sourceName, string, length 1 to 200. Optional.",
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        }
      },
      "additionalProperties": false
    },
    "proposedMetadata": {
      "description": "proposedMetadata, object. Optional.",
      "type": "object",
      "properties": {
        "contractName": {
          "description": "contractName, string, length 1 to 120. Optional.",
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        },
        "compilerVersion": {
          "description": "compilerVersion, string, length 1 to 40. Optional.",
          "type": "string",
          "minLength": 1,
          "maxLength": 40
        },
        "sourceName": {
          "description": "sourceName, string, length 1 to 200. Optional.",
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "current",
    "proposed"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "description": "status. String."
    },
    "result_id": {
      "type": "string",
      "description": "result_id. String."
    },
    "received_at": {
      "type": "string",
      "description": "received_at. String."
    },
    "missing_items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "check": {
            "type": "string",
            "description": "check. String."
          },
          "reason": {
            "type": "string",
            "description": "reason. String."
          },
          "detail": {
            "type": "string",
            "description": "detail. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "missing_items. Array."
    },
    "compatibility_status": {
      "type": "string",
      "description": "compatibility_status. String."
    },
    "risk_level": {
      "type": "string",
      "description": "risk_level. String."
    },
    "storage_differences": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "code. String."
          },
          "severity": {
            "type": "string",
            "description": "severity. String."
          },
          "slot": {
            "type": "string",
            "description": "slot. String."
          },
          "offset": {
            "type": "number",
            "description": "offset. Number."
          },
          "variable": {
            "type": "string",
            "description": "variable. String."
          },
          "detail": {
            "type": "string",
            "description": "detail. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "storage_differences. Array."
    },
    "affected_variables": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "label. String."
          },
          "slot": {
            "type": "string",
            "description": "slot. String."
          },
          "offset": {
            "type": "number",
            "description": "offset. Number."
          },
          "change": {
            "type": "string",
            "description": "change. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "affected_variables. Array."
    },
    "slot_collisions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slot": {
            "type": "string",
            "description": "slot. String."
          },
          "offset": {
            "type": "number",
            "description": "offset. Number."
          },
          "variables": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "item. String."
            },
            "description": "variables. Array."
          },
          "detail": {
            "type": "string",
            "description": "detail. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "slot_collisions. Array."
    },
    "type_changes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "label. String."
          },
          "slot": {
            "type": "string",
            "description": "slot. String."
          },
          "offset": {
            "type": "number",
            "description": "offset. Number."
          },
          "previous_type": {
            "type": "string",
            "description": "previous_type. String."
          },
          "proposed_type": {
            "type": "string",
            "description": "proposed_type. String."
          },
          "detail": {
            "type": "string",
            "description": "detail. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "type_changes. Array."
    },
    "recommendations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "recommendations. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢crypto-security_storage-slot-grade(previous, next)

Compare two caller-supplied storage layouts by slot, offset, and size. Docs: https://www.brainiac.software/api/crypto-security/storage-slot-grade Keywords: before you sign or send a transaction, previous, next, upgrade safety grade, upgrade_safety_grade, collision probability score, collision_probability_score, slot shift delta, slot_shift_delta, Grade proxy storage slot changes, storage slot grade.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "previous": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,79}$",
            "description": "name, string. Required."
          },
          "slot": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000,
            "description": "slot, integer, from 0 to 1000000. Required."
          },
          "offset": {
            "description": "offset, integer, from 0 to 31. Optional.",
            "type": "integer",
            "minimum": 0,
            "maximum": 31
          },
          "size": {
            "description": "size, integer, from 1 to 32. Optional.",
            "type": "integer",
            "minimum": 1,
            "maximum": 32
          }
        },
        "required": [
          "name",
          "slot"
        ],
        "description": "item, object. Required."
      },
      "description": "previous, array. Required."
    },
    "next": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,79}$",
            "description": "name, string. Required."
          },
          "slot": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000,
            "description": "slot, integer, from 0 to 1000000. Required."
          },
          "offset": {
            "description": "offset, integer, from 0 to 31. Optional.",
            "type": "integer",
            "minimum": 0,
            "maximum": 31
          },
          "size": {
            "description": "size, integer, from 1 to 32. Optional.",
            "type": "integer",
            "minimum": 1,
            "maximum": 32
          }
        },
        "required": [
          "name",
          "slot"
        ],
        "description": "item, object. Required."
      },
      "description": "next, array. Required."
    }
  },
  "required": [
    "previous",
    "next"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "description": "status. String."
    },
    "result_id": {
      "type": "string",
      "description": "result_id. String."
    },
    "received_at": {
      "type": "string",
      "description": "received_at. String."
    },
    "missing_items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "check": {
            "type": "string",
            "description": "check. String."
          },
          "reason": {
            "type": "string",
            "description": "reason. String."
          },
          "detail": {
            "type": "string",
            "description": "detail. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "missing_items. Array."
    },
    "upgrade_safety_grade": {
      "type": "string",
      "description": "upgrade_safety_grade. String."
    },
    "collision_probability_score": {
      "type": "number",
      "description": "collision_probability_score. Number."
    },
    "slot_shift_delta": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "name. String."
          },
          "from_slot": {
            "type": "number",
            "description": "from_slot. Number."
          },
          "to_slot": {
            "type": "number",
            "description": "to_slot. Number."
          },
          "from_offset": {
            "type": "number",
            "description": "from_offset. Number."
          },
          "to_offset": {
            "type": "number",
            "description": "to_offset. Number."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "slot_shift_delta. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada4 herramientas