Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-jentzsch committed Nov 12, 2020
2 parents ad1bd8e + 74c72db commit d4b79c5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions dotnet/Examples/ConnectToEthereum/ConnectToEthereum/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
16 changes: 8 additions & 8 deletions python/docs/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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.
"""

```
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions python/examples/connect_to_ethereum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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
Expand Down

0 comments on commit d4b79c5

Please sign in to comment.