-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1 @@ | |||
v16.14.2 |
There was a problem hiding this comment.
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
"@dcspark/cip5-js": "^1.0.0", | ||
"@emurgo/cip14-js": "^3.0.1", |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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
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); | ||
}; |
There was a problem hiding this comment.
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
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; | ||
} | ||
}; |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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": { |
There was a problem hiding this comment.
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
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.