@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.
- package/package.json +17 -0
- package/scripts/generate-artifacts.ts +178 -0
- package/src/codec/entry-input.test.ts +198 -0
- package/src/codec/entry-input.ts +959 -0
- package/src/codec/index.ts +8 -0
- package/src/generated/contracts/CCF.registry.json +741 -0
- package/src/generated/contracts/CCF.types.ts +307 -0
- package/src/generated/contracts/GQMPROP.registry.json +518 -0
- package/src/generated/contracts/GQMPROP.types.ts +238 -0
- package/src/generated/contracts/MLM.registry.json +8 -0
- package/src/generated/contracts/MLM.types.ts +42 -0
- package/src/generated/contracts/MSVAULT.registry.json +1162 -0
- package/src/generated/contracts/MSVAULT.types.ts +598 -0
- package/src/generated/contracts/NOST.registry.json +1131 -0
- package/src/generated/contracts/NOST.types.ts +515 -0
- package/src/generated/contracts/QBAY.registry.json +1492 -0
- package/src/generated/contracts/QBAY.types.ts +681 -0
- package/src/generated/contracts/QBOND.registry.json +734 -0
- package/src/generated/contracts/QBOND.types.ts +397 -0
- package/src/generated/contracts/QDRAW.registry.json +112 -0
- package/src/generated/contracts/QDRAW.types.ts +110 -0
- package/src/generated/contracts/QDUEL.registry.json +466 -0
- package/src/generated/contracts/QDUEL.types.ts +265 -0
- package/src/generated/contracts/QEARN.registry.json +458 -0
- package/src/generated/contracts/QEARN.types.ts +265 -0
- package/src/generated/contracts/QIP.registry.json +483 -0
- package/src/generated/contracts/QIP.types.ts +194 -0
- package/src/generated/contracts/QRAFFLE.registry.json +916 -0
- package/src/generated/contracts/QRAFFLE.types.ts +446 -0
- package/src/generated/contracts/QRP.registry.json +139 -0
- package/src/generated/contracts/QRP.types.ts +144 -0
- package/src/generated/contracts/QRWA.registry.json +765 -0
- package/src/generated/contracts/QRWA.types.ts +402 -0
- package/src/generated/contracts/QSWAP.registry.json +941 -0
- package/src/generated/contracts/QSWAP.types.ts +479 -0
- package/src/generated/contracts/QTF.registry.json +480 -0
- package/src/generated/contracts/QTF.types.ts +346 -0
- package/src/generated/contracts/QUOTTERY.registry.json +530 -0
- package/src/generated/contracts/QUOTTERY.types.ts +262 -0
- package/src/generated/contracts/QUTIL.registry.json +1378 -0
- package/src/generated/contracts/QUTIL.types.ts +612 -0
- package/src/generated/contracts/QVAULT.registry.json +527 -0
- package/src/generated/contracts/QVAULT.types.ts +309 -0
- package/src/generated/contracts/QX.registry.json +610 -0
- package/src/generated/contracts/QX.types.ts +323 -0
- package/src/generated/contracts/RANDOM.registry.json +51 -0
- package/src/generated/contracts/RANDOM.types.ts +65 -0
- package/src/generated/contracts/RL.registry.json +490 -0
- package/src/generated/contracts/RL.types.ts +304 -0
- package/src/generated/contracts/SWATCH.registry.json +8 -0
- package/src/generated/contracts/SWATCH.types.ts +42 -0
- package/src/generated/core-registry.codecs.ts +6622 -0
- package/src/generated/core-registry.source.json +14342 -0
- package/src/generated/core-registry.ts +14349 -0
- package/src/generated/core-registry.types.ts +100 -0
- package/src/generator/contract-codecs.fixture.test.ts +17 -0
- package/src/generator/contract-codecs.test.ts +115 -0
- package/src/generator/contract-codecs.ts +416 -0
- package/src/generator/index.ts +14 -0
- package/src/generator/per-contract-files.test.ts +70 -0
- package/src/generator/per-contract-files.ts +122 -0
- package/src/generator/registry-runtime.fixture.test.ts +17 -0
- package/src/generator/registry-runtime.test.ts +55 -0
- package/src/generator/registry-runtime.ts +28 -0
- package/src/generator/registry-types.fixture.test.ts +17 -0
- package/src/generator/registry-types.test.ts +55 -0
- package/src/generator/registry-types.ts +75 -0
- package/src/index.test.ts +29 -0
- package/src/index.ts +49 -0
- package/src/registry/index.ts +17 -0
- package/src/registry/io-layout.fixture.test.ts +24 -0
- package/src/registry/io-layout.test.ts +93 -0
- package/src/registry/io-layout.ts +57 -0
- package/src/registry/normalize.ts +61 -0
- package/src/registry/schema.fixture.test.ts +21 -0
- package/src/registry/schema.ts +97 -0
- package/src/registry/types.ts +98 -0
- package/test/fixtures/io-layout.contracts.json +32 -0
- package/test/fixtures/io-layout.layouts.json +14 -0
- package/test/fixtures/registry.sample.codecs.ts +100 -0
- package/test/fixtures/registry.sample.json +27 -0
- package/test/fixtures/registry.sample.runtime.ts +54 -0
- package/test/fixtures/registry.sample.types.ts +16 -0
|
@@ -0,0 +1,681 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* This file is generated. Do not edit manually. */
|
|
3
|
+
|
|
4
|
+
export type QBAY_acceptOffer_input = {
|
|
5
|
+
readonly NFTid: number;
|
|
6
|
+
};
|
|
7
|
+
export type QBAY_acceptOffer_output = {
|
|
8
|
+
readonly returnCode: number;
|
|
9
|
+
};
|
|
10
|
+
export type QBAY_Asset = {
|
|
11
|
+
readonly issuer: string;
|
|
12
|
+
readonly assetName: bigint;
|
|
13
|
+
};
|
|
14
|
+
export type QBAY_bidOnTraditionalAuction_input = {
|
|
15
|
+
readonly price: bigint;
|
|
16
|
+
readonly NFTId: number;
|
|
17
|
+
readonly paymentMethod: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type QBAY_bidOnTraditionalAuction_output = {
|
|
20
|
+
readonly returnCode: number;
|
|
21
|
+
};
|
|
22
|
+
export type QBAY_buy_input = {
|
|
23
|
+
readonly NFTid: number;
|
|
24
|
+
readonly methodOfPayment: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type QBAY_buy_output = {
|
|
27
|
+
readonly returnCode: number;
|
|
28
|
+
};
|
|
29
|
+
export type QBAY_cancelExchange_input = {
|
|
30
|
+
readonly possessedNFT: number;
|
|
31
|
+
readonly anotherNFT: number;
|
|
32
|
+
};
|
|
33
|
+
export type QBAY_cancelExchange_output = {
|
|
34
|
+
readonly returnCode: number;
|
|
35
|
+
};
|
|
36
|
+
export type QBAY_cancelOffer_input = {
|
|
37
|
+
readonly NFTid: number;
|
|
38
|
+
};
|
|
39
|
+
export type QBAY_cancelOffer_output = {
|
|
40
|
+
readonly returnCode: number;
|
|
41
|
+
};
|
|
42
|
+
export type QBAY_cancelSale_input = {
|
|
43
|
+
readonly NFTid: number;
|
|
44
|
+
};
|
|
45
|
+
export type QBAY_cancelSale_output = {
|
|
46
|
+
readonly returnCode: number;
|
|
47
|
+
};
|
|
48
|
+
export type QBAY_changeStatusOfMarketPlace_input = {
|
|
49
|
+
readonly status: boolean;
|
|
50
|
+
};
|
|
51
|
+
export type QBAY_changeStatusOfMarketPlace_output = {
|
|
52
|
+
readonly returnCode: number;
|
|
53
|
+
};
|
|
54
|
+
export type QBAY_createCollection_input = {
|
|
55
|
+
readonly priceForDropMint: bigint;
|
|
56
|
+
readonly volume: number;
|
|
57
|
+
readonly royalty: number;
|
|
58
|
+
readonly maxSizePerOneId: number;
|
|
59
|
+
readonly URI: ReadonlyArray<number>;
|
|
60
|
+
readonly typeOfCollection: boolean;
|
|
61
|
+
};
|
|
62
|
+
export type QBAY_createCollection_output = {
|
|
63
|
+
readonly returnCode: number;
|
|
64
|
+
};
|
|
65
|
+
export type QBAY_createTraditionalAuction_input = {
|
|
66
|
+
readonly minPrice: bigint;
|
|
67
|
+
readonly NFTId: number;
|
|
68
|
+
readonly startYear: number;
|
|
69
|
+
readonly startMonth: number;
|
|
70
|
+
readonly startDay: number;
|
|
71
|
+
readonly startHour: number;
|
|
72
|
+
readonly endYear: number;
|
|
73
|
+
readonly endMonth: number;
|
|
74
|
+
readonly endDay: number;
|
|
75
|
+
readonly endHour: number;
|
|
76
|
+
readonly paymentMethodOfAuction: boolean;
|
|
77
|
+
};
|
|
78
|
+
export type QBAY_createTraditionalAuction_output = {
|
|
79
|
+
readonly returnCode: number;
|
|
80
|
+
};
|
|
81
|
+
export type QBAY_getIncomingAuctions_input = {
|
|
82
|
+
readonly offset: number;
|
|
83
|
+
readonly count: number;
|
|
84
|
+
};
|
|
85
|
+
export type QBAY_getIncomingAuctions_output = {
|
|
86
|
+
readonly NFTId: ReadonlyArray<number>;
|
|
87
|
+
};
|
|
88
|
+
export type QBAY_getInfoOfCollectionByCreator_input = {
|
|
89
|
+
readonly creator: string;
|
|
90
|
+
readonly orderOfCollection: number;
|
|
91
|
+
};
|
|
92
|
+
export type QBAY_getInfoOfCollectionByCreator_output = {
|
|
93
|
+
readonly priceForDropMint: bigint;
|
|
94
|
+
readonly idOfCollection: number;
|
|
95
|
+
readonly royalty: number;
|
|
96
|
+
readonly currentSize: number;
|
|
97
|
+
readonly maxSizeHoldingPerOneId: number;
|
|
98
|
+
readonly URI: ReadonlyArray<number>;
|
|
99
|
+
readonly typeOfCollection: boolean;
|
|
100
|
+
};
|
|
101
|
+
export type QBAY_getInfoOfCollectionById_input = {
|
|
102
|
+
readonly idOfCollection: number;
|
|
103
|
+
};
|
|
104
|
+
export type QBAY_getInfoOfCollectionById_output = {
|
|
105
|
+
readonly creator: string;
|
|
106
|
+
readonly priceForDropMint: bigint;
|
|
107
|
+
readonly royalty: number;
|
|
108
|
+
readonly currentSize: number;
|
|
109
|
+
readonly maxSizeHoldingPerOneId: number;
|
|
110
|
+
readonly URI: ReadonlyArray<number>;
|
|
111
|
+
readonly typeOfCollection: boolean;
|
|
112
|
+
};
|
|
113
|
+
export type QBAY_getInfoOfMarketplace_input = Record<string, never>;
|
|
114
|
+
export type QBAY_getInfoOfMarketplace_output = {
|
|
115
|
+
readonly priceOfCFB: bigint;
|
|
116
|
+
readonly priceOfQubic: bigint;
|
|
117
|
+
readonly numberOfNFTIncoming: bigint;
|
|
118
|
+
readonly earnedQubic: bigint;
|
|
119
|
+
readonly earnedCFB: bigint;
|
|
120
|
+
readonly numberOfCollection: number;
|
|
121
|
+
readonly numberOfNFT: number;
|
|
122
|
+
readonly statusOfMarketPlace: boolean;
|
|
123
|
+
};
|
|
124
|
+
export type QBAY_getInfoOfNFTById_input = {
|
|
125
|
+
readonly NFTId: number;
|
|
126
|
+
};
|
|
127
|
+
export type QBAY_getInfoOfNFTById_output = {
|
|
128
|
+
readonly creator: string;
|
|
129
|
+
readonly possessor: string;
|
|
130
|
+
readonly askUser: string;
|
|
131
|
+
readonly creatorOfAuction: string;
|
|
132
|
+
readonly salePrice: bigint;
|
|
133
|
+
readonly askMaxPrice: bigint;
|
|
134
|
+
readonly currentPriceOfAuction: bigint;
|
|
135
|
+
readonly royalty: number;
|
|
136
|
+
readonly NFTidForExchange: number;
|
|
137
|
+
readonly URI: ReadonlyArray<number>;
|
|
138
|
+
readonly statusOfAuction: number;
|
|
139
|
+
readonly yearAuctionStarted: number;
|
|
140
|
+
readonly monthAuctionStarted: number;
|
|
141
|
+
readonly dayAuctionStarted: number;
|
|
142
|
+
readonly hourAuctionStarted: number;
|
|
143
|
+
readonly minuteAuctionStarted: number;
|
|
144
|
+
readonly secondAuctionStarted: number;
|
|
145
|
+
readonly yearAuctionEnded: number;
|
|
146
|
+
readonly monthAuctionEnded: number;
|
|
147
|
+
readonly dayAuctionEnded: number;
|
|
148
|
+
readonly hourAuctionEnded: number;
|
|
149
|
+
readonly minuteAuctionEnded: number;
|
|
150
|
+
readonly secondAuctionEnded: number;
|
|
151
|
+
readonly statusOfSale: boolean;
|
|
152
|
+
readonly statusOfAsk: boolean;
|
|
153
|
+
readonly paymentMethodOfAsk: boolean;
|
|
154
|
+
readonly statusOfExchange: boolean;
|
|
155
|
+
readonly paymentMethodOfAuction: boolean;
|
|
156
|
+
};
|
|
157
|
+
export type QBAY_getInfoOfNFTUserPossessed_input = {
|
|
158
|
+
readonly user: string;
|
|
159
|
+
readonly NFTNumber: number;
|
|
160
|
+
};
|
|
161
|
+
export type QBAY_getInfoOfNFTUserPossessed_output = {
|
|
162
|
+
readonly creator: string;
|
|
163
|
+
readonly possessor: string;
|
|
164
|
+
readonly askUser: string;
|
|
165
|
+
readonly creatorOfAuction: string;
|
|
166
|
+
readonly salePrice: bigint;
|
|
167
|
+
readonly askMaxPrice: bigint;
|
|
168
|
+
readonly currentPriceOfAuction: bigint;
|
|
169
|
+
readonly royalty: number;
|
|
170
|
+
readonly NFTidForExchange: number;
|
|
171
|
+
readonly URI: ReadonlyArray<number>;
|
|
172
|
+
readonly statusOfAuction: number;
|
|
173
|
+
readonly yearAuctionStarted: number;
|
|
174
|
+
readonly monthAuctionStarted: number;
|
|
175
|
+
readonly dayAuctionStarted: number;
|
|
176
|
+
readonly hourAuctionStarted: number;
|
|
177
|
+
readonly minuteAuctionStarted: number;
|
|
178
|
+
readonly secondAuctionStarted: number;
|
|
179
|
+
readonly yearAuctionEnded: number;
|
|
180
|
+
readonly monthAuctionEnded: number;
|
|
181
|
+
readonly dayAuctionEnded: number;
|
|
182
|
+
readonly hourAuctionEnded: number;
|
|
183
|
+
readonly minuteAuctionEnded: number;
|
|
184
|
+
readonly secondAuctionEnded: number;
|
|
185
|
+
readonly statusOfSale: boolean;
|
|
186
|
+
readonly statusOfAsk: boolean;
|
|
187
|
+
readonly paymentMethodOfAsk: boolean;
|
|
188
|
+
readonly statusOfExchange: boolean;
|
|
189
|
+
readonly paymentMethodOfAuction: boolean;
|
|
190
|
+
};
|
|
191
|
+
export type QBAY_getNumberOfNFTForUser_input = {
|
|
192
|
+
readonly user: string;
|
|
193
|
+
};
|
|
194
|
+
export type QBAY_getNumberOfNFTForUser_output = {
|
|
195
|
+
readonly numberOfNFT: number;
|
|
196
|
+
};
|
|
197
|
+
export type QBAY_getUserCreatedCollection_input = {
|
|
198
|
+
readonly user: string;
|
|
199
|
+
readonly offset: number;
|
|
200
|
+
readonly count: number;
|
|
201
|
+
};
|
|
202
|
+
export type QBAY_getUserCreatedCollection_output = {
|
|
203
|
+
readonly collectionId: ReadonlyArray<number>;
|
|
204
|
+
};
|
|
205
|
+
export type QBAY_getUserCreatedNFT_input = {
|
|
206
|
+
readonly user: string;
|
|
207
|
+
readonly offset: number;
|
|
208
|
+
readonly count: number;
|
|
209
|
+
};
|
|
210
|
+
export type QBAY_getUserCreatedNFT_output = {
|
|
211
|
+
readonly NFTId: ReadonlyArray<number>;
|
|
212
|
+
};
|
|
213
|
+
export type QBAY_listInExchange_input = {
|
|
214
|
+
readonly possessedNFT: number;
|
|
215
|
+
readonly anotherNFT: number;
|
|
216
|
+
};
|
|
217
|
+
export type QBAY_listInExchange_output = {
|
|
218
|
+
readonly returnCode: number;
|
|
219
|
+
};
|
|
220
|
+
export type QBAY_listInMarket_input = {
|
|
221
|
+
readonly price: bigint;
|
|
222
|
+
readonly NFTid: number;
|
|
223
|
+
};
|
|
224
|
+
export type QBAY_listInMarket_output = {
|
|
225
|
+
readonly returnCode: number;
|
|
226
|
+
};
|
|
227
|
+
export type QBAY_makeOffer_input = {
|
|
228
|
+
readonly askPrice: bigint;
|
|
229
|
+
readonly NFTid: number;
|
|
230
|
+
readonly paymentMethod: boolean;
|
|
231
|
+
};
|
|
232
|
+
export type QBAY_makeOffer_output = {
|
|
233
|
+
readonly returnCode: number;
|
|
234
|
+
};
|
|
235
|
+
export type QBAY_mint_input = {
|
|
236
|
+
readonly royalty: number;
|
|
237
|
+
readonly collectionId: number;
|
|
238
|
+
readonly URI: ReadonlyArray<number>;
|
|
239
|
+
readonly typeOfMint: boolean;
|
|
240
|
+
};
|
|
241
|
+
export type QBAY_mint_output = {
|
|
242
|
+
readonly returnCode: number;
|
|
243
|
+
};
|
|
244
|
+
export type QBAY_mintOfDrop_input = {
|
|
245
|
+
readonly collectionId: number;
|
|
246
|
+
readonly URI: ReadonlyArray<number>;
|
|
247
|
+
};
|
|
248
|
+
export type QBAY_mintOfDrop_output = {
|
|
249
|
+
readonly returnCode: number;
|
|
250
|
+
};
|
|
251
|
+
export type QBAY_settingCFBAndQubicPrice_input = {
|
|
252
|
+
readonly CFBPrice: bigint;
|
|
253
|
+
readonly QubicPrice: bigint;
|
|
254
|
+
};
|
|
255
|
+
export type QBAY_settingCFBAndQubicPrice_output = {
|
|
256
|
+
readonly returnCode: number;
|
|
257
|
+
};
|
|
258
|
+
export type QBAY_transfer_input = {
|
|
259
|
+
readonly receiver: string;
|
|
260
|
+
readonly NFTid: number;
|
|
261
|
+
};
|
|
262
|
+
export type QBAY_transfer_output = {
|
|
263
|
+
readonly returnCode: number;
|
|
264
|
+
};
|
|
265
|
+
export type QBAY_TransferShareManagementRights_input = {
|
|
266
|
+
readonly asset: QBAY_Asset;
|
|
267
|
+
readonly numberOfShares: bigint;
|
|
268
|
+
readonly newManagingContractIndex: number;
|
|
269
|
+
};
|
|
270
|
+
export type QBAY_TransferShareManagementRights_output = {
|
|
271
|
+
readonly transferredNumberOfShares: bigint;
|
|
272
|
+
readonly returnCode: number;
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
export interface ContractTypeMap {
|
|
276
|
+
QBAY: {
|
|
277
|
+
readonly contractIndex: 12;
|
|
278
|
+
readonly functions: {
|
|
279
|
+
getNumberOfNFTForUser: {
|
|
280
|
+
readonly kind: "function";
|
|
281
|
+
readonly inputType: 1;
|
|
282
|
+
readonly inputTypeName: "getNumberOfNFTForUser_input";
|
|
283
|
+
readonly outputTypeName: "getNumberOfNFTForUser_output";
|
|
284
|
+
readonly input: QBAY_getNumberOfNFTForUser_input;
|
|
285
|
+
readonly output: QBAY_getNumberOfNFTForUser_output;
|
|
286
|
+
};
|
|
287
|
+
getInfoOfNFTUserPossessed: {
|
|
288
|
+
readonly kind: "function";
|
|
289
|
+
readonly inputType: 2;
|
|
290
|
+
readonly inputTypeName: "getInfoOfNFTUserPossessed_input";
|
|
291
|
+
readonly outputTypeName: "getInfoOfNFTUserPossessed_output";
|
|
292
|
+
readonly input: QBAY_getInfoOfNFTUserPossessed_input;
|
|
293
|
+
readonly output: QBAY_getInfoOfNFTUserPossessed_output;
|
|
294
|
+
};
|
|
295
|
+
getInfoOfMarketplace: {
|
|
296
|
+
readonly kind: "function";
|
|
297
|
+
readonly inputType: 3;
|
|
298
|
+
readonly inputTypeName: "getInfoOfMarketplace_input";
|
|
299
|
+
readonly outputTypeName: "getInfoOfMarketplace_output";
|
|
300
|
+
readonly input: QBAY_getInfoOfMarketplace_input;
|
|
301
|
+
readonly output: QBAY_getInfoOfMarketplace_output;
|
|
302
|
+
};
|
|
303
|
+
getInfoOfCollectionByCreator: {
|
|
304
|
+
readonly kind: "function";
|
|
305
|
+
readonly inputType: 4;
|
|
306
|
+
readonly inputTypeName: "getInfoOfCollectionByCreator_input";
|
|
307
|
+
readonly outputTypeName: "getInfoOfCollectionByCreator_output";
|
|
308
|
+
readonly input: QBAY_getInfoOfCollectionByCreator_input;
|
|
309
|
+
readonly output: QBAY_getInfoOfCollectionByCreator_output;
|
|
310
|
+
};
|
|
311
|
+
getInfoOfCollectionById: {
|
|
312
|
+
readonly kind: "function";
|
|
313
|
+
readonly inputType: 5;
|
|
314
|
+
readonly inputTypeName: "getInfoOfCollectionById_input";
|
|
315
|
+
readonly outputTypeName: "getInfoOfCollectionById_output";
|
|
316
|
+
readonly input: QBAY_getInfoOfCollectionById_input;
|
|
317
|
+
readonly output: QBAY_getInfoOfCollectionById_output;
|
|
318
|
+
};
|
|
319
|
+
getIncomingAuctions: {
|
|
320
|
+
readonly kind: "function";
|
|
321
|
+
readonly inputType: 6;
|
|
322
|
+
readonly inputTypeName: "getIncomingAuctions_input";
|
|
323
|
+
readonly outputTypeName: "getIncomingAuctions_output";
|
|
324
|
+
readonly input: QBAY_getIncomingAuctions_input;
|
|
325
|
+
readonly output: QBAY_getIncomingAuctions_output;
|
|
326
|
+
};
|
|
327
|
+
getInfoOfNFTById: {
|
|
328
|
+
readonly kind: "function";
|
|
329
|
+
readonly inputType: 7;
|
|
330
|
+
readonly inputTypeName: "getInfoOfNFTById_input";
|
|
331
|
+
readonly outputTypeName: "getInfoOfNFTById_output";
|
|
332
|
+
readonly input: QBAY_getInfoOfNFTById_input;
|
|
333
|
+
readonly output: QBAY_getInfoOfNFTById_output;
|
|
334
|
+
};
|
|
335
|
+
getUserCreatedCollection: {
|
|
336
|
+
readonly kind: "function";
|
|
337
|
+
readonly inputType: 8;
|
|
338
|
+
readonly inputTypeName: "getUserCreatedCollection_input";
|
|
339
|
+
readonly outputTypeName: "getUserCreatedCollection_output";
|
|
340
|
+
readonly input: QBAY_getUserCreatedCollection_input;
|
|
341
|
+
readonly output: QBAY_getUserCreatedCollection_output;
|
|
342
|
+
};
|
|
343
|
+
getUserCreatedNFT: {
|
|
344
|
+
readonly kind: "function";
|
|
345
|
+
readonly inputType: 9;
|
|
346
|
+
readonly inputTypeName: "getUserCreatedNFT_input";
|
|
347
|
+
readonly outputTypeName: "getUserCreatedNFT_output";
|
|
348
|
+
readonly input: QBAY_getUserCreatedNFT_input;
|
|
349
|
+
readonly output: QBAY_getUserCreatedNFT_output;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
readonly procedures: {
|
|
353
|
+
settingCFBAndQubicPrice: {
|
|
354
|
+
readonly kind: "procedure";
|
|
355
|
+
readonly inputType: 1;
|
|
356
|
+
readonly inputTypeName: "settingCFBAndQubicPrice_input";
|
|
357
|
+
readonly outputTypeName: "settingCFBAndQubicPrice_output";
|
|
358
|
+
readonly input: QBAY_settingCFBAndQubicPrice_input;
|
|
359
|
+
readonly output: QBAY_settingCFBAndQubicPrice_output;
|
|
360
|
+
};
|
|
361
|
+
createCollection: {
|
|
362
|
+
readonly kind: "procedure";
|
|
363
|
+
readonly inputType: 2;
|
|
364
|
+
readonly inputTypeName: "createCollection_input";
|
|
365
|
+
readonly outputTypeName: "createCollection_output";
|
|
366
|
+
readonly input: QBAY_createCollection_input;
|
|
367
|
+
readonly output: QBAY_createCollection_output;
|
|
368
|
+
};
|
|
369
|
+
mint: {
|
|
370
|
+
readonly kind: "procedure";
|
|
371
|
+
readonly inputType: 3;
|
|
372
|
+
readonly inputTypeName: "mint_input";
|
|
373
|
+
readonly outputTypeName: "mint_output";
|
|
374
|
+
readonly input: QBAY_mint_input;
|
|
375
|
+
readonly output: QBAY_mint_output;
|
|
376
|
+
};
|
|
377
|
+
mintOfDrop: {
|
|
378
|
+
readonly kind: "procedure";
|
|
379
|
+
readonly inputType: 4;
|
|
380
|
+
readonly inputTypeName: "mintOfDrop_input";
|
|
381
|
+
readonly outputTypeName: "mintOfDrop_output";
|
|
382
|
+
readonly input: QBAY_mintOfDrop_input;
|
|
383
|
+
readonly output: QBAY_mintOfDrop_output;
|
|
384
|
+
};
|
|
385
|
+
transfer: {
|
|
386
|
+
readonly kind: "procedure";
|
|
387
|
+
readonly inputType: 5;
|
|
388
|
+
readonly inputTypeName: "transfer_input";
|
|
389
|
+
readonly outputTypeName: "transfer_output";
|
|
390
|
+
readonly input: QBAY_transfer_input;
|
|
391
|
+
readonly output: QBAY_transfer_output;
|
|
392
|
+
};
|
|
393
|
+
listInMarket: {
|
|
394
|
+
readonly kind: "procedure";
|
|
395
|
+
readonly inputType: 6;
|
|
396
|
+
readonly inputTypeName: "listInMarket_input";
|
|
397
|
+
readonly outputTypeName: "listInMarket_output";
|
|
398
|
+
readonly input: QBAY_listInMarket_input;
|
|
399
|
+
readonly output: QBAY_listInMarket_output;
|
|
400
|
+
};
|
|
401
|
+
buy: {
|
|
402
|
+
readonly kind: "procedure";
|
|
403
|
+
readonly inputType: 7;
|
|
404
|
+
readonly inputTypeName: "buy_input";
|
|
405
|
+
readonly outputTypeName: "buy_output";
|
|
406
|
+
readonly input: QBAY_buy_input;
|
|
407
|
+
readonly output: QBAY_buy_output;
|
|
408
|
+
};
|
|
409
|
+
cancelSale: {
|
|
410
|
+
readonly kind: "procedure";
|
|
411
|
+
readonly inputType: 8;
|
|
412
|
+
readonly inputTypeName: "cancelSale_input";
|
|
413
|
+
readonly outputTypeName: "cancelSale_output";
|
|
414
|
+
readonly input: QBAY_cancelSale_input;
|
|
415
|
+
readonly output: QBAY_cancelSale_output;
|
|
416
|
+
};
|
|
417
|
+
listInExchange: {
|
|
418
|
+
readonly kind: "procedure";
|
|
419
|
+
readonly inputType: 9;
|
|
420
|
+
readonly inputTypeName: "listInExchange_input";
|
|
421
|
+
readonly outputTypeName: "listInExchange_output";
|
|
422
|
+
readonly input: QBAY_listInExchange_input;
|
|
423
|
+
readonly output: QBAY_listInExchange_output;
|
|
424
|
+
};
|
|
425
|
+
cancelExchange: {
|
|
426
|
+
readonly kind: "procedure";
|
|
427
|
+
readonly inputType: 10;
|
|
428
|
+
readonly inputTypeName: "cancelExchange_input";
|
|
429
|
+
readonly outputTypeName: "cancelExchange_output";
|
|
430
|
+
readonly input: QBAY_cancelExchange_input;
|
|
431
|
+
readonly output: QBAY_cancelExchange_output;
|
|
432
|
+
};
|
|
433
|
+
makeOffer: {
|
|
434
|
+
readonly kind: "procedure";
|
|
435
|
+
readonly inputType: 11;
|
|
436
|
+
readonly inputTypeName: "makeOffer_input";
|
|
437
|
+
readonly outputTypeName: "makeOffer_output";
|
|
438
|
+
readonly input: QBAY_makeOffer_input;
|
|
439
|
+
readonly output: QBAY_makeOffer_output;
|
|
440
|
+
};
|
|
441
|
+
acceptOffer: {
|
|
442
|
+
readonly kind: "procedure";
|
|
443
|
+
readonly inputType: 12;
|
|
444
|
+
readonly inputTypeName: "acceptOffer_input";
|
|
445
|
+
readonly outputTypeName: "acceptOffer_output";
|
|
446
|
+
readonly input: QBAY_acceptOffer_input;
|
|
447
|
+
readonly output: QBAY_acceptOffer_output;
|
|
448
|
+
};
|
|
449
|
+
cancelOffer: {
|
|
450
|
+
readonly kind: "procedure";
|
|
451
|
+
readonly inputType: 13;
|
|
452
|
+
readonly inputTypeName: "cancelOffer_input";
|
|
453
|
+
readonly outputTypeName: "cancelOffer_output";
|
|
454
|
+
readonly input: QBAY_cancelOffer_input;
|
|
455
|
+
readonly output: QBAY_cancelOffer_output;
|
|
456
|
+
};
|
|
457
|
+
createTraditionalAuction: {
|
|
458
|
+
readonly kind: "procedure";
|
|
459
|
+
readonly inputType: 14;
|
|
460
|
+
readonly inputTypeName: "createTraditionalAuction_input";
|
|
461
|
+
readonly outputTypeName: "createTraditionalAuction_output";
|
|
462
|
+
readonly input: QBAY_createTraditionalAuction_input;
|
|
463
|
+
readonly output: QBAY_createTraditionalAuction_output;
|
|
464
|
+
};
|
|
465
|
+
bidOnTraditionalAuction: {
|
|
466
|
+
readonly kind: "procedure";
|
|
467
|
+
readonly inputType: 15;
|
|
468
|
+
readonly inputTypeName: "bidOnTraditionalAuction_input";
|
|
469
|
+
readonly outputTypeName: "bidOnTraditionalAuction_output";
|
|
470
|
+
readonly input: QBAY_bidOnTraditionalAuction_input;
|
|
471
|
+
readonly output: QBAY_bidOnTraditionalAuction_output;
|
|
472
|
+
};
|
|
473
|
+
TransferShareManagementRights: {
|
|
474
|
+
readonly kind: "procedure";
|
|
475
|
+
readonly inputType: 16;
|
|
476
|
+
readonly inputTypeName: "TransferShareManagementRights_input";
|
|
477
|
+
readonly outputTypeName: "TransferShareManagementRights_output";
|
|
478
|
+
readonly input: QBAY_TransferShareManagementRights_input;
|
|
479
|
+
readonly output: QBAY_TransferShareManagementRights_output;
|
|
480
|
+
};
|
|
481
|
+
changeStatusOfMarketPlace: {
|
|
482
|
+
readonly kind: "procedure";
|
|
483
|
+
readonly inputType: 17;
|
|
484
|
+
readonly inputTypeName: "changeStatusOfMarketPlace_input";
|
|
485
|
+
readonly outputTypeName: "changeStatusOfMarketPlace_output";
|
|
486
|
+
readonly input: QBAY_changeStatusOfMarketPlace_input;
|
|
487
|
+
readonly output: QBAY_changeStatusOfMarketPlace_output;
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
export type ContractName = keyof ContractTypeMap & string;
|
|
494
|
+
export type FunctionName<C extends ContractName> = keyof ContractTypeMap[C]["functions"] & string;
|
|
495
|
+
export type ProcedureName<C extends ContractName> = keyof ContractTypeMap[C]["procedures"] & string;
|
|
496
|
+
|
|
497
|
+
export type FunctionInput<
|
|
498
|
+
C extends ContractName,
|
|
499
|
+
F extends FunctionName<C>,
|
|
500
|
+
> = ContractTypeMap[C]["functions"][F]["input"];
|
|
501
|
+
export type FunctionOutput<
|
|
502
|
+
C extends ContractName,
|
|
503
|
+
F extends FunctionName<C>,
|
|
504
|
+
> = ContractTypeMap[C]["functions"][F]["output"];
|
|
505
|
+
|
|
506
|
+
export type ProcedureInput<
|
|
507
|
+
C extends ContractName,
|
|
508
|
+
P extends ProcedureName<C>,
|
|
509
|
+
> = ContractTypeMap[C]["procedures"][P]["input"];
|
|
510
|
+
export type ProcedureOutput<
|
|
511
|
+
C extends ContractName,
|
|
512
|
+
P extends ProcedureName<C>,
|
|
513
|
+
> = ContractTypeMap[C]["procedures"][P]["output"];
|
|
514
|
+
|
|
515
|
+
export const contractCodecRegistry = {
|
|
516
|
+
QBAY: {
|
|
517
|
+
contractIndex: 12,
|
|
518
|
+
functions: {
|
|
519
|
+
getNumberOfNFTForUser: {
|
|
520
|
+
kind: "function",
|
|
521
|
+
inputType: 1,
|
|
522
|
+
inputTypeName: "getNumberOfNFTForUser_input",
|
|
523
|
+
outputTypeName: "getNumberOfNFTForUser_output",
|
|
524
|
+
},
|
|
525
|
+
getInfoOfNFTUserPossessed: {
|
|
526
|
+
kind: "function",
|
|
527
|
+
inputType: 2,
|
|
528
|
+
inputTypeName: "getInfoOfNFTUserPossessed_input",
|
|
529
|
+
outputTypeName: "getInfoOfNFTUserPossessed_output",
|
|
530
|
+
},
|
|
531
|
+
getInfoOfMarketplace: {
|
|
532
|
+
kind: "function",
|
|
533
|
+
inputType: 3,
|
|
534
|
+
inputTypeName: "getInfoOfMarketplace_input",
|
|
535
|
+
outputTypeName: "getInfoOfMarketplace_output",
|
|
536
|
+
},
|
|
537
|
+
getInfoOfCollectionByCreator: {
|
|
538
|
+
kind: "function",
|
|
539
|
+
inputType: 4,
|
|
540
|
+
inputTypeName: "getInfoOfCollectionByCreator_input",
|
|
541
|
+
outputTypeName: "getInfoOfCollectionByCreator_output",
|
|
542
|
+
},
|
|
543
|
+
getInfoOfCollectionById: {
|
|
544
|
+
kind: "function",
|
|
545
|
+
inputType: 5,
|
|
546
|
+
inputTypeName: "getInfoOfCollectionById_input",
|
|
547
|
+
outputTypeName: "getInfoOfCollectionById_output",
|
|
548
|
+
},
|
|
549
|
+
getIncomingAuctions: {
|
|
550
|
+
kind: "function",
|
|
551
|
+
inputType: 6,
|
|
552
|
+
inputTypeName: "getIncomingAuctions_input",
|
|
553
|
+
outputTypeName: "getIncomingAuctions_output",
|
|
554
|
+
},
|
|
555
|
+
getInfoOfNFTById: {
|
|
556
|
+
kind: "function",
|
|
557
|
+
inputType: 7,
|
|
558
|
+
inputTypeName: "getInfoOfNFTById_input",
|
|
559
|
+
outputTypeName: "getInfoOfNFTById_output",
|
|
560
|
+
},
|
|
561
|
+
getUserCreatedCollection: {
|
|
562
|
+
kind: "function",
|
|
563
|
+
inputType: 8,
|
|
564
|
+
inputTypeName: "getUserCreatedCollection_input",
|
|
565
|
+
outputTypeName: "getUserCreatedCollection_output",
|
|
566
|
+
},
|
|
567
|
+
getUserCreatedNFT: {
|
|
568
|
+
kind: "function",
|
|
569
|
+
inputType: 9,
|
|
570
|
+
inputTypeName: "getUserCreatedNFT_input",
|
|
571
|
+
outputTypeName: "getUserCreatedNFT_output",
|
|
572
|
+
},
|
|
573
|
+
},
|
|
574
|
+
procedures: {
|
|
575
|
+
settingCFBAndQubicPrice: {
|
|
576
|
+
kind: "procedure",
|
|
577
|
+
inputType: 1,
|
|
578
|
+
inputTypeName: "settingCFBAndQubicPrice_input",
|
|
579
|
+
outputTypeName: "settingCFBAndQubicPrice_output",
|
|
580
|
+
},
|
|
581
|
+
createCollection: {
|
|
582
|
+
kind: "procedure",
|
|
583
|
+
inputType: 2,
|
|
584
|
+
inputTypeName: "createCollection_input",
|
|
585
|
+
outputTypeName: "createCollection_output",
|
|
586
|
+
},
|
|
587
|
+
mint: {
|
|
588
|
+
kind: "procedure",
|
|
589
|
+
inputType: 3,
|
|
590
|
+
inputTypeName: "mint_input",
|
|
591
|
+
outputTypeName: "mint_output",
|
|
592
|
+
},
|
|
593
|
+
mintOfDrop: {
|
|
594
|
+
kind: "procedure",
|
|
595
|
+
inputType: 4,
|
|
596
|
+
inputTypeName: "mintOfDrop_input",
|
|
597
|
+
outputTypeName: "mintOfDrop_output",
|
|
598
|
+
},
|
|
599
|
+
transfer: {
|
|
600
|
+
kind: "procedure",
|
|
601
|
+
inputType: 5,
|
|
602
|
+
inputTypeName: "transfer_input",
|
|
603
|
+
outputTypeName: "transfer_output",
|
|
604
|
+
},
|
|
605
|
+
listInMarket: {
|
|
606
|
+
kind: "procedure",
|
|
607
|
+
inputType: 6,
|
|
608
|
+
inputTypeName: "listInMarket_input",
|
|
609
|
+
outputTypeName: "listInMarket_output",
|
|
610
|
+
},
|
|
611
|
+
buy: {
|
|
612
|
+
kind: "procedure",
|
|
613
|
+
inputType: 7,
|
|
614
|
+
inputTypeName: "buy_input",
|
|
615
|
+
outputTypeName: "buy_output",
|
|
616
|
+
},
|
|
617
|
+
cancelSale: {
|
|
618
|
+
kind: "procedure",
|
|
619
|
+
inputType: 8,
|
|
620
|
+
inputTypeName: "cancelSale_input",
|
|
621
|
+
outputTypeName: "cancelSale_output",
|
|
622
|
+
},
|
|
623
|
+
listInExchange: {
|
|
624
|
+
kind: "procedure",
|
|
625
|
+
inputType: 9,
|
|
626
|
+
inputTypeName: "listInExchange_input",
|
|
627
|
+
outputTypeName: "listInExchange_output",
|
|
628
|
+
},
|
|
629
|
+
cancelExchange: {
|
|
630
|
+
kind: "procedure",
|
|
631
|
+
inputType: 10,
|
|
632
|
+
inputTypeName: "cancelExchange_input",
|
|
633
|
+
outputTypeName: "cancelExchange_output",
|
|
634
|
+
},
|
|
635
|
+
makeOffer: {
|
|
636
|
+
kind: "procedure",
|
|
637
|
+
inputType: 11,
|
|
638
|
+
inputTypeName: "makeOffer_input",
|
|
639
|
+
outputTypeName: "makeOffer_output",
|
|
640
|
+
},
|
|
641
|
+
acceptOffer: {
|
|
642
|
+
kind: "procedure",
|
|
643
|
+
inputType: 12,
|
|
644
|
+
inputTypeName: "acceptOffer_input",
|
|
645
|
+
outputTypeName: "acceptOffer_output",
|
|
646
|
+
},
|
|
647
|
+
cancelOffer: {
|
|
648
|
+
kind: "procedure",
|
|
649
|
+
inputType: 13,
|
|
650
|
+
inputTypeName: "cancelOffer_input",
|
|
651
|
+
outputTypeName: "cancelOffer_output",
|
|
652
|
+
},
|
|
653
|
+
createTraditionalAuction: {
|
|
654
|
+
kind: "procedure",
|
|
655
|
+
inputType: 14,
|
|
656
|
+
inputTypeName: "createTraditionalAuction_input",
|
|
657
|
+
outputTypeName: "createTraditionalAuction_output",
|
|
658
|
+
},
|
|
659
|
+
bidOnTraditionalAuction: {
|
|
660
|
+
kind: "procedure",
|
|
661
|
+
inputType: 15,
|
|
662
|
+
inputTypeName: "bidOnTraditionalAuction_input",
|
|
663
|
+
outputTypeName: "bidOnTraditionalAuction_output",
|
|
664
|
+
},
|
|
665
|
+
TransferShareManagementRights: {
|
|
666
|
+
kind: "procedure",
|
|
667
|
+
inputType: 16,
|
|
668
|
+
inputTypeName: "TransferShareManagementRights_input",
|
|
669
|
+
outputTypeName: "TransferShareManagementRights_output",
|
|
670
|
+
},
|
|
671
|
+
changeStatusOfMarketPlace: {
|
|
672
|
+
kind: "procedure",
|
|
673
|
+
inputType: 17,
|
|
674
|
+
inputTypeName: "changeStatusOfMarketPlace_input",
|
|
675
|
+
outputTypeName: "changeStatusOfMarketPlace_output",
|
|
676
|
+
},
|
|
677
|
+
},
|
|
678
|
+
},
|
|
679
|
+
} as const satisfies Readonly<Record<ContractName, unknown>>;
|
|
680
|
+
|
|
681
|
+
export type RuntimeContractCodecRegistry = typeof contractCodecRegistry;
|