Properties
approveSession
approveSession: ((params) => Promise<Struct>)
Type declaration
- (params): Promise<Struct>
Parameters
params: {
id: number;
namespaces: Record<string, BaseNamespace>;
relayProtocol?: string;
}
id: number
namespaces: Record<string, BaseNamespace>
Optional
relayProtocol?: string
Returns Promise<Struct>
chains
disconnectSession
disconnectSession: ((params) => Promise<void>)
Type declaration
- (params): Promise<void>
Parameters
params: {
reason: ErrorResponse;
topic: string;
}
reason: ErrorResponse
topic: string
Returns Promise<void>
emitSessionEvent
emitSessionEvent: ((params) => Promise<void>)
Type declaration
- (params): Promise<void>
Parameters
params: {
chainId: string;
event: any;
topic: string;
}
chainId: string
event: any
topic: string
Returns Promise<void>
engine
engine: IWeb3WalletEngine
events
events: EventEmitter
extendSession
extendSession: ((params) => Promise<void>)
Type declaration
- (params): Promise<void>
Parameters
params: {
topic: string;
}
Returns Promise<void>
formatMessage
formatMessage: ((payload, iss) => string)
Type declaration
- (payload, iss): string
Parameters
payload: CacaoRequestPayload
iss: string
Returns string
getActiveSessions
getActiveSessions: (() => Record<string, Struct>)
Type declaration
- (): Record<string, Struct>
Returns Record<string, Struct>
getPendingAuthRequests
getPendingAuthRequests: (() => Record<number, PendingRequest>)
Type declaration
- (): Record<number, PendingRequest>
Returns Record<number, PendingRequest>
getPendingSessionProposals
getPendingSessionProposals: (() => Record<number, Struct>)
Type declaration
- (): Record<number, Struct>
Returns Record<number, Struct>
getPendingSessionRequests
getPendingSessionRequests: (() => Struct[])
Type declaration
- (): Struct[]
Returns Struct[]
metadata
metadata: Metadata
methods
methods: string[] = ...
off
off: (<E>(event, listener) => EventEmitter)
Type declaration
- <E>(event, listener): EventEmitter
Parameters
event: E
listener: ((args) => void)
Returns EventEmitter
on
on: (<E>(event, listener) => EventEmitter)
Type declaration
- <E>(event, listener): EventEmitter
Parameters
event: E
listener: ((args) => void)
Returns EventEmitter
once
once: (<E>(event, listener) => EventEmitter)
Type declaration
- <E>(event, listener): EventEmitter
Parameters
event: E
listener: ((args) => void)
Returns EventEmitter
pair
pair: ((params) => Promise<void>)
Type declaration
- (params): Promise<void>
Parameters
params: {
activatePairing?: boolean;
uri: string;
}
Optional
activatePairing?: boolean
uri: string
Returns Promise<void>
rejectSession
rejectSession: ((params) => Promise<void>)
Type declaration
- (params): Promise<void>
Parameters
params: {
id: number;
reason: ErrorResponse;
}
id: number
reason: ErrorResponse
Returns Promise<void>
removeListener
removeListener: (<E>(event, listener) => EventEmitter)
Type declaration
- <E>(event, listener): EventEmitter
Parameters
event: E
listener: ((args) => void)
Returns EventEmitter
respondAuthRequest
respondAuthRequest: ((params, iss) => Promise<void>)
Type declaration
- (params, iss): Promise<void>
Parameters
params: RespondParams
iss: string
Returns Promise<void>
respondSessionRequest
respondSessionRequest: ((params) => Promise<void>)
Type declaration
- (params): Promise<void>
Parameters
params: {
response: JsonRpcResponse;
topic: string;
}
response: JsonRpcResponse
topic: string
Returns Promise<void>
sessionEvents
updateSession
updateSession: ((params) => Promise<void>)
Type declaration
- (params): Promise<void>
Parameters
params: {
namespaces: Namespaces;
topic: string;
}
namespaces: Namespaces
topic: string
Returns Promise<void>