Commit Graph

626 Commits

Author SHA1 Message Date
sairajzero
0308af983f Adding clearData to CompactIDB
compactIDB.clearData clears all data in the given objectstore.
2020-05-02 18:48:02 +05:30
sairajzero
f60e7dddbb v1.0.7
Fixed bugs:
- Fixed: Restore data not working.
- Settings screen not hiding after logout, clear, restore

Others:
- Updating CompactIDB to latest stdop (initDB adds missing objectStores instead of rejecting).
2020-05-02 18:36:15 +05:30
sairajzero
38f43d805d InitDB: add missing objectStores
InitDB now automatically adds the missing objectstore instead of rejecting
2020-05-02 18:10:47 +05:30
sairajzero
5c22ecab87 v1.0.6
Major Changes:
- Seperated User IDB (Made changes as required for the same)
- 'Sign Out' now only removes the credentials instead of all data
- Added 'Clear Data' in settings. (Clears all user data)
- User can view their private key in settings. (Click on it to copy key to clipboard).
- Messages and Mails are encrypted in IDB (Made changes as required for the same).
- Added Marked feature in messenger (can be used to mark mails and contacts, currently only unread mark used. More marks will be added in future).
- Unread mark UI available for Individual mail and Contact with new unread messages.

Fixed Bugs:
- Fixed: Messages and Mails not refreshed properly in a case.
- Fixed: Unread notification not working
- Fixed: Previous Mail not showing correctly

Minor Changes:
- Added Ranchimall logo
- Changes confirmation message during Signout
- Improved Confirmation Box message (now has a title and message, also have optional custom button text)
- Uses a randomly generated ref for mails
- Added minimize and maximize button for compose-mail box
2020-05-02 01:39:28 +05:30
sairajzero
1954fc0782 Improved sendTxMultiple and writeDataMultiple
sendTxMultiple:
There are 2 modes (given send amount, preserve ratio)
- Given Send Amount: Uses the given send amount from each sender IDs. Pass the senderPrivKeys as object with amount to invoke this mode
eg. { privateKey1: sendAmt1, privateKey2: sendAmt2...}
- preserveRatio: The ratio of the balance of the senders are maintained. Pass the senderPrivKeys as array of private keys.
eg. [privatekey1, privatekey2....]
*Note: receivers must always be object of floIDs with receive amount.
eg. {receiverID1: receiveAmt1, receiver2: receiveAmt2...}

writeDataMultiple:
There are 2 modes (preserveRatio, equalContribution)
- preserveRatio: preserves the ratio of the balance of senders
- equalContribution: all senders contribute equal amount to the transaction
Note:
*senderPrivKey and receivers are arrays
eq. [privateKey1, privateKey2, ..] and [receiverID1, receiverID2...]
*sends default amount (floGlobals.sendAmt) to each receiver)
*last (4th) parameter is optional:
(default) true: invokes preserveRatio mode
false: invokes equalContibution mode
2020-04-26 01:04:12 +05:30
sairajzero
a569adcb74 Adding mergeUTXOs, sendTxMulti and writeDataMulti
mergeUTXOs: /merge all UTXOs of a given floID into a single UTXO

sendTxMulti: Send Tx from (and/or) to multiple floID

writeDataMulti: Write data into blockchain from (and/or) to multiple floID
2020-04-25 17:54:13 +05:30
sairajzero
0a6fb69349 Beautify the scripts 2020-04-23 21:16:54 +05:30
Sai Raj
f52d706cc0
Update README.md 2020-04-17 19:08:51 +05:30
Sai Raj
ac16e26c91
Rename FLO_Messenger.html to index.html 2020-04-17 19:05:04 +05:30
sairajzero
e573ecb8ac v1.0.2
Major Changes:
- Added a settings screen (Click on the settings button on top-right to open settings popup).
- Backup data, Restore data and Signout options are located in settings screen.
- Added UI for mail feature.
- Fixed minor bugs in mail feature.

Backup and Restore features:
- Backup data: allows the user to download a backup file of the data (contacts, pubKeys, mails,  messages).
- Restore data: allows the user to restore the data from a backup file.

Mail Feature:
- Users can send and receive mail to/from other users.
- Click the new mail at the bottom of the page to compose a new mail.
- Mails will be refreshed and retrived from supernode along with messages.
- Click on a mail to view the content of the mail.
- To view the previous mail of the sequel, click 'view previous mail' at the bottom right of the pop-up.
- To reply to a mail, click reply mail at the bottom of the pop-up.
2020-04-17 19:01:43 +05:30
sairajzero
3d04fea2ab v1.0.1
Added:
- Adding Backup feature
- Adding Mail feature

Others:
- Rename sendUnencrypted to sendEncoded
- Moved sendEncrypted, sendEncoded and sendRaw to util.
- Added sendMessage to automatically determine the type to send
- Joined all load funtions into loadData
- Altered funtion calls as per the changes
2020-04-08 15:57:38 +05:30
sairajzero
0a5ad5a2e4 v1.0.0
- Adding major UI
- Added feature to store contact (with name)
2020-04-06 04:55:28 +05:30
sairajzero
548e3d203c Changing application name to Messenger 2020-03-21 18:49:56 +05:30
sairajzero
a4e50a5957 Adding Simple UI and startUp 2020-03-18 18:47:14 +05:30
sairajzero
d4fc6dd999 customizing floDapp for floMessage requirement 2020-03-18 18:46:03 +05:30
sairajzero
b46c63d063 Adding floMessage scripts
Removing floCloudAPI (floMessage script has inbuilt customization as needed)
2020-03-18 18:44:20 +05:30
sairajzero
0b43ad02ad Initial commit 2020-03-18 18:41:58 +05:30
Sai Raj
02252f67ce Initial commit 2020-03-18 18:33:59 +05:30
sairajzero
3d0c8883b7 Improved floCloudAPI
floCloudAPI now stores the lastCommit value of the objects via requestObjectData, resetObjectData, updateObjectData

resetObjectData and updateObjectData now takes the new and old value from floGlobals.appObjects and lastCommit respectively

Parameter changes:
resetObjectData: function(objectName, options = {})
updateObjectData: function(objectName, options = {})
2020-03-10 22:00:56 +05:30
sairajzero
8652959e54 floCrypto: errorHanding
errorHanding added to floCrypto.getPubKeyHex and floCrypto.getFloIDfromPubkeyHex
2020-03-04 03:45:50 +05:30
sairajzero
47ca6a802e moving onloadStartup to a seperate script tag 2020-02-16 02:38:51 +05:30
sairajzero
d6c4b4882e changing TEST_MODE adminID 2020-02-16 02:36:35 +05:30
sairajzero
86ea714139 adding manage subAdmin to floDapps
floDapps.manageSubAdmins() allows the user to add and/or remove subadmin list via blockchain
*Requires Admin Privatekey of the app
2020-02-16 02:34:58 +05:30
sairajzero
c3a51f44a7 bug fix 2020-02-06 14:56:12 +05:30
sairajzero
7a6a2dc9ea Custom privKeyInput is made promisified
privKeyInput now uses given key when resolved and generates random key when rejected
2020-02-06 13:38:09 +05:30
sairajzero
cdeab33c20 Login as guest feature
Entering a empty string for private Key now automatically generated a random key and logins as guest
2020-02-03 18:43:29 +05:30
Sai Raj
43afe64fbf
Merge pull request #4 from sairajzero/master 2020-01-31 22:06:52 +05:30
sairajzero
2bf166ffd1 bug fix: floSupernode module 2020-01-31 20:22:35 +05:30
sairajzero
a44fe4be72 adding custom input for privkey 2020-01-31 14:42:42 +05:30
sairajzero
e3e034ae0a bug fix: vectorClock IDB 2020-01-22 22:25:02 +05:30
sairajzero
556f4ddadd bug fix: floCloudAPI 2020-01-07 15:06:03 +05:30
Sai Raj
bbb2a4596b
Merge pull request #3 from sairajzero/master 2020-01-05 20:53:21 +05:30
sairajzero
f5f44f9415 Merge branch 'master' of https://github.com/sairajzero/Standard_Operations 2020-01-05 20:44:14 +05:30
sairajzero
efbb6fa9e2 bug fix 2020-01-05 20:44:09 +05:30
sairajzero
73965d87fc adding event listner to startup functions
startUpSuccessLog and startUpSuccessLog Events are registered to log the start up functions
2020-01-05 20:40:53 +05:30
Sai Raj
2c6b422533
Merge pull request #2 from sairajzero/master 2020-01-05 20:17:37 +05:30
Sai Raj
2b847b7a4e
Update README.md 2020-01-05 20:13:53 +05:30
sairajzero
1301caaa40 adding a dummy floID as adminID 2020-01-05 20:00:02 +05:30
Sai Raj
8dbace647f
Merge pull request #1 from sairajzero/master 2020-01-05 19:55:09 +05:30
sairajzero
e40771eb23 bug fix: some missing libraries 2020-01-05 19:43:09 +05:30
sairajzero
c473d200c0 Improving floSupernode.kBucket module
Adding getInnerNodes and getOuterNodes
getPrevSupernode, getNextSupernode and determineClosestSupernode now return an array of floIDs
2020-01-05 19:42:34 +05:30
sairajzero
5e9926b87b bug fix: floDapps 2019-12-19 22:28:43 +05:30
sairajzero
5a2b6250ca adding floDapps std_Op
This std_op contains functions for FLO Dapp startup and other useful functions for FLO Dapps
2019-12-19 22:03:53 +05:30
sairajzero
e42a972f12 floCloudAPI: moving the reactor events to util and Promisifying all canon operations 2019-12-19 21:42:02 +05:30
sairajzero
afa8714d0e bug fix 2019-12-19 20:31:30 +05:30
sairajzero
8f3ef66d15 moving KBucket library to floSupernode tag 2019-12-19 20:27:21 +05:30
sairajzero
d09ada8261 floCrypto improvement
moving non canon functions to util property
2019-12-19 20:25:14 +05:30
sairajzero
7a60c9f134 Moving libraries to init_lib 2019-12-19 20:23:24 +05:30
sairajzero
a06f455026 Moved floGlobals to to head and added id to std_op script tag 2019-12-19 20:08:11 +05:30
sairajzero
e691662c82 adding send and request general data to floCloudAPI
sendGeneralData : sends general data to the cloud
requestGeneralData : request general data from the cloud
2019-12-12 18:11:26 +05:30