Skip to content

Commit

Permalink
update rpc reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Aug 8, 2024
1 parent c93717c commit ca691f8
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions helpers/rpc.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import { RpcClient, RpcRequest } from "@onflow/util-rpc"
import { Service } from "../types"
import { RpcClient, RpcRequest } from '@onflow/util-rpc'
import { Service } from '../types'

export enum DiscoveryNotification {
NOTIFY_QRCODE_EXPIRY = 'notifyQRCodeExpiry',
NOTIFY_QRCODE_ERROR = 'notifyQRCodeError',
NOTIFY_QRCODE_ERROR = 'notifyQRCodeError',
}

export enum FclRequest {
REQUEST_WALLETCONNECT_QRCODE = 'requestWalletConnectQRCode',
EXEC_SERVICE = 'execService',
REQUEST_WALLETCONNECT_QRCODE = 'requestWalletConnectQRCode',
EXEC_SERVICE = 'execService',
}

export type FclRequests = {
[FclRequest.REQUEST_WALLETCONNECT_QRCODE]: RpcRequest<{}, { uri: string }>
[FclRequest.EXEC_SERVICE]: RpcRequest<{ service: Service }, {}>
[FclRequest.REQUEST_WALLETCONNECT_QRCODE]: RpcRequest<{}, { uri: string }>
[FclRequest.EXEC_SERVICE]: RpcRequest<{ service: Service }, {}>
}

export type FclRpcClient = RpcClient<FclRequests, {}>
export type FclRpcClient = RpcClient<FclRequests, {}>

0 comments on commit ca691f8

Please sign in to comment.