Repository navigation
multi: Add Kusama Asset Hub (KSM, dUSD) - #3634
Draft
monsieurbulb wants to merge 1 commit into
Draft
monsieurbulb wants to merge 1 commit into
monsieurbulb wants to merge 1 commit into
Conversation
Adds KSM and dUSD on Kusama Asset Hub, reached through pallet-revive's Ethereum RPC. The client wallet and server backend are the eth ones with Asset Hub's parameters, the way Base and Polygon are. KSM takes its SLIP-0044 ID, 434, and Asset Hub tokens get the range 434000-434999. ChainConfig sets LondonBlock so the wallet's base fee prediction reads revive's flat base fee instead of returning 1 gwei. The unmodified v1 swap contract is deployed on Polkadot Hub TestNet. Mainnet has no contract yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a draft, to ask whether you would take a new EVM chain shaped like this one before anyone spends review time on it.
We are building a members' exchange for Birdbrain, a small collective on Kusama, on dcrdex. Its members hold KSM and dUSD on Kusama Asset Hub, so this adds that chain.
What it is. Kusama Asset Hub runs pallet-revive, which executes ordinary EVM bytecode and serves a standard Ethereum RPC. Assets registered with its assets pallet appear as ERC-20 precompiles. So to dcrdex it is one more EVM chain. The client wallet and server backend here are the eth ones with Asset Hub's parameters, the way Base and Polygon are: three new files and four registration lines. KSM takes its SLIP-0044 ID, 434. The one token is dUSD, a dollar stablecoin (Asset Hub asset 50000002), in a reserved range 434000-434999.
What has been tested, on Polkadot Hub TestNet (Paseo).
dex.birdbrain.wtf:7232. Testnet money only, access by prepaid bond.What we learnt that you may want to know.
ChainConfigsetLondonBlock: 0.wrong contract version for dusd.ksm. wanted 0, got 1whenever a dUSD redeem lagged the RPC node. With server/asset/eth: Fix unset contractVer in TokenBackend #3617 applied the same path resolves. It would be good to see that merged whatever happens here.Not done.
ContractAddresses[1][Mainnet]is empty.multirpc_live_test.go.doc.tsentry in the web UI.Two questions.
🤖 Generated with Claude Code