Commit Graph

24 Commits

Author SHA1 Message Date
Kevin Gorham 30f7bf0b82
New: Begin working on test harness.
For now, just pushing all uncommitted changes to tests. Next sprint we will begin focusing on generating a useful test harness.
2021-04-22 18:54:19 -04:00
Kevin Gorham dffb6f257f
Add new tests and cleanup old ones.
squash test cleanup


squash tests
2021-04-09 22:30:24 -04:00
Kevin Gorham 4a90e6bf24
New: Derive sapling activation height from network.
This type of change will allow dynamically switching networks within the app or unit tests, later.

fixup network change
2021-04-09 21:46:20 -04:00
Kevin Gorham af190e786b
New: Explicitly declare network when needed.
It is important to be very explicit about the network and not make any assumptions for ease of use because that resulted in numerous bugs while transitioning away from the old two library setup.

squash explicit network
2021-04-09 21:46:20 -04:00
Kevin Gorham 04293f4f75
New: Add UnifiedViewingKey concept.
A unified viewing keys serves as a grouping of keys that are all related to the same account but do not have spend authority. This is most important when initializing the database for scanning.
2021-04-01 02:23:41 -04:00
Kevin Gorham ac9f803d5b
Refactor: Added type package.
In anticipation of UnifiedViewingKeys and, later, URI support as well as NU5 support for Unified Addresses.
2021-04-01 02:14:57 -04:00
Kevin Gorham eeafbd8c2f
New: Prefer the ZOMG lightwalltd instances. 2021-03-30 20:46:43 -04:00
Kevin Gorham a0837474d0
Update ktlint formatting and imports. 2021-03-10 22:04:39 -05:00
Kevin Gorham 7214850abf
New: Sample test for auto-shielding.
Trying a new approach to writing sample tests that can serve as code examples.
2021-02-19 16:08:51 -05:00
Adí 794a9f99b8
Add ktlint (#207)
* Add ktlint

Fix formatting per ktlint rules.
Upgrade dependencies & gradle.

* Move ktlint to apply section

* Keep unused-import check

Remove afterEvaluate check.

* Remove respository setup for ktlint.gradle

Fix format for SaplingParamTool & CompatBlockProcessor
2021-03-10 13:10:03 -05:00
Eljo Prifti df2b4305ca
Unit test for param files (#211)
* write unit test for param files

* apply changes on PR request

* fix tests
2021-01-27 16:50:10 -05:00
Eljo Prifti a09ce95c2e
Create SaplingParamTool and add a function for clearing the param files from cache (#206)
* Create SaplingParamTool.kt class
add clear and validate function

* add new line

* add SaplingParamToolTest.kt class

* fix PR request

* replace with one single line comment

* revert grandle at exact point in time

* revert build grandle to master

* align build.grandle file with the master one

* align with master
2021-01-22 17:05:11 -05:00
Kevin Gorham 8f8d3db9d9
Sanity test the new initializer behavior and fix existing uses. 2020-11-24 00:53:09 -05:00
Kevin Gorham efc8500959
New: Improved initializer construction.
Builder was misnamed. It is moreso a configuration object. Making this change simplified some of the more confusing aspects of creating an initializer and also made it so the initializer.config.new functions can now work as expected. Prior to these changes it was difficult to make an initializer that used a new birthday.
2020-11-20 12:01:45 -05:00
Kevin Gorham 4e2065e0df Add ability to erase by alias. 2020-10-30 09:22:03 -04:00
Kevin Gorham 928eac9af0
Test the logic for changing servers.
Also includes minor test tweaks.
2020-09-23 12:02:12 -04:00
Kevin Gorham 58925b04b3
Merge initializers.
The new API for initializing with a viewing key will support all existing uses of the other initializer. So they can be safely merged and the changes to support the new one are fairly straight forward.

Also, iterated on the design of the Initializer to simplify construction and make the API easier to use.
2020-09-23 12:02:11 -04:00
Kevin Gorham 14deb99362
Iterate on initializers.
Simplify the builder and also allow it to be a stand-alone configuration item, which would be more useful to React apps that cannot use Kotlins receiver function syntax.
2020-09-23 12:02:10 -04:00
Kevin Gorham 986286fced
Adding uncommitted tests. 2020-09-11 03:36:52 -04:00
Kevin Gorham 11431f5e5a
Initializer improvements and iteration.
- Extracted parent interface
- Created ViewingKey Initializer to start synchronizing without the seed (only the viewing key is needed)
- Extracted tools from the existing initializer and simlified it a bit
2020-09-11 03:29:17 -04:00
Kevin Gorham bb77fa2d5d
New: add robust support for tx cancellation
Also greatly improved handling of expired and failed transactions.
2020-08-01 02:13:39 -04:00
Kevin Gorham 69466fe7ef
Minor cleanup. 2020-08-01 02:11:48 -04:00
Kevin Gorham 215788dd27
Migrate changes from hackathon.
Mostly includes changes to make testing more robust.
2020-07-29 00:36:56 -04:00
Kevin Gorham aa569c99dd
Major refactor: corrected package name.
Now the SDK matches everything else that we have published to bintray and jcenter.
2020-06-10 03:08:19 -04:00