Skip to content

feat: Implement array and vector argument inputs#791

Merged
Woody4618 merged 11 commits intosolana-foundation:masterfrom
hoodieshq:development-feat-support-idl-array-inputs
Dec 29, 2025
Merged

feat: Implement array and vector argument inputs#791
Woody4618 merged 11 commits intosolana-foundation:masterfrom
hoodieshq:development-feat-support-idl-array-inputs

Conversation

@askov
Copy link
Copy Markdown
Contributor

@askov askov commented Dec 17, 2025

Description

Implemented vector/array arg inputs for IDL forms.

⚠️ Important

This PR depends on #779, so there is actually only one commit. Should be rebased as soon as the base PR is merged

Type of change

  • Bug fix
  • New feature
  • Protocol integration
  • Documentation update
  • Other (please describe):

Screenshots

localhost_3000_address_AXcxp15oz1L4YYtqZo6Qt6EkUj1jtLR6wXYqaJvn4oye_idl_cluster=devnet (3)
screen-capture.2.webm

Testing

Related Issues

N/A

Checklist

  • My code follows the project's style guidelines
  • I have added tests that prove my fix/feature works
  • All tests pass locally and in CI
  • I have updated documentation as needed
  • CI/CD checks pass
  • I have included screenshots for protocol screens (if applicable)
  • For security-related features, I have included links to related information

@vercel
Copy link
Copy Markdown

vercel bot commented Dec 17, 2025

@askov is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@ellipsis-dev
Copy link
Copy Markdown
Contributor

ellipsis-dev bot commented Dec 17, 2025

⚠️ This PR is too big for Ellipsis, but support for larger PRs is coming soon. If you want us to prioritize this feature, let us know at help@ellipsis.dev


Generated with ❤️ by ellipsis.dev

@rogaldh
Copy link
Copy Markdown
Contributor

rogaldh commented Dec 17, 2025

Depends on #790

@rogaldh rogaldh force-pushed the development-feat-support-idl-array-inputs branch from edddd6e to 7bfb766 Compare December 22, 2025 17:25
@vercel
Copy link
Copy Markdown

vercel bot commented Dec 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
explorer Ready Ready Preview, Comment Dec 22, 2025 7:54pm

@rogaldh
Copy link
Copy Markdown
Contributor

rogaldh commented Dec 22, 2025

It's better to merge this after #797

return /vec\(/.test(arg.type);
}

export function getArrayMaxLength(arg: ArgField): number | undefined {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is there not better way to do this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I've found a way to use the rawType. Works better than regexps

@Woody4618 Woody4618 merged commit 29fe475 into solana-foundation:master Dec 29, 2025
4 checks passed
@rogaldh rogaldh deleted the development-feat-support-idl-array-inputs branch January 24, 2026 10:31
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