Skip to content

Commit

Permalink
Merge pull request #12 from MultipleChain/beycan
Browse files Browse the repository at this point in the history
Beycan
  • Loading branch information
0xBeycan authored May 23, 2024
2 parents aec442c + 35c26e4 commit 4812df9
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
5 changes: 3 additions & 2 deletions packages/networks/bitcoin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@multiplechain/bitcoin",
"version": "0.4.0",
"version": "0.4.1",
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.es.js",
Expand Down Expand Up @@ -80,6 +80,7 @@
"ws": "^8.17.0"
},
"devDependencies": {
"@types/bitcore-lib": "^0.15.6"
"@types/bitcore-lib": "^0.15.6",
"@types/ws": "^8.5.10"
}
}
4 changes: 3 additions & 1 deletion packages/networks/bitcoin/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/networks/bitcoin/src/services/TransactionListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export class TransactionListener<
this.webSocket.send(message)
})

this.webSocket.addEventListener('message', async (res) => {
this.webSocket.addEventListener('message', async (res: WebSocket.MessageEvent) => {
const values = this.getValues(JSON.parse(res.data as string))

if (
Expand Down Expand Up @@ -291,7 +291,7 @@ export class TransactionListener<
this.webSocket.send(message)
})

this.webSocket.addEventListener('message', async (res) => {
this.webSocket.addEventListener('message', async (res: WebSocket.MessageEvent) => {
const data = JSON.parse(res.data as string)

interface ParamsType {
Expand Down
2 changes: 1 addition & 1 deletion packages/networks/tron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@multiplechain/tron",
"version": "0.4.0",
"version": "0.4.1",
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.es.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/networks/tron/src/services/TronWeb.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import TronWebBase from 'tronweb'
import type { TransactionRawData } from '../assets/Contract.ts'
import type { TransactionData } from './TransactionSigner.ts'
import type { TransactionRawData } from '../assets/Contract.ts'

export class TronWeb extends TronWebBase {
/**
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
"vite-env.d.ts",
"esbuild.ts",
],
"exclude": ["node_modules", "dist", "packages/**/*.d.ts", "test*.ts"]
"exclude": ["node_modules", "dist", "test*.ts"]
}

0 comments on commit 4812df9

Please sign in to comment.