Depend on Third-Party Smart Contracts
View on Github
Smart Contract
Tutorial
Learn how to invoke externally created smart contract's methods from within your Move code.
Author: Alex
This example guides you through referencing and invoking third party smart contracts within your Move code. It covers defining the dependency through different code sources and calling into the third party code during execution of your smart contract.
[package]name = "multidex_router"version = "1.0.0"authors = [][addresses]multidex_router_addr = "_"[dev-addresses]multidex_router_addr = "0x803"[dependencies.AptosFramework]git = "https://github.com/aptos-labs/aptos-core.git"rev = "mainnet"subdir = "aptos-move/framework/aptos-framework"[dependencies.Liquidswap]git = 'https://github.com/pontem-network/liquidswap.git'rev = 'main'[dependencies.LiquidswapRouterV2]git = 'https://github.com/pontem-network/liquidswap.git'subdir = 'liquidswap_router_v2/'rev = 'main'[dependencies.LiquidswapLP]git = 'https://github.com/pontem-network/liquidswap.git'subdir = 'liquidswap_lp/'rev = 'main'[dependencies.PancakeSwap]local = './third_party_dependencies/PancakeSwap'[dev-dependencies]