Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refine error handling #91

Open
wants to merge 47 commits into
base: main
Choose a base branch
from
Open

refine error handling #91

wants to merge 47 commits into from

Conversation

akayi07
Copy link
Contributor

@akayi07 akayi07 commented Aug 12, 2024

The commit removes the backtrace. This is the result of bash publish.sh:
图片

yymone and others added 30 commits March 14, 2024 18:56
…types

ZKWAS-235: proof submit mode types
* add batch proof types

* add initial types and query api

* paginated result

* update types for metadata + auto submit

* refine type

* export

* fix enum export
* add prooftracker/batchverify

* export

* update

* debug

* try flatten

* send tx

* update types

* update type for batchverify, update key names

* fix exports
* update readme and interfaces

* readme

* rm dupe
* update types

* add chain id to query

* auto submit networks in config

* metadata type for batch data
* rework metadata into fields

* image interface update

* update
* update readme

* update
Merge auto sumbit feature into main for helper
* add reduced task

* add user addr

* separate endpoint

* rename
rhaoio and others added 17 commits June 12, 2024 12:30
Fix the issue that react cannot use import <JSON> from <json file> assert { type: json}
It is because after node version 17, node force the type checking if import is for json file directly.
So if we start node serivce via node command directly, we need add this "assert assert { type: json}" feature
React is still using old node version and react in fact do not care whether we have it or not.
However, we are using typescript. 
Typescripts only suppor this new feature after 5.x version
React's react-scripts module haven't support 5.x version.
So we cannot change to use new 5.x version.
So we change to string.
* stats update

* query update

* endpoint name

* fix type
* update load file for nodejs env

* use buffer

* try with md5 from uint8array

* fix sig with initial context

* add examples and update readme
* update type names

* remove

* naming updates

* fix verify addr
* ZKWAS-301 & ZKWAS-304: Update inteface for node list improvements (#86)

* ZKWAS-318: added endpoint for setting rest server maintenance mode (#88)

---------

Co-authored-by: Oscar Downing <[email protected]>
@akayi07 akayi07 requested a review from xgaozoyoe August 12, 2024 09:00
@@ -28,9 +28,6 @@ export class ZkWasmServiceEndpoint {
);
return response.data;
} catch (e: any) {
if (this.enable_logs) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if internal log affect user, I suggest change the default of enable_logs to false instead of remove them.
This is debug purpose so we can just set enable_logs to false when create the ZkWasmServiceEndpoint.
But as we internally use it so client's may not be able to turn off it.
Thus I suggest change the default to false.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need change the enable_logs default in ZkWasmServiceHelper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants