Skip to content

MobulaFi/mobula-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Foundry : https://github.com/foundry-rs/foundry

Building Contracts

forge build

Running tests

make unit-tests

Test Coverage

forge coverage

Deployment Process

  1. Fill .env file : Deployer PK, RPCs, API keys...

  2. Deploy MobulaTokensProtocol

make deploy-tokens-protocol
  1. Save the MobulaTokensProtocol address in .env TOKENS_PROTOCOL_ADDRESS

  2. Deploy API

make deploy-protocol-api
  1. Save the API address in .env PROTOCOL_API_ADDRESS

  2. Update API address in MobulaTokensProtocol

make update-protocol-api
  1. Deploy Axelar senders (on other blockchains)
make deploy-axelar-bnb-sender
  1. Update WhitelistAxelarContracts.s.sol with deployments script for each Axelar senders

  2. Whitelist Axelar senders

make whitelist-axelar-contracts