sepolia deployment

This commit is contained in:
tim
2025-10-23 13:53:48 -04:00
parent 380c77b37e
commit a1e73df30a
13 changed files with 524 additions and 55 deletions

31
bin/generate-contracts Executable file
View File

@@ -0,0 +1,31 @@
#!/bin/sh
CHAIN_ID=${1:-31337}
if [ "$CHAIN_ID" = "31337" ]; then
ABI_PATH=../lmsr-amm/out
METADATA_PATH=../lmsr-amm/liqp-deployments.json
else
ABI_PATH=../lmsr-amm/deployment/$1/v1/out
METADATA_PATH=../lmsr-amm/deployment/liqp-deployments.json
fi
if [ ! -f "$ABI_PATH/IPartyPool.sol/IPartyPool.json" ]; then
echo "Invalid chain ID $CHAIN_ID"
exit 1
fi
echo Chain $CHAIN_ID
generate() {
ABI=$(jq '.abi' $ABI_PATH/$1.sol/$1.json)
echo "/* GENERATED FILE: DO NOT EDIT! */\n\nconst ${1}ABI = ${ABI} as const;\n\nexport default ${1}ABI;" > ./src/contracts/$1ABI.ts
echo "src/contracts/$1ABI.ts"
}
generate IPartyPlanner
generate IPartyPool
generate IPartyPoolViewer
cp "$METADATA_PATH" src/contracts/
echo liqp-deployments.json