Ink! Developer Workshop - Web3bridge Edition
Objectives
- Understand how to do cross-contract calls in ink!
- Differences between calling smart contracts on same (vs different) chains
- Understand how Contract References, CallBuilder and CreateBuilder work and when they should be used
- Explain how XCM works within smart contracts
- Decoding the content of the ink! Metadata file
- Recap on Selectors
- Building a ERC20 meme coin on ink! using the discussed features
Cross Contract Calls
Allows calling the messages (and constructors) of other on-chain smart contracts.
How?
- Contract References (also called ContractRef)
- Builders
- CreateBuilder
- CallBuilder
Contract References
- The contract to call must be imported.