dapphub / dapple-script Goto Github PK
View Code? Open in Web Editor NEWDappleScript - A simple ethereum interaction language.
License: GNU General Public License v3.0
DappleScript - A simple ethereum interaction language.
License: GNU General Public License v3.0
via
an interpreter?Currently the real script execution has a step confirmation feature build in: dapple waits after each step before it got included into the chain and the result is the same as the simulated one.
My main motivation was to prevent errors caused by concurrent interaction points from different users as well as prevent a wrong transacton order.
I rediscovered that the later case is irrelevant: the account nonce takes part of this step. So the only reason for it to stay in is to prevent the further execution of the script in case an interaction step is dependant on state, which is also concurrently mutated during the scripts execution.
Is here waiting and aborting the right methodology, or should we deprecate step-confirmation, release all transactions at once, and handle this error case in a different way?
Hey,
I do not really know the code and the execution flow, but in line 56
if(obj.type in opts.classes > -1){
is possibly wrong. In my case obj.type in opts.classes
evaluates to false but is interpreted as 0 such that 0 > 1
evaluates to true.
In line 57 opts.classes[obj.type]
is referenced, but it can not be part of the object.
After I removed > -1
at least my code was deploying. But as I mentioned I am not really familiar with it. So sorry if I do much ado about very little.
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.