nft-bridge
所属分类:数值算法/人工智能
开发工具:Solidity
文件大小:3575KB
下载次数:0
上传日期:2023-03-18 18:38:46
上 传 者:
sh-1993
说明: nft桥,以太坊和币安智能链之间的去中心化Trusless nft桥
(nft-bridge,A decentralized Trusless NFT bridge between Ethereum and Binance Smart Chain)
文件列表:
LICENSE (1071, 2023-03-19)
docker-compose.yml (2710, 2023-03-19)
docs (0, 2023-03-19)
docs\.example.env (0, 2023-03-19)
docs\.prettierrc.js (104, 2023-03-19)
docs\Dockerfile (149, 2023-03-19)
docs\SECURITY.md (244, 2023-03-19)
docs\abi-js (0, 2023-03-19)
docs\abi-js\Bridged.js (7165, 2023-03-19)
docs\abi-js\Scape.js (12216, 2023-03-19)
docs\abi-js\Wrapped.js (8873, 2023-03-19)
docs\css (0, 2023-03-19)
docs\css\nft-bridge.css (451, 2023-03-19)
docs\images (0, 2023-03-19)
docs\images\1.png (33402, 2023-03-19)
docs\images\2.png (68091, 2023-03-19)
docs\images\3.png (79659, 2023-03-19)
docs\images\4.png (44523, 2023-03-19)
docs\images\5.png (83964, 2023-03-19)
docs\images\logo.svg (129376, 2023-03-19)
docs\images\placeholder.svg (425, 2023-03-19)
docs\index.html (7868, 2023-03-19)
docs\index.js (289, 2023-03-19)
docs\js (0, 2023-03-19)
docs\js\logic.js (14216, 2023-03-19)
docs\js\nft-bridge.js (1975, 2023-03-19)
docs\letter (0, 2023-03-19)
docs\letter\1.json (459, 2023-03-19)
docs\letter\2.json (459, 2023-03-19)
docs\letter\3.json (462, 2023-03-19)
docs\letter\4.json (459, 2023-03-19)
docs\letter\5.json (462, 2023-03-19)
docs\metamaskBoilerplate.js (3353, 2023-03-19)
docs\package-lock.json (41822, 2023-03-19)
docs\package.json (950, 2023-03-19)
... ...
# NFT Bridge
A Trustless, decentralized NFT bridge between Ethereum and Smartchain.
The trustless, decentralized nature of this bridge achieved through direct Smartcontract interaction on two different blockchains through Decentralized Oracles provided by [Chainlink](https://chain.link).
> This Documentation assumes that you are familiar with Professional Development tools, as it doesn't describe what they do or how to install them.
# How to use
1. Install [git](https://git-scm.com/), [Docker](https://www.docker.com/get-started), and [Docker Compose](https://docs.docker.com/compose/install/).
2. Clone repository
```
git clone https://github.com/ahmetson/nft-bridge
```
3. Create `website/.env` based on `website/.example.env`.
4. Create `smartcontract/.env` based on `smartcontract/.example.env`. The committed environment file uses Rinkeby testnet. Also, the example uses Alchemy's public Ethereum service node.
5. Create `oracle/postgres.env` based on `oracle/.example.postgres.env`.
6. Create `oracle/chainlink.env` based on `oracle/.example.chainlink.env`. The comitted environment file uses Rinkeby testnet. Adapt it accordingly.
7. Create `oracle\adapters\target-gas-price\.env` based on `oracle\adapters\target-gas-price\.example.env`.
8. Create `oracle\adapters\eth-wrapped-verifier\.env` based on `oracle\adapters\eth-wrapped-verifier\.example.env`.
9. Build and run with docker-compose
* Build with default values, which you can adapt if needed inside the `Dockerfile`
```
docker-compose up --d
```
* First build with your own build args and then run:
```
$ docker-compose build --build-arg API_USER_EMAIL=my@test.com
$ docker-compose up
```
4. Browse to `localhost:6688` and log in with your credentials.
Default credentials:
- username: `user@example.com`
- password: `PA@SSword1234!567`
- wallet password: `PA@SSword1234!567`
# Run with your own Ethereum local node
1. Add the following into `docker-compose.yaml`:
- Service:
```
ethereum:
image: ethereum/client-go:v1.10.1
ports:
- 8546:8546
command: --ropsten --syncmode light --ws --ipcdisable --ws.addr 0.0.0.0 --ws.origins="*" --datadir /geth
volumes:
- geth:/geth
```
- Volume:
```
geth:
```
So the end result would be:
```
volumes:
geth:
db-data:
chainlink_data:
```
2. Change `ETH_URL` inside `chainlink.env` to:
```
ETH_URL=ws://ethereum:8546
```
3. Run again:
```
$ docker-compose up --build
```
# Disclaimer
This is a basic setup to quickly get you up and running with a Chainlink local node for development. Please acknolwedge that this setup does not take into account any node security nor high-availability (HA) settings, therefore cannot be used in production as is.
# Contributions
Feel free to open issues with questions or send in PRs in case you have an idea!
# Licence
MIT Licence
近期下载者:
相关文件:
收藏者: