@@ -114,6 +114,30 @@ public Task<TransactionReceipt> CreateAccountRequestAndWaitForReceiptAsync(strin
114
114
return ContractHandler . SendRequestAndWaitForReceiptAsync ( createAccountFunction , cancellationToken ) ;
115
115
}
116
116
117
+ public Task < string > EntrypointQueryAsync ( EntrypointFunction entrypointFunction , BlockParameter blockParameter = null )
118
+ {
119
+ return ContractHandler . QueryAsync < EntrypointFunction , string > ( entrypointFunction , blockParameter ) ;
120
+ }
121
+
122
+ public Task < string > EntrypointQueryAsync ( BlockParameter blockParameter = null )
123
+ {
124
+ return ContractHandler . QueryAsync < EntrypointFunction , string > ( null , blockParameter ) ;
125
+ }
126
+
127
+ public Task < List < string > > GetAccountsQueryAsync ( GetAccountsFunction getAccountsFunction , BlockParameter blockParameter = null )
128
+ {
129
+ return ContractHandler . QueryAsync < GetAccountsFunction , List < string > > ( getAccountsFunction , blockParameter ) ;
130
+ }
131
+
132
+ public Task < List < string > > GetAccountsQueryAsync ( BigInteger start , BigInteger end , BlockParameter blockParameter = null )
133
+ {
134
+ var getAccountsFunction = new GetAccountsFunction ( ) ;
135
+ getAccountsFunction . Start = start ;
136
+ getAccountsFunction . End = end ;
137
+
138
+ return ContractHandler . QueryAsync < GetAccountsFunction , List < string > > ( getAccountsFunction , blockParameter ) ;
139
+ }
140
+
117
141
public Task < List < string > > GetAccountsOfSignerQueryAsync ( GetAccountsOfSignerFunction getAccountsOfSignerFunction , BlockParameter blockParameter = null )
118
142
{
119
143
return ContractHandler . QueryAsync < GetAccountsOfSignerFunction , List < string > > ( getAccountsOfSignerFunction , blockParameter ) ;
@@ -141,6 +165,16 @@ public Task<string> GetAddressQueryAsync(string adminSigner, byte[] data, BlockP
141
165
return ContractHandler . QueryAsync < GetAddressFunction , string > ( getAddressFunction , blockParameter ) ;
142
166
}
143
167
168
+ public Task < List < string > > GetAllAccountsQueryAsync ( GetAllAccountsFunction getAllAccountsFunction , BlockParameter blockParameter = null )
169
+ {
170
+ return ContractHandler . QueryAsync < GetAllAccountsFunction , List < string > > ( getAllAccountsFunction , blockParameter ) ;
171
+ }
172
+
173
+ public Task < List < string > > GetAllAccountsQueryAsync ( BlockParameter blockParameter = null )
174
+ {
175
+ return ContractHandler . QueryAsync < GetAllAccountsFunction , List < string > > ( null , blockParameter ) ;
176
+ }
177
+
144
178
public Task < byte [ ] > GetRoleAdminQueryAsync ( GetRoleAdminFunction getRoleAdminFunction , BlockParameter blockParameter = null )
145
179
{
146
180
return ContractHandler . QueryAsync < GetRoleAdminFunction , byte [ ] > ( getRoleAdminFunction , blockParameter ) ;
@@ -181,19 +215,6 @@ public Task<BigInteger> GetRoleMemberCountQueryAsync(byte[] role, BlockParameter
181
215
return ContractHandler . QueryAsync < GetRoleMemberCountFunction , BigInteger > ( getRoleMemberCountFunction , blockParameter ) ;
182
216
}
183
217
184
- public Task < List < string > > GetSignersOfAccountQueryAsync ( GetSignersOfAccountFunction getSignersOfAccountFunction , BlockParameter blockParameter = null )
185
- {
186
- return ContractHandler . QueryAsync < GetSignersOfAccountFunction , List < string > > ( getSignersOfAccountFunction , blockParameter ) ;
187
- }
188
-
189
- public Task < List < string > > GetSignersOfAccountQueryAsync ( string account , BlockParameter blockParameter = null )
190
- {
191
- var getSignersOfAccountFunction = new GetSignersOfAccountFunction ( ) ;
192
- getSignersOfAccountFunction . Account = account ;
193
-
194
- return ContractHandler . QueryAsync < GetSignersOfAccountFunction , List < string > > ( getSignersOfAccountFunction , blockParameter ) ;
195
- }
196
-
197
218
public Task < string > GrantRoleRequestAsync ( GrantRoleFunction grantRoleFunction )
198
219
{
199
220
return ContractHandler . SendRequestAsync ( grantRoleFunction ) ;
@@ -250,6 +271,47 @@ public Task<bool> HasRoleWithSwitchQueryAsync(byte[] role, string account, Block
250
271
return ContractHandler . QueryAsync < HasRoleWithSwitchFunction , bool > ( hasRoleWithSwitchFunction , blockParameter ) ;
251
272
}
252
273
274
+ public Task < string > InitializeRequestAsync ( InitializeFunction initializeFunction )
275
+ {
276
+ return ContractHandler . SendRequestAsync ( initializeFunction ) ;
277
+ }
278
+
279
+ public Task < TransactionReceipt > InitializeRequestAndWaitForReceiptAsync ( InitializeFunction initializeFunction , CancellationTokenSource cancellationToken = null )
280
+ {
281
+ return ContractHandler . SendRequestAndWaitForReceiptAsync ( initializeFunction , cancellationToken ) ;
282
+ }
283
+
284
+ public Task < string > InitializeRequestAsync ( string defaultAdmin , string contractURI )
285
+ {
286
+ var initializeFunction = new InitializeFunction ( ) ;
287
+ initializeFunction . DefaultAdmin = defaultAdmin ;
288
+ initializeFunction . ContractURI = contractURI ;
289
+
290
+ return ContractHandler . SendRequestAsync ( initializeFunction ) ;
291
+ }
292
+
293
+ public Task < TransactionReceipt > InitializeRequestAndWaitForReceiptAsync ( string defaultAdmin , string contractURI , CancellationTokenSource cancellationToken = null )
294
+ {
295
+ var initializeFunction = new InitializeFunction ( ) ;
296
+ initializeFunction . DefaultAdmin = defaultAdmin ;
297
+ initializeFunction . ContractURI = contractURI ;
298
+
299
+ return ContractHandler . SendRequestAndWaitForReceiptAsync ( initializeFunction , cancellationToken ) ;
300
+ }
301
+
302
+ public Task < bool > IsRegisteredQueryAsync ( IsRegisteredFunction isRegisteredFunction , BlockParameter blockParameter = null )
303
+ {
304
+ return ContractHandler . QueryAsync < IsRegisteredFunction , bool > ( isRegisteredFunction , blockParameter ) ;
305
+ }
306
+
307
+ public Task < bool > IsRegisteredQueryAsync ( string account , BlockParameter blockParameter = null )
308
+ {
309
+ var isRegisteredFunction = new IsRegisteredFunction ( ) ;
310
+ isRegisteredFunction . Account = account ;
311
+
312
+ return ContractHandler . QueryAsync < IsRegisteredFunction , bool > ( isRegisteredFunction , blockParameter ) ;
313
+ }
314
+
253
315
public Task < string > MulticallRequestAsync ( MulticallFunction multicallFunction )
254
316
{
255
317
return ContractHandler . SendRequestAsync ( multicallFunction ) ;
@@ -276,6 +338,32 @@ public Task<TransactionReceipt> MulticallRequestAndWaitForReceiptAsync(List<byte
276
338
return ContractHandler . SendRequestAndWaitForReceiptAsync ( multicallFunction , cancellationToken ) ;
277
339
}
278
340
341
+ public Task < string > OnRegisterRequestAsync ( OnRegisterFunction onRegisterFunction )
342
+ {
343
+ return ContractHandler . SendRequestAsync ( onRegisterFunction ) ;
344
+ }
345
+
346
+ public Task < TransactionReceipt > OnRegisterRequestAndWaitForReceiptAsync ( OnRegisterFunction onRegisterFunction , CancellationTokenSource cancellationToken = null )
347
+ {
348
+ return ContractHandler . SendRequestAndWaitForReceiptAsync ( onRegisterFunction , cancellationToken ) ;
349
+ }
350
+
351
+ public Task < string > OnRegisterRequestAsync ( byte [ ] salt )
352
+ {
353
+ var onRegisterFunction = new OnRegisterFunction ( ) ;
354
+ onRegisterFunction . Salt = salt ;
355
+
356
+ return ContractHandler . SendRequestAsync ( onRegisterFunction ) ;
357
+ }
358
+
359
+ public Task < TransactionReceipt > OnRegisterRequestAndWaitForReceiptAsync ( byte [ ] salt , CancellationTokenSource cancellationToken = null )
360
+ {
361
+ var onRegisterFunction = new OnRegisterFunction ( ) ;
362
+ onRegisterFunction . Salt = salt ;
363
+
364
+ return ContractHandler . SendRequestAndWaitForReceiptAsync ( onRegisterFunction , cancellationToken ) ;
365
+ }
366
+
279
367
public Task < string > OnSignerAddedRequestAsync ( OnSignerAddedFunction onSignerAddedFunction )
280
368
{
281
369
return ContractHandler . SendRequestAsync ( onSignerAddedFunction ) ;
@@ -286,18 +374,20 @@ public Task<TransactionReceipt> OnSignerAddedRequestAndWaitForReceiptAsync(OnSig
286
374
return ContractHandler . SendRequestAndWaitForReceiptAsync ( onSignerAddedFunction , cancellationToken ) ;
287
375
}
288
376
289
- public Task < string > OnSignerAddedRequestAsync ( string signer )
377
+ public Task < string > OnSignerAddedRequestAsync ( string signer , byte [ ] salt )
290
378
{
291
379
var onSignerAddedFunction = new OnSignerAddedFunction ( ) ;
292
380
onSignerAddedFunction . Signer = signer ;
381
+ onSignerAddedFunction . Salt = salt ;
293
382
294
383
return ContractHandler . SendRequestAsync ( onSignerAddedFunction ) ;
295
384
}
296
385
297
- public Task < TransactionReceipt > OnSignerAddedRequestAndWaitForReceiptAsync ( string signer , CancellationTokenSource cancellationToken = null )
386
+ public Task < TransactionReceipt > OnSignerAddedRequestAndWaitForReceiptAsync ( string signer , byte [ ] salt , CancellationTokenSource cancellationToken = null )
298
387
{
299
388
var onSignerAddedFunction = new OnSignerAddedFunction ( ) ;
300
389
onSignerAddedFunction . Signer = signer ;
390
+ onSignerAddedFunction . Salt = salt ;
301
391
302
392
return ContractHandler . SendRequestAndWaitForReceiptAsync ( onSignerAddedFunction , cancellationToken ) ;
303
393
}
@@ -312,18 +402,20 @@ public Task<TransactionReceipt> OnSignerRemovedRequestAndWaitForReceiptAsync(OnS
312
402
return ContractHandler . SendRequestAndWaitForReceiptAsync ( onSignerRemovedFunction , cancellationToken ) ;
313
403
}
314
404
315
- public Task < string > OnSignerRemovedRequestAsync ( string signer )
405
+ public Task < string > OnSignerRemovedRequestAsync ( string signer , byte [ ] salt )
316
406
{
317
407
var onSignerRemovedFunction = new OnSignerRemovedFunction ( ) ;
318
408
onSignerRemovedFunction . Signer = signer ;
409
+ onSignerRemovedFunction . Salt = salt ;
319
410
320
411
return ContractHandler . SendRequestAsync ( onSignerRemovedFunction ) ;
321
412
}
322
413
323
- public Task < TransactionReceipt > OnSignerRemovedRequestAndWaitForReceiptAsync ( string signer , CancellationTokenSource cancellationToken = null )
414
+ public Task < TransactionReceipt > OnSignerRemovedRequestAndWaitForReceiptAsync ( string signer , byte [ ] salt , CancellationTokenSource cancellationToken = null )
324
415
{
325
416
var onSignerRemovedFunction = new OnSignerRemovedFunction ( ) ;
326
417
onSignerRemovedFunction . Signer = signer ;
418
+ onSignerRemovedFunction . Salt = salt ;
327
419
328
420
return ContractHandler . SendRequestAndWaitForReceiptAsync ( onSignerRemovedFunction , cancellationToken ) ;
329
421
}
@@ -409,5 +501,15 @@ public Task<TransactionReceipt> SetContractURIRequestAndWaitForReceiptAsync(stri
409
501
410
502
return ContractHandler . SendRequestAndWaitForReceiptAsync ( setContractURIFunction , cancellationToken ) ;
411
503
}
504
+
505
+ public Task < BigInteger > TotalAccountsQueryAsync ( TotalAccountsFunction totalAccountsFunction , BlockParameter blockParameter = null )
506
+ {
507
+ return ContractHandler . QueryAsync < TotalAccountsFunction , BigInteger > ( totalAccountsFunction , blockParameter ) ;
508
+ }
509
+
510
+ public Task < BigInteger > TotalAccountsQueryAsync ( BlockParameter blockParameter = null )
511
+ {
512
+ return ContractHandler . QueryAsync < TotalAccountsFunction , BigInteger > ( null , blockParameter ) ;
513
+ }
412
514
}
413
515
}
0 commit comments