@cardananium/cquisitor-lib 0.1.0-beta.30 → 0.1.0-beta.32
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.
|
@@ -311,6 +311,71 @@ export function check_block_or_tx_signatures(hex_str) {
|
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
|
|
314
|
+
/**
|
|
315
|
+
* @param {string} tx_hex
|
|
316
|
+
* @returns {string}
|
|
317
|
+
*/
|
|
318
|
+
export function get_necessary_data_list_js(tx_hex) {
|
|
319
|
+
let deferred3_0;
|
|
320
|
+
let deferred3_1;
|
|
321
|
+
try {
|
|
322
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
323
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
324
|
+
const len0 = WASM_VECTOR_LEN;
|
|
325
|
+
wasm.get_necessary_data_list_js(retptr, ptr0, len0);
|
|
326
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
327
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
328
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
329
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
330
|
+
var ptr2 = r0;
|
|
331
|
+
var len2 = r1;
|
|
332
|
+
if (r3) {
|
|
333
|
+
ptr2 = 0; len2 = 0;
|
|
334
|
+
throw takeObject(r2);
|
|
335
|
+
}
|
|
336
|
+
deferred3_0 = ptr2;
|
|
337
|
+
deferred3_1 = len2;
|
|
338
|
+
return getStringFromWasm0(ptr2, len2);
|
|
339
|
+
} finally {
|
|
340
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
341
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* @param {string} tx_hex
|
|
347
|
+
* @param {string} validation_context
|
|
348
|
+
* @returns {string}
|
|
349
|
+
*/
|
|
350
|
+
export function validate_transaction_js(tx_hex, validation_context) {
|
|
351
|
+
let deferred4_0;
|
|
352
|
+
let deferred4_1;
|
|
353
|
+
try {
|
|
354
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
355
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
356
|
+
const len0 = WASM_VECTOR_LEN;
|
|
357
|
+
const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
358
|
+
const len1 = WASM_VECTOR_LEN;
|
|
359
|
+
wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
|
|
360
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
361
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
362
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
363
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
364
|
+
var ptr3 = r0;
|
|
365
|
+
var len3 = r1;
|
|
366
|
+
if (r3) {
|
|
367
|
+
ptr3 = 0; len3 = 0;
|
|
368
|
+
throw takeObject(r2);
|
|
369
|
+
}
|
|
370
|
+
deferred4_0 = ptr3;
|
|
371
|
+
deferred4_1 = len3;
|
|
372
|
+
return getStringFromWasm0(ptr3, len3);
|
|
373
|
+
} finally {
|
|
374
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
375
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
314
379
|
/**
|
|
315
380
|
* @param {string} hex
|
|
316
381
|
* @returns {any}
|
|
@@ -467,71 +532,6 @@ export function get_ref_script_bytes(tx_hex, output_index) {
|
|
|
467
532
|
}
|
|
468
533
|
}
|
|
469
534
|
|
|
470
|
-
/**
|
|
471
|
-
* @param {string} tx_hex
|
|
472
|
-
* @returns {string}
|
|
473
|
-
*/
|
|
474
|
-
export function get_necessary_data_list_js(tx_hex) {
|
|
475
|
-
let deferred3_0;
|
|
476
|
-
let deferred3_1;
|
|
477
|
-
try {
|
|
478
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
479
|
-
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
480
|
-
const len0 = WASM_VECTOR_LEN;
|
|
481
|
-
wasm.get_necessary_data_list_js(retptr, ptr0, len0);
|
|
482
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
483
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
484
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
485
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
486
|
-
var ptr2 = r0;
|
|
487
|
-
var len2 = r1;
|
|
488
|
-
if (r3) {
|
|
489
|
-
ptr2 = 0; len2 = 0;
|
|
490
|
-
throw takeObject(r2);
|
|
491
|
-
}
|
|
492
|
-
deferred3_0 = ptr2;
|
|
493
|
-
deferred3_1 = len2;
|
|
494
|
-
return getStringFromWasm0(ptr2, len2);
|
|
495
|
-
} finally {
|
|
496
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
497
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* @param {string} tx_hex
|
|
503
|
-
* @param {string} validation_context
|
|
504
|
-
* @returns {string}
|
|
505
|
-
*/
|
|
506
|
-
export function validate_transaction_js(tx_hex, validation_context) {
|
|
507
|
-
let deferred4_0;
|
|
508
|
-
let deferred4_1;
|
|
509
|
-
try {
|
|
510
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
511
|
-
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
512
|
-
const len0 = WASM_VECTOR_LEN;
|
|
513
|
-
const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
514
|
-
const len1 = WASM_VECTOR_LEN;
|
|
515
|
-
wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
|
|
516
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
517
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
518
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
519
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
520
|
-
var ptr3 = r0;
|
|
521
|
-
var len3 = r1;
|
|
522
|
-
if (r3) {
|
|
523
|
-
ptr3 = 0; len3 = 0;
|
|
524
|
-
throw takeObject(r2);
|
|
525
|
-
}
|
|
526
|
-
deferred4_0 = ptr3;
|
|
527
|
-
deferred4_1 = len3;
|
|
528
|
-
return getStringFromWasm0(ptr3, len3);
|
|
529
|
-
} finally {
|
|
530
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
531
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
|
|
535
535
|
function getArrayU8FromWasm0(ptr, len) {
|
|
536
536
|
ptr = ptr >>> 0;
|
|
537
537
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -1118,10 +1118,54 @@ function handleError(f, args) {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
/**
|
|
1120
1120
|
*/
|
|
1121
|
+
export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1122
|
+
/**
|
|
1123
|
+
*/
|
|
1124
|
+
export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1125
|
+
/**
|
|
1126
|
+
* Each new language uses a different namespace for hashing its script
|
|
1127
|
+
* This is because you could have a language where the same bytes have different semantics
|
|
1128
|
+
* So this avoids scripts in different languages mapping to the same hash
|
|
1129
|
+
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1130
|
+
*/
|
|
1131
|
+
export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1132
|
+
/**
|
|
1133
|
+
*/
|
|
1134
|
+
export const PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
|
|
1135
|
+
/**
|
|
1136
|
+
*/
|
|
1137
|
+
export const AddressKind = Object.freeze({ Base:0,"0":"Base",Pointer:1,"1":"Pointer",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron",Malformed:5,"5":"Malformed", });
|
|
1138
|
+
/**
|
|
1139
|
+
*/
|
|
1140
|
+
export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1141
|
+
/**
|
|
1142
|
+
*/
|
|
1143
|
+
export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1144
|
+
/**
|
|
1145
|
+
* Used to choosed the schema for a script JSON string
|
|
1146
|
+
*/
|
|
1147
|
+
export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1148
|
+
/**
|
|
1149
|
+
*/
|
|
1150
|
+
export const BlockEra = Object.freeze({ Byron:0,"0":"Byron",Shelley:1,"1":"Shelley",Allegra:2,"2":"Allegra",Mary:3,"3":"Mary",Alonzo:4,"4":"Alonzo",Babbage:5,"5":"Babbage",Conway:6,"6":"Conway",Unknown:7,"7":"Unknown", });
|
|
1151
|
+
/**
|
|
1152
|
+
*/
|
|
1121
1153
|
export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1122
1154
|
/**
|
|
1123
1155
|
*/
|
|
1124
|
-
export const
|
|
1156
|
+
export const TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"MetadataMap",MetadataList:1,"1":"MetadataList",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
|
|
1157
|
+
/**
|
|
1158
|
+
*/
|
|
1159
|
+
export const CertificateKind = Object.freeze({ StakeRegistration:0,"0":"StakeRegistration",StakeDeregistration:1,"1":"StakeDeregistration",StakeDelegation:2,"2":"StakeDelegation",PoolRegistration:3,"3":"PoolRegistration",PoolRetirement:4,"4":"PoolRetirement",GenesisKeyDelegation:5,"5":"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,"6":"MoveInstantaneousRewardsCert",CommitteeHotAuth:7,"7":"CommitteeHotAuth",CommitteeColdResign:8,"8":"CommitteeColdResign",DRepDeregistration:9,"9":"DRepDeregistration",DRepRegistration:10,"10":"DRepRegistration",DRepUpdate:11,"11":"DRepUpdate",StakeAndVoteDelegation:12,"12":"StakeAndVoteDelegation",StakeRegistrationAndDelegation:13,"13":"StakeRegistrationAndDelegation",StakeVoteRegistrationAndDelegation:14,"14":"StakeVoteRegistrationAndDelegation",VoteDelegation:15,"15":"VoteDelegation",VoteRegistrationAndDelegation:16,"16":"VoteRegistrationAndDelegation", });
|
|
1160
|
+
/**
|
|
1161
|
+
*/
|
|
1162
|
+
export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1163
|
+
/**
|
|
1164
|
+
*/
|
|
1165
|
+
export const NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",TimelockStart:4,"4":"TimelockStart",TimelockExpiry:5,"5":"TimelockExpiry", });
|
|
1166
|
+
/**
|
|
1167
|
+
*/
|
|
1168
|
+
export const VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
|
|
1125
1169
|
/**
|
|
1126
1170
|
* JSON <-> PlutusData conversion schemas.
|
|
1127
1171
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -1174,64 +1218,29 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1174
1218
|
*/
|
|
1175
1219
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1176
1220
|
/**
|
|
1177
|
-
* Used to choosed the schema for a script JSON string
|
|
1178
|
-
*/
|
|
1179
|
-
export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1180
|
-
/**
|
|
1181
1221
|
*/
|
|
1182
|
-
export const
|
|
1183
|
-
/**
|
|
1184
|
-
* Each new language uses a different namespace for hashing its script
|
|
1185
|
-
* This is because you could have a language where the same bytes have different semantics
|
|
1186
|
-
* So this avoids scripts in different languages mapping to the same hash
|
|
1187
|
-
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1188
|
-
*/
|
|
1189
|
-
export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1222
|
+
export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1190
1223
|
/**
|
|
1191
1224
|
*/
|
|
1192
1225
|
export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1193
1226
|
/**
|
|
1194
1227
|
*/
|
|
1195
|
-
export const
|
|
1196
|
-
/**
|
|
1197
|
-
*/
|
|
1198
|
-
export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1199
|
-
/**
|
|
1200
|
-
*/
|
|
1201
|
-
export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1228
|
+
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1202
1229
|
/**
|
|
1203
1230
|
*/
|
|
1204
|
-
export const
|
|
1231
|
+
export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1205
1232
|
/**
|
|
1206
1233
|
*/
|
|
1207
1234
|
export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1208
1235
|
/**
|
|
1209
1236
|
*/
|
|
1210
|
-
export const
|
|
1211
|
-
/**
|
|
1212
|
-
*/
|
|
1213
|
-
export const AddressKind = Object.freeze({ Base:0,"0":"Base",Pointer:1,"1":"Pointer",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron",Malformed:5,"5":"Malformed", });
|
|
1214
|
-
/**
|
|
1215
|
-
*/
|
|
1216
|
-
export const VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
|
|
1217
|
-
/**
|
|
1218
|
-
*/
|
|
1219
|
-
export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1220
|
-
/**
|
|
1221
|
-
*/
|
|
1222
|
-
export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1223
|
-
/**
|
|
1224
|
-
*/
|
|
1225
|
-
export const TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"MetadataMap",MetadataList:1,"1":"MetadataList",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
|
|
1226
|
-
/**
|
|
1227
|
-
*/
|
|
1228
|
-
export const NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",TimelockStart:4,"4":"TimelockStart",TimelockExpiry:5,"5":"TimelockExpiry", });
|
|
1237
|
+
export const RedeemerTagKind = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":"Mint",Cert:2,"2":"Cert",Reward:3,"3":"Reward",Vote:4,"4":"Vote",VotingProposal:5,"5":"VotingProposal", });
|
|
1229
1238
|
/**
|
|
1230
1239
|
*/
|
|
1231
|
-
export const
|
|
1240
|
+
export const GovernanceActionKind = Object.freeze({ ParameterChangeAction:0,"0":"ParameterChangeAction",HardForkInitiationAction:1,"1":"HardForkInitiationAction",TreasuryWithdrawalsAction:2,"2":"TreasuryWithdrawalsAction",NoConfidenceAction:3,"3":"NoConfidenceAction",UpdateCommitteeAction:4,"4":"UpdateCommitteeAction",NewConstitutionAction:5,"5":"NewConstitutionAction",InfoAction:6,"6":"InfoAction", });
|
|
1232
1241
|
/**
|
|
1233
1242
|
*/
|
|
1234
|
-
export const
|
|
1243
|
+
export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1235
1244
|
/**
|
|
1236
1245
|
*/
|
|
1237
1246
|
export const CoinSelectionStrategyCIP2 = Object.freeze({
|
|
@@ -1253,16 +1262,7 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
|
1253
1262
|
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1254
1263
|
/**
|
|
1255
1264
|
*/
|
|
1256
|
-
export const
|
|
1257
|
-
/**
|
|
1258
|
-
*/
|
|
1259
|
-
export const GovernanceActionKind = Object.freeze({ ParameterChangeAction:0,"0":"ParameterChangeAction",HardForkInitiationAction:1,"1":"HardForkInitiationAction",TreasuryWithdrawalsAction:2,"2":"TreasuryWithdrawalsAction",NoConfidenceAction:3,"3":"NoConfidenceAction",UpdateCommitteeAction:4,"4":"UpdateCommitteeAction",NewConstitutionAction:5,"5":"NewConstitutionAction",InfoAction:6,"6":"InfoAction", });
|
|
1260
|
-
/**
|
|
1261
|
-
*/
|
|
1262
|
-
export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1263
|
-
/**
|
|
1264
|
-
*/
|
|
1265
|
-
export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1265
|
+
export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1266
1266
|
|
|
1267
1267
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1268
1268
|
? { register: () => {}, unregister: () => {} }
|
|
Binary file
|
|
@@ -5,14 +5,14 @@ export function get_decodable_types(a: number): void;
|
|
|
5
5
|
export function decode_specific_type(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
6
6
|
export function get_possible_types_for_input(a: number, b: number, c: number): void;
|
|
7
7
|
export function check_block_or_tx_signatures(a: number, b: number, c: number): void;
|
|
8
|
+
export function get_necessary_data_list_js(a: number, b: number, c: number): void;
|
|
9
|
+
export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
|
|
8
10
|
export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
|
|
9
11
|
export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
|
|
10
12
|
export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
|
|
11
13
|
export function execute_tx_scripts(a: number, b: number, c: number, d: number, e: number): void;
|
|
12
14
|
export function cbor_to_json(a: number, b: number, c: number): void;
|
|
13
15
|
export function get_ref_script_bytes(a: number, b: number, c: number, d: number): void;
|
|
14
|
-
export function get_necessary_data_list_js(a: number, b: number, c: number): void;
|
|
15
|
-
export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
|
|
16
16
|
export function __wbg_noconfidenceaction_free(a: number): void;
|
|
17
17
|
export function noconfidenceaction_to_bytes(a: number, b: number): void;
|
|
18
18
|
export function noconfidenceaction_from_bytes(a: number, b: number, c: number): void;
|
package/node/cquisitor_lib.js
CHANGED
|
@@ -306,6 +306,71 @@ module.exports.check_block_or_tx_signatures = function(hex_str) {
|
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
|
|
309
|
+
/**
|
|
310
|
+
* @param {string} tx_hex
|
|
311
|
+
* @returns {string}
|
|
312
|
+
*/
|
|
313
|
+
module.exports.get_necessary_data_list_js = function(tx_hex) {
|
|
314
|
+
let deferred3_0;
|
|
315
|
+
let deferred3_1;
|
|
316
|
+
try {
|
|
317
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
318
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
319
|
+
const len0 = WASM_VECTOR_LEN;
|
|
320
|
+
wasm.get_necessary_data_list_js(retptr, ptr0, len0);
|
|
321
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
322
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
323
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
324
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
325
|
+
var ptr2 = r0;
|
|
326
|
+
var len2 = r1;
|
|
327
|
+
if (r3) {
|
|
328
|
+
ptr2 = 0; len2 = 0;
|
|
329
|
+
throw takeObject(r2);
|
|
330
|
+
}
|
|
331
|
+
deferred3_0 = ptr2;
|
|
332
|
+
deferred3_1 = len2;
|
|
333
|
+
return getStringFromWasm0(ptr2, len2);
|
|
334
|
+
} finally {
|
|
335
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
336
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* @param {string} tx_hex
|
|
342
|
+
* @param {string} validation_context
|
|
343
|
+
* @returns {string}
|
|
344
|
+
*/
|
|
345
|
+
module.exports.validate_transaction_js = function(tx_hex, validation_context) {
|
|
346
|
+
let deferred4_0;
|
|
347
|
+
let deferred4_1;
|
|
348
|
+
try {
|
|
349
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
350
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
351
|
+
const len0 = WASM_VECTOR_LEN;
|
|
352
|
+
const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
353
|
+
const len1 = WASM_VECTOR_LEN;
|
|
354
|
+
wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
|
|
355
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
356
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
357
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
358
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
359
|
+
var ptr3 = r0;
|
|
360
|
+
var len3 = r1;
|
|
361
|
+
if (r3) {
|
|
362
|
+
ptr3 = 0; len3 = 0;
|
|
363
|
+
throw takeObject(r2);
|
|
364
|
+
}
|
|
365
|
+
deferred4_0 = ptr3;
|
|
366
|
+
deferred4_1 = len3;
|
|
367
|
+
return getStringFromWasm0(ptr3, len3);
|
|
368
|
+
} finally {
|
|
369
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
370
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
|
|
309
374
|
/**
|
|
310
375
|
* @param {string} hex
|
|
311
376
|
* @returns {any}
|
|
@@ -462,71 +527,6 @@ module.exports.get_ref_script_bytes = function(tx_hex, output_index) {
|
|
|
462
527
|
}
|
|
463
528
|
};
|
|
464
529
|
|
|
465
|
-
/**
|
|
466
|
-
* @param {string} tx_hex
|
|
467
|
-
* @returns {string}
|
|
468
|
-
*/
|
|
469
|
-
module.exports.get_necessary_data_list_js = function(tx_hex) {
|
|
470
|
-
let deferred3_0;
|
|
471
|
-
let deferred3_1;
|
|
472
|
-
try {
|
|
473
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
474
|
-
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
475
|
-
const len0 = WASM_VECTOR_LEN;
|
|
476
|
-
wasm.get_necessary_data_list_js(retptr, ptr0, len0);
|
|
477
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
478
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
479
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
480
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
481
|
-
var ptr2 = r0;
|
|
482
|
-
var len2 = r1;
|
|
483
|
-
if (r3) {
|
|
484
|
-
ptr2 = 0; len2 = 0;
|
|
485
|
-
throw takeObject(r2);
|
|
486
|
-
}
|
|
487
|
-
deferred3_0 = ptr2;
|
|
488
|
-
deferred3_1 = len2;
|
|
489
|
-
return getStringFromWasm0(ptr2, len2);
|
|
490
|
-
} finally {
|
|
491
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
492
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
493
|
-
}
|
|
494
|
-
};
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* @param {string} tx_hex
|
|
498
|
-
* @param {string} validation_context
|
|
499
|
-
* @returns {string}
|
|
500
|
-
*/
|
|
501
|
-
module.exports.validate_transaction_js = function(tx_hex, validation_context) {
|
|
502
|
-
let deferred4_0;
|
|
503
|
-
let deferred4_1;
|
|
504
|
-
try {
|
|
505
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
506
|
-
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
507
|
-
const len0 = WASM_VECTOR_LEN;
|
|
508
|
-
const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
509
|
-
const len1 = WASM_VECTOR_LEN;
|
|
510
|
-
wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
|
|
511
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
512
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
513
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
514
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
515
|
-
var ptr3 = r0;
|
|
516
|
-
var len3 = r1;
|
|
517
|
-
if (r3) {
|
|
518
|
-
ptr3 = 0; len3 = 0;
|
|
519
|
-
throw takeObject(r2);
|
|
520
|
-
}
|
|
521
|
-
deferred4_0 = ptr3;
|
|
522
|
-
deferred4_1 = len3;
|
|
523
|
-
return getStringFromWasm0(ptr3, len3);
|
|
524
|
-
} finally {
|
|
525
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
526
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
527
|
-
}
|
|
528
|
-
};
|
|
529
|
-
|
|
530
530
|
function getArrayU8FromWasm0(ptr, len) {
|
|
531
531
|
ptr = ptr >>> 0;
|
|
532
532
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -1113,54 +1113,25 @@ function handleError(f, args) {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
/**
|
|
1115
1115
|
*/
|
|
1116
|
-
module.exports.
|
|
1117
|
-
/**
|
|
1118
|
-
*/
|
|
1119
|
-
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1120
|
-
/**
|
|
1121
|
-
*/
|
|
1122
|
-
module.exports.NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",TimelockStart:4,"4":"TimelockStart",TimelockExpiry:5,"5":"TimelockExpiry", });
|
|
1123
|
-
/**
|
|
1124
|
-
*/
|
|
1125
|
-
module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1126
|
-
/**
|
|
1127
|
-
*/
|
|
1128
|
-
module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1129
|
-
/**
|
|
1130
|
-
* Used to choosed the schema for a script JSON string
|
|
1131
|
-
*/
|
|
1132
|
-
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1133
|
-
/**
|
|
1134
|
-
*/
|
|
1135
|
-
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1136
|
-
/**
|
|
1137
|
-
*/
|
|
1138
|
-
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1139
|
-
/**
|
|
1140
|
-
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1141
|
-
*/
|
|
1142
|
-
LargestFirst:0,"0":"LargestFirst",
|
|
1116
|
+
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1143
1117
|
/**
|
|
1144
|
-
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1145
1118
|
*/
|
|
1146
|
-
|
|
1119
|
+
module.exports.BlockEra = Object.freeze({ Byron:0,"0":"Byron",Shelley:1,"1":"Shelley",Allegra:2,"2":"Allegra",Mary:3,"3":"Mary",Alonzo:4,"4":"Alonzo",Babbage:5,"5":"Babbage",Conway:6,"6":"Conway",Unknown:7,"7":"Unknown", });
|
|
1147
1120
|
/**
|
|
1148
|
-
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1149
1121
|
*/
|
|
1150
|
-
|
|
1122
|
+
module.exports.AddressKind = Object.freeze({ Base:0,"0":"Base",Pointer:1,"1":"Pointer",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron",Malformed:5,"5":"Malformed", });
|
|
1151
1123
|
/**
|
|
1152
|
-
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1153
1124
|
*/
|
|
1154
|
-
|
|
1125
|
+
module.exports.TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"MetadataMap",MetadataList:1,"1":"MetadataList",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
|
|
1155
1126
|
/**
|
|
1156
1127
|
*/
|
|
1157
|
-
module.exports.
|
|
1128
|
+
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1158
1129
|
/**
|
|
1159
1130
|
*/
|
|
1160
1131
|
module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1161
1132
|
/**
|
|
1162
1133
|
*/
|
|
1163
|
-
module.exports.
|
|
1134
|
+
module.exports.VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
|
|
1164
1135
|
/**
|
|
1165
1136
|
* Each new language uses a different namespace for hashing its script
|
|
1166
1137
|
* This is because you could have a language where the same bytes have different semantics
|
|
@@ -1170,40 +1141,7 @@ module.exports.RedeemerTagKind = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":
|
|
|
1170
1141
|
module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1171
1142
|
/**
|
|
1172
1143
|
*/
|
|
1173
|
-
module.exports.
|
|
1174
|
-
/**
|
|
1175
|
-
*/
|
|
1176
|
-
module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1177
|
-
/**
|
|
1178
|
-
*/
|
|
1179
|
-
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1180
|
-
/**
|
|
1181
|
-
*/
|
|
1182
|
-
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1183
|
-
/**
|
|
1184
|
-
*/
|
|
1185
|
-
module.exports.PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
|
|
1186
|
-
/**
|
|
1187
|
-
*/
|
|
1188
|
-
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1189
|
-
/**
|
|
1190
|
-
*/
|
|
1191
|
-
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1192
|
-
/**
|
|
1193
|
-
*/
|
|
1194
|
-
module.exports.TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"MetadataMap",MetadataList:1,"1":"MetadataList",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
|
|
1195
|
-
/**
|
|
1196
|
-
*/
|
|
1197
|
-
module.exports.AddressKind = Object.freeze({ Base:0,"0":"Base",Pointer:1,"1":"Pointer",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron",Malformed:5,"5":"Malformed", });
|
|
1198
|
-
/**
|
|
1199
|
-
*/
|
|
1200
|
-
module.exports.VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
|
|
1201
|
-
/**
|
|
1202
|
-
*/
|
|
1203
|
-
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1204
|
-
/**
|
|
1205
|
-
*/
|
|
1206
|
-
module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1144
|
+
module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1207
1145
|
/**
|
|
1208
1146
|
* JSON <-> PlutusData conversion schemas.
|
|
1209
1147
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -1257,7 +1195,69 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1257
1195
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1258
1196
|
/**
|
|
1259
1197
|
*/
|
|
1198
|
+
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1199
|
+
/**
|
|
1200
|
+
*/
|
|
1201
|
+
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1202
|
+
/**
|
|
1203
|
+
*/
|
|
1204
|
+
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1205
|
+
/**
|
|
1206
|
+
*/
|
|
1207
|
+
module.exports.GovernanceActionKind = Object.freeze({ ParameterChangeAction:0,"0":"ParameterChangeAction",HardForkInitiationAction:1,"1":"HardForkInitiationAction",TreasuryWithdrawalsAction:2,"2":"TreasuryWithdrawalsAction",NoConfidenceAction:3,"3":"NoConfidenceAction",UpdateCommitteeAction:4,"4":"UpdateCommitteeAction",NewConstitutionAction:5,"5":"NewConstitutionAction",InfoAction:6,"6":"InfoAction", });
|
|
1208
|
+
/**
|
|
1209
|
+
*/
|
|
1210
|
+
module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1211
|
+
/**
|
|
1212
|
+
*/
|
|
1213
|
+
module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1214
|
+
/**
|
|
1215
|
+
*/
|
|
1216
|
+
module.exports.RedeemerTagKind = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":"Mint",Cert:2,"2":"Cert",Reward:3,"3":"Reward",Vote:4,"4":"Vote",VotingProposal:5,"5":"VotingProposal", });
|
|
1217
|
+
/**
|
|
1218
|
+
*/
|
|
1219
|
+
module.exports.PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
|
|
1220
|
+
/**
|
|
1221
|
+
*/
|
|
1222
|
+
module.exports.NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",TimelockStart:4,"4":"TimelockStart",TimelockExpiry:5,"5":"TimelockExpiry", });
|
|
1223
|
+
/**
|
|
1224
|
+
*/
|
|
1260
1225
|
module.exports.CertificateKind = Object.freeze({ StakeRegistration:0,"0":"StakeRegistration",StakeDeregistration:1,"1":"StakeDeregistration",StakeDelegation:2,"2":"StakeDelegation",PoolRegistration:3,"3":"PoolRegistration",PoolRetirement:4,"4":"PoolRetirement",GenesisKeyDelegation:5,"5":"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,"6":"MoveInstantaneousRewardsCert",CommitteeHotAuth:7,"7":"CommitteeHotAuth",CommitteeColdResign:8,"8":"CommitteeColdResign",DRepDeregistration:9,"9":"DRepDeregistration",DRepRegistration:10,"10":"DRepRegistration",DRepUpdate:11,"11":"DRepUpdate",StakeAndVoteDelegation:12,"12":"StakeAndVoteDelegation",StakeRegistrationAndDelegation:13,"13":"StakeRegistrationAndDelegation",StakeVoteRegistrationAndDelegation:14,"14":"StakeVoteRegistrationAndDelegation",VoteDelegation:15,"15":"VoteDelegation",VoteRegistrationAndDelegation:16,"16":"VoteRegistrationAndDelegation", });
|
|
1226
|
+
/**
|
|
1227
|
+
*/
|
|
1228
|
+
module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1229
|
+
/**
|
|
1230
|
+
*/
|
|
1231
|
+
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1232
|
+
/**
|
|
1233
|
+
* Used to choosed the schema for a script JSON string
|
|
1234
|
+
*/
|
|
1235
|
+
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1236
|
+
/**
|
|
1237
|
+
*/
|
|
1238
|
+
module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1239
|
+
/**
|
|
1240
|
+
*/
|
|
1241
|
+
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1242
|
+
/**
|
|
1243
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1244
|
+
*/
|
|
1245
|
+
LargestFirst:0,"0":"LargestFirst",
|
|
1246
|
+
/**
|
|
1247
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1248
|
+
*/
|
|
1249
|
+
RandomImprove:1,"1":"RandomImprove",
|
|
1250
|
+
/**
|
|
1251
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1252
|
+
*/
|
|
1253
|
+
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1254
|
+
/**
|
|
1255
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1256
|
+
*/
|
|
1257
|
+
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1258
|
+
/**
|
|
1259
|
+
*/
|
|
1260
|
+
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1261
1261
|
|
|
1262
1262
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1263
1263
|
? { register: () => {}, unregister: () => {} }
|
|
Binary file
|
|
@@ -5,14 +5,14 @@ export function get_decodable_types(a: number): void;
|
|
|
5
5
|
export function decode_specific_type(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
6
6
|
export function get_possible_types_for_input(a: number, b: number, c: number): void;
|
|
7
7
|
export function check_block_or_tx_signatures(a: number, b: number, c: number): void;
|
|
8
|
+
export function get_necessary_data_list_js(a: number, b: number, c: number): void;
|
|
9
|
+
export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
|
|
8
10
|
export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
|
|
9
11
|
export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
|
|
10
12
|
export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
|
|
11
13
|
export function execute_tx_scripts(a: number, b: number, c: number, d: number, e: number): void;
|
|
12
14
|
export function cbor_to_json(a: number, b: number, c: number): void;
|
|
13
15
|
export function get_ref_script_bytes(a: number, b: number, c: number, d: number): void;
|
|
14
|
-
export function get_necessary_data_list_js(a: number, b: number, c: number): void;
|
|
15
|
-
export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
|
|
16
16
|
export function __wbg_noconfidenceaction_free(a: number): void;
|
|
17
17
|
export function noconfidenceaction_to_bytes(a: number, b: number): void;
|
|
18
18
|
export function noconfidenceaction_from_bytes(a: number, b: number, c: number): void;
|
package/package.json
CHANGED