datona-lib
Version:
Core library for access to the Datona IO Platform. Datona Protocol v0.0.2. Adds HTTP and WebSocket support.
432 lines (288 loc) • 14.8 kB
Plain Text
commit 1fe14016a539baaaaa475300bd179d9c19fba159
Author: Dave Potter <dave@datonalabs.org>
Date: Sat Aug 1 21:46:53 2020 +0100
publish 0.1.3 to npm
commit 95fc7a786628df0909eacfb3d15b04a398e10a11
Author: Dave Potter <dave@datonalabs.org>
Date: Sat Aug 1 16:49:09 2020 +0100
close any existing web3 connection in blockchain.setProvider
commit 3663460e1dc074d967063b6fb8947ccf1deb2528
Author: Dave Potter <dave@datonalabs.org>
Date: Sat Aug 1 16:37:36 2020 +0100
allow transaction options to be passed to Contract.transact
commit 7714c6314a1a80ee6aa6c27d127546a75cf85319
Merge: a69761e e1c6bc4
Author: Dave Potter <dnpotter1@gmail.com>
Date: Fri Jul 31 14:38:08 2020 +0200
Merge pull request #10 from Datona-Labs/changeAppendStrategy
Change append strategy
commit e1c6bc41688c34e8b6ffb6377ebd1a484f03962d
Author: Dave Potter <dave@datonalabs.org>
Date: Fri Jul 31 13:12:42 2020 +0100
Change append permission stategy for files in directories
Previously, append permission for a file in a directory was directly inherited from the directory's permissions. This change makes the append permission more intuitive and more flexible. If a directory has write permissions then files within that directory can be unconditionally appended to. If the directory does not have write permissions but has append permissions then new files can be appended to the directory but existing files cannot be written to or appended to.
This change modifies the VaultDataServer interface so vault servers that use this version will need to change. The only change to the interface is adding a new method called 'createFile', which is the same as 'write' except it must reject if the file already exists.
commit 9133c4e84ffb034e0cf6e7d19962f10da548dbc2
Author: Dave Potter <dave@datonalabs.org>
Date: Fri Jul 10 18:22:34 2020 +0100
document last 3 commits
commit dfb806a248e27f3d9ab3cfdd1747c08530898ffd
Author: Dave Potter <dave@datonalabs.org>
Date: Fri Jul 10 17:51:14 2020 +0100
generate browser distribution
commit 04a870f72e65fe80b7da60a0f0724ddef1a95e9d
Author: Dave Potter <dave@datonalabs.org>
Date: Fri Jul 10 17:50:31 2020 +0100
add getGasPrice to datona-blockchain and only override txn fields if not already set
commit 3c93d4d733cd8c3d402da5a1ee34239106d5eacf
Author: Dave Potter <dave@datonalabs.org>
Date: Fri Jul 10 17:41:26 2020 +0100
add fileToHash function to datona-crypto
commit b9978fb24f8ec5d1eb626576ba18f0b29af0b94b
Merge: 67982b3 a69761e
Author: Dave Potter <dave@datonalabs.org>
Date: Fri Jul 10 17:39:06 2020 +0100
Merge branch 'master' of github.com:Datona-Labs/datona-lib
commit a69761e9a3fefcb76314f3172056e25d2b637dde
Merge: 00ef8e4 4def7bc
Author: Dave Potter <dnpotter1@gmail.com>
Date: Wed Jul 8 11:14:45 2020 +0200
Merge pull request #8 from Datona-Labs/dependabot/npm_and_yarn/npm-6.14.6
Bump npm from 6.14.4 to 6.14.6
commit 4def7bc86faabfb32520de0130915a8f3727da57
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue Jul 7 20:58:29 2020 +0000
Bump npm from 6.14.4 to 6.14.6
Bumps [npm](https://github.com/npm/cli) from 6.14.4 to 6.14.6.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/latest/CHANGELOG.md)
- [Commits](https://github.com/npm/cli/compare/v6.14.4...v6.14.6)
Signed-off-by: dependabot[bot] <support@github.com>
commit 67982b39bc4641939c3c5b366f627807df106e21
Author: Dave Potter <dave@datonalabs.org>
Date: Sat Jun 27 12:13:35 2020 +0100
add sendTransaction function to datona-blockchain
commit 00ef8e4f1daea495c4fcdd5514586507017f8d4e
Author: Dave Potter <dave@datonalabs.org>
Date: Mon Jun 22 19:07:21 2020 +0100
add publicKey property to the Key class documentation along with the generateKey function documentation
commit 3272ce67ef69d348e8cd424966c1a1cc1402093d
Author: Dave Potter <dave@datonalabs.org>
Date: Sun Jun 7 10:18:07 2020 +0100
support JSON parsed keys in the browser
JSON.parse(JSON.stringify(key)) results in key.privateKey and key.publicKey not being Buffer instances. They then fail key.encrypt(key.publicKey,"test") with a type error. Changed encrypt and decrypt isInstanceOf Uint8Array to Buffer and added test. User must manually typecast key.privateKey and key.publicKey with Buffer.from(...) after JSON parsing.
Buffer is not available in the browser so exported Buffer in datona.crypto. If using in the browser add the line 'const Buffer = datona.crypto.Buffer' to your script.
commit 8844ffe8e0aecb88998a355c755d2b0f3564e935
Merge: 167ef1c 097067f
Author: Dave Potter <dnpotter1@gmail.com>
Date: Wed Jun 3 07:30:45 2020 +0200
Merge pull request #6 from Datona-Labs/encryption
add ECIES encrypt and decrypt functions to datona-crypto.Key class
commit 097067f4ba5ca868bdbe4f2cbee9ac41ee21c1f8
Author: Dave Potter <dave@datonalabs.org>
Date: Wed Jun 3 06:30:25 2020 +0100
browserify to include encryption
commit d099534aa3a6c96cac59eb7705bc65caddef13d8
Author: Dave Potter <dave@datonalabs.org>
Date: Wed Jun 3 06:28:59 2020 +0100
regenerate docs after merging
commit 512f2637f1a9f30189c915ffa88e948d704b7785
Merge: 9a73571 acf903f
Author: Dave Potter <dave@datonalabs.org>
Date: Wed Jun 3 06:28:05 2020 +0100
merged master into branch encryption
commit acf903f1a384b868c824ca904be7de5dd8298ec0
Author: Dave Potter <dave@datonalabs.org>
Date: Tue Jun 2 16:11:07 2020 +0100
browserify to include remote vault transparent options
commit 167ef1c06b4f4cc703fb86a6a4bb95f6608f295b
Author: Dave Potter <dave@datonalabs.org>
Date: Tue Jun 2 14:30:25 2020 +0100
add transparent options to datona-vault
Adds optional 'options' parameter to all RemoteVault functions.
VaultKeeper passes the 'options' transparently through to the VaultDataServer instance. This can be used by the vault server to provide server-specific options to the user.
commit 9a735716a744c2b0d204e4122266538f342f207a
Author: Dave Potter <dave@datonalabs.org>
Date: Tue Jun 2 13:33:56 2020 +0100
add ECIES encrypt and decrypt functions to datona-crypto.Key class
commit 3a967907814c1ea2b18e7d20cd6547f39e9e8694
Author: Dave Potter <dnpotter1@gmail.com>
Date: Sat May 2 15:35:55 2020 +0100
Add link to Ganache in README
commit a935467cd457b92ecce9401f804b3ae5c2513d14
Author: Dave Potter <dave@datonalabs.org>
Date: Sat May 2 14:22:19 2020 +0100
make work in Safari
Required removing static properties in the Contract class to making them global constants
commit dfe801643db8b3dc50e493cafdd10f3dab23f1c6
Merge: df19899 5542426
Author: Dave Potter <dnpotter1@gmail.com>
Date: Wed Apr 29 19:01:42 2020 +0200
Merge pull request #4 from Datona-Labs/websocket
Add web browser support
commit 5542426314e9eb2afef1feef65b6fe3fa58d4d75
Author: Dave Potter <dave@datonalabs.org>
Date: Wed Apr 29 17:38:05 2020 +0100
add browser usage to README
commit 6a9dffbe9e36436bea97417f55ce206e87134cec
Author: Dave Potter <dave@datonalabs.org>
Date: Wed Apr 29 17:14:16 2020 +0100
update docs for the addition of http and websocket support
commit 5557ebd534e2f89566f00583925cab0649ce2db5
Author: Dave Potter <dave@datonalabs.org>
Date: Wed Apr 29 16:58:28 2020 +0100
correct import of Web3 from browser
commit ad41138e9ceaee7a8f8fac378b01ef14c559b4cb
Author: Dave Potter <dave@datonalabs.org>
Date: Wed Apr 29 11:50:16 2020 +0100
add http comms support and create browser dist
commit 3d0ff5f092e4290bcdb6bc617cb6d6b24cfc1339
Author: Dave Potter <dave@datonalabs.org>
Date: Tue Apr 28 12:11:56 2020 +0100
improve isUrl pattern matching
commit e91e02c32c1f08d136a055a9a972ac0d62341896
Author: Dave Potter <dave@datonalabs.org>
Date: Tue Apr 28 12:11:09 2020 +0100
use window.web3 if running in a browser
commit 83aaa41e2204d73a5db19873931efc97f5c8c5e4
Author: Dave Potter <dave@datonalabs.org>
Date: Tue Apr 28 12:06:27 2020 +0100
add ws support (websocket client type) in datona-comms
commit df19899523682a867502d38efe1317889ce5d873
Author: Dave Potter <dave@datonalabs.org>
Date: Sun Apr 26 09:55:24 2020 +0100
publish vulnerability fix to npm
commit d5dfcf1cec1ef7e89bea2cd2f114beac7de976e3
Author: Dave Potter <dave@datonalabs.org>
Date: Sun Apr 26 09:51:36 2020 +0100
fix vulnerability by removing istanbul (now use nyc)
commit a7d6a4c9a83562a747e457f6cc397e62c40a5c7f
Merge: 0fd7e13 7a937e9
Author: Dave Potter <dnpotter1@gmail.com>
Date: Fri Apr 24 20:43:07 2020 +0200
Merge pull request #2 from Datona-Labs/protocol-0.0.2
Protocol 0.0.2
commit 7a937e959c2b3499f7a5aedd9746a7722f9f68e9
Author: Dave Potter <dave@datonalabs.org>
Date: Fri Apr 24 19:42:17 2020 +0100
update package.json for publishing to npm
commit 9d19dd830dba7c3120b5cdf89d59a37b6913fbf0
Author: Dave Potter <dave@datonalabs.org>
Date: Fri Apr 24 19:04:41 2020 +0100
increase gas limit to 6M
commit 9bb271d82b6f3cb539c86333dc46bedc8dc549d2
Author: Dave Potter <dave@datonalabs.org>
Date: Mon Apr 20 16:33:50 2020 +0100
Export protocol version from datona.js
commit 016f40c9bf7629364a2c3c1f14716d2313c783e9
Author: Dave Potter <dave@datonalabs.org>
Date: Sat Apr 18 18:07:46 2020 +0100
move the decoding of a VaultFile name from datona-blockchain to datona-vault
The decoding and validating of a VaultFile filename was encapsulated in the wrong class - in the Contract class instead of the VaultKeeper class. This is why the VaultFile class had to be held in a new types.js file when it clearly belongs in the datona-vault comonent.
Moved the VaultFile class from types to datona-vault and deleted the types file.
Moved the decode and validation of the vault file name from the Contract class to the VaultKeeper class.
Updated the docs to suit.
commit 939e3e75b16038ddc133b83c8c8a36fb49364f79
Author: Dave Potter <dave@datonalabs.org>
Date: Sat Apr 18 17:23:21 2020 +0100
improve error message following datona-cli review
commit 1ee239023f7b44c164aa73b6bb1f09173af8ca36
Author: Dave Potter <dave@datonalabs.org>
Date: Thu Apr 16 16:07:13 2020 +0100
upgrade from istanbul to nyc for test coverage
commit 81906660854f1ce02a15e5f66e0f4c55338fd642
Author: Dave Potter <dave@datonalabs.org>
Date: Thu Apr 16 16:06:34 2020 +0100
trivial updates to code found during documentation
commit c240588cf131be5e34950e80d8061b922ca18ecd
Author: Dave Potter <dave@datonalabs.org>
Date: Thu Apr 16 15:52:54 2020 +0100
update docs for protocol v0.0.2 and file-based permissions
commit e53fb3f3f9fddf0b1d0fc4e802e2a9ea44bd643f
Author: Dave Potter <dave@datonalabs.org>
Date: Wed Apr 15 19:46:53 2020 +0100
add directory support to datona-vault
Includes updating datona-blockchain to return the file permissions from the assertRead/Write/Append functions.
Adds a new VaultFile type to a new types.js source file
Adds a new assertion for VaultFile
Separates the address, hash and private key regexes to the new types.js file.
commit db21d1e85600ae7e52b69a16f24b80534d96d404
Author: Dave Potter <dave@datonalabs.org>
Date: Wed Apr 15 19:45:58 2020 +0100
return a DeveloperError from DatonaError.fromObject if the object is not a Datona Error
commit 97924d30ecdcec43f5754a8e3e789108c885a53f
Author: Dave Potter <dave@datonalabs.org>
Date: Sun Apr 12 09:37:56 2020 +0100
refactor to use expectSuccessResponse function
commit 03042c7dac55566510139e091e9eb2a1e8028019
Author: Dave Potter <dave@datonalabs.org>
Date: Fri Apr 10 16:53:29 2020 +0100
add file-based permissions support to datona-blockchain and datona-vault
commit e871e3d46a332e715a5df12e10907b9c20a9c048
Author: Dave Potter <dave@datonalabs.org>
Date: Thu Apr 9 13:30:13 2020 +0100
Add Ganache port to README and correct reference to config.json
commit 248e77baad5dc3c16419cb1cad33afcf2e1465f9
Author: Dave Potter <dave@datonalabs.org>
Date: Mon Mar 2 14:13:26 2020 +0000
upgrade contracts, datona-blockchain and tests to use SDAC protocol v0.0.2
commit 0fd7e13cc0e126706449a1ba8a4d8c0be74dd664
Author: Dave Potter <dave@datonalabs.org>
Date: Sun Mar 1 20:22:17 2020 +0000
minor improvements following static analysis checks
commit 2519cab0b6e5f4b072d668a43630ce9e5148bd55
Author: Dave Potter <dnpotter1@gmail.com>
Date: Sat Feb 8 14:50:11 2020 +0000
Add npm shield
commit 9f9dd16953792f6df42aec94d59786830c41419d
Author: Dave Potter <dnpotter1@gmail.com>
Date: Thu Feb 6 22:13:47 2020 +0000
update discord link
commit 54bc67386b990d43963d364f8d14f5d8ede5d466
Author: Dave Potter <dave@datonalabs.org>
Date: Thu Feb 6 16:33:43 2020 +0000
correct SmartDataAccessResponse, which is missing txnType and responseType
commit 48cbbaa688318889f92ddcb25dfa5b759fab3701
Author: Dave Potter <dave@datonalabs.org>
Date: Thu Feb 6 16:14:20 2020 +0000
ignore docs folder when publishing to npm repo
commit df8a8f7a406b7aa7c6e244fa591f92975bbbc03b
Author: Dave Potter <dave@datonalabs.org>
Date: Thu Feb 6 12:53:32 2020 +0000
upissue to 0.0.2
commit e9171c9572fac3af591c48c1246e5834d6f111a1
Author: Dave Potter <dave@datonalabs.org>
Date: Thu Feb 6 12:29:51 2020 +0000
correct use of 'owner' to 'getOwner' in datona-blockchain
commit 4cd0e1b609971d6067e1fe7fec3543735c3fdc44
Author: Dave Potter <dave@datonalabs.org>
Date: Thu Feb 6 08:02:26 2020 +0000
add Ganache seed and alt blockchain instructions to README
commit 1dc5ef337f62d01fb45eaa7f8de37067636929af
Author: Dave Potter <dave@datonalabs.org>
Date: Wed Feb 5 16:51:25 2020 +0000
link to ReadTheDocs
commit ac3c74309c44b21e034fc0fb88e5c962e50e3650
Author: Dave Potter <dave@datonalabs.org>
Date: Wed Feb 5 16:45:28 2020 +0000
force sphinx to use index.rst as master file
commit 976879ce7737c09cec6f81fd9659ddaf64611df4
Author: Dave Potter <dave@datonalabs.org>
Date: Wed Feb 5 16:36:39 2020 +0000
remove sphinx_js
commit f39edc73b35abcd406d110e0ae6dcbbbef467a3e
Author: Dave Potter <dave@datonalabs.org>
Date: Wed Feb 5 16:04:50 2020 +0000
fix vunerabilities in install packages
commit 007f0f9fadcb7943463f208f90315d006757d098
Author: Dave Potter <dave@datonalabs.org>
Date: Wed Feb 5 16:00:03 2020 +0000
initial version transferred from gitlab
commit 6efafc09d280a037fa8cfd4442f1bc2e6b06ae50
Author: Dave Potter <dnpotter1@gmail.com>
Date: Wed Feb 5 12:12:07 2020 +0000
Create LICENSE
commit 54f9729343c993fa53f6032866ac7445990d5b8f
Author: Dave Potter <dnpotter1@gmail.com>
Date: Wed Feb 5 12:10:47 2020 +0000
Create README.md