Skip to content

Commit b04999e

Browse files
committed
cleaned repos
1 parent cc9b483 commit b04999e

File tree

10 files changed

+52
-0
lines changed

10 files changed

+52
-0
lines changed

04-my_token/.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.sol linguist-language=Solidity
2+
*.vy linguist-language=Python

04-my_token/.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
__pycache__
2+
.history
3+
.hypothesis/
4+
build/
5+
reports/

04-my_token/brownie-config.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
networks:
2+
default: local

04-my_token/scripts/bsc_setting.bash

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
brownie networks add "Binance Smart Chain" bsc_test_moralis host='https://speedy-nodes-nyc.moralis.io/f9c80ab8c7ec06447269db5c/bsc/testnet' name="Testnet (Moralis)" chainid=97 explorer='https://api-testnet.bscscan.com/api'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
brownie networks add Ethereum ropsten_test host='https://speedy-nodes-nyc.moralis.io/f9c80ab8c7ec06447269db5c/eth/ropsten' chainid=3 explorer='https://api-ropsten.exit
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
brownie networks add Polygon mumbai_moralis host='https://speedy-nodes-nyc.moralis.io/f9c80ab8c7ec06447269db5c/polygon/mumbai' name='Mumbai (Moralis)' chainid=80001 explorer='https://explorer-mumbai.maticvigil.com/'

05_chainlink_moralis/.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.sol linguist-language=Solidity
2+
*.vy linguist-language=Python

05_chainlink_moralis/.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
__pycache__
2+
.history
3+
.hypothesis/
4+
build/
5+
reports/
6+
.env
7+
/.env
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity ^0.6.6;
3+
import "alphachainio/[email protected]/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";
4+
5+
contract Price_ETH{
6+
7+
AggregatorV3Interface internal priceFeed;
8+
9+
constructor() public {
10+
priceFeed = AggregatorV3Interface(0x8A753747A1Fa494EC906cE90E9f37563A8AF630e);
11+
}
12+
13+
/**
14+
* Returns the latest price
15+
*/
16+
function getThePrice() public view returns (int) {
17+
(
18+
uint80 roundID,
19+
int price,
20+
uint startedAt,
21+
uint timeStamp,
22+
uint80 answeredInRound
23+
) = priceFeed.latestRoundData();
24+
return price;
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
brownie networks add Ethereum rinkeby_test host='https://speedy-nodes-nyc.moralis.io/f9c80ab8c7ec06447269db5c/eth/rinkeby' chainid=4 explorer='https://api-rinkeby.etherscan.io/api'

0 commit comments

Comments
 (0)