Ante
Ante v0.5
Ante v0.5
  • Welcome to Ante v0.5
  • How Ante works
  • Why use Ante?
    • How is Ante different?
    • What does Ante cost to use?
  • What's in Ante v0.5?
  • Using the Ante App
    • Navigating Ante
    • How to Stake
    • How to Challenge & Check Tests
    • The Decentralized Trust Score
      • Decentralized Trust Tiers
    • Deposit Limits
  • For Developers
    • Writing an Ante Test
      • Coming up with an invariant
      • Explaining IAnteTest.sol and AnteTest.sol
      • Ante Test Examples
      • Writing and Testing an Ante Test
      • Test an Ante Test Offline
      • Adding an Ante Test to Ante Github
      • Development FAQs
    • Integrating Ante
      • Integrate Ante using React
      • Integrate Ante using HTML
    • Deploying an Ante Test
      • Deploy an Ante Test
      • Create an Ante Pool
      • Verifying an Ante Pool
    • Contracts
  • About Ante
    • FAQs
    • Glossary
    • Security
    • Possible Future Work
    • Changelog
    • Terms of Service
Powered by GitBook
On this page
  1. For Developers
  2. Writing an Ante Test

Development FAQs

Q: If I’m writing an Ante Test and I want to call a function from another contract with a non-standard interface (i.e. not an ERC20 token, etc), what is the best way to do so?

A: If the project has an npm package you can import directly from there via @project/path/to/contract; otherwise, you can copy the interface file into your repo and import or even just paste it in the source code of your Ante Test if you don't think it'll be used elsewhere. If desired, you can define a minimal interface for just the functions you need, but in practice, people prefer importing the entire interface.

PreviousAdding an Ante Test to Ante GithubNextIntegrating Ante

Last updated 3 years ago