Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
feat: add query script for perpetual assets
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptokage1996 committed Sep 17, 2024
1 parent 1c9fae3 commit 472da69
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/queries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,15 @@ query_contract "$ts_contract_address" '{
}'
}

function perpetual_assets() {
printf "\n# Get Perpetual Assets"
query_contract "$ts_contract_address" '{
"get_perpetual_asset": {
"address" : "'"$user_address"'"
}
}'
}

# function(s) to run based on the provided argument
case "$2" in
"swap_estimation_by_denom_elys_usdc_elys")
Expand Down Expand Up @@ -490,6 +499,9 @@ case "$2" in
"parameter_params")
parameter_params
;;
"perpetual_assets")
perpetual_assets
;;
*)
# Default case: run all functions
ts_params
Expand Down

0 comments on commit 472da69

Please sign in to comment.