confio / tgrade

The Tgrade Blockchain Binary, based on the Cosmos SDK and wasmd
Apache License 2.0
31 stars 10 forks source link

Test tgrade contract json message #28

Open alpe opened 3 years ago

alpe commented 3 years ago

Integration between contracts and tgrade chain is a a major point. We should make this a first level task in tests and have example json as specs in both projects for tests (golden master).

This task is about getting this started and integrate the first set of tests.

alpe commented 2 years ago

Tom pointed me to https://www.npmjs.com/package/ajv-cli that can help with data validation

maurolacy commented 2 years ago

We were discussing this, and think that providing the jsons cannot be properly done without a testing environment to validate them.

This testing env will also be useful to solve integration / API / formatting issues (error messages, param names / types, etc.)

I think a shared project between blockchain devs and contract devs, in which any one of us can try a new contract version on an existing blockchain, or a new blockchain on existing contracts, or both, will be very useful.

maurolacy commented 2 years ago

Something like a (probably local) testnet that can be easily parametrised / started, and that is part of a test suite of some kind, would be the idea here.

WDYT?

ethanfrey commented 2 years ago

This doesn't seem essential for mainnet launch, but nice to have for ongoing test improvements.