Skip to content
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

how to make a contract that executes on receipt of REV? #31

Open
dckc opened this issue Sep 7, 2020 · 5 comments
Open

how to make a contract that executes on receipt of REV? #31

dckc opened this issue Sep 7, 2020 · 5 comments
Labels
question Further information is requested

Comments

@dckc
Copy link

dckc commented Sep 7, 2020

As far as I can tell, the current RevVault contract makes this impossible.

I hope to evolve this into a proposal to make it possible, as discussed last night with @leithaus .

It would be more straightforward if we could withdraw and deposit purses from rholang as well as do signed transfers

@dckc dckc added the question Further information is requested label Sep 7, 2020
@tgrospic
Copy link
Collaborator

tgrospic commented Sep 9, 2020

@fabcotech can you provide your example of purse transfer which can enable execution of actions when REV transfer occurs. I'm not sure if I missing something here but this should be possible. FYI @dckc

@dckc
Copy link
Author

dckc commented Sep 9, 2020

I'm very interested to see how this works.

In particular, it would make it possible to tally the dust votes using a smart contract, without all the trouble of scraping / indexing all the transactions in an off-chain database.

cc @jimscarver @zsluedem

@dckc
Copy link
Author

dckc commented Sep 24, 2020

While sketching a CrowdFund contract, I think I figured it out: a fromUnforgeable vault along with the unforgeable name that it came from work like an ERTP purse / payment.

sketch: rchain-community/rgov#19 791ffe6

@dckc
Copy link
Author

dckc commented Mar 1, 2021

I think I got it working ... rchain-community/rgov#37
and deployed to testnet: rho:id:1xm16jeazfxpyyd7a4834st854nsjgg8izdzbuagc7cigcd3xu3nqz

@dckc
Copy link
Author

dckc commented Mar 3, 2021

RevIssuer fixed so that it actually works is deployed to testnet at rho:id:961h8n36ikxz4yxxfye898wh7or3d37fbp1yddmsei1rw64hcyzjmf

ref rchain-community/rgov#19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants