Engine class
- Implemented types
Constructors
- Engine(ICore core, IProposals proposals, ISessions sessions, {PairingMetadata? selfMetadata})
Properties
- core ↔ ICore
-
getter/setter pairoverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onSessionConnect
→ Event<
SessionConnect> -
final
-
onSessionDelete
→ Event<
SessionDelete> -
final
-
onSessionEvent
→ Event<
SessionEvent> -
final
-
onSessionExpire
→ Event<
SessionExpire> -
final
-
onSessionExtend
→ Event<
SessionExtend> -
final
-
onSessionPing
→ Event<
SessionPing> -
final
-
onSessionProposal
→ Event<
SessionProposal> -
final
-
onSessionRequest
→ Event<
SessionRequest> -
final
-
onSessionUpdate
→ Event<
SessionUpdate> -
final
-
pendingProposals
↔ Map<
int, SessionProposalCompleter> -
getter/setter pair
- proposals ↔ IProposals
-
getter/setter pairoverride
-
requestHandlers
↔ Map<
String, dynamic Function(dynamic)> -
Maps a request using chainId:method to its handler
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selfMetadata ↔ PairingMetadata
-
getter/setter pair
- sessions ↔ ISessions
-
getter/setter pairoverride
Methods
-
approve(
{required int id, required Map< String, Namespace> namespaces, String? relayProtocol}) → Future<ApproveResponse> -
Approves a proposal with the id provided in the parameters.
Assumes the proposal is already created.
override
-
connect(
{required Map< String, RequiredNamespace> requiredNamespaces, String? pairingTopic, List<Relay> ? relays}) → Future<ConnectResponse> -
override
-
connectResponseHandler(
String topic, WcSessionProposeRequest request, int requestId) → Future< void> -
disconnect(
{required String topic, required ErrorResponse reason}) → Future< void> -
override
-
emit(
{required String topic, required String chainId, required SessionEventParams event}) → Future< void> -
override
-
extend(
{required String topic}) → Future< void> -
override
-
find(
{required Map< String, RequiredNamespace> requiredNamespaces}) → SessionData -
override
-
getRequestMethodKey(
String namespace, String method) → String -
init(
) → Future< void> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pair(
{required Uri uri}) → Future< PairingInfo> -
override
-
ping(
{required String topic}) → Future< void> -
override
-
registerRequestHandler(
{required String chainId, required String method, required dynamic handler(dynamic)}) → void -
override
-
reject(
{required int id, required ErrorResponse reason}) → Future< void> -
override
-
request(
{required String topic, required String chainId, required SessionRequestParams request}) → Future -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
{required String topic, required Map< String, Namespace> namespaces}) → Future<void> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited