SignEngine class

Implemented types

Constructors

SignEngine({required ICore core, required PairingMetadata metadata, required IGenericStore<ProposalData> proposals, required ISessions sessions, required IGenericStore<SessionRequest> pendingRequests})

Properties

core ICore
final
hashCode int
The hash code for this object.
no setterinherited
metadata PairingMetadata
final
onProposalExpire → Event<SessionProposalEvent>
final
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<SessionProposalEvent>
final
onSessionProposalError → Event<SessionProposalErrorEvent>
final
onSessionRequest → Event<SessionRequestEvent>
final
onSessionUpdate → Event<SessionUpdate>
final
pairings IPairingStore
no setteroverride
pendingProposals List<SessionProposalCompleter>
getter/setter pair
pendingRequests IGenericStore<SessionRequest>
final
proposals IGenericStore<ProposalData>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessions ISessions
final

Methods

approveSession({required int id, required Map<String, Namespace> namespaces, Map<String, String>? sessionProperties, String? relayProtocol}) Future<ApproveResponse>
Approves a proposal with the id provided in the parameters. Assumes the proposal is already created.
override
checkAndExpire() Future<void>
override
connect({Map<String, RequiredNamespace>? requiredNamespaces, Map<String, RequiredNamespace>? optionalNamespaces, Map<String, String>? sessionProperties, String? pairingTopic, List<Relay>? relays, List<List<String>>? methods = DEFAULT_METHODS}) Future<ConnectResponse>
override
disconnectSession({required String topic, required WalletConnectError reason}) Future<void>
override
emitSessionEvent({required String topic, required String chainId, required SessionEventParams event}) Future<void>
override
extendSession({required String topic}) Future<void>
override
find({required Map<String, RequiredNamespace> requiredNamespaces}) SessionData?
override
getActiveSessions() Map<String, SessionData>
override
getPendingSessionProposals() Map<String, ProposalData>
override
getPendingSessionRequests() Map<String, SessionRequest>
override
getSessionsForPairing({required String pairingTopic}) Map<String, SessionData>
override
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
registerAccount({required String chainId, required String accountAddress}) → void
Register accounts for a given namespace or chainId. Used to construct the Namespaces map for the session proposal. Each account must follow the namespace:chainId:address format or this will throw an error.
override
registerEventEmitter({required String chainId, required String event}) → void
Register event emitters for a given namespace or chainId Used to construct the Namespaces map for the session proposal
override
registerEventHandler({required String chainId, required String event, dynamic handler(String, dynamic)?}) → void
override
registerRequestHandler({required String chainId, required String method, dynamic handler(String, dynamic)?}) → void
override
rejectSession({required int id, required WalletConnectError reason}) Future<void>
override
request({required String topic, required String chainId, required SessionRequestParams request}) Future
override
respondSessionRequest({required String topic, required JsonRpcResponse response}) Future<void>
override
toString() String
A string representation of this object.
inherited
updateSession({required String topic, required Map<String, Namespace> namespaces}) Future<void>
override

Operators

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

Constants

DEFAULT_METHODS → const List<List<String>>