Skip to content

Commit dd57904

Browse files
committed
wip: update
1 parent 1dfa6d6 commit dd57904

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

packages/neuron-wallet/src/controllers/perun.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { Allocation, Balances } from '../utils/perun-wallet-wrapper/wire'
1616
// import PerunPersistorService from '../services/perun/persistor'
1717
// import PerunChannelEntity from '../database/chain/entities/perun-channel'
1818
import { ccc, mol } from "@ckb-ccc/core"
19-
import participant from 'src/services/perun/tools/participant'
19+
import participant from '../services/perun/tools/participant'
2020

2121
const defaultAddressEncoder: AddressEncoder = (add: Uint8Array | string) => {
2222
if (typeof add === 'string') {

packages/neuron-wallet/src/types/controller.d.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,18 @@ declare namespace Controller {
7676
password: string
7777
message: string
7878
}
79-
interface OpenChannelParams {
80-
// me: Uint8Array
81-
// peer: Uint8Array
82-
// balances: [Uint8Array, Uint8Array]
83-
challengeDuration: number
84-
me: { publicKey: string, address: string },
85-
peer: { publicKey: string, address: string },
86-
balances: Array<{
87-
type: null | { codeHash: string, hashType: string, args: string }
88-
balances: [string, string]
89-
}>
90-
}
79+
// interface OpenChannelParams {
80+
// // me: Uint8Array
81+
// // peer: Uint8Array
82+
// // balances: [Uint8Array, Uint8Array]
83+
// challengeDuration: number
84+
// me: { publicKey: string, address: string },
85+
// peer: { publicKey: string, address: string },
86+
// balances: Array<{
87+
// type: null | { codeHash: string, hashType: string, args: string }
88+
// balances: [string, string]
89+
// }>
90+
// }
9191
interface UpdateChannelParams {
9292
channelId: string
9393
index: number
@@ -109,7 +109,7 @@ declare namespace Controller {
109109
type PerunServiceActionParams =
110110
| { type: "startup", payload: PerunChannelServiceRunnerStartupsParams }
111111
| { type: "shutdown" }
112-
| { type: "open", payload: OpenChannelParams }
112+
| { type: "open", payload: PerunAPI.OpenChannelParams }
113113
| { type: "update", payload: UpdateChannelParams }
114114
| { type: "close", payload: CloseChannelParams }
115115
| { type: "get", payload: GetChannelParams }

types/perun.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ declare namespace Perun {
146146

147147
// for web
148148
namespace ReadableMessage {
149-
type HexString = `0x${string}`
149+
type HexString = string // `0x${string}`
150150
type PeerUser = {
151151
publicKey: HexString,
152152
address: string,

0 commit comments

Comments
 (0)