ReownSign class

Implemented types

Constructors

ReownSign({required IReownCore core, required PairingMetadata metadata, required IGenericStore<ProposalData> proposals, required ISessions sessions, required IGenericStore<SessionRequest> pendingRequests, required IGenericStore<PendingSessionAuthRequest> sessionAuthRequests, required IGenericStore<AuthPublicKey> authKeys, required IGenericStore<String> pairingTopics})

Properties

authKeys ↔ IGenericStore<AuthPublicKey>
getter/setter pairoverride-getter
core → IReownCore
final
hashCode → int
The hash code for this object.
no setterinherited
metadata → PairingMetadata
final
onProposalExpire → Event<SessionProposalEvent>
final
onSessionAuthRequest → Event<SessionAuthRequest>
final
onSessionAuthResponse → Event<SessionAuthResponse>
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
pairingTopics ↔ IGenericStore<String>
getter/setter pairoverride-getter
pendingProposals ↔ List<SessionProposalCompleter>
getter/setter pair
pendingRequests → IGenericStore<SessionRequest>
final
pendingSessionAuthRequests ↔ List<SessionAuthenticateCompleter>
getter/setter pair
pendingTVFRequests ↔ Map<int, TVFData>
getter/setter pair
proposals → IGenericStore<ProposalData>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionAuthRequests ↔ IGenericStore<PendingSessionAuthRequest>
getter/setter pairoverride-getter
sessions → ISessions
final

Methods

approveSession({required int id, required Map<String, Namespace> namespaces, Map<String, String>? sessionProperties, String? relayProtocol, ProposalRequestsResponses? proposalRequestsResponses}) → Future<ApproveResponse>
Approves a proposal with the id provided in the parameters. Assumes the proposal is already created.
override
approveSessionAuthenticate({required int id, List<Cacao>? auths}) → Future<ApproveResponse>
override
authenticate({required SessionAuthRequestParams params, String? walletUniversalLink, String? pairingTopic, List<List<String>>? methods = AUTH_METHODS}) → Future<SessionAuthRequestResponse>
override
checkAndExpire() → Future<void>
override
collectContractAddressIfNeeded(String chainId, dynamic params) → String?
collectHashes(String namespace, JsonRpcResponse response) → List<String>?
collectRequestTVF(int id, WcSessionRequestRequest request) → TVFData?
******* TVF *********** /// collection during request from dapp
collectResponseTVF(JsonRpcResponse payload) → TVFData?
******* TVF *********** /// collection during response from wallet
connect({Map<String, RequiredNamespace>? requiredNamespaces, Map<String, RequiredNamespace>? optionalNamespaces, Map<String, String>? sessionProperties, String? pairingTopic, List<Relay>? relays, List<SessionAuthRequestParams>? authentication, List<List<String>>? methods = DEFAULT_METHODS}) → Future<ConnectResponse>
override
disconnectSession({required String topic, required ReownSignError reason}) → Future<void>
override
dispatchEnvelope(String url) → 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
formatAuthMessage({required String iss, required CacaoRequestPayload cacaoPayload}) → String
override
getActiveSessions() → Map<String, SessionData>
override
getPendingSessionAuthRequests() → Map<int, PendingSessionAuthRequest>
override
getPendingSessionProposals() → Map<String, ProposalData>
override
getPendingSessionRequests() → Map<String, SessionRequest>
override
getSessionsForPairing({required String pairingTopic}) → Map<String, SessionData>
override
getVerifyContextLinkMode(JsonRpcRequest payload, PairingMetadata requesterMetadata) → Future<VerifyContext>
Link mode messages are not attested by the Verify service, so the verify context for link mode always resolves to Validation.UNKNOWN with an empty origin.
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
redirectToDapp({required String topic, required Redirect? redirect}) → Future<bool>
override
redirectToWallet({required String topic, required Redirect? redirect}) → Future<bool>
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 ReownSignError reason}) → Future<void>
override
rejectSessionAuthenticate({required int id, required ReownSignError reason}) → Future<void>
override
request({int? requestId, 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
unknownVerifyContext(String verifyUrl) → VerifyContext
Builds the verify context used when the requester's origin cannot be attested, i.e. Validation.UNKNOWN. The origin is left empty because an unverified origin should not be surfaced as if it had been checked. This aligns the Flutter SDK with the Swift and Kotlin SDKs, which also leave the origin empty for UNKNOWN.
updateSession({required String topic, required Map<String, Namespace> namespaces}) → Future<void>
override
validateSignedCacao({required Cacao cacao, required String projectId}) → Future<bool>
override

Operators

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

Constants

AUTH_METHODS → const List<List<String>>
DEFAULT_METHODS → const List<List<String>>