Skip to content

Commit 5eca409

Browse files
author
tac0turtle
committed
merge docs into ev-node repo
1 parent d21b851 commit 5eca409

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+9919
-2
lines changed

.github/workflows/build_docs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build VitePress Site
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "./docs"
8+
pull_request:
9+
paths:
10+
- "./docs"
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Setup Node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: yarn # or pnpm / npm
23+
- name: Install dependencies
24+
run: yarn install # or pnpm install / npm ci
25+
- name: Build with VitePress
26+
run: yarn build # or pnpm build / npm build

.github/workflows/deploy_docs.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Sample workflow for building and deploying a VitePress site to GitHub Pages
2+
#
3+
name: Deploy VitePress site to Pages
4+
5+
on:
6+
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
7+
# using the `master` branch as the default branch.
8+
push:
9+
branches: [main]
10+
paths:
11+
- "./docs"
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
17+
permissions: write-all
18+
19+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
20+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
21+
concurrency:
22+
group: pages
23+
cancel-in-progress: false
24+
25+
jobs:
26+
# Build job
27+
build:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
with:
33+
fetch-depth: 0 # Not needed if lastUpdated is not enabled
34+
# - uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm
35+
- name: Setup Node
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: 20
39+
cache: yarn # or pnpm / npm
40+
- name: Setup Pages
41+
uses: actions/configure-pages@v5
42+
- name: Install dependencies
43+
run: yarn install # or pnpm install / npm ci
44+
- name: Build with VitePress
45+
run: yarn build # or pnpm build / npm build
46+
- name: Deploy to GitHub Pages
47+
uses: peaceiris/actions-gh-pages@v4
48+
with:
49+
github_token: ${{ secrets.GITHUB_TOKEN }}
50+
publish_dir: ./.vitepress/dist
51+
cname: ev.xyz

.github/workflows/preview_docs.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy PR previews
2+
3+
on:
4+
# This workflow requires pull_request and won't work with pull_request_target
5+
# due to github permissions
6+
pull_request:
7+
types:
8+
- opened
9+
- reopened
10+
- synchronize
11+
- closed
12+
paths:
13+
- "./docs"
14+
15+
concurrency: preview-${{ github.ref }}
16+
17+
jobs:
18+
deploy-preview:
19+
if: github.actor != 'dependabot[bot]'
20+
runs-on: ubuntu-latest
21+
permissions: write-all
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Setup Node
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
cache: yarn
31+
32+
- name: Install dependencies
33+
run: yarn install --frozen-lockfile
34+
35+
- name: Build with Base URL
36+
run: BASE='/docs-preview/pr-${{ github.event.number }}/' yarn build
37+
38+
- name: Deploy preview
39+
uses: rossjrw/pr-preview-action@v1
40+
with:
41+
source-dir: .vitepress/dist
42+
deploy-repository: evstack/docs-preview
43+
token: ${{ secrets.PREVIEW_DEPLOY }}
44+
preview-branch: main
45+
umbrella-dir: .

.gitignore

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,15 @@ build
1414
.DS_Store
1515
coverage.out
1616
execution/evm/jwttoken
17-
target
17+
target
18+
19+
docs/.vitepress/dist
20+
node_modules
21+
docs/.vitepress/cache
22+
*.log
23+
*.tgz
24+
.DS_Store
25+
.idea
26+
.temp
27+
.vite_opt_cache
28+
.vscode

docs/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<template>
2+
<div>
3+
<p>This tutorial explores Evolve, currently in Alpha. If you encounter bugs, please report them via a GitHub <a href="https://github.com/evstack/docs/issues/new">issue ticket</a> or reach out in our <a href="https://t.me/rollkit">Telegram group</a>.</p>
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
name: 'Callout',
10+
}
11+
</script>
12+
13+
<style scoped>
14+
/* Add any custom styles for the component here */
15+
</style>
30 KB
Loading
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<template>
2+
<button @click.native="addNetwork"><img src="./keplr.png" alt="" width="20" height="20" /></button>
3+
</template>
4+
5+
<script>
6+
export default {
7+
name: 'app',
8+
methods: {
9+
async addNetwork() {
10+
try {
11+
const settings = await import(`./rosm.json`);
12+
console.log("got back settings", settings);
13+
try {
14+
await window.keplr.enable(settings.chainId);
15+
alert(settings.chainId + " already added");
16+
} catch (e) {
17+
console.log(
18+
"Unable to connect to wallet natively, so trying experimental chain"
19+
);
20+
try {
21+
await window.keplr.experimentalSuggestChain(settings);
22+
await window.keplr.enable(settings.chainId);
23+
} catch (e2) {
24+
console.log(
25+
"and yet there is a problem in trying to do that too",
26+
e2
27+
);
28+
}
29+
}
30+
} catch (error) {
31+
if (error instanceof SyntaxError) {
32+
alert(
33+
"There was a syntax error. Please correct it and try again: " +
34+
error.message
35+
);
36+
} else {
37+
throw error;
38+
}
39+
}
40+
}
41+
},
42+
}
43+
</script>
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"rpc": "https://rpc.rosm.ev.xyz",
3+
"rest": "https://api.rosm.ev.xyz",
4+
"chainId": "rosm",
5+
"chainName": "Rollkit Cosmwasm Testnet",
6+
"stakeCurrency": {
7+
"coinDenom": "ROSM",
8+
"coinMinimalDenom": "urosm",
9+
"coinDecimals": 6
10+
},
11+
"bech32Config": {
12+
"bech32PrefixAccAddr": "wasm",
13+
"bech32PrefixAccPub": "wasmpub",
14+
"bech32PrefixValAddr": "wasmvaloper",
15+
"bech32PrefixValPub": "wasmvaloperpub",
16+
"bech32PrefixConsAddr": "wasmvalcons",
17+
"bech32PrefixConsPub": "wasmvalconspub"
18+
},
19+
"bip44": {
20+
"coinType": 118
21+
},
22+
"currencies": [
23+
{
24+
"coinDenom": "ROSM",
25+
"coinMinimalDenom": "urosm",
26+
"coinDecimals": 6
27+
}
28+
],
29+
"feeCurrencies": [
30+
{
31+
"coinDenom": "ROSM",
32+
"coinMinimalDenom": "urosm",
33+
"coinDecimals": 6
34+
}
35+
],
36+
"gasPriceStep": {
37+
"low": 0.05,
38+
"average": 0.125,
39+
"high": 0.2
40+
},
41+
"features": ["stargate", "no-legacy-stdTx", "ibc-transfer"]
42+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
<template>
3+
<blockquote class="twitter-tweet" data-lang="en" data-theme="dark">
4+
<p lang="de" dir="ltr">evolve start <a href="https://t.co/tytjFm1Z4Y">pic.twitter.com/tytjFm1Z4Y</a></p>&mdash; Josh Stein 🤳✨ (@JoshCStein) <a href="https://twitter.com/JoshCStein/status/1783880747301880161?ref_src=twsrc%5Etfw">April 26, 2024</a>
5+
</blockquote>
6+
</template>
7+
8+
<script>
9+
export default {
10+
name: 'Twitter',
11+
}
12+
</script>
13+
14+
<style scoped>
15+
/* Add any custom styles for the component here */
16+
</style>

0 commit comments

Comments
 (0)