Git Product home page Git Product logo

arbitrage-bot-test-env's Introduction

arbitrage-bot-test-env

Guide for set test environment:

Provision accounts

cd /workspace
make sendAsset
make mint-ist

Deploy contracts

cd /workspace/scripts
node installBundles.js
node deployContracts.js

Work in progress

Commands.js

  • Replace commands_old.js with commands.js

updateFakeAtomPrice,js

  • The oracleAccept and oraclePushPrice methods are currently not working because I couldn't find out how to execute the agops command
  • Bellow there are the instructions to execute it on the docker terminal

oracle gov1:

agops oracle accept --offerId 1 --pair fakeATOM.USD > offer-1-w1.json

agoric wallet send --from agoric1mcm0ffsh0a20hlzgx5wylzw0sm85hxx05azsxx --offer offer-1-w1.json --keyring-backend=test

agops oracle pushPriceRound --price 10 --roundId 1 --oracleAdminAcceptOfferId 1 > price-offer-1-w1.json

agoric wallet send --from agoric1mcm0ffsh0a20hlzgx5wylzw0sm85hxx05azsxx --offer price-offer-1-w1.json --keyring-backend=test

oracle gov2:

agops oracle accept --offerId 1 --pair fakeATOM.USD > offer-1-w2.json

agoric wallet send --from agoric1aap7m84dt0rwhhfw49d4kv2gqetzl56vn8aaxj --offer offer-1-w2.json --keyring-backend=test

agops oracle pushPriceRound --price 10 --roundId 1 --oracleAdminAcceptOfferId 1 > price-offer-1-w2.json

agoric wallet send --from agoric1aap7m84dt0rwhhfw49d4kv2gqetzl56vn8aaxj --offer price-offer-1-w2.json --keyring-backend=test

arbitrage-bot-test-env's People

Contributors

jorge-lopes avatar anilhelvaci avatar

Watchers

 avatar

arbitrage-bot-test-env's Issues

Scripts to be developed

Scripts:

  • deploy contracts
  • update fakeAtom price
  • deposit user with fakeAtom
  • update manualTimer time
  • make deposit on auctioneer
  • make bid on auctioneer

Can't add a brand to auctioneer because of no PA

Goal: identify how to access the priceAuthorityAdmin

Strategy 1:

Strategy 2:

Issue

The priceFeedKit promise is never resolved

`manualTimer` not working as is

## Problem

  • The current version of the manualTimerFaucet.js uses a faulty continuing invitation pattern.
  • It uses tickN which causes a big delay in block times

Solution

  • Expose the advanceTime method from public facet
  • Start using advanceTo instead of tickN

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.