首页 > 系统相关 >CentOS 安装Cosmos开发环境

CentOS 安装Cosmos开发环境

时间:2022-11-07 12:01:32浏览次数:54  
标签:CentOS -- com wasmd export https 420 Cosmos 安装

1、Go install.

wget https://go.dev/dl/go1.19.3.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.3.linux-amd64.tar.gz

export PATH=$PATH:/usr/local/go/bin

go version

 

2、Installing Rust in Linux 

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Install the wasm32 target:

rustup default stable
cargo version
# If this is lower than 1.51.0, update
rustup update stable

rustup target list --installed
rustup target add wasm32-unknown-unknown

  

3、wasmd

git clone https://github.com/CosmWasm/wasmd.git
cd wasmd
# replace the v0.16.0 with the most stable version on https://github.com/CosmWasm/wasmd/releases
# oysternet runs on wasmd v0.16.0
# replace the v0.27.0 with the most stable version on https://github.com/CosmWasm/wasmd/releases
git checkout v0.27.0 # git checkout v0.16.0
# build wasmd executable make install # verify the installation wasmd version

  

4、Setting up wasmd and Wallet

public testnet (Malaga-420) 

setup  env

source <(curl -sSL https://raw.githubusercontent.com/CosmWasm/testnets/master/malaga-420/defaults.env)

just the same as:

export CHAIN_ID="malaga-420"
export TESTNET_NAME="malaga-420"
export FEE_DENOM="umlg"
export STAKE_DENOM="uand"
export BECH32_HRP="wasm"
export WASMD_VERSION="v0.27.0"
export CONFIG_DIR=".wasmd"
export BINARY="wasmd"

export COSMJS_VERSION="v0.28.1"
export GENESIS_URL="https://raw.githubusercontent.com/CosmWasm/testnets/master/malaga-420/config/genesis.json"

export RPC="https://rpc.malaga-420.cosmwasm.com:443"
export API="https://api.malaga-420.cosmwasm.com"
export FAUCET="https://faucet.malaga-420.cosmwasm.com"

export NODE=(--node $RPC)
export TXFLAG=($NODE --chain-id $CHAIN_ID --gas-prices 0.25umlg --gas auto --gas-adjustment 1.3)

  

generate wallet 

# add wallets for testing
wasmd keys add wallet

 requesting tokens form the faucet

JSON=$(jq -n --arg addr $(./wasmd keys show -a wallet) '{"denom":"umlg","address":$addr}') && curl -X POST --header "Content-Type: application/json" --data "$JSON" https://faucet.malaga-420.cosmwasm.com/credit

 centos 7 yum install jq

wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -ivh epel-release-latest-7.noarch.rpm

yum repolist      ##检查是否已添加至源列表

yum install jq

   

./wasmd query bank total $NODE

./wasmd query bank balances $(./wasmd keys show -a wallet) $NODE

 

标签:CentOS,--,com,wasmd,export,https,420,Cosmos,安装
From: https://www.cnblogs.com/lidonghao/p/16865384.html

相关文章

  • 记在Linux系统源码包安装MySQL
    记在Linux系统源码包安装MySQL实验环境:系统版本:CentOS7MySQL版本:5.7.39(https://downloads.mysql.com/archives/get/p/23/file/mysql-5.7.39-el7-x86_64.tar.gz)实验开始步......
  • 如何安装nload对linux进行流量监控
    第一步:nload命令简介nload命令用于查看linux网络流量状况,实时输出。可以理解为是一个控制台应用程序,用来实时监测网络流量和带宽使用情况的命令。使用可视化的界面显示......
  • nodejs 安装篇
    直接使用ubuntu软件源安装sudoaptupdatesudoaptinstallnodejsnpmnodejs--versionv10.19.0npm-v从nodesource安装nodejs和npm复制代码安装仓库`https:......
  • 使用VS2019生成exe安装包
    1、安装工具包  2、在解决方案上右击,选择添加–>新建项目   3、查找setup模板,下一步并填写名称      4、进入文件系统设置主输出   ......
  • MySQL简易安装
    ** MySQL安装教程**本教程根据MySQL官方文档安装,过程简单,只适用于自己练习SQL,当做练习用。资源准备MySQL版本:mysql-8.0.31-linux-glibc2.12-x86_64.tar.xzLinux版本:cen......
  • windows10安装wsl的centos7版本,并启动ssh服务远程访问
    1.安装wsl的centos版本wsl是什么就不多说了,不清楚的自己去谷歌吧。也可以参考下面几篇文章:[https://learn.microsoft.com/zh-cn/windows/wsl/install-manual](microsoft......
  • docker安装kuboard
    目录一、kuboard安装二、域名、反向代理配置三、参考一、kuboard安装kuboard可以部署在kubernetes集群之上,也可以部署在集群之外。作为管理多集群的图形化工具建议部署在......
  • docker容器中安装vim
    1.进入容器dockerexec-it<容器名称/id>bash 2.进入apt-get配置目录cd/etc/apt 3.执行备份命令cpsources.listsources.list.bak 4.查看版本cat/etc/o......
  • 第2-1-3章 docker-compose安装FastDFS,实现文件存储服务
    目录4docker-compose安装FastDFS4.1docker-compose-fastdfs.yml4.2nginx.conf4.3storage.conf4.4测试4docker-compose安装FastDFS需要注意:network_mode必须是ho......
  • CentOS 7.9 Redis 设置开机自启动
    CentOS7.9Redis设置开机自启动 1、创建Redis的开机自启动文件在/etc/systemd/system/目录下创建redis.service文件,并加入如下内容:[Unit]Description=redis-......