Skip to content

Use env var "BINANCE_API_URL" instead of harcoded url#718

Merged
trizin merged 4 commits intomainfrom
issue716-databinanceapi-is-down-update-api-endpoint
Oct 5, 2023
Merged

Use env var "BINANCE_API_URL" instead of harcoded url#718
trizin merged 4 commits intomainfrom
issue716-databinanceapi-is-down-update-api-endpoint

Conversation

@trizin
Copy link
Copy Markdown
Contributor

@trizin trizin commented Oct 5, 2023

Fixes #716

Changes proposed in this PR:

  • Use env var "BINANCE_API_URL" instead of harcoded url

@trizin trizin linked an issue Oct 5, 2023 that may be closed by this pull request
@trizin trizin changed the title Use api.binance instead of data.binance Use env var "BINANCE_API_URL" instead of harcoded url Oct 5, 2023
@qlty-cloud-legacy
Copy link
Copy Markdown

Code Climate has analyzed commit 9bf4e65 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (90% is the threshold).

This pull request will bring the total coverage in the repository to 93.7% (0.0% change).

View more on Code Climate.

@trizin trizin marked this pull request as ready for review October 5, 2023 13:11
@trizin trizin requested review from calina-c and trentmc October 5, 2023 13:11
@trizin trizin merged commit efe1892 into main Oct 5, 2023
@trizin trizin deleted the issue716-databinanceapi-is-down-update-api-endpoint branch October 5, 2023 14:04
calina-c pushed a commit that referenced this pull request Oct 5, 2023
* Use api.binance

* Update url

* Fix

* Assign env var
trizin added a commit that referenced this pull request Nov 2, 2023
* Initial commit - conftest working.

* Intermediary commit.

* Adds contract deployment.

* Remove more ocurrences in tests.

* Fix dftool challenge tests.

* More corrections.

* More fixes for pytest error collection.

* More test fixes.

* Fixes to ve tests.

* More fixes to test collection and add function for chain id to web3.

* Fix first df module test.

* More df module fixes.

* Fix dftool challenge tests.

* Fix oceanutil.

* Fix mine command.

* More test fixes.

* More dftool fixes.

* More corrections.

* More fixes.

* Fix time utils.

* More fixes.

* More checksums.

* More fixes.

* Apply isort and black.

* Adapt test flow.

* Adds built contracts from gitignore.

* Fix setup function for dftool test.

* Automit in setup.

* Remove goerly setup function.

* Unify account fixtures.

* First step of using contracts from the chain explicitly.

* More minor fixes.

* Intermediary commit.

* Adds more chain injection, remove chain parameter where range is present.

* Fixes to chain id injection.

* Remove veOCEAN deployment.

* Partially improve test_queries.

* Remove some unneeded tests.

* Revert some previous chain id changes.

* Use env var "BINANCE_API_URL" instead of harcoded url (#718)

* Use api.binance

* Update url

* Fix

* Assign env var

* Fix dispense passive test.

* A small test fix.

* Fix dispense tests.

* More removals of Brownie.

* More removal of brownie ocurrences.

* Fix infura connection logic.

* Vesting calc changes.

* Some fixes to df strategy commands.

* Remove todos with to_weis from test Simpletoken.

* Fixed new functions commands and tests.

* Isort, black and other cosmetic changes.

* Fix Simpletoken tests TODOs.

* More TODO removals.

* More TODO removals.

* Fix allocation sampling test.

* Small fix to ve delegation.

* Fix vesting schedule test.

* Fixes DFRewards test.

* Adapt test-dfsql flow.

* Fixes.

* Partially fix mypy.

* More linter fixes.g

* More mypy linter complaint fixes.

* More mypy fixes.

* More linter fixes.

* Adapt all other CI flows.g

* Finish iteration with linter errors.

* Add underscore instead of dash to sapphire rpc url.

* Delete stress test.

* Fix init_dev_wallets.

* Work on many random failures.

* Use ad-hoc accounts for many_random.

* Add Goerli RPC URL.

* Fixes to encode_input.

* Adds another encode_input fix.

* Fix queries tests except for delegation failure.

* Fix test allocation sampling, black, mypy.

* Fix a pylint complaint.

* Adapt waiting in test_queries.

* Fix many_random test.

* Replace with acc1.

* Add some minting.

* Revert "Replace with acc1."

This reverts commit c6cad4b.

* Temporarily skip test many random.

* Remove prev minting.

* Change multisig contract address being called.

* Remove some todos.

* Another removed todo.

* Fix cyclic import issue.

* Fix pylint complaints.

* Update .gitignore

* Remove build folder

* Update gitignore

* Add ocean-contracts as a dependency

* Update contract_util to use artifacts

* Fix undefined var

* Better error message

* Simpletoken -> OceanToken

* Fix contract name

* Correct fee distributor contract name

* Update contracts version

* Ditching VestingWalletV0

* Correct SideStaking -> Staking

* Revert

* Remove SideStaking

* Contracts version update

* Fix source

* Update vesting wallet contract

* Rename file

* Function for compiling

* Move vesting wallet and fix error msg

* Fix beneficiary

* Rename simple token

* Fix key error

* Add print

* Rename contract

* Add gnosis safe abi

* Add alternative path

* Ignore missing - artifacts

* Black

* Fix bug

* Remove unused vars

* Fix return type

* Unskip predictoor models test, it doesn't seem to have the sporadical failures.

---------

Co-authored-by: trizin <25263018+trizin@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

data.binance.api is down, update api endpoint

2 participants