0.3.18 • Published 1 month ago

catapulta v0.3.18

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Catapulta CLI

The Catapulta CLI is a multi-chain deployment tool for Foundry and Hardhat, which allows you to deploy smart contracts, automatically verify and generate deployment reports in +10 networks, without the need to maintain RPC urls or block explorer API keys in your Foundry/Hardhat config.

Catapulta is a smart contracts deployment platform for teams, to ensure the best Chain Ops practices via automation to keep your deployments organized.

Check below for quick documentations for:

  • Foundry
  • Hardhat Deploy

Requirements

For using Catapulta, you need:

  • Node.js 18
  • Sign up with Github at Catapulta.sh, to obtain a free API key.
  • Paste your CATAPULTA_API_KEY in your .env file in your repository, or in your.bashrc or your .zshrc file.

Install

You can install catapulta CLI globally via NPM:

npm i -g catapulta

Can also be installed locally in your Foundry or Hardhat project, if you use Node.js

npm i --save-dev catapulta

# Execute with npx at your package.json scripts
npx catapulta -v

Foundry: Getting started

To be able to deploy your Foundry scripts using Catapulta, you need to specify the Foundry Script path and the network to perform the deployment:

  npx catapulta script scripts/Deploy.s.sol --network sepolia

Multi-chain deployment

You can also perform multi-chain deployments in a single run, adding a list of networks separated by comma at the --network param.

  npx catapulta script scripts/Deploy.s.sol --networks sepolia,avalancheFuji,maticMumbai

Simulations

If you only want to perform a fork simulation of your script, add --simulate flag.

  npx catapulta script scripts/Deploy.s.sol --network sepolia --simulate

You can also pass the --simulate-block-number param to set the fork block height:

  npx catapulta script scripts/Deploy.s.sol --network sepolia --simulate

Verbose or debug mode

To view the deployment traces, add -vv or -vvvv verbose flag in the catapulta command, in your simulation or broadcast deployment.

  npx catapulta script scripts/Deploy.s.sol --network sepolia --simulate -vvvv
  npx catapulta script scripts/Deploy.s.sol --network sepolia -vvvv

Keep in mind that verbose mode removes the concurrency mode, making multi-chain deployments slower.

Pass extra params to forge script

You can pass any extra forge script params at the end of the command, like --with-gas-price.

  npx catapulta script scripts/Ghost.s.sol --network sepolia --with-gas-price 10000000000

Help

If you want to see full documentation, you can run:

npx catapulta --help

To remove the need to pass --api-key in every command, add CATAPULTA_API_KEY environment variable in your .env file.

Hardhat: Getting Started

If you use Hardhat Deploy, you may need to install and import the Catapulta plugin in your hardhat.config.ts file.

npm i --save-dev catapulta

Them proceed to import the Catapulta plugin in your hardhat.config.ts file:

// hardhat.config.ts
// Include the Catapulta Hardhat plugin at the top of your config

import 'catapulta/hardhat';

Run your Hardhat deploy scripts using Catapulta CLI. You can pass any extra parameter needed for hardhat deploy.

npx catapulta deploy --network sepolia --api-key <your-api-key>
0.3.18

1 month ago

0.3.17

1 month ago

0.3.16

1 month ago

0.3.15

1 month ago

0.3.14

2 months ago

0.3.13

2 months ago

0.3.12

2 months ago

0.3.9

2 months ago

0.3.11

2 months ago

0.3.10

2 months ago

0.3.8

2 months ago

0.3.7

3 months ago

0.3.6

3 months ago

0.3.5

3 months ago

0.3.4

3 months ago

0.3.3

4 months ago

0.3.2

4 months ago

0.3.1

4 months ago

0.3.0

5 months ago

0.2.19

5 months ago

0.2.18

5 months ago

0.2.17

5 months ago

0.2.15

5 months ago

0.2.14

5 months ago

0.2.13

5 months ago

0.2.12

5 months ago

0.2.11

5 months ago

0.2.10

5 months ago

0.2.9

6 months ago

0.2.8

7 months ago

0.2.7

7 months ago

0.2.6

7 months ago

0.2.5

7 months ago

0.2.4

7 months ago

0.2.3

7 months ago

0.2.2

7 months ago

0.2.1

7 months ago

0.2.0

7 months ago

0.1.47

7 months ago

0.1.46

7 months ago

0.1.45

7 months ago

0.1.44

7 months ago

0.1.42

7 months ago

0.1.41

7 months ago

0.1.40

7 months ago

0.1.39

8 months ago

0.1.38

8 months ago

0.1.37

8 months ago

0.1.36

8 months ago

0.1.35

8 months ago

0.1.34

8 months ago

0.1.33

8 months ago

0.1.32

8 months ago

0.1.31

8 months ago

0.1.30

8 months ago

0.1.29

8 months ago

0.1.28

8 months ago

0.1.27

8 months ago

0.1.26

8 months ago

0.1.25

8 months ago

0.1.24-alpha.9

8 months ago

0.1.24-alpha.8

8 months ago

0.1.24-alpha.7

8 months ago

0.1.24-alpha.6

8 months ago

0.1.24-alpha.5

8 months ago

0.1.24-alpha.4

8 months ago

0.1.24-alpha.3

8 months ago

0.1.24-alpha.2

8 months ago

0.1.24-alpha.1

8 months ago

0.1.24-alpha.0

8 months ago

0.1.23

8 months ago

0.1.21

8 months ago

0.1.20

8 months ago

0.1.19

8 months ago

0.1.18

8 months ago

0.1.17

9 months ago

0.1.16

9 months ago

0.1.15

9 months ago

0.1.14

9 months ago

0.1.12

9 months ago

0.1.11

9 months ago