-
Notifications
You must be signed in to change notification settings - Fork 214
ag0 to agd upgrade
Work in Progress
note: one more release candidate is expected after pismoA-rc3
For this upgrade, agd
installation involves building from source. A binary installation package for agd is an outstanding issue: #6455.
- install node, yarn
- install go
- install agoric-sdk
- ... more in progress: migrate key material from ag0
- ... more in progress: set up systemd
- ... more in progress: stop ag0; start agd
These instructions were tested on an Ubuntu 22.04.1 LTS amd64 with with sudo
and curl
available.
For a recording, see:
Install node.js v16. Following Node.js download instructions:
# Download the nodesource PPA for Node.js
curl https://deb.nodesource.com/setup_16.x | sudo bash
# Install the Yarn package manager
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
# Update Ubuntu
sudo apt-get update
sudo apt upgrade -y
# Install Node.js, Yarn, and build tools
# Install jq for formatting of JSON data
# We'll need git below.
sudo apt install nodejs=16.* yarn build-essential git jq -y
# verify installation
node --version | grep 16
yarn --version
Agoric's Cosmos integration is built using Go and requires Go version 1.17+. In this example, we will be installing Go on the above Ubuntu 20.04 with Node.js installed:
# First remove any existing old Go installation
sudo rm -rf /usr/local/go
# Download and verify go
curl -L -o /tmp/go1.18.7.linux-amd64.tar.gz https://go.dev/dl/go1.18.7.linux-amd64.tar.gz
sha256sum --check <<EOF
6c967efc22152ce3124fc35cdf50fc686870120c5fd2107234d05d450a6105d8 /tmp/go1.18.7.linux-amd64.tar.gz
EOF
# install
sudo tar -C /usr/local -xzf /tmp/go1.18.7.linux-amd64.tar.gz
# Update environment variables to include go
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
# Verify that Go is installed:
go version | grep 1.18
note: one more release candidate is expected after pismoA-rc3
We’ll install the Agoric SDK from source using git clone
.
cd /usr/local/src
git clone https://github.com/Agoric/agoric-sdk -b pismoA-rc3
cd agoric-sdk
# Install and build Agoric Javascript packages
yarn install && yarn build
# Install and build Agoric Cosmos SDK support
(cd packages/cosmic-swingset && make)
Note that you will need to keep the agoric-sdk
directory intact when running the validator, as it contains data files necessary for correct operation.
To verify the build:
agd version --long
The output should start with:
name: agoriccosmos
server_name: ag-cosmos-helper
version: 0.32.1
commit: ef8aa3c56
build_tags: ledger,
go: go version go1.18.7 linux/amd64
...
If the software version does not match, then please check your $PATH
to ensure the correct agd
is running.
This wiki is for developing agoric-sdk. For help using Agoric SDK, see https://docs.agoric.com/ and https://agoric-sdk.pages.dev/