Skip to content

feat: add sleep support#262

Open
miro-cl wants to merge 3 commits into
mainfrom
miro/sleep
Open

feat: add sleep support#262
miro-cl wants to merge 3 commits into
mainfrom
miro/sleep

Conversation

@miro-cl
Copy link
Copy Markdown

@miro-cl miro-cl commented May 26, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@jeffrifwaldsmartcontract jeffrifwaldsmartcontract left a comment

Choose a reason for hiding this comment

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

Looks good once the CI failure is addressed.

@miro-cl
Copy link
Copy Markdown
Author

miro-cl commented May 27, 2026

@jeffrifwaldsmartcontract addressed the CI failure.

russell-stern
russell-stern previously approved these changes May 27, 2026
ernest-nowacki
ernest-nowacki previously approved these changes May 27, 2026
@ernest-nowacki ernest-nowacki enabled auto-merge (squash) May 27, 2026 15:32
@miro-cl miro-cl dismissed stale reviews from ernest-nowacki and russell-stern via e1036c4 May 27, 2026 16:05
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 27, 2026

⚠️ Template Compatibility Failures

This PR breaks one or more templates in cre-templates (tested against cre-templates:main).

========================================================
Results: 28 passed, 5 failed
========================================================

Failed templates:
  ❌ workflow-ts/por
  ❌ stablecoin-ace-ccip/bank-stablecoin-por-ace-ccip-workflow
  ❌ stablecoin-ace-ccip/bank-stablecoin-workflow
  ❌ stablecoin-ace-ccip/ccip-transfer-workflow
  ❌ tokenized-asset-servicing/asset-log-trigger-workflow

========================================================
Failure Details
========================================================

❌ workflow-ts/por — typecheck
--------
$ tsc --noEmit
../contracts/evm/ts/generated/DataFeedsCache.ts(8,8): error TS2307: Cannot find module 'viem' or its corresponding type declarations.
../contracts/evm/ts/generated/DataFeedsCache.ts(9,35): error TS2307: Cannot find module 'viem' or its corresponding type declarations.
../contracts/evm/ts/generated/DataFeedsCache.ts(19,8): error TS2307: Cannot find module '@chainlink/cre-sdk' or its corresponding type declarations.
../contracts/evm/ts/generated/DataFeedsCache.ts(1247,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1259,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1272,35): error TS7006: Parameter '_' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1272,38): error TS7006: Parameter 'i' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1297,31): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1318,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1329,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1341,35): error TS7006: Parameter '_' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1341,38): error TS7006: Parameter 'i' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1366,31): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1387,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1399,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1412,35): error TS7006: Parameter '_' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1412,38): error TS7006: Parameter 'i' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1437,31): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1458,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1469,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1481,35): error TS7006: Parameter '_' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1481,38): error TS7006: Parameter 'i' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1506,31): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1527,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1540,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1554,35): error TS7006: Parameter '_' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1554,38): error TS7006: Parameter 'i' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1579,31): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1600,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1612,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1625,35): error TS7006: Parameter '_' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1625,38): error TS7006: Parameter 'i' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1650,31): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1671,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1682,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1694,35): error TS7006: Parameter '_' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1694,38): error TS7006: Parameter 'i' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1719,31): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1740,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1751,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1763,35): error TS7006: Parameter '_' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1763,38): error TS7006: Parameter 'i' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1788,31): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1809,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1821,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1834,35): error TS7006: Parameter '_' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1834,38): error TS7006: Parameter 'i' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1859,31): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1880,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1892,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1905,35): error TS7006: Parameter '_' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1905,38): error TS7006: Parameter 'i' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1930,31): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1951,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1963,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1976,35): error TS7006: Parameter '_' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(1976,38): error TS7006: Parameter 'i' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2001,31): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2022,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2034,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2047,35): error TS7006: Parameter '_' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2047,38): error TS7006: Parameter 'i' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2072,31): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2093,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2105,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2118,35): error TS7006: Parameter '_' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2118,38): error TS7006: Parameter 'i' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2143,31): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2164,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2175,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2187,35): error TS7006: Parameter '_' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2187,38): error TS7006: Parameter 'i' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2212,31): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2233,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2244,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2256,35): error TS7006: Parameter '_' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2256,38): error TS7006: Parameter 'i' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2281,31): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2302,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2314,29): error TS7006: Parameter 't' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2327,35): error TS7006: Parameter '_' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2327,38): error TS7006: Parameter 'i' implicitly has an 'any' type.
../contracts/evm/ts/generated/DataFeedsCache.ts(2352,31): error TS7006: Parameter 't' implicitly has an 'any' type.

❌ stablecoin-ace-ccip/bank-stablecoin-por-ace-ccip-workflow — typecheck
--------
$ tsc --noEmit
main.ts(114,18): error TS2314: Generic type 'NodeRuntime<C>' requires 1 type argument(s).
main.ts(127,4): error TS2345: Argument of type 'ConsensusAggregation<NumericType, true>' is not assignable to parameter of type 'ConsensusAggregation<{ totalReserve: any; lastUpdated: any; }, true>'.
  Type 'NumericType' is not assignable to type '{ totalReserve: any; lastUpdated: any; }'.
    Type 'number' is not assignable to type '{ totalReserve: any; lastUpdated: any; }'.
main.ts(166,13): error TS2503: Cannot find namespace 'cre'.
main.ts(268,13): error TS2503: Cannot find namespace 'cre'.
main.ts(513,3): error TS2322: Type 'string' is not assignable to type 'object'.

❌ stablecoin-ace-ccip/bank-stablecoin-workflow — typecheck
--------
$ tsc --noEmit
main.ts(53,13): error TS2503: Cannot find namespace 'cre'.
main.ts(115,70): error TS2503: Cannot find namespace 'cre'.
main.ts(145,61): error TS2503: Cannot find namespace 'cre'.
main.ts(191,18): error TS2345: Argument of type 'Runtime<unknown>' is not assignable to parameter of type 'Runtime<{ evms: { stablecoinAddress: string; consumerAddress: string; chainSelectorName: string; gasLimit: string; }[]; }>'.
  Type 'unknown' is not assignable to type '{ evms: { stablecoinAddress: string; consumerAddress: string; chainSelectorName: string; gasLimit: string; }[]; }'.

❌ stablecoin-ace-ccip/ccip-transfer-workflow — typecheck
--------
$ tsc --noEmit
main.ts(56,13): error TS2503: Cannot find namespace 'cre'.
main.ts(118,67): error TS2503: Cannot find namespace 'cre'.

❌ tokenized-asset-servicing/asset-log-trigger-workflow — typecheck
--------
$ tsc --noEmit
main.ts(91,42): error TS2345: Argument of type '{ url: string; method: "POST"; body: any; headers: { "Content-Type": string; }; cacheSettings: { readFromCache: boolean; maxAgeMs: number; }; }' is not assignable to parameter of type '{ url: string; method: "POST"; body: any; headers: { "Content-Type": string; }; cacheSettings: { readFromCache: never; maxAgeMs: never; }; }'.
  The types of 'cacheSettings.readFromCache' are incompatible between these types.
    Type 'boolean' is not assignable to type 'never'.

Cleaning up...

View full output →

What should I do?
  • Accidental break: Fix the SDK change so existing templates continue to compile.
  • Intentional breaking change: Create a branch in cre-templates named compat/miro/sleep with the template fixes applied. This job will automatically retest against that branch.

@miro-cl miro-cl requested a review from ernest-nowacki May 27, 2026 17:01
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