Skip to content

feat: added featured app revoke - #2114

Open
phillip-cashen wants to merge 8 commits into
canton-network:mainfrom
phillip-cashen:feat/featured-app-revoke
Open

feat: added featured app revoke#2114
phillip-cashen wants to merge 8 commits into
canton-network:mainfrom
phillip-cashen:feat/featured-app-revoke

Conversation

@phillip-cashen

Copy link
Copy Markdown

hey Wallet Team,

hope you are doing well, super cool repo you have here!

i took the liberty of adding a new feature to the featured app control, namely for revoking a featured app status. I tried as hard as possible to ensure it follow existing patterns and behavior of the repo.

i also added a little helper to scan-api that handles the annoyance of scan.localhost without needing to changes /etc/hosts/ files for the mapping (this makes it a lot easier to run the code for people not familiar with the repo).

Looking forward to seeing your feedback and thoughts !

Signed-off-by: Phillip Olesen [Cashen] <phillip@cashen.cc>
@phillip-cashen
phillip-cashen requested a review from a team as a code owner July 10, 2026 11:28

@rukmini-basu-da rukmini-basu-da left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@phillip-cashen

phillip-cashen commented Jul 24, 2026

Copy link
Copy Markdown
Author

hey @rukmini-basu-da thanks for approving and merging with main! I am not able to start the workflows (they are awaiting approval) is that something you can do ?

Signed-off-by: Phillip Olesen [Cashen] <phillip@cashen.cc>
@phillip-cashen

phillip-cashen commented Jul 24, 2026

Copy link
Copy Markdown
Author

build had gotten broken because of this pr:
#2173

I have updated a small fix above, @rukmini-basu-da can you approve workflows again ?

@mateuszpiatkowski-da mateuszpiatkowski-da left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey @phillip-cashen! Thank you for your contribution to our project!

I've managed to review you PR after the changes and left some comments. Also, I've noticed that there are some pipeline scripts that are in red and we'll have to address that as well. :)

'6c5802f86709a0ad4784af81f0bab40f3070b2f58128d8843da1e1784c147802:Splice.Amulet:FeaturedAppRight'
)

expect(command.choice).toEqual('FeaturedAppRight_Cancel')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
expect(command.choice).toEqual('FeaturedAppRight_Cancel')
expect(command).toStrictEquak({
// full object properties
})

This will ensure that the function returns the object of desired interface :)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

i have updated it to use strictEqual 👍

Comment thread core/amulet-service/src/amulet-service-impl.test.ts
Comment thread core/splice-client/src/scan-api-fetch.ts
}
}

async function fetchViaNodeHttp(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Truth be told I'm not sure I understand the logic flow here.

Could I ask you to simplify the logic and, if not possible, document it properly so that it can shine some light for other visitors? JSDoc would be fantastic :)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I'll add the JSDOC to explain the flow 👍

the TLDR:
we basically just take the the string, split it into its comments (scheme, port, path & query) and then reconstruct it with a bypass for IPv6 (::1) and setting the localnet nginx to match the vhost.

options?: GrantFeaturedAppRightsOptions
) => Promise<FeaturedAppRight | undefined>
/**
* Submits a command to revoke featured app rights for validator operator.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we can remove this jsdoc since it's already attached to implementation in namespace.ts

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

removed 👍

Signed-off-by: Phillip Olesen [Cashen] <phillip@cashen.cc>
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