-
Notifications
You must be signed in to change notification settings - Fork 50
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
[$7800 iDNA] Build an oracle-driven dapp using RefundableOracleLock smart contract #628
Comments
hello. Could you tell me if it exists a test environment for that ? |
could you confirm this control is ok ? https://github.com/idena-network/idena-examples/blob/4c7957dedfcece7deb33406115ea3dede8e1ce3a/nodejs-protobuf-transaction-signing/transaction.js#L88 |
You can run an automine node locally.
Please check the latest protobuf models here |
ok for test. thx. if (this.amount) { |
Fixed. Thank you @redDwarf03 👍 |
when I run an automize node locally, I have issue with the smart contract stake: Thx |
Yes, the minimum smart contract stake seems relevant for the empty network. In order to premint required amount of coins you can use the following
|
[$7800 iDNA] Build an oracle-driven dapp using
RefundableOracleLock
smart contractPrize pool
Total prize pool is 65K iDNA. There are 6 prizes to be distributed:
All the prizes are paid in iDNA at the price of $0.12
Challenge description
RefundableOracleLock
predefined smart contractsSubmission Requirements
All code must be open source.
All submissions must be working solutions.
Submissions must use one or more Idena smart contracts.
Use cases:
1. Decentralized Kickstarter (prizes: 5K-15K iDNA)
A website that allows any validated or not validated Idena user to create a wallet to collect funds for a project. Coins of such a wallet will be unlocked at a certain moment in the future based on the results of an oracle voting. If the criteria specified in the voting are not met (oracles voted against), the money is returned to all donors.
Functions:
2. Prediction market (prizes: 5K-25K iDNA)
A website that allows taking bets on events for already created OracleVoting contracts that will be launched on a certain date in the future. When OracleVoting starts, the fact of an event occurrence is certified by oracles. The losing side's coins are sent to the winning side's contract. The coins of the winning side are distributed to the winners in proportion to their bets.
Functions:
3. Other
Participants may choose any other use cases for development. The size of the awarded prize will depend on the use case complexity.
How to participate
Apply and submit results in comments to the issue.
Hackathon dates
February 10 - March 3, 2021
Submission deadline
18:00 UTC, March 3, 2021
Resources
Idena smart contracts
Start reading about smart contracts here:
https://github.com/idena-network/idena-desktop/wiki/Idena-smart-contracts
RefundableOracleLock smart contract:
https://github.com/idena-network/idena-desktop/wiki/RefundableOracleLock
Raw transactions
Sending raw transactions with the Idena app:
https://github.com/idena-network/idena-desktop/wiki/DNA-url#4-sign-and-send-a-raw-transaction
Protobuf model of transactions:
https://github.com/idena-network/idena-go/blob/master/protobuf/models.proto#L6
Raw transaction examples:
https://github.com/idena-network/idena-examples/tree/master/nodejs-protobuf-transaction-signing
Sign-in with Idena
https://github.com/idena-network/idena-desktop/wiki/Sign-in-with-Idena
Idena RPC
http://rpc.idena.io
Judging Criteria
The decision on awarding of the prizes will be made on the basis of voting by Idena network participants and expert opinion (the Idena team and community developers). The size of the awarded prize will depend on complexity and quality of the submission.
The Idena team may consider funding further development of the winning solutions governed by the oracles voting.
Winner Announcement Date
Shortly after reviewing results by the Idena team and community voting.
The text was updated successfully, but these errors were encountered: