react-native-zcash 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/LICENSE +22 -0
- package/README.md +44 -44
- package/android/build.gradle +1 -1
- package/ios/RNZcash.m +0 -1
- package/ios/RNZcash.swift +14 -15
- package/ios/ZCashLightClientKit/Block/DatabaseStorage/CompactBlockStorage.swift +123 -0
- package/ios/ZCashLightClientKit/Block/DatabaseStorage/DatabaseMigrationManager.swift +222 -0
- package/ios/ZCashLightClientKit/Block/DatabaseStorage/StorageError.swift +22 -0
- package/ios/ZCashLightClientKit/Block/DatabaseStorage/StorageManager.swift +73 -0
- package/ios/ZCashLightClientKit/Block/Downloader/BlockDownloader.swift +240 -0
- package/ios/ZCashLightClientKit/Block/Downloader/CompactBlockDownloaderBuilder.swift +26 -0
- package/ios/ZCashLightClientKit/Block/Processor/CompactBlockDownloadOperation.swift +258 -0
- package/ios/ZCashLightClientKit/Block/Processor/CompactBlockEnhancementOperation.swift +157 -0
- package/ios/ZCashLightClientKit/Block/Processor/CompactBlockProcessor.swift +1454 -0
- package/ios/ZCashLightClientKit/Block/Processor/CompactBlockScanningOperation.swift +238 -0
- package/ios/ZCashLightClientKit/Block/Processor/CompactBlockValidationInformation.swift +66 -0
- package/ios/ZCashLightClientKit/Block/Processor/FetchUnspentTxOutputsOperation.swift +103 -0
- package/ios/ZCashLightClientKit/Block/Processor/FigureNextBatchOperation.swift +58 -0
- package/ios/ZCashLightClientKit/Block/Processor/ZcashOperation.swift +68 -0
- package/ios/ZCashLightClientKit/Constants/WalletBirthday+Constants.swift +58 -0
- package/ios/ZCashLightClientKit/Constants/WalletBirthday+mainnet.swift +20 -0
- package/ios/ZCashLightClientKit/Constants/WalletBirthday+testnet.swift +20 -0
- package/ios/ZCashLightClientKit/Constants/ZcashSDK.swift +245 -0
- package/ios/ZCashLightClientKit/DAO/BlockDao.swift +67 -0
- package/ios/ZCashLightClientKit/DAO/CompactBlockDAO.swift +24 -0
- package/ios/ZCashLightClientKit/DAO/NotesDao.swift +142 -0
- package/ios/ZCashLightClientKit/DAO/PagedTransactionDao.swift +62 -0
- package/ios/ZCashLightClientKit/DAO/PendingTransactionDao.swift +213 -0
- package/ios/ZCashLightClientKit/DAO/TransactionBuilder.swift +169 -0
- package/ios/ZCashLightClientKit/DAO/TransactionDao.swift +393 -0
- package/ios/ZCashLightClientKit/DAO/UnspentTransactionOutputDao.swift +188 -0
- package/ios/ZCashLightClientKit/Entity/AccountEntity.swift +201 -0
- package/ios/ZCashLightClientKit/Entity/CompactBlockEntity.swift +13 -0
- package/ios/ZCashLightClientKit/Entity/EncodedTransactionEntity.swift +26 -0
- package/ios/ZCashLightClientKit/Entity/PendingTransactionEntity.swift +205 -0
- package/ios/ZCashLightClientKit/Entity/ReceivedNoteEntity.swift +22 -0
- package/ios/ZCashLightClientKit/Entity/SentNoteEntity.swift +45 -0
- package/ios/ZCashLightClientKit/Entity/TransactionEntity.swift +161 -0
- package/ios/ZCashLightClientKit/Entity/UnspentTransactionOutputEntity.swift +17 -0
- package/ios/ZCashLightClientKit/Extensions/Data+Zcash.swift +17 -0
- package/ios/ZCashLightClientKit/Extensions/Data+internal.swift +35 -0
- package/ios/ZCashLightClientKit/Extensions/HexEncode.swift +41 -0
- package/ios/ZCashLightClientKit/Extensions/ZcashRust+Utils.swift +26 -0
- package/ios/ZCashLightClientKit/Extensions/ZcashSDK+extensions.swift +34 -0
- package/ios/ZCashLightClientKit/Initializer.swift +357 -0
- package/ios/ZCashLightClientKit/Model/WalletTypes.swift +108 -0
- package/ios/ZCashLightClientKit/Providers/ResourceProvider.swift +47 -0
- package/ios/ZCashLightClientKit/Repository/BlockRepository.swift +13 -0
- package/ios/ZCashLightClientKit/Repository/CompactBlockRepository.swift +75 -0
- package/ios/ZCashLightClientKit/Repository/NotesRepository.swift +16 -0
- package/ios/ZCashLightClientKit/Repository/PaginatedTransactionRepository.swift +35 -0
- package/ios/ZCashLightClientKit/Repository/PendingTransactionRepository.swift +19 -0
- package/ios/ZCashLightClientKit/Repository/TransactionRepository.swift +30 -0
- package/ios/ZCashLightClientKit/Repository/TransactionRepositoryBuilder.swift +24 -0
- package/ios/ZCashLightClientKit/Repository/UnspentTransactionOutputRepository.swift +18 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1000000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1010000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1020000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1030000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1040000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1050000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1060000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1070000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1080000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1090000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1100000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1110000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1120000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1130000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1140000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1150000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1160000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1170000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1180000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1190000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1200000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1210000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1220000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1230000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1240000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1250000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1260000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1270000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1280000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1290000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1300000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1310000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1320000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1330000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1340000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1350000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1360000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1370000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1380000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1390000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1400000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1410000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1420000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1430000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1440000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1450000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1460000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1470000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1480000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1490000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1500000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1510000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1520000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1530000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1540000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1550000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1560000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1570000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1580000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1590000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1600000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1610000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1620000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1630000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1640000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1650000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1660000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1670000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1680000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1690000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1700000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1710000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1720000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1730000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1740000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1750000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1760000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1770000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1780000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1790000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1800000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1810000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1820000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1830000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1840000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1850000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1860000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1870000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1880000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1890000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1900000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1910000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1920000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1930000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1940000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1950000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1960000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1970000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1980000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/1990000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2000000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2010000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2020000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2030000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2040000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2050000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2060000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2070000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2080000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2090000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2100000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2110000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2120000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2130000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2140000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2150000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2160000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/2170000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/419200.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/500000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/510000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/520000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/530000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/540000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/550000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/560000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/570000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/580000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/590000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/600000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/610000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/620000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/630000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/640000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/650000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/660000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/663150.json +8 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/670000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/680000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/690000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/700000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/710000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/720000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/730000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/740000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/750000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/760000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/770000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/780000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/790000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/800000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/810000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/820000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/830000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/840000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/850000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/860000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/870000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/880000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/890000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/900000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/910000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/920000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/930000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/940000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/950000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/960000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/970000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/980000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/990000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1000000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1010000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1020000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1030000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1040000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1050000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1060000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1070000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1080000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1090000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1100000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1110000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1120000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1130000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1140000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1150000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1160000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1170000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1180000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1190000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1200000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1210000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1220000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1230000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1240000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1250000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1260000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1270000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1280000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1290000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1300000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1310000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1320000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1330000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1340000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1350000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1360000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1370000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1380000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1390000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1400000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1410000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1420000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1430000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1440000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1450000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1460000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1470000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1480000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1490000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1500000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1510000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1520000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1530000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1540000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1550000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1560000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1570000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1580000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1590000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1600000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1610000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1620000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1630000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1640000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1650000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1660000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1670000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1680000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1690000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1700000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1710000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1720000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1730000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1740000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1750000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1760000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1770000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1780000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1790000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1800000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1810000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1820000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1830000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1840000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1850000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/1860000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/280000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/290000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/300000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/310000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/320000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/330000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/340000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/350000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/360000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/370000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/380000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/390000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/400000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/410000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/420000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/430000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/440000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/450000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/460000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/470000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/480000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/490000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/500000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/510000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/520000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/530000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/540000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/550000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/560000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/570000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/580000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/590000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/600000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/610000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/620000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/630000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/640000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/650000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/660000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/670000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/680000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/690000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/700000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/710000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/720000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/730000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/740000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/750000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/760000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/770000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/780000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/790000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/800000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/810000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/820000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/830000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/840000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/850000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/860000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/870000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/880000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/890000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/900000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/910000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/920000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/930000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/940000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/950000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/960000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/970000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/980000.json +7 -0
- package/ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/990000.json +7 -0
- package/ios/ZCashLightClientKit/Rust/ZcashRustBackend.swift +718 -0
- package/ios/ZCashLightClientKit/Rust/ZcashRustBackendWelding.swift +389 -0
- package/ios/ZCashLightClientKit/Rust/zcashlc.h +385 -0
- package/ios/ZCashLightClientKit/Service/LightWalletGRPCService.swift +551 -0
- package/ios/ZCashLightClientKit/Service/LightWalletService.swift +214 -0
- package/ios/ZCashLightClientKit/Service/Model/ZcashCompactBlock.swift +46 -0
- package/ios/ZCashLightClientKit/Service/ProtoBuf/Extensions/Protocolbuffer+Extensions.swift +50 -0
- package/ios/ZCashLightClientKit/Service/ProtoBuf/compact_formats.pb.swift +332 -0
- package/ios/ZCashLightClientKit/Service/ProtoBuf/proto/compact_formats.proto +56 -0
- package/ios/ZCashLightClientKit/Service/ProtoBuf/proto/service.proto +180 -0
- package/ios/ZCashLightClientKit/Service/ProtoBuf/service.grpc.swift +383 -0
- package/ios/ZCashLightClientKit/Service/ProtoBuf/service.pb.swift +1173 -0
- package/ios/ZCashLightClientKit/Synchronizer/SDKSynchronizer.swift +929 -0
- package/ios/ZCashLightClientKit/Synchronizer.swift +430 -0
- package/ios/ZCashLightClientKit/Tool/DerivationTool.swift +344 -0
- package/ios/ZCashLightClientKit/Transaction/PersistentTransactionManager.swift +339 -0
- package/ios/ZCashLightClientKit/Transaction/TransactionEncoder.swift +116 -0
- package/ios/ZCashLightClientKit/Transaction/TransactionManager.swift +42 -0
- package/ios/ZCashLightClientKit/Transaction/WalletTransactionEncoder.swift +216 -0
- package/ios/ZCashLightClientKit/Utils/Bundle+module.swift +30 -0
- package/ios/ZCashLightClientKit/Utils/LoggingProxy.swift +47 -0
- package/ios/ZCashLightClientKit/Utils/SaplingParameterDownloader.swift +124 -0
- package/ios/libzcashlc.xcframework/Info.plist +40 -0
- package/ios/libzcashlc.xcframework/ios-arm64/libzcashlc.a +0 -0
- package/ios/libzcashlc.xcframework/ios-arm64_x86_64-simulator/libzcashlc.a +0 -0
- package/ios/react-native-zcash-Bridging-Header.h +2 -0
- package/ios/react-native-zcash.xcodeproj/project.pbxproj +1 -0
- package/lib/scripts/copyCheckpoints.d.ts +5 -0
- package/lib/scripts/updateSources.d.ts +1 -0
- package/package.json +20 -37
- package/react-native-zcash.podspec +17 -7
- package/ios/RNZcash-Bridging-Header.h +0 -6
- package/ios/RNZcash.xcodeproj/project.pbxproj +0 -271
- package/ios/RNZcash.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/RNZcash.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/lib/src/browser.d.ts +0 -0
- package/lib/src/index.d.ts +0 -0
- package/lib/test/test.test.d.ts +0 -0
- package/scripts/copyCheckpoints.js +0 -12
- package/src/browser.ts +0 -36
- package/src/index.flow.js +0 -168
- package/src/index.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-zcash",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "Zcash library for React Native",
|
|
5
5
|
"homepage": "https://github.com/EdgeApp/react-native-zcash",
|
|
6
6
|
"repository": {
|
|
@@ -15,39 +15,28 @@
|
|
|
15
15
|
"Matthew Piché <matthew@edge.app>",
|
|
16
16
|
"Kevin Gorham <kevin.gorham@z.cash>"
|
|
17
17
|
],
|
|
18
|
-
"bin": {
|
|
19
|
-
"copyCheckpoints": "./scripts/copyCheckpoints.js"
|
|
20
|
-
},
|
|
21
|
-
"files": [
|
|
22
|
-
"android/build.gradle",
|
|
23
|
-
"android/src",
|
|
24
|
-
"CHANGELOG.md",
|
|
25
|
-
"react-native-zcash.podspec",
|
|
26
|
-
"ios/RNZcash.swift",
|
|
27
|
-
"ios/RNZcash.m",
|
|
28
|
-
"ios/RNZcash-Bridging-Header.h",
|
|
29
|
-
"ios/RNZcash.xcodeproj",
|
|
30
|
-
"ios/RNZcash.xcworkspace",
|
|
31
|
-
"scripts/copyCheckpoints.js",
|
|
32
|
-
"lib",
|
|
33
|
-
"package.json",
|
|
34
|
-
"README.md",
|
|
35
|
-
"src"
|
|
36
|
-
],
|
|
37
18
|
"main": "lib/rnzcash.rn.js",
|
|
38
19
|
"types": "lib/src/react-native.d.ts",
|
|
20
|
+
"files": [
|
|
21
|
+
"/android/build.gradle",
|
|
22
|
+
"/android/src/",
|
|
23
|
+
"/CHANGELOG.md",
|
|
24
|
+
"/ios/",
|
|
25
|
+
"/lib/",
|
|
26
|
+
"/LICENSE",
|
|
27
|
+
"/package.json",
|
|
28
|
+
"/react-native-zcash.podspec",
|
|
29
|
+
"/README.md",
|
|
30
|
+
"/src/"
|
|
31
|
+
],
|
|
39
32
|
"scripts": {
|
|
40
33
|
"fix": "npm run lint -- --fix",
|
|
41
34
|
"lint": "eslint .",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"prepare": "rimraf lib && rollup -c && tsc",
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
"husky": {
|
|
48
|
-
"hooks": {
|
|
49
|
-
"pre-commit": "npm run precommit"
|
|
50
|
-
}
|
|
35
|
+
"precommit": "lint-staged && npm run prepare",
|
|
36
|
+
"prepack": "npm run update-checkpoints && npm run update-sources",
|
|
37
|
+
"prepare": "husky install && rimraf lib && rollup -c && tsc",
|
|
38
|
+
"update-checkpoints": "node -r sucrase/register scripts/updateCheckpoints.ts",
|
|
39
|
+
"update-sources": "node -r sucrase/register ./scripts/updateSources.ts"
|
|
51
40
|
},
|
|
52
41
|
"lint-staged": {
|
|
53
42
|
"*.{js,ts}": "eslint"
|
|
@@ -61,16 +50,12 @@
|
|
|
61
50
|
"@babel/preset-env": "^7.9.6",
|
|
62
51
|
"@babel/preset-typescript": "^7.9.0",
|
|
63
52
|
"@grpc/grpc-js": "^1.8.20",
|
|
64
|
-
"@types/chai": "^4.2.11",
|
|
65
|
-
"@types/mocha": "^7.0.2",
|
|
66
53
|
"@types/node": "^14.0.5",
|
|
67
54
|
"@types/react-native": "^0.62.11",
|
|
68
|
-
"@types/rimraf": "^3.0.0",
|
|
69
|
-
"@types/tmp": "^0.2.0",
|
|
70
55
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
71
56
|
"@typescript-eslint/parser": "^3.0.1",
|
|
72
57
|
"babel-eslint": "^10.1.0",
|
|
73
|
-
"
|
|
58
|
+
"disklet": "^0.4.6",
|
|
74
59
|
"eslint": "^7.1.0",
|
|
75
60
|
"eslint-config-standard-kit": "^0.14.4",
|
|
76
61
|
"eslint-plugin-flowtype": "^5.1.0",
|
|
@@ -79,9 +64,8 @@
|
|
|
79
64
|
"eslint-plugin-promise": "^4.2.1",
|
|
80
65
|
"eslint-plugin-simple-import-sort": "^5.0.3",
|
|
81
66
|
"eslint-plugin-standard": "^4.0.1",
|
|
82
|
-
"husky": "^
|
|
67
|
+
"husky": "^7.0.0",
|
|
83
68
|
"lint-staged": "^10.2.6",
|
|
84
|
-
"mocha": "^7.2.0",
|
|
85
69
|
"prettier": "^2.0.5",
|
|
86
70
|
"rimraf": "^3.0.2",
|
|
87
71
|
"rollup": "^2.10.9",
|
|
@@ -90,7 +74,6 @@
|
|
|
90
74
|
"rollup-plugin-flow-entry": "^0.3.4",
|
|
91
75
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
92
76
|
"sucrase": "^3.15.0",
|
|
93
|
-
"tmp": "^0.2.1",
|
|
94
77
|
"typescript": "^3.9.3"
|
|
95
78
|
},
|
|
96
79
|
"peerDependencies": {
|
|
@@ -10,13 +10,23 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.license = package['license']
|
|
11
11
|
s.authors = package['author']
|
|
12
12
|
|
|
13
|
-
s.swift_version = '5.4'
|
|
14
13
|
s.platform = :ios, "12.0"
|
|
15
|
-
s.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
s.source = {
|
|
15
|
+
:git => "https://github.com/EdgeApp/react-native-zcash.git",
|
|
16
|
+
:tag => "v#{s.version}"
|
|
17
|
+
}
|
|
18
|
+
s.source_files =
|
|
19
|
+
"ios/react-native-zcash-Bridging-Header.h",
|
|
20
|
+
"ios/RNZcash.m",
|
|
21
|
+
"ios/RNZcash.swift",
|
|
22
|
+
"ios/ZCashLightClientKit/**/*.swift"
|
|
23
|
+
s.resource_bundles = {
|
|
24
|
+
"zcash-mainnet" => "ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/mainnet/*.json",
|
|
25
|
+
"zcash-testnet" => "ios/ZCashLightClientKit/Resources/saplingtree-checkpoints/testnet/*.json"
|
|
26
|
+
}
|
|
27
|
+
s.vendored_frameworks = "ios/libzcashlc.xcframework"
|
|
21
28
|
|
|
29
|
+
s.dependency "gRPC-Swift", "~> 1.0"
|
|
30
|
+
s.dependency "SQLite.swift", "~> 0.12"
|
|
31
|
+
s.dependency "React-Core"
|
|
22
32
|
end
|
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
// !$*UTF8*$!
|
|
2
|
-
{
|
|
3
|
-
archiveVersion = 1;
|
|
4
|
-
classes = {
|
|
5
|
-
};
|
|
6
|
-
objectVersion = 46;
|
|
7
|
-
objects = {
|
|
8
|
-
|
|
9
|
-
/* Begin PBXBuildFile section */
|
|
10
|
-
B3E7B58A1CC2AC0600A0062D /* RNZcash.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNZcash.m */; };
|
|
11
|
-
/* End PBXBuildFile section */
|
|
12
|
-
|
|
13
|
-
/* Begin PBXCopyFilesBuildPhase section */
|
|
14
|
-
58B511D91A9E6C8500147676 /* CopyFiles */ = {
|
|
15
|
-
isa = PBXCopyFilesBuildPhase;
|
|
16
|
-
buildActionMask = 2147483647;
|
|
17
|
-
dstPath = "include/$(PRODUCT_NAME)";
|
|
18
|
-
dstSubfolderSpec = 16;
|
|
19
|
-
files = (
|
|
20
|
-
);
|
|
21
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
22
|
-
};
|
|
23
|
-
/* End PBXCopyFilesBuildPhase section */
|
|
24
|
-
|
|
25
|
-
/* Begin PBXFileReference section */
|
|
26
|
-
134814201AA4EA6300B7C361 /* libRNZcash.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNZcash.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
27
|
-
B3E7B5881CC2AC0600A0062D /* RNZcash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNZcash.h; sourceTree = "<group>"; };
|
|
28
|
-
B3E7B5891CC2AC0600A0062D /* RNZcash.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNZcash.m; sourceTree = "<group>"; };
|
|
29
|
-
/* End PBXFileReference section */
|
|
30
|
-
|
|
31
|
-
/* Begin PBXFrameworksBuildPhase section */
|
|
32
|
-
58B511D81A9E6C8500147676 /* Frameworks */ = {
|
|
33
|
-
isa = PBXFrameworksBuildPhase;
|
|
34
|
-
buildActionMask = 2147483647;
|
|
35
|
-
files = (
|
|
36
|
-
);
|
|
37
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
38
|
-
};
|
|
39
|
-
/* End PBXFrameworksBuildPhase section */
|
|
40
|
-
|
|
41
|
-
/* Begin PBXGroup section */
|
|
42
|
-
134814211AA4EA7D00B7C361 /* Products */ = {
|
|
43
|
-
isa = PBXGroup;
|
|
44
|
-
children = (
|
|
45
|
-
134814201AA4EA6300B7C361 /* libRNZcash.a */,
|
|
46
|
-
);
|
|
47
|
-
name = Products;
|
|
48
|
-
sourceTree = "<group>";
|
|
49
|
-
};
|
|
50
|
-
58B511D21A9E6C8500147676 = {
|
|
51
|
-
isa = PBXGroup;
|
|
52
|
-
children = (
|
|
53
|
-
B3E7B5881CC2AC0600A0062D /* RNZcash.h */,
|
|
54
|
-
B3E7B5891CC2AC0600A0062D /* RNZcash.m */,
|
|
55
|
-
134814211AA4EA7D00B7C361 /* Products */,
|
|
56
|
-
);
|
|
57
|
-
sourceTree = "<group>";
|
|
58
|
-
};
|
|
59
|
-
/* End PBXGroup section */
|
|
60
|
-
|
|
61
|
-
/* Begin PBXNativeTarget section */
|
|
62
|
-
58B511DA1A9E6C8500147676 /* RNZcash */ = {
|
|
63
|
-
isa = PBXNativeTarget;
|
|
64
|
-
buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNZcash" */;
|
|
65
|
-
buildPhases = (
|
|
66
|
-
58B511D71A9E6C8500147676 /* Sources */,
|
|
67
|
-
58B511D81A9E6C8500147676 /* Frameworks */,
|
|
68
|
-
58B511D91A9E6C8500147676 /* CopyFiles */,
|
|
69
|
-
);
|
|
70
|
-
buildRules = (
|
|
71
|
-
);
|
|
72
|
-
dependencies = (
|
|
73
|
-
);
|
|
74
|
-
name = RNZcash;
|
|
75
|
-
productName = RCTDataManager;
|
|
76
|
-
productReference = 134814201AA4EA6300B7C361 /* libRNZcash.a */;
|
|
77
|
-
productType = "com.apple.product-type.library.static";
|
|
78
|
-
};
|
|
79
|
-
/* End PBXNativeTarget section */
|
|
80
|
-
|
|
81
|
-
/* Begin PBXProject section */
|
|
82
|
-
58B511D31A9E6C8500147676 /* Project object */ = {
|
|
83
|
-
isa = PBXProject;
|
|
84
|
-
attributes = {
|
|
85
|
-
LastUpgradeCheck = 0920;
|
|
86
|
-
ORGANIZATIONNAME = Facebook;
|
|
87
|
-
TargetAttributes = {
|
|
88
|
-
58B511DA1A9E6C8500147676 = {
|
|
89
|
-
CreatedOnToolsVersion = 6.1.1;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNZcash" */;
|
|
94
|
-
compatibilityVersion = "Xcode 3.2";
|
|
95
|
-
developmentRegion = English;
|
|
96
|
-
hasScannedForEncodings = 0;
|
|
97
|
-
knownRegions = (
|
|
98
|
-
en,
|
|
99
|
-
);
|
|
100
|
-
mainGroup = 58B511D21A9E6C8500147676;
|
|
101
|
-
productRefGroup = 58B511D21A9E6C8500147676;
|
|
102
|
-
projectDirPath = "";
|
|
103
|
-
projectRoot = "";
|
|
104
|
-
targets = (
|
|
105
|
-
58B511DA1A9E6C8500147676 /* RNZcash */,
|
|
106
|
-
);
|
|
107
|
-
};
|
|
108
|
-
/* End PBXProject section */
|
|
109
|
-
|
|
110
|
-
/* Begin PBXSourcesBuildPhase section */
|
|
111
|
-
58B511D71A9E6C8500147676 /* Sources */ = {
|
|
112
|
-
isa = PBXSourcesBuildPhase;
|
|
113
|
-
buildActionMask = 2147483647;
|
|
114
|
-
files = (
|
|
115
|
-
B3E7B58A1CC2AC0600A0062D /* RNZcash.m in Sources */,
|
|
116
|
-
);
|
|
117
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
118
|
-
};
|
|
119
|
-
/* End PBXSourcesBuildPhase section */
|
|
120
|
-
|
|
121
|
-
/* Begin XCBuildConfiguration section */
|
|
122
|
-
58B511ED1A9E6C8500147676 /* Debug */ = {
|
|
123
|
-
isa = XCBuildConfiguration;
|
|
124
|
-
buildSettings = {
|
|
125
|
-
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
126
|
-
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
127
|
-
CLANG_CXX_LIBRARY = "libc++";
|
|
128
|
-
CLANG_ENABLE_MODULES = YES;
|
|
129
|
-
CLANG_ENABLE_OBJC_ARC = YES;
|
|
130
|
-
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
131
|
-
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
132
|
-
CLANG_WARN_COMMA = YES;
|
|
133
|
-
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
134
|
-
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
135
|
-
CLANG_WARN_EMPTY_BODY = YES;
|
|
136
|
-
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
137
|
-
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
138
|
-
CLANG_WARN_INT_CONVERSION = YES;
|
|
139
|
-
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
140
|
-
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
141
|
-
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
142
|
-
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
143
|
-
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
144
|
-
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
145
|
-
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
146
|
-
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
147
|
-
COPY_PHASE_STRIP = NO;
|
|
148
|
-
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
149
|
-
ENABLE_TESTABILITY = YES;
|
|
150
|
-
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
151
|
-
GCC_DYNAMIC_NO_PIC = NO;
|
|
152
|
-
GCC_NO_COMMON_BLOCKS = YES;
|
|
153
|
-
GCC_OPTIMIZATION_LEVEL = 0;
|
|
154
|
-
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
155
|
-
"DEBUG=1",
|
|
156
|
-
"$(inherited)",
|
|
157
|
-
);
|
|
158
|
-
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
|
159
|
-
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
160
|
-
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
161
|
-
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
162
|
-
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
163
|
-
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
164
|
-
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
165
|
-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
166
|
-
MTL_ENABLE_DEBUG_INFO = YES;
|
|
167
|
-
ONLY_ACTIVE_ARCH = YES;
|
|
168
|
-
SDKROOT = iphoneos;
|
|
169
|
-
};
|
|
170
|
-
name = Debug;
|
|
171
|
-
};
|
|
172
|
-
58B511EE1A9E6C8500147676 /* Release */ = {
|
|
173
|
-
isa = XCBuildConfiguration;
|
|
174
|
-
buildSettings = {
|
|
175
|
-
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
176
|
-
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
177
|
-
CLANG_CXX_LIBRARY = "libc++";
|
|
178
|
-
CLANG_ENABLE_MODULES = YES;
|
|
179
|
-
CLANG_ENABLE_OBJC_ARC = YES;
|
|
180
|
-
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
181
|
-
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
182
|
-
CLANG_WARN_COMMA = YES;
|
|
183
|
-
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
184
|
-
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
185
|
-
CLANG_WARN_EMPTY_BODY = YES;
|
|
186
|
-
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
187
|
-
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
188
|
-
CLANG_WARN_INT_CONVERSION = YES;
|
|
189
|
-
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
190
|
-
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
191
|
-
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
192
|
-
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
193
|
-
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
194
|
-
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
195
|
-
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
196
|
-
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
197
|
-
COPY_PHASE_STRIP = YES;
|
|
198
|
-
ENABLE_NS_ASSERTIONS = NO;
|
|
199
|
-
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
200
|
-
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
201
|
-
GCC_NO_COMMON_BLOCKS = YES;
|
|
202
|
-
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
203
|
-
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
204
|
-
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
205
|
-
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
206
|
-
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
207
|
-
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
208
|
-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
209
|
-
MTL_ENABLE_DEBUG_INFO = NO;
|
|
210
|
-
SDKROOT = iphoneos;
|
|
211
|
-
VALIDATE_PRODUCT = YES;
|
|
212
|
-
};
|
|
213
|
-
name = Release;
|
|
214
|
-
};
|
|
215
|
-
58B511F01A9E6C8500147676 /* Debug */ = {
|
|
216
|
-
isa = XCBuildConfiguration;
|
|
217
|
-
buildSettings = {
|
|
218
|
-
HEADER_SEARCH_PATHS = (
|
|
219
|
-
"$(inherited)",
|
|
220
|
-
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
221
|
-
"$(SRCROOT)/../../../React/**",
|
|
222
|
-
"$(SRCROOT)/../../react-native/React/**",
|
|
223
|
-
);
|
|
224
|
-
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
225
|
-
OTHER_LDFLAGS = "-ObjC";
|
|
226
|
-
PRODUCT_NAME = RNZcash;
|
|
227
|
-
SKIP_INSTALL = YES;
|
|
228
|
-
};
|
|
229
|
-
name = Debug;
|
|
230
|
-
};
|
|
231
|
-
58B511F11A9E6C8500147676 /* Release */ = {
|
|
232
|
-
isa = XCBuildConfiguration;
|
|
233
|
-
buildSettings = {
|
|
234
|
-
HEADER_SEARCH_PATHS = (
|
|
235
|
-
"$(inherited)",
|
|
236
|
-
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
237
|
-
"$(SRCROOT)/../../../React/**",
|
|
238
|
-
"$(SRCROOT)/../../react-native/React/**",
|
|
239
|
-
);
|
|
240
|
-
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
241
|
-
OTHER_LDFLAGS = "-ObjC";
|
|
242
|
-
PRODUCT_NAME = RNZcash;
|
|
243
|
-
SKIP_INSTALL = YES;
|
|
244
|
-
};
|
|
245
|
-
name = Release;
|
|
246
|
-
};
|
|
247
|
-
/* End XCBuildConfiguration section */
|
|
248
|
-
|
|
249
|
-
/* Begin XCConfigurationList section */
|
|
250
|
-
58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNZcash" */ = {
|
|
251
|
-
isa = XCConfigurationList;
|
|
252
|
-
buildConfigurations = (
|
|
253
|
-
58B511ED1A9E6C8500147676 /* Debug */,
|
|
254
|
-
58B511EE1A9E6C8500147676 /* Release */,
|
|
255
|
-
);
|
|
256
|
-
defaultConfigurationIsVisible = 0;
|
|
257
|
-
defaultConfigurationName = Release;
|
|
258
|
-
};
|
|
259
|
-
58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNZcash" */ = {
|
|
260
|
-
isa = XCConfigurationList;
|
|
261
|
-
buildConfigurations = (
|
|
262
|
-
58B511F01A9E6C8500147676 /* Debug */,
|
|
263
|
-
58B511F11A9E6C8500147676 /* Release */,
|
|
264
|
-
);
|
|
265
|
-
defaultConfigurationIsVisible = 0;
|
|
266
|
-
defaultConfigurationName = Release;
|
|
267
|
-
};
|
|
268
|
-
/* End XCConfigurationList section */
|
|
269
|
-
};
|
|
270
|
-
rootObject = 58B511D31A9E6C8500147676 /* Project object */;
|
|
271
|
-
}
|
package/lib/src/browser.d.ts
DELETED
|
File without changes
|
package/lib/src/index.d.ts
DELETED
|
File without changes
|
package/lib/test/test.test.d.ts
DELETED
|
File without changes
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// Checkpoints are committed into the appropriate Android directory but need to be copied to iOS.
|
|
4
|
-
// This script assumes it is run from within the app directory like so
|
|
5
|
-
//
|
|
6
|
-
// node ./node_modules/react-native-zcash/scripts/copyCheckpoints.js
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line no-undef
|
|
9
|
-
const { execSync } = require('child_process')
|
|
10
|
-
|
|
11
|
-
const cmd = `cp -r node_modules/react-native-zcash/android/src/main/assets/saplingtree/mainnet/* ios/Pods/ZcashLightClientKit/Sources/ZcashLightClientKit/Resources/saplingtree-checkpoints/mainnet/`
|
|
12
|
-
execSync(cmd)
|
package/src/browser.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// No support for browser
|
|
2
|
-
// import { makeNodeDisklet, makeReactNativeDisklet } from './backends/dummy'
|
|
3
|
-
// import { makeLocalStorageDisklet, WebStorage } from './backends/local-storage'
|
|
4
|
-
// import { makeMemoryDisklet, MemoryStorage } from './backends/memory'
|
|
5
|
-
// import { DiskletFolder, downgradeDisklet } from './legacy/legacy'
|
|
6
|
-
|
|
7
|
-
// export * from './helpers/helpers'
|
|
8
|
-
// export * from './legacy/legacy'
|
|
9
|
-
// export * from './types'
|
|
10
|
-
// export {
|
|
11
|
-
// makeLocalStorageDisklet,
|
|
12
|
-
// makeMemoryDisklet,
|
|
13
|
-
// makeNodeDisklet,
|
|
14
|
-
// makeReactNativeDisklet
|
|
15
|
-
// }
|
|
16
|
-
|
|
17
|
-
// // legacy API ----------------------------------------------------------------
|
|
18
|
-
|
|
19
|
-
// export function makeLocalStorageFolder(
|
|
20
|
-
// storage: WebStorage,
|
|
21
|
-
// opts?: { prefix?: string }
|
|
22
|
-
// ): DiskletFolder {
|
|
23
|
-
// return downgradeDisklet(makeLocalStorageDisklet(storage, opts))
|
|
24
|
-
// }
|
|
25
|
-
|
|
26
|
-
// export function makeMemoryFolder(storage?: MemoryStorage): DiskletFolder {
|
|
27
|
-
// return downgradeDisklet(makeMemoryDisklet(storage))
|
|
28
|
-
// }
|
|
29
|
-
|
|
30
|
-
// export function makeNodeFolder(path: string): DiskletFolder {
|
|
31
|
-
// return downgradeDisklet(makeNodeDisklet(path))
|
|
32
|
-
// }
|
|
33
|
-
|
|
34
|
-
// export function makeReactNativeFolder(): DiskletFolder {
|
|
35
|
-
// return downgradeDisklet(makeReactNativeDisklet())
|
|
36
|
-
// }
|
package/src/index.flow.js
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
// // @flow
|
|
2
|
-
|
|
3
|
-
// export type ArrayLike<T> =
|
|
4
|
-
// | $ReadOnlyArray<T>
|
|
5
|
-
// | {
|
|
6
|
-
// +length: number,
|
|
7
|
-
// +[n: number]: T
|
|
8
|
-
// }
|
|
9
|
-
|
|
10
|
-
// export interface DiskletListing {
|
|
11
|
-
// [path: string]: 'file' | 'folder';
|
|
12
|
-
// }
|
|
13
|
-
|
|
14
|
-
// export interface Disklet {
|
|
15
|
-
// // Like `rm -r path`:
|
|
16
|
-
// delete(path: string): Promise<mixed>;
|
|
17
|
-
|
|
18
|
-
// // Like `cat path`:
|
|
19
|
-
// getData(path: string): Promise<Uint8Array>;
|
|
20
|
-
// getText(path: string): Promise<string>;
|
|
21
|
-
|
|
22
|
-
// // Like `ls -l path`:
|
|
23
|
-
// list(path?: string): Promise<DiskletListing>;
|
|
24
|
-
|
|
25
|
-
// // Like `mkdir -p $(dirname path); echo data > path`:
|
|
26
|
-
// setData(path: string, data: ArrayLike<number>): Promise<mixed>;
|
|
27
|
-
// setText(path: string, text: string): Promise<mixed>;
|
|
28
|
-
// }
|
|
29
|
-
|
|
30
|
-
// type LogOperation =
|
|
31
|
-
// | 'delete'
|
|
32
|
-
// | 'get data'
|
|
33
|
-
// | 'get text'
|
|
34
|
-
// | 'list'
|
|
35
|
-
// | 'set data'
|
|
36
|
-
// | 'set text'
|
|
37
|
-
|
|
38
|
-
// interface LogOptions {
|
|
39
|
-
// callback?: (path: string, operation: LogOperation) => mixed;
|
|
40
|
-
// verbose?: boolean;
|
|
41
|
-
// }
|
|
42
|
-
|
|
43
|
-
// interface MemoryStorage {
|
|
44
|
-
// [key: string]: string | Uint8Array;
|
|
45
|
-
// }
|
|
46
|
-
|
|
47
|
-
// // The Typescript DOM library isn't available on React Native,
|
|
48
|
-
// // so work around that:
|
|
49
|
-
// interface WebStorage {
|
|
50
|
-
// +length: number;
|
|
51
|
-
// getItem(key: string): string | null;
|
|
52
|
-
// key(index: number): string | null;
|
|
53
|
-
// removeItem(key: string): void;
|
|
54
|
-
// setItem(key: string, value: string): void;
|
|
55
|
-
// }
|
|
56
|
-
|
|
57
|
-
// // Storage backends:
|
|
58
|
-
// declare export function makeLocalStorageDisklet(
|
|
59
|
-
// storage?: WebStorage,
|
|
60
|
-
// opts?: { prefix?: string }
|
|
61
|
-
// ): Disklet
|
|
62
|
-
// declare export function makeMemoryDisklet(storage?: MemoryStorage): Disklet
|
|
63
|
-
// declare export function makeNodeDisklet(path: string): Disklet
|
|
64
|
-
// declare export function makeReactNativeDisklet(): Disklet
|
|
65
|
-
|
|
66
|
-
// // Wrappers:
|
|
67
|
-
// declare export function logDisklet(disklet: Disklet, opts?: LogOptions): Disklet
|
|
68
|
-
// declare export function mergeDisklets(
|
|
69
|
-
// master: Disklet,
|
|
70
|
-
// fallback: Disklet
|
|
71
|
-
// ): Disklet
|
|
72
|
-
// declare export function navigateDisklet(disklet: Disklet, path: string): Disklet
|
|
73
|
-
|
|
74
|
-
// // Listing helpers:
|
|
75
|
-
// declare export function deepList(
|
|
76
|
-
// disklet: Disklet,
|
|
77
|
-
// path?: string
|
|
78
|
-
// ): Promise<DiskletListing>
|
|
79
|
-
// declare export function justFiles(listing: DiskletListing): string[]
|
|
80
|
-
// declare export function justFolders(listing: DiskletListing): string[]
|
|
81
|
-
|
|
82
|
-
// // legacy API ----------------------------------------------------------------
|
|
83
|
-
|
|
84
|
-
// export interface DiskletFile {
|
|
85
|
-
// delete(): Promise<void>;
|
|
86
|
-
// getData(): Promise<Uint8Array>;
|
|
87
|
-
// getText(): Promise<string>;
|
|
88
|
-
// setData(data: ArrayLike<number>): Promise<void>;
|
|
89
|
-
// setText(text: string): Promise<void>;
|
|
90
|
-
// }
|
|
91
|
-
|
|
92
|
-
// export interface DiskletFolder {
|
|
93
|
-
// delete(): Promise<void>;
|
|
94
|
-
// file(name: string): DiskletFile;
|
|
95
|
-
// folder(name: string): DiskletFolder;
|
|
96
|
-
// listFiles(): Promise<string[]>;
|
|
97
|
-
// listFolders(): Promise<string[]>;
|
|
98
|
-
// }
|
|
99
|
-
|
|
100
|
-
// // Helper functions:
|
|
101
|
-
|
|
102
|
-
// declare export function locateFile(
|
|
103
|
-
// folder: DiskletFolder,
|
|
104
|
-
// path: string
|
|
105
|
-
// ): DiskletFile
|
|
106
|
-
// declare export function locateFolder(
|
|
107
|
-
// folder: DiskletFolder,
|
|
108
|
-
// path: string
|
|
109
|
-
// ): DiskletFolder
|
|
110
|
-
|
|
111
|
-
// declare export function mapAllFiles(
|
|
112
|
-
// folder: DiskletFolder,
|
|
113
|
-
// callback: (
|
|
114
|
-
// file: DiskletFile,
|
|
115
|
-
// path: string,
|
|
116
|
-
// parentFolder: DiskletFolder
|
|
117
|
-
// ) => any
|
|
118
|
-
// ): Promise<any[]>
|
|
119
|
-
|
|
120
|
-
// declare export function mapFiles(
|
|
121
|
-
// folder: DiskletFolder,
|
|
122
|
-
// callback: (file: DiskletFile, name: string, parent: DiskletFolder) => any
|
|
123
|
-
// ): Promise<any[]>
|
|
124
|
-
|
|
125
|
-
// declare export function mapFolders(
|
|
126
|
-
// folder: DiskletFolder,
|
|
127
|
-
// callback: (folder: DiskletFolder, name: string, parent: DiskletFolder) => any
|
|
128
|
-
// ): Promise<any[]>
|
|
129
|
-
|
|
130
|
-
// // DiskletFolder types:
|
|
131
|
-
|
|
132
|
-
// interface LocalStorageOpts {
|
|
133
|
-
// prefix?: string;
|
|
134
|
-
// }
|
|
135
|
-
|
|
136
|
-
// type LoggedFolderOperations =
|
|
137
|
-
// | 'delete file'
|
|
138
|
-
// | 'delete folder'
|
|
139
|
-
// | 'get data'
|
|
140
|
-
// | 'get text'
|
|
141
|
-
// | 'list files'
|
|
142
|
-
// | 'list folders'
|
|
143
|
-
// | 'set data'
|
|
144
|
-
// | 'set text'
|
|
145
|
-
|
|
146
|
-
// interface LoggedFolderOpts {
|
|
147
|
-
// callback?: (path: string, operation: LoggedFolderOperations) => void;
|
|
148
|
-
// verbose?: boolean;
|
|
149
|
-
// }
|
|
150
|
-
|
|
151
|
-
// declare export function makeLocalStorageFolder(
|
|
152
|
-
// storage?: Object,
|
|
153
|
-
// opts?: LocalStorageOpts
|
|
154
|
-
// ): DiskletFolder
|
|
155
|
-
|
|
156
|
-
// declare export function makeLoggedFolder(
|
|
157
|
-
// folder: DiskletFolder,
|
|
158
|
-
// opts?: LoggedFolderOpts
|
|
159
|
-
// ): DiskletFolder
|
|
160
|
-
|
|
161
|
-
// declare export function downgradeDisklet(disklet: Disklet): DiskletFolder
|
|
162
|
-
// declare export function makeMemoryFolder(storage?: Object): DiskletFolder
|
|
163
|
-
// declare export function makeNodeFolder(path: string): DiskletFolder
|
|
164
|
-
// declare export function makeReactNativeFolder(): DiskletFolder
|
|
165
|
-
// declare export function makeUnionFolder(
|
|
166
|
-
// master: DiskletFolder,
|
|
167
|
-
// fallback: DiskletFolder
|
|
168
|
-
// ): DiskletFolder
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// No support for node or web
|