Master backend architectures, REST API design, microservices, and server-side development across multiple languages. Use this as a central index to access specialized sub-skills.
日本語の概要は準備中です。原文の説明を表示しています。
Guide for adding new blockchain chains to OneKey. Use when implementing new chain support, adding blockchain protocols, or understanding chain architecture. Triggers on chain, blockchain, protocol, network, coin, token, add chain, new chain.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
OneKey supports 40+ blockchains with pluggable chain implementations. This guide covers the process of adding new chain support.
Location: packages/core/src/chains/
Create a new directory for the chain:
packages/core/src/chains/mychain/
├── index.ts # Main exports
├── types.ts # Chain-specific types
├── CoreChainSoftware/ # Software wallet implementation
│ └── index.ts
├── sdkMychain/ # SDK wrapper if needed
│ └── index.ts
└── @tests/ # Chain tests
└── index.test.ts
Location: packages/shared/src/config/chains/
Add chain constants and configuration:
export const CHAIN_MYCHAIN = {
id: 'mychain',
name: 'My Chain',
symbol: 'MYC',
decimals: 18,
// ... other chain config
};
Location: packages/kit/src/
Add any chain-specific UI components or modifications needed for:
Location: packages/core/src/chains/mychain/@tests/
Write comprehensive tests:
describe('MyChain', () => {
it('should generate valid addresses', () => {
// test address generation
});
it('should sign transactions correctly', () => {
// test transaction signing
});
it('should validate addresses', () => {
// test address validation
});
});
packages/core/src/chains/packages/shared/Look at existing chain implementations for guidance:
packages/core/src/chains/evm/packages/core/src/chains/btc/packages/core/src/chains/sol/// packages/core/src/chains/index.ts
export const chainRegistry = {
evm: () => import('./evm'),
btc: () => import('./btc'),
sol: () => import('./sol'),
mychain: () => import('./mychain'),
};
export function validateAddress(address: string): boolean {
// Implement chain-specific validation
return isValidAddress(address);
}
export async function buildTransaction(params: TxParams): Promise<UnsignedTx> {
// Build unsigned transaction
return {
// transaction data
};
}
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Master backend architectures, REST API design, microservices, and server-side development across multiple languages. Use this as a central index to access specialized sub-skills.
日本語の概要は準備中です。原文の説明を表示しています。
在每次回复中使用固定前缀并列出本次实际参考的指令/文件,便于校验是否遵循上下文与规则。
日本語の概要は準備中です。原文の説明を表示しています。
Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.
日本語の概要は準備中です。原文の説明を表示しています。
Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.
日本語の概要は準備中です。原文の説明を表示しています。
Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.
日本語の概要は準備中です。原文の説明を表示しています。
[00] META. Orchestrate skills into dynamic chains for complex tasks. Analyzes the task, discovers available skills, builds an optimal chain, explains why each skill is needed, and executes step-by-step with user confirmation. Use for any complex task requiring multiple thinking/research/analysis steps. Triggers on "plan this", "how to approach", "what's the strategy", "build a plan", or any multi-step problem requiring skill orchestration.
日本語の概要は準備中です。原文の説明を表示しています。