arablocks / ara-util Goto Github PK
View Code? Open in Web Editor NEWUtility functions for common Ara tasks
Home Page: https://ara.one/
License: GNU General Public License v3.0
Utility functions for common Ara tasks
Home Page: https://ara.one/
License: GNU General Public License v3.0
I get a web3
instance from the ara-util/web3
submodule.
web3
wrapper functions are returned, and any modules needing a web3
instance have to get it from ara-context
instead.
re: https://github.com/AraBlocks/ara-util/blob/master/index.js#L78
Code should check if identityPath
exists. If not, error should come back as Identity does not exist at ${identityPath}
.
if identityPath
does not exist, error comes back as Incorrect password
.
isCorrectPassword
and pass in an identity not locally storedall
ara-util
should provide function to return a web3
instance. This should reduce the number of situations where both ara-util
and ara-context
are required
, preventing dependency mismatches
Right now the gasPrice
is fixed at whatever value web3.eth.getGasPrice()
returns. When the network is burdened, it makes tx very slow. Need an option to override gasPrice
value.
Is it possible to return tx hash from contract calls? With that, we can create a link to the pending tx on etherscan, which is pretty common for dapps to do. Happy to take a crack at it myself.
validate
should receive either an AFS DID or an owner's DID as did
, along with the corresponding password
validate
unnecessarily makes a distinction between owner
and did
in its signature
$ afs create
ara: error: Error: Incorrect Password.
$ afs create
ara: error: Please recover this AraID using mnemonic on this machine (or something like that).
Check for existence of file here: https://github.com/AraBlocks/ara-util/blob/master/index.js#L77
and throw error directing user to recover identity using mnemonic
validate
function should take in opts for keyring, since validate will resolve the ddo, and only fall back to constants if necessary.
Currently validate
uses constants for keyring options, rather than taking in network name/secret.
DIDs returned from getLibraryItem
in the Library contract are prefixed with 0x. Might be nice to be able to pass these into the function as well.
Able to retrieve keys from keyrings
n/a
We should include the methods here.
Also, we should add isAddress
and soliditySha3
support to the web3
module.
Projects can rely on a common toHex function
Projects write and maintain their own toHex function
n/a
normalize
conflicts with the ara-identity concept of normalize
and should be renamed
https://github.com/AraBlocks/ara-identity/blob/master/did.js#L40
Able to adjust behavior of ara-util without digging through node_modules
to change variables
Having to dig through node_modules
to change constant files
ara-filesystem
node_modules
and add try catches
around requires in code.
ara-filesystem
depends on ara-util
only
ara-filesystem
depends on ara-util
and ara-util
depends on ara-filesystem
validate()
should throw if an AFS DID is passed in as owner
validate()
successfully returns if an AFS DID is passed in as owner
with the owner's password
validate()
as owner
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.