From abe6e45673abfd77abdbf9880bdeba9abb74b1d9 Mon Sep 17 00:00:00 2001 From: luisgc93 Date: Thu, 25 Nov 2021 18:16:43 -0500 Subject: [PATCH 1/3] remove duplicated requirement --- requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ab7a263..df51ac0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ eth-brownie python-dotenv -eth-brownie From 651a36ef2f2e861bedcb18d2abafd6c853ef7cf3 Mon Sep 17 00:00:00 2001 From: ernes <9695952+ernes@users.noreply.github.com> Date: Mon, 29 Nov 2021 13:28:21 +0100 Subject: [PATCH 2/3] Fix typo --- scripts/helpful_scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helpful_scripts.py b/scripts/helpful_scripts.py index 2d76db3..b4ce9ef 100644 --- a/scripts/helpful_scripts.py +++ b/scripts/helpful_scripts.py @@ -40,7 +40,7 @@ def get_account(index=None, id=None): def get_contract(contract_name): """If you want to use this function, go to the brownie config and add a new entry for - the contract that you want to be able to 'get'. Then add an entry in the in the variable 'contract_to_mock'. + the contract that you want to be able to 'get'. Then add an entry in the variable 'contract_to_mock'. You'll see examples like the 'link_token'. This script will then either: - Get a address from the config From 2444b178ac14eed2b2cf58ba785ee03587472619 Mon Sep 17 00:00:00 2001 From: noahliechti Date: Mon, 27 Dec 2021 20:56:20 +0100 Subject: [PATCH 3/3] fix typos in readme and helpful-scripts.py --- README.md | 10 +++++----- scripts/helpful_scripts.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b53ebaf..229379a 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/smartcontractkit/chainlink-mix.svg)](http://isitmaintained.com/project/smartcontractkit/chainlink-mix "Average time to resolve an issue") [![Percentage of issues still open](http://isitmaintained.com/badge/open/smartcontractkit/chainlink-mix.svg)](http://isitmaintained.com/project/smartcontractkit/chainlink-mix "Percentage of issues still open") -This is a repo to work with and use Chainlink smart contracts in a python environment. If you're brand new to Chainlink, check out the beginner walkthroughs in remix to [learn the basics.](https://docs.chain.link/docs/beginners-tutorial) +This is a repo to work with and use Chainlink smart contracts in a python environment. If you're brand new to Chainlink, check out the beginner walk-through in remix to [learn the basics.](https://docs.chain.link/docs/beginners-tutorial) You can also check out the more advanced Chainlink tutorials there as well. @@ -60,7 +60,7 @@ Or, if that doesn't work, via pip pip install eth-brownie ``` -2. Download the mix and install dependancies. +2. Download the mix and install dependencies. ```bash brownie bake chainlink-mix @@ -93,7 +93,7 @@ export PRIVATE_KEY= ``` AND THEN RUN `source .env` TO ACTIVATE THE ENV VARIABLES -(You'll need to do this everytime you open a new terminal, or [learn how to set them easier](https://www.twilio.com/blog/2017/01/how-to-set-environment-variables.html)) +(You'll need to do this every time you open a new terminal, or [learn how to set them easier](https://www.twilio.com/blog/2017/01/how-to-set-environment-variables.html)) ![WARNING](https://via.placeholder.com/15/f03c15/000000?text=+) **WARNING** ![WARNING](https://via.placeholder.com/15/f03c15/000000?text=+) @@ -172,7 +172,7 @@ brownie run scripts/chainlink_api_scripts/03_read_data.py --network kovan ### Chainlink Keeper Deployment -This is just to show you how to deploy the Keepers, you can learn more about registering them in the [Chainlink Keeper](https://docs.chain.link/docs/chainlink-keepers/compatible-contracts/) documenation. +This is just to show you how to deploy the Keepers, you can learn more about registering them in the [Chainlink Keeper](https://docs.chain.link/docs/chainlink-keepers/compatible-contracts/) documentation. ``` brownie run scripts/keeper_scripts/01_deploy_keeper_counter.py --network kovan brownie run scripts/keeper_scripts/02_check_upkeep.py --network kovan @@ -193,7 +193,7 @@ For more information on effective testing with Chainlink, check out [Testing Sma Tests are really robust here! They work for local development and testnets. There are a few key differences between the testnets and the local networks. We utilize mocks so we can work with fake oracles on our testnets. -There is a `test_unnecessary` folder, which is a good exersize for learning some of the nitty-gritty of smart contract development. It's overkill, so pytest will skip them intentionally. It also has a `test_samples` folder, which shows an example Chainlink API call transaction receipt. +There is a `test_unnecessary` folder, which is a good exercise for learning some of the nitty-gritty of smart contract development. It's overkill, so pytest will skip them intentionally. It also has a `test_samples` folder, which shows an example Chainlink API call transaction receipt. ### To test development / local diff --git a/scripts/helpful_scripts.py b/scripts/helpful_scripts.py index b4ce9ef..84ada03 100644 --- a/scripts/helpful_scripts.py +++ b/scripts/helpful_scripts.py @@ -47,12 +47,12 @@ def get_contract(contract_name): - Or deploy a mock to use for a network that doesn't have it Args: - contract_name (string): This is the name that is refered to in the + contract_name (string): This is the name that is referred to in the brownie config and 'contract_to_mock' variable. Returns: brownie.network.contract.ProjectContract: The most recently deployed - Contract of the type specificed by the dictonary. This could be either + Contract of the type specificed by the dictionary. This could be either a mock or the 'real' contract on a live network. """ contract_type = contract_to_mock[contract_name]