The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hyperlane-monorepo/solidity/update_abis.sh

18 lines
636 B

#!/bin/sh
# Must be ran from the `solidity` directory
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/hyperlane-ethereum/abis/"$CONTRACT_NAME".abi.json
}
copy interfaces/IMailbox && \
copy interfaces/IInterchainGasPaymaster && \
copy interfaces/IValidatorAnnounce && \
copy interfaces/IInterchainSecurityModule && \
copy interfaces/isms/IMultisigIsm && \
copy interfaces/isms/IRoutingIsm && \
copy interfaces/isms/IAggregationIsm