-
Notifications
You must be signed in to change notification settings - Fork 40
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
Adding a new protocol to the library #7
Comments
Hi! Thanks for the interest in our project and thanks for the kind words regarding security. It's good to see there are people who care about this as much as we do :). Before you start, I would like to say that we can't give you any guarantees that your PR will be merged in the end. Besides the effort it takes to review your code (which we will gladly do), adding a new protocol will add a lot of work in the future, such as keeping up to date with the latest blockchain changes, keeping the nodes running for the API, etc. So it's quite a commitment from our side. There is no formal process for adding a new protocol to this library. Which currency would you like to add if I may ask? The best place to start would be to take a look at some of the protocols we already support. Maybe take a look at a simpler one like We are very picky regarding including new libraries. So if possible, use some of the existing ones. |
Hi , Thanks for immediate response, I was thinking of including Harmony protocol, As they provide staking feature as well I saw that you integrate with cosmos and Tezos , So thought Harmony could also be integrated . I will review Aeternity's code now. And yes I can reuse the existing functions as well. I run a validator node of Harmony. If you want I can become the api as well. Regards |
I don't know much about Harmony, so right off the bat I can't tell you how well it fits into AirGap. But just give it a go and see how far you get, we'll discuss it internally in the team. Do you have any contact to the people behind Harmony, like a foundation or something like that? |
Cool! I am starting from the library lik my own forked version, Then ill add it to the Vault and see things works fine. Then Ill build a dummy API keeping your wallet spec same as push-backend.ts If I am able to submit a transaction Ill ping you here :D, If you dont hear from me in a week I guess I would have failed Yeah I had build some features in Harmony's delegation tool. So I know the core team Thanks |
Ok let me know how it goes! Just to reiterate: You should not need to do any code changes in the Wallet or Vault. You simply have to implement the ICoinProtocol interface, and because it's a delegateable coin, also the ICoinDelegateProtocol. Then once you include this protocol in the Wallet / Vault, it should just work (the delegation part is the only one that probably needs some changes in the Wallet UI, because delegation flows are always a bit different.) |
Thanks for your steps, I am going to do this
Then ill submit for review here |
@AndreasGassmann when I ran test one of the test case failled is it something to be worried
After this I installed NYC
Then I did
|
Hi, I think we did not update the readme of how you have to setup and work with the project. In order to prevent develop/test dependencies from being added to the
After that you can run the tests with To go back to the previous state (eg. to commit changes in the
BTW, can you please work with the |
Hi, Thanks for the reply . I should get a brownie point for this ;) Okay I can start working on the dev branch. Also i saw some bug while using the wallet, it get's stuck sometime when trying to use sign the tx from Vault. Thhis happens when valut and wallet is on the same device |
Yeah we'll give you some points for it ;). Could you describe the wallet bug further? I think I've never seen that one. |
@AndreasGassmann I have added a new issue |
Thanks. Did you make any progress on the implementation of the protocol? |
Not yet , Working on it |
@AndreasGassmann Here you can track my update. Major issue I am facing is Like trying to use the existing library's from the airgap-coin-lib. |
Yeah it's usually hard to find exact matches between the method because in our library some things are deliberately separated (eg. preparation and signing). But good to see you are making progress! |
I see that you use two different types of identitfication for commits. Can you please explain so I will follow the same method.
|
Okay nevermind sorry for that comment |
So I was able to pass all the testcases in the protocol.spec.ts
|
Hi guys,
What's the process of adding a new blockchain into this?, I wanted to add another staking network .
I felt this wallet is good as your security is awesome.
let me know the steps
Thanks
The text was updated successfully, but these errors were encountered: