-
Notifications
You must be signed in to change notification settings - Fork 12
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
Get metadata for contracts verified on celoscan #169
Conversation
🦋 Changeset detectedLatest commit: 7964290 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
68f1bb8
to
97e761c
Compare
78d33a2
to
08b367d
Compare
wait a few seconds befoe stoping ganache for cli test for cleanup to happen
ignore openHandles, give more space for slow tests since this is blockchain set default timeout longer,
# Conflicts: # packages/cli/src/commands/lockedgold/lock.test.ts
after getting past the issue of "warn must be string or error not type error" issue. the true Error is
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #169 +/- ##
==========================================
- Coverage 72.91% 68.71% -4.20%
==========================================
Files 77 128 +51
Lines 3589 5981 +2392
Branches 734 962 +228
==========================================
+ Hits 2617 4110 +1493
- Misses 925 1792 +867
- Partials 47 79 +32 ☔ View full report in Codecov by Sentry. |
# Conflicts: # docs/sdk/explorer/classes/block_explorer.BlockExplorer.md # docs/sdk/explorer/classes/log_explorer.LogExplorer.md # docs/sdk/explorer/classes/sourcify.Metadata.md # docs/sdk/explorer/interfaces/base.ContractDetails.md # docs/sdk/explorer/interfaces/base.ContractMapping.md # docs/sdk/explorer/interfaces/block_explorer.CallDetails.md # docs/sdk/explorer/interfaces/block_explorer.ContractNameAndMethodAbi.md # docs/sdk/explorer/interfaces/block_explorer.ParsedBlock.md # docs/sdk/explorer/interfaces/block_explorer.ParsedTx.md # docs/sdk/explorer/interfaces/sourcify.MetadataResponse.md # docs/sdk/explorer/modules/base.md # docs/sdk/explorer/modules/block_explorer.md # docs/sdk/explorer/modules/log_explorer.md # docs/sdk/explorer/modules/sourcify.md # packages/cli/package.json # packages/cli/src/commands/account/register.test.ts # packages/cli/src/commands/account/set-name.test.ts # packages/cli/src/commands/governance/propose.test.ts # packages/cli/src/commands/governance/upvote.test.ts # packages/cli/src/commands/governance/withdraw.test.ts # packages/cli/src/commands/lockedgold/lock.test.ts # packages/cli/src/commands/lockedgold/unlock.test.ts # packages/cli/src/commands/lockedgold/update-delegated-amount.test.ts # packages/cli/src/commands/network/__snapshots__/contracts.test.ts.snap # packages/cli/src/commands/transfer/dollars.test.ts # packages/cli/src/commands/transfer/euros.test.ts # packages/cli/src/test-utils/cliUtils.ts # packages/docs/sdk/docs/explorer/modules/globals.md # packages/sdk/network-utils/jestSetup.ts
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. Ignoring: Next stepsTake a deeper look at the dependencyTake a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev. Remove the packageIf you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency. Mark a package as acceptable riskTo ignore an alert, reply with a comment starting with |
it seems like fetch is not being intercepted by fetchMock anymore |
@SocketSecurity ignore npm/[email protected] |
Realizing for this to be actually usable we need to provide users with a way to add their own celoscan api key to celocli config and then pass it down and only call celoscan if the key is available. |
This PR is stale and will be closed in 30 days without activity |
Description
Adds looking up of contract data verified on celoscan as well as sourcify.
Other changes
updates test urls to example.com. using other domains like dummy.com or test is not a good practice as those are real domains which may end up giving weird or dangerous responses whereas example.com is reserved by iana for testing.|*
in releasecelo log which account is used since it is dependent on internal state
fixed some issues with long running tests not exiting in time
add fetchMock so tests dont need to call external http servers
increases default test timeout
Tested
YEP
Related issues
Backwards compatibility
yes.
Documentation
N.A
PR-Codex overview
The focus of this PR is to enhance governance functionality by adding the ability to build and view governance proposals interacting with verified contracts on Celoscan.
Detailed summary
transactions2.json
to.gitignore
fetch-mock
dependencycontracts.test.ts
to output CSVBlockExplorer
to various verification serviceschecks.ts
to importfetch
differentlyfetchMock
setup in test filesproposals.ts
for error handlingcelo.test.ts
for transfersfetchMock
setup intransfer-dollars.test.ts
InteractiveProposalBuilder
methods inproposals.ts
sourcify.md
upvote.test.ts