@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,402 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* This file is generated. Do not edit manually. */
|
|
3
|
+
|
|
4
|
+
export type QRWA_Asset = {
|
|
5
|
+
readonly issuer: string;
|
|
6
|
+
readonly assetName: bigint;
|
|
7
|
+
};
|
|
8
|
+
export type QRWA_AssetReleaseProposal = {
|
|
9
|
+
readonly proposalId: bigint;
|
|
10
|
+
readonly proposalName: string;
|
|
11
|
+
readonly asset: QRWA_Asset;
|
|
12
|
+
readonly amount: bigint;
|
|
13
|
+
readonly destination: string;
|
|
14
|
+
readonly status: bigint;
|
|
15
|
+
readonly votesYes: bigint;
|
|
16
|
+
readonly votesNo: bigint;
|
|
17
|
+
};
|
|
18
|
+
export type QRWA_CreateAssetReleasePoll_input = {
|
|
19
|
+
readonly proposalName: string;
|
|
20
|
+
readonly asset: QRWA_Asset;
|
|
21
|
+
readonly amount: bigint;
|
|
22
|
+
readonly destination: string;
|
|
23
|
+
};
|
|
24
|
+
export type QRWA_CreateAssetReleasePoll_output = {
|
|
25
|
+
readonly status: bigint;
|
|
26
|
+
readonly proposalId: bigint;
|
|
27
|
+
};
|
|
28
|
+
export type QRWA_DepositGeneralAsset_input = {
|
|
29
|
+
readonly asset: QRWA_Asset;
|
|
30
|
+
readonly amount: bigint;
|
|
31
|
+
};
|
|
32
|
+
export type QRWA_DepositGeneralAsset_output = {
|
|
33
|
+
readonly status: bigint;
|
|
34
|
+
};
|
|
35
|
+
export type QRWA_DonateToTreasury_input = {
|
|
36
|
+
readonly amount: bigint;
|
|
37
|
+
};
|
|
38
|
+
export type QRWA_DonateToTreasury_output = {
|
|
39
|
+
readonly status: bigint;
|
|
40
|
+
};
|
|
41
|
+
export type QRWA_GetActiveAssetReleasePollIds_input = Record<string, never>;
|
|
42
|
+
export type QRWA_GetActiveAssetReleasePollIds_output = {
|
|
43
|
+
readonly count: bigint;
|
|
44
|
+
readonly ids: ReadonlyArray<bigint>;
|
|
45
|
+
};
|
|
46
|
+
export type QRWA_GetActiveGovPollIds_input = Record<string, never>;
|
|
47
|
+
export type QRWA_GetActiveGovPollIds_output = {
|
|
48
|
+
readonly count: bigint;
|
|
49
|
+
readonly ids: ReadonlyArray<bigint>;
|
|
50
|
+
};
|
|
51
|
+
export type QRWA_GetAssetReleasePoll_input = {
|
|
52
|
+
readonly proposalId: bigint;
|
|
53
|
+
};
|
|
54
|
+
export type QRWA_GetAssetReleasePoll_output = {
|
|
55
|
+
readonly proposal: QRWA_AssetReleaseProposal;
|
|
56
|
+
readonly status: bigint;
|
|
57
|
+
};
|
|
58
|
+
export type QRWA_GetDividendBalances_input = Record<string, never>;
|
|
59
|
+
export type QRWA_GetDividendBalances_output = {
|
|
60
|
+
readonly revenuePoolA: bigint;
|
|
61
|
+
readonly revenuePoolB: bigint;
|
|
62
|
+
readonly qmineDividendPool: bigint;
|
|
63
|
+
readonly qrwaDividendPool: bigint;
|
|
64
|
+
};
|
|
65
|
+
export type QRWA_GetGeneralAssetBalance_input = {
|
|
66
|
+
readonly asset: QRWA_Asset;
|
|
67
|
+
};
|
|
68
|
+
export type QRWA_GetGeneralAssetBalance_output = {
|
|
69
|
+
readonly balance: bigint;
|
|
70
|
+
readonly status: bigint;
|
|
71
|
+
};
|
|
72
|
+
export type QRWA_GetGeneralAssets_input = Record<string, never>;
|
|
73
|
+
export type QRWA_GetGeneralAssets_output = {
|
|
74
|
+
readonly count: bigint;
|
|
75
|
+
readonly assets: ReadonlyArray<QRWA_Asset>;
|
|
76
|
+
readonly balances: ReadonlyArray<bigint>;
|
|
77
|
+
};
|
|
78
|
+
export type QRWA_GetGovParams_input = Record<string, never>;
|
|
79
|
+
export type QRWA_GetGovParams_output = {
|
|
80
|
+
readonly params: QRWA_QRWAGovParams;
|
|
81
|
+
};
|
|
82
|
+
export type QRWA_GetGovPoll_input = {
|
|
83
|
+
readonly proposalId: bigint;
|
|
84
|
+
};
|
|
85
|
+
export type QRWA_GetGovPoll_output = {
|
|
86
|
+
readonly proposal: QRWA_QRWAGovProposal;
|
|
87
|
+
readonly status: bigint;
|
|
88
|
+
};
|
|
89
|
+
export type QRWA_GetTotalDistributed_input = Record<string, never>;
|
|
90
|
+
export type QRWA_GetTotalDistributed_output = {
|
|
91
|
+
readonly totalQmineDistributed: bigint;
|
|
92
|
+
readonly totalQRWADistributed: bigint;
|
|
93
|
+
};
|
|
94
|
+
export type QRWA_GetTreasuryBalance_input = Record<string, never>;
|
|
95
|
+
export type QRWA_GetTreasuryBalance_output = {
|
|
96
|
+
readonly balance: bigint;
|
|
97
|
+
};
|
|
98
|
+
export type QRWA_QRWAGovParams = {
|
|
99
|
+
readonly mAdminAddress: string;
|
|
100
|
+
readonly electricityAddress: string;
|
|
101
|
+
readonly maintenanceAddress: string;
|
|
102
|
+
readonly reinvestmentAddress: string;
|
|
103
|
+
readonly qmineDevAddress: string;
|
|
104
|
+
readonly electricityPercent: bigint;
|
|
105
|
+
readonly maintenancePercent: bigint;
|
|
106
|
+
readonly reinvestmentPercent: bigint;
|
|
107
|
+
};
|
|
108
|
+
export type QRWA_QRWAGovProposal = {
|
|
109
|
+
readonly proposalId: bigint;
|
|
110
|
+
readonly status: bigint;
|
|
111
|
+
readonly score: bigint;
|
|
112
|
+
readonly params: QRWA_QRWAGovParams;
|
|
113
|
+
};
|
|
114
|
+
export type QRWA_RevokeAssetManagementRights_input = {
|
|
115
|
+
readonly asset: QRWA_Asset;
|
|
116
|
+
readonly numberOfShares: bigint;
|
|
117
|
+
};
|
|
118
|
+
export type QRWA_RevokeAssetManagementRights_output = {
|
|
119
|
+
readonly transferredNumberOfShares: bigint;
|
|
120
|
+
readonly status: bigint;
|
|
121
|
+
};
|
|
122
|
+
export type QRWA_VoteAssetRelease_input = {
|
|
123
|
+
readonly proposalId: bigint;
|
|
124
|
+
readonly option: bigint;
|
|
125
|
+
};
|
|
126
|
+
export type QRWA_VoteAssetRelease_output = {
|
|
127
|
+
readonly status: bigint;
|
|
128
|
+
};
|
|
129
|
+
export type QRWA_VoteGovParams_input = {
|
|
130
|
+
readonly proposal: QRWA_QRWAGovParams;
|
|
131
|
+
};
|
|
132
|
+
export type QRWA_VoteGovParams_output = {
|
|
133
|
+
readonly status: bigint;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export interface ContractTypeMap {
|
|
137
|
+
QRWA: {
|
|
138
|
+
readonly contractIndex: 20;
|
|
139
|
+
readonly functions: {
|
|
140
|
+
GetGovParams: {
|
|
141
|
+
readonly kind: "function";
|
|
142
|
+
readonly inputType: 1;
|
|
143
|
+
readonly inputTypeName: "GetGovParams_input";
|
|
144
|
+
readonly outputTypeName: "GetGovParams_output";
|
|
145
|
+
readonly input: QRWA_GetGovParams_input;
|
|
146
|
+
readonly output: QRWA_GetGovParams_output;
|
|
147
|
+
};
|
|
148
|
+
GetGovPoll: {
|
|
149
|
+
readonly kind: "function";
|
|
150
|
+
readonly inputType: 2;
|
|
151
|
+
readonly inputTypeName: "GetGovPoll_input";
|
|
152
|
+
readonly outputTypeName: "GetGovPoll_output";
|
|
153
|
+
readonly input: QRWA_GetGovPoll_input;
|
|
154
|
+
readonly output: QRWA_GetGovPoll_output;
|
|
155
|
+
};
|
|
156
|
+
GetAssetReleasePoll: {
|
|
157
|
+
readonly kind: "function";
|
|
158
|
+
readonly inputType: 3;
|
|
159
|
+
readonly inputTypeName: "GetAssetReleasePoll_input";
|
|
160
|
+
readonly outputTypeName: "GetAssetReleasePoll_output";
|
|
161
|
+
readonly input: QRWA_GetAssetReleasePoll_input;
|
|
162
|
+
readonly output: QRWA_GetAssetReleasePoll_output;
|
|
163
|
+
};
|
|
164
|
+
GetTreasuryBalance: {
|
|
165
|
+
readonly kind: "function";
|
|
166
|
+
readonly inputType: 4;
|
|
167
|
+
readonly inputTypeName: "GetTreasuryBalance_input";
|
|
168
|
+
readonly outputTypeName: "GetTreasuryBalance_output";
|
|
169
|
+
readonly input: QRWA_GetTreasuryBalance_input;
|
|
170
|
+
readonly output: QRWA_GetTreasuryBalance_output;
|
|
171
|
+
};
|
|
172
|
+
GetDividendBalances: {
|
|
173
|
+
readonly kind: "function";
|
|
174
|
+
readonly inputType: 5;
|
|
175
|
+
readonly inputTypeName: "GetDividendBalances_input";
|
|
176
|
+
readonly outputTypeName: "GetDividendBalances_output";
|
|
177
|
+
readonly input: QRWA_GetDividendBalances_input;
|
|
178
|
+
readonly output: QRWA_GetDividendBalances_output;
|
|
179
|
+
};
|
|
180
|
+
GetTotalDistributed: {
|
|
181
|
+
readonly kind: "function";
|
|
182
|
+
readonly inputType: 6;
|
|
183
|
+
readonly inputTypeName: "GetTotalDistributed_input";
|
|
184
|
+
readonly outputTypeName: "GetTotalDistributed_output";
|
|
185
|
+
readonly input: QRWA_GetTotalDistributed_input;
|
|
186
|
+
readonly output: QRWA_GetTotalDistributed_output;
|
|
187
|
+
};
|
|
188
|
+
GetActiveAssetReleasePollIds: {
|
|
189
|
+
readonly kind: "function";
|
|
190
|
+
readonly inputType: 7;
|
|
191
|
+
readonly inputTypeName: "GetActiveAssetReleasePollIds_input";
|
|
192
|
+
readonly outputTypeName: "GetActiveAssetReleasePollIds_output";
|
|
193
|
+
readonly input: QRWA_GetActiveAssetReleasePollIds_input;
|
|
194
|
+
readonly output: QRWA_GetActiveAssetReleasePollIds_output;
|
|
195
|
+
};
|
|
196
|
+
GetActiveGovPollIds: {
|
|
197
|
+
readonly kind: "function";
|
|
198
|
+
readonly inputType: 8;
|
|
199
|
+
readonly inputTypeName: "GetActiveGovPollIds_input";
|
|
200
|
+
readonly outputTypeName: "GetActiveGovPollIds_output";
|
|
201
|
+
readonly input: QRWA_GetActiveGovPollIds_input;
|
|
202
|
+
readonly output: QRWA_GetActiveGovPollIds_output;
|
|
203
|
+
};
|
|
204
|
+
GetGeneralAssetBalance: {
|
|
205
|
+
readonly kind: "function";
|
|
206
|
+
readonly inputType: 9;
|
|
207
|
+
readonly inputTypeName: "GetGeneralAssetBalance_input";
|
|
208
|
+
readonly outputTypeName: "GetGeneralAssetBalance_output";
|
|
209
|
+
readonly input: QRWA_GetGeneralAssetBalance_input;
|
|
210
|
+
readonly output: QRWA_GetGeneralAssetBalance_output;
|
|
211
|
+
};
|
|
212
|
+
GetGeneralAssets: {
|
|
213
|
+
readonly kind: "function";
|
|
214
|
+
readonly inputType: 10;
|
|
215
|
+
readonly inputTypeName: "GetGeneralAssets_input";
|
|
216
|
+
readonly outputTypeName: "GetGeneralAssets_output";
|
|
217
|
+
readonly input: QRWA_GetGeneralAssets_input;
|
|
218
|
+
readonly output: QRWA_GetGeneralAssets_output;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly procedures: {
|
|
222
|
+
DonateToTreasury: {
|
|
223
|
+
readonly kind: "procedure";
|
|
224
|
+
readonly inputType: 3;
|
|
225
|
+
readonly inputTypeName: "DonateToTreasury_input";
|
|
226
|
+
readonly outputTypeName: "DonateToTreasury_output";
|
|
227
|
+
readonly input: QRWA_DonateToTreasury_input;
|
|
228
|
+
readonly output: QRWA_DonateToTreasury_output;
|
|
229
|
+
};
|
|
230
|
+
VoteGovParams: {
|
|
231
|
+
readonly kind: "procedure";
|
|
232
|
+
readonly inputType: 4;
|
|
233
|
+
readonly inputTypeName: "VoteGovParams_input";
|
|
234
|
+
readonly outputTypeName: "VoteGovParams_output";
|
|
235
|
+
readonly input: QRWA_VoteGovParams_input;
|
|
236
|
+
readonly output: QRWA_VoteGovParams_output;
|
|
237
|
+
};
|
|
238
|
+
CreateAssetReleasePoll: {
|
|
239
|
+
readonly kind: "procedure";
|
|
240
|
+
readonly inputType: 5;
|
|
241
|
+
readonly inputTypeName: "CreateAssetReleasePoll_input";
|
|
242
|
+
readonly outputTypeName: "CreateAssetReleasePoll_output";
|
|
243
|
+
readonly input: QRWA_CreateAssetReleasePoll_input;
|
|
244
|
+
readonly output: QRWA_CreateAssetReleasePoll_output;
|
|
245
|
+
};
|
|
246
|
+
VoteAssetRelease: {
|
|
247
|
+
readonly kind: "procedure";
|
|
248
|
+
readonly inputType: 6;
|
|
249
|
+
readonly inputTypeName: "VoteAssetRelease_input";
|
|
250
|
+
readonly outputTypeName: "VoteAssetRelease_output";
|
|
251
|
+
readonly input: QRWA_VoteAssetRelease_input;
|
|
252
|
+
readonly output: QRWA_VoteAssetRelease_output;
|
|
253
|
+
};
|
|
254
|
+
DepositGeneralAsset: {
|
|
255
|
+
readonly kind: "procedure";
|
|
256
|
+
readonly inputType: 7;
|
|
257
|
+
readonly inputTypeName: "DepositGeneralAsset_input";
|
|
258
|
+
readonly outputTypeName: "DepositGeneralAsset_output";
|
|
259
|
+
readonly input: QRWA_DepositGeneralAsset_input;
|
|
260
|
+
readonly output: QRWA_DepositGeneralAsset_output;
|
|
261
|
+
};
|
|
262
|
+
RevokeAssetManagementRights: {
|
|
263
|
+
readonly kind: "procedure";
|
|
264
|
+
readonly inputType: 8;
|
|
265
|
+
readonly inputTypeName: "RevokeAssetManagementRights_input";
|
|
266
|
+
readonly outputTypeName: "RevokeAssetManagementRights_output";
|
|
267
|
+
readonly input: QRWA_RevokeAssetManagementRights_input;
|
|
268
|
+
readonly output: QRWA_RevokeAssetManagementRights_output;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export type ContractName = keyof ContractTypeMap & string;
|
|
275
|
+
export type FunctionName<C extends ContractName> = keyof ContractTypeMap[C]["functions"] & string;
|
|
276
|
+
export type ProcedureName<C extends ContractName> = keyof ContractTypeMap[C]["procedures"] & string;
|
|
277
|
+
|
|
278
|
+
export type FunctionInput<
|
|
279
|
+
C extends ContractName,
|
|
280
|
+
F extends FunctionName<C>,
|
|
281
|
+
> = ContractTypeMap[C]["functions"][F]["input"];
|
|
282
|
+
export type FunctionOutput<
|
|
283
|
+
C extends ContractName,
|
|
284
|
+
F extends FunctionName<C>,
|
|
285
|
+
> = ContractTypeMap[C]["functions"][F]["output"];
|
|
286
|
+
|
|
287
|
+
export type ProcedureInput<
|
|
288
|
+
C extends ContractName,
|
|
289
|
+
P extends ProcedureName<C>,
|
|
290
|
+
> = ContractTypeMap[C]["procedures"][P]["input"];
|
|
291
|
+
export type ProcedureOutput<
|
|
292
|
+
C extends ContractName,
|
|
293
|
+
P extends ProcedureName<C>,
|
|
294
|
+
> = ContractTypeMap[C]["procedures"][P]["output"];
|
|
295
|
+
|
|
296
|
+
export const contractCodecRegistry = {
|
|
297
|
+
QRWA: {
|
|
298
|
+
contractIndex: 20,
|
|
299
|
+
functions: {
|
|
300
|
+
GetGovParams: {
|
|
301
|
+
kind: "function",
|
|
302
|
+
inputType: 1,
|
|
303
|
+
inputTypeName: "GetGovParams_input",
|
|
304
|
+
outputTypeName: "GetGovParams_output",
|
|
305
|
+
},
|
|
306
|
+
GetGovPoll: {
|
|
307
|
+
kind: "function",
|
|
308
|
+
inputType: 2,
|
|
309
|
+
inputTypeName: "GetGovPoll_input",
|
|
310
|
+
outputTypeName: "GetGovPoll_output",
|
|
311
|
+
},
|
|
312
|
+
GetAssetReleasePoll: {
|
|
313
|
+
kind: "function",
|
|
314
|
+
inputType: 3,
|
|
315
|
+
inputTypeName: "GetAssetReleasePoll_input",
|
|
316
|
+
outputTypeName: "GetAssetReleasePoll_output",
|
|
317
|
+
},
|
|
318
|
+
GetTreasuryBalance: {
|
|
319
|
+
kind: "function",
|
|
320
|
+
inputType: 4,
|
|
321
|
+
inputTypeName: "GetTreasuryBalance_input",
|
|
322
|
+
outputTypeName: "GetTreasuryBalance_output",
|
|
323
|
+
},
|
|
324
|
+
GetDividendBalances: {
|
|
325
|
+
kind: "function",
|
|
326
|
+
inputType: 5,
|
|
327
|
+
inputTypeName: "GetDividendBalances_input",
|
|
328
|
+
outputTypeName: "GetDividendBalances_output",
|
|
329
|
+
},
|
|
330
|
+
GetTotalDistributed: {
|
|
331
|
+
kind: "function",
|
|
332
|
+
inputType: 6,
|
|
333
|
+
inputTypeName: "GetTotalDistributed_input",
|
|
334
|
+
outputTypeName: "GetTotalDistributed_output",
|
|
335
|
+
},
|
|
336
|
+
GetActiveAssetReleasePollIds: {
|
|
337
|
+
kind: "function",
|
|
338
|
+
inputType: 7,
|
|
339
|
+
inputTypeName: "GetActiveAssetReleasePollIds_input",
|
|
340
|
+
outputTypeName: "GetActiveAssetReleasePollIds_output",
|
|
341
|
+
},
|
|
342
|
+
GetActiveGovPollIds: {
|
|
343
|
+
kind: "function",
|
|
344
|
+
inputType: 8,
|
|
345
|
+
inputTypeName: "GetActiveGovPollIds_input",
|
|
346
|
+
outputTypeName: "GetActiveGovPollIds_output",
|
|
347
|
+
},
|
|
348
|
+
GetGeneralAssetBalance: {
|
|
349
|
+
kind: "function",
|
|
350
|
+
inputType: 9,
|
|
351
|
+
inputTypeName: "GetGeneralAssetBalance_input",
|
|
352
|
+
outputTypeName: "GetGeneralAssetBalance_output",
|
|
353
|
+
},
|
|
354
|
+
GetGeneralAssets: {
|
|
355
|
+
kind: "function",
|
|
356
|
+
inputType: 10,
|
|
357
|
+
inputTypeName: "GetGeneralAssets_input",
|
|
358
|
+
outputTypeName: "GetGeneralAssets_output",
|
|
359
|
+
},
|
|
360
|
+
},
|
|
361
|
+
procedures: {
|
|
362
|
+
DonateToTreasury: {
|
|
363
|
+
kind: "procedure",
|
|
364
|
+
inputType: 3,
|
|
365
|
+
inputTypeName: "DonateToTreasury_input",
|
|
366
|
+
outputTypeName: "DonateToTreasury_output",
|
|
367
|
+
},
|
|
368
|
+
VoteGovParams: {
|
|
369
|
+
kind: "procedure",
|
|
370
|
+
inputType: 4,
|
|
371
|
+
inputTypeName: "VoteGovParams_input",
|
|
372
|
+
outputTypeName: "VoteGovParams_output",
|
|
373
|
+
},
|
|
374
|
+
CreateAssetReleasePoll: {
|
|
375
|
+
kind: "procedure",
|
|
376
|
+
inputType: 5,
|
|
377
|
+
inputTypeName: "CreateAssetReleasePoll_input",
|
|
378
|
+
outputTypeName: "CreateAssetReleasePoll_output",
|
|
379
|
+
},
|
|
380
|
+
VoteAssetRelease: {
|
|
381
|
+
kind: "procedure",
|
|
382
|
+
inputType: 6,
|
|
383
|
+
inputTypeName: "VoteAssetRelease_input",
|
|
384
|
+
outputTypeName: "VoteAssetRelease_output",
|
|
385
|
+
},
|
|
386
|
+
DepositGeneralAsset: {
|
|
387
|
+
kind: "procedure",
|
|
388
|
+
inputType: 7,
|
|
389
|
+
inputTypeName: "DepositGeneralAsset_input",
|
|
390
|
+
outputTypeName: "DepositGeneralAsset_output",
|
|
391
|
+
},
|
|
392
|
+
RevokeAssetManagementRights: {
|
|
393
|
+
kind: "procedure",
|
|
394
|
+
inputType: 8,
|
|
395
|
+
inputTypeName: "RevokeAssetManagementRights_input",
|
|
396
|
+
outputTypeName: "RevokeAssetManagementRights_output",
|
|
397
|
+
},
|
|
398
|
+
},
|
|
399
|
+
},
|
|
400
|
+
} as const satisfies Readonly<Record<ContractName, unknown>>;
|
|
401
|
+
|
|
402
|
+
export type RuntimeContractCodecRegistry = typeof contractCodecRegistry;
|