Skip to content

feat(core): add IDL registration and retrieval RPC methods#255

Merged
lgalabru merged 15 commits intomainfrom
feat/surfnet-idl
Jul 29, 2025
Merged

feat(core): add IDL registration and retrieval RPC methods#255
lgalabru merged 15 commits intomainfrom
feat/surfnet-idl

Conversation

@BretasArthur1
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread crates/core/src/rpc/surfnet_cheatcodes.rs Outdated
Comment thread crates/core/src/surfnet/locker.rs Outdated
Comment thread crates/core/src/surfnet/locker.rs Outdated
Comment thread crates/core/src/tests/integration.rs Outdated

// Test 7: Verify context slot is correct
println!("Verifying response context");
let uuid_response_with_context = rpc_server
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We're not actually verifying any slot here, is that intentional?

Comment thread crates/core/src/tests/integration.rs
Comment thread crates/core/src/tests/integration.rs Outdated
…lot handling logic. Added new IDL version for testing and removed redundant debug prints.
Comment thread crates/types/src/types.rs Outdated
/// "id": 1
/// }
/// ```
#[rpc(meta, name = "surfnet_getIdl")]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

surfnet_getIdl or surfnet_getActiveIdl?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's get Idl because you can query for a specific one using the slot

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

yeah we're not providing an Idl identifier, we're querying using a property. maybe getIdlBySlot? Idk, but it feels like something is missing here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok, lets discuss it in tmrw's daily

@@ -0,0 +1,394 @@
{
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

these kind of files are generally referred to as fixtures, vs assets

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok

Copy link
Copy Markdown
Collaborator

@lgalabru lgalabru left a comment

Choose a reason for hiding this comment

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

Looking great, thank you for the extensive testing 🙏

@BretasArthur1
Copy link
Copy Markdown
Contributor Author

BretasArthur1 commented Jul 29, 2025

was a good one to test🫡

@BretasArthur1 BretasArthur1 requested a review from lgalabru July 29, 2025 03:25
@lgalabru lgalabru merged commit 2fb47a9 into main Jul 29, 2025
2 of 3 checks passed
@lgalabru lgalabru deleted the feat/surfnet-idl branch August 5, 2025 22:05
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.

3 participants