@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,598 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* This file is generated. Do not edit manually. */
|
|
3
|
+
|
|
4
|
+
export type MSVAULT_Asset = {
|
|
5
|
+
readonly issuer: string;
|
|
6
|
+
readonly assetName: bigint;
|
|
7
|
+
};
|
|
8
|
+
export type MSVAULT_AssetBalance = {
|
|
9
|
+
readonly asset: MSVAULT_Asset;
|
|
10
|
+
readonly balance: bigint;
|
|
11
|
+
};
|
|
12
|
+
export type MSVAULT_deposit_input = {
|
|
13
|
+
readonly vaultId: bigint;
|
|
14
|
+
};
|
|
15
|
+
export type MSVAULT_deposit_output = {
|
|
16
|
+
readonly status: bigint;
|
|
17
|
+
};
|
|
18
|
+
export type MSVAULT_depositAsset_input = {
|
|
19
|
+
readonly vaultId: bigint;
|
|
20
|
+
readonly asset: MSVAULT_Asset;
|
|
21
|
+
readonly amount: bigint;
|
|
22
|
+
};
|
|
23
|
+
export type MSVAULT_depositAsset_output = {
|
|
24
|
+
readonly status: bigint;
|
|
25
|
+
};
|
|
26
|
+
export type MSVAULT_getAssetReleaseStatus_input = {
|
|
27
|
+
readonly vaultId: bigint;
|
|
28
|
+
};
|
|
29
|
+
export type MSVAULT_getAssetReleaseStatus_output = {
|
|
30
|
+
readonly status: bigint;
|
|
31
|
+
readonly assets: ReadonlyArray<MSVAULT_Asset>;
|
|
32
|
+
readonly amounts: ReadonlyArray<bigint>;
|
|
33
|
+
readonly destinations: ReadonlyArray<string>;
|
|
34
|
+
};
|
|
35
|
+
export type MSVAULT_getBalanceOf_input = {
|
|
36
|
+
readonly vaultId: bigint;
|
|
37
|
+
};
|
|
38
|
+
export type MSVAULT_getBalanceOf_output = {
|
|
39
|
+
readonly status: bigint;
|
|
40
|
+
readonly balance: bigint;
|
|
41
|
+
};
|
|
42
|
+
export type MSVAULT_getFees_input = Record<string, never>;
|
|
43
|
+
export type MSVAULT_getFees_output = {
|
|
44
|
+
readonly registeringFee: bigint;
|
|
45
|
+
readonly releaseFee: bigint;
|
|
46
|
+
readonly releaseResetFee: bigint;
|
|
47
|
+
readonly holdingFee: bigint;
|
|
48
|
+
readonly depositFee: bigint;
|
|
49
|
+
readonly burnFee: bigint;
|
|
50
|
+
};
|
|
51
|
+
export type MSVAULT_getFeeVotes_input = Record<string, never>;
|
|
52
|
+
export type MSVAULT_getFeeVotes_output = {
|
|
53
|
+
readonly status: bigint;
|
|
54
|
+
readonly numberOfFeeVotes: bigint;
|
|
55
|
+
readonly feeVotes: ReadonlyArray<MSVAULT_MsVaultFeeVote>;
|
|
56
|
+
};
|
|
57
|
+
export type MSVAULT_getFeeVotesOwner_input = Record<string, never>;
|
|
58
|
+
export type MSVAULT_getFeeVotesOwner_output = {
|
|
59
|
+
readonly status: bigint;
|
|
60
|
+
readonly numberOfFeeVotes: bigint;
|
|
61
|
+
readonly feeVotesOwner: ReadonlyArray<string>;
|
|
62
|
+
};
|
|
63
|
+
export type MSVAULT_getFeeVotesScore_input = Record<string, never>;
|
|
64
|
+
export type MSVAULT_getFeeVotesScore_output = {
|
|
65
|
+
readonly status: bigint;
|
|
66
|
+
readonly numberOfFeeVotes: bigint;
|
|
67
|
+
readonly feeVotesScore: ReadonlyArray<bigint>;
|
|
68
|
+
};
|
|
69
|
+
export type MSVAULT_getManagedAssetBalance_input = {
|
|
70
|
+
readonly asset: MSVAULT_Asset;
|
|
71
|
+
readonly owner: string;
|
|
72
|
+
};
|
|
73
|
+
export type MSVAULT_getManagedAssetBalance_output = {
|
|
74
|
+
readonly balance: bigint;
|
|
75
|
+
};
|
|
76
|
+
export type MSVAULT_getReleaseStatus_input = {
|
|
77
|
+
readonly vaultId: bigint;
|
|
78
|
+
};
|
|
79
|
+
export type MSVAULT_getReleaseStatus_output = {
|
|
80
|
+
readonly status: bigint;
|
|
81
|
+
readonly amounts: ReadonlyArray<bigint>;
|
|
82
|
+
readonly destinations: ReadonlyArray<string>;
|
|
83
|
+
};
|
|
84
|
+
export type MSVAULT_getRevenueInfo_input = Record<string, never>;
|
|
85
|
+
export type MSVAULT_getRevenueInfo_output = {
|
|
86
|
+
readonly numberOfActiveVaults: bigint;
|
|
87
|
+
readonly totalRevenue: bigint;
|
|
88
|
+
readonly totalDistributedToShareholders: bigint;
|
|
89
|
+
readonly burnedAmount: bigint;
|
|
90
|
+
};
|
|
91
|
+
export type MSVAULT_getUniqueFeeVotes_input = Record<string, never>;
|
|
92
|
+
export type MSVAULT_getUniqueFeeVotes_output = {
|
|
93
|
+
readonly status: bigint;
|
|
94
|
+
readonly numberOfUniqueFeeVotes: bigint;
|
|
95
|
+
readonly uniqueFeeVotes: ReadonlyArray<MSVAULT_MsVaultFeeVote>;
|
|
96
|
+
};
|
|
97
|
+
export type MSVAULT_getUniqueFeeVotesRanking_input = Record<string, never>;
|
|
98
|
+
export type MSVAULT_getUniqueFeeVotesRanking_output = {
|
|
99
|
+
readonly status: bigint;
|
|
100
|
+
readonly numberOfUniqueFeeVotes: bigint;
|
|
101
|
+
readonly uniqueFeeVotesRanking: ReadonlyArray<bigint>;
|
|
102
|
+
};
|
|
103
|
+
export type MSVAULT_getVaultAssetBalances_input = {
|
|
104
|
+
readonly vaultId: bigint;
|
|
105
|
+
};
|
|
106
|
+
export type MSVAULT_getVaultAssetBalances_output = {
|
|
107
|
+
readonly status: bigint;
|
|
108
|
+
readonly numberOfAssetTypes: bigint;
|
|
109
|
+
readonly assetBalances: ReadonlyArray<MSVAULT_AssetBalance>;
|
|
110
|
+
};
|
|
111
|
+
export type MSVAULT_getVaultName_input = {
|
|
112
|
+
readonly vaultId: bigint;
|
|
113
|
+
};
|
|
114
|
+
export type MSVAULT_getVaultName_output = {
|
|
115
|
+
readonly status: bigint;
|
|
116
|
+
readonly vaultName: string;
|
|
117
|
+
};
|
|
118
|
+
export type MSVAULT_getVaultOwners_input = {
|
|
119
|
+
readonly vaultId: bigint;
|
|
120
|
+
};
|
|
121
|
+
export type MSVAULT_getVaultOwners_output = {
|
|
122
|
+
readonly status: bigint;
|
|
123
|
+
readonly numberOfOwners: bigint;
|
|
124
|
+
readonly owners: ReadonlyArray<string>;
|
|
125
|
+
readonly requiredApprovals: bigint;
|
|
126
|
+
};
|
|
127
|
+
export type MSVAULT_getVaults_input = {
|
|
128
|
+
readonly publicKey: string;
|
|
129
|
+
};
|
|
130
|
+
export type MSVAULT_getVaults_output = {
|
|
131
|
+
readonly numberOfVaults: bigint;
|
|
132
|
+
readonly vaultIds: ReadonlyArray<bigint>;
|
|
133
|
+
readonly vaultNames: ReadonlyArray<string>;
|
|
134
|
+
};
|
|
135
|
+
export type MSVAULT_isShareHolder_input = {
|
|
136
|
+
readonly candidate: string;
|
|
137
|
+
};
|
|
138
|
+
export type MSVAULT_isShareHolder_output = {
|
|
139
|
+
readonly result: bigint;
|
|
140
|
+
};
|
|
141
|
+
export type MSVAULT_MsVaultFeeVote = {
|
|
142
|
+
readonly registeringFee: bigint;
|
|
143
|
+
readonly releaseFee: bigint;
|
|
144
|
+
readonly releaseResetFee: bigint;
|
|
145
|
+
readonly holdingFee: bigint;
|
|
146
|
+
readonly depositFee: bigint;
|
|
147
|
+
readonly burnFee: bigint;
|
|
148
|
+
};
|
|
149
|
+
export type MSVAULT_registerVault_input = {
|
|
150
|
+
readonly vaultName: string;
|
|
151
|
+
readonly owners: ReadonlyArray<string>;
|
|
152
|
+
readonly requiredApprovals: bigint;
|
|
153
|
+
};
|
|
154
|
+
export type MSVAULT_registerVault_output = {
|
|
155
|
+
readonly status: bigint;
|
|
156
|
+
};
|
|
157
|
+
export type MSVAULT_releaseAssetTo_input = {
|
|
158
|
+
readonly vaultId: bigint;
|
|
159
|
+
readonly asset: MSVAULT_Asset;
|
|
160
|
+
readonly amount: bigint;
|
|
161
|
+
readonly destination: string;
|
|
162
|
+
};
|
|
163
|
+
export type MSVAULT_releaseAssetTo_output = {
|
|
164
|
+
readonly status: bigint;
|
|
165
|
+
};
|
|
166
|
+
export type MSVAULT_releaseTo_input = {
|
|
167
|
+
readonly vaultId: bigint;
|
|
168
|
+
readonly amount: bigint;
|
|
169
|
+
readonly destination: string;
|
|
170
|
+
};
|
|
171
|
+
export type MSVAULT_releaseTo_output = {
|
|
172
|
+
readonly status: bigint;
|
|
173
|
+
};
|
|
174
|
+
export type MSVAULT_resetAssetRelease_input = {
|
|
175
|
+
readonly vaultId: bigint;
|
|
176
|
+
};
|
|
177
|
+
export type MSVAULT_resetAssetRelease_output = {
|
|
178
|
+
readonly status: bigint;
|
|
179
|
+
};
|
|
180
|
+
export type MSVAULT_resetRelease_input = {
|
|
181
|
+
readonly vaultId: bigint;
|
|
182
|
+
};
|
|
183
|
+
export type MSVAULT_resetRelease_output = {
|
|
184
|
+
readonly status: bigint;
|
|
185
|
+
};
|
|
186
|
+
export type MSVAULT_revokeAssetManagementRights_input = {
|
|
187
|
+
readonly asset: MSVAULT_Asset;
|
|
188
|
+
readonly numberOfShares: bigint;
|
|
189
|
+
};
|
|
190
|
+
export type MSVAULT_revokeAssetManagementRights_output = {
|
|
191
|
+
readonly transferredNumberOfShares: bigint;
|
|
192
|
+
readonly status: bigint;
|
|
193
|
+
};
|
|
194
|
+
export type MSVAULT_voteFeeChange_input = {
|
|
195
|
+
readonly newRegisteringFee: bigint;
|
|
196
|
+
readonly newReleaseFee: bigint;
|
|
197
|
+
readonly newReleaseResetFee: bigint;
|
|
198
|
+
readonly newHoldingFee: bigint;
|
|
199
|
+
readonly newDepositFee: bigint;
|
|
200
|
+
readonly burnFee: bigint;
|
|
201
|
+
};
|
|
202
|
+
export type MSVAULT_voteFeeChange_output = {
|
|
203
|
+
readonly status: bigint;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
export interface ContractTypeMap {
|
|
207
|
+
MSVAULT: {
|
|
208
|
+
readonly contractIndex: 11;
|
|
209
|
+
readonly functions: {
|
|
210
|
+
getVaults: {
|
|
211
|
+
readonly kind: "function";
|
|
212
|
+
readonly inputType: 5;
|
|
213
|
+
readonly inputTypeName: "getVaults_input";
|
|
214
|
+
readonly outputTypeName: "getVaults_output";
|
|
215
|
+
readonly input: MSVAULT_getVaults_input;
|
|
216
|
+
readonly output: MSVAULT_getVaults_output;
|
|
217
|
+
};
|
|
218
|
+
getReleaseStatus: {
|
|
219
|
+
readonly kind: "function";
|
|
220
|
+
readonly inputType: 6;
|
|
221
|
+
readonly inputTypeName: "getReleaseStatus_input";
|
|
222
|
+
readonly outputTypeName: "getReleaseStatus_output";
|
|
223
|
+
readonly input: MSVAULT_getReleaseStatus_input;
|
|
224
|
+
readonly output: MSVAULT_getReleaseStatus_output;
|
|
225
|
+
};
|
|
226
|
+
getBalanceOf: {
|
|
227
|
+
readonly kind: "function";
|
|
228
|
+
readonly inputType: 7;
|
|
229
|
+
readonly inputTypeName: "getBalanceOf_input";
|
|
230
|
+
readonly outputTypeName: "getBalanceOf_output";
|
|
231
|
+
readonly input: MSVAULT_getBalanceOf_input;
|
|
232
|
+
readonly output: MSVAULT_getBalanceOf_output;
|
|
233
|
+
};
|
|
234
|
+
getVaultName: {
|
|
235
|
+
readonly kind: "function";
|
|
236
|
+
readonly inputType: 8;
|
|
237
|
+
readonly inputTypeName: "getVaultName_input";
|
|
238
|
+
readonly outputTypeName: "getVaultName_output";
|
|
239
|
+
readonly input: MSVAULT_getVaultName_input;
|
|
240
|
+
readonly output: MSVAULT_getVaultName_output;
|
|
241
|
+
};
|
|
242
|
+
getRevenueInfo: {
|
|
243
|
+
readonly kind: "function";
|
|
244
|
+
readonly inputType: 9;
|
|
245
|
+
readonly inputTypeName: "getRevenueInfo_input";
|
|
246
|
+
readonly outputTypeName: "getRevenueInfo_output";
|
|
247
|
+
readonly input: MSVAULT_getRevenueInfo_input;
|
|
248
|
+
readonly output: MSVAULT_getRevenueInfo_output;
|
|
249
|
+
};
|
|
250
|
+
getFees: {
|
|
251
|
+
readonly kind: "function";
|
|
252
|
+
readonly inputType: 10;
|
|
253
|
+
readonly inputTypeName: "getFees_input";
|
|
254
|
+
readonly outputTypeName: "getFees_output";
|
|
255
|
+
readonly input: MSVAULT_getFees_input;
|
|
256
|
+
readonly output: MSVAULT_getFees_output;
|
|
257
|
+
};
|
|
258
|
+
getVaultOwners: {
|
|
259
|
+
readonly kind: "function";
|
|
260
|
+
readonly inputType: 11;
|
|
261
|
+
readonly inputTypeName: "getVaultOwners_input";
|
|
262
|
+
readonly outputTypeName: "getVaultOwners_output";
|
|
263
|
+
readonly input: MSVAULT_getVaultOwners_input;
|
|
264
|
+
readonly output: MSVAULT_getVaultOwners_output;
|
|
265
|
+
};
|
|
266
|
+
isShareHolder: {
|
|
267
|
+
readonly kind: "function";
|
|
268
|
+
readonly inputType: 12;
|
|
269
|
+
readonly inputTypeName: "isShareHolder_input";
|
|
270
|
+
readonly outputTypeName: "isShareHolder_output";
|
|
271
|
+
readonly input: MSVAULT_isShareHolder_input;
|
|
272
|
+
readonly output: MSVAULT_isShareHolder_output;
|
|
273
|
+
};
|
|
274
|
+
getFeeVotes: {
|
|
275
|
+
readonly kind: "function";
|
|
276
|
+
readonly inputType: 14;
|
|
277
|
+
readonly inputTypeName: "getFeeVotes_input";
|
|
278
|
+
readonly outputTypeName: "getFeeVotes_output";
|
|
279
|
+
readonly input: MSVAULT_getFeeVotes_input;
|
|
280
|
+
readonly output: MSVAULT_getFeeVotes_output;
|
|
281
|
+
};
|
|
282
|
+
getFeeVotesOwner: {
|
|
283
|
+
readonly kind: "function";
|
|
284
|
+
readonly inputType: 15;
|
|
285
|
+
readonly inputTypeName: "getFeeVotesOwner_input";
|
|
286
|
+
readonly outputTypeName: "getFeeVotesOwner_output";
|
|
287
|
+
readonly input: MSVAULT_getFeeVotesOwner_input;
|
|
288
|
+
readonly output: MSVAULT_getFeeVotesOwner_output;
|
|
289
|
+
};
|
|
290
|
+
getFeeVotesScore: {
|
|
291
|
+
readonly kind: "function";
|
|
292
|
+
readonly inputType: 16;
|
|
293
|
+
readonly inputTypeName: "getFeeVotesScore_input";
|
|
294
|
+
readonly outputTypeName: "getFeeVotesScore_output";
|
|
295
|
+
readonly input: MSVAULT_getFeeVotesScore_input;
|
|
296
|
+
readonly output: MSVAULT_getFeeVotesScore_output;
|
|
297
|
+
};
|
|
298
|
+
getUniqueFeeVotes: {
|
|
299
|
+
readonly kind: "function";
|
|
300
|
+
readonly inputType: 17;
|
|
301
|
+
readonly inputTypeName: "getUniqueFeeVotes_input";
|
|
302
|
+
readonly outputTypeName: "getUniqueFeeVotes_output";
|
|
303
|
+
readonly input: MSVAULT_getUniqueFeeVotes_input;
|
|
304
|
+
readonly output: MSVAULT_getUniqueFeeVotes_output;
|
|
305
|
+
};
|
|
306
|
+
getUniqueFeeVotesRanking: {
|
|
307
|
+
readonly kind: "function";
|
|
308
|
+
readonly inputType: 18;
|
|
309
|
+
readonly inputTypeName: "getUniqueFeeVotesRanking_input";
|
|
310
|
+
readonly outputTypeName: "getUniqueFeeVotesRanking_output";
|
|
311
|
+
readonly input: MSVAULT_getUniqueFeeVotesRanking_input;
|
|
312
|
+
readonly output: MSVAULT_getUniqueFeeVotesRanking_output;
|
|
313
|
+
};
|
|
314
|
+
getVaultAssetBalances: {
|
|
315
|
+
readonly kind: "function";
|
|
316
|
+
readonly inputType: 22;
|
|
317
|
+
readonly inputTypeName: "getVaultAssetBalances_input";
|
|
318
|
+
readonly outputTypeName: "getVaultAssetBalances_output";
|
|
319
|
+
readonly input: MSVAULT_getVaultAssetBalances_input;
|
|
320
|
+
readonly output: MSVAULT_getVaultAssetBalances_output;
|
|
321
|
+
};
|
|
322
|
+
getAssetReleaseStatus: {
|
|
323
|
+
readonly kind: "function";
|
|
324
|
+
readonly inputType: 23;
|
|
325
|
+
readonly inputTypeName: "getAssetReleaseStatus_input";
|
|
326
|
+
readonly outputTypeName: "getAssetReleaseStatus_output";
|
|
327
|
+
readonly input: MSVAULT_getAssetReleaseStatus_input;
|
|
328
|
+
readonly output: MSVAULT_getAssetReleaseStatus_output;
|
|
329
|
+
};
|
|
330
|
+
getManagedAssetBalance: {
|
|
331
|
+
readonly kind: "function";
|
|
332
|
+
readonly inputType: 24;
|
|
333
|
+
readonly inputTypeName: "getManagedAssetBalance_input";
|
|
334
|
+
readonly outputTypeName: "getManagedAssetBalance_output";
|
|
335
|
+
readonly input: MSVAULT_getManagedAssetBalance_input;
|
|
336
|
+
readonly output: MSVAULT_getManagedAssetBalance_output;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
readonly procedures: {
|
|
340
|
+
registerVault: {
|
|
341
|
+
readonly kind: "procedure";
|
|
342
|
+
readonly inputType: 1;
|
|
343
|
+
readonly inputTypeName: "registerVault_input";
|
|
344
|
+
readonly outputTypeName: "registerVault_output";
|
|
345
|
+
readonly input: MSVAULT_registerVault_input;
|
|
346
|
+
readonly output: MSVAULT_registerVault_output;
|
|
347
|
+
};
|
|
348
|
+
deposit: {
|
|
349
|
+
readonly kind: "procedure";
|
|
350
|
+
readonly inputType: 2;
|
|
351
|
+
readonly inputTypeName: "deposit_input";
|
|
352
|
+
readonly outputTypeName: "deposit_output";
|
|
353
|
+
readonly input: MSVAULT_deposit_input;
|
|
354
|
+
readonly output: MSVAULT_deposit_output;
|
|
355
|
+
};
|
|
356
|
+
releaseTo: {
|
|
357
|
+
readonly kind: "procedure";
|
|
358
|
+
readonly inputType: 3;
|
|
359
|
+
readonly inputTypeName: "releaseTo_input";
|
|
360
|
+
readonly outputTypeName: "releaseTo_output";
|
|
361
|
+
readonly input: MSVAULT_releaseTo_input;
|
|
362
|
+
readonly output: MSVAULT_releaseTo_output;
|
|
363
|
+
};
|
|
364
|
+
resetRelease: {
|
|
365
|
+
readonly kind: "procedure";
|
|
366
|
+
readonly inputType: 4;
|
|
367
|
+
readonly inputTypeName: "resetRelease_input";
|
|
368
|
+
readonly outputTypeName: "resetRelease_output";
|
|
369
|
+
readonly input: MSVAULT_resetRelease_input;
|
|
370
|
+
readonly output: MSVAULT_resetRelease_output;
|
|
371
|
+
};
|
|
372
|
+
voteFeeChange: {
|
|
373
|
+
readonly kind: "procedure";
|
|
374
|
+
readonly inputType: 13;
|
|
375
|
+
readonly inputTypeName: "voteFeeChange_input";
|
|
376
|
+
readonly outputTypeName: "voteFeeChange_output";
|
|
377
|
+
readonly input: MSVAULT_voteFeeChange_input;
|
|
378
|
+
readonly output: MSVAULT_voteFeeChange_output;
|
|
379
|
+
};
|
|
380
|
+
depositAsset: {
|
|
381
|
+
readonly kind: "procedure";
|
|
382
|
+
readonly inputType: 19;
|
|
383
|
+
readonly inputTypeName: "depositAsset_input";
|
|
384
|
+
readonly outputTypeName: "depositAsset_output";
|
|
385
|
+
readonly input: MSVAULT_depositAsset_input;
|
|
386
|
+
readonly output: MSVAULT_depositAsset_output;
|
|
387
|
+
};
|
|
388
|
+
releaseAssetTo: {
|
|
389
|
+
readonly kind: "procedure";
|
|
390
|
+
readonly inputType: 20;
|
|
391
|
+
readonly inputTypeName: "releaseAssetTo_input";
|
|
392
|
+
readonly outputTypeName: "releaseAssetTo_output";
|
|
393
|
+
readonly input: MSVAULT_releaseAssetTo_input;
|
|
394
|
+
readonly output: MSVAULT_releaseAssetTo_output;
|
|
395
|
+
};
|
|
396
|
+
resetAssetRelease: {
|
|
397
|
+
readonly kind: "procedure";
|
|
398
|
+
readonly inputType: 21;
|
|
399
|
+
readonly inputTypeName: "resetAssetRelease_input";
|
|
400
|
+
readonly outputTypeName: "resetAssetRelease_output";
|
|
401
|
+
readonly input: MSVAULT_resetAssetRelease_input;
|
|
402
|
+
readonly output: MSVAULT_resetAssetRelease_output;
|
|
403
|
+
};
|
|
404
|
+
revokeAssetManagementRights: {
|
|
405
|
+
readonly kind: "procedure";
|
|
406
|
+
readonly inputType: 25;
|
|
407
|
+
readonly inputTypeName: "revokeAssetManagementRights_input";
|
|
408
|
+
readonly outputTypeName: "revokeAssetManagementRights_output";
|
|
409
|
+
readonly input: MSVAULT_revokeAssetManagementRights_input;
|
|
410
|
+
readonly output: MSVAULT_revokeAssetManagementRights_output;
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export type ContractName = keyof ContractTypeMap & string;
|
|
417
|
+
export type FunctionName<C extends ContractName> = keyof ContractTypeMap[C]["functions"] & string;
|
|
418
|
+
export type ProcedureName<C extends ContractName> = keyof ContractTypeMap[C]["procedures"] & string;
|
|
419
|
+
|
|
420
|
+
export type FunctionInput<
|
|
421
|
+
C extends ContractName,
|
|
422
|
+
F extends FunctionName<C>,
|
|
423
|
+
> = ContractTypeMap[C]["functions"][F]["input"];
|
|
424
|
+
export type FunctionOutput<
|
|
425
|
+
C extends ContractName,
|
|
426
|
+
F extends FunctionName<C>,
|
|
427
|
+
> = ContractTypeMap[C]["functions"][F]["output"];
|
|
428
|
+
|
|
429
|
+
export type ProcedureInput<
|
|
430
|
+
C extends ContractName,
|
|
431
|
+
P extends ProcedureName<C>,
|
|
432
|
+
> = ContractTypeMap[C]["procedures"][P]["input"];
|
|
433
|
+
export type ProcedureOutput<
|
|
434
|
+
C extends ContractName,
|
|
435
|
+
P extends ProcedureName<C>,
|
|
436
|
+
> = ContractTypeMap[C]["procedures"][P]["output"];
|
|
437
|
+
|
|
438
|
+
export const contractCodecRegistry = {
|
|
439
|
+
MSVAULT: {
|
|
440
|
+
contractIndex: 11,
|
|
441
|
+
functions: {
|
|
442
|
+
getVaults: {
|
|
443
|
+
kind: "function",
|
|
444
|
+
inputType: 5,
|
|
445
|
+
inputTypeName: "getVaults_input",
|
|
446
|
+
outputTypeName: "getVaults_output",
|
|
447
|
+
},
|
|
448
|
+
getReleaseStatus: {
|
|
449
|
+
kind: "function",
|
|
450
|
+
inputType: 6,
|
|
451
|
+
inputTypeName: "getReleaseStatus_input",
|
|
452
|
+
outputTypeName: "getReleaseStatus_output",
|
|
453
|
+
},
|
|
454
|
+
getBalanceOf: {
|
|
455
|
+
kind: "function",
|
|
456
|
+
inputType: 7,
|
|
457
|
+
inputTypeName: "getBalanceOf_input",
|
|
458
|
+
outputTypeName: "getBalanceOf_output",
|
|
459
|
+
},
|
|
460
|
+
getVaultName: {
|
|
461
|
+
kind: "function",
|
|
462
|
+
inputType: 8,
|
|
463
|
+
inputTypeName: "getVaultName_input",
|
|
464
|
+
outputTypeName: "getVaultName_output",
|
|
465
|
+
},
|
|
466
|
+
getRevenueInfo: {
|
|
467
|
+
kind: "function",
|
|
468
|
+
inputType: 9,
|
|
469
|
+
inputTypeName: "getRevenueInfo_input",
|
|
470
|
+
outputTypeName: "getRevenueInfo_output",
|
|
471
|
+
},
|
|
472
|
+
getFees: {
|
|
473
|
+
kind: "function",
|
|
474
|
+
inputType: 10,
|
|
475
|
+
inputTypeName: "getFees_input",
|
|
476
|
+
outputTypeName: "getFees_output",
|
|
477
|
+
},
|
|
478
|
+
getVaultOwners: {
|
|
479
|
+
kind: "function",
|
|
480
|
+
inputType: 11,
|
|
481
|
+
inputTypeName: "getVaultOwners_input",
|
|
482
|
+
outputTypeName: "getVaultOwners_output",
|
|
483
|
+
},
|
|
484
|
+
isShareHolder: {
|
|
485
|
+
kind: "function",
|
|
486
|
+
inputType: 12,
|
|
487
|
+
inputTypeName: "isShareHolder_input",
|
|
488
|
+
outputTypeName: "isShareHolder_output",
|
|
489
|
+
},
|
|
490
|
+
getFeeVotes: {
|
|
491
|
+
kind: "function",
|
|
492
|
+
inputType: 14,
|
|
493
|
+
inputTypeName: "getFeeVotes_input",
|
|
494
|
+
outputTypeName: "getFeeVotes_output",
|
|
495
|
+
},
|
|
496
|
+
getFeeVotesOwner: {
|
|
497
|
+
kind: "function",
|
|
498
|
+
inputType: 15,
|
|
499
|
+
inputTypeName: "getFeeVotesOwner_input",
|
|
500
|
+
outputTypeName: "getFeeVotesOwner_output",
|
|
501
|
+
},
|
|
502
|
+
getFeeVotesScore: {
|
|
503
|
+
kind: "function",
|
|
504
|
+
inputType: 16,
|
|
505
|
+
inputTypeName: "getFeeVotesScore_input",
|
|
506
|
+
outputTypeName: "getFeeVotesScore_output",
|
|
507
|
+
},
|
|
508
|
+
getUniqueFeeVotes: {
|
|
509
|
+
kind: "function",
|
|
510
|
+
inputType: 17,
|
|
511
|
+
inputTypeName: "getUniqueFeeVotes_input",
|
|
512
|
+
outputTypeName: "getUniqueFeeVotes_output",
|
|
513
|
+
},
|
|
514
|
+
getUniqueFeeVotesRanking: {
|
|
515
|
+
kind: "function",
|
|
516
|
+
inputType: 18,
|
|
517
|
+
inputTypeName: "getUniqueFeeVotesRanking_input",
|
|
518
|
+
outputTypeName: "getUniqueFeeVotesRanking_output",
|
|
519
|
+
},
|
|
520
|
+
getVaultAssetBalances: {
|
|
521
|
+
kind: "function",
|
|
522
|
+
inputType: 22,
|
|
523
|
+
inputTypeName: "getVaultAssetBalances_input",
|
|
524
|
+
outputTypeName: "getVaultAssetBalances_output",
|
|
525
|
+
},
|
|
526
|
+
getAssetReleaseStatus: {
|
|
527
|
+
kind: "function",
|
|
528
|
+
inputType: 23,
|
|
529
|
+
inputTypeName: "getAssetReleaseStatus_input",
|
|
530
|
+
outputTypeName: "getAssetReleaseStatus_output",
|
|
531
|
+
},
|
|
532
|
+
getManagedAssetBalance: {
|
|
533
|
+
kind: "function",
|
|
534
|
+
inputType: 24,
|
|
535
|
+
inputTypeName: "getManagedAssetBalance_input",
|
|
536
|
+
outputTypeName: "getManagedAssetBalance_output",
|
|
537
|
+
},
|
|
538
|
+
},
|
|
539
|
+
procedures: {
|
|
540
|
+
registerVault: {
|
|
541
|
+
kind: "procedure",
|
|
542
|
+
inputType: 1,
|
|
543
|
+
inputTypeName: "registerVault_input",
|
|
544
|
+
outputTypeName: "registerVault_output",
|
|
545
|
+
},
|
|
546
|
+
deposit: {
|
|
547
|
+
kind: "procedure",
|
|
548
|
+
inputType: 2,
|
|
549
|
+
inputTypeName: "deposit_input",
|
|
550
|
+
outputTypeName: "deposit_output",
|
|
551
|
+
},
|
|
552
|
+
releaseTo: {
|
|
553
|
+
kind: "procedure",
|
|
554
|
+
inputType: 3,
|
|
555
|
+
inputTypeName: "releaseTo_input",
|
|
556
|
+
outputTypeName: "releaseTo_output",
|
|
557
|
+
},
|
|
558
|
+
resetRelease: {
|
|
559
|
+
kind: "procedure",
|
|
560
|
+
inputType: 4,
|
|
561
|
+
inputTypeName: "resetRelease_input",
|
|
562
|
+
outputTypeName: "resetRelease_output",
|
|
563
|
+
},
|
|
564
|
+
voteFeeChange: {
|
|
565
|
+
kind: "procedure",
|
|
566
|
+
inputType: 13,
|
|
567
|
+
inputTypeName: "voteFeeChange_input",
|
|
568
|
+
outputTypeName: "voteFeeChange_output",
|
|
569
|
+
},
|
|
570
|
+
depositAsset: {
|
|
571
|
+
kind: "procedure",
|
|
572
|
+
inputType: 19,
|
|
573
|
+
inputTypeName: "depositAsset_input",
|
|
574
|
+
outputTypeName: "depositAsset_output",
|
|
575
|
+
},
|
|
576
|
+
releaseAssetTo: {
|
|
577
|
+
kind: "procedure",
|
|
578
|
+
inputType: 20,
|
|
579
|
+
inputTypeName: "releaseAssetTo_input",
|
|
580
|
+
outputTypeName: "releaseAssetTo_output",
|
|
581
|
+
},
|
|
582
|
+
resetAssetRelease: {
|
|
583
|
+
kind: "procedure",
|
|
584
|
+
inputType: 21,
|
|
585
|
+
inputTypeName: "resetAssetRelease_input",
|
|
586
|
+
outputTypeName: "resetAssetRelease_output",
|
|
587
|
+
},
|
|
588
|
+
revokeAssetManagementRights: {
|
|
589
|
+
kind: "procedure",
|
|
590
|
+
inputType: 25,
|
|
591
|
+
inputTypeName: "revokeAssetManagementRights_input",
|
|
592
|
+
outputTypeName: "revokeAssetManagementRights_output",
|
|
593
|
+
},
|
|
594
|
+
},
|
|
595
|
+
},
|
|
596
|
+
} as const satisfies Readonly<Record<ContractName, unknown>>;
|
|
597
|
+
|
|
598
|
+
export type RuntimeContractCodecRegistry = typeof contractCodecRegistry;
|