-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
743 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
use flake | ||
CC=emcc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,24 +39,24 @@ jobs: | |
REACT_APP_NAMADA_CHAIN_ID: "internal-devnet-6be.86067e06a5" | ||
REACT_APP_NAMADA_URL: "https://proxy.heliax.click/internal-devnet-6be.86067e06a5" | ||
|
||
- name: Deploy to Netlify | ||
if: false | ||
uses: nwtgck/[email protected] | ||
with: | ||
publish-dir: "./apps/namada-interface/build" | ||
production-branch: main | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
deploy-message: "Merged PR ${{ github.event.number }} to main" | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_ACCESS_TOKEN_WALLET_PREVIEW }} | ||
NETLIFY_SITE_ID: 2380782e-9b20-477a-bc27-b4e9d05e16f3 | ||
|
||
- name: Slack Notification | ||
run: | | ||
curl --header "Content-Type: application/json" \ | ||
--request POST \ | ||
--data '{"message":"https://wallet-preview-heliax-dev.netlify.app"}' \ | ||
${{ secrets.SLACK_WEBHOOK_WALLET_RELEASE }} | ||
#- name: Deploy to Netlify | ||
# if: false | ||
# uses: nwtgck/[email protected] | ||
# with: | ||
# publish-dir: "./apps/namada-interface/build" | ||
# production-branch: main | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
# deploy-message: "Merged PR ${{ github.event.number }} to main" | ||
# env: | ||
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_ACCESS_TOKEN_WALLET_PREVIEW }} | ||
# NETLIFY_SITE_ID: 2380782e-9b20-477a-bc27-b4e9d05e16f3 | ||
|
||
#- name: Slack Notification | ||
# run: | | ||
# curl --header "Content-Type: application/json" \ | ||
# --request POST \ | ||
# --data '{"message":"https://wallet-preview-heliax-dev.netlify.app"}' \ | ||
# ${{ secrets.SLACK_WEBHOOK_WALLET_RELEASE }} | ||
|
||
rust-unit-test-js-cache: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,6 @@ | ||
name: Deploy wallet preview to netlify at PR and pushes to it | ||
on: | ||
pull_request: | ||
paths: | ||
- "apps/namada-interface/**" | ||
- "apps/extension/**" | ||
- "packages/integrations/**" | ||
- "packages/rpc/**" | ||
- "packages/shared/**" | ||
- "packages/tx/**" | ||
- "packages/utils/**" | ||
- "packages/wallet/**" | ||
- "packages/wasm/**" | ||
- ".github/workflows/**" | ||
push: | ||
|
||
env: | ||
CI: false | ||
|
@@ -143,26 +132,26 @@ jobs: | |
REACT_APP_NAMADA_ALIAS: "Namada Devnet" | ||
REACT_APP_NAMADA_CHAIN_ID: "internal-devnet-6be.86067e06a5" | ||
REACT_APP_NAMADA_URL: "https://proxy.heliax.click/internal-devnet-6be.86067e06a5" | ||
- name: Deploy to Netlify | ||
uses: nwtgck/[email protected] | ||
with: | ||
publish-dir: "./apps/namada-interface/build" | ||
production-branch: main | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
deploy-message: "deploy ${{ github.event.number }} at creating a PR" | ||
alias: pull-request-${{ github.event.number }} | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_ACCESS_TOKEN_WALLET_PREVIEW }} | ||
NETLIFY_SITE_ID: 1f548c68-c620-4522-97e0-0d85c08366fb | ||
# namada.me | ||
# NETLIFY_SITE_ID: 2380782e-9b20-477a-bc27-b4e9d05e16f3 | ||
|
||
- name: Slack Notification | ||
run: | | ||
curl --header "Content-Type: application/json" \ | ||
--request POST \ | ||
--data '{"message":"New deployment for a PR\nhttps://pull-request-${{ github.event.number }}--wallet-development-heliax-dev.netlify.app\n \nthe PR\nhttps://github.com/anoma/namada-interface/pull/${{ github.event.number }}"}' \ | ||
${{ secrets.SLACK_WEBHOOK_WALLET_PR }} | ||
#- name: Deploy to Netlify | ||
# uses: nwtgck/[email protected] | ||
# with: | ||
# publish-dir: "./apps/namada-interface/build" | ||
# production-branch: main | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
# deploy-message: "deploy ${{ github.event.number }} at creating a PR" | ||
# alias: pull-request-${{ github.event.number }} | ||
# env: | ||
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_ACCESS_TOKEN_WALLET_PREVIEW }} | ||
# NETLIFY_SITE_ID: 1f548c68-c620-4522-97e0-0d85c08366fb | ||
# # namada.me | ||
# # NETLIFY_SITE_ID: 2380782e-9b20-477a-bc27-b4e9d05e16f3 | ||
|
||
#- name: Slack Notification | ||
# run: | | ||
# curl --header "Content-Type: application/json" \ | ||
# --request POST \ | ||
# --data '{"message":"New deployment for a PR\nhttps://pull-request-${{ github.event.number }}--wallet-development-heliax-dev.netlify.app\n \nthe PR\nhttps://github.com/anoma/namada-interface/pull/${{ github.event.number }}"}' \ | ||
# ${{ secrets.SLACK_WEBHOOK_WALLET_PR }} | ||
E2E-tests: | ||
needs: build | ||
timeout-minutes: 60 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,7 @@ target/ | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
masp-params/*.params | ||
.direnv/ | ||
trees/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
build | ||
*.lock | ||
trees |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Specify the following if you wish to override the defaults defined in @anoma/chains: | ||
|
||
# NAMADA | ||
REACT_APP_NAMADA_ALIAS=Namada Testnet | ||
REACT_APP_NAMADA_CHAIN_ID=dev-test.42324e8e5d09b566a0700 | ||
REACT_APP_NAMADA_URL=http://127.0.0.1:27657 | ||
REACT_APP_NAMADA_BECH32_PREFIX=atest | ||
REACT_APP_NAMADA_FAUCET_ADDRESS=atest1v4ehgw368pprgvjygv652w2yg3znvd69xucnvde3xaz5ysenx5myx3f389z5yv3nxg65xv3kx0fkez | ||
REACT_APP_NAMADA_FAUCET_LIMIT=1000 | ||
|
||
# COSMOS | ||
REACT_APP_COSMOS_ALIAS=Cosmos Testnet | ||
REACT_APP_COSMOS_CHAIN_ID=cosmoshub-4 | ||
REACT_APP_COSMOS_URL=https://rpc.sentry-01.theta-testnet.polypore.xyz | ||
|
||
# OSMOSIS | ||
REACT_APP_OSMOSIS_ALIAS=Osmosis Testnet | ||
REACT_APP_OSMOSIS_CHAIN_ID=osmosis-testnet.123412341234 | ||
REACT_APP_OSMOSIS_URL=http://127.0.0.1:54321 | ||
|
||
# ETH | ||
REACT_APP_ETH_ALIAS=Eth Testnet | ||
REACT_APP_ETH_CHAIN_ID="0x7A69" | ||
REACT_APP_ETH_URL=http://127.0.0.1:12345 | ||
|
||
# ETH smart contracts | ||
CONTRACT_ADDR_ETH_BRIDGE="0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9" | ||
|
||
MASP_PARAMS_PATH=http://127.0.0.1:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
NAMADA_BIN_DIR="$HOME/src/namada/target/debug" | ||
NAMADA_BASE_DIR=".namada/basedir" | ||
|
||
$NAMADA_BIN_DIR/namada --base-dir $NAMADA_BASE_DIR "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
#!/bin/bash -x | ||
#!/usr/bin/env bash | ||
|
||
NAMADA_DIR=".namada" | ||
NAMADA_BASE_DIR=".namada/basedir" | ||
CURRENT_DIR=$(pwd) | ||
|
||
NAMADA_DIR="$HOME/src/namada" | ||
NAMADA_BASE_DIR="$CURRENT_DIR/.namada/basedir" | ||
|
||
CONFIG="${NAMADA_BASE_DIR}/global-config.toml" | ||
CHAIN_ID="" | ||
|
||
# Read CHAIN_ID from global-config.toml | ||
while read -r line; | ||
while read -r line; | ||
do | ||
CHAIN_ID=$(echo "$line" | sed "s/default_chain_id = \"//g" | sed "s/\"//"); | ||
|
||
done < "$CONFIG" | ||
|
||
# Start the chain | ||
NAMADA_LOG=debug "${NAMADA_DIR}/namadan" --chain-id ${CHAIN_ID} --base-dir ${NAMADA_BASE_DIR}/${CHAIN_ID}/setup/validator-0/.namada ledger | ||
( | ||
cd $NAMADA_DIR | ||
NAMADA_LOG=debug ENV_VAR_MASP_PARAMS_DIR=$CURRENT_DIR/../masp-params \ | ||
nix develop -c ./target/debug/namadan --chain-id ${CHAIN_ID} --base-dir ${NAMADA_BASE_DIR}/${CHAIN_ID}/setup/validator-0/.namada ledger | ||
) |
Oops, something went wrong.