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

Add account address pub key to fms chain config for Starknet #13421

Merged

Conversation

eutopian
Copy link
Contributor

@eutopian eutopian commented Jun 4, 2024

Starknet needs the pub key in the job spec, so we are sending it down to CLO via the chain config.

@eutopian eutopian requested a review from a team as a code owner June 4, 2024 18:49
@eutopian eutopian force-pushed the OPDATA-497/add-account-address-pub-key-for-starknet branch from 712cab6 to 354e0ce Compare June 4, 2024 18:52
@eutopian eutopian force-pushed the OPDATA-497/add-account-address-pub-key-for-starknet branch from 354e0ce to 96e7fa8 Compare June 4, 2024 18:59
@eutopian eutopian force-pushed the OPDATA-497/add-account-address-pub-key-for-starknet branch from 96e7fa8 to deb8dd1 Compare June 4, 2024 19:03
@eutopian eutopian requested review from archseer and augustbleeds June 4, 2024 19:11
@eutopian eutopian force-pushed the OPDATA-497/add-account-address-pub-key-for-starknet branch from deb8dd1 to 5291708 Compare June 4, 2024 19:24
ChainType: feeds.ChainTypeEVM,
AccountAddress: "0x0001",
AdminAddress: "0x1001",
AccountAddressPublicKey: null.StringFrom("123"),
Copy link
Contributor

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.

ChainID: "42",
ChainType: feeds.ChainTypeEVM,
AccountAddress: "0x0000000000000000000000000000000000000000",
AccountAddressPublicKey: null.StringFrom("4ef1e379910e567ac08cb3fee297595ae41aba618eb7257ecee5e6e53a35f9f4"),
Copy link
Contributor

@augustbleeds augustbleeds Jun 4, 2024

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"
Copy link
Contributor

Choose a reason for hiding this comment

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

here too 👍

augustbleeds
augustbleeds previously approved these changes Jun 4, 2024
Copy link
Contributor

@augustbleeds augustbleeds left a 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

@eutopian eutopian force-pushed the OPDATA-497/add-account-address-pub-key-for-starknet branch from 5291708 to 3bcec2a Compare June 5, 2024 19:43
@eutopian eutopian force-pushed the OPDATA-497/add-account-address-pub-key-for-starknet branch from 9b3fd31 to ea6a6ad Compare June 6, 2024 19:49
@eutopian eutopian force-pushed the OPDATA-497/add-account-address-pub-key-for-starknet branch from ea6a6ad to 4863024 Compare June 6, 2024 19:49
augustbleeds
augustbleeds previously approved these changes Jun 6, 2024
@eutopian eutopian enabled auto-merge June 6, 2024 20:22
@eutopian eutopian added this pull request to the merge queue Jun 6, 2024
Merged via the queue into develop with commit c429772 Jun 6, 2024
106 checks passed
@eutopian eutopian deleted the OPDATA-497/add-account-address-pub-key-for-starknet branch June 6, 2024 22:44
augustbleeds pushed a commit that referenced this pull request Jun 14, 2024
* 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]>
augustbleeds pushed a commit that referenced this pull request Jun 14, 2024
* 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]>
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.

3 participants