Tonomy-Foundation / Tonomy-ID

Tonomy ID is the cross-platform mobile wallet (Android and iOS) for public and private Antelope blockchains. This application allows you to sign transactions on the block chain, share your DID and Verifiable Credentials containing your identity with others in a consensual way and log into web2 and web3 applications.
Apache License 2.0
14 stars 1 forks source link

Modify the ISession abstraction #1062

Open sadiabbasi opened 1 month ago

sadiabbasi commented 1 month ago

Acceptance criteria:

https://wharfkit.com/docs/session-kit/session

Hint: export interface ISession { createSession(request: unknown): Promise // Authenticate user with WalletConnect/ESR disconnectSession(): Promise; // Disconnect WalletConnect/ESR session createTransactionRequest(request: unknown): Promise; // Create WalletConnect/ESR transaction request approveRequest(request: unknown): Promise; // Approve WalletConnect/ESR transaction request rejectRequest(request: unknown): Promise; // Reject WalletConnect/ESR transaction request }

Implementation: class WalletConnectSession implements ISession {} class ESRSession implements ISession {}

theblockstalk commented 1 month ago

this will also implement this into the transaction sign consent screen