-
Notifications
You must be signed in to change notification settings - Fork 1
feat: frontend data provider #571
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
Conversation
LGTM so far. A valuable addition 👏 I'm thinking |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want tests for (1) the Upgradeable component; and (2) the data provider contract? Since (1) is not used in core, and (2) is only preprocessing data, I was thinking that there is no need to have tests for these, which would add maintenance overhead.
…nto feat/peripheral_data
Marking this for review first. I will run the Sepolia script after review and update the state file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was how I approached the re-deployment on Sepolia:
Some tips for re-deployment in the future:
|
Experienced the same, see here for more details if you're curious.
Hmm, this could be good feedback / feature request for SN Foundry. It should be able to recover for an already declared class no? If the declare tx is not in the state file, it could just add it and continue, since a class is supposed to be declared only once. Do you mind opening an issue in the starknet-foundry repo to start the discussion? I think other teams would benefit from this as well. Also, it's weird that there was a Shrine class clash on declare 🤔 According to the docs, a declare tx consists of a class hash which in turn is a hash of external entry points and other things. Since we added 2 new public fns to the Shrine, it should have a different hash, hence the declare tx should've succeeded. |
Sure! tracking here
Yea, this is odd. I may also have fumbled on this since there were a couple of issues and I was focused on having everything deployed successfully rather than figuring out the exact behaviour of sncast, so I ended up applying fixes wholesale 😅 |
I went through the Figma and tried to group the information required on one screen together into its own data type:
get_trove_assets_info(trove_id)
should provide all the necessary data for each collateral, with the information for each collateral asset in aTroveAssetInfo
struct. The CASH price at the top and the "Capacity" field can be obtained by callingget_yin_info()
. The "Target C-ratio" can be obtained by callingget_recovery_mode_info()
.ShrineAssetInfo
struct that is a member ofTroveAssetInfo
, but which might be useful for landing pages that give an overview of the protocol without displaying a trove in particular. This can be obtained by callingget_shrine_assets_info()
.Other changes
u32
) and the Sentinel (u64
). This is standardized tou32
which should be more than sufficient.