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

Support Mode in Registry and Operate #122

Merged
merged 3 commits into from
Oct 23, 2024
Merged

Support Mode in Registry and Operate #122

merged 3 commits into from
Oct 23, 2024

Conversation

Tanya-atatakai
Copy link
Collaborator

Proposed changes

  • Support mode in registry and operate;
  • Update some address links to use the mono repo's shared component to support the explorer link mode (please note that it now has the external link icon shows a simple title on hover instead of tooltip, we need to migrate the component from autonolas-frontend-library, but it's too heavy to do it as part of this PR)

Operate app:

Screenshot 2024-10-23 at 09 32 42

Registry (Tested the whole flow on fork)

Empty list

image

Service minting

Screenshot 2024-10-23 at 11 46 39

Services

Screenshot 2024-10-23 at 11 48 08

All steps tested

Screenshot 2024-10-23 at 12 50 47

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Copy link

vercel bot commented Oct 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
launch ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 23, 2024 9:48am
registry ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 23, 2024 9:48am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
bond ⬜️ Ignored (Inspect) Visit Preview Oct 23, 2024 9:48am
govern ⬜️ Ignored (Inspect) Visit Preview Oct 23, 2024 9:48am
operate ⬜️ Ignored (Inspect) Visit Preview Oct 23, 2024 9:48am

@@ -42,6 +59,13 @@ const POLYGON_ADDRESSES: Addresses = {
operatorWhitelist: '0x526E064cB694E8f5B7DB299158e17F33055B3943',
};

const MODE_ADDRESSES: Addresses = {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@kupermind you can verify these addresses

@@ -59,71 +83,60 @@ const COMMON_TEST_ADDRESSES: Addresses = {
// TODO: add testcases for all networks
// get addresses from scripts/deployment folder in autonolas-registries repo
export const ADDRESSES = {
1: MAINNET_ADDRESSES,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

just resorted (placed all test nets at the end) and replaced the numbers with [chain.id] for better readability

if (!text || text === NA) return NA;
return <AddressLink {...addressLinkProps} text={text} chainName={chainName} />;
return <AddressLinkSimple address={record.owner} chainId={chainId} />;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the AddressLink from @autonolas/frontend-library creates the url based on the provided chainId, there's no way to pass a custom URL from here. Just simply replaced it with the mono repo's component, so we can see correct scan URL for mode.

import { RPC_URLS } from 'libs/util-constants/src';

const mainnetChain =
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed this after Josh's proposal in a previous PR, but not completely - imo it would be easier to switch between prod and test RPCs by simply updating NEXT_PUBLIC_IS_CONNECTED_TO_TEST_NET (once we have a paid tenderly account); however, there might not be a need for this, let's see

Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah, i agree, or read NODE_ENV development~
..._TEST_NET is a tough one, as there are testnets like Sepolia, Goerli, .etc
either way, thanks for addressing 🙏

@@ -1,4 +1,5 @@
import { EXPLORER_URLS, UNICODE_SYMBOLS } from 'libs/util-constants/src';
// eslint-disable-next-line @nx/enforce-module-boundaries
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it's not ideal, but unfortunately I didn't have time to fix it properly, it's a global problem in mono repo, gonna bring it up on the next eng meeting..

Copy link
Collaborator

Choose a reason for hiding this comment

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

added to the doc, can't remember what the other item was, will DM

@Tanya-atatakai Tanya-atatakai changed the title Tanya/mode Support Mode in Registry and Operate Oct 23, 2024
11155420: COMMON_TEST_ADDRESSES,
// celo alfajores - testnet for celo
44787: COMMON_TEST_ADDRESSES,
[goerli.id]: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe goerli could go for good.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Same about polygon mumbai

Copy link
Collaborator

Choose a reason for hiding this comment

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

goerli -> sepolia, polygonMumbai -> polygonAmoy. not urgent at all, but something to fix later.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, one day.... we'll do it

Copy link
Collaborator

Choose a reason for hiding this comment

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

afaik, goerli RPCs are now all dead and polygon mumbai too.. will add to eng meeting doc

@DavidMinarsch DavidMinarsch merged commit cf27dda into main Oct 23, 2024
11 checks passed
@DavidMinarsch DavidMinarsch deleted the tanya/mode branch October 23, 2024 09:49
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.

4 participants