-
Notifications
You must be signed in to change notification settings - Fork 184
Btc teleport #471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Btc teleport #471
Conversation
This reverts commit 748eb99.
Merge Dev to Btc Teleport
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
A series of updates to integrate a new “BTC Teleport” oracle module, including installation/uninstallation scripts, service configuration adjustments, and wiring the module into existing flows.
- Add
btc_teleportservice stop/remove steps and related uninstall scripts - Extend
mytoninstallerandmytonctrlto initialize, configure, and register the BTC Teleport module - Introduce new
modules/btc_teleport.py, adjust systemd helper, and update various lifecycle hooks
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/uninstall.sh | Stop and remove btc_teleport service and cleanup its files |
| mytoninstaller/settings.py | Enable “enable_btc_teleport” when restoring from backup |
| mytoninstaller/scripts/jsonrpcinstaller.sh | Removed automatic restart of mtc-jsonrpc service |
| mytoninstaller/scripts/add2systemd.sh | Added -w (working dir) flag and systemctl restart on install |
| mytoninstaller/mytoninstaller.py | Fallback to global config when init_block is missing |
| mytonctrl/scripts/remove_btc_teleport.sh | New script to remove BTC Teleport periphery and service |
| mytonctrl/scripts/btc_teleport*.sh | New install scripts building and installing Rust/Go components |
| mytonctrl/mytonctrl.py | Inject BTC Teleport console commands, upgrade hook, status print |
| mytoncore/mytoncore.py | Import and auto-initialize BTC Teleport in validator mode |
| mytoncore/functions.py | Add event handler and auto-vote loop for BTC Teleport proposals |
| modules/module.py | Updated type annotation for local |
| modules/btc_teleport.py | New module implementing BTC Teleport functionality |
Comments suppressed due to low confidence (2)
modules/module.py:14
- [nitpick] Annotating
localasMyPyClassmay be misleading if that class doesn’t match the actual interface. Consider using a protocol or removing the annotation to avoid confusion.
self.local: MyPyClass = local
mytonctrl/mytonctrl.py:333
- The
Upgradesignature changed from(ton, args)to(local, ton, args). Existing calls may still pass two arguments, causing a mismatch. Verify and update all invocations.
def Upgrade(local, ton, args: list):
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
No description provided.