dOrgTech / arc.react

DAO Enable React Applications
22 stars 10 forks source link

Implement Code Context #9

Closed dOrgJelli closed 4 years ago

dOrgJelli commented 5 years ago

Implement the Code context:

<Proposal.Code>
{code => (
  <button onClick={() => await code.upvote(arg)}/>
)}
</Proposal.Code>

This is bound to be complex because of the asynchronous nature of the transaction calls. The ideal user experience is:

The above "UX wants" will inevitably bleed into the DevExp, so I'll leave the above code sample as a starting point and we'll see where it goes from there.

dOrgJelli commented 5 years ago

This will also cover contract view methods.

dOrgJelli commented 4 years ago

This is satisfied by the Entity context.