diff --git a/.gitignore b/.gitignore index f7d985a..f74f45d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ build/ contract/oracle.wasm contract/*.sh src/*.sh +*.abi +*.wasm \ No newline at end of file diff --git a/include/delphioracle/delphioracle.hpp b/include/delphioracle/delphioracle.hpp index dd68d9e..6a65de5 100644 --- a/include/delphioracle/delphioracle.hpp +++ b/include/delphioracle/delphioracle.hpp @@ -117,7 +117,7 @@ CONTRACT delphioracle : public eosio::contract { }; */ - struct producer_info { + TABLE producer_info { name owner; double total_votes = 0; eosio::public_key producer_key; /// a packed public key object diff --git a/scripts/configure.json b/scripts/configure.json index 13afb16..2475b93 100644 --- a/scripts/configure.json +++ b/scripts/configure.json @@ -5,7 +5,7 @@ "vote_interval": 10000, "write_cooldown": 55000000, "approver_threshold": 1, - "approving_oracles_threshold":2, + "approving_oracles_threshold":1, "approving_custodians_threshold":1, "minimum_rank": 105, "paid": 21, diff --git a/scripts/configure.sh b/scripts/configure.sh index d19934a..86c2458 100755 --- a/scripts/configure.sh +++ b/scripts/configure.sh @@ -1,4 +1,4 @@ #!/bin/bash -cleos set account permission $1 active --add-code -cleos push action $1 configure "$(cat configure.json)" -p $1 +cleos set account permission delphioracle active --add-code +cleos push action delphioracle configure "$(cat configure.json)" -p delphioracle diff --git a/scripts/dev/get-pairs.sh b/scripts/dev/get-pairs.sh new file mode 100755 index 0000000..d09cd47 --- /dev/null +++ b/scripts/dev/get-pairs.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Simple script to get all rows for all pairs from DelphiOracle contract + +# Configuration +CONTRACT="delphioracle" +API_ENDPOINT="https://eos.api.eosnation.io" + +# List of pairs to check (from the image) +declare -a pairs=( + "usdtars" "usdtcrc" "usdtmxn" "usdteur" "usdtaud" "usdtcad" + "usdtcop" "usdtgbp" "usdtkrw" "usdtjpy" "usdtvnd" "usdttwd" + "usdtthb" "usdtsol" "usdtclp" "usdtcny" "usdtidr" "usdtmyr" + "usdtngn" "usdtugx" "usdtkes" "eosusdt" "ethusd" "btcusd" + "eosbtc" +) + +# Get all rows for all pairs +echo "Getting all pairs from the pairs table by name..." +echo + +for pair in "${pairs[@]}"; do + pair=$(echo $pair | tr -d '"') + echo "Searching for pair: $pair" + echo "----------------------------------------" + # Search the pairs table using the name index (index 2) + # echo "Command: cleos -u $API_ENDPOINT get table $CONTRACT $CONTRACT pairs --limit 1 --lower \"$pair\"" + cleos -u $API_ENDPOINT get table $CONTRACT $CONTRACT pairs --limit 1 --lower "$pair" + echo "----------------------------------------" + echo +done + +echo "Completed fetching data for all pairs." \ No newline at end of file diff --git a/scripts/dev/pairs.ts b/scripts/dev/pairs.ts new file mode 100644 index 0000000..4c045f2 --- /dev/null +++ b/scripts/dev/pairs.ts @@ -0,0 +1,4192 @@ +const pairs = { + "data": { + "table_rows": [ + { + "scope": "btccny" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtaud" + }, + { + "scope": "eosbtc" + }, + { + "scope": "btccny" + }, + { + "scope": "btccny" + }, + { + "scope": "btccny" + }, + { + "scope": "btccny" + }, + { + "scope": "btccny" + }, + { + "scope": "btccny" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "eosbtc" + }, + { + "scope": "eosbtc" + }, + { + "scope": "eosusdt" + }, + { + "scope": "eosusdt" + }, + { + "scope": "eosusdt" + }, + { + "scope": "eosbtc" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtngn" + }, + { + "scope": "btcusd" + }, + { + "scope": "btcusd" + }, + { + "scope": "btcusd" + }, + { + "scope": "btcusd" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtclp" + }, + { + "scope": "eosusdt" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "ethusd" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "ethusd" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "btccny" + }, + { + "scope": "btcusd" + }, + { + "scope": "btcusd" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtaud" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "btcusd" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "btcusd" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtclp" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "eosbtc" + }, + { + "scope": "btcusd" + }, + { + "scope": "usdteur" + }, + { + "scope": "eosbtc" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "iqeos" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "usdtidr" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "eosbtc" + }, + { + "scope": "eosusdt" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "eosbtc" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "iqeos" + }, + { + "scope": "usdtngn" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "btcusd" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "usdtcop" + }, + { + "scope": "eosusdt" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "usdteur" + }, + { + "scope": "btcusd" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "ethusd" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtidr" + }, + { + "scope": "ethusd" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtidr" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "eosbtc" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "eosbtc" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtaud" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtngn" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "btcusd" + }, + { + "scope": "usdtngn" + }, + { + "scope": "btcusd" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "btccny" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "eosusdt" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "eosbtc" + }, + { + "scope": "ethusd" + }, + { + "scope": "ethusd" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "eosbtc" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtars" + }, + { + "scope": "eosbtc" + }, + { + "scope": "eosusdt" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "eosusdt" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdtclp" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtclp" + }, + { + "scope": "eosusdt" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "usdtclp" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtclp" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "\"eosusdt\"" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtsol" + }, + { + "scope": "eosbtc" + }, + { + "scope": "usdtidr" + }, + { + "scope": "\"eosusdt\"" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtthb" + }, + { + "scope": "\"ethusd\"" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtidr" + }, + { + "scope": "eosusdt" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "eosvigor" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "usdttwd" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "ethusd" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "ethusd" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtidr" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtyen" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "usdtcop" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtsol" + }, + { + "scope": "eosusdt" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtsol" + }, + { + "scope": "\"ethusd\"" + }, + { + "scope": "eosusdt" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "eosusdt" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtngn" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtclp" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtngn" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "\"eosbtc\"" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "ethusd" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtidr" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtsol" + }, + { + "scope": "ethusd" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtthb" + }, + { + "scope": "ethusd" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "ethusd" + }, + { + "scope": "\"eosusdt\"" + }, + { + "scope": "eosusdt" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtthb" + }, + { + "scope": "btccny" + }, + { + "scope": "btccny" + }, + { + "scope": "btccny" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtthb" + }, + { + "scope": "btccny" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdtthb" + }, + { + "scope": "btcusd" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtthb" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "btcusd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "usdtugx" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtthb" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtthb" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "usdtkes" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "usdtsol" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtars" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtcad" + }, + { + "scope": "\"eosbtc\"" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtars" + }, + { + "scope": "\"eosusdt\"" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdtars" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "usdtars" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtaud" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "btcusd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "eosbtc" + }, + { + "scope": "eosbtc" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "btccny" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "eosusdt" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "usdtcad" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "usdtkes" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtsol" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "usdtthb" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "usdtaud" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "eosusdt" + }, + { + "scope": "\"ethusd\"" + }, + { + "scope": "usdtaud" + }, + { + "scope": "\"ethusd\"" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtaud" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "\"btcusd\"" + }, + { + "scope": "usdtclp" + }, + { + "scope": "\"eosbtc\"" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtidr" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "usdtugx" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "usdtcop" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "btcusd" + }, + { + "scope": "eosbtc" + }, + { + "scope": "usdtaud" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "eosbtc" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdtngn" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "usdtcad" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "eosusdt" + }, + { + "scope": "usdtugx" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "usdtars" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtaud" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtngn" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "usdtclp" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtclp" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtidr" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "usdtclp" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdtclp" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtcad" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdttwd" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "usdtidr" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtidr" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "usdtidr" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "usdtidr" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "usdtidr" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "usdtkes" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "\"eosbtc\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtngn" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtngn" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtngn" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtthb" + }, + { + "scope": "ethusd" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtsol" + }, + { + "scope": "\"btcusd\"" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "\"eosusdt\"" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtthb" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "ethusd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "usdttwd" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "eosusdt" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "\"usdtcny\"" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtyen" + }, + { + "scope": "ethusd" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "\"usdteur\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "usdtaud" + }, + { + "scope": "eosbtc" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "eosbtc" + }, + { + "scope": "eosbtc" + }, + { + "scope": "\"btcusd\"" + }, + { + "scope": "usdtaud" + }, + { + "scope": "btcusd" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "btcusd" + }, + { + "scope": "eosusdt" + }, + { + "scope": "eosusdt" + }, + { + "scope": "eosusdt" + }, + { + "scope": "eosbtc" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "usdtngn" + }, + { + "scope": "eosusdt" + }, + { + "scope": "eosusdt" + }, + { + "scope": "eosusdt" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "eosusdt" + }, + { + "scope": "eosusdt" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "ethusd" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "usdtars" + }, + { + "scope": "ethusd" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "ethusd" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "ethusd" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "\"usdtugx\"" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtcad" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtclp" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdteur" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "usdtidr" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "usdtkes" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "usdtmxn" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtthb" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "\"usdtsol\"" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtsol" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtugx" + }, + { + "scope": "\"eosusdt\"" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtugx" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "usdtugx" + }, + { + "scope": "\"usdtcrc\"" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "\"usdtars\"" + }, + { + "scope": "\"usdtaud\"" + }, + { + "scope": "\"usdtcad\"" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "\"usdtngn\"" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "usdtthb" + }, + { + "scope": "\"usdtmyr\"" + }, + { + "scope": "usdtngn" + }, + { + "scope": "btcusd" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "btcusd" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "\"usdtmxn\"" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "\"usdtyen\"" + }, + { + "scope": "eosbtc" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "\"usdtvnd\"" + }, + { + "scope": "ethusd" + }, + { + "scope": "usdtclp" + }, + { + "scope": "ethusd" + }, + { + "scope": "ethusd" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "btcusd" + }, + { + "scope": "btcusd" + }, + { + "scope": "usdtgbr" + }, + { + "scope": "eosbtc" + }, + { + "scope": "eosusdt" + }, + { + "scope": "ethusd" + }, + { + "scope": "ethusd" + }, + { + "scope": "ethusd" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtaud" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtmyr" + }, + { + "scope": "usdtvnd" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtngn" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdtcrc" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdteur" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "usdtkes" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "usdtcad" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "\"usdttwd\"" + }, + { + "scope": "usdtthb" + }, + { + "scope": "usdtcad" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtugx" + }, + { + "scope": "\"usdtcop\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "usdtcop" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "\"usdtkes\"" + }, + { + "scope": "\"usdtkrw\"" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "usdtkrw" + }, + { + "scope": "\"usdtthb\"" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdttwd" + }, + { + "scope": "usdtugx" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "usdtyen" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "\"usdtclp\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "\"usdtgbr\"" + }, + { + "scope": "usdtyen" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "\"usdtidr\"" + }, + { + "scope": "usdtidr" + }, + { + "scope": "usdtsol" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtars" + }, + { + "scope": "usdtclp" + }, + { + "scope": "usdtugx" + } + ] + } + } + +function main() { + const uniquePairs = [...new Set(pairs.data.table_rows.map(row => row.scope))] + console.log(uniquePairs) +} + +main() \ No newline at end of file diff --git a/scripts/dev/register-pairs.sh b/scripts/dev/register-pairs.sh new file mode 100644 index 0000000..89be4ca --- /dev/null +++ b/scripts/dev/register-pairs.sh @@ -0,0 +1,329 @@ +#!/bin/bash + +# Script to register pairs for DelphiOracle using cleos + +# Configuration - modify these values as needed +ACCOUNT="blockmatic" # Your account that will register the pairs +CONTRACT="delphioracle" # The DelphiOracle contract account +PERMISSION="active" # Permission to use for the transactions +API_ENDPOINT="https://api.np.animus.is" # API endpoint +DELAY_SECONDS=2 # Delay between API calls to avoid rate limits + +# Function to register a pair +register_pair() { + local pair=$1 + # Remove quotes if they exist + pair=$(echo $pair | tr -d '"') + + echo "Registering pair: $pair" + + # Set default values + local base_precision=4 + local quote_precision=2 + local base_contract="eosio.token" + local base_type=0 + local quote_type=1 + local quote_contract="" + + # Set values based on the pair + case "$pair" in + "usdtars") + base_symbol="USDT" + quote_symbol="ARS" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtcrc") + base_symbol="USDT" + quote_symbol="CRC" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtmxn") + base_symbol="USDT" + quote_symbol="MXN" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdteur") + base_symbol="USDT" + quote_symbol="EUR" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtaud") + base_symbol="USDT" + quote_symbol="AUD" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtcad") + base_symbol="USDT" + quote_symbol="CAD" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtcop") + base_symbol="USDT" + quote_symbol="COP" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtgbp") + base_symbol="USDT" + quote_symbol="GBP" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtkrw") + base_symbol="USDT" + quote_symbol="KRW" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtjpy") + base_symbol="USDT" + quote_symbol="JPY" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtvnd") + base_symbol="USDT" + quote_symbol="VND" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdttwd") + base_symbol="USDT" + quote_symbol="TWD" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtthb") + base_symbol="USDT" + quote_symbol="THB" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtsol") + base_symbol="USDT" + quote_symbol="SOL" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtclp") + base_symbol="USDT" + quote_symbol="CLP" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtcny") + base_symbol="USDT" + quote_symbol="CNY" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtidr") + base_symbol="USDT" + quote_symbol="IDR" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtmyr") + base_symbol="USDT" + quote_symbol="MYR" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtngn") + base_symbol="USDT" + quote_symbol="NGN" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtugx") + base_symbol="USDT" + quote_symbol="UGX" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "usdtkes") + base_symbol="USDT" + quote_symbol="KES" + base_precision=4 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "eosusdt") + base_symbol="EOS" + quote_symbol="USDT" + base_precision=4 + quote_precision=4 + base_type=4 + quote_type=4 + quote_contract="" + ;; + "ethusd") + base_symbol="PETH" + quote_symbol="USD" + base_precision=9 + quote_precision=2 + base_type=4 + base_contract="" + quote_contract="" + ;; + "btcusd") + base_symbol="BTC" + quote_symbol="USD" + base_precision=8 + quote_precision=2 + base_type=2 + base_contract="" + quote_contract="" + ;; + "eosbtc") + base_symbol="EOS" + quote_symbol="BTC" + base_precision=4 + quote_precision=8 + base_type=4 + quote_type=2 + base_contract="" + quote_contract="" + ;; + *) + echo "Unknown pair: $pair, using defaults" + base_symbol="UNKNOWN" + quote_symbol="UNKNOWN" + ;; + esac + + # Create the JSON payload + json_data="{ + \"proposer\": \"$ACCOUNT\", + \"pair\": { + \"name\": \"$pair\", + \"base_symbol\": { + \"sym\": \"${base_precision},${base_symbol}\" + }, + \"quote_symbol\": { + \"sym\": \"${quote_precision},${quote_symbol}\" + }, + \"base_type\": $base_type, + \"quote_type\": $quote_type, + \"base_contract\": \"$base_contract\", + \"quote_contract\": \"$quote_contract\", + \"quoted_precision\": $base_precision + } + }" + + echo "Sending transaction with payload:" + echo "$json_data" + + # Execute the cleos command and capture result + result=$(cleos -u $API_ENDPOINT push action $CONTRACT newbounty "$json_data" -p $ACCOUNT@$PERMISSION 2>&1) + status=$? + + # Check if the command was successful + if [ $status -eq 0 ]; then + echo "✅ Successfully registered pair: $pair" + else + echo "❌ Failed to register pair: $pair" + echo "Error: $result" + fi + + # Add a delay to avoid rate limits + echo "Waiting ${DELAY_SECONDS} seconds before next transaction..." + sleep $DELAY_SECONDS +} + +# Main function +main() { + # Get pairs from get-pairs.sh + declare -a pairs=( + "usdtars" "usdtcrc" "usdtmxn" "usdteur" "usdtaud" "usdtcad" + "usdtcop" "usdtgbp" "usdtkrw" "usdtjpy" "usdtvnd" "usdttwd" + "usdtthb" "usdtsol" "usdtclp" "usdtcny" "usdtidr" "usdtmyr" + "usdtngn" "usdtugx" "usdtkes" "eosusdt" "ethusd" "btcusd" + "eosbtc" + ) + + echo "Starting pair registration process..." + echo "Found ${#pairs[@]} pairs to register" + + # Process pairs + for pair in "${pairs[@]}"; do + register_pair "$pair" + done + + echo "Completed pair registration process." + + # Verify registrations + echo "Verifying registered pairs..." + cleos -u $API_ENDPOINT get table $CONTRACT $CONTRACT pairs +} + +# Execute the main function +main \ No newline at end of file diff --git a/scripts/new_updater.js b/scripts/new_updater.js new file mode 100644 index 0000000..aca9be1 --- /dev/null +++ b/scripts/new_updater.js @@ -0,0 +1,75 @@ +import { Session } from '@wharfkit/session'; +import { WalletPluginPrivateKey } from '@wharfkit/wallet-plugin-privatekey'; +import { Contract } from '@wharfkit/contract'; +import { APIClient, Name } from '@wharfkit/antelope'; +import fetch from 'node-fetch'; +import dotenv from 'dotenv'; + +dotenv.config(); + +const { + FREQ, + ORACLE, + CONTRACT, + KEY, + CHAIN, + ENDPOINT +} = process.env; + +const client = new APIClient({ url: ENDPOINT }); + +const walletPlugin = new WalletPluginPrivateKey(KEY); + +const session = new Session({ + actor: ORACLE, + permission: 'active', + chain: { + id: CHAIN, + url: ENDPOINT + }, + walletPlugin +}); + +async function fetchPrices() { + try { + const response = await fetch('https://min-api.cryptocompare.com/data/price?fsym=EOS&tsyms=USD'); + const data = await response.json(); + return data; + } catch (error) { + console.error('Error fetching price data:', error); + return null; + } +} + +async function pushPrice() { + const prices = await fetchPrices(); + if (!prices) return; + + const quotes = [ + { + value: Math.round(prices.USD * 10000), + pair: 'eosusd' + } + ]; + + try { + const contract = await Contract.from({ + account: Name.from(CONTRACT), + client + }); + + const action = contract.action('write', { + owner: Name.from(ORACLE), + quotes + }, { + authorization: [session.permissionLevel] + }); + + const result = await session.transact({ action }); + console.log('Transaction successful:', result.response.transaction_id); + } catch (error) { + console.error('Error pushing price data:', error); + } +} + +setInterval(pushPrice, parseInt(FREQ, 10)); diff --git a/scripts/package-lock.json b/scripts/package-lock.json index 3b63d66..21e36d1 100644 --- a/scripts/package-lock.json +++ b/scripts/package-lock.json @@ -1,659 +1,1028 @@ { "name": "delpi-oracle-utils", "version": "1.0.0", - "lockfileVersion": 1, + "lockfileVersion": 3, "requires": true, - "dependencies": { - "ajv": { + "packages": { + "": { + "name": "delpi-oracle-utils", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "@wharfkit/contract": "^1.2.1", + "@wharfkit/session": "^1.6.0", + "@wharfkit/wallet-plugin-privatekey": "^1.1.0", + "colors": "*", + "dotenv": "^6.2.0", + "eosjs": "^16.0.9", + "node-fetch": "^3.3.2", + "request": "*" + } + }, + "node_modules/@wharfkit/abicache": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@wharfkit/abicache/-/abicache-1.2.2.tgz", + "integrity": "sha512-yOsYz2qQpQy7Nb8XZj62pZqp8YnmWDqFlrenYksBb9jl+1aWIpFhWd+14VEez4tUAezRH4UWW+w1SX5vhmUY9A==", + "license": "BSD-3-Clause", + "dependencies": { + "@wharfkit/antelope": "^1.0.2", + "@wharfkit/signing-request": "^3.1.0", + "pako": "^2.0.4", + "tslib": "^2.1.0" + } + }, + "node_modules/@wharfkit/antelope": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/@wharfkit/antelope/-/antelope-1.0.13.tgz", + "integrity": "sha512-f4O5O8+6Bd5BHpMUHTmlWQmlhX5xYb4AfzT2NJweyqIPqQOstm+aInF42AtUhSALDa8fvoY80YZoqwM0L8TUyw==", + "license": "BSD-3-Clause-No-Military-License", + "dependencies": { + "bn.js": "^4.11.9", + "brorand": "^1.1.0", + "elliptic": "^6.5.4", + "hash.js": "^1.0.0", + "pako": "^2.1.0", + "tslib": "^2.0.3" + } + }, + "node_modules/@wharfkit/common": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@wharfkit/common/-/common-1.4.2.tgz", + "integrity": "sha512-ku3ErhtYcBsxAg/px00q8OoCwS7Z2BVFfp+eazPdQk3hpdEhuyAkojq5TBXdWUYocthI+cJ1EQH87y+Di1JI3w==", + "license": "BSD-3-Clause", + "dependencies": { + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@wharfkit/antelope": "^1.0.0" + } + }, + "node_modules/@wharfkit/contract": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@wharfkit/contract/-/contract-1.2.1.tgz", + "integrity": "sha512-3UhCtDYCyapfM2nRTrslcbvko864d4MOpxRAz7TR/ZUbRAgZsxhYLFLEv1v23/SU+vsFzAHNBmvzkLEG0OLaHQ==", + "license": "BSD-3-Clause", + "dependencies": { + "@wharfkit/abicache": "^1.2.0", + "@wharfkit/antelope": "^1.0.4", + "@wharfkit/signing-request": "^3.1.0", + "tslib": "^2.1.0" + } + }, + "node_modules/@wharfkit/session": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@wharfkit/session/-/session-1.6.0.tgz", + "integrity": "sha512-yrCDcW42Dqd387usVHa3qjnttc65OzHK3REKovzo6wLpQsPn709xzx4J6B9e9Xjb0WC/GQLghtr9EX+T+rRH6w==", + "license": "BSD-3-Clause", + "dependencies": { + "@wharfkit/abicache": "^1.2.1", + "@wharfkit/antelope": "^1.0.11", + "@wharfkit/common": "^1.2.0", + "@wharfkit/signing-request": "^3.1.0", + "pako": "^2.0.4", + "tslib": "^2.1.0" + } + }, + "node_modules/@wharfkit/signing-request": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@wharfkit/signing-request/-/signing-request-3.2.0.tgz", + "integrity": "sha512-rIMzqwAKA5vb09+1BI+9fUXbj73JIkYcD1XT/Tom+k/+bqi51JcmC0trjCOjTUOK9UYDabpxYFixrf1ZvQymKw==", + "license": "MIT", + "dependencies": { + "@wharfkit/antelope": "^1.0.7", + "tslib": "^2.0.3" + } + }, + "node_modules/@wharfkit/wallet-plugin-privatekey": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@wharfkit/wallet-plugin-privatekey/-/wallet-plugin-privatekey-1.1.0.tgz", + "integrity": "sha512-45LPj7AOVDm4RugDEhy0fnQX/BcMffeJPjGUCUrLazJ2S0Sti8nNk4nqiJqyme84c/0gq7d65vvwlmVfGtPVEg==", + "license": "BSD-3-Clause", + "dependencies": { + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@wharfkit/session": "^1.1.0" + } + }, + "node_modules/ajv": { "version": "6.10.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", - "requires": { - "fast-deep-equal": "2.0.1", - "fast-json-stable-stringify": "2.0.0", - "json-schema-traverse": "0.4.1", - "uri-js": "4.2.2" + "dependencies": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" } }, - "asn1": { + "node_modules/asn1": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", - "requires": { - "safer-buffer": "2.1.2" + "dependencies": { + "safer-buffer": "~2.1.0" } }, - "assert-plus": { + "node_modules/assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "engines": { + "node": ">=0.8" + } }, - "asynckit": { + "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, - "aws-sign2": { + "node_modules/aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "engines": { + "node": "*" + } }, - "aws4": { + "node_modules/aws4": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" }, - "babel-runtime": { + "node_modules/babel-runtime": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "requires": { - "core-js": "2.5.7", - "regenerator-runtime": "0.11.1" + "dependencies": { + "core-js": "^2.4.0", + "regenerator-runtime": "^0.11.0" } }, - "base-x": { + "node_modules/base-x": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.4.tgz", "integrity": "sha512-UYOadoSIkEI/VrRGSG6qp93rp2WdokiAiNYDfGW5qURAY8GiAQkvMbwNNSDYiVJopqv4gCna7xqf4rrNGp+5AA==", - "requires": { - "safe-buffer": "5.1.2" + "dependencies": { + "safe-buffer": "^5.0.1" } }, - "bcrypt-pbkdf": { + "node_modules/bcrypt-pbkdf": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "requires": { - "tweetnacl": "0.14.5" + "dependencies": { + "tweetnacl": "^0.14.3" } }, - "bigi": { + "node_modules/bigi": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/bigi/-/bigi-1.4.2.tgz", "integrity": "sha1-nGZalfiLiwj8Bc/XMfVhhZ1yWCU=" }, - "binaryen": { + "node_modules/binaryen": { "version": "37.0.0", "resolved": "https://registry.npmjs.org/binaryen/-/binaryen-37.0.0.tgz", "integrity": "sha512-ACBhSXtQvZvJZ8LNM5R/8HTk57Nr4J+HIrGfIfbIM9OpyaMePsXMgzVt+cMcCgX+sm4bmq5ed0kGgxd9RZ3Kkw==" }, - "bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" + "node_modules/bn.js": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", + "license": "MIT" + }, + "node_modules/brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==", + "license": "MIT" }, - "browserify-aes": { + "node_modules/browserify-aes": { "version": "1.2.0", "resolved": "http://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "requires": { - "buffer-xor": "1.0.3", - "cipher-base": "1.0.4", - "create-hash": "1.2.0", - "evp_bytestokey": "1.0.3", - "inherits": "2.0.3", - "safe-buffer": "5.1.2" + "dependencies": { + "buffer-xor": "^1.0.3", + "cipher-base": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.3", + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" } }, - "bs58": { + "node_modules/bs58": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", - "requires": { - "base-x": "3.0.4" + "dependencies": { + "base-x": "^3.0.2" } }, - "buffer-xor": { + "node_modules/buffer-xor": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=" }, - "bytebuffer": { + "node_modules/bytebuffer": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/bytebuffer/-/bytebuffer-5.0.1.tgz", "integrity": "sha1-WC7qSxqHO20CCkjVjfhfC7ps/d0=", - "requires": { - "long": "3.2.0" + "dependencies": { + "long": "~3" + }, + "engines": { + "node": ">=0.8" } }, - "camel-case": { + "node_modules/camel-case": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-3.0.0.tgz", "integrity": "sha1-yjw2iKTpzzpM2nd9xNy8cTJJz3M=", - "requires": { - "no-case": "2.3.2", - "upper-case": "1.1.3" + "dependencies": { + "no-case": "^2.2.0", + "upper-case": "^1.1.1" } }, - "caseless": { + "node_modules/caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" }, - "cipher-base": { + "node_modules/cipher-base": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", - "requires": { - "inherits": "2.0.3", - "safe-buffer": "5.1.2" + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" } }, - "colors": { + "node_modules/colors": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/colors/-/colors-1.3.3.tgz", - "integrity": "sha512-mmGt/1pZqYRjMxB1axhTo16/snVZ5krrKkcmMeVKxzECMMXoCgnvTPp10QgHfcbQZw8Dq2jMNG6je4JlWU0gWg==" + "integrity": "sha512-mmGt/1pZqYRjMxB1axhTo16/snVZ5krrKkcmMeVKxzECMMXoCgnvTPp10QgHfcbQZw8Dq2jMNG6je4JlWU0gWg==", + "engines": { + "node": ">=0.1.90" + } }, - "combined-stream": { + "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "1.0.0" + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" } }, - "core-js": { + "node_modules/core-js": { "version": "2.5.7", "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.7.tgz", - "integrity": "sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==" + "integrity": "sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==", + "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js." }, - "core-util-is": { + "node_modules/core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" }, - "create-hash": { + "node_modules/create-hash": { "version": "1.2.0", "resolved": "http://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "requires": { - "cipher-base": "1.0.4", - "inherits": "2.0.3", - "md5.js": "1.3.5", - "ripemd160": "2.0.2", - "sha.js": "2.4.11" + "dependencies": { + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "md5.js": "^1.3.4", + "ripemd160": "^2.0.1", + "sha.js": "^2.4.0" } }, - "create-hmac": { + "node_modules/create-hmac": { "version": "1.1.7", "resolved": "http://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "requires": { - "cipher-base": "1.0.4", - "create-hash": "1.2.0", - "inherits": "2.0.3", - "ripemd160": "2.0.2", - "safe-buffer": "5.1.2", - "sha.js": "2.4.11" + "dependencies": { + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" } }, - "dashdash": { + "node_modules/dashdash": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "requires": { - "assert-plus": "1.0.0" + "dependencies": { + "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" } }, - "delayed-stream": { + "node_modules/data-uri-to-buffer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", + "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "engines": { + "node": ">=0.4.0" + } }, - "dotenv": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-6.0.0.tgz", - "integrity": "sha512-FlWbnhgjtwD+uNLUGHbMykMOYQaTivdHEmYwAKFjn6GKe/CqY0fNae93ZHTd20snh9ZLr8mTzIL9m0APQ1pjQg==" + "node_modules/dotenv": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-6.2.0.tgz", + "integrity": "sha512-HygQCKUBSFl8wKQZBSemMywRWcEDNidvNbjGVyZu3nbZ8qq9ubiPoGLMdRDpfSrpkkm9BXYFkpKxxFX38o/76w==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=6" + } }, - "ecc-jsbn": { + "node_modules/ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "requires": { - "jsbn": "0.1.1", - "safer-buffer": "2.1.2" + "dependencies": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" } }, - "ecurve": { + "node_modules/ecurve": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/ecurve/-/ecurve-1.0.6.tgz", "integrity": "sha512-/BzEjNfiSuB7jIWKcS/z8FK9jNjmEWvUV2YZ4RLSmcDtP7Lq0m6FvDuSnJpBlDpGRpfRQeTLGLBI8H+kEv0r+w==", - "requires": { - "bigi": "1.4.2", - "safe-buffer": "5.1.2" + "dependencies": { + "bigi": "^1.1.0", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/elliptic": { + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", + "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", + "license": "MIT", + "dependencies": { + "bn.js": "^4.11.9", + "brorand": "^1.1.0", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" } }, - "encoding": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", - "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", - "requires": { - "iconv-lite": "0.4.24" + "node_modules/encoding": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", + "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", + "license": "MIT", + "dependencies": { + "iconv-lite": "^0.6.2" } }, - "eosjs": { + "node_modules/eosjs": { "version": "16.0.9", "resolved": "https://registry.npmjs.org/eosjs/-/eosjs-16.0.9.tgz", "integrity": "sha512-aYgzbgH2RhnmYVzEmK4AD6UIboJI54PGYQUesv2i8rCqYhWij+xQx7PtALJ481cxZnQgmFn8s2KMkgG07P5/Ug==", - "requires": { + "dependencies": { "babel-runtime": "6.26.0", - "binaryen": "37.0.0", - "create-hash": "1.2.0", + "binaryen": "^37.0.0", + "create-hash": "^1.1.3", "eosjs-api": "7.0.4", "eosjs-ecc": "4.0.4", "fcbuffer": "2.2.2" } }, - "eosjs-api": { + "node_modules/eosjs-api": { "version": "7.0.4", "resolved": "https://registry.npmjs.org/eosjs-api/-/eosjs-api-7.0.4.tgz", "integrity": "sha512-oLbM39rcyWYkqu6nIEQ50I92yT2vvD7WZPZ3FujbydG2ssR5Re/uSvbkFfZTB02g3I4D+UDUA1jd65HlM7r3MQ==", - "requires": { - "camel-case": "3.0.0", - "isomorphic-fetch": "2.2.1" + "dependencies": { + "camel-case": "^3.0.0", + "isomorphic-fetch": "^2.2.1" } }, - "eosjs-ecc": { + "node_modules/eosjs-ecc": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-4.0.4.tgz", "integrity": "sha512-9wAYefts4TidHOu+eN9nAisZdWpUzlUimZrB63oP7+/s4xRNJEn2Vvep2ICRODpxpidbshM1L7WaSYW9oiV5gA==", - "requires": { - "bigi": "1.4.2", - "browserify-aes": "1.2.0", - "bs58": "4.0.1", - "bytebuffer": "5.0.1", - "create-hash": "1.2.0", - "create-hmac": "1.1.7", - "ecurve": "1.0.6", - "randombytes": "2.0.6" - } - }, - "evp_bytestokey": { + "dependencies": { + "bigi": "^1.4.2", + "browserify-aes": "^1.0.6", + "bs58": "^4.0.1", + "bytebuffer": "^5.0.1", + "create-hash": "^1.1.3", + "create-hmac": "^1.1.6", + "ecurve": "^1.0.5", + "randombytes": "^2.0.5" + } + }, + "node_modules/evp_bytestokey": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "requires": { - "md5.js": "1.3.5", - "safe-buffer": "5.1.2" + "dependencies": { + "md5.js": "^1.3.4", + "safe-buffer": "^5.1.1" } }, - "extend": { + "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, - "extsprintf": { + "node_modules/extsprintf": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", + "engines": [ + "node >=0.6.0" + ] }, - "fast-deep-equal": { + "node_modules/fast-deep-equal": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" }, - "fast-json-stable-stringify": { + "node_modules/fast-json-stable-stringify": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" }, - "fcbuffer": { + "node_modules/fcbuffer": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/fcbuffer/-/fcbuffer-2.2.2.tgz", "integrity": "sha512-4OhDYe3F3iToKkqao6aj72XcvEjCB4p06U8Wy30lYcLQTp2ispBf2cCyeymKPJQGnbG5wpBa2PraaWWJuZVnUg==", - "requires": { - "bn.js": "4.11.8", - "bytebuffer": "5.0.1", - "ieee-float": "0.6.0" + "dependencies": { + "bn.js": "^4.11.8", + "bytebuffer": "^5.0.1", + "ieee-float": "^0.6.0" + } + }, + "node_modules/fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "paypal", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "dependencies": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + }, + "engines": { + "node": "^12.20 || >= 14.13" } }, - "forever-agent": { + "node_modules/forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "engines": { + "node": "*" + } }, - "form-data": { + "node_modules/form-data": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "requires": { - "asynckit": "0.4.0", - "combined-stream": "1.0.8", - "mime-types": "2.1.24" + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" } }, - "getpass": { + "node_modules/formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "license": "MIT", + "dependencies": { + "fetch-blob": "^3.1.2" + }, + "engines": { + "node": ">=12.20.0" + } + }, + "node_modules/getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "requires": { - "assert-plus": "1.0.0" + "dependencies": { + "assert-plus": "^1.0.0" } }, - "har-schema": { + "node_modules/har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "engines": { + "node": ">=4" + } }, - "har-validator": { + "node_modules/har-validator": { "version": "5.1.3", "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", - "requires": { - "ajv": "6.10.0", - "har-schema": "2.0.0" + "deprecated": "this library is no longer supported", + "dependencies": { + "ajv": "^6.5.5", + "har-schema": "^2.0.0" + }, + "engines": { + "node": ">=6" } }, - "hash-base": { + "node_modules/hash-base": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", - "requires": { - "inherits": "2.0.3", - "safe-buffer": "5.1.2" + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/hash.js": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" + } + }, + "node_modules/hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", + "license": "MIT", + "dependencies": { + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" } }, - "http-signature": { + "node_modules/http-signature": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "requires": { - "assert-plus": "1.0.0", - "jsprim": "1.4.1", - "sshpk": "1.16.1" + "dependencies": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + }, + "engines": { + "node": ">=0.8", + "npm": ">=1.3.7" } }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "requires": { - "safer-buffer": "2.1.2" + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "ieee-float": { + "node_modules/ieee-float": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/ieee-float/-/ieee-float-0.6.0.tgz", - "integrity": "sha1-poqFa6HvUR5/oOfn4VXDpjZCpV0=" + "integrity": "sha1-poqFa6HvUR5/oOfn4VXDpjZCpV0=", + "engines": { + "node": ">= 0.10" + } }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" }, - "is-stream": { + "node_modules/is-stream": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } }, - "is-typedarray": { + "node_modules/is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" }, - "isomorphic-fetch": { + "node_modules/isomorphic-fetch": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", - "requires": { - "node-fetch": "1.7.3", - "whatwg-fetch": "3.0.0" + "dependencies": { + "node-fetch": "^1.0.1", + "whatwg-fetch": ">=0.10.0" + } + }, + "node_modules/isomorphic-fetch/node_modules/node-fetch": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz", + "integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==", + "license": "MIT", + "dependencies": { + "encoding": "^0.1.11", + "is-stream": "^1.0.1" } }, - "isstream": { + "node_modules/isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" }, - "jsbn": { + "node_modules/jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" }, - "json-schema": { + "node_modules/json-schema": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" }, - "json-schema-traverse": { + "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, - "json-stringify-safe": { + "node_modules/json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" }, - "jsprim": { + "node_modules/jsprim": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "requires": { + "engines": [ + "node >=0.6.0" + ], + "dependencies": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", "json-schema": "0.2.3", "verror": "1.10.0" } }, - "long": { + "node_modules/long": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/long/-/long-3.2.0.tgz", - "integrity": "sha1-2CG3E4yhy1gcFymQ7xTbIAtcR0s=" + "integrity": "sha1-2CG3E4yhy1gcFymQ7xTbIAtcR0s=", + "engines": { + "node": ">=0.6" + } }, - "lower-case": { + "node_modules/lower-case": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-1.1.4.tgz", "integrity": "sha1-miyr0bno4K6ZOkv31YdcOcQujqw=" }, - "md5.js": { + "node_modules/md5.js": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", - "requires": { - "hash-base": "3.0.4", - "inherits": "2.0.3", - "safe-buffer": "5.1.2" + "dependencies": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" } }, - "mime-db": { + "node_modules/mime-db": { "version": "1.40.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", - "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==" + "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==", + "engines": { + "node": ">= 0.6" + } }, - "mime-types": { + "node_modules/mime-types": { "version": "2.1.24", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", - "requires": { + "dependencies": { "mime-db": "1.40.0" + }, + "engines": { + "node": ">= 0.6" } }, - "no-case": { + "node_modules/minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", + "license": "ISC" + }, + "node_modules/minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==", + "license": "MIT" + }, + "node_modules/no-case": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/no-case/-/no-case-2.3.2.tgz", "integrity": "sha512-rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==", - "requires": { - "lower-case": "1.1.4" + "dependencies": { + "lower-case": "^1.1.1" } }, - "node-fetch": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz", - "integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==", - "requires": { - "encoding": "0.1.12", - "is-stream": "1.1.0" + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "deprecated": "Use your platform's native DOMException instead", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "engines": { + "node": ">=10.5.0" + } + }, + "node_modules/node-fetch": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", + "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", + "license": "MIT", + "dependencies": { + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" } }, - "oauth-sign": { + "node_modules/oauth-sign": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "engines": { + "node": "*" + } }, - "performance-now": { + "node_modules/pako": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz", + "integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==", + "license": "(MIT AND Zlib)" + }, + "node_modules/performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" }, - "psl": { + "node_modules/psl": { "version": "1.1.33", "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.33.tgz", "integrity": "sha512-LTDP2uSrsc7XCb5lO7A8BI1qYxRe/8EqlRvMeEl6rsnYAqDOl8xHR+8lSAIVfrNaSAlTPTNOCgNjWcoUL3AZsw==" }, - "punycode": { + "node_modules/punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "engines": { + "node": ">=6" + } }, - "qs": { + "node_modules/qs": { "version": "6.5.2", "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "engines": { + "node": ">=0.6" + } }, - "randombytes": { + "node_modules/randombytes": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.6.tgz", "integrity": "sha512-CIQ5OFxf4Jou6uOKe9t1AOgqpeU5fd70A8NPdHSGeYXqXsPe6peOwI0cUl88RWZ6sP1vPMV3avd/R6cZ5/sP1A==", - "requires": { - "safe-buffer": "5.1.2" + "dependencies": { + "safe-buffer": "^5.1.0" } }, - "regenerator-runtime": { + "node_modules/regenerator-runtime": { "version": "0.11.1", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==" }, - "request": { + "node_modules/request": { "version": "2.88.0", "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", - "requires": { - "aws-sign2": "0.7.0", - "aws4": "1.8.0", - "caseless": "0.12.0", - "combined-stream": "1.0.8", - "extend": "3.0.2", - "forever-agent": "0.6.1", - "form-data": "2.3.3", - "har-validator": "5.1.3", - "http-signature": "1.2.0", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.24", - "oauth-sign": "0.9.0", - "performance-now": "2.1.0", - "qs": "6.5.2", - "safe-buffer": "5.1.2", - "tough-cookie": "2.4.3", - "tunnel-agent": "0.6.0", - "uuid": "3.3.2" - } - }, - "ripemd160": { + "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", + "dependencies": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.0", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.4.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/ripemd160": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", - "requires": { - "hash-base": "3.0.4", - "inherits": "2.0.3" + "dependencies": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1" } }, - "safe-buffer": { + "node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, - "safer-buffer": { + "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, - "sha.js": { + "node_modules/sha.js": { "version": "2.4.11", "resolved": "http://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "requires": { - "inherits": "2.0.3", - "safe-buffer": "5.1.2" + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + }, + "bin": { + "sha.js": "bin.js" } }, - "sshpk": { + "node_modules/sshpk": { "version": "1.16.1", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", - "requires": { - "asn1": "0.2.4", - "assert-plus": "1.0.0", - "bcrypt-pbkdf": "1.0.2", - "dashdash": "1.14.1", - "ecc-jsbn": "0.1.2", - "getpass": "0.1.7", - "jsbn": "0.1.1", - "safer-buffer": "2.1.2", - "tweetnacl": "0.14.5" + "dependencies": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + }, + "bin": { + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" + }, + "engines": { + "node": ">=0.10.0" } }, - "tough-cookie": { + "node_modules/tough-cookie": { "version": "2.4.3", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", - "requires": { - "psl": "1.1.33", - "punycode": "1.4.1" - }, "dependencies": { - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" - } + "psl": "^1.1.24", + "punycode": "^1.4.1" + }, + "engines": { + "node": ">=0.8" } }, - "tunnel-agent": { + "node_modules/tough-cookie/node_modules/punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "requires": { - "safe-buffer": "5.1.2" + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" } }, - "tweetnacl": { + "node_modules/tweetnacl": { "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" }, - "upper-case": { + "node_modules/upper-case": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-1.1.3.tgz", "integrity": "sha1-9rRQHC7EzdJrp4vnIilh3ndiFZg=" }, - "uri-js": { + "node_modules/uri-js": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "requires": { - "punycode": "2.1.1" + "dependencies": { + "punycode": "^2.1.0" } }, - "uuid": { + "node_modules/uuid": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", - "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "bin": { + "uuid": "bin/uuid" + } }, - "verror": { + "node_modules/verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "requires": { - "assert-plus": "1.0.0", + "engines": [ + "node >=0.6.0" + ], + "dependencies": { + "assert-plus": "^1.0.0", "core-util-is": "1.0.2", - "extsprintf": "1.3.0" + "extsprintf": "^1.2.0" + } + }, + "node_modules/web-streams-polyfill": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", + "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", + "license": "MIT", + "engines": { + "node": ">= 8" } }, - "whatwg-fetch": { + "node_modules/whatwg-fetch": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz", "integrity": "sha512-9GSJUgz1D4MfyKU7KRqwOjXCXTqWdFNvEr7eUBYchQiVc744mqK/MzXPNR2WsPkmkOa4ywfg8C2n8h+13Bey1Q==" diff --git a/scripts/package.json b/scripts/package.json index 6b7255e..300347a 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -9,9 +9,13 @@ "author": "Guillaume Babin-Tremblay", "license": "ISC", "dependencies": { + "@wharfkit/contract": "^1.2.1", + "@wharfkit/session": "^1.6.0", + "@wharfkit/wallet-plugin-privatekey": "^1.1.0", + "colors": "*", + "dotenv": "^6.2.0", "eosjs": "^16.0.9", - "dotenv": "^6.0.0", - "request": "*", - "colors": "*" + "node-fetch": "^3.3.2", + "request": "*" } } diff --git a/src/delphioracle.cpp b/src/delphioracle.cpp index c46c257..066e0e6 100644 --- a/src/delphioracle.cpp +++ b/src/delphioracle.cpp @@ -13,7 +13,7 @@ */ -#include +#include //Write datapoint ACTION delphioracle::write(const name owner, const std::vector& quotes) {