File tree Expand file tree Collapse file tree 13 files changed +79
-29
lines changed
wallet-dapp-remote-rpc-client
sdk/dapp-sdk/src/dapp-api/rpc-gen
extension/src/dapp-api/rpc-gen Expand file tree Collapse file tree 13 files changed +79
-29
lines changed Original file line number Diff line number Diff line change 529529 "type" : " string" ,
530530 "description" : " If not connected to a network, the reason why."
531531 },
532+ "userUrl" : {
533+ "$ref" : " #/components/schemas/UserUrl"
534+ },
532535 "network" : {
533536 "title" : " network" ,
534537 "type" : " object" ,
575578 "required" : [" accessToken" , " userId" ]
576579 }
577580 },
578- "required" : [" kernel" , " isConnected" , " isNetworkConnected" ]
581+ "required" : [
582+ " kernel" ,
583+ " isConnected" ,
584+ " isNetworkConnected" ,
585+ " userUrl"
586+ ]
579587 }
580588 }
581589 }
Original file line number Diff line number Diff line change 558558 "type" : " string" ,
559559 "description" : " If not connected to a network, the reason why."
560560 },
561+ "userUrl" : {
562+ "$ref" : " #/components/schemas/UserUrl"
563+ },
561564 "network" : {
562565 "title" : " network" ,
563566 "type" : " object" ,
604607 "required" : [" accessToken" , " userId" ]
605608 }
606609 },
607- "required" : [" kernel" , " isConnected" , " isNetworkConnected" ]
610+ "required" : [
611+ " kernel" ,
612+ " isConnected" ,
613+ " isNetworkConnected" ,
614+ " userUrl"
615+ ]
608616 }
609617 }
610618 }
Original file line number Diff line number Diff line change 33 "version" : " 0.9.1" ,
44 "type" : " module" ,
55 "description" : " TypeScript client generated by OpenRPC" ,
6+ "repository" : " github:hyperledger-labs/splice-wallet-kernel" ,
67 "license" : " Apache-2.0" ,
78 "main" : " dist/index.cjs" ,
89 "module" : " dist/index.js" ,
4344 "tsup" : " ^8.5.1" ,
4445 "typedoc" : " ^0.28.14" ,
4546 "typescript" : " ^5.9.3"
46- },
47- "repository" : {
48- "type" : " git" ,
49- "url" : " git+https://github.com/hyperledger-labs/splice-wallet-kernel.git" ,
50- "directory" : " core/wallet-dapp-remote-rpc-client"
5147 }
5248}
Original file line number Diff line number Diff line change @@ -134,6 +134,12 @@ export type IsNetworkConnected = boolean
134134 *
135135 */
136136export type NetworkReason = string
137+ /**
138+ *
139+ * A URL that points to a user interface.
140+ *
141+ */
142+ export type UserUrl = string
137143/**
138144 *
139145 * The network ID the wallet corresponds to.
@@ -192,6 +198,7 @@ export interface StatusEvent {
192198 isConnected : IsConnected
193199 isNetworkConnected : IsNetworkConnected
194200 networkReason ?: NetworkReason
201+ userUrl : UserUrl
195202 network ?: Network
196203 session ?: Session
197204 [ k : string ] : any
@@ -226,12 +233,6 @@ export interface JsPrepareSubmissionResponse {
226233 preparedTransactionHash ?: PreparedTransactionHash
227234 [ k : string ] : any
228235}
229- /**
230- *
231- * A URL that points to a user interface.
232- *
233- */
234- export type UserUrl = string
235236export type Response = string
236237/**
237238 *
Original file line number Diff line number Diff line change 558558 "type" : " string" ,
559559 "description" : " If not connected to a network, the reason why."
560560 },
561+ "userUrl" : {
562+ "$ref" : " #/components/schemas/UserUrl"
563+ },
561564 "network" : {
562565 "title" : " network" ,
563566 "type" : " object" ,
604607 "required" : [" accessToken" , " userId" ]
605608 }
606609 },
607- "required" : [" kernel" , " isConnected" , " isNetworkConnected" ]
610+ "required" : [
611+ " kernel" ,
612+ " isConnected" ,
613+ " isNetworkConnected" ,
614+ " userUrl"
615+ ]
608616 }
609617 }
610618 }
Original file line number Diff line number Diff line change 33 "version" : " 0.15.1" ,
44 "type" : " module" ,
55 "description" : " TypeScript client generated by OpenRPC" ,
6+ "repository" : " github:hyperledger-labs/splice-wallet-kernel" ,
67 "license" : " Apache-2.0" ,
78 "main" : " dist/index.cjs" ,
89 "module" : " dist/index.js" ,
4344 "tsup" : " ^8.5.1" ,
4445 "typedoc" : " ^0.28.14" ,
4546 "typescript" : " ^5.9.3"
46- },
47- "repository" : {
48- "type" : " git" ,
49- "url" : " git+https://github.com/hyperledger-labs/splice-wallet-kernel.git" ,
50- "directory" : " core/wallet-dapp-rpc-client"
5147 }
5248}
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ export interface StatusEvent {
199199 isConnected : IsConnected
200200 isNetworkConnected : IsNetworkConnected
201201 networkReason ?: NetworkReason
202+ userUrl : UserUrl
202203 network ?: Network
203204 session ?: Session
204205 [ k : string ] : any
Original file line number Diff line number Diff line change 529529 "type" : " string" ,
530530 "description" : " If not connected to a network, the reason why."
531531 },
532+ "userUrl" : {
533+ "$ref" : " #/components/schemas/UserUrl"
534+ },
532535 "network" : {
533536 "title" : " network" ,
534537 "type" : " object" ,
575578 "required" : [" accessToken" , " userId" ]
576579 }
577580 },
578- "required" : [" kernel" , " isConnected" , " isNetworkConnected" ]
581+ "required" : [
582+ " kernel" ,
583+ " isConnected" ,
584+ " isNetworkConnected" ,
585+ " userUrl"
586+ ]
579587 }
580588 }
581589 }
Original file line number Diff line number Diff line change @@ -224,10 +224,10 @@ function App() {
224224 < br />
225225 < b > connected:</ b > { ' ' }
226226 < i > { status . isConnected ? '🟢' : '🔴' } </ i >
227- { status . networkId && (
227+ { status . network && (
228228 < span >
229229 < br />
230- < b > network:</ b > < i > { status . networkId } </ i >
230+ < b > network ID :</ b > < i > { status . network . networkId } </ i >
231231 </ span >
232232 ) }
233233 { ledgerApiVersion && (
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ export interface StatusEvent {
199199 isConnected : IsConnected
200200 isNetworkConnected : IsNetworkConnected
201201 networkReason ?: NetworkReason
202+ userUrl : UserUrl
202203 network ?: Network
203204 session ?: Session
204205 [ k : string ] : any
You can’t perform that action at this time.
0 commit comments