-
Notifications
You must be signed in to change notification settings - Fork 69
Add origins in activity #373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add origins in activity #373
Conversation
0b100af
to
eb0aadc
Compare
…nt to fit JavaScript which uses the word 'amount'
Something to clear up before commenting on the JavaScript API changed to support this PR, instead of doing this:
We should be doing this (i.e. not access
The latter assumes this:
And for this PRLet's just get rid of
Instead, let's make the
where
the developer can choose assign
And if they are sure the attribute names don't clash, this is easier to migrate to since only the dataChanged handler needs to be modified:
Then this is unchanged:
All of these assumes that we have at most 1 token, at most 1 card within each firing of |
So |
…ata access in callback
@colourful-land have updated the JavaScript docs. |
I suggest we preserve the value of
so that the following JavaScript code in existing TokenScript files doesn't need to be updated immediately:
|
|
…butes with card origins
|
Not sure if anyone has mod in local copy - also didn't like rebase |
I don't know why it is a problem to be solved… |
@hboon I prefer this syntax for the web3 object as it separates them and prevents collisions (while also letting you know what is global and what is based on cards)
|
Up to you if that's a better way to write the JavaScript for the views. What you suggested is the same as the one I suggested for what the TokenScript engine exposes as an API, i.e there is
|
This PR seems to cover a diverse range of updates.
|
…+add-origins-in-activity Add origins in activity
As per TokenScript weekly meeting #40, developers should base their Activity A3 project on the files provided in ERCs directory. Notice that this is based on PR #365 which will be merged in a few weeks since αW is released with a fix