Commit graph

261 commits

Author SHA1 Message Date
sneurlax
39eaa937fc add convenience method, remove ord-litecoin API file, cast dynamic->int 2023-07-21 10:06:34 -05:00
sneurlax
af30826e9e remove ord-litecoin imports 2023-07-21 10:03:05 -05:00
sneurlax
20fdcf4817 refactor manager var out to _manager, comment update 2023-07-20 17:15:25 -05:00
sneurlax
b773811eac working proof of concept 2023-07-20 16:49:26 -05:00
sneurlax
4db0328c73 WIP _db not initialized, refresh on ordinals view for poc 2023-07-20 16:30:39 -05:00
sneurlax
06c433ff85 add init method, build on poc 2023-07-20 15:56:11 -05:00
sneurlax
ca8e930904 move demo into refresh button, add refreshInscriptions() stub w prev poc 2023-07-20 15:32:39 -05:00
sneurlax
4be7919e46 expand upon demo
TODO remove WIP, hook directly into StreamBuilder
2023-07-20 14:53:20 -05:00
sneurlax
f046912c89 litescribe api and demo 2023-07-20 14:53:09 -05:00
sneurlax
0284bb2951 use https api, implement other methods 2023-07-19 17:13:54 -05:00
sneurlax
bc8f5ce8f9 update OrdinalsInterface to not need baseUrl declared by withee classes 2023-07-19 15:58:26 -05:00
sneurlax
8e17556e41 use an OrdinalsResponse response type which can return an error 2023-07-19 13:03:17 -05:00
julian
58c97de86c WIP ordinal ui 2023-07-18 10:15:05 -06:00
julian
1449814e35 Merge branch 'amount_display_precision' into add_nano
# Conflicts:
#	lib/pages/pinpad_views/create_pin_view.dart
#	lib/widgets/custom_pin_put/custom_pin_put_state.dart
2023-05-30 09:11:41 -06:00
likho
83778bb121 Fix Epiccash caching issue, add additional status messages as in Epicpay 2023-05-28 14:57:05 +02:00
detherminal
95a0309b8b docs: add header to source code again 2023-05-27 00:21:16 +03:00
detherminal
ccf5e68fc6 Revert "docs: add copyright header to all source code"
This reverts commit 84ac798bb8.
2023-05-27 00:19:24 +03:00
detherminal
84ac798bb8 docs: add copyright header to all source code 2023-05-26 19:33:04 +03:00
julian
74d3175d87 fix: Handle sent to self transactions when sent to a change address 2023-05-25 09:24:07 -06:00
julian
40dfced949 fix: default to 0 mint index if none saved 2023-05-23 10:43:08 -06:00
julian
9749443472 clean up notif node calls 2023-04-26 16:12:24 -06:00
julian
b14263eca5 clean up root node calls 2023-04-26 16:11:28 -06:00
julian
1dc2a3ce15 fix signing paynym received inputs 2023-04-26 15:12:36 -06:00
julian
a236316291 unused code cleanup 2023-04-26 13:11:24 -06:00
julian
8018a887cf paynym address generation clean up 2023-04-26 12:27:29 -06:00
julian
fea0aeea64 paynym amount fixes 2023-04-25 15:08:00 -06:00
julian
cf694d6cdd init fix 2023-04-25 11:32:57 -06:00
julian
5ad161e6a9 add initial segwit paynym support 2023-04-25 10:45:02 -06:00
julian
6fb93b00ff organize constants 2023-04-25 09:24:14 -06:00
julian
f9aac8ea36 clean up remaining add derivation stuff in btc and paynyms 2023-04-20 18:47:07 -06:00
julian
8e73e3ecba pass bip32 root node is available to save generation time 2023-04-20 12:35:08 -06:00
julian
5bf678d41a Balance class clean up 2023-04-10 12:00:23 -06:00
julian
c0105a2058 available balance fix 2023-04-09 13:07:09 -06:00
julian
72d6e636f0 Merge remote-tracking branch 'origin/staging' into ui-fixes
# Conflicts:
#	lib/services/coins/manager.dart
2023-04-07 18:56:59 -06:00
julian
839ee314a2 xpub refactor to include coin network type in generation 2023-04-07 18:44:43 -06:00
julian
25ff880280 move amount.dart file 2023-04-06 15:24:56 -06:00
julian
81c612ddd7 WIP use Amount 2023-04-05 16:06:31 -06:00
julian
c8139007e3 use new transaction nonce property 2023-03-31 10:18:51 -06:00
julian
5e5730d5a5 eth token wallet general ui and wallet selection interface 2023-03-28 16:18:11 -06:00
julian
b2b9accee1 add serialized amount string to transaction 2023-03-24 15:31:05 -06:00
julian
b1d5b7f6ea store user added token contracts in wallet hive box for now 2023-03-23 09:39:22 -06:00
julian
9fa2d4535d merge fixes 2023-03-22 09:25:21 -06:00
julian
702054ac61 Merge remote-tracking branch 'origin/staging' into add-ethereum
# Conflicts:
#	assets/svg/themed/forest/ethereum.png
#	assets/svg/themed/forest/ethereum.svg
#	lib/pages/add_wallet_views/create_or_restore_wallet_view/create_or_restore_wallet_view.dart
#	lib/pages/receive_view/addresses/edit_address_label_view.dart
#	lib/pages/receive_view/addresses/receiving_addresses_view.dart
#	lib/pages/wallet_view/sub_widgets/wallet_navigation_bar.dart
#	lib/pages/wallet_view/wallet_view.dart
#	lib/route_generator.dart
#	lib/utilities/assets.dart
#	lib/utilities/constants.dart
#	lib/widgets/animated_widgets/rotate_icon.dart
#	pubspec.lock
#	pubspec.yaml
2023-03-22 08:54:25 -06:00
julian
260771061c prepare paynym interface to use SigningData 2023-03-09 12:31:36 -06:00
julian
79dc8e5329 balance display update events to properly reflect changes done in coin control, as well as clean up of old future builders no longer used 2023-03-08 13:21:25 -06:00
julian
ea49ed32ab update balance after viewing coin control 2023-03-08 12:22:33 -06:00
julian
7319f509f0 add coin control option to mobile more menu + assets fix 2023-03-06 10:34:41 -06:00
julian
babbd75da3 use database contract data and contract management updates 2023-03-02 18:40:12 -06:00
julian
16efeea1db project structure 2023-03-01 15:52:13 -06:00
julian
e732c4f1b7 eth wallet token list fixes 2023-03-01 15:27:10 -06:00
julian
e3548c5ecc WIP wallet token management 2023-02-28 18:36:54 -06:00
julian
fcd8f01d93 convert token service to change notifier, add token cache per eth wallet, token balances, and fix routing issues 2023-02-27 10:01:06 -06:00
julian
05d14b0e42 blinding bugfix 2023-02-24 20:26:32 -06:00
julian
6bb133c552 notification tx absurd fees error fix when estimating a tx size 2023-02-22 15:12:17 -06:00
julian
8b777655ca missing inputs notification tx fix 2023-02-22 06:21:19 -06:00
julian
4bd55f6ee3 disable broken paynym connection status caching 2023-02-22 05:47:30 -06:00
julian
f76807d8a5 paynym connected bugfix and connection check caching 2023-02-21 13:13:11 -06:00
julian
774f2071b6 paynym bugfix 2023-02-15 18:39:36 -06:00
julian
76794f14b8 update bip47 lib 2023-02-15 16:16:34 -06:00
julian
279d37c06e paynym send bug fix 2023-02-10 11:51:54 -06:00
julian
9b4dee76a5 add derivationPath to Address constructor as required 2023-02-03 17:30:32 -06:00
julian
5b5ee30e41 centralized and cleaned up bip32 utils, and added mnemonic password functionality 2023-02-03 16:34:06 -06:00
julian
b0c00d8ec7 db refactor and added address labels 2023-02-03 13:22:21 -06:00
sneurlax
4aec78f0ed
Add BIP44 derivation paths to Bitcoin Cash wallet restoration process (#330)
* add new derive path for bch

and make it the new default.  we currently use slip44 (coinType 145) as the default

* add default cases to DerivePathType switches now failing

* normalize DerivePathType errors

log failing derivePathType or type, as appropriate

* add default derive path case to paynym interface

* use slip44 in bch wallet

* linting

* WIP look up both bip44 and slip44 addresses

slip44 is used by default

* typo fix

* typo fix

thanks Julian

* remove print

* use slip44 addresses by default

* use AddressType unknown for bip44 derive path type

* use address type unknown in _getCurrentAddressForChain, too

* generate different keys for SLIP44 and BIP44 paths

* couple more slips

* return slip44 from addressType

* slip before bip

* revert slip44-bip44, bch's bip44->bch44

* set bch44 derive path to type unknown

do not comingle paths in later output selection by index

* handle bip44 and bch44 path addresses when handling outputs

* use bip44 by default

* typofix

* typo fix in the typo fix

yo dawg

* separate new derivation path functions into their own non-testnet block

* cleanup

* disable test

should re-enable if it can be fixed with the test mnemonic in hand

---------

Co-authored-by: julian <julian@cypherstack.com>
2023-02-02 09:24:26 -06:00
julian
aec33094d6 payment code lookup fix 2023-02-01 16:46:49 -06:00
julian
b64ffe91b7 paynym receiving address scanning fix 2023-02-01 11:23:09 -06:00
julian
a00340b464 fix hasConnected to return true for sent notification transactions 2023-01-31 17:46:56 -06:00
julian
19bf4c0df6 scan following/followers for paynym history 2023-01-31 17:26:10 -06:00
julian
6a0673bec5 EXTRACT FUNCTION FOR PARSING BLINDED PAYMENT CODE FROM A TRANSACTION 2023-01-31 14:40:54 -06:00
julian
95d1f3c17e check all outputs for payment codes 2023-01-31 14:09:45 -06:00
julian
2e7d55bda4 btc notification tx fix 2023-01-31 12:17:32 -06:00
julian
c06c3935ca handle fee rounding error 2023-01-31 10:37:03 -06:00
julian
3940c88e44 fix notifTx fee calculate bug 2023-01-31 10:03:16 -06:00
julian
17cbc390e4 pass in correct values 2023-01-30 08:28:54 -06:00
julian
85d69c0cb2 check all outputs for potential notification tx 2023-01-30 08:28:14 -06:00
julian
3985674525 dirty payment code obfuscation 2023-01-27 18:18:58 -06:00
julian
b09b3d0e1f restore all paynym history function 2023-01-27 14:43:38 -06:00
julian
c7446f1946 receiving address fix 2023-01-27 14:43:00 -06:00
julian
c8783bb032 ignore duplicate unblinded codes 2023-01-27 13:10:35 -06:00
julian
47acad29a5 isar index violation error fix 2023-01-27 11:20:12 -06:00
julian
33660467b1 add notification address derivation 2023-01-27 10:22:55 -06:00
julian
9b74f52ce9 add receiving address derivation to secure storage 2023-01-26 16:17:26 -06:00
julian
9cc0d74b16 check paynym receiving addresses based on payment code notification tx history 2023-01-26 15:25:53 -06:00
julian
4170ca958f include paynym receiving addresses when checking for incoming transaction amounts 2023-01-26 15:22:39 -06:00
julian
828c301af7 mobile paynym send flow implemented 2023-01-26 12:16:38 -06:00
julian
fb3f430edc disable PaynymSupport extension and use PaynymWalletInterface instead 2023-01-25 15:49:57 -06:00
julian
7cb497f4f7 remove coin enum hasPaynymSupport getter in favor of type checking 2023-01-25 15:46:48 -06:00
julian
907c380812 copy extension into a mixin 2023-01-25 15:07:44 -06:00
julian
1965501bf8 added address scanning for send and receiving addresses given the context of your own payment code and another, address type choice also added for send/receive address generation 2023-01-25 11:13:21 -06:00
julian
37fa5e9d19 remove old file and add todos 2023-01-24 16:18:17 -06:00
julian
6253652c21 detect paynym notification transactions 2023-01-23 16:11:24 -06:00
julian
5eb4b3bff5 move tx creation after ins/outs and added another null check 2023-01-23 13:46:56 -06:00
julian
69dfbb5873 paynym clean up to use isar transaction and address upgrades 2023-01-23 12:19:13 -06:00
julian
165021ca2e Merge branch 'isar_migrate' into paynyms 2023-01-20 17:27:18 -06:00
julian
017719971b isar init fix and renaming of init functions 2023-01-20 15:57:54 -06:00
julian
5c66b0380b move standard electrum x transaction parsing function into a mixin 2023-01-20 12:16:27 -06:00
julian
fd5a237170 move db modifying func to MainDB out of WalletDb, add MainDB mocks to coin tests, build runner generate mocks 2023-01-19 15:13:03 -06:00
julian
60e850f442 add mockable override option for testing purposes 2023-01-19 14:33:23 -06:00
julian
8921302ee0 remove useless walletId param from db init 2023-01-19 14:07:08 -06:00
julian
5562c14527 WIP refactor to single main isar db 2023-01-16 15:04:03 -06:00
julian
7fc4b724c4 add replace tx logic for potentially unconfirmed transactions to update properly 2023-01-13 17:36:59 -06:00
julian
c08c3f779d shared address parse fix 2023-01-13 16:11:34 -06:00
julian
3414c71741 update other coin's parse transaction and db update 2023-01-13 15:36:19 -06:00
julian
52d5ab0d33 WIP tx parse + link address to transaction 2023-01-13 11:11:41 -06:00
julian
7e6daad779 some small bug fixes 2023-01-12 16:07:15 -06:00
julian
5c70cf7967 add mixins to firo_wallet.dart and remove directly interacting with hive therein 2023-01-12 15:20:57 -06:00
julian
9b2b01764c add epic cash wallet cache hive mixin 2023-01-12 14:57:32 -06:00
julian
12bbc57e62 update wallet cache hive mixin 2023-01-12 14:57:07 -06:00
julian
1170f742e9 use balance caching in all wallets 2023-01-12 13:21:03 -06:00
julian
3f830218a4 extract wallet isar db to mixin 2023-01-12 12:46:01 -06:00
julian
ccb9f254bd small bug fixes and added WalletCache mixin to handle balance cache etc 2023-01-12 12:15:28 -06:00