From 74c72dbe4d332c975025d9eda856d6dac4893b5d Mon Sep 17 00:00:00 2001 From: Simon Jentzsch Date: Thu, 12 Nov 2020 19:56:21 +0100 Subject: [PATCH] remove kovan from examples --- .../ConnectToEthereum/Program.cs | 12 ++++++------ python/docs/documentation.md | 16 ++++++++-------- python/examples/connect_to_ethereum.py | 6 +++--- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/dotnet/Examples/ConnectToEthereum/ConnectToEthereum/Program.cs b/dotnet/Examples/ConnectToEthereum/ConnectToEthereum/Program.cs index 4622b2346..29ec694f6 100644 --- a/dotnet/Examples/ConnectToEthereum/ConnectToEthereum/Program.cs +++ b/dotnet/Examples/ConnectToEthereum/ConnectToEthereum/Program.cs @@ -16,12 +16,12 @@ static async Task Main() Console.Out.WriteLine($"Latest Block Number: {mainnetLatest}"); Console.Out.WriteLine($"Gas Price: {mainnetCurrentGasPrice} Wei"); - Console.Out.WriteLine("Ethereum Kovan Test Network"); - IN3 kovanClient = IN3.ForChain(Chain.Kovan); - BigInteger kovanLatest = await kovanClient.Eth1.BlockNumber(); - BigInteger kovanCurrentGasPrice = await kovanClient.Eth1.GetGasPrice(); - Console.Out.WriteLine($"Latest Block Number: {kovanLatest}"); - Console.Out.WriteLine($"Gas Price: {kovanCurrentGasPrice} Wei"); + Console.Out.WriteLine("Ethereum EWC Network"); + IN3 ewcClient = IN3.ForChain(Chain.Ewc); + BigInteger ewcLatest = await ewcClient.Eth1.BlockNumber(); + BigInteger ewcCurrentGasPrice = await ewcClient.Eth1.GetGasPrice(); + Console.Out.WriteLine($"Latest Block Number: {ewcLatest}"); + Console.Out.WriteLine($"Gas Price: {ewcCurrentGasPrice} Wei"); Console.Out.WriteLine("Ethereum Goerli Test Network"); IN3 goerliClient = IN3.ForChain(Chain.Goerli); diff --git a/python/docs/documentation.md b/python/docs/documentation.md index 7384d956c..cf3373a66 100644 --- a/python/docs/documentation.md +++ b/python/docs/documentation.md @@ -85,8 +85,8 @@ latest_block = client.eth.block_number() gas_price = client.eth.gas_price() print('Latest BN: {}\nGas Price: {} Wei'.format(latest_block, gas_price)) -print('\nEthereum Kovan Test Network') -client = in3.Client('kovan') +print('\nEthereum EWC Test Network') +client = in3.Client('ewc') latest_block = client.eth.block_number() gas_price = client.eth.gas_price() print('Latest BN: {}\nGas Price: {} Wei'.format(latest_block, gas_price)) @@ -103,7 +103,7 @@ Ethereum Main Network Latest BN: 9801135 Gas Price: 2000000000 Wei -Ethereum Kovan Test Network +Ethereum EWC Test Network Latest BN: 17713464 Gas Price: 6000000000 Wei @@ -236,15 +236,15 @@ address = client.ens_address(domain) owner = client.ens_owner(domain) _print() -# Instantiate In3 Client for Kovan -chain = 'kovan' +# Instantiate In3 Client for EWC +chain = 'ewc' client = in3.Client(chain, cache_enabled=True) try: address = client.ens_address(domain) owner = client.ens_owner(domain) _print() except in3.ClientException: - print('\nENS is not available on Kovan.') + print('\nENS is not available on EWC.') # Produces @@ -254,7 +254,7 @@ Ethereum Name Service Address for depraz.eth @ mainnet: 0x0b56ae81586d2728ceaf7c00a6020c5d63f02308 Owner for depraz.eth @ mainnet: 0x6fa33809667a99a805b610c49ee2042863b1bb83 -ENS is not available on Kovan. +ENS is not available on EWC. """ ``` @@ -441,7 +441,7 @@ Once with the latest list at hand, the client can request any other on-chain inf **Arguments**: -- `chain` _str_ - Ethereum chain to connect to. Defaults to mainnet. Options: 'mainnet', 'kovan', 'goerli', 'ewc'. +- `chain` _str_ - Ethereum chain to connect to. Defaults to mainnet. Options: 'mainnet', 'goerli', 'ewc'. - `in3_config` _ClientConfig or str_ - (optional) Configuration for the client. If not provided, default is loaded. - `cache_enabled` _bool_ - False will disable local storage caching. - `transport` _function_ - Transport function for custom request routing. Defaults to https. diff --git a/python/examples/connect_to_ethereum.py b/python/examples/connect_to_ethereum.py index b6f77094b..26d3e12f4 100644 --- a/python/examples/connect_to_ethereum.py +++ b/python/examples/connect_to_ethereum.py @@ -10,8 +10,8 @@ gas_price = client.eth.gas_price() print('Latest BN: {}\nGas Price: {} Wei'.format(latest_block, gas_price)) -print('\nEthereum Kovan Test Network') -client = in3.Client('kovan') +print('\nEthereum EWC Test Network') +client = in3.Client('ewc') latest_block = client.eth.block_number() gas_price = client.eth.gas_price() print('Latest BN: {}\nGas Price: {} Wei'.format(latest_block, gas_price)) @@ -28,7 +28,7 @@ Latest BN: 9801135 Gas Price: 2000000000 Wei -Ethereum Kovan Test Network +Ethereum EWC Test Network Latest BN: 17713464 Gas Price: 6000000000 Wei