From ecb785542b1d99aa061ff4d1a03a0f3e7ad90d08 Mon Sep 17 00:00:00 2001 From: chungquantin <56880684+chungquantin@users.noreply.github.com> Date: Thu, 9 Jan 2025 14:55:24 +0700 Subject: [PATCH] chore: update README & resolve comments --- README.md | 9 +++++++-- network.toml | 17 ----------------- runtime/src/configs/revive.rs | 2 +- 3 files changed, 8 insertions(+), 20 deletions(-) delete mode 100644 network.toml diff --git a/README.md b/README.md index ba7e7a2..085dfc9 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ * ☁️ It is based on the [Cumulus](https://paritytech.github.io/polkadot-sdk/master/polkadot_sdk_docs/polkadot_sdk/cumulus/index.html) framework. -* 🔧 Its [runtime](./runtime) is configured to support WebAssembly smart contracts. +* 🔧 Its [runtime](./runtime) is configured to support [WebAssembly smart contracts](https://crates.io/crates/pallet-contracts) and [PolkaVM smart contracts](https://crates.io/crates/pallet-revive). ## Template Structure @@ -54,6 +54,12 @@ pop up parachain -f ./network.toml ``` > 👉 https://learn.onpop.io/v/appchains/guides/running-your-parachain +#### PolkaVM smart contract development: + +- To emulate the Ethereum JSON RPC, a [proxy server](https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/revive/rpc) needs to be deployed, allowing users to connect to it instead of directly connecting to the node. +- Modified version of Remix IDE for the PolkaVM smart contract development: https://github.com/paritytech/revive-remix. + + ### Learning Resources * 🧑‍🏫 To learn about Polkadot in general, [Polkadot.network](https://polkadot.network/) website is a good starting point. @@ -71,4 +77,3 @@ the Polkadot SDK documentation resources. * 👥 Additionally, there are [GitHub issues](https://github.com/r0gue-io/base-parachain/issues) and [Polkadot Stack Exchange](https://polkadot.stackexchange.com/). - diff --git a/network.toml b/network.toml deleted file mode 100644 index f30a455..0000000 --- a/network.toml +++ /dev/null @@ -1,17 +0,0 @@ -[relaychain] -chain = "paseo-local" - -[[relaychain.nodes]] -name = "alice" -validator = true - -[[relaychain.nodes]] -name = "bob" -validator = true - -[[parachains]] -id = 2000 -default_command = "./target/release/parachain-template-node" - -[[parachains.collators]] -name = "collator-01" diff --git a/runtime/src/configs/revive.rs b/runtime/src/configs/revive.rs index 838ec07..6592fb1 100644 --- a/runtime/src/configs/revive.rs +++ b/runtime/src/configs/revive.rs @@ -53,7 +53,7 @@ impl pallet_revive::Config for Runtime { type WeightInfo = pallet_revive::weights::SubstrateWeight; type ChainExtension = (); type AddressGenerator = pallet_revive::DefaultAddressGenerator; - type MaxCodeLen = ConstU32<{ 123 * 1024 }>; + type MaxCodeLen = ConstU32<{ 256 * 1024 }>; type RuntimeMemory = ConstU32<{ 128 * 1024 * 1024 }>; type PVFMemory = ConstU32<{ 512 * 1024 * 1024 }>; type UnsafeUnstableInterface = ConstBool;