You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BandChain is a **cross-chain data oracle platform** that aggregates and connects real-world data and APIs to smart contracts. It is designed to be **compatible with most smart contract and blockchain development frameworks**. It does the heavy lifting jobs of pulling data from external sources, aggregating them, and packaging them into the format that’s easy to use and verified efficiently across multiple blockchains.
30
+
BandChain is a **cross-chain data oracle platform** that aggregates and connects real-world data and APIs to smart contracts. It is designed to be **compatible with most smart contract and blockchain development frameworks**. It does the heavy lifting jobs of pulling data from external sources, aggregating them, and packaging them into the format that’s easy to use and verifiable efficiently across multiple blockchains.
39
31
40
32
Band's flexible oracle design allows developers to **query any data** including real-world events, sports, weather, random numbers and more. Developers can create custom-made oracles using WebAssembly to connect smart contracts with traditional web APIs within minutes.
41
33
42
34
## Installation
43
35
44
-
### Building from source
36
+
Please refer to [this documentation](https://docs.bandchain.org/node-validators/run-node/joining-mainnet/installation) for the most up-to-date installation guide.
37
+
38
+
## Building from source
45
39
46
40
We recommend the following for running a BandChain Validator:
47
41
@@ -70,28 +64,27 @@ make install
70
64
Using `bandd version` command to verify that your `bandd` has been build successfully.
71
65
72
66
```
73
-
bandd version --long
74
67
name: bandchain
75
68
server_name: bandd
76
-
version: 2.3.0
77
-
commit: 4fe19638b33043eed4dec9861cda40962fb5b2a7
78
-
build_tags: ledger
79
-
go: go version go1.18.3 darwin/amd64
69
+
version: 2.5.4
70
+
commit: e6548bbf4793829bb8e711e5ed89ba4afc710ded
71
+
build_tags: netgo,ledger
72
+
go: go version go1.19.1 darwin/amd64
80
73
build_deps:
81
74
...
82
75
```
83
76
84
-
### Setting Up Yoda — The Oracle Daemon
85
-
86
-
BandChain validators are also responsible for responding to oracle data requests. Whenever someone submits a request message to BandChain, the chain will autonomously choose a subset of active oracle validators to perform the data query.
87
-
88
-
The validators are chosen submit a report message to BandChain within a given timeframe as specified by a chain parameter (100 blocks in mainnet). We provide a program called yoda to do this task for you. For more information on the data request process, please see [here](https://docs.bandchain.org/whitepaper/system-overview.html#oracle-data-request).
89
-
90
-
Yoda uses an external executor to resolve requests to data sources. Currently, it supports [AWS Lambda](https://aws.amazon.com/lambda/) and [Google Cloud Function](https://cloud.google.com/functions) (through the REST interface). In future releases, `yoda` will support more executors and allow you to specify multiple executors to add redundancy.
77
+
If you are using Mac ARM architecture (M1, M2) and face the issue of GMP library, you can run this.
You also need to set up `yoda` and activate oracle status. Here’s the [documentation](https://github.com/bandprotocol/bandchain/wiki/Instruction-for-apply-to-be-an-oracle-validator-on-Guanyu-mainnet) to get started.
83
+
## Useful scripts for development
93
84
94
-
That’s it! You can verify that your validator is now an oracle provider via cli by using ` bandd query oracle validator <your validator address>`. Your yoda process must be responding to oracle requests assigned to your node. If the process misses a request, your oracle provider status will automatically get deactivated and you must send MsgActivate to activate again after a 10-minute waiting period and make sure that yoda is up.
85
+
-`scripts/generate_genesis.sh` to create/reset the default genesis file
86
+
-`scripts/start_bandd.sh` to start the bandd binary
87
+
-`scripts/start_yoda.sh` to start yoda with reporter(s)
95
88
96
89
## Resources
97
90
@@ -105,19 +98,19 @@ That’s it! You can verify that your validator is now an oracle provider via cl
BandChain is licensed under the terms of the GPL 3.0 License unless otherwise specified in the LICENSE file at module's root.
120
113
121
-
We highly encourage participation from the community to help with D3N development. If you are interested in developing with D3N or have suggestion for protocol improvements, please open an issue, submit a pull request, or [drop as a line].
114
+
We highly encourage participation from the community to help with D3N development. If you are interested in developing with D3N or have suggestions for protocol improvements, please open an issue, submit a pull request, or [drop as a line].
This module is the fork version of globalfee module from [Gaia](https://github.com/cosmos/gaia) and [TGrade](https://github.com/confio/tgrade) with modifications to use with the Oracle module and Cosmos-SDK 0.46.x version. All credits and big thanks go to the original authors.
3
+
This module is the fork version of globalfee module from [Gaia](https://github.com/cosmos/gaia) and [TGrade](https://github.com/confio/tgrade) with modifications to use with the Oracle module and Cosmos-SDK 0.47.x version. All credits and big thanks go to the original authors.
Yoda is a program that is used by BandChain's validator nodes to automatically fulfill data for oracle requests.
14
6
15
-
## How to install and run Yoda
7
+
Since a subset of validators who are selected for a data request must return the data they received from running the specified data source(s), each of them have to send a `MsgReportData` transaction to BandChain in order to fulfill their duty.
16
8
17
-
1. Open first cmd tab for running the BandChain
18
-
2. Open second cmd tab for running the Yoda
19
-
3. Open third cmd tab for running the BandChain CLI
9
+
Although the transaction can be sent manually by user, it is not convenient, and would be rather time-consuming. Furthermore, most data providers already have APIs that can be used to query data automatically by another software. Therefore, we have developed Yoda to help validators to automatically query data from data providers by executing data source script, then submit the result to fulfill the request.
20
10
21
-
### How to run BandChain on development mode
11
+
For more detail about Yoda, please follows this [link](https://docs.bandchain.org/node-validators/yoda)
22
12
23
-
1. Go to chain directory
24
-
2. Setup your PostgresSQL user, port and database name on `start_bandd.sh`
25
-
3. run `chmod +x scripts/start_bandd.sh` to change the access permission of start_bandd.script
26
-
4. run `./scripts/start_bandd.sh` to start BandChain
27
-
5. If fail, try owasm pack build then run script again.
13
+
## Installation
28
14
29
-
```
30
-
cd ../owasm/chaintests/bitcoin_block_count/
31
-
wasm-pack build .
32
-
cd ../../../chain
33
-
```
34
-
35
-
### How to run Yoda
36
-
37
-
1. Go to chain directory
38
-
2. run `chmod +x scripts/start_yoda.sh` to change the access permission of start_yoda.script
39
-
3. run `./scripts/start_yoda.sh validator [number of reporter]` to start Yoda
40
-
41
-
### Try to request data BandChain
42
-
43
-
After we have `BandChain` and `Yoda` running, now we can request data on BandChain.
Please refer to [this documentation](https://docs.bandchain.org/node-validators/run-node/joining-mainnet/installation#step-5-setup-yoda) for the most up-to-date installation guide.
0 commit comments