Skip to content

Commit

Permalink
v2.2.0 - Debug Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLoneRonin committed Jan 24, 2021
1 parent a52c1d1 commit f1877a0
Show file tree
Hide file tree
Showing 30 changed files with 219 additions and 133 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Options:
--local cache locally to a JSON file instead of to Arweave (default: false)
--localFile [file path] if caching data locally, specify the file path (default: "solarweave.cache.json")
--console do not output log data to console (default: false)
--debug show more verbose debug logs in the console (default: false)
--uncompressed store blocks in an uncompressed format (default: false)
--parallelize [blocks] the amount of blocks to process at a time, 1 processes 1 block at a time, 8, 8 blocks at a time (default: "1")
--batch [number] the number of requests to batch per Arweave transaction (default: "1")
Expand All @@ -72,6 +73,7 @@ Commands:
index index an existing database with their Account Keys and Signatures
version Get the current version of Solarweave
help [command] display help for command

```
#### Setting credentials
Expand Down Expand Up @@ -172,6 +174,15 @@ You can turn off console out put by passing the `console` flag.
$ solarweave --console
```
#### Debug output
You can debug Solana RPC request and responses and Arweave requests and response with the `debug` flag.
```bash
$ solarweave --debug
```
#### Compression
This command does not impact local files. However, when storing blocks in Arweave. If you wanted to store a raw JSON string instead of a serialized binary `flatbuffer`. You can pass the `uncompressed` flag.
Expand Down
2 changes: 1 addition & 1 deletion dist/src/Config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ export declare const ArData: {
unbundleData(txData: any): Promise<import("arweave-bundles").DataItemJson[]>;
};
export declare const SolarweaveConfig: SolarweaveInterface;
export declare function UpdateConfig(rpc_version: string, database: string, arweaveGraphQL: string, url: string, credentials: string, local: boolean, localFile: string, console: boolean, compressed: boolean, parallelize: number, batch: number, benchmark: boolean, verify: boolean, index: boolean, start?: number, end?: number): void;
export declare function UpdateConfig(rpc_version: string, database: string, arweaveGraphQL: string, url: string, credentials: string, local: boolean, localFile: string, console: boolean, debug: boolean, compressed: boolean, parallelize: number, batch: number, benchmark: boolean, verify: boolean, index: boolean, start?: number, end?: number): void;
4 changes: 3 additions & 1 deletion dist/src/Config.js

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

2 changes: 1 addition & 1 deletion dist/src/Config.js.map

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

3 changes: 2 additions & 1 deletion dist/src/Solarweave.js

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

2 changes: 1 addition & 1 deletion dist/src/Solarweave.js.map

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

1 change: 1 addition & 0 deletions dist/src/interface/Solarweave.interface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export interface SolarweaveInterface {
local: boolean;
localFile: string;
console: boolean;
debug: boolean;
compressed: boolean;
parallelize: number;
batch: number;
Expand Down
2 changes: 1 addition & 1 deletion dist/src/interface/Solarweave.interface.js.map

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

29 changes: 15 additions & 14 deletions dist/src/service/Arweave.service.js

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

Loading

0 comments on commit f1877a0

Please sign in to comment.