@cardananium/cquisitor-lib 0.1.0-beta.26 → 0.1.0-beta.27
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.
|
@@ -290,15 +290,15 @@ export function get_possible_types_for_input(input) {
|
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
|
-
* @param {string}
|
|
293
|
+
* @param {string} hex_str
|
|
294
294
|
* @returns {any}
|
|
295
295
|
*/
|
|
296
|
-
export function
|
|
296
|
+
export function check_block_or_tx_signatures(hex_str) {
|
|
297
297
|
try {
|
|
298
298
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
299
|
-
const ptr0 = passStringToWasm0(
|
|
299
|
+
const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
300
300
|
const len0 = WASM_VECTOR_LEN;
|
|
301
|
-
wasm.
|
|
301
|
+
wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
|
|
302
302
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
303
303
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
304
304
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -312,24 +312,67 @@ export function cbor_to_json(cbor_hex) {
|
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
/**
|
|
315
|
-
* @param {string}
|
|
316
|
-
* @returns {
|
|
315
|
+
* @param {string} tx_hex
|
|
316
|
+
* @returns {string}
|
|
317
317
|
*/
|
|
318
|
-
export function
|
|
318
|
+
export function get_necessary_data_list_js(tx_hex) {
|
|
319
|
+
let deferred3_0;
|
|
320
|
+
let deferred3_1;
|
|
319
321
|
try {
|
|
320
322
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
321
|
-
const ptr0 = passStringToWasm0(
|
|
323
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
322
324
|
const len0 = WASM_VECTOR_LEN;
|
|
323
|
-
wasm.
|
|
325
|
+
wasm.get_necessary_data_list_js(retptr, ptr0, len0);
|
|
324
326
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
325
327
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
326
328
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
327
|
-
|
|
328
|
-
|
|
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);
|
|
329
335
|
}
|
|
330
|
-
|
|
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);
|
|
331
373
|
} finally {
|
|
332
374
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
375
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
333
376
|
}
|
|
334
377
|
}
|
|
335
378
|
|
|
@@ -436,67 +479,24 @@ export function execute_tx_scripts(tx_hex, utxo_json, cost_models_json) {
|
|
|
436
479
|
}
|
|
437
480
|
|
|
438
481
|
/**
|
|
439
|
-
* @param {string}
|
|
440
|
-
* @returns {
|
|
441
|
-
*/
|
|
442
|
-
export function get_necessary_data_list_js(tx_hex) {
|
|
443
|
-
let deferred3_0;
|
|
444
|
-
let deferred3_1;
|
|
445
|
-
try {
|
|
446
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
447
|
-
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
448
|
-
const len0 = WASM_VECTOR_LEN;
|
|
449
|
-
wasm.get_necessary_data_list_js(retptr, ptr0, len0);
|
|
450
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
451
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
452
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
453
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
454
|
-
var ptr2 = r0;
|
|
455
|
-
var len2 = r1;
|
|
456
|
-
if (r3) {
|
|
457
|
-
ptr2 = 0; len2 = 0;
|
|
458
|
-
throw takeObject(r2);
|
|
459
|
-
}
|
|
460
|
-
deferred3_0 = ptr2;
|
|
461
|
-
deferred3_1 = len2;
|
|
462
|
-
return getStringFromWasm0(ptr2, len2);
|
|
463
|
-
} finally {
|
|
464
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
465
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
/**
|
|
470
|
-
* @param {string} tx_hex
|
|
471
|
-
* @param {string} validation_context
|
|
472
|
-
* @returns {string}
|
|
482
|
+
* @param {string} cbor_hex
|
|
483
|
+
* @returns {any}
|
|
473
484
|
*/
|
|
474
|
-
export function
|
|
475
|
-
let deferred4_0;
|
|
476
|
-
let deferred4_1;
|
|
485
|
+
export function cbor_to_json(cbor_hex) {
|
|
477
486
|
try {
|
|
478
487
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
479
|
-
const ptr0 = passStringToWasm0(
|
|
488
|
+
const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
480
489
|
const len0 = WASM_VECTOR_LEN;
|
|
481
|
-
|
|
482
|
-
const len1 = WASM_VECTOR_LEN;
|
|
483
|
-
wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
|
|
490
|
+
wasm.cbor_to_json(retptr, ptr0, len0);
|
|
484
491
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
485
492
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
486
493
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
var len3 = r1;
|
|
490
|
-
if (r3) {
|
|
491
|
-
ptr3 = 0; len3 = 0;
|
|
492
|
-
throw takeObject(r2);
|
|
494
|
+
if (r2) {
|
|
495
|
+
throw takeObject(r1);
|
|
493
496
|
}
|
|
494
|
-
|
|
495
|
-
deferred4_1 = len3;
|
|
496
|
-
return getStringFromWasm0(ptr3, len3);
|
|
497
|
+
return takeObject(r0);
|
|
497
498
|
} finally {
|
|
498
499
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
499
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
|
|
@@ -1086,53 +1086,16 @@ function handleError(f, args) {
|
|
|
1086
1086
|
}
|
|
1087
1087
|
/**
|
|
1088
1088
|
*/
|
|
1089
|
-
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", });
|
|
1090
|
-
/**
|
|
1091
|
-
*/
|
|
1092
|
-
export const CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1093
|
-
/**
|
|
1094
|
-
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1095
|
-
*/
|
|
1096
|
-
LargestFirst:0,"0":"LargestFirst",
|
|
1097
|
-
/**
|
|
1098
|
-
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1099
|
-
*/
|
|
1100
|
-
RandomImprove:1,"1":"RandomImprove",
|
|
1101
|
-
/**
|
|
1102
|
-
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1103
|
-
*/
|
|
1104
|
-
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1105
|
-
/**
|
|
1106
|
-
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1107
|
-
*/
|
|
1108
|
-
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1109
|
-
/**
|
|
1110
|
-
*/
|
|
1111
|
-
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", });
|
|
1112
|
-
/**
|
|
1113
|
-
*/
|
|
1114
|
-
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", });
|
|
1115
|
-
/**
|
|
1116
|
-
*/
|
|
1117
|
-
export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1118
|
-
/**
|
|
1119
|
-
*/
|
|
1120
|
-
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", });
|
|
1121
|
-
/**
|
|
1122
|
-
*/
|
|
1123
1089
|
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", });
|
|
1124
1090
|
/**
|
|
1125
1091
|
*/
|
|
1126
|
-
export const
|
|
1127
|
-
/**
|
|
1128
|
-
*/
|
|
1129
|
-
export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1092
|
+
export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1130
1093
|
/**
|
|
1131
1094
|
*/
|
|
1132
|
-
export const
|
|
1095
|
+
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", });
|
|
1133
1096
|
/**
|
|
1134
1097
|
*/
|
|
1135
|
-
export const
|
|
1098
|
+
export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1136
1099
|
/**
|
|
1137
1100
|
* Each new language uses a different namespace for hashing its script
|
|
1138
1101
|
* This is because you could have a language where the same bytes have different semantics
|
|
@@ -1142,37 +1105,6 @@ export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"
|
|
|
1142
1105
|
export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1143
1106
|
/**
|
|
1144
1107
|
*/
|
|
1145
|
-
export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1146
|
-
/**
|
|
1147
|
-
* Used to choosed the schema for a script JSON string
|
|
1148
|
-
*/
|
|
1149
|
-
export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1150
|
-
/**
|
|
1151
|
-
*/
|
|
1152
|
-
export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1153
|
-
/**
|
|
1154
|
-
*/
|
|
1155
|
-
export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1156
|
-
/**
|
|
1157
|
-
*/
|
|
1158
|
-
export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1159
|
-
/**
|
|
1160
|
-
*/
|
|
1161
|
-
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1162
|
-
/**
|
|
1163
|
-
*/
|
|
1164
|
-
export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1165
|
-
/**
|
|
1166
|
-
*/
|
|
1167
|
-
export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1168
|
-
/**
|
|
1169
|
-
*/
|
|
1170
|
-
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", });
|
|
1171
|
-
/**
|
|
1172
|
-
*/
|
|
1173
|
-
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", });
|
|
1174
|
-
/**
|
|
1175
|
-
*/
|
|
1176
1108
|
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", });
|
|
1177
1109
|
/**
|
|
1178
1110
|
* JSON <-> PlutusData conversion schemas.
|
|
@@ -1227,10 +1159,78 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1227
1159
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1228
1160
|
/**
|
|
1229
1161
|
*/
|
|
1230
|
-
export const
|
|
1162
|
+
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", });
|
|
1163
|
+
/**
|
|
1164
|
+
*/
|
|
1165
|
+
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", });
|
|
1166
|
+
/**
|
|
1167
|
+
*/
|
|
1168
|
+
export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1169
|
+
/**
|
|
1170
|
+
*/
|
|
1171
|
+
export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1172
|
+
/**
|
|
1173
|
+
*/
|
|
1174
|
+
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", });
|
|
1175
|
+
/**
|
|
1176
|
+
*/
|
|
1177
|
+
export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1231
1178
|
/**
|
|
1232
1179
|
*/
|
|
1233
1180
|
export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1181
|
+
/**
|
|
1182
|
+
*/
|
|
1183
|
+
export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1184
|
+
/**
|
|
1185
|
+
*/
|
|
1186
|
+
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", });
|
|
1187
|
+
/**
|
|
1188
|
+
*/
|
|
1189
|
+
export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1190
|
+
/**
|
|
1191
|
+
*/
|
|
1192
|
+
export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1193
|
+
/**
|
|
1194
|
+
* Used to choosed the schema for a script JSON string
|
|
1195
|
+
*/
|
|
1196
|
+
export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1197
|
+
/**
|
|
1198
|
+
*/
|
|
1199
|
+
export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1200
|
+
/**
|
|
1201
|
+
*/
|
|
1202
|
+
export const CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1203
|
+
/**
|
|
1204
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1205
|
+
*/
|
|
1206
|
+
LargestFirst:0,"0":"LargestFirst",
|
|
1207
|
+
/**
|
|
1208
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1209
|
+
*/
|
|
1210
|
+
RandomImprove:1,"1":"RandomImprove",
|
|
1211
|
+
/**
|
|
1212
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1213
|
+
*/
|
|
1214
|
+
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1215
|
+
/**
|
|
1216
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1217
|
+
*/
|
|
1218
|
+
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1219
|
+
/**
|
|
1220
|
+
*/
|
|
1221
|
+
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1222
|
+
/**
|
|
1223
|
+
*/
|
|
1224
|
+
export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1225
|
+
/**
|
|
1226
|
+
*/
|
|
1227
|
+
export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1228
|
+
/**
|
|
1229
|
+
*/
|
|
1230
|
+
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", });
|
|
1231
|
+
/**
|
|
1232
|
+
*/
|
|
1233
|
+
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", });
|
|
1234
1234
|
|
|
1235
1235
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1236
1236
|
? { register: () => {}, unregister: () => {} }
|
|
Binary file
|
|
@@ -4,14 +4,14 @@ export const memory: WebAssembly.Memory;
|
|
|
4
4
|
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
|
-
export function cbor_to_json(a: number, b: number, c: number): void;
|
|
8
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;
|
|
9
10
|
export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
|
|
10
11
|
export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
|
|
11
12
|
export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
|
|
12
13
|
export function execute_tx_scripts(a: number, b: number, c: number, d: number, e: number): void;
|
|
13
|
-
export function
|
|
14
|
-
export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
|
|
14
|
+
export function cbor_to_json(a: number, b: number, c: number): void;
|
|
15
15
|
export function __wbg_noconfidenceaction_free(a: number): void;
|
|
16
16
|
export function noconfidenceaction_to_bytes(a: number, b: number): void;
|
|
17
17
|
export function noconfidenceaction_from_bytes(a: number, b: number, c: number): void;
|
package/node/cquisitor_lib.js
CHANGED
|
@@ -285,15 +285,15 @@ module.exports.get_possible_types_for_input = function(input) {
|
|
|
285
285
|
};
|
|
286
286
|
|
|
287
287
|
/**
|
|
288
|
-
* @param {string}
|
|
288
|
+
* @param {string} hex_str
|
|
289
289
|
* @returns {any}
|
|
290
290
|
*/
|
|
291
|
-
module.exports.
|
|
291
|
+
module.exports.check_block_or_tx_signatures = function(hex_str) {
|
|
292
292
|
try {
|
|
293
293
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
294
|
-
const ptr0 = passStringToWasm0(
|
|
294
|
+
const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
295
295
|
const len0 = WASM_VECTOR_LEN;
|
|
296
|
-
wasm.
|
|
296
|
+
wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
|
|
297
297
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
298
298
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
299
299
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -307,24 +307,67 @@ module.exports.cbor_to_json = function(cbor_hex) {
|
|
|
307
307
|
};
|
|
308
308
|
|
|
309
309
|
/**
|
|
310
|
-
* @param {string}
|
|
311
|
-
* @returns {
|
|
310
|
+
* @param {string} tx_hex
|
|
311
|
+
* @returns {string}
|
|
312
312
|
*/
|
|
313
|
-
module.exports.
|
|
313
|
+
module.exports.get_necessary_data_list_js = function(tx_hex) {
|
|
314
|
+
let deferred3_0;
|
|
315
|
+
let deferred3_1;
|
|
314
316
|
try {
|
|
315
317
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
316
|
-
const ptr0 = passStringToWasm0(
|
|
318
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
317
319
|
const len0 = WASM_VECTOR_LEN;
|
|
318
|
-
wasm.
|
|
320
|
+
wasm.get_necessary_data_list_js(retptr, ptr0, len0);
|
|
319
321
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
320
322
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
321
323
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
322
|
-
|
|
323
|
-
|
|
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);
|
|
324
330
|
}
|
|
325
|
-
|
|
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);
|
|
326
368
|
} finally {
|
|
327
369
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
370
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
328
371
|
}
|
|
329
372
|
};
|
|
330
373
|
|
|
@@ -431,67 +474,24 @@ module.exports.execute_tx_scripts = function(tx_hex, utxo_json, cost_models_json
|
|
|
431
474
|
};
|
|
432
475
|
|
|
433
476
|
/**
|
|
434
|
-
* @param {string}
|
|
435
|
-
* @returns {
|
|
436
|
-
*/
|
|
437
|
-
module.exports.get_necessary_data_list_js = function(tx_hex) {
|
|
438
|
-
let deferred3_0;
|
|
439
|
-
let deferred3_1;
|
|
440
|
-
try {
|
|
441
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
442
|
-
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
443
|
-
const len0 = WASM_VECTOR_LEN;
|
|
444
|
-
wasm.get_necessary_data_list_js(retptr, ptr0, len0);
|
|
445
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
446
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
447
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
448
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
449
|
-
var ptr2 = r0;
|
|
450
|
-
var len2 = r1;
|
|
451
|
-
if (r3) {
|
|
452
|
-
ptr2 = 0; len2 = 0;
|
|
453
|
-
throw takeObject(r2);
|
|
454
|
-
}
|
|
455
|
-
deferred3_0 = ptr2;
|
|
456
|
-
deferred3_1 = len2;
|
|
457
|
-
return getStringFromWasm0(ptr2, len2);
|
|
458
|
-
} finally {
|
|
459
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
460
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
461
|
-
}
|
|
462
|
-
};
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* @param {string} tx_hex
|
|
466
|
-
* @param {string} validation_context
|
|
467
|
-
* @returns {string}
|
|
477
|
+
* @param {string} cbor_hex
|
|
478
|
+
* @returns {any}
|
|
468
479
|
*/
|
|
469
|
-
module.exports.
|
|
470
|
-
let deferred4_0;
|
|
471
|
-
let deferred4_1;
|
|
480
|
+
module.exports.cbor_to_json = function(cbor_hex) {
|
|
472
481
|
try {
|
|
473
482
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
474
|
-
const ptr0 = passStringToWasm0(
|
|
483
|
+
const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
475
484
|
const len0 = WASM_VECTOR_LEN;
|
|
476
|
-
|
|
477
|
-
const len1 = WASM_VECTOR_LEN;
|
|
478
|
-
wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
|
|
485
|
+
wasm.cbor_to_json(retptr, ptr0, len0);
|
|
479
486
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
480
487
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
481
488
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
var len3 = r1;
|
|
485
|
-
if (r3) {
|
|
486
|
-
ptr3 = 0; len3 = 0;
|
|
487
|
-
throw takeObject(r2);
|
|
489
|
+
if (r2) {
|
|
490
|
+
throw takeObject(r1);
|
|
488
491
|
}
|
|
489
|
-
|
|
490
|
-
deferred4_1 = len3;
|
|
491
|
-
return getStringFromWasm0(ptr3, len3);
|
|
492
|
+
return takeObject(r0);
|
|
492
493
|
} finally {
|
|
493
494
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
494
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
497
|
|
|
@@ -1132,13 +1132,11 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1132
1132
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1133
1133
|
/**
|
|
1134
1134
|
*/
|
|
1135
|
-
module.exports.
|
|
1136
|
-
/**
|
|
1137
|
-
*/
|
|
1138
|
-
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", });
|
|
1135
|
+
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1139
1136
|
/**
|
|
1137
|
+
* Used to choosed the schema for a script JSON string
|
|
1140
1138
|
*/
|
|
1141
|
-
module.exports.
|
|
1139
|
+
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1142
1140
|
/**
|
|
1143
1141
|
*/
|
|
1144
1142
|
module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
@@ -1147,13 +1145,19 @@ module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1"
|
|
|
1147
1145
|
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1148
1146
|
/**
|
|
1149
1147
|
*/
|
|
1148
|
+
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", });
|
|
1149
|
+
/**
|
|
1150
|
+
*/
|
|
1151
|
+
module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1152
|
+
/**
|
|
1153
|
+
*/
|
|
1150
1154
|
module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1151
1155
|
/**
|
|
1152
1156
|
*/
|
|
1153
|
-
module.exports.
|
|
1157
|
+
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1154
1158
|
/**
|
|
1155
1159
|
*/
|
|
1156
|
-
module.exports.
|
|
1160
|
+
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", });
|
|
1157
1161
|
/**
|
|
1158
1162
|
* Each new language uses a different namespace for hashing its script
|
|
1159
1163
|
* This is because you could have a language where the same bytes have different semantics
|
|
@@ -1163,37 +1167,46 @@ module.exports.TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"Met
|
|
|
1163
1167
|
module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1164
1168
|
/**
|
|
1165
1169
|
*/
|
|
1166
|
-
module.exports.
|
|
1170
|
+
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", });
|
|
1167
1171
|
/**
|
|
1168
1172
|
*/
|
|
1169
|
-
module.exports.
|
|
1173
|
+
module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1170
1174
|
/**
|
|
1171
1175
|
*/
|
|
1172
|
-
module.exports.
|
|
1176
|
+
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", });
|
|
1177
|
+
/**
|
|
1178
|
+
*/
|
|
1179
|
+
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", });
|
|
1173
1180
|
/**
|
|
1174
1181
|
*/
|
|
1175
1182
|
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", });
|
|
1176
1183
|
/**
|
|
1177
1184
|
*/
|
|
1178
|
-
module.exports.
|
|
1185
|
+
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", });
|
|
1179
1186
|
/**
|
|
1180
1187
|
*/
|
|
1181
|
-
module.exports.
|
|
1188
|
+
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", });
|
|
1182
1189
|
/**
|
|
1183
1190
|
*/
|
|
1184
|
-
module.exports.
|
|
1191
|
+
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1185
1192
|
/**
|
|
1186
1193
|
*/
|
|
1187
|
-
module.exports.
|
|
1194
|
+
module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1188
1195
|
/**
|
|
1189
1196
|
*/
|
|
1190
|
-
module.exports.
|
|
1197
|
+
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1191
1198
|
/**
|
|
1192
1199
|
*/
|
|
1193
1200
|
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", });
|
|
1194
1201
|
/**
|
|
1195
1202
|
*/
|
|
1196
|
-
module.exports.
|
|
1203
|
+
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1204
|
+
/**
|
|
1205
|
+
*/
|
|
1206
|
+
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1207
|
+
/**
|
|
1208
|
+
*/
|
|
1209
|
+
module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1197
1210
|
/**
|
|
1198
1211
|
*/
|
|
1199
1212
|
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
@@ -1213,19 +1226,6 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
|
1213
1226
|
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1214
1227
|
*/
|
|
1215
1228
|
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1216
|
-
/**
|
|
1217
|
-
*/
|
|
1218
|
-
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1219
|
-
/**
|
|
1220
|
-
*/
|
|
1221
|
-
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1222
|
-
/**
|
|
1223
|
-
* Used to choosed the schema for a script JSON string
|
|
1224
|
-
*/
|
|
1225
|
-
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1226
|
-
/**
|
|
1227
|
-
*/
|
|
1228
|
-
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1229
1229
|
|
|
1230
1230
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1231
1231
|
? { register: () => {}, unregister: () => {} }
|
|
Binary file
|
|
@@ -4,14 +4,14 @@ export const memory: WebAssembly.Memory;
|
|
|
4
4
|
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
|
-
export function cbor_to_json(a: number, b: number, c: number): void;
|
|
8
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;
|
|
9
10
|
export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
|
|
10
11
|
export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
|
|
11
12
|
export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
|
|
12
13
|
export function execute_tx_scripts(a: number, b: number, c: number, d: number, e: number): void;
|
|
13
|
-
export function
|
|
14
|
-
export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
|
|
14
|
+
export function cbor_to_json(a: number, b: number, c: number): void;
|
|
15
15
|
export function __wbg_noconfidenceaction_free(a: number): void;
|
|
16
16
|
export function noconfidenceaction_to_bytes(a: number, b: number): void;
|
|
17
17
|
export function noconfidenceaction_from_bytes(a: number, b: number, c: number): void;
|
package/package.json
CHANGED