Skip to content

Conversation

@peterpeterparker
Copy link
Member

Motivation

We want to migrate to @icp-sdk/bindgen for generating the IDL factory declarations for following reasons:

Changes

  • Add @icp-sdk/bindgen as a dev dependency
  • Replace dfx generate with a function using bindgen in generate.sh

@peterpeterparker peterpeterparker requested a review from a team as a code owner November 20, 2025 08:05
Signed-off-by: David Dal Busco <[email protected]>
@peterpeterparker peterpeterparker added this pull request to the merge queue Nov 20, 2025
Merged via the queue into main with commit 661e2c9 Nov 20, 2025
81 checks passed
@peterpeterparker peterpeterparker deleted the chore/bindgen-generate branch November 20, 2025 08:39
github-merge-queue bot pushed a commit that referenced this pull request Nov 20, 2025
# Motivation

As a follow-up of #10409, we can clean-up the scripts that generates the
certified types.

# Notes

`@icp-sdk/bindgen` is less verbose than `dfx generate` in terms of files
generated. That's why we do not need to remove some files in
post-processing.

# Changes

- Update `did.update.types.mjs`

Signed-off-by: David Dal Busco <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Nov 20, 2025
…10417)

# Motivation

With the new bindings generation script (PR
#10409), we prefer to not
have the subfolder `declarations` that bindgen creates, but to
consolidate the bindings in the same folder.

However, our current imports are using such subfolder.

The plan is:

- Undo the removal of the subfolder (temporarily).
- Adapt all the imports to use the "old" main folder for declarations
(split in a few PRs, since it is quite a lot of changes).
- Re-remove the subfolder.


This PR is the first step.

---------

Co-authored-by: Copilot <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Nov 20, 2025
…dings (#10429)

# Motivation

With the new bindings generation script (PR
#10409), we prefer to not
have the subfolder `declarations` that bindgen creates, but to
consolidate the bindings in the same folder.

However, our current imports are using such subfolder.

The plan is:

- Undo the removal of the subfolder (temporarily).
- Adapt all the imports to use the "old" main folder for declarations
(split in a few PRs, since it is quite a lot of changes).
- Re-remove the subfolder.


This PR is part of the second step: we undo the reference to subfolder
for the `xtc_ledger` bindings that was done in PR
#9559
github-merge-queue bot pushed a commit that referenced this pull request Nov 20, 2025
…gs (#10431)

# Motivation

With the new bindings generation script (PR
#10409), we prefer to not
have the subfolder `declarations` that bindgen creates, but to
consolidate the bindings in the same folder.

However, our current imports are using such subfolder.

The plan is:

- Undo the removal of the subfolder (temporarily).
- Adapt all the imports to use the "old" main folder for declarations
(split in a few PRs, since it is quite a lot of changes).
- Re-remove the subfolder.


This PR is part of the second step: we undo the reference to subfolder
for the `sol_rpc` bindings that was done in PR
#9560
github-merge-queue bot pushed a commit that referenced this pull request Nov 20, 2025
#10432)

# Motivation

With the new bindings generation script (PR
#10409), we prefer to not
have the subfolder `declarations` that bindgen creates, but to
consolidate the bindings in the same folder.

However, our current imports are using such subfolder.

The plan is:

- Undo the removal of the subfolder (temporarily).
- Adapt all the imports to use the "old" main folder for declarations
(split in a few PRs, since it is quite a lot of changes).
- Re-remove the subfolder.


This PR is part of the second step: we undo the reference to subfolder
for the `signer` bindings that was done in PR
#9561
github-merge-queue bot pushed a commit that referenced this pull request Nov 20, 2025
…gs (#10433)

# Motivation

With the new bindings generation script (PR
#10409), we prefer to not
have the subfolder `declarations` that bindgen creates, but to
consolidate the bindings in the same folder.

However, our current imports are using such subfolder.

The plan is:

- Undo the removal of the subfolder (temporarily).
- Adapt all the imports to use the "old" main folder for declarations
(split in a few PRs, since it is quite a lot of changes).
- Re-remove the subfolder.


This PR is part of the second step: we undo the reference to subfolder
for the `rewards` bindings that was done in PR
#9562
github-merge-queue bot pushed a commit that referenced this pull request Nov 20, 2025
…10434)

# Motivation

With the new bindings generation script (PR
#10409), we prefer to not
have the subfolder `declarations` that bindgen creates, but to
consolidate the bindings in the same folder.

However, our current imports are using such subfolder.

The plan is:

- Undo the removal of the subfolder (temporarily).
- Adapt all the imports to use the "old" main folder for declarations
(split in a few PRs, since it is quite a lot of changes).
- Re-remove the subfolder.


This PR is part of the second step: we undo the reference to subfolder
for the `llm` bindings that was done in PR
#9563
AntonioVentilii added a commit that referenced this pull request Nov 20, 2025
…y` bindings (#10436)

# Motivation

With the new bindings generation script (PR
#10409), we prefer to not
have the subfolder `declarations` that bindgen creates, but to
consolidate the bindings in the same folder.

However, our current imports are using such subfolder.

The plan is:

- Undo the removal of the subfolder (temporarily).
- Adapt all the imports to use the "old" main folder for declarations
(split in a few PRs, since it is quite a lot of changes).
- Re-remove the subfolder.


This PR is part of the second step: we undo the reference to subfolder
for the `icp_swap_factory` bindings that was done in PR
#9566
github-merge-queue bot pushed a commit that referenced this pull request Nov 20, 2025
…indings (#10435)

# Motivation

With the new bindings generation script (PR
#10409), we prefer to not
have the subfolder `declarations` that bindgen creates, but to
consolidate the bindings in the same folder.

However, our current imports are using such subfolder.

The plan is:

- Undo the removal of the subfolder (temporarily).
- Adapt all the imports to use the "old" main folder for declarations
(split in a few PRs, since it is quite a lot of changes).
- Re-remove the subfolder.


This PR is part of the second step: we undo the reference to subfolder
for the `kong_backend` bindings that was done in PR
#9564
github-merge-queue bot pushed a commit that referenced this pull request Nov 20, 2025
…bindings (#10437)

# Motivation

With the new bindings generation script (PR
#10409), we prefer to not
have the subfolder `declarations` that bindgen creates, but to
consolidate the bindings in the same folder.

However, our current imports are using such subfolder.

The plan is:

- Undo the removal of the subfolder (temporarily).
- Adapt all the imports to use the "old" main folder for declarations
(split in a few PRs, since it is quite a lot of changes).
- Re-remove the subfolder.


This PR is part of the second step: we undo the reference to subfolder
for the `icp_swap_pool` bindings that was done in PR
#9567
daviddecentage pushed a commit that referenced this pull request Nov 20, 2025
…gs (#10428)

# Motivation

With the new bindings generation script (PR
#10409), we prefer to not
have the subfolder `declarations` that bindgen creates, but to
consolidate the bindings in the same folder.

However, our current imports are using such subfolder.

The plan is:

- Undo the removal of the subfolder (temporarily).
- Adapt all the imports to use the "old" main folder for declarations
(split in a few PRs, since it is quite a lot of changes).
- Re-remove the subfolder.


This PR is part of the second step: we undo the reference to subfolder
for the `backend` bindings that was done in PR
#9565

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
github-merge-queue bot pushed a commit that referenced this pull request Nov 20, 2025
# Motivation

With the new bindings generation script (PR
#10409), we prefer to not
have the subfolder `declarations` that bindgen creates, but to
consolidate the bindings in the same folder.

However, our current imports are using such subfolder.

The plan is:

- Undo the removal of the subfolder (temporarily).
- Adapt all the imports to use the "old" main folder for declarations
(split in a few PRs, since it is quite a lot of changes).
- Re-remove the subfolder.


This PR is the last step: we reinstate the removal of the subfolder
`declarations`.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
github-merge-queue bot pushed a commit that referenced this pull request Nov 20, 2025
…indings (#10448)

# Motivation

With the new bindings generation script (PR
#10409), we prefer to not
have the subfolder `declarations` that bindgen creates, but to
consolidate the bindings in the same folder.

However, our current imports are using such subfolder.

The plan is:

- Undo the removal of the subfolder (temporarily).
- Adapt all the imports to use the "old" main folder for declarations
(split in a few PRs, since it is quite a lot of changes).
- Re-remove the subfolder.


This PR is part of the second step: we undo the reference to subfolder
for the `ext_v2_token` bindings.
github-merge-queue bot pushed a commit that referenced this pull request Nov 20, 2025
…dings (#10447)

# Motivation

With the new bindings generation script (PR
#10409), we prefer to not
have the subfolder `declarations` that bindgen creates, but to
consolidate the bindings in the same folder.

However, our current imports are using such subfolder.

The plan is:

- Undo the removal of the subfolder (temporarily).
- Adapt all the imports to use the "old" main folder for declarations
(split in a few PRs, since it is quite a lot of changes).
- Re-remove the subfolder.


This PR is part of the second step: we undo the reference to subfolder
for the `gldt_stake` bindings.
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