@qubic.ts/contracts 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/package.json +17 -0
  2. package/scripts/generate-artifacts.ts +178 -0
  3. package/src/codec/entry-input.test.ts +198 -0
  4. package/src/codec/entry-input.ts +959 -0
  5. package/src/codec/index.ts +8 -0
  6. package/src/generated/contracts/CCF.registry.json +741 -0
  7. package/src/generated/contracts/CCF.types.ts +307 -0
  8. package/src/generated/contracts/GQMPROP.registry.json +518 -0
  9. package/src/generated/contracts/GQMPROP.types.ts +238 -0
  10. package/src/generated/contracts/MLM.registry.json +8 -0
  11. package/src/generated/contracts/MLM.types.ts +42 -0
  12. package/src/generated/contracts/MSVAULT.registry.json +1162 -0
  13. package/src/generated/contracts/MSVAULT.types.ts +598 -0
  14. package/src/generated/contracts/NOST.registry.json +1131 -0
  15. package/src/generated/contracts/NOST.types.ts +515 -0
  16. package/src/generated/contracts/QBAY.registry.json +1492 -0
  17. package/src/generated/contracts/QBAY.types.ts +681 -0
  18. package/src/generated/contracts/QBOND.registry.json +734 -0
  19. package/src/generated/contracts/QBOND.types.ts +397 -0
  20. package/src/generated/contracts/QDRAW.registry.json +112 -0
  21. package/src/generated/contracts/QDRAW.types.ts +110 -0
  22. package/src/generated/contracts/QDUEL.registry.json +466 -0
  23. package/src/generated/contracts/QDUEL.types.ts +265 -0
  24. package/src/generated/contracts/QEARN.registry.json +458 -0
  25. package/src/generated/contracts/QEARN.types.ts +265 -0
  26. package/src/generated/contracts/QIP.registry.json +483 -0
  27. package/src/generated/contracts/QIP.types.ts +194 -0
  28. package/src/generated/contracts/QRAFFLE.registry.json +916 -0
  29. package/src/generated/contracts/QRAFFLE.types.ts +446 -0
  30. package/src/generated/contracts/QRP.registry.json +139 -0
  31. package/src/generated/contracts/QRP.types.ts +144 -0
  32. package/src/generated/contracts/QRWA.registry.json +765 -0
  33. package/src/generated/contracts/QRWA.types.ts +402 -0
  34. package/src/generated/contracts/QSWAP.registry.json +941 -0
  35. package/src/generated/contracts/QSWAP.types.ts +479 -0
  36. package/src/generated/contracts/QTF.registry.json +480 -0
  37. package/src/generated/contracts/QTF.types.ts +346 -0
  38. package/src/generated/contracts/QUOTTERY.registry.json +530 -0
  39. package/src/generated/contracts/QUOTTERY.types.ts +262 -0
  40. package/src/generated/contracts/QUTIL.registry.json +1378 -0
  41. package/src/generated/contracts/QUTIL.types.ts +612 -0
  42. package/src/generated/contracts/QVAULT.registry.json +527 -0
  43. package/src/generated/contracts/QVAULT.types.ts +309 -0
  44. package/src/generated/contracts/QX.registry.json +610 -0
  45. package/src/generated/contracts/QX.types.ts +323 -0
  46. package/src/generated/contracts/RANDOM.registry.json +51 -0
  47. package/src/generated/contracts/RANDOM.types.ts +65 -0
  48. package/src/generated/contracts/RL.registry.json +490 -0
  49. package/src/generated/contracts/RL.types.ts +304 -0
  50. package/src/generated/contracts/SWATCH.registry.json +8 -0
  51. package/src/generated/contracts/SWATCH.types.ts +42 -0
  52. package/src/generated/core-registry.codecs.ts +6622 -0
  53. package/src/generated/core-registry.source.json +14342 -0
  54. package/src/generated/core-registry.ts +14349 -0
  55. package/src/generated/core-registry.types.ts +100 -0
  56. package/src/generator/contract-codecs.fixture.test.ts +17 -0
  57. package/src/generator/contract-codecs.test.ts +115 -0
  58. package/src/generator/contract-codecs.ts +416 -0
  59. package/src/generator/index.ts +14 -0
  60. package/src/generator/per-contract-files.test.ts +70 -0
  61. package/src/generator/per-contract-files.ts +122 -0
  62. package/src/generator/registry-runtime.fixture.test.ts +17 -0
  63. package/src/generator/registry-runtime.test.ts +55 -0
  64. package/src/generator/registry-runtime.ts +28 -0
  65. package/src/generator/registry-types.fixture.test.ts +17 -0
  66. package/src/generator/registry-types.test.ts +55 -0
  67. package/src/generator/registry-types.ts +75 -0
  68. package/src/index.test.ts +29 -0
  69. package/src/index.ts +49 -0
  70. package/src/registry/index.ts +17 -0
  71. package/src/registry/io-layout.fixture.test.ts +24 -0
  72. package/src/registry/io-layout.test.ts +93 -0
  73. package/src/registry/io-layout.ts +57 -0
  74. package/src/registry/normalize.ts +61 -0
  75. package/src/registry/schema.fixture.test.ts +21 -0
  76. package/src/registry/schema.ts +97 -0
  77. package/src/registry/types.ts +98 -0
  78. package/test/fixtures/io-layout.contracts.json +32 -0
  79. package/test/fixtures/io-layout.layouts.json +14 -0
  80. package/test/fixtures/registry.sample.codecs.ts +100 -0
  81. package/test/fixtures/registry.sample.json +27 -0
  82. package/test/fixtures/registry.sample.runtime.ts +54 -0
  83. package/test/fixtures/registry.sample.types.ts +16 -0
@@ -0,0 +1,515 @@
1
+ /* eslint-disable */
2
+ /* This file is generated. Do not edit manually. */
3
+
4
+ export type NOST_Asset = {
5
+ readonly issuer: string;
6
+ readonly assetName: bigint;
7
+ };
8
+ export type NOST_checkTokenCreatability_input = {
9
+ readonly tokenName: bigint;
10
+ };
11
+ export type NOST_checkTokenCreatability_output = {
12
+ readonly result: boolean;
13
+ };
14
+ export type NOST_claimToken_input = {
15
+ readonly amount: bigint;
16
+ readonly indexOfFundraising: number;
17
+ };
18
+ export type NOST_claimToken_output = {
19
+ readonly claimedAmount: bigint;
20
+ };
21
+ export type NOST_createFundraising_input = {
22
+ readonly tokenPrice: bigint;
23
+ readonly soldAmount: bigint;
24
+ readonly requiredFunds: bigint;
25
+ readonly indexOfProject: number;
26
+ readonly firstPhaseStartYear: number;
27
+ readonly firstPhaseStartMonth: number;
28
+ readonly firstPhaseStartDay: number;
29
+ readonly firstPhaseStartHour: number;
30
+ readonly firstPhaseEndYear: number;
31
+ readonly firstPhaseEndMonth: number;
32
+ readonly firstPhaseEndDay: number;
33
+ readonly firstPhaseEndHour: number;
34
+ readonly secondPhaseStartYear: number;
35
+ readonly secondPhaseStartMonth: number;
36
+ readonly secondPhaseStartDay: number;
37
+ readonly secondPhaseStartHour: number;
38
+ readonly secondPhaseEndYear: number;
39
+ readonly secondPhaseEndMonth: number;
40
+ readonly secondPhaseEndDay: number;
41
+ readonly secondPhaseEndHour: number;
42
+ readonly thirdPhaseStartYear: number;
43
+ readonly thirdPhaseStartMonth: number;
44
+ readonly thirdPhaseStartDay: number;
45
+ readonly thirdPhaseStartHour: number;
46
+ readonly thirdPhaseEndYear: number;
47
+ readonly thirdPhaseEndMonth: number;
48
+ readonly thirdPhaseEndDay: number;
49
+ readonly thirdPhaseEndHour: number;
50
+ readonly listingStartYear: number;
51
+ readonly listingStartMonth: number;
52
+ readonly listingStartDay: number;
53
+ readonly listingStartHour: number;
54
+ readonly cliffEndYear: number;
55
+ readonly cliffEndMonth: number;
56
+ readonly cliffEndDay: number;
57
+ readonly cliffEndHour: number;
58
+ readonly vestingEndYear: number;
59
+ readonly vestingEndMonth: number;
60
+ readonly vestingEndDay: number;
61
+ readonly vestingEndHour: number;
62
+ readonly threshold: number;
63
+ readonly TGE: number;
64
+ readonly stepOfVesting: number;
65
+ };
66
+ export type NOST_createFundraising_output = Record<string, never>;
67
+ export type NOST_createProject_input = {
68
+ readonly tokenName: bigint;
69
+ readonly supply: bigint;
70
+ readonly startYear: number;
71
+ readonly startMonth: number;
72
+ readonly startDay: number;
73
+ readonly startHour: number;
74
+ readonly endYear: number;
75
+ readonly endMonth: number;
76
+ readonly endDay: number;
77
+ readonly endHour: number;
78
+ };
79
+ export type NOST_createProject_output = {
80
+ readonly indexOfProject: number;
81
+ };
82
+ export type NOST_fundaraisingInfo = {
83
+ readonly tokenPrice: bigint;
84
+ readonly soldAmount: bigint;
85
+ readonly requiredFunds: bigint;
86
+ readonly raisedFunds: bigint;
87
+ readonly indexOfProject: number;
88
+ readonly firstPhaseStartDate: number;
89
+ readonly firstPhaseEndDate: number;
90
+ readonly secondPhaseStartDate: number;
91
+ readonly secondPhaseEndDate: number;
92
+ readonly thirdPhaseStartDate: number;
93
+ readonly thirdPhaseEndDate: number;
94
+ readonly listingStartDate: number;
95
+ readonly cliffEndDate: number;
96
+ readonly vestingEndDate: number;
97
+ readonly threshold: number;
98
+ readonly TGE: number;
99
+ readonly stepOfVesting: number;
100
+ readonly isCreatedToken: boolean;
101
+ };
102
+ export type NOST_getFundarasingByIndex_input = {
103
+ readonly indexOfFundarasing: number;
104
+ };
105
+ export type NOST_getFundarasingByIndex_output = {
106
+ readonly fundarasing: NOST_fundaraisingInfo;
107
+ };
108
+ export type NOST_getInfoUserInvested_input = {
109
+ readonly investorId: string;
110
+ };
111
+ export type NOST_getInfoUserInvested_output = {
112
+ readonly listUserInvested: ReadonlyArray<NOST_investInfo>;
113
+ };
114
+ export type NOST_getMaxClaimAmount_input = {
115
+ readonly investorId: string;
116
+ readonly indexOfFundraising: number;
117
+ };
118
+ export type NOST_getMaxClaimAmount_output = {
119
+ readonly amount: bigint;
120
+ };
121
+ export type NOST_getNumberOfInvestedProjects_input = {
122
+ readonly userId: string;
123
+ };
124
+ export type NOST_getNumberOfInvestedProjects_output = {
125
+ readonly numberOfInvestedProjects: number;
126
+ };
127
+ export type NOST_getProjectByIndex_input = {
128
+ readonly indexOfProject: number;
129
+ };
130
+ export type NOST_getProjectByIndex_output = {
131
+ readonly project: NOST_projectInfo;
132
+ };
133
+ export type NOST_getProjectIndexListByCreator_input = {
134
+ readonly creator: string;
135
+ };
136
+ export type NOST_getProjectIndexListByCreator_output = {
137
+ readonly indexListForProjects: ReadonlyArray<number>;
138
+ };
139
+ export type NOST_getStats_input = Record<string, never>;
140
+ export type NOST_getStats_output = {
141
+ readonly epochRevenue: bigint;
142
+ readonly totalPoolWeight: bigint;
143
+ readonly numberOfRegister: number;
144
+ readonly numberOfCreatedProject: number;
145
+ readonly numberOfFundraising: number;
146
+ };
147
+ export type NOST_getTierLevelByUser_input = {
148
+ readonly userId: string;
149
+ };
150
+ export type NOST_getTierLevelByUser_output = {
151
+ readonly tierLevel: number;
152
+ };
153
+ export type NOST_getUserVoteStatus_input = {
154
+ readonly userId: string;
155
+ };
156
+ export type NOST_getUserVoteStatus_output = {
157
+ readonly numberOfVotedProjects: number;
158
+ readonly projectIndexList: ReadonlyArray<number>;
159
+ };
160
+ export type NOST_investInfo = {
161
+ readonly investedAmount: bigint;
162
+ readonly claimedAmount: bigint;
163
+ readonly indexOfFundraising: number;
164
+ };
165
+ export type NOST_investInProject_input = {
166
+ readonly indexOfFundraising: number;
167
+ };
168
+ export type NOST_investInProject_output = Record<string, never>;
169
+ export type NOST_logoutFromTier_input = Record<string, never>;
170
+ export type NOST_logoutFromTier_output = {
171
+ readonly result: boolean;
172
+ };
173
+ export type NOST_projectInfo = {
174
+ readonly creator: string;
175
+ readonly tokenName: bigint;
176
+ readonly supplyOfToken: bigint;
177
+ readonly startDate: number;
178
+ readonly endDate: number;
179
+ readonly numberOfYes: number;
180
+ readonly numberOfNo: number;
181
+ readonly isCreatedFundarasing: boolean;
182
+ };
183
+ export type NOST_registerInTier_input = {
184
+ readonly tierLevel: number;
185
+ };
186
+ export type NOST_registerInTier_output = {
187
+ readonly tierLevel: number;
188
+ };
189
+ export type NOST_TransferShareManagementRights_input = {
190
+ readonly asset: NOST_Asset;
191
+ readonly numberOfShares: bigint;
192
+ readonly newManagingContractIndex: number;
193
+ };
194
+ export type NOST_TransferShareManagementRights_output = {
195
+ readonly transferredNumberOfShares: bigint;
196
+ };
197
+ export type NOST_upgradeTier_input = {
198
+ readonly newTierLevel: number;
199
+ };
200
+ export type NOST_upgradeTier_output = Record<string, never>;
201
+ export type NOST_voteInProject_input = {
202
+ readonly indexOfProject: number;
203
+ readonly decision: boolean;
204
+ };
205
+ export type NOST_voteInProject_output = Record<string, never>;
206
+
207
+ export interface ContractTypeMap {
208
+ NOST: {
209
+ readonly contractIndex: 14;
210
+ readonly functions: {
211
+ getStats: {
212
+ readonly kind: "function";
213
+ readonly inputType: 1;
214
+ readonly inputTypeName: "getStats_input";
215
+ readonly outputTypeName: "getStats_output";
216
+ readonly input: NOST_getStats_input;
217
+ readonly output: NOST_getStats_output;
218
+ };
219
+ getTierLevelByUser: {
220
+ readonly kind: "function";
221
+ readonly inputType: 2;
222
+ readonly inputTypeName: "getTierLevelByUser_input";
223
+ readonly outputTypeName: "getTierLevelByUser_output";
224
+ readonly input: NOST_getTierLevelByUser_input;
225
+ readonly output: NOST_getTierLevelByUser_output;
226
+ };
227
+ getUserVoteStatus: {
228
+ readonly kind: "function";
229
+ readonly inputType: 3;
230
+ readonly inputTypeName: "getUserVoteStatus_input";
231
+ readonly outputTypeName: "getUserVoteStatus_output";
232
+ readonly input: NOST_getUserVoteStatus_input;
233
+ readonly output: NOST_getUserVoteStatus_output;
234
+ };
235
+ checkTokenCreatability: {
236
+ readonly kind: "function";
237
+ readonly inputType: 4;
238
+ readonly inputTypeName: "checkTokenCreatability_input";
239
+ readonly outputTypeName: "checkTokenCreatability_output";
240
+ readonly input: NOST_checkTokenCreatability_input;
241
+ readonly output: NOST_checkTokenCreatability_output;
242
+ };
243
+ getNumberOfInvestedProjects: {
244
+ readonly kind: "function";
245
+ readonly inputType: 5;
246
+ readonly inputTypeName: "getNumberOfInvestedProjects_input";
247
+ readonly outputTypeName: "getNumberOfInvestedProjects_output";
248
+ readonly input: NOST_getNumberOfInvestedProjects_input;
249
+ readonly output: NOST_getNumberOfInvestedProjects_output;
250
+ };
251
+ getProjectByIndex: {
252
+ readonly kind: "function";
253
+ readonly inputType: 6;
254
+ readonly inputTypeName: "getProjectByIndex_input";
255
+ readonly outputTypeName: "getProjectByIndex_output";
256
+ readonly input: NOST_getProjectByIndex_input;
257
+ readonly output: NOST_getProjectByIndex_output;
258
+ };
259
+ getFundarasingByIndex: {
260
+ readonly kind: "function";
261
+ readonly inputType: 7;
262
+ readonly inputTypeName: "getFundarasingByIndex_input";
263
+ readonly outputTypeName: "getFundarasingByIndex_output";
264
+ readonly input: NOST_getFundarasingByIndex_input;
265
+ readonly output: NOST_getFundarasingByIndex_output;
266
+ };
267
+ getProjectIndexListByCreator: {
268
+ readonly kind: "function";
269
+ readonly inputType: 8;
270
+ readonly inputTypeName: "getProjectIndexListByCreator_input";
271
+ readonly outputTypeName: "getProjectIndexListByCreator_output";
272
+ readonly input: NOST_getProjectIndexListByCreator_input;
273
+ readonly output: NOST_getProjectIndexListByCreator_output;
274
+ };
275
+ getInfoUserInvested: {
276
+ readonly kind: "function";
277
+ readonly inputType: 9;
278
+ readonly inputTypeName: "getInfoUserInvested_input";
279
+ readonly outputTypeName: "getInfoUserInvested_output";
280
+ readonly input: NOST_getInfoUserInvested_input;
281
+ readonly output: NOST_getInfoUserInvested_output;
282
+ };
283
+ getMaxClaimAmount: {
284
+ readonly kind: "function";
285
+ readonly inputType: 10;
286
+ readonly inputTypeName: "getMaxClaimAmount_input";
287
+ readonly outputTypeName: "getMaxClaimAmount_output";
288
+ readonly input: NOST_getMaxClaimAmount_input;
289
+ readonly output: NOST_getMaxClaimAmount_output;
290
+ };
291
+ };
292
+ readonly procedures: {
293
+ registerInTier: {
294
+ readonly kind: "procedure";
295
+ readonly inputType: 1;
296
+ readonly inputTypeName: "registerInTier_input";
297
+ readonly outputTypeName: "registerInTier_output";
298
+ readonly input: NOST_registerInTier_input;
299
+ readonly output: NOST_registerInTier_output;
300
+ };
301
+ logoutFromTier: {
302
+ readonly kind: "procedure";
303
+ readonly inputType: 2;
304
+ readonly inputTypeName: "logoutFromTier_input";
305
+ readonly outputTypeName: "logoutFromTier_output";
306
+ readonly input: NOST_logoutFromTier_input;
307
+ readonly output: NOST_logoutFromTier_output;
308
+ };
309
+ createProject: {
310
+ readonly kind: "procedure";
311
+ readonly inputType: 3;
312
+ readonly inputTypeName: "createProject_input";
313
+ readonly outputTypeName: "createProject_output";
314
+ readonly input: NOST_createProject_input;
315
+ readonly output: NOST_createProject_output;
316
+ };
317
+ voteInProject: {
318
+ readonly kind: "procedure";
319
+ readonly inputType: 4;
320
+ readonly inputTypeName: "voteInProject_input";
321
+ readonly outputTypeName: "voteInProject_output";
322
+ readonly input: NOST_voteInProject_input;
323
+ readonly output: NOST_voteInProject_output;
324
+ };
325
+ createFundraising: {
326
+ readonly kind: "procedure";
327
+ readonly inputType: 5;
328
+ readonly inputTypeName: "createFundraising_input";
329
+ readonly outputTypeName: "createFundraising_output";
330
+ readonly input: NOST_createFundraising_input;
331
+ readonly output: NOST_createFundraising_output;
332
+ };
333
+ investInProject: {
334
+ readonly kind: "procedure";
335
+ readonly inputType: 6;
336
+ readonly inputTypeName: "investInProject_input";
337
+ readonly outputTypeName: "investInProject_output";
338
+ readonly input: NOST_investInProject_input;
339
+ readonly output: NOST_investInProject_output;
340
+ };
341
+ claimToken: {
342
+ readonly kind: "procedure";
343
+ readonly inputType: 7;
344
+ readonly inputTypeName: "claimToken_input";
345
+ readonly outputTypeName: "claimToken_output";
346
+ readonly input: NOST_claimToken_input;
347
+ readonly output: NOST_claimToken_output;
348
+ };
349
+ upgradeTier: {
350
+ readonly kind: "procedure";
351
+ readonly inputType: 8;
352
+ readonly inputTypeName: "upgradeTier_input";
353
+ readonly outputTypeName: "upgradeTier_output";
354
+ readonly input: NOST_upgradeTier_input;
355
+ readonly output: NOST_upgradeTier_output;
356
+ };
357
+ TransferShareManagementRights: {
358
+ readonly kind: "procedure";
359
+ readonly inputType: 9;
360
+ readonly inputTypeName: "TransferShareManagementRights_input";
361
+ readonly outputTypeName: "TransferShareManagementRights_output";
362
+ readonly input: NOST_TransferShareManagementRights_input;
363
+ readonly output: NOST_TransferShareManagementRights_output;
364
+ };
365
+ };
366
+ };
367
+ }
368
+
369
+ export type ContractName = keyof ContractTypeMap & string;
370
+ export type FunctionName<C extends ContractName> = keyof ContractTypeMap[C]["functions"] & string;
371
+ export type ProcedureName<C extends ContractName> = keyof ContractTypeMap[C]["procedures"] & string;
372
+
373
+ export type FunctionInput<
374
+ C extends ContractName,
375
+ F extends FunctionName<C>,
376
+ > = ContractTypeMap[C]["functions"][F]["input"];
377
+ export type FunctionOutput<
378
+ C extends ContractName,
379
+ F extends FunctionName<C>,
380
+ > = ContractTypeMap[C]["functions"][F]["output"];
381
+
382
+ export type ProcedureInput<
383
+ C extends ContractName,
384
+ P extends ProcedureName<C>,
385
+ > = ContractTypeMap[C]["procedures"][P]["input"];
386
+ export type ProcedureOutput<
387
+ C extends ContractName,
388
+ P extends ProcedureName<C>,
389
+ > = ContractTypeMap[C]["procedures"][P]["output"];
390
+
391
+ export const contractCodecRegistry = {
392
+ NOST: {
393
+ contractIndex: 14,
394
+ functions: {
395
+ getStats: {
396
+ kind: "function",
397
+ inputType: 1,
398
+ inputTypeName: "getStats_input",
399
+ outputTypeName: "getStats_output",
400
+ },
401
+ getTierLevelByUser: {
402
+ kind: "function",
403
+ inputType: 2,
404
+ inputTypeName: "getTierLevelByUser_input",
405
+ outputTypeName: "getTierLevelByUser_output",
406
+ },
407
+ getUserVoteStatus: {
408
+ kind: "function",
409
+ inputType: 3,
410
+ inputTypeName: "getUserVoteStatus_input",
411
+ outputTypeName: "getUserVoteStatus_output",
412
+ },
413
+ checkTokenCreatability: {
414
+ kind: "function",
415
+ inputType: 4,
416
+ inputTypeName: "checkTokenCreatability_input",
417
+ outputTypeName: "checkTokenCreatability_output",
418
+ },
419
+ getNumberOfInvestedProjects: {
420
+ kind: "function",
421
+ inputType: 5,
422
+ inputTypeName: "getNumberOfInvestedProjects_input",
423
+ outputTypeName: "getNumberOfInvestedProjects_output",
424
+ },
425
+ getProjectByIndex: {
426
+ kind: "function",
427
+ inputType: 6,
428
+ inputTypeName: "getProjectByIndex_input",
429
+ outputTypeName: "getProjectByIndex_output",
430
+ },
431
+ getFundarasingByIndex: {
432
+ kind: "function",
433
+ inputType: 7,
434
+ inputTypeName: "getFundarasingByIndex_input",
435
+ outputTypeName: "getFundarasingByIndex_output",
436
+ },
437
+ getProjectIndexListByCreator: {
438
+ kind: "function",
439
+ inputType: 8,
440
+ inputTypeName: "getProjectIndexListByCreator_input",
441
+ outputTypeName: "getProjectIndexListByCreator_output",
442
+ },
443
+ getInfoUserInvested: {
444
+ kind: "function",
445
+ inputType: 9,
446
+ inputTypeName: "getInfoUserInvested_input",
447
+ outputTypeName: "getInfoUserInvested_output",
448
+ },
449
+ getMaxClaimAmount: {
450
+ kind: "function",
451
+ inputType: 10,
452
+ inputTypeName: "getMaxClaimAmount_input",
453
+ outputTypeName: "getMaxClaimAmount_output",
454
+ },
455
+ },
456
+ procedures: {
457
+ registerInTier: {
458
+ kind: "procedure",
459
+ inputType: 1,
460
+ inputTypeName: "registerInTier_input",
461
+ outputTypeName: "registerInTier_output",
462
+ },
463
+ logoutFromTier: {
464
+ kind: "procedure",
465
+ inputType: 2,
466
+ inputTypeName: "logoutFromTier_input",
467
+ outputTypeName: "logoutFromTier_output",
468
+ },
469
+ createProject: {
470
+ kind: "procedure",
471
+ inputType: 3,
472
+ inputTypeName: "createProject_input",
473
+ outputTypeName: "createProject_output",
474
+ },
475
+ voteInProject: {
476
+ kind: "procedure",
477
+ inputType: 4,
478
+ inputTypeName: "voteInProject_input",
479
+ outputTypeName: "voteInProject_output",
480
+ },
481
+ createFundraising: {
482
+ kind: "procedure",
483
+ inputType: 5,
484
+ inputTypeName: "createFundraising_input",
485
+ outputTypeName: "createFundraising_output",
486
+ },
487
+ investInProject: {
488
+ kind: "procedure",
489
+ inputType: 6,
490
+ inputTypeName: "investInProject_input",
491
+ outputTypeName: "investInProject_output",
492
+ },
493
+ claimToken: {
494
+ kind: "procedure",
495
+ inputType: 7,
496
+ inputTypeName: "claimToken_input",
497
+ outputTypeName: "claimToken_output",
498
+ },
499
+ upgradeTier: {
500
+ kind: "procedure",
501
+ inputType: 8,
502
+ inputTypeName: "upgradeTier_input",
503
+ outputTypeName: "upgradeTier_output",
504
+ },
505
+ TransferShareManagementRights: {
506
+ kind: "procedure",
507
+ inputType: 9,
508
+ inputTypeName: "TransferShareManagementRights_input",
509
+ outputTypeName: "TransferShareManagementRights_output",
510
+ },
511
+ },
512
+ },
513
+ } as const satisfies Readonly<Record<ContractName, unknown>>;
514
+
515
+ export type RuntimeContractCodecRegistry = typeof contractCodecRegistry;