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

Bridge Explorer implementation #80

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

matejos
Copy link
Collaborator

@matejos matejos commented Jan 9, 2024

Forked from Milkomeda bridge explorer as requested. There are still Milkomeda assets, as I haven't found any usable graphics for Zeko etc...
Some components still to be changed, e.g. Search functionality, will do that swiftly after I can get the real data.

@@ -0,0 +1 @@
v16.14.2
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably we want to update to at least node18 since 16 is no longer supports by a lot of libraries these days

Comment on lines +6 to +7
"@dcspark/cip5-js": "^1.0.0",
"@emurgo/cip14-js": "^3.0.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need these two anymore since they're Cardano specific

"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.0.1",
"@testing-library/user-event": "^13.5.0",
"algosdk": "^1.21.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't need this since it's Algorand specific

"buffer": "^6.0.3",
"clsx": "^1.2.1",
"crypto-browserify": "^3.12.0",
"ethers": "^5.6.4",
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't need this since it's EVM-specific

"react-scripts": "5.0.1",
"react-simple-pull-to-refresh": "1.3.3",
"serve": "^13.0.2",
"typescript": "^4.6.3",
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably want to upgrade to typescript v5 since many tools require it these days

Comment on lines +114 to +117
public static isEvmTxIdAsync = (txId: string) => {
// try basic regex, to just validate if tx is valid evm tx id
return /^0x([A-Fa-f0-9]{64})$/.test(txId);
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs to be a Mina tx id check

Comment on lines +119 to +133
public static isCardanoAddress = (address: string) => {
try {
// Not sure what should be the limit for Cardano Addresses?
// Also not sure if I should use serialization-lib vs just bech32 decoding
// for detecing if its a valid cardano address
const bech32Info = bech32.decode(address, 1000);
if (bech32Info.prefix === Cip5.miscellaneous.addr) {
return true;
} else {
return false;
}
} catch (e) {
return false;
}
};
Copy link
Contributor

Choose a reason for hiding this comment

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

don't need this

import { BridgeTransferResponse } from "./Services/BridgeService";

export enum SearchInputType {
EvmAddress = "evmAddress",
Copy link
Contributor

Choose a reason for hiding this comment

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

EVM -> Zeko

}

export type ProcessedBridgeRequestResponse = BridgeTransferResponse & {
// symbol?: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this?

@@ -0,0 +1,12 @@
{
"c1-devnet": {
Copy link
Contributor

Choose a reason for hiding this comment

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

the name of the keys in this object need to be updated

@L-as L-as marked this pull request as draft January 2, 2025 13:54
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.

2 participants