Skip to content

Conversation

@silaslenihan
Copy link
Contributor

@silaslenihan silaslenihan commented Apr 3, 2025

@silaslenihan silaslenihan requested a review from a team as a code owner April 3, 2025 14:21
Signed-off-by: Silas Lenihan <[email protected]>
@silaslenihan silaslenihan force-pushed the capabilities/write_target branch from 5b7915e to 228fe8f Compare April 3, 2025 14:24
@silaslenihan silaslenihan force-pushed the capabilities/write_target branch from d2068cf to 0bd913d Compare April 3, 2025 19:47
@silaslenihan silaslenihan force-pushed the capabilities/write_target branch 2 times, most recently from f3f2844 to 8c4eb17 Compare April 4, 2025 02:13
… decode their chain-specific configs from it
@silaslenihan silaslenihan force-pushed the capabilities/write_target branch from 8c4eb17 to 39f5ab0 Compare April 4, 2025 15:58
Copy link
Contributor

@dhaidashenko dhaidashenko left a comment

Choose a reason for hiding this comment

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

Looks goode. Feel free to ignore nits

@silaslenihan silaslenihan force-pushed the capabilities/write_target branch 5 times, most recently from a25a467 to 84df8e2 Compare April 7, 2025 16:59
@silaslenihan silaslenihan force-pushed the capabilities/write_target branch from 84df8e2 to b46ae76 Compare April 7, 2025 17:21
@silaslenihan silaslenihan force-pushed the capabilities/write_target branch from 3205317 to ae1e95d Compare April 7, 2025 17:50
@silaslenihan silaslenihan force-pushed the capabilities/write_target branch 3 times, most recently from 0874a5a to 5d2fa87 Compare April 7, 2025 22:15
@silaslenihan silaslenihan force-pushed the capabilities/write_target branch from 5d2fa87 to 9e71b84 Compare April 7, 2025 22:16
@silaslenihan silaslenihan force-pushed the capabilities/write_target branch from fe89137 to a72a1f1 Compare April 8, 2025 00:12
@silaslenihan silaslenihan force-pushed the capabilities/write_target branch from a72a1f1 to 510243c Compare April 8, 2025 02:08
Copy link

@krebernisak krebernisak left a comment

Choose a reason for hiding this comment

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

LGTM for the initial move. Nice work!

There's some structural improvements we can do in a follow up:

  • Extract common stuff to chainlink-common
  • Extract balance framework outside the /writetarget path
  • Extract data-feeds product specifics to a product specific repo
  • Inject report decoders so they can be switched by chain/product

@@ -0,0 +1,78 @@
module github.com/smartcontractkit/chainlink-framework/capabilities

Choose a reason for hiding this comment

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

Please add a readme with short description and instructions, also point to EVM and Aptos implementations. Thx!

Choose a reason for hiding this comment

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

Can also do the same for the balance monitor part, point to Aptos implementation at least.

Comment on lines 83 to 84
cr commontypes.ContractReader
cw commontypes.ContractWriter

Choose a reason for hiding this comment

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

Wait, why do we still need cr/cw if we're now injecting a TargetStrategy interface to abstract required interactions with the chain. This is now confusing, which interface is used?

I suggest we clean this up and only use a single interface.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We still need CW to check the transaction status later, but good point we no longer need CR in the generalize wt, only in the target strategy.

Copy link
Contributor

@dhaidashenko dhaidashenko left a comment

Choose a reason for hiding this comment

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

Need to address Write Target ID generation

@silaslenihan silaslenihan force-pushed the capabilities/write_target branch from 2549b8d to 44c77c2 Compare April 8, 2025 13:27
@silaslenihan silaslenihan force-pushed the capabilities/write_target branch from 44c77c2 to 43a4fc7 Compare April 8, 2025 13:28
@silaslenihan silaslenihan changed the title Added Generalized Write target Added common code needed for generalized WT Apr 8, 2025
@silaslenihan silaslenihan enabled auto-merge (squash) April 8, 2025 16:02
@silaslenihan silaslenihan disabled auto-merge April 8, 2025 16:05
@silaslenihan silaslenihan enabled auto-merge (squash) April 8, 2025 16:08
@silaslenihan silaslenihan merged commit 721208f into main Apr 8, 2025
18 checks passed
@silaslenihan silaslenihan deleted the capabilities/write_target branch April 8, 2025 16:13
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.

4 participants