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

Introduces generic defillama scrapper #44

Merged
merged 9 commits into from
Sep 11, 2024

Conversation

daniel-baez
Copy link
Contributor

@daniel-baez daniel-baez commented Sep 11, 2024

What is this change?

This change introduces directory apps/shinkai-tool-defillama-tvl-rankings a simple function taking up to two parameters:

The first parameter is named categoryName and it's required, this must be one of the names seen under this table

The second optional parameter is named networkName, and it must be one of: 'Ethereum', 'Solana', 'Arbitrum', 'Base', 'Cardano', 'Near', 'BSC', 'Sui'

Using these two inputs the tool gets the right page from defillama.com returning a csv version of the main table found in it, optionally narrowing down by network name

Copy link
Contributor

@agallardol agallardol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@daniel-baez is this tool replacing the existing one about defillama? If that's the case maybe we can just remove the old one? :(

@@ -237,6 +247,16 @@ lazy_static! {
.unwrap(),
)),
);
m.insert(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure but it seems to be added twice

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, let me remove it

package.json Outdated
@@ -1,6 +1,6 @@
{
"name": "@shinkai_protocol/source",
"version": "0.7.13",
"version": "0.7.12",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we are "downgrading" the package version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m... maybe I pressed x by mistake, let me fix

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@daniel-baez
Copy link
Contributor Author

@daniel-baez is this tool replacing the existing one about defillama? If that's the case maybe we can just remove the old one? :(

yes, it can make the same results

@agallardol agallardol merged commit a381438 into dcSpark:main Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants