Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test code debugging th ole account switcheroonie problem #221

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
e4a4217
Deposit amount bug (#139)
radicleart May 19, 2023
1cf29c2
Bug: emergency fix.
radicleart May 23, 2023
4f8ff7b
Feat/140 track status of reveal and reclaim transactions (#141)
radicleart May 24, 2023
049812a
Feat/142 qr codes (#144)
radicleart May 30, 2023
16e1d57
Implementation of UI/UX design (#152)
radicleart Jun 19, 2023
7ce18a4
fix: design implementation (#154)
Macxim Jun 22, 2023
a2ce3d3
Feat/153 bug fixes (#155)
radicleart Jun 22, 2023
e03691e
fix: remove Stacks logo in Brand (#156)
Macxim Jun 26, 2023
b8d8b7b
Bug fix: null pointer reading coordinator address
radicleart Jun 26, 2023
768dd8f
Bug: removed reference to window inner width
radicleart Jun 26, 2023
919cbcc
Replace mention and display of sats with btc
radicleart Jun 26, 2023
6995542
Replace mention and display of sats with btc (#158)
radicleart Jun 26, 2023
f2d4f8b
chore: ui tweak
radicleart Jun 26, 2023
928d1b5
Merge branch 'feat/157-replace-satoshis-with-bitcoin'
radicleart Jun 26, 2023
e32cd6c
Consolidate linodes and run bitcoin mainnet next to testnet (#167)
radicleart Jun 27, 2023
bd0894d
Chore: improved the server error text
radicleart Jun 28, 2023
cf5991c
Chore(deps-dev): Bump svelte from 3.59.1 to 3.59.2 (#161)
dependabot[bot] Jun 28, 2023
eff0506
Chore(deps-dev): Bump @sveltejs/kit from 1.20.4 to 1.20.5 (#162)
dependabot[bot] Jun 28, 2023
a7cffac
Chore(deps-dev): Bump @typescript-eslint/parser from 5.59.11 to 5.60.…
dependabot[bot] Jun 28, 2023
80af708
fix: menu responsive (#159)
Macxim Jun 28, 2023
23c4fb4
[Deposit flow] fix: design implementation (#160)
Macxim Jun 28, 2023
a50ad75
feat: add page title (#169)
Macxim Jul 2, 2023
5757eeb
feat: move buttons inside NavUl>NavLi (#170)
Macxim Jul 2, 2023
d0e55a6
fix: design implementation (#168)
Macxim Jul 2, 2023
f3f57b0
Chore(deps-dev): Bump tslib from 2.5.3 to 2.6.0 (#163)
dependabot[bot] Jul 2, 2023
605941f
Chore(deps): Bump svelte-local-storage-store from 0.4.0 to 0.5.0 (#165)
dependabot[bot] Jul 2, 2023
21856a0
Chore(deps-dev): Bump typescript from 5.1.3 to 5.1.6 (#171)
dependabot[bot] Jul 2, 2023
6aaafa9
Chore(deps-dev): Bump @sveltejs/kit from 1.20.5 to 1.21.0 (#172)
dependabot[bot] Jul 2, 2023
d6b41ad
Chore(deps): Bump flowbite-svelte from 0.37.5 to 0.39.1 (#173)
dependabot[bot] Jul 2, 2023
2b40ac5
chore: remove unused function
radicleart Jul 3, 2023
4e28999
Feat/183 currency support (#185)
radicleart Jul 15, 2023
8bdc1e9
Bug: pubkey from contrat failed to parse to correct taproot address (…
radicleart Jul 15, 2023
bef5458
Bug fix - hide the multi currency support until design is ready.
radicleart Jul 15, 2023
7e50711
Bug: Signature is over the amount and the users bitcoin address
radicleart Jul 20, 2023
f9a48fc
Bug: Signature is over the amount and the users bitcoin address (#192)
radicleart Jul 20, 2023
a7e1f43
Support sBTC alpha using bridge as tx generation tool (#193)
radicleart Jul 26, 2023
df0d11d
Merge branch 'feat/191-bug-signature-is-over-the-amount-and-the-users…
radicleart Jul 26, 2023
c394d92
Currency and denomination handling (#200)
radicleart Aug 7, 2023
8d19fe2
Separate sBTC alpha deployment (#202)
radicleart Aug 7, 2023
d119093
no message (#205)
radicleart Aug 11, 2023
68bb29e
Feat/204 support psbt signing in xverse (#208)
radicleart Aug 15, 2023
0e08f8d
fix: design implementation for Settings page (#206)
Macxim Aug 15, 2023
10e7363
Feat/209 simnet for bridge and mini contracts (#211)
radicleart Aug 23, 2023
7c960d3
Feat/213 hiro wallet bug (#219)
radicleart Sep 4, 2023
345a05a
Test code debugging th ole account switcheroonie problem
radicleart Sep 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['svelte3', '@typescript-eslint'],
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': () => require('typescript')
},
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
}
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ node_modules
/build
/.svelte-kit
/package
.vercel
.output
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
/out/mainnet
/out/testnet
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
engine-strict=true
resolution-mode=highest
42 changes: 22 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,28 @@ defi protocols, nft marketplaces, governance and many more applications.

[sbtc.world](https://sbtc.world).

## Development

```bash
node -v
v18.14.2
npm install
npm install sass
npm run dev
# or
npm run dev -- --open
```

### Deployment

First build the application;

```bash
npm run build
```

Note you can preview the production build locally with `npm run preview`.

## Testnet

App has been tested with the Electrum wallet. On MacOs open Electrum wallet on testnet;
Expand Down Expand Up @@ -63,26 +85,6 @@ Trezor hardware wallet can be paired with Electrum

Transaction signing error: -22: TX decode failed. Make sure the tx has at least one input.

## Development

```bash
npm install
npm install sass
npm run dev
# or
npm run dev -- --open
```

### Deployment

First build the application;

```bash
npm run build
```

Note you can preview the production build locally with `npm run preview`.

#### Github Pages

Requires access to github settings and for a branch `gh-pages` to be created from `main`.
Expand Down
16 changes: 8 additions & 8 deletions deploy-dev.sh → deploy-linode-alpha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
set -e;

export DEPLOYMENT=$1
export PORT=22
export PORT=7019

PATH_DEPLOY=build
mkdir -p $PATH_DEPLOY
export SERVER=popper.brightblock.org
export BUILDER=build-linode
if [ "$DEPLOYMENT" == "prod" ]; then
SERVER=chomsky.brightblock.org;
BUILDER=build
PORT=7019
export SERVER=chomsky.brightblock.org
export BUILDER=build
if [ "$DEPLOYMENT" == "stag" ]; then
SERVER=popper.brightblock.org;
BUILDER=build-linode
PORT=22
fi

printf "\n-----------------------------------------------------------------------------------------------------\n";
Expand All @@ -26,7 +26,7 @@ function __build() {

function __pushcode() {
echo "\n- deploying from pipeline build \n";
rsync -aP $PATH_DEPLOY/* static/* bob@$SERVER:/var/www/sbtc-bridge
rsync -aP -e "ssh -p $PORT" $PATH_DEPLOY/* static/* bob@$SERVER:/var/www/sbtc-alpha
}

BUILD_PATH=./
Expand Down
37 changes: 37 additions & 0 deletions deploy-linode.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash -e
set -e;

export DEPLOYMENT=$1
export PORT=7019

PATH_DEPLOY=build
mkdir -p $PATH_DEPLOY
export SERVER=chomsky.brightblock.org
export BUILDER=build
if [ "$DEPLOYMENT" == "stag" ]; then
SERVER=popper.brightblock.org;
BUILDER=build-linode
PORT=22
fi

printf "\n-----------------------------------------------------------------------------------------------------\n";
printf "Running script: $0 \n";
printf "Deploying to: $SERVER \n";
printf "\n-----------------------------------------------------------------------------------------------------\n";

function __build() {
npm run $BUILDER
echo "Initialisation of $BUILD_PATH complete";
}

function __pushcode() {
echo "\n- deploying from pipeline build \n";
rsync -aP -e "ssh -p $PORT" $PATH_DEPLOY/* static/* bob@$SERVER:/var/www/sbtc-bridge
}

BUILD_PATH=./
__build

__pushcode

exit 0;
Loading