@rosen-bridge/rosen-extractor 6.3.1 → 6.4.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/dist/lib/getRosenData/cardano/CardanoKoiosCborRosenExtractor.d.ts +19 -0
- package/dist/lib/getRosenData/cardano/CardanoKoiosCborRosenExtractor.d.ts.map +1 -0
- package/dist/lib/getRosenData/cardano/CardanoKoiosCborRosenExtractor.js +100 -0
- package/dist/lib/getRosenData/cardano/CardanoKoiosRosenExtractor.js +2 -2
- package/dist/lib/getRosenData/cardano/cardanoSerializationTypes.d.ts +703 -0
- package/dist/lib/getRosenData/cardano/cardanoSerializationTypes.d.ts.map +1 -0
- package/dist/lib/getRosenData/cardano/cardanoSerializationTypes.js +2 -0
- package/dist/lib/getRosenData/cardano/types.d.ts +37 -1
- package/dist/lib/getRosenData/cardano/types.d.ts.map +1 -1
- package/dist/lib/getRosenData/cardano/types.js +1 -1
- package/dist/lib/getRosenData/cardano/utils.d.ts +7 -0
- package/dist/lib/getRosenData/cardano/utils.d.ts.map +1 -1
- package/dist/lib/getRosenData/cardano/utils.js +93 -1
- package/dist/lib/getRosenData/doge/DogeRpcRosenExtractor.d.ts +22 -0
- package/dist/lib/getRosenData/doge/DogeRpcRosenExtractor.d.ts.map +1 -0
- package/dist/lib/getRosenData/doge/DogeRpcRosenExtractor.js +105 -0
- package/dist/lib/getRosenData/doge/types.d.ts +30 -0
- package/dist/lib/getRosenData/doge/types.d.ts.map +1 -1
- package/dist/lib/getRosenData/doge/types.js +1 -1
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +2 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,703 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TODO: @local/ergo/rosen-bridge/utils/-/issues/227
|
|
3
|
+
* Remove this file after updating guard-service to use latest version of
|
|
4
|
+
* `@emurgo/cardano-serialization-lib-nodejs`
|
|
5
|
+
*/
|
|
6
|
+
export type URLJSON = string;
|
|
7
|
+
export interface AnchorJSON {
|
|
8
|
+
anchor_data_hash: string;
|
|
9
|
+
anchor_url: URLJSON;
|
|
10
|
+
}
|
|
11
|
+
export interface AssetsJSON {
|
|
12
|
+
[k: string]: string;
|
|
13
|
+
}
|
|
14
|
+
export type NativeScriptJSON = {
|
|
15
|
+
ScriptPubkey: ScriptPubkeyJSON;
|
|
16
|
+
} | {
|
|
17
|
+
ScriptAll: ScriptAllJSON;
|
|
18
|
+
} | {
|
|
19
|
+
ScriptAny: ScriptAnyJSON;
|
|
20
|
+
} | {
|
|
21
|
+
ScriptNOfK: ScriptNOfKJSON;
|
|
22
|
+
} | {
|
|
23
|
+
TimelockStart: TimelockStartJSON;
|
|
24
|
+
} | {
|
|
25
|
+
TimelockExpiry: TimelockExpiryJSON;
|
|
26
|
+
};
|
|
27
|
+
export interface AuxiliaryDataJSON {
|
|
28
|
+
metadata?: {
|
|
29
|
+
[k: string]: string;
|
|
30
|
+
} | null;
|
|
31
|
+
native_scripts?: NativeScriptJSON[] | null;
|
|
32
|
+
plutus_scripts?: string[] | null;
|
|
33
|
+
prefer_alonzo_format: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface ScriptPubkeyJSON {
|
|
36
|
+
addr_keyhash: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ScriptAllJSON {
|
|
39
|
+
native_scripts: NativeScriptJSON[];
|
|
40
|
+
}
|
|
41
|
+
export interface ScriptAnyJSON {
|
|
42
|
+
native_scripts: NativeScriptJSON[];
|
|
43
|
+
}
|
|
44
|
+
export interface ScriptNOfKJSON {
|
|
45
|
+
n: number;
|
|
46
|
+
native_scripts: NativeScriptJSON[];
|
|
47
|
+
}
|
|
48
|
+
export interface TimelockStartJSON {
|
|
49
|
+
slot: string;
|
|
50
|
+
}
|
|
51
|
+
export interface TimelockExpiryJSON {
|
|
52
|
+
slot: string;
|
|
53
|
+
}
|
|
54
|
+
export type AuxiliaryDataHashJSON = string;
|
|
55
|
+
export interface AuxiliaryDataSetJSON {
|
|
56
|
+
[k: string]: AuxiliaryDataJSON;
|
|
57
|
+
}
|
|
58
|
+
export type VkeyJSON = string;
|
|
59
|
+
export type HeaderLeaderCertEnumJSON = {
|
|
60
|
+
/**
|
|
61
|
+
* @minItems 2
|
|
62
|
+
* @maxItems 2
|
|
63
|
+
*/
|
|
64
|
+
NonceAndLeader: [VRFCertJSON, VRFCertJSON];
|
|
65
|
+
} | {
|
|
66
|
+
VrfResult: VRFCertJSON;
|
|
67
|
+
};
|
|
68
|
+
export type CertificateJSON = {
|
|
69
|
+
StakeRegistration: StakeRegistrationJSON;
|
|
70
|
+
} | {
|
|
71
|
+
StakeDeregistration: StakeDeregistrationJSON;
|
|
72
|
+
} | {
|
|
73
|
+
StakeDelegation: StakeDelegationJSON;
|
|
74
|
+
} | {
|
|
75
|
+
PoolRegistration: PoolRegistrationJSON;
|
|
76
|
+
} | {
|
|
77
|
+
PoolRetirement: PoolRetirementJSON;
|
|
78
|
+
} | {
|
|
79
|
+
GenesisKeyDelegation: GenesisKeyDelegationJSON;
|
|
80
|
+
} | {
|
|
81
|
+
MoveInstantaneousRewardsCert: MoveInstantaneousRewardsCertJSON;
|
|
82
|
+
} | {
|
|
83
|
+
CommitteeHotAuth: CommitteeHotAuthJSON;
|
|
84
|
+
} | {
|
|
85
|
+
CommitteeColdResign: CommitteeColdResignJSON;
|
|
86
|
+
} | {
|
|
87
|
+
DRepDeregistration: DRepDeregistrationJSON;
|
|
88
|
+
} | {
|
|
89
|
+
DRepRegistration: DRepRegistrationJSON;
|
|
90
|
+
} | {
|
|
91
|
+
DRepUpdate: DRepUpdateJSON;
|
|
92
|
+
} | {
|
|
93
|
+
StakeAndVoteDelegation: StakeAndVoteDelegationJSON;
|
|
94
|
+
} | {
|
|
95
|
+
StakeRegistrationAndDelegation: StakeRegistrationAndDelegationJSON;
|
|
96
|
+
} | {
|
|
97
|
+
StakeVoteRegistrationAndDelegation: StakeVoteRegistrationAndDelegationJSON;
|
|
98
|
+
} | {
|
|
99
|
+
VoteDelegation: VoteDelegationJSON;
|
|
100
|
+
} | {
|
|
101
|
+
VoteRegistrationAndDelegation: VoteRegistrationAndDelegationJSON;
|
|
102
|
+
};
|
|
103
|
+
export type CredTypeJSON = {
|
|
104
|
+
Key: string;
|
|
105
|
+
} | {
|
|
106
|
+
Script: string;
|
|
107
|
+
};
|
|
108
|
+
export type RelayJSON = {
|
|
109
|
+
SingleHostAddr: SingleHostAddrJSON;
|
|
110
|
+
} | {
|
|
111
|
+
SingleHostName: SingleHostNameJSON;
|
|
112
|
+
} | {
|
|
113
|
+
MultiHostName: MultiHostNameJSON;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* @minItems 4
|
|
117
|
+
* @maxItems 4
|
|
118
|
+
*/
|
|
119
|
+
export type Ipv4JSON = [number, number, number, number];
|
|
120
|
+
/**
|
|
121
|
+
* @minItems 16
|
|
122
|
+
* @maxItems 16
|
|
123
|
+
*/
|
|
124
|
+
export type Ipv6JSON = [
|
|
125
|
+
number,
|
|
126
|
+
number,
|
|
127
|
+
number,
|
|
128
|
+
number,
|
|
129
|
+
number,
|
|
130
|
+
number,
|
|
131
|
+
number,
|
|
132
|
+
number,
|
|
133
|
+
number,
|
|
134
|
+
number,
|
|
135
|
+
number,
|
|
136
|
+
number,
|
|
137
|
+
number,
|
|
138
|
+
number,
|
|
139
|
+
number,
|
|
140
|
+
number
|
|
141
|
+
];
|
|
142
|
+
export type DNSRecordAorAAAAJSON = string;
|
|
143
|
+
export type DNSRecordSRVJSON = string;
|
|
144
|
+
export type RelaysJSON = RelayJSON[];
|
|
145
|
+
export type MIRPotJSON = 'Reserves' | 'Treasury';
|
|
146
|
+
export type MIREnumJSON = {
|
|
147
|
+
ToOtherPot: string;
|
|
148
|
+
} | {
|
|
149
|
+
ToStakeCredentials: StakeToCoinJSON[];
|
|
150
|
+
};
|
|
151
|
+
export type DRepJSON = ('AlwaysAbstain' | 'AlwaysNoConfidence') | {
|
|
152
|
+
KeyHash: string;
|
|
153
|
+
} | {
|
|
154
|
+
ScriptHash: string;
|
|
155
|
+
};
|
|
156
|
+
export type DataOptionJSON = {
|
|
157
|
+
DataHash: string;
|
|
158
|
+
} | {
|
|
159
|
+
Data: string;
|
|
160
|
+
};
|
|
161
|
+
export type ScriptRefJSON = {
|
|
162
|
+
NativeScript: NativeScriptJSON;
|
|
163
|
+
} | {
|
|
164
|
+
PlutusScript: string;
|
|
165
|
+
};
|
|
166
|
+
export type MintJSON = [string, MintAssetsJSON][];
|
|
167
|
+
export type NetworkIdJSON = 'Testnet' | 'Mainnet';
|
|
168
|
+
export type TransactionOutputsJSON = TransactionOutputJSON[];
|
|
169
|
+
export type CostModelJSON = string[];
|
|
170
|
+
export type VoterJSON = {
|
|
171
|
+
ConstitutionalCommitteeHotCred: CredTypeJSON;
|
|
172
|
+
} | {
|
|
173
|
+
DRep: CredTypeJSON;
|
|
174
|
+
} | {
|
|
175
|
+
StakingPool: string;
|
|
176
|
+
};
|
|
177
|
+
export type VoteKindJSON = 'No' | 'Yes' | 'Abstain';
|
|
178
|
+
export type GovernanceActionJSON = {
|
|
179
|
+
ParameterChangeAction: ParameterChangeActionJSON;
|
|
180
|
+
} | {
|
|
181
|
+
HardForkInitiationAction: HardForkInitiationActionJSON;
|
|
182
|
+
} | {
|
|
183
|
+
TreasuryWithdrawalsAction: TreasuryWithdrawalsActionJSON;
|
|
184
|
+
} | {
|
|
185
|
+
NoConfidenceAction: NoConfidenceActionJSON;
|
|
186
|
+
} | {
|
|
187
|
+
UpdateCommitteeAction: UpdateCommitteeActionJSON;
|
|
188
|
+
} | {
|
|
189
|
+
NewConstitutionAction: NewConstitutionActionJSON;
|
|
190
|
+
} | {
|
|
191
|
+
InfoAction: InfoActionJSON;
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* @minItems 0
|
|
195
|
+
* @maxItems 0
|
|
196
|
+
*/
|
|
197
|
+
export type InfoActionJSON = [];
|
|
198
|
+
export type TransactionBodiesJSON = TransactionBodyJSON[];
|
|
199
|
+
export type RedeemerTagJSON = 'Spend' | 'Mint' | 'Cert' | 'Reward' | 'Vote' | 'VotingProposal';
|
|
200
|
+
export type TransactionWitnessSetsJSON = TransactionWitnessSetJSON[];
|
|
201
|
+
export interface BlockJSON {
|
|
202
|
+
auxiliary_data_set: {
|
|
203
|
+
[k: string]: AuxiliaryDataJSON;
|
|
204
|
+
};
|
|
205
|
+
header: HeaderJSON;
|
|
206
|
+
invalid_transactions: number[];
|
|
207
|
+
transaction_bodies: TransactionBodiesJSON;
|
|
208
|
+
transaction_witness_sets: TransactionWitnessSetsJSON;
|
|
209
|
+
}
|
|
210
|
+
export interface HeaderJSON {
|
|
211
|
+
body_signature: string;
|
|
212
|
+
header_body: HeaderBodyJSON;
|
|
213
|
+
}
|
|
214
|
+
export interface HeaderBodyJSON {
|
|
215
|
+
block_body_hash: string;
|
|
216
|
+
block_body_size: number;
|
|
217
|
+
block_number: number;
|
|
218
|
+
issuer_vkey: VkeyJSON;
|
|
219
|
+
leader_cert: HeaderLeaderCertEnumJSON;
|
|
220
|
+
operational_cert: OperationalCertJSON;
|
|
221
|
+
prev_hash?: string | null;
|
|
222
|
+
protocol_version: ProtocolVersionJSON;
|
|
223
|
+
slot: string;
|
|
224
|
+
vrf_vkey: string;
|
|
225
|
+
}
|
|
226
|
+
export interface VRFCertJSON {
|
|
227
|
+
output: number[];
|
|
228
|
+
proof: number[];
|
|
229
|
+
}
|
|
230
|
+
export interface OperationalCertJSON {
|
|
231
|
+
hot_vkey: string;
|
|
232
|
+
kes_period: number;
|
|
233
|
+
sequence_number: number;
|
|
234
|
+
sigma: string;
|
|
235
|
+
}
|
|
236
|
+
export interface ProtocolVersionJSON {
|
|
237
|
+
major: number;
|
|
238
|
+
minor: number;
|
|
239
|
+
}
|
|
240
|
+
export interface TransactionBodyJSON {
|
|
241
|
+
auxiliary_data_hash?: string | null;
|
|
242
|
+
certs?: CertificateJSON[] | null;
|
|
243
|
+
collateral?: TransactionInputJSON[] | null;
|
|
244
|
+
collateral_return?: TransactionOutputJSON | null;
|
|
245
|
+
current_treasury_value?: string | null;
|
|
246
|
+
donation?: string | null;
|
|
247
|
+
fee: string;
|
|
248
|
+
inputs: TransactionInputJSON[];
|
|
249
|
+
mint?: MintJSON | null;
|
|
250
|
+
network_id?: NetworkIdJSON | null;
|
|
251
|
+
outputs: TransactionOutputsJSON;
|
|
252
|
+
reference_inputs?: TransactionInputJSON[] | null;
|
|
253
|
+
required_signers?: string[] | null;
|
|
254
|
+
script_data_hash?: string | null;
|
|
255
|
+
total_collateral?: string | null;
|
|
256
|
+
ttl?: string | null;
|
|
257
|
+
update?: UpdateJSON | null;
|
|
258
|
+
validity_start_interval?: string | null;
|
|
259
|
+
voting_procedures?: VoterVotesJSON[] | null;
|
|
260
|
+
voting_proposals?: VotingProposalJSON[] | null;
|
|
261
|
+
withdrawals?: {
|
|
262
|
+
[k: string]: string;
|
|
263
|
+
} | null;
|
|
264
|
+
}
|
|
265
|
+
export interface StakeRegistrationJSON {
|
|
266
|
+
coin?: string | null;
|
|
267
|
+
stake_credential: CredTypeJSON;
|
|
268
|
+
}
|
|
269
|
+
export interface StakeDeregistrationJSON {
|
|
270
|
+
coin?: string | null;
|
|
271
|
+
stake_credential: CredTypeJSON;
|
|
272
|
+
}
|
|
273
|
+
export interface StakeDelegationJSON {
|
|
274
|
+
pool_keyhash: string;
|
|
275
|
+
stake_credential: CredTypeJSON;
|
|
276
|
+
}
|
|
277
|
+
export interface PoolRegistrationJSON {
|
|
278
|
+
pool_params: PoolParamsJSON;
|
|
279
|
+
}
|
|
280
|
+
export interface PoolParamsJSON {
|
|
281
|
+
cost: string;
|
|
282
|
+
margin: UnitIntervalJSON;
|
|
283
|
+
operator: string;
|
|
284
|
+
pledge: string;
|
|
285
|
+
pool_metadata?: PoolMetadataJSON | null;
|
|
286
|
+
pool_owners: string[];
|
|
287
|
+
relays: RelaysJSON;
|
|
288
|
+
reward_account: string;
|
|
289
|
+
vrf_keyhash: string;
|
|
290
|
+
}
|
|
291
|
+
export interface UnitIntervalJSON {
|
|
292
|
+
denominator: string;
|
|
293
|
+
numerator: string;
|
|
294
|
+
}
|
|
295
|
+
export interface PoolMetadataJSON {
|
|
296
|
+
pool_metadata_hash: string;
|
|
297
|
+
url: URLJSON;
|
|
298
|
+
}
|
|
299
|
+
export interface SingleHostAddrJSON {
|
|
300
|
+
ipv4?: Ipv4JSON | null;
|
|
301
|
+
ipv6?: Ipv6JSON | null;
|
|
302
|
+
port?: number | null;
|
|
303
|
+
}
|
|
304
|
+
export interface SingleHostNameJSON {
|
|
305
|
+
dns_name: DNSRecordAorAAAAJSON;
|
|
306
|
+
port?: number | null;
|
|
307
|
+
}
|
|
308
|
+
export interface MultiHostNameJSON {
|
|
309
|
+
dns_name: DNSRecordSRVJSON;
|
|
310
|
+
}
|
|
311
|
+
export interface PoolRetirementJSON {
|
|
312
|
+
epoch: number;
|
|
313
|
+
pool_keyhash: string;
|
|
314
|
+
}
|
|
315
|
+
export interface GenesisKeyDelegationJSON {
|
|
316
|
+
genesis_delegate_hash: string;
|
|
317
|
+
genesishash: string;
|
|
318
|
+
vrf_keyhash: string;
|
|
319
|
+
}
|
|
320
|
+
export interface MoveInstantaneousRewardsCertJSON {
|
|
321
|
+
move_instantaneous_reward: MoveInstantaneousRewardJSON;
|
|
322
|
+
}
|
|
323
|
+
export interface MoveInstantaneousRewardJSON {
|
|
324
|
+
pot: MIRPotJSON;
|
|
325
|
+
variant: MIREnumJSON;
|
|
326
|
+
}
|
|
327
|
+
export interface StakeToCoinJSON {
|
|
328
|
+
amount: string;
|
|
329
|
+
stake_cred: CredTypeJSON;
|
|
330
|
+
}
|
|
331
|
+
export interface CommitteeHotAuthJSON {
|
|
332
|
+
committee_cold_credential: CredTypeJSON;
|
|
333
|
+
committee_hot_credential: CredTypeJSON;
|
|
334
|
+
}
|
|
335
|
+
export interface CommitteeColdResignJSON {
|
|
336
|
+
anchor?: AnchorJSON | null;
|
|
337
|
+
committee_cold_credential: CredTypeJSON;
|
|
338
|
+
}
|
|
339
|
+
export interface DRepDeregistrationJSON {
|
|
340
|
+
coin: string;
|
|
341
|
+
voting_credential: CredTypeJSON;
|
|
342
|
+
}
|
|
343
|
+
export interface DRepRegistrationJSON {
|
|
344
|
+
anchor?: AnchorJSON | null;
|
|
345
|
+
coin: string;
|
|
346
|
+
voting_credential: CredTypeJSON;
|
|
347
|
+
}
|
|
348
|
+
export interface DRepUpdateJSON {
|
|
349
|
+
anchor?: AnchorJSON | null;
|
|
350
|
+
voting_credential: CredTypeJSON;
|
|
351
|
+
}
|
|
352
|
+
export interface StakeAndVoteDelegationJSON {
|
|
353
|
+
drep: DRepJSON;
|
|
354
|
+
pool_keyhash: string;
|
|
355
|
+
stake_credential: CredTypeJSON;
|
|
356
|
+
}
|
|
357
|
+
export interface StakeRegistrationAndDelegationJSON {
|
|
358
|
+
coin: string;
|
|
359
|
+
pool_keyhash: string;
|
|
360
|
+
stake_credential: CredTypeJSON;
|
|
361
|
+
}
|
|
362
|
+
export interface StakeVoteRegistrationAndDelegationJSON {
|
|
363
|
+
coin: string;
|
|
364
|
+
drep: DRepJSON;
|
|
365
|
+
pool_keyhash: string;
|
|
366
|
+
stake_credential: CredTypeJSON;
|
|
367
|
+
}
|
|
368
|
+
export interface VoteDelegationJSON {
|
|
369
|
+
drep: DRepJSON;
|
|
370
|
+
stake_credential: CredTypeJSON;
|
|
371
|
+
}
|
|
372
|
+
export interface VoteRegistrationAndDelegationJSON {
|
|
373
|
+
coin: string;
|
|
374
|
+
drep: DRepJSON;
|
|
375
|
+
stake_credential: CredTypeJSON;
|
|
376
|
+
}
|
|
377
|
+
export interface TransactionInputJSON {
|
|
378
|
+
index: number;
|
|
379
|
+
transaction_id: string;
|
|
380
|
+
}
|
|
381
|
+
export interface TransactionOutputJSON {
|
|
382
|
+
address: string;
|
|
383
|
+
amount: ValueJSON;
|
|
384
|
+
plutus_data?: DataOptionJSON | null;
|
|
385
|
+
script_ref?: ScriptRefJSON | null;
|
|
386
|
+
}
|
|
387
|
+
export interface ValueJSON {
|
|
388
|
+
coin: string;
|
|
389
|
+
multiasset?: MultiAssetJSON | null;
|
|
390
|
+
}
|
|
391
|
+
export interface MultiAssetJSON {
|
|
392
|
+
[k: string]: AssetsJSON;
|
|
393
|
+
}
|
|
394
|
+
export interface MintAssetsJSON {
|
|
395
|
+
[k: string]: string;
|
|
396
|
+
}
|
|
397
|
+
export interface UpdateJSON {
|
|
398
|
+
epoch: number;
|
|
399
|
+
proposed_protocol_parameter_updates: {
|
|
400
|
+
[k: string]: ProtocolParamUpdateJSON;
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
export interface ProtocolParamUpdateJSON {
|
|
404
|
+
ada_per_utxo_byte?: string | null;
|
|
405
|
+
collateral_percentage?: number | null;
|
|
406
|
+
committee_term_limit?: number | null;
|
|
407
|
+
cost_models?: CostmdlsJSON | null;
|
|
408
|
+
d?: UnitIntervalJSON | null;
|
|
409
|
+
drep_deposit?: string | null;
|
|
410
|
+
drep_inactivity_period?: number | null;
|
|
411
|
+
drep_voting_thresholds?: DRepVotingThresholdsJSON | null;
|
|
412
|
+
execution_costs?: ExUnitPricesJSON | null;
|
|
413
|
+
expansion_rate?: UnitIntervalJSON | null;
|
|
414
|
+
extra_entropy?: NonceJSON | null;
|
|
415
|
+
governance_action_deposit?: string | null;
|
|
416
|
+
governance_action_validity_period?: number | null;
|
|
417
|
+
key_deposit?: string | null;
|
|
418
|
+
max_block_body_size?: number | null;
|
|
419
|
+
max_block_ex_units?: ExUnitsJSON | null;
|
|
420
|
+
max_block_header_size?: number | null;
|
|
421
|
+
max_collateral_inputs?: number | null;
|
|
422
|
+
max_epoch?: number | null;
|
|
423
|
+
max_tx_ex_units?: ExUnitsJSON | null;
|
|
424
|
+
max_tx_size?: number | null;
|
|
425
|
+
max_value_size?: number | null;
|
|
426
|
+
min_committee_size?: number | null;
|
|
427
|
+
min_pool_cost?: string | null;
|
|
428
|
+
minfee_a?: string | null;
|
|
429
|
+
minfee_b?: string | null;
|
|
430
|
+
n_opt?: number | null;
|
|
431
|
+
pool_deposit?: string | null;
|
|
432
|
+
pool_pledge_influence?: UnitIntervalJSON | null;
|
|
433
|
+
pool_voting_thresholds?: PoolVotingThresholdsJSON | null;
|
|
434
|
+
protocol_version?: ProtocolVersionJSON | null;
|
|
435
|
+
ref_script_coins_per_byte?: UnitIntervalJSON | null;
|
|
436
|
+
treasury_growth_rate?: UnitIntervalJSON | null;
|
|
437
|
+
}
|
|
438
|
+
export interface CostmdlsJSON {
|
|
439
|
+
[k: string]: CostModelJSON;
|
|
440
|
+
}
|
|
441
|
+
export interface DRepVotingThresholdsJSON {
|
|
442
|
+
committee_no_confidence: UnitIntervalJSON;
|
|
443
|
+
committee_normal: UnitIntervalJSON;
|
|
444
|
+
hard_fork_initiation: UnitIntervalJSON;
|
|
445
|
+
motion_no_confidence: UnitIntervalJSON;
|
|
446
|
+
pp_economic_group: UnitIntervalJSON;
|
|
447
|
+
pp_governance_group: UnitIntervalJSON;
|
|
448
|
+
pp_network_group: UnitIntervalJSON;
|
|
449
|
+
pp_technical_group: UnitIntervalJSON;
|
|
450
|
+
treasury_withdrawal: UnitIntervalJSON;
|
|
451
|
+
update_constitution: UnitIntervalJSON;
|
|
452
|
+
}
|
|
453
|
+
export interface ExUnitPricesJSON {
|
|
454
|
+
mem_price: UnitIntervalJSON;
|
|
455
|
+
step_price: UnitIntervalJSON;
|
|
456
|
+
}
|
|
457
|
+
export interface NonceJSON {
|
|
458
|
+
/**
|
|
459
|
+
* @minItems 32
|
|
460
|
+
* @maxItems 32
|
|
461
|
+
*/
|
|
462
|
+
hash?: [
|
|
463
|
+
number,
|
|
464
|
+
number,
|
|
465
|
+
number,
|
|
466
|
+
number,
|
|
467
|
+
number,
|
|
468
|
+
number,
|
|
469
|
+
number,
|
|
470
|
+
number,
|
|
471
|
+
number,
|
|
472
|
+
number,
|
|
473
|
+
number,
|
|
474
|
+
number,
|
|
475
|
+
number,
|
|
476
|
+
number,
|
|
477
|
+
number,
|
|
478
|
+
number,
|
|
479
|
+
number,
|
|
480
|
+
number,
|
|
481
|
+
number,
|
|
482
|
+
number,
|
|
483
|
+
number,
|
|
484
|
+
number,
|
|
485
|
+
number,
|
|
486
|
+
number,
|
|
487
|
+
number,
|
|
488
|
+
number,
|
|
489
|
+
number,
|
|
490
|
+
number,
|
|
491
|
+
number,
|
|
492
|
+
number,
|
|
493
|
+
number,
|
|
494
|
+
number
|
|
495
|
+
] | null;
|
|
496
|
+
}
|
|
497
|
+
export interface ExUnitsJSON {
|
|
498
|
+
mem: string;
|
|
499
|
+
steps: string;
|
|
500
|
+
}
|
|
501
|
+
export interface PoolVotingThresholdsJSON {
|
|
502
|
+
committee_no_confidence: UnitIntervalJSON;
|
|
503
|
+
committee_normal: UnitIntervalJSON;
|
|
504
|
+
hard_fork_initiation: UnitIntervalJSON;
|
|
505
|
+
motion_no_confidence: UnitIntervalJSON;
|
|
506
|
+
security_relevant_threshold: UnitIntervalJSON;
|
|
507
|
+
}
|
|
508
|
+
export interface VoterVotesJSON {
|
|
509
|
+
voter: VoterJSON;
|
|
510
|
+
votes: VoteJSON[];
|
|
511
|
+
}
|
|
512
|
+
export interface VoteJSON {
|
|
513
|
+
action_id: GovernanceActionIdJSON;
|
|
514
|
+
voting_procedure: VotingProcedureJSON;
|
|
515
|
+
}
|
|
516
|
+
export interface GovernanceActionIdJSON {
|
|
517
|
+
index: number;
|
|
518
|
+
transaction_id: string;
|
|
519
|
+
}
|
|
520
|
+
export interface VotingProcedureJSON {
|
|
521
|
+
anchor?: AnchorJSON | null;
|
|
522
|
+
vote: VoteKindJSON;
|
|
523
|
+
}
|
|
524
|
+
export interface VotingProposalJSON {
|
|
525
|
+
anchor: AnchorJSON;
|
|
526
|
+
deposit: string;
|
|
527
|
+
governance_action: GovernanceActionJSON;
|
|
528
|
+
reward_account: string;
|
|
529
|
+
}
|
|
530
|
+
export interface ParameterChangeActionJSON {
|
|
531
|
+
gov_action_id?: GovernanceActionIdJSON | null;
|
|
532
|
+
policy_hash?: string | null;
|
|
533
|
+
protocol_param_updates: ProtocolParamUpdateJSON;
|
|
534
|
+
}
|
|
535
|
+
export interface HardForkInitiationActionJSON {
|
|
536
|
+
gov_action_id?: GovernanceActionIdJSON | null;
|
|
537
|
+
protocol_version: ProtocolVersionJSON;
|
|
538
|
+
}
|
|
539
|
+
export interface TreasuryWithdrawalsActionJSON {
|
|
540
|
+
policy_hash?: string | null;
|
|
541
|
+
withdrawals: TreasuryWithdrawalsJSON;
|
|
542
|
+
}
|
|
543
|
+
export interface TreasuryWithdrawalsJSON {
|
|
544
|
+
[k: string]: string;
|
|
545
|
+
}
|
|
546
|
+
export interface NoConfidenceActionJSON {
|
|
547
|
+
gov_action_id?: GovernanceActionIdJSON | null;
|
|
548
|
+
}
|
|
549
|
+
export interface UpdateCommitteeActionJSON {
|
|
550
|
+
committee: CommitteeJSON;
|
|
551
|
+
gov_action_id?: GovernanceActionIdJSON | null;
|
|
552
|
+
members_to_remove: CredTypeJSON[];
|
|
553
|
+
}
|
|
554
|
+
export interface CommitteeJSON {
|
|
555
|
+
members: CommitteeMemberJSON[];
|
|
556
|
+
quorum_threshold: UnitIntervalJSON;
|
|
557
|
+
}
|
|
558
|
+
export interface CommitteeMemberJSON {
|
|
559
|
+
stake_credential: CredTypeJSON;
|
|
560
|
+
term_limit: number;
|
|
561
|
+
}
|
|
562
|
+
export interface NewConstitutionActionJSON {
|
|
563
|
+
constitution: ConstitutionJSON;
|
|
564
|
+
gov_action_id?: GovernanceActionIdJSON | null;
|
|
565
|
+
}
|
|
566
|
+
export interface ConstitutionJSON {
|
|
567
|
+
anchor: AnchorJSON;
|
|
568
|
+
script_hash?: string | null;
|
|
569
|
+
}
|
|
570
|
+
export interface TransactionWitnessSetJSON {
|
|
571
|
+
bootstraps?: BootstrapWitnessJSON[] | null;
|
|
572
|
+
native_scripts?: NativeScriptJSON[] | null;
|
|
573
|
+
plutus_data?: PlutusListJSON | null;
|
|
574
|
+
plutus_scripts?: string[] | null;
|
|
575
|
+
redeemers?: RedeemerJSON[] | null;
|
|
576
|
+
vkeys?: VkeywitnessJSON[] | null;
|
|
577
|
+
}
|
|
578
|
+
export interface BootstrapWitnessJSON {
|
|
579
|
+
attributes: number[];
|
|
580
|
+
chain_code: number[];
|
|
581
|
+
signature: string;
|
|
582
|
+
vkey: VkeyJSON;
|
|
583
|
+
}
|
|
584
|
+
export interface PlutusListJSON {
|
|
585
|
+
definite_encoding?: boolean | null;
|
|
586
|
+
elems: string[];
|
|
587
|
+
}
|
|
588
|
+
export interface RedeemerJSON {
|
|
589
|
+
data: string;
|
|
590
|
+
ex_units: ExUnitsJSON;
|
|
591
|
+
index: string;
|
|
592
|
+
tag: RedeemerTagJSON;
|
|
593
|
+
}
|
|
594
|
+
export interface VkeywitnessJSON {
|
|
595
|
+
signature: string;
|
|
596
|
+
vkey: VkeyJSON;
|
|
597
|
+
}
|
|
598
|
+
export type BlockHashJSON = string;
|
|
599
|
+
export type BootstrapWitnessesJSON = BootstrapWitnessJSON[];
|
|
600
|
+
export type CertificateEnumJSON = {
|
|
601
|
+
StakeRegistration: StakeRegistrationJSON;
|
|
602
|
+
} | {
|
|
603
|
+
StakeDeregistration: StakeDeregistrationJSON;
|
|
604
|
+
} | {
|
|
605
|
+
StakeDelegation: StakeDelegationJSON;
|
|
606
|
+
} | {
|
|
607
|
+
PoolRegistration: PoolRegistrationJSON;
|
|
608
|
+
} | {
|
|
609
|
+
PoolRetirement: PoolRetirementJSON;
|
|
610
|
+
} | {
|
|
611
|
+
GenesisKeyDelegation: GenesisKeyDelegationJSON;
|
|
612
|
+
} | {
|
|
613
|
+
MoveInstantaneousRewardsCert: MoveInstantaneousRewardsCertJSON;
|
|
614
|
+
} | {
|
|
615
|
+
CommitteeHotAuth: CommitteeHotAuthJSON;
|
|
616
|
+
} | {
|
|
617
|
+
CommitteeColdResign: CommitteeColdResignJSON;
|
|
618
|
+
} | {
|
|
619
|
+
DRepDeregistration: DRepDeregistrationJSON;
|
|
620
|
+
} | {
|
|
621
|
+
DRepRegistration: DRepRegistrationJSON;
|
|
622
|
+
} | {
|
|
623
|
+
DRepUpdate: DRepUpdateJSON;
|
|
624
|
+
} | {
|
|
625
|
+
StakeAndVoteDelegation: StakeAndVoteDelegationJSON;
|
|
626
|
+
} | {
|
|
627
|
+
StakeRegistrationAndDelegation: StakeRegistrationAndDelegationJSON;
|
|
628
|
+
} | {
|
|
629
|
+
StakeVoteRegistrationAndDelegation: StakeVoteRegistrationAndDelegationJSON;
|
|
630
|
+
} | {
|
|
631
|
+
VoteDelegation: VoteDelegationJSON;
|
|
632
|
+
} | {
|
|
633
|
+
VoteRegistrationAndDelegation: VoteRegistrationAndDelegationJSON;
|
|
634
|
+
};
|
|
635
|
+
export type CertificatesJSON = CertificateJSON[];
|
|
636
|
+
export type CredentialJSON = CredTypeJSON;
|
|
637
|
+
export type CredentialsJSON = CredTypeJSON[];
|
|
638
|
+
export type DRepEnumJSON = ('AlwaysAbstain' | 'AlwaysNoConfidence') | {
|
|
639
|
+
KeyHash: string;
|
|
640
|
+
} | {
|
|
641
|
+
ScriptHash: string;
|
|
642
|
+
};
|
|
643
|
+
export type DataHashJSON = string;
|
|
644
|
+
export type Ed25519KeyHashJSON = string;
|
|
645
|
+
export type Ed25519KeyHashesJSON = string[];
|
|
646
|
+
export type Ed25519SignatureJSON = string;
|
|
647
|
+
export interface GeneralTransactionMetadataJSON {
|
|
648
|
+
[k: string]: string;
|
|
649
|
+
}
|
|
650
|
+
export type GenesisDelegateHashJSON = string;
|
|
651
|
+
export type GenesisHashJSON = string;
|
|
652
|
+
export type GenesisHashesJSON = string[];
|
|
653
|
+
export type GovernanceActionEnumJSON = {
|
|
654
|
+
ParameterChangeAction: ParameterChangeActionJSON;
|
|
655
|
+
} | {
|
|
656
|
+
HardForkInitiationAction: HardForkInitiationActionJSON;
|
|
657
|
+
} | {
|
|
658
|
+
TreasuryWithdrawalsAction: TreasuryWithdrawalsActionJSON;
|
|
659
|
+
} | {
|
|
660
|
+
NoConfidenceAction: NoConfidenceActionJSON;
|
|
661
|
+
} | {
|
|
662
|
+
UpdateCommitteeAction: UpdateCommitteeActionJSON;
|
|
663
|
+
} | {
|
|
664
|
+
NewConstitutionAction: NewConstitutionActionJSON;
|
|
665
|
+
} | {
|
|
666
|
+
InfoAction: InfoActionJSON;
|
|
667
|
+
};
|
|
668
|
+
export type GovernanceActionIdsJSON = GovernanceActionIdJSON[];
|
|
669
|
+
export interface TransactionJSON {
|
|
670
|
+
auxiliary_data?: AuxiliaryDataJSON | null;
|
|
671
|
+
body: TransactionBodyJSON;
|
|
672
|
+
is_valid: boolean;
|
|
673
|
+
witness_set: TransactionWitnessSetJSON;
|
|
674
|
+
}
|
|
675
|
+
export type TransactionHashJSON = string;
|
|
676
|
+
export type TransactionInputsJSON = TransactionInputJSON[];
|
|
677
|
+
export type TransactionMetadatumJSON = string;
|
|
678
|
+
export interface TransactionUnspentOutputJSON {
|
|
679
|
+
input: TransactionInputJSON;
|
|
680
|
+
output: TransactionOutputJSON;
|
|
681
|
+
}
|
|
682
|
+
export type TransactionUnspentOutputsJSON = TransactionUnspentOutputJSON[];
|
|
683
|
+
export type VRFKeyHashJSON = string;
|
|
684
|
+
export type VRFVKeyJSON = string;
|
|
685
|
+
export interface VersionedBlockJSON {
|
|
686
|
+
block: BlockJSON;
|
|
687
|
+
era_code: number;
|
|
688
|
+
}
|
|
689
|
+
export type VkeywitnessesJSON = VkeywitnessJSON[];
|
|
690
|
+
export type VoterEnumJSON = {
|
|
691
|
+
ConstitutionalCommitteeHotCred: CredTypeJSON;
|
|
692
|
+
} | {
|
|
693
|
+
DRep: CredTypeJSON;
|
|
694
|
+
} | {
|
|
695
|
+
StakingPool: string;
|
|
696
|
+
};
|
|
697
|
+
export type VotersJSON = VoterJSON[];
|
|
698
|
+
export type VotingProceduresJSON = VoterVotesJSON[];
|
|
699
|
+
export type VotingProposalsJSON = VotingProposalJSON[];
|
|
700
|
+
export interface WithdrawalsJSON {
|
|
701
|
+
[k: string]: string;
|
|
702
|
+
}
|
|
703
|
+
//# sourceMappingURL=cardanoSerializationTypes.d.ts.map
|