Skip to content

ref: migrate Offramp.spec to abigen wrappers - #798

Merged
duck-types merged 12 commits into
mainfrom
chore/migrate-to-abigen-offramp
Jul 21, 2026
Merged

ref: migrate Offramp.spec to abigen wrappers#798
duck-types merged 12 commits into
mainfrom
chore/migrate-to-abigen-offramp

Conversation

@duck-types

@duck-types duck-types commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Make abigen wrappers more ergonomic:

  • ref: hide SnakedCell from API
  • feat: hide refs from API
  • ref: make specs for TypeAndVersion, Withdrawable and Upgradeable compatible with autogenerated bindings
  • feat: make queryID optional in API
  • feat: abigen exposes Dictionaries as Map and Set

Migrate offramp.spec to generated bindings

Copilot AI left a comment

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.

Copilot wasn't able to review this pull request because it exceeds the maximum number of lines (20,000). Try reducing the number of changed lines and requesting a review from Copilot again.

@duck-types
duck-types marked this pull request as ready for review July 16, 2026 17:33
@duck-types
duck-types requested a review from a team as a code owner July 16, 2026 17:33
@duck-types
duck-types force-pushed the chore/migrate-to-abigen-offramp branch from 98f7367 to ba3ece6 Compare July 16, 2026 20:49
@duck-types
duck-types force-pushed the chore/migrate-to-abigen-offramp branch from 22b66fa to 8dab672 Compare July 16, 2026 23:03
@duck-types
duck-types force-pushed the chore/migrate-to-abigen-offramp branch from 8dab672 to 6e2b84b Compare July 17, 2026 16:14
vicentevieytes
vicentevieytes previously approved these changes Jul 21, 2026

@vicentevieytes vicentevieytes left a comment

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.

confio 👍

Image

@duck-types
duck-types merged commit 320489d into main Jul 21, 2026
37 checks passed
@duck-types
duck-types deleted the chore/migrate-to-abigen-offramp branch July 21, 2026 20:20
}

// ---------------------------------------------------------------------------
// map<K, V> / map<K, ()> ergonomic transform

@krebernisak krebernisak Jul 28, 2026

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.

What if this breaks and someone needs to debug this?

imo this adds unnecessary complexity and simple util functions + not hiding types/internals is a lot more straightforward which keeps us productive vs having the perfect abigen/api

the initial builder pattern bindings would have worked fine to launch and beyond (these are simple types) without needing abigen + custom extensions + multiple refactors, etc.

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