Skip to content

Commit

Permalink
Mava integration trial
Browse files Browse the repository at this point in the history
  • Loading branch information
mmulji-ic committed Sep 15, 2023
1 parent 7bf7acc commit 555360a
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 17 deletions.
10 changes: 10 additions & 0 deletions docs/docs/getting-started/have-a-question.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Chat AI
order: 4
---

<head>
<script defer src="https://widget.mava.app" id="MavaWebChat" data-token="cfc49642e331b5025d7bde614faa6548846c09b87ebb407f981ba348f51d5ad5"></script>
</head>

## What do you want to know?
5 changes: 2 additions & 3 deletions docs/docs/governance/current-parameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ export const currentParams = {
releaseDate: '',
blockHeight: '',
governanceProposalLink: '',
gaidExecutionOutput : '❯ gaiad version --long\nname: gaia\nserver_name: gaiad\nversion: v12.0.0\ncommit: 6f8067d76ce30996f83645862153ccfaf5f13dd1\nbuild_tags: netgo,ledger\ngo: go version go1.20.4 darwin/arm64\nbuild_deps:\n- cosmossdk.io/[email protected]\n- cosmossdk.io/[email protected]\n- cosmossdk.io/[email protected]\n- cosmossdk.io/[email protected]\n- filippo.io/[email protected]\n- github.com/99designs/[email protected]\n- github.com/99designs/[email protected] => github.com/cosmos/[email protected]\n- github.com/ChainSafe/[email protected]\n- github.com/Workiva/[email protected]\n- github.com/armon/[email protected]\n- github.com/beorn7/[email protected]\n- github.com/bgentry/[email protected]\n- github.com/btcsuite/btcd/btcec/[email protected]\n- github.com/cenkalti/backoff/[email protected]\n- github.com/cespare/xxhash/[email protected]\n- github.com/coinbase/[email protected]\n- github.com/cometbft/[email protected]\n- github.com/confio/ics23/[email protected]\n- github.com/cosmos/[email protected]\n- github.com/cosmos/[email protected]\n- github.com/cosmos/[email protected]\n- github.com/cosmos/[email protected] => github.com/cosmos/[email protected]\n- github.com/cosmos/[email protected]\n- github.com/cosmos/[email protected]\n- github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/[email protected]\n- github.com/cosmos/ibc-go/[email protected]\n- github.com/cosmos/interchain-security/[email protected] => github.com/cosmos/interchain-security/[email protected]\n- github.com/cosmos/[email protected]\n- github.com/creachadair/[email protected]\n- github.com/davecgh/[email protected]\n- github.com/decred/dcrd/dcrec/secp256k1/[email protected]\n- github.com/desertbit/[email protected]\n- github.com/dvsekhvalnov/[email protected]\n- github.com/felixge/[email protected]\n- github.com/fsnotify/[email protected]\n- github.com/go-kit/[email protected]\n- github.com/go-kit/[email protected]\n- github.com/go-logfmt/[email protected]\n- github.com/gogo/[email protected]\n- github.com/gogo/[email protected] => github.com/regen-network/[email protected]\n- github.com/golang/[email protected]\n- github.com/golang/[email protected]\n- github.com/google/[email protected]\n- github.com/google/[email protected]\n- github.com/gorilla/[email protected]\n- github.com/gorilla/[email protected]\n- github.com/gorilla/[email protected]\n- github.com/gravity-devs/[email protected] => github.com/gravity-devs/[email protected]\n- github.com/grpc-ecosystem/[email protected]\n- github.com/grpc-ecosystem/[email protected]\n- github.com/grpc-ecosystem/grpc-gateway/[email protected]\n- github.com/gtank/[email protected]\n- github.com/gtank/[email protected]\n- github.com/hashicorp/[email protected]\n- github.com/hashicorp/[email protected]\n- github.com/hashicorp/[email protected]\n- github.com/hdevalence/[email protected]\n- github.com/iancoleman/[email protected]\n- github.com/improbable-eng/[email protected]\n- github.com/klauspost/[email protected]\n- github.com/lib/[email protected]\n- github.com/libp2p/[email protected]\n- github.com/magiconair/[email protected]\n- github.com/mattn/[email protected]\n- github.com/mattn/[email protected]\n- github.com/matttproud/[email protected]\n- github.com/mimoo/[email protected]\n- github.com/minio/[email protected]\n- github.com/mitchellh/[email protected]\n- github.com/mtibben/[email protected]\n- github.com/pelletier/go-toml/[email protected]\n- github.com/pkg/[email protected]\n- github.com/pmezard/[email protected]\n- github.com/prometheus/[email protected]\n- github.com/prometheus/[email protected]\n- github.com/prometheus/[email protected]\n- github.com/prometheus/[email protected]\n- github.com/rakyll/[email protected]\n- github.com/rcrowley/[email protected]\n- github.com/regen-network/[email protected]\n- github.com/rs/[email protected]\n- github.com/rs/[email protected]\n- github.com/spf13/[email protected]\n- github.com/spf13/[email protected]\n- github.com/spf13/[email protected]\n- github.com/spf13/[email protected]\n- github.com/spf13/[email protected]\n- github.com/spf13/[email protected]\n- github.com/stretchr/[email protected]\n- github.com/subosito/[email protected]\n- github.com/syndtr/[email protected]\n- github.com/tendermint/[email protected]\n- github.com/tendermint/[email protected] => github.com/cometbft/[email protected]\n- github.com/tendermint/[email protected]\n- github.com/tidwall/[email protected]\n- github.com/zondax/[email protected]\n- github.com/zondax/[email protected]\n- golang.org/x/[email protected]\n- golang.org/x/[email protected]\n- golang.org/x/[email protected]\n- golang.org/x/[email protected]\n- golang.org/x/[email protected]\n- golang.org/x/[email protected]\n- google.golang.org/[email protected]\n- google.golang.org/[email protected] => google.golang.org/[email protected]\n- google.golang.org/[email protected]\n- gopkg.in/[email protected]\n- gopkg.in/[email protected]\n- gopkg.in/[email protected]\n- nhooyr.io/[email protected]\ncosmos_sdk_version: v0.45.16-ics',
golangVersion : '1.20.x',
},
nextRelease: {
releaseName: 'v12',
releaseDate: '',
blockHeight: '',
governanceProposalLink: '',
},
gaidExecutionOutput: {
text : ''
},
proposals : {
numberOfValidatorsProp: 'https://www.mintscan.io/cosmos/proposals/797',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ title: Gaia 설치하기
order:
---

import { Var, PlainVar, ConsoleOutput } from '@site/src/js/Var';

import { currentParams } from '@site/docs/governance/current-parameters.js';

<!-- markdown-link-check-disable -->

가이드는 `gaiad`와 `gaiad`를 엔트리포인트를 시스템에 설치하는 방법을 설명합니다. `gaiad`와 `gaiad`가 설치된 서버를 통해 [풀노드](./gaia-tutorials/join-testnet.md#run-a-full-node) 또는 [밸리데이터로](./validators/validator-setup.md)써 최신 테스트넷에 참가하실 있습니다.
Expand All @@ -18,7 +22,7 @@ source ~/.bash_profile
```
:::tip
코스모스 SDK를 운영하기 위해서는 **Go 1.20.x** 이상 버전이 필요합니다.
코스모스 SDK를 운영하기 위해서는 **<Var children={currentParams.currentRelease.golangVersion} />** 이상 버전이 필요합니다.
:::
### 바이너리 설치하기
Expand All @@ -42,7 +46,7 @@ make: *** [install] Error 2

해당 환경변수를 언세팅 하신 후 다시 시도해보세요.

```
```sh
LDFLAGS="" make install
```

Expand All @@ -52,20 +56,13 @@ LDFLAGS="" make install

```bash
gaiad version --long
gaiad version --long
```

`gaiad` 명령어는 다음과 비슷한 아웃풋을 내보냅니다:

```bash
name: gaia
server_name: gaiad
client_name: gaiad
version: 1.0.0
commit: 89e6316a27343304d332aadfe2869847bf52331c
build_tags: netgo,ledger
go: go version go1.12.5 darwin/amd64
```

<ConsoleOutput children={currentParams.currentRelease.gaidExecutionOutput} />


### 빌드 태그

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ title: 安装 Gaia
order: 2
---

import { Var } from '@site/src/js/Var';
import { currentParams } from '@site/docs/governance/current-parameters.js';


<!-- markdown-link-check-disable -->

本教程将详细说明如何在你的系统上安装`gaiad`和`gaiad`。安装后,你可以作为[全节点](./join-mainnet.md)或是[验证人节点](./validators/validator-setup.md)加入到主网。
Expand All @@ -18,7 +22,7 @@ source ~/.bash_profile
```
:::tip
Cosmos SDK 需要安装**Go 1.20.x+**
Cosmos SDK 需要安装** <Var children={currentParams.currentRelease.golangVersion} /> **
:::
### 安装二进制执行程序
Expand All @@ -40,7 +44,6 @@ cd gaia && make install

```bash
gaiad version --long
gaiad version --long
```

`gaiad`的返回应该类似于:
Expand Down
13 changes: 13 additions & 0 deletions docs/src/js/Var.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@ import React from 'react';
export const Var = ({ children }) => {
return <code>{JSON.stringify(children)}</code>;
};

export const PlainVar = ({ children }) => {
return <span>{JSON.stringify(children)}</span>;
};

export const ConsoleOutput = ({ children }) => {

return (
<textarea readonly className='text-left'>
{JSON.stringify(children.replace(/\n/g, "\r"))}
</textarea>
)
};

0 comments on commit 555360a

Please sign in to comment.