Skip to content

Commit

Permalink
chore: update README & resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Jan 9, 2025
1 parent 2adff22 commit d81c05c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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/).

17 changes: 0 additions & 17 deletions network.toml

This file was deleted.

2 changes: 1 addition & 1 deletion runtime/src/configs/revive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl pallet_revive::Config for Runtime {
type WeightInfo = pallet_revive::weights::SubstrateWeight<Self>;
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<true>;
Expand Down

0 comments on commit d81c05c

Please sign in to comment.