@@ -12,69 +12,69 @@ public interface IThirdwebWallet
1212 /// <summary>
1313 /// Gets the Thirdweb client associated with the wallet.
1414 /// </summary>
15- ThirdwebClient Client { get ; }
15+ public ThirdwebClient Client { get ; }
1616
1717 /// <summary>
1818 /// Gets the account type of the wallet.
1919 /// </summary>
20- ThirdwebAccountType AccountType { get ; }
20+ public ThirdwebAccountType AccountType { get ; }
2121
2222 /// <summary>
2323 /// Gets the address of the wallet.
2424 /// </summary>
2525 /// <returns>The wallet address.</returns>
26- Task < string > GetAddress ( ) ;
26+ public Task < string > GetAddress ( ) ;
2727
2828 /// <summary>
2929 /// Signs a raw message using Ethereum's signing method.
3030 /// </summary>
3131 /// <param name="rawMessage">The raw message to sign.</param>
3232 /// <returns>The signed message.</returns>
33- Task < string > EthSign ( byte [ ] rawMessage ) ;
33+ public Task < string > EthSign ( byte [ ] rawMessage ) ;
3434
3535 /// <summary>
3636 /// Signs a message using Ethereum's signing method.
3737 /// </summary>
3838 /// <param name="message">The message to sign.</param>
3939 /// <returns>The signed message.</returns>
40- Task < string > EthSign ( string message ) ;
40+ public Task < string > EthSign ( string message ) ;
4141
4242 /// <summary>
4343 /// Recovers the address from a signed message using Ethereum's signing method.
4444 /// </summary>
4545 /// <param name="message">The UTF-8 encoded message.</param>
4646 /// <param name="signature">The signature.</param>
4747 /// <returns>The recovered address.</returns>
48- Task < string > RecoverAddressFromEthSign ( string message , string signature ) ;
48+ public Task < string > RecoverAddressFromEthSign ( string message , string signature ) ;
4949
5050 /// <summary>
5151 /// Signs a raw message using personal signing.
5252 /// </summary>
5353 /// <param name="rawMessage">The raw message to sign.</param>
5454 /// <returns>The signed message.</returns>
55- Task < string > PersonalSign ( byte [ ] rawMessage ) ;
55+ public Task < string > PersonalSign ( byte [ ] rawMessage ) ;
5656
5757 /// <summary>
5858 /// Signs a message using personal signing.
5959 /// </summary>
6060 /// <param name="message">The message to sign.</param>
6161 /// <returns>The signed message.</returns>
62- Task < string > PersonalSign ( string message ) ;
62+ public Task < string > PersonalSign ( string message ) ;
6363
6464 /// <summary>
6565 /// Recovers the address from a signed message using personal signing.
6666 /// </summary>
6767 /// <param name="message">The UTF-8 encoded and prefixed message.</param>
6868 /// <param name="signature">The signature.</param>
6969 /// <returns>The recovered address.</returns>
70- Task < string > RecoverAddressFromPersonalSign ( string message , string signature ) ;
70+ public Task < string > RecoverAddressFromPersonalSign ( string message , string signature ) ;
7171
7272 /// <summary>
7373 /// Signs typed data (version 4).
7474 /// </summary>
7575 /// <param name="json">The JSON representation of the typed data.</param>
7676 /// <returns>The signed data.</returns>
77- Task < string > SignTypedDataV4 ( string json ) ;
77+ public Task < string > SignTypedDataV4 ( string json ) ;
7878
7979 /// <summary>
8080 /// Signs typed data (version 4).
@@ -84,7 +84,7 @@ public interface IThirdwebWallet
8484 /// <param name="data">The data to sign.</param>
8585 /// <param name="typedData">The typed data.</param>
8686 /// <returns>The signed data.</returns>
87- Task < string > SignTypedDataV4 < T , TDomain > ( T data , TypedData < TDomain > typedData )
87+ public Task < string > SignTypedDataV4 < T , TDomain > ( T data , TypedData < TDomain > typedData )
8888 where TDomain : IDomain ;
8989
9090 /// <summary>
@@ -96,40 +96,40 @@ Task<string> SignTypedDataV4<T, TDomain>(T data, TypedData<TDomain> typedData)
9696 /// <param name="typedData">The typed data.</param>
9797 /// <param name="signature">The signature.</param>
9898 /// <returns>The recovered address.</returns>
99- Task < string > RecoverAddressFromTypedDataV4 < T , TDomain > ( T data , TypedData < TDomain > typedData , string signature )
99+ public Task < string > RecoverAddressFromTypedDataV4 < T , TDomain > ( T data , TypedData < TDomain > typedData , string signature )
100100 where TDomain : IDomain ;
101101
102102 /// <summary>
103103 /// Checks if the wallet is connected.
104104 /// </summary>
105105 /// <returns>True if connected, otherwise false.</returns>
106- Task < bool > IsConnected ( ) ;
106+ public Task < bool > IsConnected ( ) ;
107107
108108 /// <summary>
109109 /// Signs a transaction.
110110 /// </summary>
111111 /// <param name="transaction">The transaction to sign.</param>
112112 /// <returns>The signed transaction.</returns>
113- Task < string > SignTransaction ( ThirdwebTransactionInput transaction ) ;
113+ public Task < string > SignTransaction ( ThirdwebTransactionInput transaction ) ;
114114
115115 /// <summary>
116116 /// Sends a transaction.
117117 /// </summary>
118118 /// <param name="transaction">The transaction to send.</param>
119119 /// <returns>The transaction hash.</returns>
120- Task < string > SendTransaction ( ThirdwebTransactionInput transaction ) ;
120+ public Task < string > SendTransaction ( ThirdwebTransactionInput transaction ) ;
121121
122122 /// <summary>
123123 /// Sends a transaction and waits for its receipt.
124124 /// </summary>
125125 /// <param name="transaction">The transaction to execute.</param>
126126 /// <returns>The transaction receipt.</returns>
127- Task < ThirdwebTransactionReceipt > ExecuteTransaction ( ThirdwebTransactionInput transaction ) ;
127+ public Task < ThirdwebTransactionReceipt > ExecuteTransaction ( ThirdwebTransactionInput transaction ) ;
128128
129129 /// <summary>
130130 /// Disconnects the wallet (if using InAppWallet, clears session)
131131 /// </summary>
132- Task Disconnect ( ) ;
132+ public Task Disconnect ( ) ;
133133
134134 /// <summary>
135135 /// Links a new account (auth method) to the current wallet. The current wallet must be connected and the wallet being linked must not be fully connected ie created.
@@ -144,7 +144,7 @@ Task<string> RecoverAddressFromTypedDataV4<T, TDomain>(T data, TypedData<TDomain
144144 /// <param name="jwt">The JWT token if linking custom JWT auth.</param>
145145 /// <param name="payload">The login payload if linking custom AuthEndpoint auth.</param>
146146 /// <returns>A list of <see cref="LinkedAccount"/> objects.</returns>
147- Task < List < LinkedAccount > > LinkAccount (
147+ public Task < List < LinkedAccount > > LinkAccount (
148148 IThirdwebWallet walletToLink ,
149149 string otp = null ,
150150 bool ? isMobile = null ,
@@ -160,13 +160,13 @@ Task<List<LinkedAccount>> LinkAccount(
160160 /// Unlinks an account (auth method) from the current wallet.
161161 /// </summary>
162162 /// <param name="accountToUnlink">The linked account to unlink. Same type returned by <see cref="GetLinkedAccounts"/>.</param>
163- Task < List < LinkedAccount > > UnlinkAccount ( LinkedAccount accountToUnlink ) ;
163+ public Task < List < LinkedAccount > > UnlinkAccount ( LinkedAccount accountToUnlink ) ;
164164
165165 /// <summary>
166166 /// Returns a list of linked accounts to the current wallet.
167167 /// </summary>
168168 /// <returns>A list of <see cref="LinkedAccount"/> objects.</returns>
169- Task < List < LinkedAccount > > GetLinkedAccounts ( ) ;
169+ public Task < List < LinkedAccount > > GetLinkedAccounts ( ) ;
170170
171171 /// <summary>
172172 /// Signs an EIP-7702 authorization to invoke contract functions to an externally owned account.
@@ -175,13 +175,13 @@ Task<List<LinkedAccount>> LinkAccount(
175175 /// <param name="contractAddress">The address of the contract.</param>
176176 /// <param name="willSelfExecute">Set to true if the wallet will also be the executor of the transaction, otherwise false.</param>
177177 /// <returns>The signed authorization as an <see cref="EIP7702Authorization"/> that can be used with <see cref="ThirdwebTransactionInput.AuthorizationList"/>.</returns>
178- Task < EIP7702Authorization > SignAuthorization ( BigInteger chainId , string contractAddress , bool willSelfExecute ) ;
178+ public Task < EIP7702Authorization > SignAuthorization ( BigInteger chainId , string contractAddress , bool willSelfExecute ) ;
179179
180180 /// <summary>
181181 /// Attempts to set the active network to the specified chain ID.
182182 /// </summary>
183183 /// <param name="chainId">The chain ID to switch to.</param>
184- Task SwitchNetwork ( BigInteger chainId ) ;
184+ public Task SwitchNetwork ( BigInteger chainId ) ;
185185}
186186
187187/// <summary>
@@ -280,4 +280,9 @@ public class LoginPayloadData
280280 /// Initializes a new instance of the <see cref="LoginPayloadData"/> class.
281281 /// </summary>
282282 public LoginPayloadData ( ) { }
283+
284+ public override string ToString ( )
285+ {
286+ return JsonConvert . SerializeObject ( this ) ;
287+ }
283288}
0 commit comments