generate-contracts sepolia
This commit is contained in:
@@ -2,11 +2,20 @@
|
|||||||
|
|
||||||
CHAIN_ID=${1:-31337}
|
CHAIN_ID=${1:-31337}
|
||||||
|
|
||||||
|
case "$CHAIN_ID" in
|
||||||
|
"sepolia")
|
||||||
|
CHAIN_ID=11155111
|
||||||
|
;;
|
||||||
|
"mainnet")
|
||||||
|
CHAIN_ID=1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
if [ "$CHAIN_ID" = "31337" ]; then
|
if [ "$CHAIN_ID" = "31337" ]; then
|
||||||
ABI_PATH=../lmsr-amm/out
|
ABI_PATH=../lmsr-amm/out
|
||||||
METADATA_PATH=../lmsr-amm/liqp-deployments.json
|
METADATA_PATH=../lmsr-amm/liqp-deployments.json
|
||||||
else
|
else
|
||||||
ABI_PATH=../lmsr-amm/deployment/$1/v1/out
|
ABI_PATH=../lmsr-amm/deployment/$CHAIN_ID/v1/out
|
||||||
METADATA_PATH=../lmsr-amm/deployment/liqp-deployments.json
|
METADATA_PATH=../lmsr-amm/deployment/liqp-deployments.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -11,11 +11,6 @@ const IPartyPoolABI = [
|
|||||||
"type": "tuple",
|
"type": "tuple",
|
||||||
"internalType": "struct LMSRStabilized.State",
|
"internalType": "struct LMSRStabilized.State",
|
||||||
"components": [
|
"components": [
|
||||||
{
|
|
||||||
"name": "nAssets",
|
|
||||||
"type": "uint256",
|
|
||||||
"internalType": "uint256"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "kappa",
|
"name": "kappa",
|
||||||
"type": "int128",
|
"type": "int128",
|
||||||
@@ -183,7 +178,7 @@ const IPartyPoolABI = [
|
|||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "inputTokenIndex",
|
"name": "outputTokenIndex",
|
||||||
"type": "uint256",
|
"type": "uint256",
|
||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
},
|
},
|
||||||
@@ -240,6 +235,43 @@ const IPartyPoolABI = [
|
|||||||
],
|
],
|
||||||
"stateMutability": "view"
|
"stateMutability": "view"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "function",
|
||||||
|
"name": "fee",
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"name": "i",
|
||||||
|
"type": "uint256",
|
||||||
|
"internalType": "uint256"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "j",
|
||||||
|
"type": "uint256",
|
||||||
|
"internalType": "uint256"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"type": "uint256",
|
||||||
|
"internalType": "uint256"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"stateMutability": "view"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "function",
|
||||||
|
"name": "fees",
|
||||||
|
"inputs": [],
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"type": "uint256[]",
|
||||||
|
"internalType": "uint256[]"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"stateMutability": "view"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"name": "flashFeePpm",
|
"name": "flashFeePpm",
|
||||||
@@ -526,7 +558,7 @@ const IPartyPoolABI = [
|
|||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "fee",
|
"name": "inFee",
|
||||||
"type": "uint256",
|
"type": "uint256",
|
||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
}
|
}
|
||||||
@@ -570,20 +602,7 @@ const IPartyPoolABI = [
|
|||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "fee",
|
"name": "inFee",
|
||||||
"type": "uint256",
|
|
||||||
"internalType": "uint256"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"stateMutability": "view"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "function",
|
|
||||||
"name": "swapFeePpm",
|
|
||||||
"inputs": [],
|
|
||||||
"outputs": [
|
|
||||||
{
|
|
||||||
"name": "",
|
|
||||||
"type": "uint256",
|
"type": "uint256",
|
||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
}
|
}
|
||||||
@@ -621,10 +640,20 @@ const IPartyPoolABI = [
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outputs": [
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "amountInUsed",
|
||||||
|
"type": "uint256",
|
||||||
|
"internalType": "uint256"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "lpMinted",
|
"name": "lpMinted",
|
||||||
"type": "uint256",
|
"type": "uint256",
|
||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "inFee",
|
||||||
|
"type": "uint256",
|
||||||
|
"internalType": "uint256"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"stateMutability": "payable"
|
"stateMutability": "payable"
|
||||||
@@ -681,7 +710,7 @@ const IPartyPoolABI = [
|
|||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "fee",
|
"name": "inFee",
|
||||||
"type": "uint256",
|
"type": "uint256",
|
||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ const IPartyPoolViewerABI = [
|
|||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "inputTokenIndex",
|
"name": "outputTokenIndex",
|
||||||
"type": "uint256",
|
"type": "uint256",
|
||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
}
|
}
|
||||||
@@ -50,6 +50,11 @@ const IPartyPoolViewerABI = [
|
|||||||
"name": "amountOut",
|
"name": "amountOut",
|
||||||
"type": "uint256",
|
"type": "uint256",
|
||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "outFee",
|
||||||
|
"type": "uint256",
|
||||||
|
"internalType": "uint256"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"stateMutability": "view"
|
"stateMutability": "view"
|
||||||
@@ -235,12 +240,12 @@ const IPartyPoolViewerABI = [
|
|||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "fee",
|
"name": "lpMinted",
|
||||||
"type": "uint256",
|
"type": "uint256",
|
||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "lpMinted",
|
"name": "inFee",
|
||||||
"type": "uint256",
|
"type": "uint256",
|
||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
}
|
}
|
||||||
@@ -284,7 +289,7 @@ const IPartyPoolViewerABI = [
|
|||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "fee",
|
"name": "inFee",
|
||||||
"type": "uint256",
|
"type": "uint256",
|
||||||
"internalType": "uint256"
|
"internalType": "uint256"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user