Tellor Layer is a stand alone L1 built using the cosmos sdk for the purpose of coming to consensus on any subjective data. It works by using tendermint to agree upon requested data and its values, and in cases where consensus is not reached, falls back to relying on an optimistic approach given reported values can be disputed.
For more in-depth information about Layer, checkout the TellorLayer - tech paper.
To run all tests:
go test -v ./...
- Remove old test chains (if present):
rm -rf ~/.layer
- Go build layerd:
go build ./cmd/layerd
- Initialize the chain:
./layerd init layer --chain-id layer-test-1
- Add a validator account:
./layerd keys add alice
- Create a tx to Give the alice loyas to stake:
./layerd genesis add-genesis-account alice 10000000000000loya
- Create a tx to Stake some loyas for alice:
./layerd genesis gentx alice 1000000000000loya --chain-id layer-test-1
- Add the transactions to the genesis block:
./layerd genesis collect-gentxs
- Start the chain:
./layerd start
To start the chain locally with Ignite CLI:
ignite chain serve
To create a transaction, in another terminal:
layerd tx [command]
To see all available commands:
layerd
To lint per folder:
make lint-folder-fix FOLDER="x/mint"
To lint all files:
make lint
This repository is maintained by the Tellor team
Check out our issues log here on Github or feel free to reach out anytime info@tellor.io
Tellor Inc. 2022
- Install golangci-lint 1.55.2