PSC is an acronym for polkadot smart contract platform. It is an EVM smart contract parachain with DOT as the native Gas fee.
PSC is a Polkadot parachain which uses directly DOT
as transaction fees and jointly developed by the ChainX team and OmniBTC team.
The ChainX team will build PSC into a cross-chain interoperability hub among the Bitcoin network, Polkadot ecology, EVM ecology, MoveVM ecology, and Cosmos ecology based on technologies such as Zkrollup, XCMP, ibc, and Lightning Network.
DolaProtocol is a chain-wide liquidity aggregation and settlement system with the single coin pool of each public chain as the core, Wormhole, Layerzero and other cross-chain messaging protocols as the bridge, and Sui public chain as the settlement center.
There are DOT
and assets of each parachain on the Polkadot platform. We will deploy a single currency pool on the Polkadot Smart Chain to become OmniBTC’s liquidity pool site on the Polkadot platform, which is connected to other Polkadot parachains through the XCMP protocol.
Committed to allowing the original assets on Polkadot to circulate with mainstream native assets such as BTC/ETH.
git clone https://github.com/OmniBTC/PSC.git
cd PSC
cargo test --release
cargo build --release
Use zombienet launch a local testnet.
For provider=native
(linux/macos, binaries), require build psc and our modified polakdot
Run: zombienet-linux-x64 spawn --provider native ./psc-small-network.toml
For provider=podman
(linux, dockers), require install podman
Run: zombienet-linux-x64 spawn --provider podman ./psc-small-network.toml
Network name: Polkadot Smart Chain
RPC URL: https://psc-parachain.coming.chat/rpc
Chain ID: 1508
Currency symbol: DOT
For local zombienet, use RPC URL: http://127.0.0.1:8546
Refer Connect MetaMask to Moonbeam
Refer Interacting with Moonbeam Using Remix
- Ethereum JSON-RPC.postman_collection
- Ethereum RPC Support
- QuickNode Ethereum RPC
- Ethereum JSON-RPC Wiki
This article introduce how the Ethereum address and Substrste account are associated
On PSC, pallet-assets-bridge bind EVM address and Substrate account, bind WASM assets and Erc20 tokens, deposit and withdraw fungible assets between WASM and EVM.
This tool can convert EVM address to Substrate(Polkadot) account.
As we all know, DOT decimals=10, Metamask supports evm chain with decimals=18 by default.
In order to be compatible with Metamask, chainx-frontier has done the following for Native Currency Balance
- (1)
wasm -> evm
(get_Balance): expand 10^8 - (2)
evm -> wasm
(calc gas fee): shrink 10^8
It is safe and acceptable.
Follow this test guide, learn how to deploy evm contracts.
EXISTENTIAL_DEPOSIT = 0.01 DOT
wasm transfer: 0.0047732 DOT
evm transfer: 0.0046515 DOT
evm-address mapping reseve: 0.1 DOT