mirror of
https://github.com/FiloSpaTeam/plutus-pioneer-program.git
synced 2024-11-25 08:12:00 +01:00
10 lines
373 B
Bash
10 lines
373 B
Bash
|
#1/bin/sh
|
||
|
|
||
|
symbol=$( cat symbol.json )
|
||
|
body="{\"apAmountA\":$2,\"apAmountB\":$4,\"apCoinB\":{\"unAssetClass\":[$symbol,{\"unTokenName\":\"$5\"}]},\"apCoinA\":{\"unAssetClass\":[$symbol,{\"unTokenName\":\"$3\"}]}}"
|
||
|
echo $body
|
||
|
|
||
|
curl "http://localhost:8080/api/new/contract/instance/$(cat W$1.cid)/endpoint/add" \
|
||
|
--header 'Content-Type: application/json' \
|
||
|
--data-raw $body
|