@emurgo/cardano-serialization-lib-browser-inlined-gc 15.0.1 → 15.0.2-beta.2
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/cardano_serialization_lib.d.ts +232 -232
- package/cardano_serialization_lib.js +1 -1
- package/cardano_serialization_lib.js.flow +301 -301
- package/cardano_serialization_lib_bg.js +396 -397
- package/package.json +1 -1
|
@@ -1,6 +1,85 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
+
* @param {string} json
|
|
5
|
+
* @param {PlutusDatumSchema} schema
|
|
6
|
+
* @returns {PlutusData}
|
|
7
|
+
*/
|
|
8
|
+
export function encode_json_str_to_plutus_datum(json: string, schema: PlutusDatumSchema): PlutusData;
|
|
9
|
+
/**
|
|
10
|
+
* @param {PlutusData} datum
|
|
11
|
+
* @param {PlutusDatumSchema} schema
|
|
12
|
+
* @returns {string}
|
|
13
|
+
*/
|
|
14
|
+
export function decode_plutus_datum_to_json_str(datum: PlutusData, schema: PlutusDatumSchema): string;
|
|
15
|
+
/**
|
|
16
|
+
* @param {Transaction} tx
|
|
17
|
+
* @param {LinearFee} linear_fee
|
|
18
|
+
* @returns {BigNum}
|
|
19
|
+
*/
|
|
20
|
+
export function min_fee(tx: Transaction, linear_fee: LinearFee): BigNum;
|
|
21
|
+
/**
|
|
22
|
+
* @param {ExUnits} ex_units
|
|
23
|
+
* @param {ExUnitPrices} ex_unit_prices
|
|
24
|
+
* @returns {BigNum}
|
|
25
|
+
*/
|
|
26
|
+
export function calculate_ex_units_ceil_cost(ex_units: ExUnits, ex_unit_prices: ExUnitPrices): BigNum;
|
|
27
|
+
/**
|
|
28
|
+
* @param {Transaction} tx
|
|
29
|
+
* @param {ExUnitPrices} ex_unit_prices
|
|
30
|
+
* @returns {BigNum}
|
|
31
|
+
*/
|
|
32
|
+
export function min_script_fee(tx: Transaction, ex_unit_prices: ExUnitPrices): BigNum;
|
|
33
|
+
/**
|
|
34
|
+
* @param {number} total_ref_scripts_size
|
|
35
|
+
* @param {UnitInterval} ref_script_coins_per_byte
|
|
36
|
+
* @returns {BigNum}
|
|
37
|
+
*/
|
|
38
|
+
export function min_ref_script_fee(total_ref_scripts_size: number, ref_script_coins_per_byte: UnitInterval): BigNum;
|
|
39
|
+
/**
|
|
40
|
+
* @param {string} password
|
|
41
|
+
* @param {string} salt
|
|
42
|
+
* @param {string} nonce
|
|
43
|
+
* @param {string} data
|
|
44
|
+
* @returns {string}
|
|
45
|
+
*/
|
|
46
|
+
export function encrypt_with_password(password: string, salt: string, nonce: string, data: string): string;
|
|
47
|
+
/**
|
|
48
|
+
* @param {string} password
|
|
49
|
+
* @param {string} data
|
|
50
|
+
* @returns {string}
|
|
51
|
+
*/
|
|
52
|
+
export function decrypt_with_password(password: string, data: string): string;
|
|
53
|
+
/**
|
|
54
|
+
* @param {Uint8Array} bytes
|
|
55
|
+
* @returns {TransactionMetadatum}
|
|
56
|
+
*/
|
|
57
|
+
export function encode_arbitrary_bytes_as_metadatum(bytes: Uint8Array): TransactionMetadatum;
|
|
58
|
+
/**
|
|
59
|
+
* @param {TransactionMetadatum} metadata
|
|
60
|
+
* @returns {Uint8Array}
|
|
61
|
+
*/
|
|
62
|
+
export function decode_arbitrary_bytes_from_metadatum(metadata: TransactionMetadatum): Uint8Array;
|
|
63
|
+
/**
|
|
64
|
+
* @param {string} json
|
|
65
|
+
* @param {MetadataJsonSchema} schema
|
|
66
|
+
* @returns {TransactionMetadatum}
|
|
67
|
+
*/
|
|
68
|
+
export function encode_json_str_to_metadatum(json: string, schema: MetadataJsonSchema): TransactionMetadatum;
|
|
69
|
+
/**
|
|
70
|
+
* @param {TransactionMetadatum} metadatum
|
|
71
|
+
* @param {MetadataJsonSchema} schema
|
|
72
|
+
* @returns {string}
|
|
73
|
+
*/
|
|
74
|
+
export function decode_metadatum_to_json_str(metadatum: TransactionMetadatum, schema: MetadataJsonSchema): string;
|
|
75
|
+
/**
|
|
76
|
+
* @param {Address} address
|
|
77
|
+
* @param {TransactionUnspentOutputs} utxos
|
|
78
|
+
* @param {TransactionBuilderConfig} config
|
|
79
|
+
* @returns {TransactionBatchList}
|
|
80
|
+
*/
|
|
81
|
+
export function create_send_all(address: Address, utxos: TransactionUnspentOutputs, config: TransactionBuilderConfig): TransactionBatchList;
|
|
82
|
+
/**
|
|
4
83
|
* @param {TransactionHash} tx_body_hash
|
|
5
84
|
* @param {ByronAddress} addr
|
|
6
85
|
* @param {LegacyDaedalusPrivateKey} key
|
|
@@ -86,130 +165,6 @@ export function encode_json_str_to_native_script(json: string, self_xpub: string
|
|
|
86
165
|
*/
|
|
87
166
|
export function has_transaction_set_tag(tx_bytes: Uint8Array): TransactionSetsState;
|
|
88
167
|
/**
|
|
89
|
-
* @param {string} password
|
|
90
|
-
* @param {string} salt
|
|
91
|
-
* @param {string} nonce
|
|
92
|
-
* @param {string} data
|
|
93
|
-
* @returns {string}
|
|
94
|
-
*/
|
|
95
|
-
export function encrypt_with_password(password: string, salt: string, nonce: string, data: string): string;
|
|
96
|
-
/**
|
|
97
|
-
* @param {string} password
|
|
98
|
-
* @param {string} data
|
|
99
|
-
* @returns {string}
|
|
100
|
-
*/
|
|
101
|
-
export function decrypt_with_password(password: string, data: string): string;
|
|
102
|
-
/**
|
|
103
|
-
* @param {Address} address
|
|
104
|
-
* @param {TransactionUnspentOutputs} utxos
|
|
105
|
-
* @param {TransactionBuilderConfig} config
|
|
106
|
-
* @returns {TransactionBatchList}
|
|
107
|
-
*/
|
|
108
|
-
export function create_send_all(address: Address, utxos: TransactionUnspentOutputs, config: TransactionBuilderConfig): TransactionBatchList;
|
|
109
|
-
/**
|
|
110
|
-
* @param {Transaction} tx
|
|
111
|
-
* @param {LinearFee} linear_fee
|
|
112
|
-
* @returns {BigNum}
|
|
113
|
-
*/
|
|
114
|
-
export function min_fee(tx: Transaction, linear_fee: LinearFee): BigNum;
|
|
115
|
-
/**
|
|
116
|
-
* @param {ExUnits} ex_units
|
|
117
|
-
* @param {ExUnitPrices} ex_unit_prices
|
|
118
|
-
* @returns {BigNum}
|
|
119
|
-
*/
|
|
120
|
-
export function calculate_ex_units_ceil_cost(ex_units: ExUnits, ex_unit_prices: ExUnitPrices): BigNum;
|
|
121
|
-
/**
|
|
122
|
-
* @param {Transaction} tx
|
|
123
|
-
* @param {ExUnitPrices} ex_unit_prices
|
|
124
|
-
* @returns {BigNum}
|
|
125
|
-
*/
|
|
126
|
-
export function min_script_fee(tx: Transaction, ex_unit_prices: ExUnitPrices): BigNum;
|
|
127
|
-
/**
|
|
128
|
-
* @param {number} total_ref_scripts_size
|
|
129
|
-
* @param {UnitInterval} ref_script_coins_per_byte
|
|
130
|
-
* @returns {BigNum}
|
|
131
|
-
*/
|
|
132
|
-
export function min_ref_script_fee(total_ref_scripts_size: number, ref_script_coins_per_byte: UnitInterval): BigNum;
|
|
133
|
-
/**
|
|
134
|
-
* @param {Uint8Array} bytes
|
|
135
|
-
* @returns {TransactionMetadatum}
|
|
136
|
-
*/
|
|
137
|
-
export function encode_arbitrary_bytes_as_metadatum(bytes: Uint8Array): TransactionMetadatum;
|
|
138
|
-
/**
|
|
139
|
-
* @param {TransactionMetadatum} metadata
|
|
140
|
-
* @returns {Uint8Array}
|
|
141
|
-
*/
|
|
142
|
-
export function decode_arbitrary_bytes_from_metadatum(metadata: TransactionMetadatum): Uint8Array;
|
|
143
|
-
/**
|
|
144
|
-
* @param {string} json
|
|
145
|
-
* @param {MetadataJsonSchema} schema
|
|
146
|
-
* @returns {TransactionMetadatum}
|
|
147
|
-
*/
|
|
148
|
-
export function encode_json_str_to_metadatum(json: string, schema: MetadataJsonSchema): TransactionMetadatum;
|
|
149
|
-
/**
|
|
150
|
-
* @param {TransactionMetadatum} metadatum
|
|
151
|
-
* @param {MetadataJsonSchema} schema
|
|
152
|
-
* @returns {string}
|
|
153
|
-
*/
|
|
154
|
-
export function decode_metadatum_to_json_str(metadatum: TransactionMetadatum, schema: MetadataJsonSchema): string;
|
|
155
|
-
/**
|
|
156
|
-
* @param {string} json
|
|
157
|
-
* @param {PlutusDatumSchema} schema
|
|
158
|
-
* @returns {PlutusData}
|
|
159
|
-
*/
|
|
160
|
-
export function encode_json_str_to_plutus_datum(json: string, schema: PlutusDatumSchema): PlutusData;
|
|
161
|
-
/**
|
|
162
|
-
* @param {PlutusData} datum
|
|
163
|
-
* @param {PlutusDatumSchema} schema
|
|
164
|
-
* @returns {string}
|
|
165
|
-
*/
|
|
166
|
-
export function decode_plutus_datum_to_json_str(datum: PlutusData, schema: PlutusDatumSchema): string;
|
|
167
|
-
/**
|
|
168
|
-
*/
|
|
169
|
-
export enum CertificateKind {
|
|
170
|
-
StakeRegistration = 0,
|
|
171
|
-
StakeDeregistration = 1,
|
|
172
|
-
StakeDelegation = 2,
|
|
173
|
-
PoolRegistration = 3,
|
|
174
|
-
PoolRetirement = 4,
|
|
175
|
-
GenesisKeyDelegation = 5,
|
|
176
|
-
MoveInstantaneousRewardsCert = 6,
|
|
177
|
-
CommitteeHotAuth = 7,
|
|
178
|
-
CommitteeColdResign = 8,
|
|
179
|
-
DRepDeregistration = 9,
|
|
180
|
-
DRepRegistration = 10,
|
|
181
|
-
DRepUpdate = 11,
|
|
182
|
-
StakeAndVoteDelegation = 12,
|
|
183
|
-
StakeRegistrationAndDelegation = 13,
|
|
184
|
-
StakeVoteRegistrationAndDelegation = 14,
|
|
185
|
-
VoteDelegation = 15,
|
|
186
|
-
VoteRegistrationAndDelegation = 16,
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
*/
|
|
190
|
-
export enum ByronAddressType {
|
|
191
|
-
ATPubKey = 0,
|
|
192
|
-
ATScript = 1,
|
|
193
|
-
ATRedeem = 2,
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
*/
|
|
197
|
-
export enum RedeemerTagKind {
|
|
198
|
-
Spend = 0,
|
|
199
|
-
Mint = 1,
|
|
200
|
-
Cert = 2,
|
|
201
|
-
Reward = 3,
|
|
202
|
-
Vote = 4,
|
|
203
|
-
VotingProposal = 5,
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
*/
|
|
207
|
-
export enum RelayKind {
|
|
208
|
-
SingleHostAddr = 0,
|
|
209
|
-
SingleHostName = 1,
|
|
210
|
-
MultiHostName = 2,
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
168
|
*/
|
|
214
169
|
export enum TransactionMetadatumKind {
|
|
215
170
|
MetadataMap = 0,
|
|
@@ -219,25 +174,24 @@ export enum TransactionMetadatumKind {
|
|
|
219
174
|
Text = 4,
|
|
220
175
|
}
|
|
221
176
|
/**
|
|
222
|
-
* Each new language uses a different namespace for hashing its script
|
|
223
|
-
* This is because you could have a language where the same bytes have different semantics
|
|
224
|
-
* So this avoids scripts in different languages mapping to the same hash
|
|
225
|
-
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
226
177
|
*/
|
|
227
|
-
export enum
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
PlutusScriptV3 = 3,
|
|
178
|
+
export enum MetadataJsonSchema {
|
|
179
|
+
NoConversions = 0,
|
|
180
|
+
BasicConversions = 1,
|
|
181
|
+
DetailedSchema = 2,
|
|
232
182
|
}
|
|
233
183
|
/**
|
|
234
184
|
*/
|
|
235
|
-
export enum
|
|
236
|
-
|
|
185
|
+
export enum CborContainerType {
|
|
186
|
+
Array = 0,
|
|
237
187
|
Map = 1,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
*/
|
|
191
|
+
export enum RelayKind {
|
|
192
|
+
SingleHostAddr = 0,
|
|
193
|
+
SingleHostName = 1,
|
|
194
|
+
MultiHostName = 2,
|
|
241
195
|
}
|
|
242
196
|
/**
|
|
243
197
|
*/
|
|
@@ -257,6 +211,21 @@ export enum MIRKind {
|
|
|
257
211
|
ToStakeCredentials = 1,
|
|
258
212
|
}
|
|
259
213
|
/**
|
|
214
|
+
*/
|
|
215
|
+
export enum ByronAddressType {
|
|
216
|
+
ATPubKey = 0,
|
|
217
|
+
ATScript = 1,
|
|
218
|
+
ATRedeem = 2,
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
*/
|
|
222
|
+
export enum DRepKind {
|
|
223
|
+
KeyHash = 0,
|
|
224
|
+
ScriptHash = 1,
|
|
225
|
+
AlwaysAbstain = 2,
|
|
226
|
+
AlwaysNoConfidence = 3,
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
260
229
|
* JSON <-> PlutusData conversion schemas.
|
|
261
230
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
262
231
|
* https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
|
|
@@ -310,37 +279,57 @@ export enum PlutusDatumSchema {
|
|
|
310
279
|
}
|
|
311
280
|
/**
|
|
312
281
|
*/
|
|
313
|
-
export enum
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
282
|
+
export enum RedeemerTagKind {
|
|
283
|
+
Spend = 0,
|
|
284
|
+
Mint = 1,
|
|
285
|
+
Cert = 2,
|
|
286
|
+
Reward = 3,
|
|
287
|
+
Vote = 4,
|
|
288
|
+
VotingProposal = 5,
|
|
289
|
+
}
|
|
318
290
|
/**
|
|
319
|
-
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
320
291
|
*/
|
|
321
|
-
|
|
292
|
+
export enum VoterKind {
|
|
293
|
+
ConstitutionalCommitteeHotKeyHash = 0,
|
|
294
|
+
ConstitutionalCommitteeHotScriptHash = 1,
|
|
295
|
+
DRepKeyHash = 2,
|
|
296
|
+
DRepScriptHash = 3,
|
|
297
|
+
StakingPoolKeyHash = 4,
|
|
298
|
+
}
|
|
322
299
|
/**
|
|
323
|
-
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
324
300
|
*/
|
|
325
|
-
|
|
301
|
+
export enum BlockEra {
|
|
302
|
+
Byron = 0,
|
|
303
|
+
Shelley = 1,
|
|
304
|
+
Allegra = 2,
|
|
305
|
+
Mary = 3,
|
|
306
|
+
Alonzo = 4,
|
|
307
|
+
Babbage = 5,
|
|
308
|
+
Conway = 6,
|
|
309
|
+
Unknown = 7,
|
|
310
|
+
}
|
|
326
311
|
/**
|
|
327
|
-
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
328
312
|
*/
|
|
329
|
-
|
|
313
|
+
export enum CborSetType {
|
|
314
|
+
Tagged = 0,
|
|
315
|
+
Untagged = 1,
|
|
330
316
|
}
|
|
331
317
|
/**
|
|
332
318
|
*/
|
|
333
|
-
export enum
|
|
334
|
-
|
|
335
|
-
|
|
319
|
+
export enum AddressKind {
|
|
320
|
+
Base = 0,
|
|
321
|
+
Pointer = 1,
|
|
322
|
+
Enterprise = 2,
|
|
323
|
+
Reward = 3,
|
|
324
|
+
Byron = 4,
|
|
325
|
+
Malformed = 5,
|
|
336
326
|
}
|
|
337
327
|
/**
|
|
328
|
+
* Used to choosed the schema for a script JSON string
|
|
338
329
|
*/
|
|
339
|
-
export enum
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
AlwaysAbstain = 2,
|
|
343
|
-
AlwaysNoConfidence = 3,
|
|
330
|
+
export enum ScriptSchema {
|
|
331
|
+
Wallet = 0,
|
|
332
|
+
Node = 1,
|
|
344
333
|
}
|
|
345
334
|
/**
|
|
346
335
|
*/
|
|
@@ -351,29 +340,34 @@ export enum TransactionSetsState {
|
|
|
351
340
|
}
|
|
352
341
|
/**
|
|
353
342
|
*/
|
|
354
|
-
export enum
|
|
355
|
-
|
|
356
|
-
|
|
343
|
+
export enum CredKind {
|
|
344
|
+
Key = 0,
|
|
345
|
+
Script = 1,
|
|
357
346
|
}
|
|
358
347
|
/**
|
|
359
348
|
*/
|
|
360
|
-
export enum
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
Abstain = 2,
|
|
349
|
+
export enum MIRPot {
|
|
350
|
+
Reserves = 0,
|
|
351
|
+
Treasury = 1,
|
|
364
352
|
}
|
|
365
353
|
/**
|
|
366
|
-
*
|
|
354
|
+
* Each new language uses a different namespace for hashing its script
|
|
355
|
+
* This is because you could have a language where the same bytes have different semantics
|
|
356
|
+
* So this avoids scripts in different languages mapping to the same hash
|
|
357
|
+
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
367
358
|
*/
|
|
368
|
-
export enum
|
|
369
|
-
|
|
370
|
-
|
|
359
|
+
export enum ScriptHashNamespace {
|
|
360
|
+
NativeScript = 0,
|
|
361
|
+
PlutusScript = 1,
|
|
362
|
+
PlutusScriptV2 = 2,
|
|
363
|
+
PlutusScriptV3 = 3,
|
|
371
364
|
}
|
|
372
365
|
/**
|
|
373
366
|
*/
|
|
374
|
-
export enum
|
|
375
|
-
|
|
376
|
-
|
|
367
|
+
export enum VoteKind {
|
|
368
|
+
No = 0,
|
|
369
|
+
Yes = 1,
|
|
370
|
+
Abstain = 2,
|
|
377
371
|
}
|
|
378
372
|
/**
|
|
379
373
|
*/
|
|
@@ -387,60 +381,66 @@ export enum NativeScriptKind {
|
|
|
387
381
|
}
|
|
388
382
|
/**
|
|
389
383
|
*/
|
|
390
|
-
export enum
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
Allegra = 2,
|
|
394
|
-
Mary = 3,
|
|
395
|
-
Alonzo = 4,
|
|
396
|
-
Babbage = 5,
|
|
397
|
-
Conway = 6,
|
|
398
|
-
Unknown = 7,
|
|
384
|
+
export enum NetworkIdKind {
|
|
385
|
+
Testnet = 0,
|
|
386
|
+
Mainnet = 1,
|
|
399
387
|
}
|
|
400
388
|
/**
|
|
401
389
|
*/
|
|
402
|
-
export enum
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
390
|
+
export enum CertificateKind {
|
|
391
|
+
StakeRegistration = 0,
|
|
392
|
+
StakeDeregistration = 1,
|
|
393
|
+
StakeDelegation = 2,
|
|
394
|
+
PoolRegistration = 3,
|
|
395
|
+
PoolRetirement = 4,
|
|
396
|
+
GenesisKeyDelegation = 5,
|
|
397
|
+
MoveInstantaneousRewardsCert = 6,
|
|
398
|
+
CommitteeHotAuth = 7,
|
|
399
|
+
CommitteeColdResign = 8,
|
|
400
|
+
DRepDeregistration = 9,
|
|
401
|
+
DRepRegistration = 10,
|
|
402
|
+
DRepUpdate = 11,
|
|
403
|
+
StakeAndVoteDelegation = 12,
|
|
404
|
+
StakeRegistrationAndDelegation = 13,
|
|
405
|
+
StakeVoteRegistrationAndDelegation = 14,
|
|
406
|
+
VoteDelegation = 15,
|
|
407
|
+
VoteRegistrationAndDelegation = 16,
|
|
409
408
|
}
|
|
410
409
|
/**
|
|
411
410
|
*/
|
|
412
|
-
export enum
|
|
413
|
-
Tagged = 0,
|
|
414
|
-
Untagged = 1,
|
|
415
|
-
}
|
|
411
|
+
export enum CoinSelectionStrategyCIP2 {
|
|
416
412
|
/**
|
|
413
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
417
414
|
*/
|
|
418
|
-
|
|
419
|
-
NoConversions = 0,
|
|
420
|
-
BasicConversions = 1,
|
|
421
|
-
DetailedSchema = 2,
|
|
422
|
-
}
|
|
415
|
+
LargestFirst = 0,
|
|
423
416
|
/**
|
|
417
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
424
418
|
*/
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
419
|
+
RandomImprove = 1,
|
|
420
|
+
/**
|
|
421
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
422
|
+
*/
|
|
423
|
+
LargestFirstMultiAsset = 2,
|
|
424
|
+
/**
|
|
425
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
426
|
+
*/
|
|
427
|
+
RandomImproveMultiAsset = 3,
|
|
429
428
|
}
|
|
430
429
|
/**
|
|
431
430
|
*/
|
|
432
|
-
export enum
|
|
433
|
-
|
|
434
|
-
|
|
431
|
+
export enum PlutusDataKind {
|
|
432
|
+
ConstrPlutusData = 0,
|
|
433
|
+
Map = 1,
|
|
434
|
+
List = 2,
|
|
435
|
+
Integer = 3,
|
|
436
|
+
Bytes = 4,
|
|
435
437
|
}
|
|
436
438
|
/**
|
|
437
439
|
*/
|
|
438
|
-
export enum
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
DRepScriptHash = 3,
|
|
443
|
-
StakingPoolKeyHash = 4,
|
|
440
|
+
export enum LanguageKind {
|
|
441
|
+
PlutusV1 = 0,
|
|
442
|
+
PlutusV2 = 1,
|
|
443
|
+
PlutusV3 = 2,
|
|
444
444
|
}
|
|
445
445
|
/**
|
|
446
446
|
*/
|
|
@@ -6210,46 +6210,46 @@ export class PlutusWitnesses {
|
|
|
6210
6210
|
export class Pointer {
|
|
6211
6211
|
free(): void;
|
|
6212
6212
|
/**
|
|
6213
|
-
*
|
|
6214
|
-
* This constructor uses outdated slot number format for the ttl value, tx_index and cert_index.
|
|
6215
|
-
* Use `.new_pointer` instead
|
|
6216
|
-
* @param {number} slot
|
|
6217
|
-
* @param {number} tx_index
|
|
6218
|
-
* @param {number} cert_index
|
|
6219
|
-
* @returns {Pointer}
|
|
6213
|
+
* @returns {BigNum}
|
|
6220
6214
|
*/
|
|
6221
|
-
|
|
6215
|
+
cert_index_bignum(): BigNum;
|
|
6222
6216
|
/**
|
|
6223
|
-
* @
|
|
6224
|
-
* @param {BigNum} tx_index
|
|
6225
|
-
* @param {BigNum} cert_index
|
|
6226
|
-
* @returns {Pointer}
|
|
6217
|
+
* @returns {BigNum}
|
|
6227
6218
|
*/
|
|
6228
|
-
|
|
6219
|
+
tx_index_bignum(): BigNum;
|
|
6229
6220
|
/**
|
|
6230
|
-
* @returns {
|
|
6221
|
+
* @returns {BigNum}
|
|
6231
6222
|
*/
|
|
6232
|
-
|
|
6223
|
+
slot_bignum(): BigNum;
|
|
6233
6224
|
/**
|
|
6234
6225
|
* @returns {number}
|
|
6235
6226
|
*/
|
|
6236
|
-
|
|
6227
|
+
cert_index(): number;
|
|
6237
6228
|
/**
|
|
6238
6229
|
* @returns {number}
|
|
6239
6230
|
*/
|
|
6240
|
-
|
|
6231
|
+
tx_index(): number;
|
|
6241
6232
|
/**
|
|
6242
|
-
* @returns {
|
|
6233
|
+
* @returns {number}
|
|
6243
6234
|
*/
|
|
6244
|
-
|
|
6235
|
+
slot(): number;
|
|
6245
6236
|
/**
|
|
6246
|
-
* @
|
|
6237
|
+
* @param {BigNum} slot
|
|
6238
|
+
* @param {BigNum} tx_index
|
|
6239
|
+
* @param {BigNum} cert_index
|
|
6240
|
+
* @returns {Pointer}
|
|
6247
6241
|
*/
|
|
6248
|
-
|
|
6242
|
+
static new_pointer(slot: BigNum, tx_index: BigNum, cert_index: BigNum): Pointer;
|
|
6249
6243
|
/**
|
|
6250
|
-
*
|
|
6244
|
+
* !!! DEPRECATED !!!
|
|
6245
|
+
* This constructor uses outdated slot number format for the ttl value, tx_index and cert_index.
|
|
6246
|
+
* Use `.new_pointer` instead
|
|
6247
|
+
* @param {number} slot
|
|
6248
|
+
* @param {number} tx_index
|
|
6249
|
+
* @param {number} cert_index
|
|
6250
|
+
* @returns {Pointer}
|
|
6251
6251
|
*/
|
|
6252
|
-
|
|
6252
|
+
static new(slot: number, tx_index: number, cert_index: number): Pointer;
|
|
6253
6253
|
}
|
|
6254
6254
|
/**
|
|
6255
6255
|
*/
|