Skip to content

类型重构:Chain Adapter 类型 → Amount #68

Closed

Description

@Gaubee

Part of #63

任务

将 Chain Adapter 中的 Balance、Fee、Transaction 类型改为使用 Amount。

变更

// src/services/chain-adapter/types.ts
export interface Balance {
  amount: Amount  // 替代 raw + formatted
  symbol: string
}

export interface Fee {
  amount: Amount  // bigint → Amount
  estimatedTime: number
}

export interface Transaction {
  amount: Amount  // bigint → Amount
  fee: Amount
  // ...
}

验收标准

  • Chain Adapter 类型更新
  • BioforestAdapter 实现更新
  • 测试通过

Activity

  1. Gaubee commented on Dec 22, 2025

    @Gaubee
    ContributorAuthor

    Completed in PR #74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions