-
Notifications
You must be signed in to change notification settings - Fork 529
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
Milestone Delivery: Green Lemon Protocol🍋 Milestone 2 #604
Conversation
Thanks for the delivery. We will look into it as soon as possible. An external evaluator might also take a look at your delivery. |
Hi @wuyahuang apologies for the delay, we are on a company retreat this week so it will take me some time to review your milestone but I will reach out to you soon with any questions I may have. |
Hi again @wuyahuang sorry for the delay.
I ran Relayer: error[E0158]: associated consts cannot be referenced in patterns
--> lib.rs:128:5
|
128 | / #[derive(SpreadAllocate)]
129 | | pub struct Relayer {
130 | | // Stores the address of contract verifier
131 | | pub verifier: AccountId,
... |
145 | | pub next_index: u32,
146 | | }
| |_____^
For more information about this error, try `rustc --explain E0158`.
error: could not compile `relayer` due to previous error Verifier: error[E0158]: associated consts cannot be referenced in patterns
--> lib.rs:30:5
|
30 | pub struct Verifier {}
| ^^^^^^^^^^^^^^^^^^^^^^
For more information about this error, try `rustc --explain E0158`.
error: could not compile `verifier` due to previous error ERC721: error[E0158]: associated consts cannot be referenced in patterns
--> lib.rs:68:3
|
68 | / #[derive(Default, SpreadAllocate)]
69 | | pub struct Erc721 {
70 | | /// Total supply
71 | | total_supply: u32,
... |
83 | | base_uri: String,
84 | | }
| |___^
For more information about this error, try `rustc --explain E0158`.
error: could not compile `erc721` due to previous error I believe it has to do with this known issue where ink! 1.5.0 wasn't compatible with the latest This issue has the patch to fix the contracts. Are you able to fix these? Thanks! |
UPDATE: I apologize I spoke too soon @wuyahuang, simply running Please disregard my above comment and I will keep working on the evaluation. |
Hi, @keeganquigley I submitted the same issue to cargo-contract last month. I'm happy to see the issue is addressed. Please let me know if you have any further questions.😄 |
Hi @wuyahuang sorry again for the delay, I am currently only part-time and was off for a couple days last week.
Compiling sp-rpc v6.0.0 (https://github.com/paritytech/substrate#021f7126)
error: `sp_trie::recorder::Recorder<H>::as_trie_recorder::{opaque#0}<'_>` does not live long enough
--> /Users/keeganquigley/.cargo/git/checkouts/substrate-7e08433d4c370a21/021f712/primitives/state-machine/src/trie_backend_essence.rs:181:44
|
181 | let recorder = recorder.as_mut().map(|r| r as _);
| ^
error: `sp_trie::recorder::Recorder<H>::as_trie_recorder::{opaque#0}<'_>` does not live long enough
--> /Users/keeganquigley/.cargo/git/checkouts/substrate-7e08433d4c370a21/021f712/primitives/state-machine/src/trie_backend_essence.rs:219:44
|
219 | let recorder = recorder.as_mut().map(|r| r as _);
| ^
error: could not compile `sp-state-machine` due to 2 previous errors
warning: build failed, waiting for other jobs to finish... I get the same errors when cloning https://github.com/GreenLemonProtocol/substrate-contracts-node.git and trying to run it that way. The contracts build and run successfully on a local
I know these suggestions might seem minor or pedantic, but seeing as this milestone will complete the grant, it would be great to see more improved, robust docs. They should give a good introduction to the different components of the project and any frameworks used. As it stands now, without any audio in the video, it is hard to tell exactly what is happening. |
Hi, @keeganquigley Thanks for your valuable feedback.
The version of my DEV environment(macOS 11.3.1)
rustc 1.64.0 (a55dd71d5 2022-09-19)
cargo 1.64.0 (387270bc7 2022-09-16)
|
Thank you for the updated documentation @wuyahuang, it is looking much better now! I appreciate you adding the details on overall functionality. Reading through your dksap-polkadot repo also helped to give me a good understanding of your product. Regarding your response about the node, I am still not sure how to execute it. The release page has a package file When I download the source code For example, with the official release I download the But with your node there is no |
Hi, @keeganquigley And execute I also uploaded a new file |
thanks @wuyahuang when I do that it says:
When I try it with sudo it says this:
However, extracting your new I think the issue is that when downloading it directly, the mac doesn't recognize it as a unix executable file, as you can see below (the file with the (1) is the file with no I will continue my evaluation and get back to you. |
@keeganquigley Thanks for your help with this issue. I just deleted the original executable file |
@wuyahuang thanks for your help. I was able to get through all the steps up until the Circuits section.
sh ./circuits/build.sh
Compiling withdraw.zok
Compilation failed:
withdraw.zok:7:35
Visibility modifiers on arguments are only allowed on the entrypoint function
withdraw.zok:7:55
Visibility modifiers on arguments are only allowed on the entrypoint function
withdraw.zok:7:94
Visibility modifiers on arguments are only allowed on the entrypoint function
mv: abi.json: No such file or directory
mv: rename out to ../build/out: No such file or directory Do you know what this might be indicating?
The commitment has been generated successfully, located in /Users/keeganquigley/ink/build/commitment.json However, the next script fails: node scripts/1-compute-witness.js
error: Command failed: cd build; zokrates compute-witness -a 1246573051891109157906697728096281706743063917384028885969089040311658538909 10228216762982226909411447107540944739390092935836241194442745356563891833683 282074524127326628435517427149838065622 173030805087624539772769074318515479165 189659110152103896296452029441145961554 179950539185128938459188096563022031432 500000000000 500000000000 434090476392859288492961792859103468004462980451820851543399067438715806797 324028898526253369467876196695238365669696791339117232792499465164618714289 0 20636625426020718969131298365984859231982649550971729229988535915544421356929 8234632431858659206959486870703726442454087730228411315786216865106603625166 7985001422402102077350925203503698316627789269711557462970266825665867053007 18097266179879782427361438755277450939722755112152115227098348943187633376449 17881168164677037514367869548776650520965052851469330112398906502158797604517 922786292280634969147910688433687283453311471541485803183285293828322638602 14966121255901869775959970702197500594950233358407635238140938902275743163839 15950129931660381885541753302118095863142450307256106174572389060872212753325 16464761340879542328718857346548831929741065470370013028703745046966789709133 0 0 0 0 0 0 0 0 0 0 I tried re-installing Zokrates to no avail. Here is my version: zokrates --version
ZoKrates 0.8.3 Can you help me out with these errors? I don't believe I've missed any steps. Thanks! |
@keeganquigley It looks like the compiler of the new zo-krates does not support our source code.
However, the issue is fixed after I upgraded to 0.8.3 and remove |
Hi @wuyahuang thanks again for your patience. You can find my in-progress eval here. No show stoppers anymore, I was able to get through everything! But please check to see if you can make any of the requested changes there. After which I will submit the eval to be merged. Thanks! |
Hi, @keeganquigley Thank you for the nice feedback. I updated the source code and tutorial as you requested.
|
Thank you for the changes @wuyahuang! I appreciate your quick communication during the process, and I am happy to accept your milestone. Also, nice app! You can find my final eval here. Once it is merged I will submit your invoice for payment. Cheers! |
@wuyahuang Your invoice has been forwarded for payment. Please allow up to 2 weeks for delivery. |
@wuyahuang One other question, are you able to provide an email address that I can use in filling out your information for our Substrate Builder's Program database? If you'd rather not publish it here you can send it to me at keegan@web3.foundation Thanks! |
@keeganquigley Thank you for taking the time to review this milestone, I really appreciate your time and effort. Cheers! |
@wuyahuang thanks! I have forwarded it to the SBP. |
hi @wuyahuang we transferred the payment today |
@Noc2 @keeganquigley @RouvenP Thank you for funding Green Lemon and bringing our idea into reality. 😄 |
Milestone Delivery Checklist
Link to the application pull request: w3f/Grants-Program#1096