Weekly Dev Update #44
THORChain Weekly Dev Update for Week 19–25 May 2020
Summary

Testnet was released to some of the community with over-whelming success:
- stable, fast, reliable
- supported swapping, staking, withdrawing a variety of BEP2 assets.
The team are now working on a Public Testnet, which will have the following features:
- Public swaps, staking and more
- Public nodes (bonding, churning)
This will give the community more time to understand the system and provide testing entropy.
THORNode
Bifrost
Work continues to build out the Ethereum integration. A new proxy and vaultcontract were built. These contracts will be managed by THORChain and allow compatibility with ERC-20 tokens. The proxy will be static and allow easy querying of the latest vault and also SEED IPs.
- ETH tx receipt
- Remove nonce storage
- ADD: Seed service
- ADD: Seed service ABI
- RESOLVE: ADD PROXY
- RESOLVE: Ether Handling
Native Rune
Work continues to implement Native Rune, as well as testing in the smoke tests. Mainnet will have both Native Rune as well as a mechanism to swap.
- [bugfix] fixes various native rune bugs
- [bugfix] native rune patches
- [testing] test both native and BEP2 rune scenarios in smoke tests
- [feature] send funds to asgard/bond and it will forward to native tx hander
- [bugfix] no switch handler for BEP2 rune chains
- [bugfix] removing native tx relay from msg send
Chain Work
Bug-fixes and more.
- 484-issue emit an outbound event for double swap
- Update mock bond sh script to take peer api if available
- Mgr refactor ex
- fix slasher crash at block height 300
- add MsgBan to handler
- Clean endpoints
- Fix input stdin auth cmd
- Error handling
- Fix flake unit test
- try to update broadcast
- Some of the unit test under binance chain client had been skipped , fix it and add it back
- [config] testnet should have new pools bootstrapped
- [refactor] refactor how to do kvstore migration
Upgrades
Upgrades to certain modules.
- [refactor] upgrade to Cosmos 0.38
- [upgrade] update cosmos-sdk v0.38.3 → v0.38.4
- upgrade tss to use latest version
Manager Refactor
THORNode has outgrown its current structure, so this was all refactored into separate managers. This will make the codebase more readable.
- [refactor] pull slasher in to be a full manager
- [refactor] yggdrasil gets its own full manager
- [refactor] move updating vault data logic into vault manager and out of the keeper
- merge vault data math funcs into vault manager
Midgard
Midgard has now been refactored with the new Events Manager, as well as upgrading to latest Tendermint and supporting Native Rune.
- Resolve “Fix block speed”
- Resolve “Implement GetEventsByTxID in Store”
- Resolve “Implement UpdateRecord methods for events”
- Implement a new event handler base on Tendermint events
- Resolve “Fix Fee event handler”
- [feature] add native rune support
- Resolve “Fix GetTotalVolume”
- Resolve “Upgrade to Tendermint v0.33.4”
- Resolve “Replace Scanner with new BlockScanner”
- Resolve “Fix LastChainHeight”
- Resolve “Fix GetEventsByTxID”
- Resolve “Add delay in case of error in fetching block results”
ASGARDEX
Work continues to build out the binary. Progress is increasing and the intent is to have ASAGARDEX fully supporting multi-chain when THORNode is ready.
- Issue 40/receive funds
- Issue 39/send funds
- Add label component & storybook
- Add AssetIcon, DynamicIcon component & icon svgs
- Add Table Component
- Add Trend component
- Add assetPair component
- Add Button component and fix issues in the label
DEVOps
Work was completed on a Kubernetes PoC, as well as automating other parts of the devups setup. There is an ongoing issue with compatiblity with K8s and Cosmos, so the team will focus on a docker swarm setup in the short term. They will revisit k8s later with more help from the community, including Cosmos team.
- Resolve “PoC Kubernetes”
- Fix entrypoint to not recreate keys
- [security] sign all keygen/keysign API endpoints
Audit
- Code Review:
Complete - Economic Review:
Preparing Final Review - TSS Audit:
41% - Infra Audit:
scoping

Next Milestones
The updated testnet has been deployed and is under review with some members of the community. Chaosnet is expected once testnet has been fully-validated in several environments. There currently isn’t any known blockers to Chaosnet release.
Community
To keep up to date, please monitor community channels, particularly Telegram and Twitter:
- Twitter: https://twitter.com/thorchain_org
- Telegram Community: https://t.me/thorchain_org
- Telegram Announcements: https://t.me/thorchain
- Reddit: https://reddit.com/r/thorchain
- Github: https://github.com/thorchain
- Medium: https://medium.com/thorchain