1
1
2
2
// <auto-generated>
3
- // This code was generated by the following tool on 2024-12-20 10:37:35 GMT+07:00:
3
+ // This code was generated by the following tool on 2024-12-27 13:52:58 GMT+07:00:
4
4
// https://github.com/bottlenoselabs/c2cs (v0.0.0.0)
5
5
//
6
6
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
@@ -109,6 +109,10 @@ public static unsafe partial class dojo
109
109
[ DllImport ( LibraryName , EntryPoint = "client_on_starknet_event" , CallingConvention = CallingConvention . Cdecl ) ]
110
110
public static extern ResultSubscription client_on_starknet_event ( ToriiClient * client , EntityKeysClause * clauses , UIntPtr clauses_len , FnPtr_Event_Void callback ) ;
111
111
112
+ [ CNode ( Kind = "Function" ) ]
113
+ [ DllImport ( LibraryName , EntryPoint = "client_on_token_balance_update" , CallingConvention = CallingConvention . Cdecl ) ]
114
+ public static extern ResultSubscription client_on_token_balance_update ( ToriiClient * client , FieldElement * contract_addresses , UIntPtr contract_addresses_len , FieldElement * account_addresses , UIntPtr account_addresses_len , FnPtr_TokenBalance_Void callback ) ;
115
+
112
116
[ CNode ( Kind = "Function" ) ]
113
117
[ DllImport ( LibraryName , EntryPoint = "client_publish_message" , CallingConvention = CallingConvention . Cdecl ) ]
114
118
public static extern ResultCArrayu8 client_publish_message ( ToriiClient * client , CString message , FieldElement * signature_felts , UIntPtr signature_felts_len ) ;
@@ -119,7 +123,7 @@ public static unsafe partial class dojo
119
123
120
124
[ CNode ( Kind = "Function" ) ]
121
125
[ DllImport ( LibraryName , EntryPoint = "client_token_balances" , CallingConvention = CallingConvention . Cdecl ) ]
122
- public static extern ResultCArrayTokenBalance client_token_balances ( ToriiClient * client , FieldElement * account_addresses , UIntPtr account_addresses_len , FieldElement * contract_addresses , UIntPtr contract_addresses_len ) ;
126
+ public static extern ResultCArrayTokenBalance client_token_balances ( ToriiClient * client , FieldElement * contract_addresses , UIntPtr contract_addresses_len , FieldElement * account_addresses , UIntPtr account_addresses_len ) ;
123
127
124
128
[ CNode ( Kind = "Function" ) ]
125
129
[ DllImport ( LibraryName , EntryPoint = "client_tokens" , CallingConvention = CallingConvention . Cdecl ) ]
@@ -133,6 +137,10 @@ public static unsafe partial class dojo
133
137
[ DllImport ( LibraryName , EntryPoint = "client_update_event_message_subscription" , CallingConvention = CallingConvention . Cdecl ) ]
134
138
public static extern Resultbool client_update_event_message_subscription ( ToriiClient * client , Subscription * subscription , EntityKeysClause * clauses , UIntPtr clauses_len , CBool historical ) ;
135
139
140
+ [ CNode ( Kind = "Function" ) ]
141
+ [ DllImport ( LibraryName , EntryPoint = "client_update_token_balance_subscription" , CallingConvention = CallingConvention . Cdecl ) ]
142
+ public static extern Resultbool client_update_token_balance_subscription ( ToriiClient * client , Subscription * subscription , FieldElement * contract_addresses , UIntPtr contract_addresses_len , FieldElement * account_addresses , UIntPtr account_addresses_len ) ;
143
+
136
144
[ CNode ( Kind = "Function" ) ]
137
145
[ DllImport ( LibraryName , EntryPoint = "entity_free" , CallingConvention = CallingConvention . Cdecl ) ]
138
146
public static extern void entity_free ( Entity * entity ) ;
@@ -289,6 +297,21 @@ public FnPtr_IndexerUpdate_Void(@delegate d)
289
297
}
290
298
}
291
299
300
+ [ CNode ( Kind = "FunctionPointer" ) ]
301
+ [ StructLayout ( LayoutKind . Sequential ) ]
302
+ public struct FnPtr_TokenBalance_Void
303
+ {
304
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
305
+ public unsafe delegate void @delegate ( TokenBalance param ) ;
306
+
307
+ public IntPtr Pointer ;
308
+
309
+ public FnPtr_TokenBalance_Void ( @delegate d )
310
+ {
311
+ Pointer = Marshal . GetFunctionPointerForDelegate ( d ) ;
312
+ }
313
+ }
314
+
292
315
[ CNode ( Kind = "Struct" ) ]
293
316
[ StructLayout ( LayoutKind . Explicit , Size = 40 , Pack = 8 ) ]
294
317
public struct BlockId
@@ -421,6 +444,17 @@ public struct CArrayMember
421
444
public UIntPtr data_len ;
422
445
}
423
446
447
+ [ CNode ( Kind = "Struct" ) ]
448
+ [ StructLayout ( LayoutKind . Explicit , Size = 16 , Pack = 8 ) ]
449
+ public struct CArrayMemberValue
450
+ {
451
+ [ FieldOffset ( 0 ) ] // size = 8
452
+ public MemberValue * data ;
453
+
454
+ [ FieldOffset ( 8 ) ] // size = 8
455
+ public UIntPtr data_len ;
456
+ }
457
+
424
458
[ CNode ( Kind = "Struct" ) ]
425
459
[ StructLayout ( LayoutKind . Explicit , Size = 16 , Pack = 8 ) ]
426
460
public struct CArrayOrderBy
@@ -1218,6 +1252,33 @@ public string @string
1218
1252
@string_ = CString . FromString ( value ) ;
1219
1253
}
1220
1254
}
1255
+
1256
+ [ FieldOffset ( 8 ) ] // size = 16
1257
+ public CArrayMemberValue _list ;
1258
+
1259
+ public Span < MemberValue > list
1260
+ {
1261
+ get
1262
+ {
1263
+ fixed ( MemberValue * @this = & this )
1264
+ {
1265
+ var span = new Span < MemberValue > ( @this ->_list . data , ( int ) @this ->_list . data_len ) ;
1266
+ return span ;
1267
+ }
1268
+ }
1269
+
1270
+ set
1271
+ {
1272
+
1273
+ _list = new CArrayMemberValue ( ) ;
1274
+ _list . data_len = ( UIntPtr ) value . Length ;
1275
+ fixed ( MemberValue * ptr = value )
1276
+ {
1277
+ _list . data = ptr ;
1278
+ }
1279
+ }
1280
+ }
1281
+
1221
1282
}
1222
1283
1223
1284
[ CNode ( Kind = "Union" ) ]
@@ -1241,6 +1302,33 @@ public string @string
1241
1302
@string_ = CString . FromString ( value ) ;
1242
1303
}
1243
1304
}
1305
+
1306
+ [ FieldOffset ( 0 ) ] // size = 16
1307
+ public CArrayMemberValue _list ;
1308
+
1309
+ public Span < MemberValue > list
1310
+ {
1311
+ get
1312
+ {
1313
+ fixed ( MemberValue_ANONYMOUS_FIELD1 * @this = & this )
1314
+ {
1315
+ var span = new Span < MemberValue > ( @this ->_list . data , ( int ) @this ->_list . data_len ) ;
1316
+ return span ;
1317
+ }
1318
+ }
1319
+
1320
+ set
1321
+ {
1322
+
1323
+ _list = new CArrayMemberValue ( ) ;
1324
+ _list . data_len = ( UIntPtr ) value . Length ;
1325
+ fixed ( MemberValue * ptr = value )
1326
+ {
1327
+ _list . data = ptr ;
1328
+ }
1329
+ }
1330
+ }
1331
+
1244
1332
}
1245
1333
1246
1334
[ CNode ( Kind = "Struct" ) ]
@@ -1271,6 +1359,38 @@ public string @string
1271
1359
}
1272
1360
}
1273
1361
1362
+ [ CNode ( Kind = "Struct" ) ]
1363
+ [ StructLayout ( LayoutKind . Explicit , Size = 16 , Pack = 8 ) ]
1364
+ public struct MemberValue_ANONYMOUS_FIELD1_ANONYMOUS_FIELD2
1365
+ {
1366
+ [ FieldOffset ( 0 ) ] // size = 16
1367
+ public CArrayMemberValue _list ;
1368
+
1369
+ public Span < MemberValue > list
1370
+ {
1371
+ get
1372
+ {
1373
+ fixed ( MemberValue_ANONYMOUS_FIELD1_ANONYMOUS_FIELD2 * @this = & this )
1374
+ {
1375
+ var span = new Span < MemberValue > ( @this ->_list . data , ( int ) @this ->_list . data_len ) ;
1376
+ return span ;
1377
+ }
1378
+ }
1379
+
1380
+ set
1381
+ {
1382
+
1383
+ _list = new CArrayMemberValue ( ) ;
1384
+ _list . data_len = ( UIntPtr ) value . Length ;
1385
+ fixed ( MemberValue * ptr = value )
1386
+ {
1387
+ _list . data = ptr ;
1388
+ }
1389
+ }
1390
+ }
1391
+
1392
+ }
1393
+
1274
1394
[ CNode ( Kind = "Struct" ) ]
1275
1395
[ StructLayout ( LayoutKind . Explicit , Size = 152 , Pack = 8 ) ]
1276
1396
public struct ModelMetadata
@@ -3425,7 +3545,9 @@ public enum ComparisonOperator : int
3425
3545
Gt = 2 ,
3426
3546
Gte = 3 ,
3427
3547
Lt = 4 ,
3428
- Lte = 5
3548
+ Lte = 5 ,
3549
+ In = 6 ,
3550
+ NotIn = 7
3429
3551
}
3430
3552
3431
3553
[ CNode ( Kind = "Enum" ) ]
@@ -3446,7 +3568,8 @@ public enum LogicalOperator : int
3446
3568
public enum MemberValue_Tag : int
3447
3569
{
3448
3570
Primitive = 0 ,
3449
- String = 1
3571
+ String = 1 ,
3572
+ List = 2
3450
3573
}
3451
3574
3452
3575
[ CNode ( Kind = "Enum" ) ]
0 commit comments