zed-wong / mvg-bridge Goto Github PK
View Code? Open in Web Editor NEW๐ฐ MVG bridge classic: A bridge interface for MVM Mainnet
Home Page: https://mvg.finance
License: GNU General Public License v3.0
๐ฐ MVG bridge classic: A bridge interface for MVM Mainnet
Home Page: https://mvg.finance
License: GNU General Public License v3.0
Get recipient userID:
Pop up OAuth dialog, userMe
Or
getMixinContext, conversationID to userID
The external withdrawal wasn't triggered after the swap.
Switch to new domain
Automatically connect to the last connected wallet
Turn the footer into absolute
Add NFT deposit and withdrawal on Ethereum mainnet
use asyncdata to fix
sub gas fee
The current code format is kind of shitty and hard to maintain. But considering the functionality of a bridge wouldn't change much, it's still acceptable. I might try to adapt better formatting in the next project.
Add a deposit max button
Load Mixin NFT procedure:
Load UTXO and token information after OAuth, sync with available NFTs
Select returns the object of the NFT, { UTXO, token:{TOKEN} }, sync with storage
When clicking on Deposit
button, generate a sign request and QR. Then, loop UTXO with state === 'signed'
, if have same token id, submit mainnet tx.
After submitted, show deposit success dialog.
Contain block confirmation
And trim input
Currently, the withdrawal process ends up after the tx is created. And all the user will ever know is that the tx is created. This is kind of stupid. Should add a dialog or a page for querying current deposits/withdrawals. Fetch info from mixin API. e.g. https://api.mixin.one/network/snapshots/ceaf8277-d9f6-46e3-add4-d30307728205
Due to only the withdrawal gateway owning the info of the withdrawal, should write an API for querying.
Show/check withdrawal gas before withdrawal
A dialog for adding token to metamask
ZH
Use the same layout
for all functionality
Add pay with messenger when depositing NFTs
CSS
switch to new domain
Originally posted by @zed-wong in #4 (comment)
A dialog for every single step, make every step visible. Including errors. After the wallet payment confirmation.
Also, provide an option to refresh / re-OAuth
Show gas
Balance: 8.36600000
Remove unnecessary decimals
Check balance after withdrawal tx (after the close of withdrawal dialog).
Like http://metamask.test.mixinbots.com/ in bridge page
Add NFT withdrawal OAuth
Replace 4swap PreOrder with polling.
Scoped
Alert user if is not connected to the from network
(e.g. Deposit. From Ethereum, connected to Polygon/MVM; WIthdrawal, From MVM, connected to Ethereum)
0.0001 of any asset
Build a service that handles external withdrawal payments. Pre-charge 1% of a withdrawal fee against price changes.
Cross-chain bridge, the highest priority.
unable to withdraw mob
Generate a mixin payment code when the target network is mixin network. So the app can trace the state afterwards.
For better liquidity, price, and pairs
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.