Skip to content
Blockchain Association of Cameroon
BAC-L2-SUB-115Substrate / Polkadot SDKAdvanced

Smart contracts on a Substrate chain

When to open your chain to third-party code, and on what terms — the exact opposite of the reflex to put everything in a contract.

Level
L2Appchain developer
Duration
4 h
Track
Substrate / Polkadot SDK
Maintainer
Polkadot / Substrate Lead Architect

Learning objectives

  • 01Enable contract execution on an application chain
  • 02Deploy and call a contract from a client
  • 03Decide between pallet logic and contract logic

Guided lab

Deploy a contract on your own chain and make it interact with an existing pallet.

Independent lab

Compare cost and latency for the same feature implemented once as a pallet and once as a contract.

Security angle

Opening to contracts means accepting hostile code: quotas, storage deposits and execution limits.

Assessment

Costed comparative study of the two implementations.