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

CORE-292: Define GEN interfaces; implement for XRP #88

Merged
merged 12 commits into from
Jul 15, 2019
Merged

Conversation

EBGToo
Copy link
Contributor

@EBGToo EBGToo commented Jul 14, 2019

Extends BRCrypto*.[ch] with implementations for BLOCK_CHAIN_TYPE_GEN. Defines generic/BRGeneric*.[ch] and implements those interfaces using the XRP interfaces.

Changes are of five types:

  1. Implement BLOCK_CHAIN_TYPE_GEN
  2. Add CWM Client Callbacks; implement BRCryptoCWMClientGEN in BRCryptoWalletManager
  3. Some minimal code reordering (move BTC function in front of ETH, which is in front of GEN/XRP)
  4. Add some needed code to ripple/
  5. Clean up some tests.

The bulk of the change is in #1 above.

This is a 'preemptive merge'; although the unit tests pass (now that they are fixed), the XRP changes have not be tested with the BlockchainDB and there are an unknown or two on XRP account serialization (CORE-414)

Ed Gamble added 12 commits June 19, 2019 16:10
# Conflicts:
#	crypto/BRCryptoWalletManager.c
#	crypto/BRCryptoWalletManager.h
Add gwmInstallFileService, gwmLoadTransfers, and gwmRecoverTransfer(). Define the Ripple file service types w/ handlers and implement *LoadTransfers.  Implement the BRCryptoCWMClientGEN funcGetTransactions Swift callback. On cryptoWalletManagerCreate (for GEN): create GWM, create the primary wallet, restore the transactions and update the balance; signal the appropriate events along the way. To ripple/ add rippleTransactionSetCreate() to support restoring transactions.
# Conflicts:
#	Swift/BRCore.xcodeproj/project.pbxproj
#	Swift/BRCrypto/common/BRBlockChainDB.swift
#	crypto/BRCryptoAddress.c
#	crypto/BRCryptoPrivate.h
#	crypto/BRCryptoTransfer.c
#	crypto/BRCryptoWallet.c
#	crypto/BRCryptoWalletManager.c
#	crypto/BRCryptoWalletManagerClient.c
#	crypto/BRCryptoWalletManagerClient.h
# Conflicts:
#	Swift/BRCryptoDemo/CoreDemoAppDelegate.swift
#	crypto/BRCryptoHash.c
#	crypto/BRCryptoWallet.c
Unit tests broken...
# Conflicts:
#	crypto/BRCryptoAccount.c
@EBGToo EBGToo requested a review from michael-brd July 14, 2019 20:35
@EBGToo EBGToo merged commit aa02d81 into crypto Jul 15, 2019
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