Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| b60f897110 | |||
| 9ed818d1d0 |
Executable
+21
@@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
SOURCE="$HOME/projects/com_r35157_nenjim-hubd-api"
|
||||||
|
TARGET="$HOME/projects/com_r35157_nenjim-hubd-api_github_snapshot"
|
||||||
|
|
||||||
|
rsync -a --delete \
|
||||||
|
--exclude '.git' \
|
||||||
|
"$SOURCE/" \
|
||||||
|
"$TARGET/"
|
||||||
|
|
||||||
|
cd "$TARGET"
|
||||||
|
git add -A
|
||||||
|
|
||||||
|
if git diff --cached --quiet; then
|
||||||
|
echo "No snapshot changes to publish."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
git commit -m "Mirror snapshot"
|
||||||
|
git push
|
||||||
@@ -13,11 +13,13 @@ import java.math.BigDecimal;
|
|||||||
* @param entryPrice the entry price of the position, denominated in USDC
|
* @param entryPrice the entry price of the position, denominated in USDC
|
||||||
* @param direction whether the position is long or short
|
* @param direction whether the position is long or short
|
||||||
* @param tradedTokenMint the mint address of the token being traded
|
* @param tradedTokenMint the mint address of the token being traded
|
||||||
|
* @param collateralUsd the amount of USD representing the collateral for this position
|
||||||
*/
|
*/
|
||||||
public record JupiterPerpsPosition(
|
public record JupiterPerpsPosition(
|
||||||
ΩJupiterPerpsPositionAccountΩ positionAccount,
|
ΩJupiterPerpsPositionAccountΩ positionAccount,
|
||||||
ΩUSDCPriceΩ entryPrice,
|
ΩUSDCPriceΩ entryPrice,
|
||||||
JupiterPerpsPositionDirection direction,
|
JupiterPerpsPositionDirection direction,
|
||||||
ΩSPLMintAddressΩ tradedTokenMint
|
ΩSPLMintAddressΩ tradedTokenMint,
|
||||||
|
ΩUSDCAmountΩ collateralUsd
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user