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

[1693] Update /protocols/stats to use latest Mayan stats #1722

Merged
merged 9 commits into from
Oct 1, 2024

Conversation

marianososto
Copy link
Collaborator

@marianososto marianososto commented Sep 24, 2024

  • /protocols/stats:
    • start consuming the data feed by the new endpoint of Mayan.
    • decopuple Allbridge stats since its different of Mayan.
    • adjust fix unit-tests.

curl example
https://api.staging.wormscan.io/api/v1/protocols/stats

[
	{
		"protocol": "mayan",
		"total_messages": 514825,
		"total_value_transferred": 1255829025,
		"last_day_messages": 2669,
		"last_day_diff_percentage": "0.52%",
		"last_24_hour_volume": 10188073
	},
	{
		"protocol": "portal_token_bridge",
		"total_messages": 4002282,
		"total_value_locked": 3304233713.708164,
		"total_value_transferred": 45153323282.38864,
		"last_day_messages": 1830,
		"last_day_diff_percentage": "0.05%",
		"last_24_hour_volume": 14482722.49806895
	},
	{
		"protocol": "allbridge",
		"total_messages": 89146,
		"total_value_transferred": 141834109.73528486,
		"last_day_messages": 176,
		"last_day_diff_percentage": "0.20%",
		"last_24_hour_volume": 447702.95702323684
	},
	{
		"protocol": "cctp",
		"total_messages": 139064,
		"total_value_transferred": 684343582.079408,
		"last_day_diff_percentage": "0.00%"
	},
	{
		"protocol": "native_token_transfer",
		"total_messages": 115590,
		"total_value_transferred": 264311053.16890272,
		"last_day_messages": 255,
		"last_day_diff_percentage": "0.22%",
		"last_24_hour_volume": 423835.66534546
	}
]

@marianososto marianososto self-assigned this Sep 24, 2024
@marianososto marianososto changed the title 1693 update mayan endpoint 2 [1693] Update /protocols/stats to use latest Mayan stats Sep 24, 2024
@marianososto marianososto marked this pull request as ready for review September 24, 2024 20:17
@marianososto marianososto marked this pull request as draft September 24, 2024 20:19
@marianososto marianososto marked this pull request as ready for review September 24, 2024 20:47
@marianososto marianososto merged commit c404a9a into main Oct 1, 2024
2 checks passed
@marianososto marianososto deleted the 1693-update-mayan-endpoint-2 branch October 1, 2024 14:09
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