-
Notifications
You must be signed in to change notification settings - Fork 7
Implement "Expert Metadata" (Profile Data) #21
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
Merged
Bosun-Josh121
merged 11 commits into
LightForgeHub:main
from
nnennaokoye:nnennaokoye/skillsphere
Jan 27, 2026
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
4f48113
add data_uri to ExpertRecord
cbb51d0
persist data_uri in ExpertRecord and default to empty
c5787c2
identity-registry: add ProfileUpdated event and allow deprecated publish
d5adfb2
identity-registry
b7d9619
expose add_expert and update_profile
e78d60c
add UriTooLong and NotVerified errors
405329b
tests
aca3900
add ProfileUpdated event and allow deprecated publish
806c669
persist data_uri in ExpertRecord and default to empty
86eabf9
persist data_uri in ExpertRecord and default to empty
e550b14
storage
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π§© Analysis chain
π Web query:
soroban-sdk events publish deprecated 2025π‘ Result:
In Aug 2025, the Rust Soroban SDK (rs-soroban-sdk) deprecated the old
Events::publish(...)API (i.e.,env.events().publish(...)). The deprecation landed in PR #1524 (merged Aug 6, 2025) and is called out in the v23.0.0-rc.3 release notes (published Aug 28, 2025) as βDeprecate old events publish methodβ. [1][2]Replacement (Protocol 23 / βWhiskβ pattern): define events with the
#[contractevent]macro and publish by callingpublish(&env)on the event value/struct (so the event is included in the contract spec). [1][3]Example from Stellar docs:
[3]
Why: the
#[contractevent]approach is now preferred because it embeds event definitions into the contract spec, enabling downstream tooling/bindings for events. [1]Sources:
[1] stellar/rs-soroban-sdk#1524
[2] https://github.com/stellar/rs-soroban-sdk/releases/tag/v23.0.0-rc.3
[3] https://developers.stellar.org/docs/build/smart-contracts/example-contracts/events
π Script executed:
fd -e toml -type f | head -20Repository: LightForgeHub/SkillSphere-Contracts
Length of output: 249
π Script executed:
Repository: LightForgeHub/SkillSphere-Contracts
Length of output: 187
π Script executed:
Repository: LightForgeHub/SkillSphere-Contracts
Length of output: 743
π Script executed:
Repository: LightForgeHub/SkillSphere-Contracts
Length of output: 1665
Refactor event emission to use the modern
#[contractevent]macro pattern.The
env.events().publish()API was deprecated in soroban-sdk v23.0.0-rc.3 and is replaced by the#[contractevent]macro pattern. Your project uses soroban-sdk 23.1.1, where this deprecation is active. Remove the#[allow(deprecated)]suppression and refactor bothExpertStatusChangedEventandProfileUpdatedEventto use#[contractevent]:This approach embeds event definitions in the contract spec and enables downstream tooling. Apply the same pattern to
ProfileUpdatedEventwithtopics = ["profile_updated"].π€ Prompt for AI Agents