Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧪🌈 New highscore (in terms of game progress) #21

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ moralisApiSecret = xxxxxxx
frpcPath = F:\frpc\frpc.exe
chain = ganache
moralisSubdomain = xxxxxxx.usemoralis.com
abiPath = "F:\ethereum-boilerplate\Truffle\build\contracts\Contract.json"
abiPath = "F:\ethereum-boilerplate\Truffle\build\contracts\Contract.json"

ALCHEMY: https://eth-rinkeby.alchemyapi.io/v2/gQUHfEyfP_v73J37inUmWzPnYN0nOLr_
PRIVATE: a7a2f59191ce8477761f043f9da63a40ced24f803fd6a423930585e981ef5554
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,13 @@ yarn-error.log*
dappyaccount.json
dappykeys.json
userkeys.json
useraccount.json
useraccount.json
node_modules
.env
coverage
coverage.json
typechain

#Hardhat files
cache
artifacts
4 changes: 0 additions & 4 deletions CODING_STYLE.md

This file was deleted.

32 changes: 0 additions & 32 deletions CONTRIBUTING.md

This file was deleted.

3 changes: 0 additions & 3 deletions Containers/README.md

This file was deleted.

1 change: 0 additions & 1 deletion Containers/showm3-template
Submodule showm3-template deleted from b44284
9 changes: 0 additions & 9 deletions LICENSE.md

This file was deleted.

180 changes: 54 additions & 126 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,126 +1,54 @@
# `ethereum-boilerplate`

> React components and hooks for fast building dApps without running own backend

🚀DEMO: https://ethereum-boilerplate.github.io/ethereum-boilerplate

This boilerplate is built on [react-moralis](https://github.com/MoralisWeb3/react-moralis) and [Moralis](https://moralis.io?utm_source=github&utm_medium=readme&utm_campaign=ethereum-boilerplate). Also has its own context provider for quick access to `chainId` or `ethAddress`

There are many components in this boilerplate that do not require an active web3 provider, they use Moralis Web3 API. Moralis supports the most popular blockchains and their test networks. You can find a list of all available networks in [Moralis Supported Chains](https://docs.moralis.io/moralis-server/web3-sdk/intro#supported-chains)

Please check the [official documentation of Moralis](https://docs.moralis.io/#user) for all the functionalities of Moralis.

![Dapp](https://user-images.githubusercontent.com/78314301/140835102-0f3b2549-e199-47aa-bc60-f6b601bd79e9.gif)


# 🚀 Quick Start

📄 Clone or fork `ethereum-boilerplate`:
```sh
git clone https://github.com/ethereum-boilerplate/ethereum-boilerplate.git
```
💿 Install all dependencies:
```sh
cd ethereum-boilerplate
yarn install
```
✏ Rename `.env.example` to `.env` in the main folder and provide your `appId` and `serverUrl` from Moralis ([How to start Moralis Server](https://docs.moralis.io/moralis-server/getting-started/create-a-moralis-server))
Example:
```jsx
REACT_APP_MORALIS_APPLICATION_ID = xxxxxxxxxxxx
REACT_APP_MORALIS_SERVER_URL = https://xxxxxx.grandmoralis.com:2053/server
```
🚴‍♂️ Run your App:
```sh
yarn start
```
🌎 `.env.example`:
```
# Mandatory info for starting the app
REACT_APP_MORALIS_APPLICATION_ID = appId
REACT_APP_MORALIS_SERVER_URL = serverUrl

# Optional info for connecting your localChain and Moralis Database
moralisApiKey = xxxxx
moralisApiSecret = xxxxxxx
frpcPath = F:\frpc\frpc.exe
chain = ganache
moralisSubdomain = xxxxxxx.usemoralis.com
abiPath = "F:\ethereum-boilerplate\Truffle\build\contracts\Contract.json"
```

# 🧭 Table of contents

- [`ethereum-boilerplate`](#ethereum-boilerplate)
- [🚀 Quick Start](#-quick-start)
- [🧭 Table of contents](#-table-of-contents)
- [🏗 Ethereum Components](#-ethereum-components)
- - [`<Account />`](#account-)
- [`<AddressInput />`](#addressinput-)
- [`<Chains />`](#chains-)
- [`<CoinPrice />`](#coinprice-)
- [`<ERC20Balance />`](#erc20balance-)
- [`<ERC20Transfers />`](#erc20transfers-)
- [`<DEX />`](#dex-)
- [`<Wallet />`](#wallet-)
- [`<Blockie />`](#blockie-)
- [`<NativeBalance />`](#nativebalance-)
- [`/<NFTBalance />`](#nftbalance)
- [`<Contract />`](#contract-)
- [🧰 Ethereum Hooks](#-ethereum-hooks)
- [`useAPIContract()`](#useapicontract)
- [`useWeb3Contract()`](#useweb3contract)
- [`useERC20Balance()`](#useerc20balance)
- [`useERC20Transfers()`](#useerc20transfers)
- [`useNativeBalance()`](#usenativebalance)
- [`useNativeTransactions()`](#usenativetransactions)
- [`useNFTBalances()`](#usenftbalances)
- [`useNFTTransfers()`](#usenfttransfers)
- [`useIPFS()`](#useipfs)
- [`useChain()`](#usechain)
- [`useTokenPrice()`](#usetokenprice)
- [`DEX Hooks`](#dexhooks)
- [`useOneInchQuote()`](#useoneinchquote)
- [`useInchDex()`](#useinchdex)


# 🏗 Ethereum Components

🛠 The ready for use react-components are located in `src/components`. They are designed to be used anywhere in your dApp.

> ⚡ Note that many components may get params like `chain`, `address`, `size` and etc.


### `<Account />`

![Account](https://user-images.githubusercontent.com/78314301/141354253-4a040fbc-bf80-4665-af54-98b2f2d8ce7d.gif)

📒 `<Account />` : Easy web3 authentication via MetaMask.

```jsx
<Account />
```


### `<Address />`

![address](https://user-images.githubusercontent.com/78314301/138753150-aefb426c-9481-4f41-91a3-d4e4fd424b8f.gif)

📨 `<Address />` : Displays an Ethereum address with [Blockie](https://www.npmjs.com/package/react-blockies) avatar.

**Options**:
- copyable (optional): display icon for copying.
- avatar (optional): display blockie avatar.
- size (optional): text size.

```jsx
<Address />
<Address avatar />
<Address avatar copyable />
<Address avatar copyable size="4" />
```

# Contributing
## Bugs & Issues
Here's a list of known issues we've had or found.
* [#6: NPM Package Build not working](https://keybase.io/team/signalkinetics)
<h2 align="center">Game content</h2>

___

<p align="center">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA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PWriI+CXqpku4pvOczAfUqwVPh4Rq0e+ejjET5nLDynNPrT3E+L+jeoZMP4l4Hvrh6Sv8CyMk2bo9skwWQI5ck3tYJ1MwYdPFs1AxKrUJlmw2cjE2UjzwwwpCC3W2CJnWg2+sIbbCsNcL4StLrUOpQvAUryYdErCUBNZC06RcqVGv46FDu5LSuATcqekly+3Vq3xp+Dn762qwD2yTvog2jX+Ynh5MXvYjCA9CN496lW55kp2dW9Ql2iAfY5cCE0aB752fBSFyOmJhdddvB8KxVeh2M713XA+xyyjjiYHhq7rK0cYaENh6qD5Wu0UzebSQdnQfiehsCuo3E5fjpvPsrmDpAvQ70l/xCRg9or2pxv6gNuF4HM8cMGKXgcn6Fg+FZk++0YRgIDpf+HYxmx1/9WuW2DWmR6+lk49LvRCAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIYpr/AA7ZZsFkP4b1AAAAAElFTkSuQmCC" width="300" heigth="300">
</p>


<p align="center">
<a href="LICENSE">
<img alt="License" src="https://img.shields.io/badge/license-APACHE-%23F8952D">
</a>
</p>

___

Note: `game` branch
* Creating game content for the `marketplace` repository and `polygon` repo on `github/signal-k`
* Combining it with a Moralis instance


## 🌱 Software Requirements

NodeJS v16.1
Ganache CLI

### 🦠 Node Requirements
These requirements are for the node/react components of this sample NFT project

Use either `yarn install` or `npm install` to install all the required node packages.

With `hardhat` -> Run commands with `--verbose` at the end

## Minting the NFTs
`npx hardhat run scripts/deploy.js --network rinkeby --verbose`


## 🚀 Technologies Used

The project was developed using the following technologies

- Node
- Polygon
- Ethereum
- Avalanche
- Moralis


# 🔌 Connected repositories
The following repositories are utilised, or utilise the Signal-K/polygon repository:

- [Signal-K/marketplace](https://github.com/Signal-K/marketplace/)
- [Eth remix gist](https://gist.github.com/Gizmotronn/d3796de3a2ec3cfde90d4fd6356ca881)
1 change: 0 additions & 1 deletion Truffle/.gitattributes

This file was deleted.

9 changes: 0 additions & 9 deletions Truffle/contracts/ConvertLib.sol

This file was deleted.

49 changes: 0 additions & 49 deletions Truffle/contracts/MetaCoin.sol

This file was deleted.

19 changes: 0 additions & 19 deletions Truffle/contracts/Migrations.sol

This file was deleted.

5 changes: 0 additions & 5 deletions Truffle/migrations/1_initial_migration.js

This file was deleted.

8 changes: 0 additions & 8 deletions Truffle/migrations/2_deploy_contracts.js

This file was deleted.

6 changes: 0 additions & 6 deletions Truffle/scripts/contractInfo.js

This file was deleted.

17 changes: 0 additions & 17 deletions Truffle/scripts/deployContract.js

This file was deleted.

14 changes: 0 additions & 14 deletions Truffle/scripts/devChain.js

This file was deleted.

Loading