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

Update default config for plugins. #6

Merged
merged 6 commits into from
Dec 1, 2023

Conversation

Jason-Zhangxin-Chen
Copy link
Collaborator

@Jason-Zhangxin-Chen Jason-Zhangxin-Chen commented Nov 30, 2023

To close #5 , we update the default data update interval to 30s to get more realtime data from source, and we also hide the data service keys used in our test from the public plugin-conf.yml to prevent people from using it by mistake.

@lorenzo-dev1 please review it, I will release this soon.
@raj-shekhar1, please review it, you will need to upgrade the oracle server from v0.1.3 to v0.1.4, or you can only need to upgrade the plugins of v0.1.3 with the plugins of v0.1.4 for the test network, piccadily network, and bakerloo as well.

Copy link
Collaborator

@cmjc cmjc left a comment

Choose a reason for hiding this comment

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

Please see edit to default URI for CAX endpoint - this should be Piccadilly testnet.

Endpoint: "cax.devnet.clearmatics.network", // todo: replace it with cax.piccadilly.autonity.org for piccadilly network.
Timeout: 10, //10s
DataUpdateInterval: 3600, //3600s, todo: if there is a rate limit for the CAX service, we'd need to set it properly.
Endpoint: "cax.devnet.clearmatics.network",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Endpoint: "cax.devnet.clearmatics.network",
Endpoint: "cax.piccadilly.autonity.org",

@Jason-Zhangxin-Chen edit to change to the root exchange URI for Piccadilly.

(Note the URI for calls to the SIM API is: https://cax.piccadilly.autonity.org/api/

I assume you want the root URI not the API URI - unless you are calling an API function?

FYSA @aiman

Copy link
Collaborator Author

@Jason-Zhangxin-Chen Jason-Zhangxin-Chen Nov 30, 2023

Choose a reason for hiding this comment

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

@Jason-Zhangxin-Chen edit to change to the root exchange URI for Piccadilly.

(Note the URI for calls to the SIM API is: https://cax.piccadilly.autonity.org/api/

I assume you want the root URI not the API URI - unless you are calling an API function?

FYSA @aiman

I got some timeout error from switching to this host cax.piccadilly.autonity.org for the data from CAX service of piccadilly, please confirm that service is deployed, but anyway it is configurable. Please confirm such change, and I will do some testing on the new service endpoint before we go ahead.

Moreover that, why would we add a prefix /api for the service routing in piccadilly? I would ask to keep the URLs to be unified for different network environments, because it will be easier to maintain a single version of CAX plugin for devnet, piccadilly and bakerloo. For example, current CAX plugin of devnet fetch the data points in a full router like this: https://cax.devnet.clearmatics.network/orderbooks/ATN-USD/quote
if we can keep the same routing pattern like below for piccadilly, it would be nice.
https://cax.piccadilly.autonity.org/orderbooks/ATN-USD/quote

Copy link
Contributor

Choose a reason for hiding this comment

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

The CAX for Piccadilly is not deployed yet, the deployment is in-progress.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@cmjc @raj-shekhar1, to support CAX service of both dev-net and piccadilly, I introduced a build flag in bafb105, @raj-shekhar1 you can build oracle server and the plugins for dev-net by make autoracle-dev while make autoracle will build things for piccadilly. This will make things be simple now.

Copy link
Collaborator

@cmjc cmjc left a comment

Choose a reason for hiding this comment

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

OK, that looks ok to me 👍

Copy link

@lorenzo-dev1 lorenzo-dev1 left a comment

Choose a reason for hiding this comment

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

LGTM! Did not know about the existence of go build -tag, very interesting!

@Jason-Zhangxin-Chen
Copy link
Collaborator Author

LGTM! Did not know about the existence of go build -tag, very interesting!

Yes, that is interesting.

@Jason-Zhangxin-Chen Jason-Zhangxin-Chen merged commit 92e1793 into master Dec 1, 2023
4 checks passed
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.

Build tags for dev-net and Piccadilly and refine the default settings.
4 participants