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

Polymedia leaderboard #27

Merged
merged 6 commits into from
Sep 6, 2023

Conversation

juzybits
Copy link
Contributor

This PR:

  • Loads the Polymedia Profiles associated to leader addresses in the daily and all-time leaderboards.
  • Displays the Polymedia Profile username in .leaderboard-name and in the .game-info card.

The leaderboard HTML is updated asynchronously to avoid blocking the rendering of the UI. So there are no additional delays in displaying the leaderboard addresses to the user. The addresses get updated when the profiles are ready from 0x12...3456 to John Doe (0x12...3456).

I noticed this codebase uses an older version of the Sui SDK, @mysten/sui.js@0.33.0. Recent versions of the Sui SDK deprecated a number of interfaces and classes. This resulted in some dependency compatibility issues when installing the latest version of @polymedia/profile-sdk. To solve this, I released a custom version of the Polymedia Profile SDK, @polymedia/profile-sdk@1.4.0-mysten033, that uses the same Sui SDK version as this project. If you upgrade your @mysten/sui.js dependency, it will be straightforward to also upgrade to the latest version of @polymedia/profile-sdk: mainly you'll have to pass a SuiClient instead of a JsonRpcProvider to the ProfileManager constructor.

@jaredcosulich jaredcosulich merged commit a808b3d into codeyam-ai:jc-contest Sep 6, 2023
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