I'm writing an article that is designed to introduce readers on property-based testing…
Jump to turn (18)
- 1I'm writing an article that is designed to introduce readers on property-based t
- 2Good, now introduce "cw-proptest", a Rust crate created by TERRAN.ONE (the compa
- 3Introduce the "Standard Model" aka (SM), a high-level framework and architecture
- 4Write an example contract specification using the SM framewokr.
- 5Add an example of the permissions model and how it could be configured for a tok
- 6The contract should include an explicit reference to configuration of permission
- 7Write an example contract where the permissions on the state variables are writt
- 8Show an example of how a CW20 token contract can be tested using proptest and cw
- 9What arbitraries should cw-proptest include?
- 10Invent a DSL for property testing CosmWasm smart contracts that uses Rust macros
- 11Don't show me the macro implementation, just show me how users would use the mac
- 12Make the macro DSL syntax more intuitive.
- 13don't show me the implementation, just show me the syntax of how users would use
- 14the macro language still looks very intimidating. make it more friendly and conc
- 15don't show me the implementation, show me just how users would experience it.
- 16Revise the macro to require even less lines of code. Don't show me the macro's i
- 17Can you revise the macro to look like this: contract\test!(MyContract, { test\tr
- 18Let's say "SMContract" is a trait implemented by contracts. Can you invent a way
- User
I'm writing an article that is designed to introduce readers on property-based testing for CosmWasm smart contracts. Start with an introduction about the importance of testing smart contracts (since they power dApps that hold millions or even billions of dollars worth of assets). It is currently difficult and annoying to test CosmWasm smart contracts, and even more painful to get it right (who tests the tests?), and introduce property-based testing using Rust
proptestas the solution, by allowing users to write declarative properties about contract invariants in specific conditions, and magically getting the computer to discover tricky edge cases or even find unique properties that you didn't know. - Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.