@@ -12,69 +12,69 @@ public interface IThirdwebWallet
12
12
/// <summary>
13
13
/// Gets the Thirdweb client associated with the wallet.
14
14
/// </summary>
15
- ThirdwebClient Client { get ; }
15
+ public ThirdwebClient Client { get ; }
16
16
17
17
/// <summary>
18
18
/// Gets the account type of the wallet.
19
19
/// </summary>
20
- ThirdwebAccountType AccountType { get ; }
20
+ public ThirdwebAccountType AccountType { get ; }
21
21
22
22
/// <summary>
23
23
/// Gets the address of the wallet.
24
24
/// </summary>
25
25
/// <returns>The wallet address.</returns>
26
- Task < string > GetAddress ( ) ;
26
+ public Task < string > GetAddress ( ) ;
27
27
28
28
/// <summary>
29
29
/// Signs a raw message using Ethereum's signing method.
30
30
/// </summary>
31
31
/// <param name="rawMessage">The raw message to sign.</param>
32
32
/// <returns>The signed message.</returns>
33
- Task < string > EthSign ( byte [ ] rawMessage ) ;
33
+ public Task < string > EthSign ( byte [ ] rawMessage ) ;
34
34
35
35
/// <summary>
36
36
/// Signs a message using Ethereum's signing method.
37
37
/// </summary>
38
38
/// <param name="message">The message to sign.</param>
39
39
/// <returns>The signed message.</returns>
40
- Task < string > EthSign ( string message ) ;
40
+ public Task < string > EthSign ( string message ) ;
41
41
42
42
/// <summary>
43
43
/// Recovers the address from a signed message using Ethereum's signing method.
44
44
/// </summary>
45
45
/// <param name="message">The UTF-8 encoded message.</param>
46
46
/// <param name="signature">The signature.</param>
47
47
/// <returns>The recovered address.</returns>
48
- Task < string > RecoverAddressFromEthSign ( string message , string signature ) ;
48
+ public Task < string > RecoverAddressFromEthSign ( string message , string signature ) ;
49
49
50
50
/// <summary>
51
51
/// Signs a raw message using personal signing.
52
52
/// </summary>
53
53
/// <param name="rawMessage">The raw message to sign.</param>
54
54
/// <returns>The signed message.</returns>
55
- Task < string > PersonalSign ( byte [ ] rawMessage ) ;
55
+ public Task < string > PersonalSign ( byte [ ] rawMessage ) ;
56
56
57
57
/// <summary>
58
58
/// Signs a message using personal signing.
59
59
/// </summary>
60
60
/// <param name="message">The message to sign.</param>
61
61
/// <returns>The signed message.</returns>
62
- Task < string > PersonalSign ( string message ) ;
62
+ public Task < string > PersonalSign ( string message ) ;
63
63
64
64
/// <summary>
65
65
/// Recovers the address from a signed message using personal signing.
66
66
/// </summary>
67
67
/// <param name="message">The UTF-8 encoded and prefixed message.</param>
68
68
/// <param name="signature">The signature.</param>
69
69
/// <returns>The recovered address.</returns>
70
- Task < string > RecoverAddressFromPersonalSign ( string message , string signature ) ;
70
+ public Task < string > RecoverAddressFromPersonalSign ( string message , string signature ) ;
71
71
72
72
/// <summary>
73
73
/// Signs typed data (version 4).
74
74
/// </summary>
75
75
/// <param name="json">The JSON representation of the typed data.</param>
76
76
/// <returns>The signed data.</returns>
77
- Task < string > SignTypedDataV4 ( string json ) ;
77
+ public Task < string > SignTypedDataV4 ( string json ) ;
78
78
79
79
/// <summary>
80
80
/// Signs typed data (version 4).
@@ -84,7 +84,7 @@ public interface IThirdwebWallet
84
84
/// <param name="data">The data to sign.</param>
85
85
/// <param name="typedData">The typed data.</param>
86
86
/// <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 )
88
88
where TDomain : IDomain ;
89
89
90
90
/// <summary>
@@ -96,40 +96,40 @@ Task<string> SignTypedDataV4<T, TDomain>(T data, TypedData<TDomain> typedData)
96
96
/// <param name="typedData">The typed data.</param>
97
97
/// <param name="signature">The signature.</param>
98
98
/// <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 )
100
100
where TDomain : IDomain ;
101
101
102
102
/// <summary>
103
103
/// Checks if the wallet is connected.
104
104
/// </summary>
105
105
/// <returns>True if connected, otherwise false.</returns>
106
- Task < bool > IsConnected ( ) ;
106
+ public Task < bool > IsConnected ( ) ;
107
107
108
108
/// <summary>
109
109
/// Signs a transaction.
110
110
/// </summary>
111
111
/// <param name="transaction">The transaction to sign.</param>
112
112
/// <returns>The signed transaction.</returns>
113
- Task < string > SignTransaction ( ThirdwebTransactionInput transaction ) ;
113
+ public Task < string > SignTransaction ( ThirdwebTransactionInput transaction ) ;
114
114
115
115
/// <summary>
116
116
/// Sends a transaction.
117
117
/// </summary>
118
118
/// <param name="transaction">The transaction to send.</param>
119
119
/// <returns>The transaction hash.</returns>
120
- Task < string > SendTransaction ( ThirdwebTransactionInput transaction ) ;
120
+ public Task < string > SendTransaction ( ThirdwebTransactionInput transaction ) ;
121
121
122
122
/// <summary>
123
123
/// Sends a transaction and waits for its receipt.
124
124
/// </summary>
125
125
/// <param name="transaction">The transaction to execute.</param>
126
126
/// <returns>The transaction receipt.</returns>
127
- Task < ThirdwebTransactionReceipt > ExecuteTransaction ( ThirdwebTransactionInput transaction ) ;
127
+ public Task < ThirdwebTransactionReceipt > ExecuteTransaction ( ThirdwebTransactionInput transaction ) ;
128
128
129
129
/// <summary>
130
130
/// Disconnects the wallet (if using InAppWallet, clears session)
131
131
/// </summary>
132
- Task Disconnect ( ) ;
132
+ public Task Disconnect ( ) ;
133
133
134
134
/// <summary>
135
135
/// 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
144
144
/// <param name="jwt">The JWT token if linking custom JWT auth.</param>
145
145
/// <param name="payload">The login payload if linking custom AuthEndpoint auth.</param>
146
146
/// <returns>A list of <see cref="LinkedAccount"/> objects.</returns>
147
- Task < List < LinkedAccount > > LinkAccount (
147
+ public Task < List < LinkedAccount > > LinkAccount (
148
148
IThirdwebWallet walletToLink ,
149
149
string otp = null ,
150
150
bool ? isMobile = null ,
@@ -160,13 +160,13 @@ Task<List<LinkedAccount>> LinkAccount(
160
160
/// Unlinks an account (auth method) from the current wallet.
161
161
/// </summary>
162
162
/// <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 ) ;
164
164
165
165
/// <summary>
166
166
/// Returns a list of linked accounts to the current wallet.
167
167
/// </summary>
168
168
/// <returns>A list of <see cref="LinkedAccount"/> objects.</returns>
169
- Task < List < LinkedAccount > > GetLinkedAccounts ( ) ;
169
+ public Task < List < LinkedAccount > > GetLinkedAccounts ( ) ;
170
170
171
171
/// <summary>
172
172
/// Signs an EIP-7702 authorization to invoke contract functions to an externally owned account.
@@ -175,13 +175,13 @@ Task<List<LinkedAccount>> LinkAccount(
175
175
/// <param name="contractAddress">The address of the contract.</param>
176
176
/// <param name="willSelfExecute">Set to true if the wallet will also be the executor of the transaction, otherwise false.</param>
177
177
/// <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 ) ;
179
179
180
180
/// <summary>
181
181
/// Attempts to set the active network to the specified chain ID.
182
182
/// </summary>
183
183
/// <param name="chainId">The chain ID to switch to.</param>
184
- Task SwitchNetwork ( BigInteger chainId ) ;
184
+ public Task SwitchNetwork ( BigInteger chainId ) ;
185
185
}
186
186
187
187
/// <summary>
@@ -280,4 +280,9 @@ public class LoginPayloadData
280
280
/// Initializes a new instance of the <see cref="LoginPayloadData"/> class.
281
281
/// </summary>
282
282
public LoginPayloadData ( ) { }
283
+
284
+ public override string ToString ( )
285
+ {
286
+ return JsonConvert . SerializeObject ( this ) ;
287
+ }
283
288
}
0 commit comments