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

[Feature] - Verification of Contracts on Meter #1825

Open
3 tasks done
remocwenn opened this issue Dec 15, 2022 · 0 comments
Open
3 tasks done

[Feature] - Verification of Contracts on Meter #1825

remocwenn opened this issue Dec 15, 2022 · 0 comments

Comments

@remocwenn
Copy link

remocwenn commented Dec 15, 2022

Prerequisites

  • I checked to make sure that this feature has not already been filed
  • I'm reporting this information to the correct repository
  • I understand enough about this issue to complete a comprehensive document

Describe the feature and its requirements

The contracts deployed on Meter for CryptoBlades are needing to be verified. I have included the source code information section from the Meter development documentation below.

Meter explorer uses Sourcify for verifying the onchain contracts' byte code is exactly the same as the source code. Verifying contracts also allows the explorer to properly decode smart contract transactions. There are various tools (for example Remix plugins) that help developers to verify on Sourcify.
The submission for source code can be either done through Meter Explorer or Sourcify Portal. There are two levels of verification: 1. source code match and 2. both source code, metadata match. Source code match is considered the minimum for contract verification purposes.
The main difference between Sourcify and Etherscan verification is that Sourcify requires metadata to be uploaded for verification in addition to source code and byte code. Information on finding the metadata file is available in Sourcify Documents. Both the Meter explorer and Sourcify website allow uploading zip file. If your file is too large, we recommend directly using the Sourcify website to upload multiple files. If you are using Truffle, sometimes after you upload the json file, Sourcify complains not able to find the corresponding find .sol files in your local file path. You could try zip all the contract source code in a file and upload to Sourcify website. It will typically resolve the issue. From time to time, Sourcify may have problem recognizing files uploaded from Windows computers. You could try using a Mac to upload the files.

Is your feature request related to an existing issue? Please describe.

It is related to [Feature] - Launch on Meter #1770

Is there anything stopping this feature being completed?

N/A

Describe alternatives you've considered

N/A

Additional context

The Sourcify portal from the Meter documentation does support uploading a single zip with all of the smart contracts and/or metadata.
https://sourcify.dev/#/verifier

However, it might be even more involved than this based upon a quick and initial look into this by Taloner. It could require something to be written that would get all of the source files together so they can be uploaded by hand or so that they can be verified via the Meter API after getting the source files together. It would be a brand new script/verification process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants