#!/bin/sh copy() { # Optionally allow path to be passed in, and extract the contract name # as the string following the last instance of `/` CONTRACT_NAME="${1##*/}" jq .abi < artifacts/contracts/"$1".sol/"$CONTRACT_NAME".json > ../rust/chains/abacus-ethereum/abis/"$CONTRACT_NAME".abi.json } copy Inbox && copy Outbox && copy validator-manager/InboxValidatorManager && copy InterchainGasPaymaster