@qubic.org/contracts 0.2.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/README.md +285 -0
- package/dist/__generated__/computorcontrolledfund.d.ts +185 -0
- package/dist/__generated__/computorcontrolledfund.d.ts.map +1 -0
- package/dist/__generated__/computorcontrolledfund.js +805 -0
- package/dist/__generated__/computorcontrolledfund.js.map +1 -0
- package/dist/__generated__/escrow.d.ts +103 -0
- package/dist/__generated__/escrow.d.ts.map +1 -0
- package/dist/__generated__/escrow.js +383 -0
- package/dist/__generated__/escrow.js.map +1 -0
- package/dist/__generated__/generalquorumproposal.d.ts +130 -0
- package/dist/__generated__/generalquorumproposal.d.ts.map +1 -0
- package/dist/__generated__/generalquorumproposal.js +499 -0
- package/dist/__generated__/generalquorumproposal.js.map +1 -0
- package/dist/__generated__/index.d.ts +28 -0
- package/dist/__generated__/index.d.ts.map +1 -0
- package/dist/__generated__/index.js +28 -0
- package/dist/__generated__/index.js.map +1 -0
- package/dist/__generated__/msvault.d.ts +336 -0
- package/dist/__generated__/msvault.d.ts.map +1 -0
- package/dist/__generated__/msvault.js +1187 -0
- package/dist/__generated__/msvault.js.map +1 -0
- package/dist/__generated__/multisignvault.d.ts +348 -0
- package/dist/__generated__/multisignvault.d.ts.map +1 -0
- package/dist/__generated__/multisignvault.js +913 -0
- package/dist/__generated__/multisignvault.js.map +1 -0
- package/dist/__generated__/mylastmatch.d.ts +5 -0
- package/dist/__generated__/mylastmatch.d.ts.map +1 -0
- package/dist/__generated__/mylastmatch.js +7 -0
- package/dist/__generated__/mylastmatch.js.map +1 -0
- package/dist/__generated__/nostromo.d.ts +295 -0
- package/dist/__generated__/nostromo.d.ts.map +1 -0
- package/dist/__generated__/nostromo.js +1113 -0
- package/dist/__generated__/nostromo.js.map +1 -0
- package/dist/__generated__/pulse.d.ts +320 -0
- package/dist/__generated__/pulse.d.ts.map +1 -0
- package/dist/__generated__/pulse.js +1024 -0
- package/dist/__generated__/pulse.js.map +1 -0
- package/dist/__generated__/qbay.d.ts +415 -0
- package/dist/__generated__/qbay.d.ts.map +1 -0
- package/dist/__generated__/qbay.js +1486 -0
- package/dist/__generated__/qbay.js.map +1 -0
- package/dist/__generated__/qbond.d.ts +210 -0
- package/dist/__generated__/qbond.d.ts.map +1 -0
- package/dist/__generated__/qbond.js +694 -0
- package/dist/__generated__/qbond.js.map +1 -0
- package/dist/__generated__/qdraw.d.ts +39 -0
- package/dist/__generated__/qdraw.d.ts.map +1 -0
- package/dist/__generated__/qdraw.js +135 -0
- package/dist/__generated__/qdraw.js.map +1 -0
- package/dist/__generated__/qduel.d.ts +171 -0
- package/dist/__generated__/qduel.d.ts.map +1 -0
- package/dist/__generated__/qduel.js +573 -0
- package/dist/__generated__/qduel.js.map +1 -0
- package/dist/__generated__/qearn.d.ts +139 -0
- package/dist/__generated__/qearn.d.ts.map +1 -0
- package/dist/__generated__/qearn.js +471 -0
- package/dist/__generated__/qearn.js.map +1 -0
- package/dist/__generated__/qip.d.ts +84 -0
- package/dist/__generated__/qip.d.ts.map +1 -0
- package/dist/__generated__/qip.js +303 -0
- package/dist/__generated__/qip.js.map +1 -0
- package/dist/__generated__/qraffle.d.ts +235 -0
- package/dist/__generated__/qraffle.d.ts.map +1 -0
- package/dist/__generated__/qraffle.js +798 -0
- package/dist/__generated__/qraffle.js.map +1 -0
- package/dist/__generated__/qreservepool.d.ts +70 -0
- package/dist/__generated__/qreservepool.d.ts.map +1 -0
- package/dist/__generated__/qreservepool.js +177 -0
- package/dist/__generated__/qreservepool.js.map +1 -0
- package/dist/__generated__/qrwa.d.ts +285 -0
- package/dist/__generated__/qrwa.d.ts.map +1 -0
- package/dist/__generated__/qrwa.js +1063 -0
- package/dist/__generated__/qrwa.js.map +1 -0
- package/dist/__generated__/qswap.d.ts +273 -0
- package/dist/__generated__/qswap.d.ts.map +1 -0
- package/dist/__generated__/qswap.js +897 -0
- package/dist/__generated__/qswap.js.map +1 -0
- package/dist/__generated__/qthirtyfour.d.ts +231 -0
- package/dist/__generated__/qthirtyfour.d.ts.map +1 -0
- package/dist/__generated__/qthirtyfour.js +790 -0
- package/dist/__generated__/qthirtyfour.js.map +1 -0
- package/dist/__generated__/qubicicoportal.d.ts +81 -0
- package/dist/__generated__/qubicicoportal.d.ts.map +1 -0
- package/dist/__generated__/qubicicoportal.js +260 -0
- package/dist/__generated__/qubicicoportal.js.map +1 -0
- package/dist/__generated__/quottery.d.ts +308 -0
- package/dist/__generated__/quottery.d.ts.map +1 -0
- package/dist/__generated__/quottery.js +1062 -0
- package/dist/__generated__/quottery.js.map +1 -0
- package/dist/__generated__/qusino.d.ts +172 -0
- package/dist/__generated__/qusino.d.ts.map +1 -0
- package/dist/__generated__/qusino.js +533 -0
- package/dist/__generated__/qusino.js.map +1 -0
- package/dist/__generated__/qutil.d.ts +310 -0
- package/dist/__generated__/qutil.d.ts.map +1 -0
- package/dist/__generated__/qutil.js +1033 -0
- package/dist/__generated__/qutil.js.map +1 -0
- package/dist/__generated__/qvault.d.ts +535 -0
- package/dist/__generated__/qvault.d.ts.map +1 -0
- package/dist/__generated__/qvault.js +2047 -0
- package/dist/__generated__/qvault.js.map +1 -0
- package/dist/__generated__/qx.d.ts +178 -0
- package/dist/__generated__/qx.d.ts.map +1 -0
- package/dist/__generated__/qx.js +586 -0
- package/dist/__generated__/qx.js.map +1 -0
- package/dist/__generated__/random.d.ts +12 -0
- package/dist/__generated__/random.d.ts.map +1 -0
- package/dist/__generated__/random.js +26 -0
- package/dist/__generated__/random.js.map +1 -0
- package/dist/__generated__/randomlottery.d.ts +135 -0
- package/dist/__generated__/randomlottery.d.ts.map +1 -0
- package/dist/__generated__/randomlottery.js +451 -0
- package/dist/__generated__/randomlottery.js.map +1 -0
- package/dist/__generated__/supplywatcher.d.ts +5 -0
- package/dist/__generated__/supplywatcher.d.ts.map +1 -0
- package/dist/__generated__/supplywatcher.js +7 -0
- package/dist/__generated__/supplywatcher.js.map +1 -0
- package/dist/__generated__/vottunbridge.d.ts +226 -0
- package/dist/__generated__/vottunbridge.d.ts.map +1 -0
- package/dist/__generated__/vottunbridge.js +835 -0
- package/dist/__generated__/vottunbridge.js.map +1 -0
- package/dist/call-contract.d.ts +25 -0
- package/dist/call-contract.d.ts.map +1 -0
- package/dist/call-contract.js +41 -0
- package/dist/call-contract.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/result.d.ts +12 -0
- package/dist/result.d.ts.map +1 -0
- package/dist/result.js +7 -0
- package/dist/result.js.map +1 -0
- package/package.json +32 -0
|
@@ -0,0 +1,913 @@
|
|
|
1
|
+
import { buildPayload, decodePayload } from '@qubic.org/registry';
|
|
2
|
+
export const MULTI_SIGN_VAULT_CONTRACT_INDEX = 11;
|
|
3
|
+
const STRUCTS = {
|
|
4
|
+
AssetBalance: {
|
|
5
|
+
name: 'AssetBalance',
|
|
6
|
+
byteLength: 8,
|
|
7
|
+
fields: [
|
|
8
|
+
{
|
|
9
|
+
name: 'balance',
|
|
10
|
+
type: 'uint64',
|
|
11
|
+
offset: 0,
|
|
12
|
+
byteLength: 8,
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
MsVaultFeeVote: {
|
|
17
|
+
name: 'MsVaultFeeVote',
|
|
18
|
+
byteLength: 48,
|
|
19
|
+
fields: [
|
|
20
|
+
{
|
|
21
|
+
name: 'registeringFee',
|
|
22
|
+
type: 'uint64',
|
|
23
|
+
offset: 0,
|
|
24
|
+
byteLength: 8,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'releaseFee',
|
|
28
|
+
type: 'uint64',
|
|
29
|
+
offset: 8,
|
|
30
|
+
byteLength: 8,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'releaseResetFee',
|
|
34
|
+
type: 'uint64',
|
|
35
|
+
offset: 16,
|
|
36
|
+
byteLength: 8,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'holdingFee',
|
|
40
|
+
type: 'uint64',
|
|
41
|
+
offset: 24,
|
|
42
|
+
byteLength: 8,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'depositFee',
|
|
46
|
+
type: 'uint64',
|
|
47
|
+
offset: 32,
|
|
48
|
+
byteLength: 8,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'burnFee',
|
|
52
|
+
type: 'uint64',
|
|
53
|
+
offset: 40,
|
|
54
|
+
byteLength: 8,
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
export const MULTI_SIGN_VAULT_REGISTER_VAULT_INPUT_TYPE = 7;
|
|
60
|
+
export const MULTI_SIGN_VAULT_REGISTER_VAULT_INPUT_SIZE = 552;
|
|
61
|
+
export const MULTI_SIGN_VAULT_REGISTER_VAULT_OUTPUT_SIZE = 8;
|
|
62
|
+
export const MULTI_SIGN_VAULT_REGISTER_VAULT_INPUT_FIELDS = [
|
|
63
|
+
{
|
|
64
|
+
name: 'vaultName',
|
|
65
|
+
type: 'id',
|
|
66
|
+
offset: 0,
|
|
67
|
+
byteLength: 32,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'owners',
|
|
71
|
+
type: 'array',
|
|
72
|
+
offset: 32,
|
|
73
|
+
byteLength: 512,
|
|
74
|
+
arrayLength: 16,
|
|
75
|
+
arrayItemType: 'id',
|
|
76
|
+
arrayItemByteLength: 32,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'requiredApprovals',
|
|
80
|
+
type: 'uint64',
|
|
81
|
+
offset: 544,
|
|
82
|
+
byteLength: 8,
|
|
83
|
+
},
|
|
84
|
+
];
|
|
85
|
+
export function buildMultiSignVaultRegisterVaultInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
86
|
+
return buildPayload(MULTI_SIGN_VAULT_REGISTER_VAULT_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
87
|
+
}
|
|
88
|
+
export const MULTI_SIGN_VAULT_REGISTER_VAULT_OUTPUT_FIELDS = [
|
|
89
|
+
{
|
|
90
|
+
name: 'status',
|
|
91
|
+
type: 'uint64',
|
|
92
|
+
offset: 0,
|
|
93
|
+
byteLength: 8,
|
|
94
|
+
},
|
|
95
|
+
];
|
|
96
|
+
export function decodeMultiSignVaultRegisterVaultOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
97
|
+
return decodePayload(data, MULTI_SIGN_VAULT_REGISTER_VAULT_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
98
|
+
}
|
|
99
|
+
export const MULTI_SIGN_VAULT_DEPOSIT_INPUT_TYPE = 8;
|
|
100
|
+
export const MULTI_SIGN_VAULT_DEPOSIT_INPUT_SIZE = 8;
|
|
101
|
+
export const MULTI_SIGN_VAULT_DEPOSIT_OUTPUT_SIZE = 8;
|
|
102
|
+
export const MULTI_SIGN_VAULT_DEPOSIT_INPUT_FIELDS = [
|
|
103
|
+
{
|
|
104
|
+
name: 'vaultId',
|
|
105
|
+
type: 'uint64',
|
|
106
|
+
offset: 0,
|
|
107
|
+
byteLength: 8,
|
|
108
|
+
},
|
|
109
|
+
];
|
|
110
|
+
export function buildMultiSignVaultDepositInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
111
|
+
return buildPayload(MULTI_SIGN_VAULT_DEPOSIT_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
112
|
+
}
|
|
113
|
+
export const MULTI_SIGN_VAULT_DEPOSIT_OUTPUT_FIELDS = [
|
|
114
|
+
{
|
|
115
|
+
name: 'status',
|
|
116
|
+
type: 'uint64',
|
|
117
|
+
offset: 0,
|
|
118
|
+
byteLength: 8,
|
|
119
|
+
},
|
|
120
|
+
];
|
|
121
|
+
export function decodeMultiSignVaultDepositOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
122
|
+
return decodePayload(data, MULTI_SIGN_VAULT_DEPOSIT_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
123
|
+
}
|
|
124
|
+
export const MULTI_SIGN_VAULT_RELEASE_TO_INPUT_TYPE = 9;
|
|
125
|
+
export const MULTI_SIGN_VAULT_RELEASE_TO_INPUT_SIZE = 48;
|
|
126
|
+
export const MULTI_SIGN_VAULT_RELEASE_TO_OUTPUT_SIZE = 8;
|
|
127
|
+
export const MULTI_SIGN_VAULT_RELEASE_TO_INPUT_FIELDS = [
|
|
128
|
+
{
|
|
129
|
+
name: 'vaultId',
|
|
130
|
+
type: 'uint64',
|
|
131
|
+
offset: 0,
|
|
132
|
+
byteLength: 8,
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'amount',
|
|
136
|
+
type: 'uint64',
|
|
137
|
+
offset: 8,
|
|
138
|
+
byteLength: 8,
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: 'destination',
|
|
142
|
+
type: 'id',
|
|
143
|
+
offset: 16,
|
|
144
|
+
byteLength: 32,
|
|
145
|
+
},
|
|
146
|
+
];
|
|
147
|
+
export function buildMultiSignVaultReleaseToInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
148
|
+
return buildPayload(MULTI_SIGN_VAULT_RELEASE_TO_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
149
|
+
}
|
|
150
|
+
export const MULTI_SIGN_VAULT_RELEASE_TO_OUTPUT_FIELDS = [
|
|
151
|
+
{
|
|
152
|
+
name: 'status',
|
|
153
|
+
type: 'uint64',
|
|
154
|
+
offset: 0,
|
|
155
|
+
byteLength: 8,
|
|
156
|
+
},
|
|
157
|
+
];
|
|
158
|
+
export function decodeMultiSignVaultReleaseToOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
159
|
+
return decodePayload(data, MULTI_SIGN_VAULT_RELEASE_TO_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
160
|
+
}
|
|
161
|
+
export const MULTI_SIGN_VAULT_RESET_RELEASE_INPUT_TYPE = 10;
|
|
162
|
+
export const MULTI_SIGN_VAULT_RESET_RELEASE_INPUT_SIZE = 8;
|
|
163
|
+
export const MULTI_SIGN_VAULT_RESET_RELEASE_OUTPUT_SIZE = 8;
|
|
164
|
+
export const MULTI_SIGN_VAULT_RESET_RELEASE_INPUT_FIELDS = [
|
|
165
|
+
{
|
|
166
|
+
name: 'vaultId',
|
|
167
|
+
type: 'uint64',
|
|
168
|
+
offset: 0,
|
|
169
|
+
byteLength: 8,
|
|
170
|
+
},
|
|
171
|
+
];
|
|
172
|
+
export function buildMultiSignVaultResetReleaseInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
173
|
+
return buildPayload(MULTI_SIGN_VAULT_RESET_RELEASE_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
174
|
+
}
|
|
175
|
+
export const MULTI_SIGN_VAULT_RESET_RELEASE_OUTPUT_FIELDS = [
|
|
176
|
+
{
|
|
177
|
+
name: 'status',
|
|
178
|
+
type: 'uint64',
|
|
179
|
+
offset: 0,
|
|
180
|
+
byteLength: 8,
|
|
181
|
+
},
|
|
182
|
+
];
|
|
183
|
+
export function decodeMultiSignVaultResetReleaseOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
184
|
+
return decodePayload(data, MULTI_SIGN_VAULT_RESET_RELEASE_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
185
|
+
}
|
|
186
|
+
export const MULTI_SIGN_VAULT_VOTE_FEE_CHANGE_INPUT_TYPE = 11;
|
|
187
|
+
export const MULTI_SIGN_VAULT_VOTE_FEE_CHANGE_INPUT_SIZE = 48;
|
|
188
|
+
export const MULTI_SIGN_VAULT_VOTE_FEE_CHANGE_OUTPUT_SIZE = 8;
|
|
189
|
+
export const MULTI_SIGN_VAULT_VOTE_FEE_CHANGE_INPUT_FIELDS = [
|
|
190
|
+
{
|
|
191
|
+
name: 'newRegisteringFee',
|
|
192
|
+
type: 'uint64',
|
|
193
|
+
offset: 0,
|
|
194
|
+
byteLength: 8,
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: 'newReleaseFee',
|
|
198
|
+
type: 'uint64',
|
|
199
|
+
offset: 8,
|
|
200
|
+
byteLength: 8,
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: 'newReleaseResetFee',
|
|
204
|
+
type: 'uint64',
|
|
205
|
+
offset: 16,
|
|
206
|
+
byteLength: 8,
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: 'newHoldingFee',
|
|
210
|
+
type: 'uint64',
|
|
211
|
+
offset: 24,
|
|
212
|
+
byteLength: 8,
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: 'newDepositFee',
|
|
216
|
+
type: 'uint64',
|
|
217
|
+
offset: 32,
|
|
218
|
+
byteLength: 8,
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: 'burnFee',
|
|
222
|
+
type: 'uint64',
|
|
223
|
+
offset: 40,
|
|
224
|
+
byteLength: 8,
|
|
225
|
+
},
|
|
226
|
+
];
|
|
227
|
+
export function buildMultiSignVaultVoteFeeChangeInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
228
|
+
return buildPayload(MULTI_SIGN_VAULT_VOTE_FEE_CHANGE_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
229
|
+
}
|
|
230
|
+
export const MULTI_SIGN_VAULT_VOTE_FEE_CHANGE_OUTPUT_FIELDS = [
|
|
231
|
+
{
|
|
232
|
+
name: 'status',
|
|
233
|
+
type: 'uint64',
|
|
234
|
+
offset: 0,
|
|
235
|
+
byteLength: 8,
|
|
236
|
+
},
|
|
237
|
+
];
|
|
238
|
+
export function decodeMultiSignVaultVoteFeeChangeOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
239
|
+
return decodePayload(data, MULTI_SIGN_VAULT_VOTE_FEE_CHANGE_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
240
|
+
}
|
|
241
|
+
export const MULTI_SIGN_VAULT_DEPOSIT_ASSET_INPUT_TYPE = 24;
|
|
242
|
+
export const MULTI_SIGN_VAULT_DEPOSIT_ASSET_INPUT_SIZE = 16;
|
|
243
|
+
export const MULTI_SIGN_VAULT_DEPOSIT_ASSET_OUTPUT_SIZE = 8;
|
|
244
|
+
export const MULTI_SIGN_VAULT_DEPOSIT_ASSET_INPUT_FIELDS = [
|
|
245
|
+
{
|
|
246
|
+
name: 'vaultId',
|
|
247
|
+
type: 'uint64',
|
|
248
|
+
offset: 0,
|
|
249
|
+
byteLength: 8,
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
name: 'amount',
|
|
253
|
+
type: 'uint64',
|
|
254
|
+
offset: 8,
|
|
255
|
+
byteLength: 8,
|
|
256
|
+
},
|
|
257
|
+
];
|
|
258
|
+
export function buildMultiSignVaultDepositAssetInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
259
|
+
return buildPayload(MULTI_SIGN_VAULT_DEPOSIT_ASSET_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
260
|
+
}
|
|
261
|
+
export const MULTI_SIGN_VAULT_DEPOSIT_ASSET_OUTPUT_FIELDS = [
|
|
262
|
+
{
|
|
263
|
+
name: 'status',
|
|
264
|
+
type: 'uint64',
|
|
265
|
+
offset: 0,
|
|
266
|
+
byteLength: 8,
|
|
267
|
+
},
|
|
268
|
+
];
|
|
269
|
+
export function decodeMultiSignVaultDepositAssetOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
270
|
+
return decodePayload(data, MULTI_SIGN_VAULT_DEPOSIT_ASSET_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
271
|
+
}
|
|
272
|
+
export const MULTI_SIGN_VAULT_REVOKE_ASSET_MANAGEMENT_RIGHTS_INPUT_TYPE = 25;
|
|
273
|
+
export const MULTI_SIGN_VAULT_REVOKE_ASSET_MANAGEMENT_RIGHTS_INPUT_SIZE = 8;
|
|
274
|
+
export const MULTI_SIGN_VAULT_REVOKE_ASSET_MANAGEMENT_RIGHTS_OUTPUT_SIZE = 16;
|
|
275
|
+
export const MULTI_SIGN_VAULT_REVOKE_ASSET_MANAGEMENT_RIGHTS_INPUT_FIELDS = [
|
|
276
|
+
{
|
|
277
|
+
name: 'numberOfShares',
|
|
278
|
+
type: 'sint64',
|
|
279
|
+
offset: 0,
|
|
280
|
+
byteLength: 8,
|
|
281
|
+
},
|
|
282
|
+
];
|
|
283
|
+
export function buildMultiSignVaultRevokeAssetManagementRightsInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
284
|
+
return buildPayload(MULTI_SIGN_VAULT_REVOKE_ASSET_MANAGEMENT_RIGHTS_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
285
|
+
}
|
|
286
|
+
export const MULTI_SIGN_VAULT_REVOKE_ASSET_MANAGEMENT_RIGHTS_OUTPUT_FIELDS = [
|
|
287
|
+
{
|
|
288
|
+
name: 'transferredNumberOfShares',
|
|
289
|
+
type: 'sint64',
|
|
290
|
+
offset: 0,
|
|
291
|
+
byteLength: 8,
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
name: 'status',
|
|
295
|
+
type: 'uint64',
|
|
296
|
+
offset: 8,
|
|
297
|
+
byteLength: 8,
|
|
298
|
+
},
|
|
299
|
+
];
|
|
300
|
+
export function decodeMultiSignVaultRevokeAssetManagementRightsOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
301
|
+
return decodePayload(data, MULTI_SIGN_VAULT_REVOKE_ASSET_MANAGEMENT_RIGHTS_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
302
|
+
}
|
|
303
|
+
export const MULTI_SIGN_VAULT_RELEASE_ASSET_TO_INPUT_TYPE = 26;
|
|
304
|
+
export const MULTI_SIGN_VAULT_RELEASE_ASSET_TO_INPUT_SIZE = 48;
|
|
305
|
+
export const MULTI_SIGN_VAULT_RELEASE_ASSET_TO_OUTPUT_SIZE = 8;
|
|
306
|
+
export const MULTI_SIGN_VAULT_RELEASE_ASSET_TO_INPUT_FIELDS = [
|
|
307
|
+
{
|
|
308
|
+
name: 'vaultId',
|
|
309
|
+
type: 'uint64',
|
|
310
|
+
offset: 0,
|
|
311
|
+
byteLength: 8,
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
name: 'amount',
|
|
315
|
+
type: 'uint64',
|
|
316
|
+
offset: 8,
|
|
317
|
+
byteLength: 8,
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
name: 'destination',
|
|
321
|
+
type: 'id',
|
|
322
|
+
offset: 16,
|
|
323
|
+
byteLength: 32,
|
|
324
|
+
},
|
|
325
|
+
];
|
|
326
|
+
export function buildMultiSignVaultReleaseAssetToInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
327
|
+
return buildPayload(MULTI_SIGN_VAULT_RELEASE_ASSET_TO_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
328
|
+
}
|
|
329
|
+
export const MULTI_SIGN_VAULT_RELEASE_ASSET_TO_OUTPUT_FIELDS = [
|
|
330
|
+
{
|
|
331
|
+
name: 'status',
|
|
332
|
+
type: 'uint64',
|
|
333
|
+
offset: 0,
|
|
334
|
+
byteLength: 8,
|
|
335
|
+
},
|
|
336
|
+
];
|
|
337
|
+
export function decodeMultiSignVaultReleaseAssetToOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
338
|
+
return decodePayload(data, MULTI_SIGN_VAULT_RELEASE_ASSET_TO_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
339
|
+
}
|
|
340
|
+
export const MULTI_SIGN_VAULT_RESET_ASSET_RELEASE_INPUT_TYPE = 27;
|
|
341
|
+
export const MULTI_SIGN_VAULT_RESET_ASSET_RELEASE_INPUT_SIZE = 8;
|
|
342
|
+
export const MULTI_SIGN_VAULT_RESET_ASSET_RELEASE_OUTPUT_SIZE = 8;
|
|
343
|
+
export const MULTI_SIGN_VAULT_RESET_ASSET_RELEASE_INPUT_FIELDS = [
|
|
344
|
+
{
|
|
345
|
+
name: 'vaultId',
|
|
346
|
+
type: 'uint64',
|
|
347
|
+
offset: 0,
|
|
348
|
+
byteLength: 8,
|
|
349
|
+
},
|
|
350
|
+
];
|
|
351
|
+
export function buildMultiSignVaultResetAssetReleaseInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
352
|
+
return buildPayload(MULTI_SIGN_VAULT_RESET_ASSET_RELEASE_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
353
|
+
}
|
|
354
|
+
export const MULTI_SIGN_VAULT_RESET_ASSET_RELEASE_OUTPUT_FIELDS = [
|
|
355
|
+
{
|
|
356
|
+
name: 'status',
|
|
357
|
+
type: 'uint64',
|
|
358
|
+
offset: 0,
|
|
359
|
+
byteLength: 8,
|
|
360
|
+
},
|
|
361
|
+
];
|
|
362
|
+
export function decodeMultiSignVaultResetAssetReleaseOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
363
|
+
return decodePayload(data, MULTI_SIGN_VAULT_RESET_ASSET_RELEASE_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
364
|
+
}
|
|
365
|
+
export const MULTI_SIGN_VAULT_IS_SHARE_HOLDER_INPUT_TYPE = 5;
|
|
366
|
+
export const MULTI_SIGN_VAULT_IS_SHARE_HOLDER_INPUT_SIZE = 32;
|
|
367
|
+
export const MULTI_SIGN_VAULT_IS_SHARE_HOLDER_OUTPUT_SIZE = 8;
|
|
368
|
+
export const MULTI_SIGN_VAULT_IS_SHARE_HOLDER_INPUT_FIELDS = [
|
|
369
|
+
{
|
|
370
|
+
name: 'candidate',
|
|
371
|
+
type: 'id',
|
|
372
|
+
offset: 0,
|
|
373
|
+
byteLength: 32,
|
|
374
|
+
},
|
|
375
|
+
];
|
|
376
|
+
export function buildMultiSignVaultIsShareHolderInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
377
|
+
return buildPayload(MULTI_SIGN_VAULT_IS_SHARE_HOLDER_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
378
|
+
}
|
|
379
|
+
export const MULTI_SIGN_VAULT_IS_SHARE_HOLDER_OUTPUT_FIELDS = [
|
|
380
|
+
{
|
|
381
|
+
name: 'result',
|
|
382
|
+
type: 'uint64',
|
|
383
|
+
offset: 0,
|
|
384
|
+
byteLength: 8,
|
|
385
|
+
},
|
|
386
|
+
];
|
|
387
|
+
export function decodeMultiSignVaultIsShareHolderOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
388
|
+
return decodePayload(data, MULTI_SIGN_VAULT_IS_SHARE_HOLDER_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
389
|
+
}
|
|
390
|
+
export const MULTI_SIGN_VAULT_GET_MANAGED_ASSET_BALANCE_INPUT_TYPE = 6;
|
|
391
|
+
export const MULTI_SIGN_VAULT_GET_MANAGED_ASSET_BALANCE_INPUT_SIZE = 32;
|
|
392
|
+
export const MULTI_SIGN_VAULT_GET_MANAGED_ASSET_BALANCE_OUTPUT_SIZE = 8;
|
|
393
|
+
export const MULTI_SIGN_VAULT_GET_MANAGED_ASSET_BALANCE_INPUT_FIELDS = [
|
|
394
|
+
{
|
|
395
|
+
name: 'owner',
|
|
396
|
+
type: 'id',
|
|
397
|
+
offset: 0,
|
|
398
|
+
byteLength: 32,
|
|
399
|
+
},
|
|
400
|
+
];
|
|
401
|
+
export function buildMultiSignVaultGetManagedAssetBalanceInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
402
|
+
return buildPayload(MULTI_SIGN_VAULT_GET_MANAGED_ASSET_BALANCE_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
403
|
+
}
|
|
404
|
+
export const MULTI_SIGN_VAULT_GET_MANAGED_ASSET_BALANCE_OUTPUT_FIELDS = [
|
|
405
|
+
{
|
|
406
|
+
name: 'balance',
|
|
407
|
+
type: 'sint64',
|
|
408
|
+
offset: 0,
|
|
409
|
+
byteLength: 8,
|
|
410
|
+
},
|
|
411
|
+
];
|
|
412
|
+
export function decodeMultiSignVaultGetManagedAssetBalanceOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
413
|
+
return decodePayload(data, MULTI_SIGN_VAULT_GET_MANAGED_ASSET_BALANCE_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
414
|
+
}
|
|
415
|
+
export const MULTI_SIGN_VAULT_GET_VAULTS_INPUT_TYPE = 12;
|
|
416
|
+
export const MULTI_SIGN_VAULT_GET_VAULTS_INPUT_SIZE = 32;
|
|
417
|
+
export const MULTI_SIGN_VAULT_GET_VAULTS_OUTPUT_SIZE = 328;
|
|
418
|
+
export const MULTI_SIGN_VAULT_GET_VAULTS_INPUT_FIELDS = [
|
|
419
|
+
{
|
|
420
|
+
name: 'publicKey',
|
|
421
|
+
type: 'id',
|
|
422
|
+
offset: 0,
|
|
423
|
+
byteLength: 32,
|
|
424
|
+
},
|
|
425
|
+
];
|
|
426
|
+
export function buildMultiSignVaultGetVaultsInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
427
|
+
return buildPayload(MULTI_SIGN_VAULT_GET_VAULTS_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
428
|
+
}
|
|
429
|
+
export const MULTI_SIGN_VAULT_GET_VAULTS_OUTPUT_FIELDS = [
|
|
430
|
+
{
|
|
431
|
+
name: 'numberOfVaults',
|
|
432
|
+
type: 'uint64',
|
|
433
|
+
offset: 0,
|
|
434
|
+
byteLength: 8,
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
name: 'vaultIds',
|
|
438
|
+
type: 'array',
|
|
439
|
+
offset: 8,
|
|
440
|
+
byteLength: 64,
|
|
441
|
+
arrayLength: 8,
|
|
442
|
+
arrayItemType: 'uint64',
|
|
443
|
+
arrayItemByteLength: 8,
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
name: 'vaultNames',
|
|
447
|
+
type: 'array',
|
|
448
|
+
offset: 72,
|
|
449
|
+
byteLength: 256,
|
|
450
|
+
arrayLength: 8,
|
|
451
|
+
arrayItemType: 'id',
|
|
452
|
+
arrayItemByteLength: 32,
|
|
453
|
+
},
|
|
454
|
+
];
|
|
455
|
+
export function decodeMultiSignVaultGetVaultsOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
456
|
+
return decodePayload(data, MULTI_SIGN_VAULT_GET_VAULTS_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
457
|
+
}
|
|
458
|
+
export const MULTI_SIGN_VAULT_GET_RELEASE_STATUS_INPUT_TYPE = 13;
|
|
459
|
+
export const MULTI_SIGN_VAULT_GET_RELEASE_STATUS_INPUT_SIZE = 8;
|
|
460
|
+
export const MULTI_SIGN_VAULT_GET_RELEASE_STATUS_OUTPUT_SIZE = 648;
|
|
461
|
+
export const MULTI_SIGN_VAULT_GET_RELEASE_STATUS_INPUT_FIELDS = [
|
|
462
|
+
{
|
|
463
|
+
name: 'vaultId',
|
|
464
|
+
type: 'uint64',
|
|
465
|
+
offset: 0,
|
|
466
|
+
byteLength: 8,
|
|
467
|
+
},
|
|
468
|
+
];
|
|
469
|
+
export function buildMultiSignVaultGetReleaseStatusInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
470
|
+
return buildPayload(MULTI_SIGN_VAULT_GET_RELEASE_STATUS_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
471
|
+
}
|
|
472
|
+
export const MULTI_SIGN_VAULT_GET_RELEASE_STATUS_OUTPUT_FIELDS = [
|
|
473
|
+
{
|
|
474
|
+
name: 'status',
|
|
475
|
+
type: 'uint64',
|
|
476
|
+
offset: 0,
|
|
477
|
+
byteLength: 8,
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
name: 'amounts',
|
|
481
|
+
type: 'array',
|
|
482
|
+
offset: 8,
|
|
483
|
+
byteLength: 128,
|
|
484
|
+
arrayLength: 16,
|
|
485
|
+
arrayItemType: 'uint64',
|
|
486
|
+
arrayItemByteLength: 8,
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
name: 'destinations',
|
|
490
|
+
type: 'array',
|
|
491
|
+
offset: 136,
|
|
492
|
+
byteLength: 512,
|
|
493
|
+
arrayLength: 16,
|
|
494
|
+
arrayItemType: 'id',
|
|
495
|
+
arrayItemByteLength: 32,
|
|
496
|
+
},
|
|
497
|
+
];
|
|
498
|
+
export function decodeMultiSignVaultGetReleaseStatusOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
499
|
+
return decodePayload(data, MULTI_SIGN_VAULT_GET_RELEASE_STATUS_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
500
|
+
}
|
|
501
|
+
export const MULTI_SIGN_VAULT_GET_BALANCE_OF_INPUT_TYPE = 14;
|
|
502
|
+
export const MULTI_SIGN_VAULT_GET_BALANCE_OF_INPUT_SIZE = 8;
|
|
503
|
+
export const MULTI_SIGN_VAULT_GET_BALANCE_OF_OUTPUT_SIZE = 16;
|
|
504
|
+
export const MULTI_SIGN_VAULT_GET_BALANCE_OF_INPUT_FIELDS = [
|
|
505
|
+
{
|
|
506
|
+
name: 'vaultId',
|
|
507
|
+
type: 'uint64',
|
|
508
|
+
offset: 0,
|
|
509
|
+
byteLength: 8,
|
|
510
|
+
},
|
|
511
|
+
];
|
|
512
|
+
export function buildMultiSignVaultGetBalanceOfInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
513
|
+
return buildPayload(MULTI_SIGN_VAULT_GET_BALANCE_OF_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
514
|
+
}
|
|
515
|
+
export const MULTI_SIGN_VAULT_GET_BALANCE_OF_OUTPUT_FIELDS = [
|
|
516
|
+
{
|
|
517
|
+
name: 'status',
|
|
518
|
+
type: 'uint64',
|
|
519
|
+
offset: 0,
|
|
520
|
+
byteLength: 8,
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
name: 'balance',
|
|
524
|
+
type: 'sint64',
|
|
525
|
+
offset: 8,
|
|
526
|
+
byteLength: 8,
|
|
527
|
+
},
|
|
528
|
+
];
|
|
529
|
+
export function decodeMultiSignVaultGetBalanceOfOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
530
|
+
return decodePayload(data, MULTI_SIGN_VAULT_GET_BALANCE_OF_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
531
|
+
}
|
|
532
|
+
export const MULTI_SIGN_VAULT_GET_VAULT_NAME_INPUT_TYPE = 15;
|
|
533
|
+
export const MULTI_SIGN_VAULT_GET_VAULT_NAME_INPUT_SIZE = 8;
|
|
534
|
+
export const MULTI_SIGN_VAULT_GET_VAULT_NAME_OUTPUT_SIZE = 40;
|
|
535
|
+
export const MULTI_SIGN_VAULT_GET_VAULT_NAME_INPUT_FIELDS = [
|
|
536
|
+
{
|
|
537
|
+
name: 'vaultId',
|
|
538
|
+
type: 'uint64',
|
|
539
|
+
offset: 0,
|
|
540
|
+
byteLength: 8,
|
|
541
|
+
},
|
|
542
|
+
];
|
|
543
|
+
export function buildMultiSignVaultGetVaultNameInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
544
|
+
return buildPayload(MULTI_SIGN_VAULT_GET_VAULT_NAME_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
545
|
+
}
|
|
546
|
+
export const MULTI_SIGN_VAULT_GET_VAULT_NAME_OUTPUT_FIELDS = [
|
|
547
|
+
{
|
|
548
|
+
name: 'status',
|
|
549
|
+
type: 'uint64',
|
|
550
|
+
offset: 0,
|
|
551
|
+
byteLength: 8,
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
name: 'vaultName',
|
|
555
|
+
type: 'id',
|
|
556
|
+
offset: 8,
|
|
557
|
+
byteLength: 32,
|
|
558
|
+
},
|
|
559
|
+
];
|
|
560
|
+
export function decodeMultiSignVaultGetVaultNameOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
561
|
+
return decodePayload(data, MULTI_SIGN_VAULT_GET_VAULT_NAME_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
562
|
+
}
|
|
563
|
+
export const MULTI_SIGN_VAULT_GET_REVENUE_INFO_INPUT_TYPE = 16;
|
|
564
|
+
export const MULTI_SIGN_VAULT_GET_REVENUE_INFO_INPUT_SIZE = 0;
|
|
565
|
+
export const MULTI_SIGN_VAULT_GET_REVENUE_INFO_OUTPUT_SIZE = 32;
|
|
566
|
+
export const MULTI_SIGN_VAULT_GET_REVENUE_INFO_OUTPUT_FIELDS = [
|
|
567
|
+
{
|
|
568
|
+
name: 'numberOfActiveVaults',
|
|
569
|
+
type: 'uint64',
|
|
570
|
+
offset: 0,
|
|
571
|
+
byteLength: 8,
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
name: 'totalRevenue',
|
|
575
|
+
type: 'uint64',
|
|
576
|
+
offset: 8,
|
|
577
|
+
byteLength: 8,
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
name: 'totalDistributedToShareholders',
|
|
581
|
+
type: 'uint64',
|
|
582
|
+
offset: 16,
|
|
583
|
+
byteLength: 8,
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
name: 'burnedAmount',
|
|
587
|
+
type: 'uint64',
|
|
588
|
+
offset: 24,
|
|
589
|
+
byteLength: 8,
|
|
590
|
+
},
|
|
591
|
+
];
|
|
592
|
+
export function decodeMultiSignVaultGetRevenueInfoOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
593
|
+
return decodePayload(data, MULTI_SIGN_VAULT_GET_REVENUE_INFO_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
594
|
+
}
|
|
595
|
+
export const MULTI_SIGN_VAULT_GET_FEES_INPUT_TYPE = 17;
|
|
596
|
+
export const MULTI_SIGN_VAULT_GET_FEES_INPUT_SIZE = 0;
|
|
597
|
+
export const MULTI_SIGN_VAULT_GET_FEES_OUTPUT_SIZE = 48;
|
|
598
|
+
export const MULTI_SIGN_VAULT_GET_FEES_OUTPUT_FIELDS = [
|
|
599
|
+
{
|
|
600
|
+
name: 'registeringFee',
|
|
601
|
+
type: 'uint64',
|
|
602
|
+
offset: 0,
|
|
603
|
+
byteLength: 8,
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
name: 'releaseFee',
|
|
607
|
+
type: 'uint64',
|
|
608
|
+
offset: 8,
|
|
609
|
+
byteLength: 8,
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
name: 'releaseResetFee',
|
|
613
|
+
type: 'uint64',
|
|
614
|
+
offset: 16,
|
|
615
|
+
byteLength: 8,
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
name: 'holdingFee',
|
|
619
|
+
type: 'uint64',
|
|
620
|
+
offset: 24,
|
|
621
|
+
byteLength: 8,
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
name: 'depositFee',
|
|
625
|
+
type: 'uint64',
|
|
626
|
+
offset: 32,
|
|
627
|
+
byteLength: 8,
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
name: 'burnFee',
|
|
631
|
+
type: 'uint64',
|
|
632
|
+
offset: 40,
|
|
633
|
+
byteLength: 8,
|
|
634
|
+
},
|
|
635
|
+
];
|
|
636
|
+
export function decodeMultiSignVaultGetFeesOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
637
|
+
return decodePayload(data, MULTI_SIGN_VAULT_GET_FEES_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
638
|
+
}
|
|
639
|
+
export const MULTI_SIGN_VAULT_GET_VAULT_OWNERS_INPUT_TYPE = 18;
|
|
640
|
+
export const MULTI_SIGN_VAULT_GET_VAULT_OWNERS_INPUT_SIZE = 8;
|
|
641
|
+
export const MULTI_SIGN_VAULT_GET_VAULT_OWNERS_OUTPUT_SIZE = 536;
|
|
642
|
+
export const MULTI_SIGN_VAULT_GET_VAULT_OWNERS_INPUT_FIELDS = [
|
|
643
|
+
{
|
|
644
|
+
name: 'vaultId',
|
|
645
|
+
type: 'uint64',
|
|
646
|
+
offset: 0,
|
|
647
|
+
byteLength: 8,
|
|
648
|
+
},
|
|
649
|
+
];
|
|
650
|
+
export function buildMultiSignVaultGetVaultOwnersInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
651
|
+
return buildPayload(MULTI_SIGN_VAULT_GET_VAULT_OWNERS_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
652
|
+
}
|
|
653
|
+
export const MULTI_SIGN_VAULT_GET_VAULT_OWNERS_OUTPUT_FIELDS = [
|
|
654
|
+
{
|
|
655
|
+
name: 'status',
|
|
656
|
+
type: 'uint64',
|
|
657
|
+
offset: 0,
|
|
658
|
+
byteLength: 8,
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
name: 'numberOfOwners',
|
|
662
|
+
type: 'uint64',
|
|
663
|
+
offset: 8,
|
|
664
|
+
byteLength: 8,
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
name: 'owners',
|
|
668
|
+
type: 'array',
|
|
669
|
+
offset: 16,
|
|
670
|
+
byteLength: 512,
|
|
671
|
+
arrayLength: 16,
|
|
672
|
+
arrayItemType: 'id',
|
|
673
|
+
arrayItemByteLength: 32,
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
name: 'requiredApprovals',
|
|
677
|
+
type: 'uint64',
|
|
678
|
+
offset: 528,
|
|
679
|
+
byteLength: 8,
|
|
680
|
+
},
|
|
681
|
+
];
|
|
682
|
+
export function decodeMultiSignVaultGetVaultOwnersOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
683
|
+
return decodePayload(data, MULTI_SIGN_VAULT_GET_VAULT_OWNERS_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
684
|
+
}
|
|
685
|
+
export const MULTI_SIGN_VAULT_GET_FEE_VOTES_INPUT_TYPE = 19;
|
|
686
|
+
export const MULTI_SIGN_VAULT_GET_FEE_VOTES_INPUT_SIZE = 0;
|
|
687
|
+
export const MULTI_SIGN_VAULT_GET_FEE_VOTES_OUTPUT_SIZE = 3088;
|
|
688
|
+
export const MULTI_SIGN_VAULT_GET_FEE_VOTES_OUTPUT_FIELDS = [
|
|
689
|
+
{
|
|
690
|
+
name: 'status',
|
|
691
|
+
type: 'uint64',
|
|
692
|
+
offset: 0,
|
|
693
|
+
byteLength: 8,
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
name: 'numberOfFeeVotes',
|
|
697
|
+
type: 'uint64',
|
|
698
|
+
offset: 8,
|
|
699
|
+
byteLength: 8,
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
name: 'feeVotes',
|
|
703
|
+
type: 'array',
|
|
704
|
+
offset: 16,
|
|
705
|
+
byteLength: 3072,
|
|
706
|
+
arrayLength: 64,
|
|
707
|
+
arrayItemByteLength: 48,
|
|
708
|
+
arrayItemStructRef: 'MsVaultFeeVote',
|
|
709
|
+
},
|
|
710
|
+
];
|
|
711
|
+
export function decodeMultiSignVaultGetFeeVotesOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
712
|
+
return decodePayload(data, MULTI_SIGN_VAULT_GET_FEE_VOTES_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
713
|
+
}
|
|
714
|
+
export const MULTI_SIGN_VAULT_GET_FEE_VOTES_OWNER_INPUT_TYPE = 20;
|
|
715
|
+
export const MULTI_SIGN_VAULT_GET_FEE_VOTES_OWNER_INPUT_SIZE = 0;
|
|
716
|
+
export const MULTI_SIGN_VAULT_GET_FEE_VOTES_OWNER_OUTPUT_SIZE = 2064;
|
|
717
|
+
export const MULTI_SIGN_VAULT_GET_FEE_VOTES_OWNER_OUTPUT_FIELDS = [
|
|
718
|
+
{
|
|
719
|
+
name: 'status',
|
|
720
|
+
type: 'uint64',
|
|
721
|
+
offset: 0,
|
|
722
|
+
byteLength: 8,
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
name: 'numberOfFeeVotes',
|
|
726
|
+
type: 'uint64',
|
|
727
|
+
offset: 8,
|
|
728
|
+
byteLength: 8,
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
name: 'feeVotesOwner',
|
|
732
|
+
type: 'array',
|
|
733
|
+
offset: 16,
|
|
734
|
+
byteLength: 2048,
|
|
735
|
+
arrayLength: 64,
|
|
736
|
+
arrayItemType: 'id',
|
|
737
|
+
arrayItemByteLength: 32,
|
|
738
|
+
},
|
|
739
|
+
];
|
|
740
|
+
export function decodeMultiSignVaultGetFeeVotesOwnerOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
741
|
+
return decodePayload(data, MULTI_SIGN_VAULT_GET_FEE_VOTES_OWNER_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
742
|
+
}
|
|
743
|
+
export const MULTI_SIGN_VAULT_GET_FEE_VOTES_SCORE_INPUT_TYPE = 21;
|
|
744
|
+
export const MULTI_SIGN_VAULT_GET_FEE_VOTES_SCORE_INPUT_SIZE = 0;
|
|
745
|
+
export const MULTI_SIGN_VAULT_GET_FEE_VOTES_SCORE_OUTPUT_SIZE = 528;
|
|
746
|
+
export const MULTI_SIGN_VAULT_GET_FEE_VOTES_SCORE_OUTPUT_FIELDS = [
|
|
747
|
+
{
|
|
748
|
+
name: 'status',
|
|
749
|
+
type: 'uint64',
|
|
750
|
+
offset: 0,
|
|
751
|
+
byteLength: 8,
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
name: 'numberOfFeeVotes',
|
|
755
|
+
type: 'uint64',
|
|
756
|
+
offset: 8,
|
|
757
|
+
byteLength: 8,
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
name: 'feeVotesScore',
|
|
761
|
+
type: 'array',
|
|
762
|
+
offset: 16,
|
|
763
|
+
byteLength: 512,
|
|
764
|
+
arrayLength: 64,
|
|
765
|
+
arrayItemType: 'uint64',
|
|
766
|
+
arrayItemByteLength: 8,
|
|
767
|
+
},
|
|
768
|
+
];
|
|
769
|
+
export function decodeMultiSignVaultGetFeeVotesScoreOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
770
|
+
return decodePayload(data, MULTI_SIGN_VAULT_GET_FEE_VOTES_SCORE_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
771
|
+
}
|
|
772
|
+
export const MULTI_SIGN_VAULT_GET_UNIQUE_FEE_VOTES_INPUT_TYPE = 22;
|
|
773
|
+
export const MULTI_SIGN_VAULT_GET_UNIQUE_FEE_VOTES_INPUT_SIZE = 0;
|
|
774
|
+
export const MULTI_SIGN_VAULT_GET_UNIQUE_FEE_VOTES_OUTPUT_SIZE = 3088;
|
|
775
|
+
export const MULTI_SIGN_VAULT_GET_UNIQUE_FEE_VOTES_OUTPUT_FIELDS = [
|
|
776
|
+
{
|
|
777
|
+
name: 'status',
|
|
778
|
+
type: 'uint64',
|
|
779
|
+
offset: 0,
|
|
780
|
+
byteLength: 8,
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
name: 'numberOfUniqueFeeVotes',
|
|
784
|
+
type: 'uint64',
|
|
785
|
+
offset: 8,
|
|
786
|
+
byteLength: 8,
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
name: 'uniqueFeeVotes',
|
|
790
|
+
type: 'array',
|
|
791
|
+
offset: 16,
|
|
792
|
+
byteLength: 3072,
|
|
793
|
+
arrayLength: 64,
|
|
794
|
+
arrayItemByteLength: 48,
|
|
795
|
+
arrayItemStructRef: 'MsVaultFeeVote',
|
|
796
|
+
},
|
|
797
|
+
];
|
|
798
|
+
export function decodeMultiSignVaultGetUniqueFeeVotesOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
799
|
+
return decodePayload(data, MULTI_SIGN_VAULT_GET_UNIQUE_FEE_VOTES_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
800
|
+
}
|
|
801
|
+
export const MULTI_SIGN_VAULT_GET_UNIQUE_FEE_VOTES_RANKING_INPUT_TYPE = 23;
|
|
802
|
+
export const MULTI_SIGN_VAULT_GET_UNIQUE_FEE_VOTES_RANKING_INPUT_SIZE = 0;
|
|
803
|
+
export const MULTI_SIGN_VAULT_GET_UNIQUE_FEE_VOTES_RANKING_OUTPUT_SIZE = 528;
|
|
804
|
+
export const MULTI_SIGN_VAULT_GET_UNIQUE_FEE_VOTES_RANKING_OUTPUT_FIELDS = [
|
|
805
|
+
{
|
|
806
|
+
name: 'status',
|
|
807
|
+
type: 'uint64',
|
|
808
|
+
offset: 0,
|
|
809
|
+
byteLength: 8,
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
name: 'numberOfUniqueFeeVotes',
|
|
813
|
+
type: 'uint64',
|
|
814
|
+
offset: 8,
|
|
815
|
+
byteLength: 8,
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
name: 'uniqueFeeVotesRanking',
|
|
819
|
+
type: 'array',
|
|
820
|
+
offset: 16,
|
|
821
|
+
byteLength: 512,
|
|
822
|
+
arrayLength: 64,
|
|
823
|
+
arrayItemType: 'uint64',
|
|
824
|
+
arrayItemByteLength: 8,
|
|
825
|
+
},
|
|
826
|
+
];
|
|
827
|
+
export function decodeMultiSignVaultGetUniqueFeeVotesRankingOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
828
|
+
return decodePayload(data, MULTI_SIGN_VAULT_GET_UNIQUE_FEE_VOTES_RANKING_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
829
|
+
}
|
|
830
|
+
export const MULTI_SIGN_VAULT_GET_ASSET_RELEASE_STATUS_INPUT_TYPE = 28;
|
|
831
|
+
export const MULTI_SIGN_VAULT_GET_ASSET_RELEASE_STATUS_INPUT_SIZE = 8;
|
|
832
|
+
export const MULTI_SIGN_VAULT_GET_ASSET_RELEASE_STATUS_OUTPUT_SIZE = 648;
|
|
833
|
+
export const MULTI_SIGN_VAULT_GET_ASSET_RELEASE_STATUS_INPUT_FIELDS = [
|
|
834
|
+
{
|
|
835
|
+
name: 'vaultId',
|
|
836
|
+
type: 'uint64',
|
|
837
|
+
offset: 0,
|
|
838
|
+
byteLength: 8,
|
|
839
|
+
},
|
|
840
|
+
];
|
|
841
|
+
export function buildMultiSignVaultGetAssetReleaseStatusInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
842
|
+
return buildPayload(MULTI_SIGN_VAULT_GET_ASSET_RELEASE_STATUS_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
843
|
+
}
|
|
844
|
+
export const MULTI_SIGN_VAULT_GET_ASSET_RELEASE_STATUS_OUTPUT_FIELDS = [
|
|
845
|
+
{
|
|
846
|
+
name: 'status',
|
|
847
|
+
type: 'uint64',
|
|
848
|
+
offset: 0,
|
|
849
|
+
byteLength: 8,
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
name: 'amounts',
|
|
853
|
+
type: 'array',
|
|
854
|
+
offset: 8,
|
|
855
|
+
byteLength: 128,
|
|
856
|
+
arrayLength: 16,
|
|
857
|
+
arrayItemType: 'uint64',
|
|
858
|
+
arrayItemByteLength: 8,
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
name: 'destinations',
|
|
862
|
+
type: 'array',
|
|
863
|
+
offset: 136,
|
|
864
|
+
byteLength: 512,
|
|
865
|
+
arrayLength: 16,
|
|
866
|
+
arrayItemType: 'id',
|
|
867
|
+
arrayItemByteLength: 32,
|
|
868
|
+
},
|
|
869
|
+
];
|
|
870
|
+
export function decodeMultiSignVaultGetAssetReleaseStatusOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
871
|
+
return decodePayload(data, MULTI_SIGN_VAULT_GET_ASSET_RELEASE_STATUS_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
872
|
+
}
|
|
873
|
+
export const MULTI_SIGN_VAULT_GET_VAULT_ASSET_BALANCES_INPUT_TYPE = 29;
|
|
874
|
+
export const MULTI_SIGN_VAULT_GET_VAULT_ASSET_BALANCES_INPUT_SIZE = 8;
|
|
875
|
+
export const MULTI_SIGN_VAULT_GET_VAULT_ASSET_BALANCES_OUTPUT_SIZE = 80;
|
|
876
|
+
export const MULTI_SIGN_VAULT_GET_VAULT_ASSET_BALANCES_INPUT_FIELDS = [
|
|
877
|
+
{
|
|
878
|
+
name: 'vaultId',
|
|
879
|
+
type: 'uint64',
|
|
880
|
+
offset: 0,
|
|
881
|
+
byteLength: 8,
|
|
882
|
+
},
|
|
883
|
+
];
|
|
884
|
+
export function buildMultiSignVaultGetVaultAssetBalancesInput(input, identityToPublicKey = () => new Uint8Array(32)) {
|
|
885
|
+
return buildPayload(MULTI_SIGN_VAULT_GET_VAULT_ASSET_BALANCES_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
|
|
886
|
+
}
|
|
887
|
+
export const MULTI_SIGN_VAULT_GET_VAULT_ASSET_BALANCES_OUTPUT_FIELDS = [
|
|
888
|
+
{
|
|
889
|
+
name: 'status',
|
|
890
|
+
type: 'uint64',
|
|
891
|
+
offset: 0,
|
|
892
|
+
byteLength: 8,
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
name: 'numberOfAssetTypes',
|
|
896
|
+
type: 'uint64',
|
|
897
|
+
offset: 8,
|
|
898
|
+
byteLength: 8,
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
name: 'assetBalances',
|
|
902
|
+
type: 'array',
|
|
903
|
+
offset: 16,
|
|
904
|
+
byteLength: 64,
|
|
905
|
+
arrayLength: 8,
|
|
906
|
+
arrayItemByteLength: 8,
|
|
907
|
+
arrayItemStructRef: 'AssetBalance',
|
|
908
|
+
},
|
|
909
|
+
];
|
|
910
|
+
export function decodeMultiSignVaultGetVaultAssetBalancesOutput(data, publicKeyToIdentity = () => 'A'.repeat(60)) {
|
|
911
|
+
return decodePayload(data, MULTI_SIGN_VAULT_GET_VAULT_ASSET_BALANCES_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
912
|
+
}
|
|
913
|
+
//# sourceMappingURL=multisignvault.js.map
|