Uh oh!
There was an error while loading. Please reload this page.
Add origins in activity - #373
Conversation
0b100af to
eb0aadcCompare…nt to fit JavaScript which uses the word 'amount'
hboon
commented
Jul 6, 2020
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 |
hboon
commented
Jul 6, 2020
So |
…ata access in callback
hboon
commented
Jul 13, 2020
@colourful-land have updated the JavaScript docs. |
hboon
commented
Jul 14, 2020
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
Uh oh!
There was an error while loading. Please reload this page.
hboon
commented
Jul 15, 2020
|
overseers-desk
commented
Jul 15, 2020
Not sure if anyone has mod in local copy - also didn't like rebase |
overseers-desk
commented
Jul 15, 2020
I don't know why it is a problem to be solved… |
JamesANZ
commented
Jul 15, 2020
@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) |
hboon
commented
Jul 15, 2020
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 |
JamesSmartCell
commented
Jul 20, 2020
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