Skip to content

Commit 82ecde3

Browse files
authored
Merge branch 'dev' into migrate-to-react-19-rc
2 parents d773dd9 + 7e0e18f commit 82ecde3

File tree

11 files changed

+54
-34
lines changed

11 files changed

+54
-34
lines changed

RELEASE_NOTES.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11

2+
# Version: 0.0.126
3+
4+
Oh look, we did some things. Surprise, surprise.
5+
6+
To start, we improved the code structure in `App.tsx` and `WalletCard.tsx`. It's not like you'd notice, but we spent a bazillion cups of coffee to tweak that, so humor us. It was also necessary due to life-or-death alignment issues that lasted for approximately millimeters.
7+
8+
Speaking of `WalletCard.tsx`, borderline ground-breaking changes have been made to the class names handling of the 'connected' badge. Breaking news, right?
9+
10+
Since we were in a rather jolly mood, we boosted up the version of `lasereyes-core` to 0.0.48. Just making sure that the freshness of the code aligns with our coffee.
11+
12+
Speaking of soaring numbers, `lasereyes-react` is now at version 0.0.43, and `lasereyes-vue` hit version 0.0.9. Clearly, you see we've been busy.
13+
14+
But the pièce de résistance of this update - the `OpNetProvider`. After hours of soul-searching, we've reenabled it in our core client. Also, we beat around the bush in its code, because let's not lie, we all have those 'what was I thinking?' moments. I mean come on, we're coders, not fortune tellers.
15+
16+
Oh and remember `getBTCBalance`? Neither do we. So we sent it to a very long vacation. It won't be missed.
17+
18+
And guess what? We even updated the provider enumerator and added the `OP_NET` in supported wallets. Yes, hold your breaths – we are revolutionary like that.
19+
20+
No, there is no need to thank us.
21+
222
# Release Notes
323

424
## Version: 0.0.125-rc.8

apps/demo.lasereyes.build/components/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ const App = ({ setNetwork }: { setNetwork: (n: NetworkType) => void }) => {
4949
const [signedPsbt, setSignedPsbt] = useState<
5050
| string
5151
| {
52-
signedPsbtHex: string
53-
signedPsbtBase64: string
54-
}
52+
signedPsbtHex: string
53+
signedPsbtBase64: string
54+
}
5555
| undefined
5656
>()
5757
type colorsType =

apps/demo.lasereyes.build/components/WalletCard.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ const WalletCard = ({
5959
setSignedPsbt: (
6060
psbt:
6161
| {
62-
signedPsbtHex: string
63-
signedPsbtBase64: string
64-
txId?: string
65-
}
62+
signedPsbtHex: string
63+
signedPsbtBase64: string
64+
txId?: string
65+
}
6666
| undefined
6767
) => void
6868
}) => {
@@ -140,12 +140,12 @@ const WalletCard = ({
140140
paymentAddress,
141141
paymentPublicKey,
142142
network as
143-
| typeof MAINNET
144-
| typeof TESTNET
145-
| typeof TESTNET4
146-
| typeof SIGNET
147-
| typeof FRACTAL_MAINNET
148-
| typeof FRACTAL_TESTNET
143+
| typeof MAINNET
144+
| typeof TESTNET
145+
| typeof TESTNET4
146+
| typeof SIGNET
147+
| typeof FRACTAL_MAINNET
148+
| typeof FRACTAL_TESTNET
149149
)
150150
.then((psbt) => {
151151
if (psbt && psbt.toHex() !== unsigned) {
@@ -423,8 +423,8 @@ const WalletCard = ({
423423
<Badge
424424
variant={isConnected ? 'success' : 'outline'}
425425
className={cn(
426-
'text-gray-500 border-gray-500',
427-
isConnected ? 'text-white ' : ''
426+
'text-gray-500 border-gray-600',
427+
isConnected ? 'text-gray-900 border-gray-900' : ''
428428
)}
429429
>
430430
{isConnected ? 'connected' : 'disconnected'}

packages/lasereyes-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@omnisat/lasereyes-core",
33
"private": false,
4-
"version": "0.0.48-rc.0",
4+
"version": "0.0.49-rc.0",
55
"type": "module",
66
"main": "./dist/index.umd.cjs",
77
"module": "./dist/index.js",

packages/lasereyes-core/src/client/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
LEATHER,
66
MAGIC_EDEN,
77
OKX,
8-
// OP_NET,
8+
OP_NET,
99
ORANGE,
1010
OYL,
1111
PHANTOM,
@@ -28,7 +28,7 @@ import OrangeProvider from './providers/orange'
2828
import OkxProvider from './providers/okx'
2929
import MagicEdenProvider from './providers/magic-eden'
3030
import PhantomProvider from './providers/phantom'
31-
// import OpNetProvider from './providers/op-net'
31+
import OpNetProvider from './providers/op-net'
3232

3333
export class LaserEyesClient {
3434
readonly $store: MapStore<LaserEyesStoreType>
@@ -52,7 +52,7 @@ export class LaserEyesClient {
5252
[LEATHER]: new LeatherProvider(stores, this, config),
5353
[MAGIC_EDEN]: new MagicEdenProvider(stores, this, config),
5454
[OKX]: new OkxProvider(stores, this, config),
55-
// [OP_NET]: new OpNetProvider(stores, this, config),
55+
[OP_NET]: new OpNetProvider(stores, this, config),
5656
[ORANGE]: new OrangeProvider(stores, this, config),
5757
[OYL]: new OylProvider(stores, this, config),
5858
[PHANTOM]: new PhantomProvider(stores, this, config),

packages/lasereyes-core/src/client/providers/op-net.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as bitcoin from 'bitcoinjs-lib'
22
import { WalletProvider } from '.'
33
import { getNetworkForUnisat, getUnisatNetwork } from '../../constants/networks'
44
import { NetworkType, ProviderType } from '../../types'
5-
import { getBTCBalance } from '../../lib/helpers'
65
import { OP_NET } from '../../constants/wallets'
76
import { listenKeys } from 'nanostores'
87

@@ -106,10 +105,7 @@ export default class OpNetProvider extends WalletProvider {
106105
this.switchNetwork(network)
107106
}
108107
})
109-
// TODO: Confirm if this is necessary and why
110-
getBTCBalance(opNetAccounts[0], this.network).then((totalBalance) => {
111-
this.$store.setKey('balance', totalBalance)
112-
})
108+
113109
this.$store.setKey('connected', true)
114110
}
115111

@@ -143,10 +139,10 @@ export default class OpNetProvider extends WalletProvider {
143139
broadcast?: boolean | undefined
144140
): Promise<
145141
| {
146-
signedPsbtHex: string | undefined
147-
signedPsbtBase64: string | undefined
148-
txId?: string | undefined
149-
}
142+
signedPsbtHex: string | undefined
143+
signedPsbtBase64: string | undefined
144+
txId?: string | undefined
145+
}
150146
| undefined
151147
> {
152148
const signedPsbt = await this.library?.signPsbt(psbtHex, {
@@ -192,6 +188,5 @@ export default class OpNetProvider extends WalletProvider {
192188
const wantedNetwork = getUnisatNetwork(network)
193189
await this.library?.switchChain(wantedNetwork)
194190
this.$network.set(network)
195-
await this.getBalance()
196191
}
197192
}

packages/lasereyes-core/src/constants/wallets.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ enum ProviderEnumMap {
2222
LEATHER = 'leather',
2323
MAGIC_EDEN = 'magic-eden',
2424
OKX = 'okx',
25-
WIZZ = 'wizz',
25+
OP_NET = 'op_net',
2626
ORANGE = 'orange',
2727
OYL = 'oyl',
2828
PHANTOM = 'phantom',
2929
UNISAT = 'unisat',
30+
WIZZ = 'wizz',
3031
XVERSE = 'xverse',
3132
}
3233

@@ -50,6 +51,10 @@ export const SUPPORTED_WALLETS: WalletInfo = {
5051
name: ProviderEnumMap.OKX,
5152
url: 'https://chromewebstore.google.com/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge',
5253
},
54+
[ProviderEnumMap.OP_NET]: {
55+
name: ProviderEnumMap.OP_NET,
56+
url: 'https://opnet.org/',
57+
},
5358
[ProviderEnumMap.ORANGE]: {
5459
name: ProviderEnumMap.ORANGE,
5560
url: 'https://www.orangewallet.com/',

packages/lasereyes-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@omnisat/lasereyes-react",
33
"private": false,
4-
"version": "0.0.43-rc.0",
4+
"version": "0.0.44-rc.0",
55
"type": "module",
66
"main": "./dist/index.umd.cjs",
77
"module": "./dist/index.js",

packages/lasereyes-vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@omnisat/lasereyes-vue",
33
"private": false,
4-
"version": "0.0.9-rc.0",
4+
"version": "0.0.10-rc.0",
55
"type": "module",
66
"files": [
77
"dist"

packages/lasereyes/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"url": "https://github.com/omnisat/lasereyes-mono.git"
2121
},
2222
"private": false,
23-
"version": "0.0.126-rc.0",
23+
"version": "0.0.127-rc.0",
2424
"type": "module",
2525
"main": "./dist/index.umd.cjs",
2626
"module": "./dist/index.js",

scripts/generate_release_notes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
response = openai.ChatCompletion.create(
1717
model="gpt-4",
1818
messages=[
19-
{"role": "system", "content": "You are a passive aggressive release note generator. Create detailed, sometimes hilarious release notes based on the git diff provided. Always ensure you are informative and helpful. On a humor scale of 1-10, you're a 3, but you don't share it very often.. YOU MUST BE INFORMATIVE, please. remember these are release notes. Don't mention anything about the lock file or about anything ot her then the main version changes."},
19+
{"role": "system", "content": "You are a passive aggressive release note generator. Create detailed, sometimes hilarious release notes based on the git diff provided. Always ensure you are informative and helpful. On a humor scale of 1-10, you're a 3, but you don't share it very often. All versions will be in rc form, patch them. so any version you see that's 0.0.43-rc, should be converted to 0.0.43. YOU MUST BE INFORMATIVE, please. remember these are release notes. Don't mention anything about the lock file or about anything ot her then the main version changes."},
2020
{"role": "user", "content": f"Version: {version}\n{diff_content}"}
2121
]
2222
)

0 commit comments

Comments
 (0)