Skip to content

feat: add E2E tests and fix complex Cadence types#1

Merged
lmcmz merged 2 commits intoOutblock:mainfrom
zenabot27:fix/complex-cadence-types
Feb 11, 2026
Merged

feat: add E2E tests and fix complex Cadence types#1
lmcmz merged 2 commits intoOutblock:mainfrom
zenabot27:fix/complex-cadence-types

Conversation

@zenabot27
Copy link
Copy Markdown

Summary

  • Fix complex Cadence type handling in code generation
  • Add E2E test suite covering all 39 generated script methods against Flow mainnet
  • Add missing contract addresses (FungibleTokenSwitchboard, FlowDomainUtils) to addresses.json
  • Fix domain scripts to use 0xFlowDomainUtils instead of 0xFlowbox

Test plan

  • cd e2e && npm install && npm test — 39/39 script tests pass against mainnet
  • Verify generated TypeScript compiles with tsc --noEmit

🤖 Generated with Claude Code

zenabot27 and others added 2 commits February 11, 2026 23:25
- Fix extractNestedTypes to properly strip &, {}, <>, () from type strings
- Fix struct field parser to capture full multi-token types (e.g. {String: MetadataViews.ExternalURL})
- Add support for reference types (&Type), intersection types ({Interface}), and generic types (Capability<...>)
- Add missing Cadence built-in type mappings (StoragePath, PublicPath, Type, AnyResource, etc.)
- Generate `type X = any` fallback for unresolved struct references in TypeScript
- Add missing contract addresses to addresses.json (FlowEpoch, NFTStorefrontV2, FlowClusterQC, etc.)
- Add example scripts and transactions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add e2e/ directory with vitest setup testing all 39 generated script
  methods against Flow mainnet
- Configure FCL with address resolution from addresses.json
- Add missing contract addresses (FungibleTokenSwitchboard, FlowDomainUtils)
- Fix domain scripts to use 0xFlowDomainUtils instead of 0xFlowbox
- Add test:e2e script to root package.json
- Add node_modules/ to .gitignore

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lmcmz lmcmz merged commit 69e720b into Outblock:main Feb 11, 2026
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