-
Notifications
You must be signed in to change notification settings - Fork 3.8k
DAWN-113 ⁃ Verify all eos/contracts/* work (at least compile) #809
Comments
➤ Kevin Heifner commented: Users will look in eos/contracts/* for examples of how to create contracts. |
➤ Brian Johnson commented: (Was just going to put one example, but then ended up looking through all of them) contracts/storage/storage.hpp's Link struct that has no test code (at least in our repo) and I do not know how eospath and ipfspath could possibly work. contracts/social/social.cpp which does not have a "void apply() {...}" definition (still has apply_social_post) so can never run, even if it was loaded into eos contracts/tic_tac_toe could possibly be good examples, but they are not even being compiled to wast, so we have no idea if they even compile, let alone run (same goes for contracts/skeleton) contracts/dice doesn't compile, has lots of documentation, but does not have "void apply() {...}" definition (it doesn't even match the previous apply function format, it has apply_offer, apply_cancel,...) [~dan.larimer] [~admin] [~thomas.cox] |
➤ Kevin Heifner commented: Please just go through each contract and make sure they build and can be loaded. If they can't be very quickly fixed we need to remove them from github. |
➤ Thomas B. Cox commented: Getting helpful input from Jon-Eric Cook (joneric). Shout out to him. |
Status of the contracts so far. Contracts that cause errors will be fixed or withdrawn prior to the 12/5 launch (checked means ok, unchecked means failing):
|
joneric's steps for recreating the error with the 'exchange' contract: Preconditions:eosd and eosc have both successfully ran on my MacBook Pro Objective:Recreate the error observed when attempting to “./eosc set” the exchange contract Instructions:Navigate to ~/eos/build/programs/eosd and delete the folder “data-dir”
Run the following command:
It should exit with an expected error; this initializes the data-dir and the config.ini file. Navigate to ~/eos/build/programs/eosd/data-dir
Run the following command:
eosd should now be running and producing blocks
Create a wallet
Import the wallet of the “inita” account (local testnet only)
Create the owner keys and save for later use
Create the active keys and save for later use
Create the exchange account
Import the active private key of the exchange account
Set the exchange smart contract onto the locally running eos blockchain
The error should appear in the terminal |
➤ Thomas B. Cox commented: [~pravin.bezwada] please verify simply which contracts are working and which are not, and remove non-working contracts from the 12/4 distro. Jon-Eric did a pass (see above). |
➤ Dhanesh Valappil commented: Suggestions:
Tested the buildable smart contracts and all looks good |
➤ Kevin Heifner commented: |
➤ Bezwada Satyapravin commented: If some contracts don't work or are not ready, should we remove them from git or comment out them from CMakeList.txt? |
I have spent the last few days as a newb trying to get the mentioned broken contracts to work, it has been very discouraging. Removing them altogether until they work is a great idea from personal experience. |
Resolved by #6041 |
eos/contracts/* has a number of example contracts.
These should be verified that they all work or otherwise removed.
If they do not work because of lack of API then we need to access to add required API or document that API is not yet ready.
ACT:
eos/contracts/* all can be loaded into eosd and can process their respective messages.
The text was updated successfully, but these errors were encountered: