-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add account address pub key to fms chain config for Starknet #13421
Add account address pub key to fms chain config for Starknet #13421
Conversation
712cab6
to
354e0ce
Compare
354e0ce
to
96e7fa8
Compare
96e7fa8
to
deb8dd1
Compare
deb8dd1
to
5291708
Compare
core/services/feeds/orm_test.go
Outdated
ChainType: feeds.ChainTypeEVM, | ||
AccountAddress: "0x0001", | ||
AdminAddress: "0x1001", | ||
AccountAddressPublicKey: null.StringFrom("123"), |
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.
the public key would also be in hex format ("0x...."). might be helpful to clarify that by having "0x0100" as an example.
core/services/feeds/service_test.go
Outdated
ChainID: "42", | ||
ChainType: feeds.ChainTypeEVM, | ||
AccountAddress: "0x0000000000000000000000000000000000000000", | ||
AccountAddressPublicKey: null.StringFrom("4ef1e379910e567ac08cb3fee297595ae41aba618eb7257ecee5e6e53a35f9f4"), |
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.
yeah, let's prefix the hex value with 0x here as well for uniformity
cfgID = int64(1) | ||
chainID = "42" | ||
accountAddr = "0x0000001" | ||
acctAddrPubKey = "123" |
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.
here too 👍
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.
just some minor comments about making the test values hex
5291708
to
3bcec2a
Compare
9b3fd31
to
ea6a6ad
Compare
ea6a6ad
to
4863024
Compare
Co-authored-by: Chris De Leon <[email protected]>
* add account address pub key to fms chain config for starknet * Update core/web/resolver/feeds_manager_chain_config.go Co-authored-by: Chris De Leon <[email protected]> --------- Co-authored-by: Chris De Leon <[email protected]>
* add account address pub key to fms chain config for starknet * Update core/web/resolver/feeds_manager_chain_config.go Co-authored-by: Chris De Leon <[email protected]> --------- Co-authored-by: Chris De Leon <[email protected]>
Starknet needs the pub key in the job spec, so we are sending it down to CLO via the chain config.