-
- All Implemented Interfaces:
-
app.perawallet.walletconnectv2.sign.client.SignInterface
public final class SignProtocol implements SignInterface
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSignProtocol.Companion
-
Constructor Summary
Constructors Constructor Description SignProtocol(KoinApplication koinApp)
-
Method Summary
-
-
Method Detail
-
initialize
Unit initialize(Sign.Params.Init init, Function0<Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
setWalletDelegate
Unit setWalletDelegate(SignInterface.WalletDelegate delegate)
-
setDappDelegate
Unit setDappDelegate(SignInterface.DappDelegate delegate)
-
connect
Unit connect(Sign.Params.Connect connect, Function1<String, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
connect
Unit connect(Sign.Params.Connect connect, Function0<Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
authenticate
Unit authenticate(Sign.Params.Authenticate authenticate, String walletAppLink, Function1<String, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
dispatchEnvelope
Unit dispatchEnvelope(String urlWithEnvelope, Function1<Sign.Model.Error, Unit> onError)
-
formatAuthMessage
String formatAuthMessage(Sign.Params.FormatMessage formatMessage)
-
pair
Unit pair(Sign.Params.Pair pair, Function1<Sign.Params.Pair, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
approveSession
Unit approveSession(Sign.Params.Approve approve, Function1<Sign.Params.Approve, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
rejectSession
Unit rejectSession(Sign.Params.Reject reject, Function1<Sign.Params.Reject, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
approveAuthenticate
Unit approveAuthenticate(Sign.Params.ApproveAuthenticate approve, Function1<Sign.Params.ApproveAuthenticate, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
rejectAuthenticate
Unit rejectAuthenticate(Sign.Params.RejectAuthenticate reject, Function1<Sign.Params.RejectAuthenticate, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
request
Unit request(Sign.Params.Request request, Function1<Sign.Model.SentRequest, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
request
Unit request(Sign.Params.Request request, Function1<Sign.Params.Request, Unit> onSuccess, Function1<Sign.Model.SentRequest, Unit> onSuccessWithSentRequest, Function1<Sign.Model.Error, Unit> onError)
-
respond
Unit respond(Sign.Params.Response response, Function1<Sign.Params.Response, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
update
Unit update(Sign.Params.Update update, Function1<Sign.Params.Update, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
extend
Unit extend(Sign.Params.Extend extend, Function1<Sign.Params.Extend, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
emit
Unit emit(Sign.Params.Emit emit, Function1<Sign.Params.Emit, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
ping
Unit ping(Sign.Params.Ping ping, Sign.Listeners.SessionPing sessionPing)
-
disconnect
Unit disconnect(Sign.Params.Disconnect disconnect, Function1<Sign.Params.Disconnect, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
decryptMessage
Unit decryptMessage(Sign.Params.DecryptMessage params, Function1<Sign.Model.Message, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
getListOfActiveSessions
List<Sign.Model.Session> getListOfActiveSessions()
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getActiveSessionByTopic
Sign.Model.Session getActiveSessionByTopic(String topic)
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getListOfSettledSessions
List<Sign.Model.Session> getListOfSettledSessions()
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getSettledSessionByTopic
Sign.Model.Session getSettledSessionByTopic(String topic)
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getPendingSessionRequests
List<Sign.Model.SessionRequest> getPendingSessionRequests(String topic)
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getSessionProposals
List<Sign.Model.SessionProposal> getSessionProposals()
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getPendingAuthenticateRequests
List<Sign.Model.SessionAuthenticate> getPendingAuthenticateRequests()
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getVerifyContext
Sign.Model.VerifyContext getVerifyContext(Long id)
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getListOfVerifyContexts
List<Sign.Model.VerifyContext> getListOfVerifyContexts()
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getListOfSettledPairings
List<Sign.Model.Pairing> getListOfSettledPairings()
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getPendingRequests
List<Sign.Model.PendingRequest> getPendingRequests(String topic)
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
-
-
-