bafnetwork/baf-wallet-v2

Define ChainInterface test suite template

开放

#40 创建于 2021年4月30日

 (0 条评论) (0 个反应) (0 位负责人)TypeScript (0 个派生)auto 404
help wantedtesting

仓库指标

星标
 (4 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

We now have the ChainInterface type that generalizes operations performed on any chain, but we don't yet have a clear definition of how each of the methods should behave in certain circumstances.

I think it would make the most sense to write a ChainInterface "test suite template" that can function as a "working spec" for all chain implementations so that we can make their behavior as consistent and predictable as possible.

Why not just a single test suite for all implementations? Well because the initialization and send/sign/build argument types they all take differ from implementation to implementation, so some code will need to be re-written between implementations.

贡献者指南