Skip to content

Commit

Permalink
Implement queryAccount function
Browse files Browse the repository at this point in the history
  • Loading branch information
perfectmak committed Jun 22, 2019
0 parents commit 215c00c
Show file tree
Hide file tree
Showing 62 changed files with 23,217 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
node_modules
15 changes: 15 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Libra Core

Libra Core is a javascript library client that can be used to interact to the libra nodes.

> This is still under heavy development and testing, so not ready yet
## Installation
To install with npm run:

```
npm install libra-core
```

## Contribution
Feel free to contribute by opening issues or PR's to this repository
25 changes: 25 additions & 0 deletions generate-proto.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
PROTO_IMPORT_DIR="./proto/"
GEN_OUT_DIR="./lib/__generated__"

# Create the generated output dir if it doesn't exist
if [ ! -d "$GEN_OUT_DIR" ]; then
mkdir -p ${GEN_OUT_DIR}
fi

FILE_PATHS='./proto/*.proto'

# Generate JavaScript
grpc_tools_node_protoc \
--js_out=import_style=commonjs,binary:${GEN_OUT_DIR} \
--grpc_out=${GEN_OUT_DIR} \
--plugin=protoc-gen-grpc=`which grpc_tools_node_protoc_plugin` \
-I ${PROTO_IMPORT_DIR} \
${FILE_PATHS}

# Generate TypeScript definitions
grpc_tools_node_protoc \
--plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts \
--ts_out=${GEN_OUT_DIR} \
-I ${PROTO_IMPORT_DIR} \
${FILE_PATHS}
7 changes: 7 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
roots: ['<rootDir>/test'],
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
testRegex: '/test(/(integration|unit))?/.*\\.test\\.ts$',
};
1 change: 1 addition & 0 deletions lib/__generated__/access_path_grpc_pb.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions lib/__generated__/access_path_pb.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

232 changes: 232 additions & 0 deletions lib/__generated__/access_path_pb.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/__generated__/account_state_blob_grpc_pb.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 65 additions & 0 deletions lib/__generated__/account_state_blob_pb.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 215c00c

Please sign in to comment.