0xMiden / 0xMiden/wallet-adapter

Stop using WASM types in the adapter

未关闭
#47 0 条评论 0 个 reaction 已指派 1 人 已被 @krwang 认领 在 GitHub 查看
主要语言
TypeScript
星标
2
派生
9
平均合并
25 分钟
30 天内合并 PR
1

描述

In support of https://github.com/0xMiden/feedback/issues/106, the adapter can stop using Miden WASM types. This will simplify the process of having to run the unstable version of Miden Wallet against a local node.

The adapter uses the following types:
* NoteFilterTypes (enum)
* InputNoteState (enum)
* NoteType (enum)
* TransactionRequest (class)

For the enums, we can either duplicate the enums in the adapter or use plain numbers. All of the enums are number-based. The `TransactionRequest` type is used for a parameter, and can be replaced with a serialized string representation of the same object.

贡献指南

打开贡献指南

调研方向

Locate the adapter's usage of NoteFilterTypes, InputNoteState, NoteType, and TransactionRequest. Replace the WASM enum types with either duplicated enums or plain numbers. For TransactionRequest, change the parameter to accept a serialized string representation. Test by running the unstable Miden Wallet against a local node to ensure compatibility.

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript, wasm
领域
api, backend
Issue 类型
重构
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。