Skip to content

An example PR demonstrating the new Operations API (throwaway)#16835

Closed
graham-chainlink wants to merge 1 commit intoggoh/CLD-17/sequencefrom
ggoh/operations/example
Closed

An example PR demonstrating the new Operations API (throwaway)#16835
graham-chainlink wants to merge 1 commit intoggoh/CLD-17/sequencefrom
ggoh/operations/example

Conversation

@graham-chainlink
Copy link
Collaborator

@graham-chainlink graham-chainlink commented Mar 19, 2025

Showcasing a sequence performing 3 operations

  • deploy link token (with no retry policy)
  • grant mint role
  • mint token (with modified input on retry)

Logs:

=== RUN   TestLinkChangeset
    logger.go:146: 2025-03-19T16:37:52.210+1100	INFO	operations/execute.go:75	Executing sequence	{"version": "unset@unset", "id": "link-example-sequence", "version": "1.0.0", "description": "Deploy LINK token contract, grants mint and mints some amount to same address"}
    logger.go:146: 2025-03-19T16:37:52.210+1100	INFO	operations/operation.go:68	Executing operation	{"version": "unset@unset", "id": "deploy-link-token", "version": "1.0.0", "description": "Deploy Contract Operation"}
    logger.go:146: 2025-03-19T16:37:52.213+1100	INFO	deployment/helpers.go:173	Deployed contract	{"version": "unset@unset", "Contract": "LinkToken 1.0.0", "addr": "0x4Aa6Af0356cBCCFD16E5dD0b6a88e2A2845F032B", "chain": " (909606746561742123)"}
    logger.go:146: 2025-03-19T16:37:52.213+1100	INFO	operations/operation.go:68	Executing operation	{"version": "unset@unset", "id": "grant-mint-role", "version": "1.0.0", "description": "Grant Mint Role Operation"}
    logger.go:146: 2025-03-19T16:37:52.215+1100	INFO	operations/operation.go:68	Executing operation	{"version": "unset@unset", "id": "mint-link-token", "version": "1.0.0", "description": "Mint LINK Operation"}
--- PASS: TestLinkChangeset (0.01s)

Build upon the PRs below

Future enhancements

  • Caching and Idempotency behaviour for repeat runs + CI retries
  • Saving of reports to json file ?

@graham-chainlink graham-chainlink force-pushed the ggoh/operations/example branch from d615670 to 95a043b Compare March 19, 2025 05:35
@graham-chainlink graham-chainlink changed the title An example PR demonstrating the new Operations API (Wont be merging) An example PR demonstrating the new Operations API (throwaway) Mar 20, 2025
@graham-chainlink graham-chainlink force-pushed the ggoh/operations/example branch from 95a043b to d900f88 Compare March 20, 2025 02:23
@graham-chainlink graham-chainlink force-pushed the ggoh/operations/example branch from d900f88 to 568688c Compare March 20, 2025 03:51
@graham-chainlink graham-chainlink force-pushed the ggoh/operations/example branch from 568688c to 95719ae Compare March 20, 2025 03:57
Copy link
Contributor

Choose a reason for hiding this comment

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

In the future we should call this EVM deps

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, this is something the user define currently, so they could call whatever suits them

deploy link token (with no retry policy)
grant mint role
mint token (with modified input on retry)
@graham-chainlink graham-chainlink force-pushed the ggoh/operations/example branch from a842b4b to 5305512 Compare March 21, 2025 12:03
@cl-sonarqube-production
Copy link

@graham-chainlink
Copy link
Collaborator Author

Closing this PR as it is only for demo purpose

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.

2 participants

Comments