1

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

2
  • Please clarify your question. The title is clear but it is a very broad question and with the information you are providing it is not clear what you are questioning about Sep 19 at 14:21
  • Here's an in depth usecase: medium.com/@GenesisDAO/…
    – shredding
    Sep 20 at 17:49

1 Answer 1

2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.