For example,
- pallet
They use pallet-dapps-staking to call ink! smart contract
https://github.com/AstarNetwork/Astar/tree/master/pallets/dapps-staking
- Runtime
https://github.com/AstarNetwork/Astar/blob/master/runtime/shibuya/src/lib.rs#L688
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.
Sign up to join this communityFor example,
They use pallet-dapps-staking to call ink! smart contract
https://github.com/AstarNetwork/Astar/tree/master/pallets/dapps-staking
https://github.com/AstarNetwork/Astar/blob/master/runtime/shibuya/src/lib.rs#L688
First, in any case you need a pallet to call a smart contract (SC). Pallet-contracts
and pallet-evm
provide the functionality to call a WASM SC or Solidity SC respectively.
There can be many reasons to have other pallets in your runtime interact with SCs or the other way around. This post on the Polkadot Forum can maybe help you get a grasp of it: https://forum.polkadot.network/t/urban-planning-in-the-paraverse-with-ink/2617