Open cryptoAtwill opened 5 months ago
I think that tests that touch the subnet circulation supply somehow are not possible to implement within the MultiSubnet test framework with the current actors API. For example, release_native_works_no_fund
suggests that the circulation supply of the child subnet is changed, but the Solidity contract does not have API for that, except fund
, which should not be used here according to the test case.
I have tested a one node setup for fund
and release
with native token. They are working. The issues with current code base is, it's extremely difficult to debug and visualise the Receipt state and making xnet contract calls. I create issues to write tool for such functions.
A list of test case for cross network messaging integration testing:
FUND
fund_native_works: Action: Sender in the parent sends some fund to another address in the child. Expected:
receive
norfallback
in the child. Expected:receive
norfallback
in the child. Expected:Release
receive
norfallback
in the parent. Expected:fund
from the parent. Someone else hasfunded
the sender in the child subnet. Sender in the child subnet sends some fund to another address in the parent. Expected:Call