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

Link to ABI playground from verified contracts #1492

Merged
merged 4 commits into from
Aug 16, 2024
Merged

Conversation

lukaw3d
Copy link
Member

@lukaw3d lukaw3d commented Aug 1, 2024

image

Copy link

github-actions bot commented Aug 1, 2024

Deployed to Cloudflare Pages

Latest commit: b2491dea5a59abe890c5139f59807465d1a95500
Status:✅ Deploy successful!
Preview URL: https://dc9e43d2.oasis-explorer.pages.dev

src/app/components/ContractVerificationIcon/index.tsx Outdated Show resolved Hide resolved
Comment on lines 103 to 113
const scopeToPlaygroundURL: Record<Network, Partial<Record<Layer, string>>> = {
[Network.mainnet]: {
[Layer.emerald]: `https://abi-playground.oasis.io/?network=42262&contractAddress=${address_eth}`,
[Layer.sapphire]: `https://abi-playground.oasis.io/?network=23294&contractAddress=${address_eth}`,
},
[Network.testnet]: {
[Layer.emerald]: `https://abi-playground.oasis.io/?network=42261&contractAddress=${address_eth}`,
[Layer.sapphire]: `https://abi-playground.oasis.io/?network=23295&contractAddress=${address_eth}`,
},
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can this be moved to some kind of config? ABI playground base url would also be nice to be extracted, so it's easy configurable.

Copy link
Member

@tjanez tjanez left a comment

Choose a reason for hiding this comment

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

👍 from product's viewpoint

@lukaw3d lukaw3d force-pushed the lw/abi-playground branch from 0834380 to 629ca6a Compare August 16, 2024 16:32
@lukaw3d lukaw3d enabled auto-merge August 16, 2024 17:49
@lukaw3d lukaw3d merged commit ff75d5b into master Aug 16, 2024
8 checks passed
@lukaw3d lukaw3d deleted the lw/abi-playground branch August 16, 2024 17:50
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