MCPcopy Index your code
hub / github.com/CyberMiles/travis

github.com/CyberMiles/travis @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
1,560 symbols 4,079 edges 140 files 408 documented · 26%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Travis

Build Status develop branch

Please see the documentation for building and deploying Travis nodes here: https://travis.readthedocs.io/en/latest/getting-started.html

Script

Below is a bash script which will get Lity, libENI and a Travis node running on Ubuntu 16.04. Disclaimer: These instructions are for a brand-new disposable 16.04 Ubuntu test instance which has the sole purpose of running and testing the CyberMiles Lity compiler, CyberMiles libENI framework and the CyberMiles testnet called Travis.

#/bin/bash

#Disclaimer: These instructions are for a brand-new disposable 16.04 Ubuntu test instance which has the sole purpose of running and testing the CyberMiles Lity compiler, CyberMiles libENI framework and the CyberMiles testnet called Travis.

#To use this file copy this text into a file called install_cybermiles.sh in your fresh disposable Ubuntu 16.04 machine's home directory. Make the file executable by running "sudo chmod a+x ~/install_cybermiles.sh" and then finally execute the file by running "cd ~" and then "./install_cybermiles.sh"

#System preparation Ubuntu 16.04 LTS
cd ~
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y autoremove
sudo apt-get -y install gcc
sudo apt-get -y install git
sudo apt-get -y install make
sudo apt-get -y install curl
sudo apt-get -y install wget
sudo apt-get -y install cmake
sudo apt-get -y install bison
sudo apt-get -y install openssl
sudo apt-get -y install binutils
sudo apt-get -y install automake
sudo apt-get -y install libssl-dev
sudo apt-get -y install libboost-dev
sudo apt-get -y install libaudit-dev
sudo apt-get -y install libblkid-dev
sudo apt-get -y install e2fslibs-dev
sudo apt-get -y install build-essential
sudo apt-get -y install libboost-all-dev

#Installing Lity
cd ~
git clone https://github.com/CyberMiles/lity.git
cd lity
mkdir build
cd build
cmake ..
make
./lityc/lityc --help

#Installing SkyPat
cd ~
wget https://github.com/skymizer/SkyPat/archive/v3.1.1.tar.gz
tar -zxvf v3.1.1.tar.gz
cd SkyPat-3.1.1
./autogen.sh
./configure
make
sudo make install

#Installing libENI
cd ~
git clone https://github.com/CyberMiles/libeni.git
cd libeni
mkdir build
cd build
cmake ..
make

#Installing Go
cd ~
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
source $HOME/.gvm/scripts/gvm
gvm install go1.10.3 -B
gvm use go1.10.3 --default
echo 'export GOPATH=~/.gvm/pkgsets/go1.10.3/global' >> ~/.bashrc
echo 'export GOBIN=$GOPATH/go/bin' >> ~/.bashrc
echo 'export PATH=$GOBIN:$PATH' >> ~/.bashrc
source ~/.bashrc

#Installing Travis
go get github.com/CyberMiles/travis

#PLEASE NOTE: The above will return an error such as "can't load package ... no Go file in ...",
#Please just ignore this error and continue on with the installation

cd $GOPATH/src/github.com/CyberMiles/travis
git checkout master
make all

#Configuring Travis test network settings
cd ~
rm -rf .travis
git clone https://github.com/CyberMiles/testnet.git
cp -r testnet/travis/init .travis

#Starting Travis test network node
cd ~

#Please ensure that the system paths are known, or else the travis command will not be found (you will get an error like this "The program 'travis' is currently not installed")

echo 'export GOPATH=~/.gvm/pkgsets/go1.10.3/global' >> ~/.bashrc
echo 'export GOBIN=$GOPATH/go/bin' >> ~/.bashrc
echo 'export PATH=$GOBIN:$PATH' >> ~/.bashrc
source ~/.bashrc

travis node start --home=./.travis

You can now attach to the Travis node using the following command

travis attach http://localhost:8545

Extension points exported contracts — how you extend this code

TxInner (Interface)
TxInner is the interface all concrete transactions should implement. It adds bindings for clean un/marhsaling of the va [16 …
sdk/tx.go
Validatable (Interface)
Validatable represents anything that can be Validated [16 implementers]
sdk/client/commands/txs/helpers.go
Hashable (Interface)
(no doc) [10 implementers]
types/types.go
KVStore (Interface)
KVStore is a simple interface to get/set data [4 implementers]
sdk/state/kvstore.go
UserPrompter (Interface)
UserPrompter defines the methods needed by the console to promt the user for various types of inputs. [2 implementers]
console/prompter.go
MinerRewardStrategy (Interface)
MinerRewardStrategy is a mining strategy [2 implementers]
vm/types/types.go
TMError (Interface)
TMError is the tendermint abci return type with stack trace [1 implementers]
sdk/errors/main.go
Signable (Interface)
Signable represents any transaction we wish to send to tendermint core These methods allow us to sign arbitrary Tx with
types/signature.go

Core symbols most depended-on inside this repo

X64Word_create
called by 81
console/jsre/deps/web3-cmt.js
X64Word_create
called by 81
console/jsre/deps/web3.js
String
called by 73
modules/stake/slash.go
Error
called by 72
vm/cmd/utils/log.go
get
called by 56
api/query.go
Commit
called by 48
sdk/state/kvstore.go
BlockHeight
called by 42
types/context.go
Hash
called by 40
types/types.go

Shape

Function 908
Method 497
Struct 126
Interface 17
TypeAlias 9
FuncType 3

Languages

Go72%
TypeScript28%

Modules by API surface

console/jsre/deps/web3-cmt.js207 symbols
console/jsre/deps/web3.js179 symbols
modules/stake/types.go58 symbols
api/cmt.go52 symbols
modules/stake/handler.go44 symbols
modules/stake/db.go43 symbols
modules/stake/tx.go42 symbols
test/integration/utils.js26 symbols
sdk/state/kvstore.go26 symbols
sdk/int.go25 symbols
modules/governance/tx.go25 symbols
api/backend.go24 symbols

For agents

$ claude mcp add travis \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page