Skip to content

Release v5.0.0(Use BTC as chainx-evm gas)

Compare
Choose a tag to compare
@icodezjb icodezjb released this 01 Jun 07:12
· 16 commits to develop-2022 since this release
688cf46

Global Priority

HIGH: This is a high priority release, and you must upgrade as as soon as possible if you are validator

  • runtime version 27 -> 29 at #9,476,371
  • breaking: use btc as chainx-evm gas
  • breaking: pcx(evm) is stored in chainx-evm via erc20, the mainnet contract address: 0xf3607524cAB05762cB5F0cAb17e4cA3A0F0b4E87
  • metamask
Network name: ChainX
RPC URL: https://mainnet.chainx.org/rpc
Chain ID: 1501
Currency symbol: BTC
Block explorer URL (Optional): https://evm.chainx.org/

How to sync blocks from genesis(block #0)

 "/ip4/18.142.230.171/tcp/23555/ws/p2p/12D3KooWQ6GGfmvmmmsbKRmZqMA3A8rxaHz25HvA7JNBbcZhLXtk",
 "/ip4/47.99.179.60/tcp/20222/ws/p2p/12D3KooWGLMfkuzy9WzbV7rTRvHk6AvHg89nT8mipNQoQw36eARc",
 "/ip4/47.114.74.52/tcp/36789/ws/p2p/12D3KooWJPMUkGytfAMt3AMqm4AFn4VToXjbWZoC4Z2NxXNXvTwb"
  • (2) Until #3038400, please use ChainX v3.0.0 to synchronize with NativeElseWasm (default mode)
  • (3) For blocks after #3038400, complete (2) first, and then replace ChainX v3.0.0 with ChainX v5.x.x to complete the db migration (note that the migration process is irreversible, it is recommended to back up the data first)
  • (4) ChainX v5.x.x continues to synchronize blocks

Rust compiler versions

  • Rust Nightly: nightly-2021-11-07

Docker image

docker pull chainxorg/chainx:v5.0.0

What's Changed

chainx-v5

ChainX = BTC layer2 + ETH compatibility layer + Substrate framework

1. The manifestation of BTC on ChainX
(1) XBTC
XBTC is a BTC Layer 2 scheme supported from ChainX v1.0.0, stored in the xpallet-assets module.
XBTC conducts asset mining through xpallet-mining-asset and obtains PCX rewards.
For users, use Polkadot wallet to manage XBTC.

(2) BTC
BTC is a BTC layer2 scheme supported from ChainX v5.0.0, stored in the xpallet-btc-ledger module,
As the gas settlement layer of chainx-evm.
For users, only need to use metamask wallet to manage BTC.

For the greatest possible compatibility, ChainX v5.0.0 will support both XBTC and BTC,
The xpallet-assets-bridge::swap_xbtc_to_btc interface is provided to realize the one-way 1:1 migration of XBTC -> BTC.

2. ETH compatibility layer
chainx-evm is an Ethereum compatibility layer solution supported by ChainX v4.3.0, based on moonbeam-frontier, using PCX as chainx-evm gas.
The goal is to expand the application scenarios of BTC layer2 by transplanting mainstream Ethereum ecological applications.

In order for the majority of Bitcoin and Ethereum users to experience BTC layer2 more conveniently,
starting from ChainX v5.0.0, BTC is used as chainx-evm gas.

It's a breaking upgrade, but worth it nonetheless.

All BTC gas fees will be 100% transferred to ChainX Validators.

3. Bitcoin <-> ChainX
(1) Bitcoin -> ChainX: the user send a bitcoin transaction with OP_RETURN output(attach evm address or chainx address).
if it is an evm address, the user can query the received BTC balance through metamask;
if it is a chainx address, the user can query the received XBTC balance through the ChainX wallet.
(2) ChainX -> Bitcoin(BTC): the user calls the ChainXBridge smart contract in chainx-evm through the metamask wallet and attaches the bitcoin receiving address.
(3) ChainX -> Bitcoin(XBTC): the user calls xGatewayCommon::withdraw through the ChainX wallet and attaches the bitcoin receiving address.

4. Bitcoin assets
Support BRC-20, ORC-20, Taproot assets cross-chain.

Checksum(Local build)

md5sum sha256 name
a3f3e0e3375b81c8c00c904dbd3a0bfe 805d48ecb9a5efb57ee3e346bc751dbe3d56016a422b58e0afba05927d72f46a chainx-5.0.0-ubuntu-20.04-x86_64
88c67c6fa4d8bad5b3cc77e1ef435b63 e844509654647e4b2bdc24328cc91042f2b1bfa3c42cd677a9d7e3ecfcd8d9da chainx_wasm
735afd6c53a0e143248df40dd5a25a75 b6db6e26453286a69bd40eeda8ec2f8733e53dca058d6b5f4dfe7563ff4af441 chainx_compact_wasm
cdc2ec40f2986a75180848a6683513c4 265caaf419937d226608ed3414a2a6ae5a1d22de578c6be0658060de66cd0255 chainx_compressed_wasm

Srtool details

✨ Your Substrate WASM Runtime is ready! ✨
Summary generated with srtool v0.9.19 using the docker image paritytech/srtool:1.57.0:
Package : chainx-runtime v5.0.0
GIT commit : 688cf46
GIT tag : v5.0.0
GIT branch : develop-2022
Rustc : rustc 1.57.0 (f1edd0429 2021-11-29)
Time : 2023-06-01T07:25:50Z

== Compact
Version : chainx-29 (chainx-net-1.tx6.au1)
Metadata : V14
Size : 5.14 MB (5384648 bytes)
Proposal : 0xaac452cc1ce80fce83380d09d0dcd3bb06c0727c13b87b95eb3c54b5d54a964e
IPFS : QmNsYAJWXWdJvYihPsnYnqJdF9oeN5u2BSDoM7XMHNgvVt
BLAKE2_256 : 0x3bff75b7d25a21e7437ad8d7a10c504a74a422750ae72b3469740dc3fb18b7b6
Wasm : runtime/chainx/target/srtool/release/wbuild/chainx-runtime/chainx_runtime.compact.wasm

== Compressed
Version : chainx-29 (chainx-net-1.tx6.au1)
Metadata : V14
Size : 1.16 MB (1217059 bytes)
Compression : 77.4%
Proposal : 0x7d4a4eea7d0d24bf0de12c43f82ef03e455e349e6f49961cf71d956797c21fd6
IPFS : QmSRL3XbYcfBJUUQrKypSLLrQEdfQWHY5R3fdSkNt2rAet
BLAKE2_256 : 0x4dee0e5a09f141dcc258c161c4bdcee08faf7c27704918d23e4d03172f983737
Wasm : runtime/chainx/target/srtool/release/wbuild/chainx-runtime/chainx_runtime.compact.compressed.wasm