Pairing class

Implemented types

Constructors

Pairing({required IReownCore core, required IPairingStore pairings, required IJsonRpcHistory history, required IGenericStore<ReceiverPublicKey> topicToReceiverPublicKey})

Properties

core IReownCore
final
hashCode int
The hash code for this object.
no setterinherited
history IJsonRpcHistory
final
onPairingActivate → Event<PairingActivateEvent>
final
onPairingCreate → Event<PairingEvent>
final
onPairingDelete → Event<PairingEvent>
final
onPairingExpire → Event<PairingEvent>
final
onPairingInvalid → Event<PairingInvalidEvent>
final
onPairingPing → Event<PairingEvent>
final
pairings IPairingStore
final
pendingRequests Map<int, PendingRequestResponse>
Stores all the pending requests
getter/setter pair
routerMapRequest Map<String, RegisteredFunction>
---- Relay Event Router ---- ///
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topicToReceiverPublicKey IGenericStore<ReceiverPublicKey>
Stores the public key of Type 1 Envelopes for a topic Once a receiver public key has been used, it is removed from the store Thus, this store works under the assumption that a public key will only be used once
final

Methods

activate({required String topic}) Future<void>
override
checkAndExpire() Future<void>
override
create({List<List<String>>? methods}) Future<CreateResponse>
override
disconnect({required String topic}) Future<void>
override
dispatchEnvelope({required String topic, required String envelope}) → void
override
getPairing({required String topic}) PairingInfo?
override
getPairings() List<PairingInfo>
override
getStore() IPairingStore
override
init() Future<void>
override
isValidPairingTopic({required String topic}) Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pair({required Uri uri, bool activatePairing = false}) Future<PairingInfo>
override
ping({required String topic}) Future<void>
override
register({required String method, required dynamic function(String, JsonRpcRequest, [TransportType]), required ProtocolType type}) → void
override
sendError(int id, String topic, String method, JsonRpcError error, {EncodeOptions? encodeOptions, RpcOptions? rpcOptions, String? appLink}) Future
override
sendRequest(String topic, String method, dynamic params, {int? id, int? ttl, EncodeOptions? encodeOptions, String? appLink, bool openUrl = true}) Future
override
sendResult(int id, String topic, String method, dynamic result, {EncodeOptions? encodeOptions, String? appLink}) Future
override
setReceiverPublicKey({required String topic, required String publicKey, int? expiry}) Future<void>
override
toString() String
A string representation of this object.
inherited
updateExpiry({required String topic, required int expiry}) Future<void>
override
updateMetadata({required String topic, required PairingMetadata metadata}) Future<void>
override

Operators

operator ==(Object other) bool
The equality operator.
inherited