Skip to content

feat: Add TimelockConfigurer.GrantRole support for TON - #821

Open
krebernisak wants to merge 1 commit into
mainfrom
feat/ton-grant-role
Open

feat: Add TimelockConfigurer.GrantRole support for TON#821
krebernisak wants to merge 1 commit into
mainfrom
feat/ton-grant-role

Conversation

@krebernisak

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 29, 2026 16:39
@krebernisak
krebernisak requested a review from a team as a code owner July 29, 2026 16:39
@github-actions

Copy link
Copy Markdown

👋 krebernisak, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

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.

Pull request overview

Adds TON support for TimelockConfigurer.GrantRole by introducing TON-specific timelock role hashing and implementing the on-chain (and prepared/skipSend) GrantRole message flow.

Changes:

  • Added TON TimelockRoleHash mapping to TON timelock role constants.
  • Implemented TimelockConfigurer.GrantRole for TON, including deterministic query ID generation for prepared transactions.
  • Added unit tests covering GrantRole success/failure cases and deterministic prepared transaction behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
sdk/ton/timelock_role.go Introduces TON role-hash lookup for sdk.TimelockRole values.
sdk/ton/timelock_configurer.go Implements GrantRole and refactors query ID generation into a helper.
sdk/ton/timelock_configurer_test.go Adds test coverage for the new TON GrantRole behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sdk/ton/timelock_role.go
return nil, fmt.Errorf("invalid timelock role: %d", role)
}

return hash, nil
@krebernisak krebernisak changed the title Add TimelockConfigurer.GrantRole support for TON feat: Add TimelockConfigurer.GrantRole support for TON Jul 29, 2026
@cl-sonarqube-production

Copy link
Copy Markdown

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