-
Notifications
You must be signed in to change notification settings - Fork 5
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
CYBER and GOLOS by Cyberway cryptogateway #23
Comments
The Golos integration task is faster. What is the priority? |
golos.io is GOLOS dapp on CYBERWAY. If you can make GOLOS dapp tokens faster - do it! |
Token standard
Depends on the token. It is possible that the required token can be issued on another smart contract with a different interface. The logic of the gateway may then be different. Token issuer
In case if the issuer of token is us: when exchanging the amount of token in blockchain X for a token in blockchain cyberway, in blockchain X the amount of token is blocked in our account or burned, and in blockchain cyberway is issued the necessary amount of token, which is calculated at the exchange rate. In the opposite direction the following happens: when exchanging a certain amount of token in the cyberway blockchain for a token in blockchain X, in the cyberway blockchain the amount of token is burned, and in blockchain X from our account is unlocked or issued the necessary amount of token, which is calculated at the exchange rate. In case the issuer of the token isn't us: when exchanging the amount of token in blockchain X for a token in blockchain cyberway, in blockchain X the amount of token is blocked in our account or burned, and in blockchain cyberway from our account unlocked or issued the necessary amount of token, which is calculated at the exchange rate. In the opposite direction the following happens: when exchanging a certain amount of token in the cyberway blockchain for a token in blockchain X, in the cyberway blockchain the amount of token is blocked in our account, and in blockchain X from our account is unlocked or issued the necessary amount of token, which is calculated at the exchange rate. As you can see, the difference between the two approaches is that if the issuer is us, we don't need to form an account at the cyberway blockchain, we issue or burn, and if the issuer isn't us, we need to form an account at the cyberway blockchain, because we aren't authorized to perform issuing or burning operations, in this case we'll unblock from our account or block in our account. On this basis, the logic of the gateway will be different, and it may be necessary to store a certain amount of token in blockchain cyberway. Smart contract codeIf we use a non-standard smart contract and token issuer, we do:
It depends on the task at hand. It is unlikely that we'll even need to write our own code, but we need to stop possible misunderstandings. IntegrationIt follows from all this that we have the following options for integrating the gateway and cyberway:
Requirements for the project manager
|
All tokens on cyberway you can see here First of all make gateway for Code of GOLOS dapp is here For ABI Next make gateway for Public nodes Test account is i4mvdrqc3jxk with GOLOS dapp tokens and CYBER native tokens |
Make a roadmap for cyberway cryptogateway
The text was updated successfully, but these errors were encountered: