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

Tom/add link to demo #14

Draft
wants to merge 116 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
f779bb8
Update README.md
bvotteler Oct 31, 2023
a026245
feat: first cut at adding a RemoteSigner (incomplete for now) for btc…
bvotteler Oct 31, 2023
a749d3b
wip: list ordinals and change routing
tomjeatt Oct 31, 2023
943995d
implement metamask connection logic
tomjeatt Nov 1, 2023
0aa3f59
Merge branch 'tom/list-ordinals' into tom/wallet-changes
tomjeatt Nov 1, 2023
183ae67
wip: inscription hook
tomjeatt Nov 1, 2023
aabd0a8
wip: inscription ids
tomjeatt Nov 1, 2023
9bf627a
implement getPublicKey method for BtcSnapSigner
bvotteler Nov 1, 2023
1789c24
added placeholder code in comments to be done later when we have the …
bvotteler Nov 2, 2023
f678e5f
wip: inscription call
tomjeatt Nov 3, 2023
6d6be66
feat: copied unpublished methods and type declarations from bob sdk f…
bvotteler Nov 6, 2023
e367c33
wip: unisat testnet endpoint
tomjeatt Nov 6, 2023
eb44049
Merge branch 'tom/wallet-changes' of github.com:bob-collective/demo-b…
tomjeatt Nov 6, 2023
5cce099
fix: convert vpub into xpub.tpub format before deriving and getting p…
bvotteler Nov 7, 2023
2648a90
fix incorrect derives when getting pubkey
bvotteler Nov 7, 2023
d4d136e
revert transfer page, fix sendToAddress
gregdhill Nov 8, 2023
d2d1f32
use bitcoinjs lib for metamask connect
gregdhill Nov 8, 2023
47c55b2
Merge pull request #2 from bob-collective/tom/wallet-changes
gregdhill Nov 8, 2023
5b49371
strip out commented/redundant code
tomjeatt Nov 8, 2023
b24ede8
strip out unused methods
tomjeatt Nov 8, 2023
9f529a1
remove api key
tomjeatt Nov 8, 2023
c3213ad
wip: separate connection and address logic
tomjeatt Nov 9, 2023
90a4ec9
wip: strip out unused logic
tomjeatt Nov 9, 2023
7980818
update to use btcsnap fork
gregdhill Nov 10, 2023
1b25888
wip
tomjeatt Nov 10, 2023
5c418f2
Merge pull request #3 from bob-collective/greg/btcsnap
gregdhill Nov 13, 2023
4ae7567
add ordinal transfer tab and logic
gregdhill Nov 13, 2023
210383b
wip: persist BTC address
tomjeatt Nov 13, 2023
3339d18
wip: connection/disconnection logic
tomjeatt Nov 13, 2023
995d0b4
remove hardcoded BTC address and unused hook value
tomjeatt Nov 13, 2023
af904c4
no message
tomjeatt Nov 14, 2023
c53c6a6
add missing method
tomjeatt Nov 14, 2023
8cbc3e7
delete unused hook
tomjeatt Nov 14, 2023
a288b81
fix snapId path
tomjeatt Nov 14, 2023
8143086
Revert "fix snapId path"
tomjeatt Nov 14, 2023
b3d5c7a
Merge pull request #4 from bob-collective/transfer-ordinal
gregdhill Nov 14, 2023
0724e1a
Merge branch 'main' into tom/ui
tomjeatt Nov 14, 2023
8bf5362
Merge pull request #5 from bob-collective/tom/ui
gregdhill Nov 14, 2023
22f82b5
show account inscriptions
gregdhill Nov 14, 2023
6202789
Merge pull request #6 from bob-collective/inscriptions
gregdhill Nov 14, 2023
23b3dc3
chore: remove unused server directory
tomjeatt Nov 14, 2023
d446e1e
refactor: delete unused files
tomjeatt Nov 14, 2023
cceaa81
refactor: move CTA position
tomjeatt Nov 15, 2023
72a78b6
wip: use get balance hook
tomjeatt Nov 15, 2023
a3af2a3
Revert "wip: use get balance hook"
tomjeatt Nov 15, 2023
cc11cf1
Revert "refactor: move CTA position"
tomjeatt Nov 15, 2023
9bdeb9c
refactor: move CTA
tomjeatt Nov 15, 2023
919bc0d
wip: useGetBalance hook
tomjeatt Nov 15, 2023
faa3a4a
wip: render inscription form in modal
tomjeatt Nov 15, 2023
c29a811
wip: render transfer form in modal
tomjeatt Nov 15, 2023
7455d05
wip: render inscription in modal
tomjeatt Nov 15, 2023
22ca0da
wip: log out ids and show full BTC address
tomjeatt Nov 15, 2023
b66ed26
wip: inscription table
tomjeatt Nov 15, 2023
66d55d9
wip: update CTA styles
tomjeatt Nov 15, 2023
49dfdc3
refactor: change logo
tomjeatt Nov 15, 2023
7bf1c1b
wip: tidy up file structure
tomjeatt Nov 20, 2023
5550e47
move inscription from page to component
tomjeatt Nov 20, 2023
82e2037
wip: minor code improvements
tomjeatt Nov 20, 2023
074c1ca
delete redundant files
tomjeatt Nov 20, 2023
7dd58c5
move pages to components directory
tomjeatt Nov 20, 2023
180360b
wip: comment out schemas
tomjeatt Nov 20, 2023
1771f1e
wip: write pending inscriptions to local storage
tomjeatt Nov 21, 2023
695a107
wip: append hardcoded vout
tomjeatt Nov 21, 2023
c6badb7
wip: logging
tomjeatt Nov 21, 2023
84f1b3b
wip: revert changes to store ids in local storage
tomjeatt Nov 22, 2023
10666d7
remove inscription ids from local storage hook
tomjeatt Nov 22, 2023
428b5bc
remove unnecessary routing
tomjeatt Nov 22, 2023
07db9f7
remove pages directory
tomjeatt Nov 22, 2023
901576c
wip: tidy up state names
tomjeatt Nov 22, 2023
634bdcb
Remove pending inscriptions table
tomjeatt Nov 23, 2023
426cb53
chore: tidy up syntax
tomjeatt Nov 23, 2023
9c1d994
fix: when sending btc to an address, only select utxos without inscri…
bvotteler Nov 23, 2023
6bdccff
limit initial utxo selection to confirmed utxos - that way we know th…
bvotteler Nov 23, 2023
808242f
feat: show inscriptions in mempool
gregdhill Nov 23, 2023
af50e9a
Merge pull request #8 from bob-collective/brendon/fix-use-safe-utxo-w…
gregdhill Nov 23, 2023
5351ff6
add footer links
tomjeatt Nov 23, 2023
a49bb97
Merge branch 'main' into tom/refactor-ui
tomjeatt Nov 23, 2023
c5c0056
remove obsolete import
tomjeatt Nov 23, 2023
543b463
remove console log
tomjeatt Nov 23, 2023
b53cb16
Merge pull request #9 from bob-collective/feat/mempool-inscriptions
tomjeatt Nov 23, 2023
30aef69
wip: show pending inscriptions
tomjeatt Nov 23, 2023
d7b88d0
Merge pull request #7 from bob-collective/tom/refactor-ui
tomjeatt Nov 23, 2023
d81f40e
show pending ordinals
tomjeatt Nov 23, 2023
0f116e6
fix: transfer ordinals correctly
gregdhill Nov 23, 2023
354cdd8
tweak iframe properties
tomjeatt Nov 23, 2023
1e102c4
Merge pull request #11 from bob-collective/fix/ordinal-transfer
tomjeatt Nov 23, 2023
522ab26
Merge branch 'main' into update-get-ordinals
tomjeatt Nov 23, 2023
171a8c7
sort inscription ids
tomjeatt Nov 24, 2023
5b957e1
fix: show transfers in mempool
gregdhill Nov 24, 2023
c776f50
Merge pull request #12 from bob-collective/fix/show-transfers
gregdhill Nov 24, 2023
d453d8f
add form callbacks
tomjeatt Nov 24, 2023
6d46ce0
Merge branch 'main' into update-get-ordinals
tomjeatt Nov 24, 2023
c510b41
feat: add code to inscribe images
gregdhill Nov 24, 2023
8a20354
Merge pull request #10 from bob-collective/update-get-ordinals
gregdhill Nov 24, 2023
7a6f620
Merge pull request #13 from bob-collective/feat/image-inscription
tomjeatt Nov 24, 2023
2100c08
useGetOrdinals hook
tomjeatt Nov 24, 2023
ecaa1f2
refactor inscription fetching logic
tomjeatt Nov 24, 2023
acf7f70
move inscription logic to hook
tomjeatt Nov 24, 2023
dc720bf
remove console logs
tomjeatt Nov 24, 2023
9412507
tidy up iframe source
tomjeatt Nov 24, 2023
9b60fd4
Handle UX for no ordinals
tomjeatt Nov 24, 2023
4934ce1
basic error handling
tomjeatt Nov 27, 2023
1431500
hide CTAs when disconnected from snap
tomjeatt Nov 27, 2023
53c35c1
add copy address behaviour
tomjeatt Nov 27, 2023
133e230
add sorting by height (expect unconfirmed last) when getting inscript…
bvotteler Nov 27, 2023
306fac9
add hover styles
tomjeatt Nov 27, 2023
03ffaca
refetch queries on connect
tomjeatt Nov 27, 2023
f4a0d86
Merge pull request #15 from bob-collective/brendon/chore-inscription-…
tomjeatt Nov 27, 2023
f1433ce
Merge pull request #14 from bob-collective/tom/use-get-ordinals-hook
tomjeatt Nov 27, 2023
0927075
fix type error
tomjeatt Nov 27, 2023
f08b45e
remove console log
tomjeatt Nov 27, 2023
d820e5a
fix: update async-retry import
tomjeatt Nov 28, 2023
0fdfc5a
revert linting changes
tomjeatt Nov 28, 2023
8acf83a
refetch on transfer complete
tomjeatt Nov 28, 2023
2e48a93
Merge pull request #16 from bob-collective/fix/transpilation-build-issue
tomjeatt Nov 28, 2023
441b61e
add info banner
tomjeatt Nov 28, 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
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# BRC20 Octopus

Comprehensive BRC20 / Ordinal web app which can display Bitcoin NFTs and BRC20 balances.
Uses the UniSat Wallet extension to send Bitcoin or Ordinals and inscribe new data.
Uses the Metamask wallet with btcsnap extension to send Bitcoin or Ordinals and inscribe new data.

## Getting Started

1. Follow the instructions in the [`app`](./app) directory to start the web app.
2. In a separate terminal, run the [`server`](./server) to wrap calls to UniSat.

Make sure to set all environment variables correctly, you will need an API key from UniSat.

> Currently only Bitcoin testnet is supported.
> Currently only Bitcoin testnet is supported.
15 changes: 12 additions & 3 deletions app/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<!-- TODO: Use local image rather than pulling in from website -->
<link
href="https://uploads-ssl.webflow.com/64e85c2f3609488b3ed725f4/64ecae53ef4b561482f1c49f_bob1.jpg"
rel="shortcut icon"
type="image/x-icon"
/>
<link
href="https://uploads-ssl.webflow.com/64e85c2f3609488b3ed725f4/64ecae715f5d3632aa4b6905_bob256.jpg"
rel="apple-touch-icon"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>BOB: View and inscribe ordinals</title>
</head>
<body>
<div id="root"></div>
Expand Down
13 changes: 11 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,34 @@
"@interlay/system": "^0.0.1",
"@interlay/theme": "^0.0.6",
"@interlay/ui": "^0.0.7",
"@metamask/providers": "^12.0.0",
"@react-aria/utils": "^3.21.0",
"@tanstack/react-query": "^4.36.1",
"@tanstack/react-query-devtools": "^5.0.3",
"@types/async-retry": "^1.4.7",
"async-retry": "^1.3.3",
"axios": "^1.5.1",
"big.js": "^6.2.1",
"bip32": "^4.0.0",
"bitcoinjs-lib": "^6.1.5",
"bs58check": "^2.1.2",
"coinselect": "^3.1.13",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-modern-drawer": "^1.2.2",
"react-icons": "^4.12.0",
"react-jazzicon": "^1.0.4",
"react-pro-sidebar": "1.1.0-alpha.1",
"react-router-dom": "^6.17.0",
"react-use": "^17.4.0",
"styled-components": "^6.1.0",
"truncate-eth-address": "^1.0.2",
"viem": "^1.18.2",
"vite-plugin-node-polyfills": "^0.15.0",
"yup": "^0.32.11"
},
"devDependencies": {
"@typechain/ethers-v6": "^0.5.0",
"@types/big.js": "^6.2.1",
"@types/bs58check": "^2.1.2",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
Expand Down
Loading