mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
c6004336ae
* first cut, still WIP * use specific contracts image * fix missing abi * more predictoor * more predictoor * done predictoor logic * fix * update * merge #682 * update ready logic * fixes * lint * increase timeout * add oasis-saphire-testnet * bump to contracts v2.0.0-next.2 * add loop for crappy rpc * merge template * fixes 1 * fixes * fix predictor detection * Use latest predictoor contracts (#708) * Update tests.yml * Update handlers * Update schema * Linter * Update abi and fields * use latest contracts * use latest contracts * expose agg preds in trueval * fix abi path * remove unused abis * fix --------- Co-authored-by: trizin <25263018+trizin@users.noreply.github.com> * bump contracts * Remove floatValue from predictoor trueval handler (#714) * Update predictSlot status on trueval submit (#716) * Update status * Fix * Update contracts version * Use number for predict slot * Fixes * Linter * Fix * Fix * tostring * Fix * Fix * Fix * use contracts v2.0.0-next.11 * use latest graph-cli * remove --debug flag * Feature/add predictoor pause event (#723) * bump contracts * add pause for predictoorContract * bump contracts to v2.0.0-13 * bum contracts & add sapphire mainnet * fix lock --------- Co-authored-by: trizin <25263018+trizin@users.noreply.github.com>
21 lines
506 B
Bash
Executable File
21 lines
506 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# default to true in case it is not set
|
|
DEPLOY_SUBGRAPH="${DEPLOY_SUBGRAPH:-true}"
|
|
echo "deploy subgraph is ${DEPLOY_SUBGRAPH}"
|
|
|
|
if [ "${DEPLOY_SUBGRAPH}" = "true" ]
|
|
then
|
|
rm -f /ocean-subgraph/ready
|
|
echo "Waiting for contracts to be deployed"
|
|
while [ ! -f "/ocean-contracts/artifacts/ready" ]; do
|
|
sleep 2
|
|
done
|
|
export ADDRESS_FILE="/ocean-contracts/artifacts/address.json"
|
|
cd /usr/src/app/
|
|
npm run quickstart:barge
|
|
sleep 3
|
|
touch /ocean-subgraph/ready
|
|
fi
|
|
tail -f /dev/null
|