docs(error-codes): expand error code reference with ~70 new codes and actionable solutions#361
Open
rcsh1 wants to merge 1 commit into
Open
docs(error-codes): expand error code reference with ~70 new codes and actionable solutions#361rcsh1 wants to merge 1 commit into
rcsh1 wants to merge 1 commit into
Conversation
… actionable solutions - Restructured EN and CN error-codes snippets from a single flat table into 12 functional sections (general, pricing, wallet config, transfer, token/balance, transaction management, MPC, EVM, MFA, categories, compliance/KYT, Travel Rule) - Added ~70 previously undocumented error codes sourced from custody/waas2 exception classes (transfer.py, exceptions.py, compliance/exceptions.py, travel_rule.py, mfa/exception.py, mpc/exceptions.py, evm_infra/exceptions.py, category/exceptions.py, data/exceptions.py) - All solutions rewritten to explain WHY the error occurs and describe only actions the developer can take; solutions that restated the error or described server-side states removed - Solutions for codes with fixed valid sets enumerate them from code (e.g. 60002: Transfer, ContractCall, MessageSign) - UTXO locking mechanism explained for 2105; balance calculation explained for 30012; token threshold API links added for 30010/30011 - Exchange Wallet Observation mode (30035) identified precisely - CN file: Fee Station, Vault kept in English per bilingual glossary; API field names and enum values untranslated throughout
Collaborator
Author
|
| 错误码 | CategoryAPIException |
EvmInfraException |
|---|---|---|
| 40001 | 团队不存在 | EVM 速率限制已达到 |
| 40002 | 类别数量超限 | 合约源代码未验证 |
| 40003 | 类别名称已存在 | 链不支持 |
当前文档已将两组错误码分别放在不同章节中,并附有章节级上下文说明。请确认此重复是否为预期设计,以及文档中是否需要额外说明,或者其中一个异常类是否应重新编号。
3. 合规与 KYT 错误(40101–40126)解决方案准确性待确认
这 26 条合规/KYT 错误码的解决方案均根据异常消息字符串和类级上下文推导而来,尚未经过实际合规工作流的验证。建议合规产品团队在合并前审阅此部分,重点关注:
- 40108、40113:当前方案均为"确认请求参数正确后重试",但尚不确定重试是否为正确处理方式,或是否需要其他操作。
- 40115–40118:涉及手续费和地址校验的错误 — 相关参数名称及有效值请对照 KYT API 规范确认。
Collaborator
🤖 自动化文档 Review —
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
当前错误码文档覆盖度不够,并且没有充分写明错误原因和解决方法。
Summary
snippets/error-codes.mdxandsnippets/error-codes-cn.mdxfrom a single flat table into 12 functional sectionscustody/waas2exception classes (transfer.py,exceptions.py,compliance/exceptions.py,travel_rule.py,mfa/exception.py,mpc/exceptions.py,evm_infra/exceptions.py,category/exceptions.py,data/exceptions.py)Transfer,ContractCall,MessageSign)Fee Station,Vaultkept in English per bilingual glossary; API field names and enum values untranslated throughoutTest plan
mintlify validatepasses (same single pre-existing warning asmaster— unrelated missing autosweep file)