ReownAppKit constructor
ReownAppKit({
- required IReownCore core,
- required PairingMetadata metadata,
Implementation
ReownAppKit({
required this.core,
required this.metadata,
}) {
reOwnSign = ReownSign(
core: core,
metadata: metadata,
proposals: GenericStore(
storage: core.storage,
context: StoreVersions.CONTEXT_PROPOSALS,
version: StoreVersions.VERSION_PROPOSALS,
fromJson: (dynamic value) {
return ProposalData.fromJson(value);
},
),
sessions: Sessions(
storage: core.storage,
context: StoreVersions.CONTEXT_SESSIONS,
version: StoreVersions.VERSION_SESSIONS,
fromJson: (dynamic value) {
return SessionData.fromJson(value);
},
),
pendingRequests: GenericStore(
storage: core.storage,
context: StoreVersions.CONTEXT_PENDING_REQUESTS,
version: StoreVersions.VERSION_PENDING_REQUESTS,
fromJson: (dynamic value) {
return SessionRequest.fromJson(value);
},
),
authKeys: GenericStore(
storage: core.storage,
context: StoreVersions.CONTEXT_AUTH_KEYS,
version: StoreVersions.VERSION_AUTH_KEYS,
fromJson: (dynamic value) {
return AuthPublicKey.fromJson(value);
},
),
pairingTopics: GenericStore(
storage: core.storage,
context: StoreVersions.CONTEXT_PAIRING_TOPICS,
version: StoreVersions.VERSION_PAIRING_TOPICS,
fromJson: (dynamic value) {
return value;
},
),
sessionAuthRequests: GenericStore(
storage: core.storage,
context: StoreVersions.CONTEXT_AUTH_REQUESTS,
version: StoreVersions.VERSION_AUTH_REQUESTS,
fromJson: (dynamic value) {
return PendingSessionAuthRequest.fromJson(value);
},
),
);
}