fabianriewe / smartweavetesting Goto Github PK
View Code? Open in Web Editor NEWTesting SmartWeave contract the easy way
Testing SmartWeave contract the easy way
Hey @fabianriewe ,
I was testing out the project and it seems to be working fine for some basic contracts, but as soon as we want to interact with the transaction or the block, it stops working.
There seems to be missing a few of the features that SmartWeaveGlobal includes available here: https://github.com/ArweaveTeam/SmartWeave/blob/master/src/smartweave-global.ts
For example, there's nothing related to the transaction that is doing an input, and this is used on many contracts, can we have this added? I guess just giving it random values for the txid (but with the same hash rule and char length) might be enough? ๐ค Not sure, but at least for now that could work.
Thanks!
Hey,
I'm one of the developers of feather (https://github.com/pretentious7/Feather), I've also been using a small set of mocks to test smartweave contracts with jest. I have better typing support so the output of execute shows up as
export type ContractHandlerOutput =
| {state: StateInterface}
| {result: ResultInterface};
Would there be interest in a pr adding this support? Also, project linter specs would be cool.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.