Skip to content

Commit

Permalink
Add WiserSwap app.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ava's DAO committed Sep 21, 2023
1 parent 09a10b3 commit 38e89a4
Show file tree
Hide file tree
Showing 36 changed files with 8,288 additions and 1 deletion.
2 changes: 1 addition & 1 deletion swap/pages/order/[orderid].vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const init = async () => {
depositAddress.value = order.value.depositAddress
generateQR(`order.value.depositAddress?amount=1.337`)
generateQR(`${order.value.depositAddress}?amount=0.001337`)
setInterval(startWatching, MONITORING_INTERVAL)
}
Expand Down
55 changes: 55 additions & 0 deletions wiser/.env.complete
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
################################################################################
#
# Project Environment Variables
# -----------------------------
#
# Edit your environment variables below.
#
# NOTE: These values correspond to the `runtimeConfig` section of your
# `nuxt.config.ts` file in the project root.
#
################################################################################

# The following values will be automatically populated after you complete
# the Studio Creation Wizard.

# Project ID
# This is the Script Public Key Hash for the project mnemonic
# at the (default) derivation path (m/44'/29223'/0'/0/0).
PROJECT_ID=%%PROJECT_ID%%

# Project Name
PROJECT_NAME="%%PROJECT_NAME%%"

# Project Mnemonic
PROJECT_MNEMONIC="%%PROJECT_MNEMONIC%%"

#-------------------------------------------------------------------------------

# The following values available to popular 3rd-party Providers that may
# offer specific services and an overall enhanced user experience (UX).

# NexaShell API Key
# Enables premium access and expanded data limits on the NexaShell platform.
#NEXASH_API_KEY=

# Coin Market Cap API
# Allows direct access to their market data.
#CMC_API_KEY=

#-------------------------------------------------------------------------------

# The following configuration options are for ADVANCED USE ONLY,
# and typically DO NOT have to be changed for most use-cases.

# (Default) GraphQL Provider
DEFAULT_GRAPHQL_PROVIDER=https://nexa.sh/graphql

# (Default) JSON REST Provider
DEFAULT_REST_PROVIDER=https://nexa.sh/v1

# (Default) Rostrum Provider
DEFAULT_ROSTRUM_PROVIDER=wss://rostrum.nexa.org:20004

# Provider Threshold
PROVIDER_THRESHOLD=1 # REDUCED FROM (2) FOR TESTING ONLY
25 changes: 25 additions & 0 deletions wiser/.env.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
################################################################################
#
# Project Environment Variables
# -----------------------------
#
# Edit your environment variables below.
#
# NOTE: These values correspond to the `runtimeConfig` section of your
# `nuxt.config.ts` file in the project root.
#
################################################################################

# The following values will be automatically populated after you complete
# the Studio Creation Wizard.

# Project ID
# This is the Script Public Key Hash for the project mnemonic
# at the (default) derivation path (m/44'/29223'/0'/0/0).
PROJECT_ID=%%PROJECT_ID%%

# Project Name
PROJECT_NAME="%%PROJECT_NAME%%"

# Project Mnemonic
PROJECT_MNEMONIC="%%PROJECT_MNEMONIC%%"
218 changes: 218 additions & 0 deletions wiser/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,218 @@
# Created by https://www.toptal.com/developers/gitignore/api/node,linux,windows,macos
# Edit at https://www.toptal.com/developers/gitignore?templates=node,linux,windows,macos

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### macOS Patch ###
# iCloud generated files
*.icloud

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

### Node Patch ###
# Serverless Webpack directories
.webpack/

# Optional stylelint cache

# SvelteKit build / generate output
.svelte-kit

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/node,linux,windows,macos
2 changes: 2 additions & 0 deletions wiser/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
15 changes: 15 additions & 0 deletions wiser/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:18

RUN mkdir /usr/src/app
WORKDIR /usr/src/app
ENV PATH /usr/src/app/node_modules/.bin:$PATH

COPY package.json /usr/src/app/package.json
RUN yarn install --silent

COPY . /usr/src/app
RUN yarn run build

EXPOSE 3000

CMD ["node", ".output/server/index.mjs"]
42 changes: 42 additions & 0 deletions wiser/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# NexaJS Vue + TypeScript Boilerplate

Look at the [NexaJS documentation](https://docs.nexajs.org) to learn more.

## Setup

Make sure to install the dependencies:

```bash
# yarn
yarn install

# npm
npm install

# pnpm
pnpm install
```

## Development Server

Start the development server on http://localhost:3000

```bash
npm run dev
```

## Production

Build the application for production:

```bash
npm run build
```

Locally preview production build:

```bash
npm run preview
```

Check out the [deployment documentation](https://docs.nexajs.org/deployment) for more information.
9 changes: 9 additions & 0 deletions wiser/assets/nexa.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 38e89a4

Please sign in to comment.