@cardananium/cquisitor-lib 0.1.0-beta.10 → 0.1.0-beta.12

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.
@@ -360,6 +360,28 @@ export function execute_tx_scripts(tx_hex, utxo_json, cost_models_json) {
360
360
  }
361
361
  }
362
362
 
363
+ /**
364
+ * @param {string} cbor_hex
365
+ * @returns {any}
366
+ */
367
+ export function cbor_to_json(cbor_hex) {
368
+ try {
369
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
370
+ const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
371
+ const len0 = WASM_VECTOR_LEN;
372
+ wasm.cbor_to_json(retptr, ptr0, len0);
373
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
374
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
375
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
376
+ if (r2) {
377
+ throw takeObject(r1);
378
+ }
379
+ return takeObject(r0);
380
+ } finally {
381
+ wasm.__wbindgen_add_to_stack_pointer(16);
382
+ }
383
+ }
384
+
363
385
  /**
364
386
  * @param {string} hex
365
387
  * @returns {any}
@@ -413,28 +435,6 @@ export function decode_plutus_program_pretty_uplc(hex) {
413
435
  }
414
436
  }
415
437
 
416
- /**
417
- * @param {string} cbor_hex
418
- * @returns {any}
419
- */
420
- export function cbor_to_json(cbor_hex) {
421
- try {
422
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
423
- const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
424
- const len0 = WASM_VECTOR_LEN;
425
- wasm.cbor_to_json(retptr, ptr0, len0);
426
- var r0 = getInt32Memory0()[retptr / 4 + 0];
427
- var r1 = getInt32Memory0()[retptr / 4 + 1];
428
- var r2 = getInt32Memory0()[retptr / 4 + 2];
429
- if (r2) {
430
- throw takeObject(r1);
431
- }
432
- return takeObject(r0);
433
- } finally {
434
- wasm.__wbindgen_add_to_stack_pointer(16);
435
- }
436
- }
437
-
438
438
  function getArrayU8FromWasm0(ptr, len) {
439
439
  ptr = ptr >>> 0;
440
440
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
@@ -1022,54 +1022,54 @@ function handleError(f, args) {
1022
1022
  }
1023
1023
  /**
1024
1024
  */
1025
- 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", });
1025
+ export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1026
1026
  /**
1027
1027
  */
1028
- 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", });
1028
+ 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", });
1029
1029
  /**
1030
- * Used to choosed the schema for a script JSON string
1031
1030
  */
1032
- export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1031
+ export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1033
1032
  /**
1034
1033
  */
1035
1034
  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", });
1036
1035
  /**
1037
1036
  */
1038
- export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1037
+ 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", });
1039
1038
  /**
1040
1039
  */
1041
- 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", });
1040
+ 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", });
1042
1041
  /**
1042
+ * Used to choosed the schema for a script JSON string
1043
1043
  */
1044
- export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1044
+ export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1045
1045
  /**
1046
- * Each new language uses a different namespace for hashing its script
1047
- * This is because you could have a language where the same bytes have different semantics
1048
- * So this avoids scripts in different languages mapping to the same hash
1049
- * Note that the enum value here is different than the enum value for deciding the cost model of a script
1050
1046
  */
1051
- export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1047
+ 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", });
1052
1048
  /**
1053
1049
  */
1054
- export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1050
+ export const CoinSelectionStrategyCIP2 = Object.freeze({
1055
1051
  /**
1052
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1056
1053
  */
1057
- 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", });
1054
+ LargestFirst:0,"0":"LargestFirst",
1058
1055
  /**
1056
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1059
1057
  */
1060
- export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1058
+ RandomImprove:1,"1":"RandomImprove",
1061
1059
  /**
1060
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1062
1061
  */
1063
- export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1062
+ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1064
1063
  /**
1064
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1065
1065
  */
1066
- export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1066
+ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1067
1067
  /**
1068
1068
  */
1069
- 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", });
1069
+ export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1070
1070
  /**
1071
1071
  */
1072
- 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", });
1072
+ export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1073
1073
  /**
1074
1074
  * JSON <-> PlutusData conversion schemas.
1075
1075
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -1123,50 +1123,50 @@ BasicConversions:0,"0":"BasicConversions",
1123
1123
  DetailedSchema:1,"1":"DetailedSchema", });
1124
1124
  /**
1125
1125
  */
1126
- export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1126
+ export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1127
1127
  /**
1128
1128
  */
1129
- 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", });
1129
+ export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1130
1130
  /**
1131
1131
  */
1132
- export const CoinSelectionStrategyCIP2 = Object.freeze({
1132
+ 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", });
1133
1133
  /**
1134
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1134
+ * Each new language uses a different namespace for hashing its script
1135
+ * This is because you could have a language where the same bytes have different semantics
1136
+ * So this avoids scripts in different languages mapping to the same hash
1137
+ * Note that the enum value here is different than the enum value for deciding the cost model of a script
1135
1138
  */
1136
- LargestFirst:0,"0":"LargestFirst",
1139
+ export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1137
1140
  /**
1138
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1139
1141
  */
1140
- RandomImprove:1,"1":"RandomImprove",
1142
+ export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1141
1143
  /**
1142
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1143
1144
  */
1144
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1145
+ export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1145
1146
  /**
1146
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1147
1147
  */
1148
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1148
+ export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1149
1149
  /**
1150
1150
  */
1151
- export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1151
+ 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", });
1152
1152
  /**
1153
1153
  */
1154
- export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1154
+ export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1155
1155
  /**
1156
1156
  */
1157
- export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1157
+ 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", });
1158
1158
  /**
1159
1159
  */
1160
- export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1160
+ export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1161
1161
  /**
1162
1162
  */
1163
- export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1163
+ 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", });
1164
1164
  /**
1165
1165
  */
1166
- 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
+ export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1167
1167
  /**
1168
1168
  */
1169
- export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1169
+ export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1170
1170
 
1171
1171
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1172
1172
  ? { register: () => {}, unregister: () => {} }
Binary file
@@ -7,9 +7,9 @@ export function get_possible_types_for_input(a: number, b: number, c: number): v
7
7
  export function check_block_or_tx_signatures(a: number, b: number, c: number): void;
8
8
  export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
9
9
  export function execute_tx_scripts(a: number, b: number, c: number, d: number, e: number): void;
10
+ export function cbor_to_json(a: number, b: number, c: number): void;
10
11
  export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
11
12
  export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
12
- export function cbor_to_json(a: number, b: number, c: number): void;
13
13
  export function __wbg_moveinstantaneousrewardscert_free(a: number): void;
14
14
  export function moveinstantaneousrewardscert_to_bytes(a: number, b: number): void;
15
15
  export function moveinstantaneousrewardscert_from_bytes(a: number, b: number, c: number): void;
@@ -355,6 +355,28 @@ module.exports.execute_tx_scripts = function(tx_hex, utxo_json, cost_models_json
355
355
  }
356
356
  };
357
357
 
358
+ /**
359
+ * @param {string} cbor_hex
360
+ * @returns {any}
361
+ */
362
+ module.exports.cbor_to_json = function(cbor_hex) {
363
+ try {
364
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
365
+ const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
366
+ const len0 = WASM_VECTOR_LEN;
367
+ wasm.cbor_to_json(retptr, ptr0, len0);
368
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
369
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
370
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
371
+ if (r2) {
372
+ throw takeObject(r1);
373
+ }
374
+ return takeObject(r0);
375
+ } finally {
376
+ wasm.__wbindgen_add_to_stack_pointer(16);
377
+ }
378
+ };
379
+
358
380
  /**
359
381
  * @param {string} hex
360
382
  * @returns {any}
@@ -408,28 +430,6 @@ module.exports.decode_plutus_program_pretty_uplc = function(hex) {
408
430
  }
409
431
  };
410
432
 
411
- /**
412
- * @param {string} cbor_hex
413
- * @returns {any}
414
- */
415
- module.exports.cbor_to_json = function(cbor_hex) {
416
- try {
417
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
418
- const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
419
- const len0 = WASM_VECTOR_LEN;
420
- wasm.cbor_to_json(retptr, ptr0, len0);
421
- var r0 = getInt32Memory0()[retptr / 4 + 0];
422
- var r1 = getInt32Memory0()[retptr / 4 + 1];
423
- var r2 = getInt32Memory0()[retptr / 4 + 2];
424
- if (r2) {
425
- throw takeObject(r1);
426
- }
427
- return takeObject(r0);
428
- } finally {
429
- wasm.__wbindgen_add_to_stack_pointer(16);
430
- }
431
- };
432
-
433
433
  function getArrayU8FromWasm0(ptr, len) {
434
434
  ptr = ptr >>> 0;
435
435
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
@@ -1017,32 +1017,25 @@ function handleError(f, args) {
1017
1017
  }
1018
1018
  /**
1019
1019
  */
1020
- module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1020
+ 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", });
1021
1021
  /**
1022
1022
  */
1023
- module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1023
+ 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", });
1024
1024
  /**
1025
1025
  */
1026
- module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1026
+ 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", });
1027
1027
  /**
1028
- * Used to choosed the schema for a script JSON string
1029
1028
  */
1030
- module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1029
+ 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", });
1031
1030
  /**
1032
1031
  */
1033
1032
  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", });
1034
1033
  /**
1035
1034
  */
1036
- 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", });
1037
- /**
1038
- */
1039
- 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", });
1040
- /**
1041
- */
1042
- 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", });
1035
+ 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", });
1043
1036
  /**
1044
1037
  */
1045
- module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1038
+ module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1046
1039
  /**
1047
1040
  * Each new language uses a different namespace for hashing its script
1048
1041
  * This is because you could have a language where the same bytes have different semantics
@@ -1052,59 +1045,40 @@ module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllS
1052
1045
  module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1053
1046
  /**
1054
1047
  */
1055
- 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", });
1056
- /**
1057
- */
1058
- module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1059
- /**
1060
- */
1061
- module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1062
- /**
1063
- */
1064
- 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", });
1048
+ module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1065
1049
  /**
1066
1050
  */
1067
1051
  module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1068
1052
  /**
1069
1053
  */
1070
- module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1071
- /**
1072
- */
1073
- 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", });
1054
+ module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1074
1055
  /**
1075
1056
  */
1076
- module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1057
+ module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1077
1058
  /**
1078
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1079
1059
  */
1080
- LargestFirst:0,"0":"LargestFirst",
1060
+ module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1081
1061
  /**
1082
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1083
1062
  */
1084
- RandomImprove:1,"1":"RandomImprove",
1063
+ module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1085
1064
  /**
1086
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1087
1065
  */
1088
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1066
+ module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1089
1067
  /**
1090
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1091
1068
  */
1092
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1069
+ module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1093
1070
  /**
1094
1071
  */
1095
1072
  module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1096
1073
  /**
1097
1074
  */
1098
- 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", });
1099
- /**
1100
- */
1101
- module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1075
+ module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1102
1076
  /**
1103
1077
  */
1104
- module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1078
+ 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", });
1105
1079
  /**
1106
1080
  */
1107
- 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", });
1081
+ 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", });
1108
1082
  /**
1109
1083
  * JSON <-> PlutusData conversion schemas.
1110
1084
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -1158,10 +1132,36 @@ BasicConversions:0,"0":"BasicConversions",
1158
1132
  DetailedSchema:1,"1":"DetailedSchema", });
1159
1133
  /**
1160
1134
  */
1161
- module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1135
+ 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", });
1162
1136
  /**
1163
1137
  */
1164
- module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1138
+ module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1139
+ /**
1140
+ */
1141
+ module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1142
+ /**
1143
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1144
+ */
1145
+ LargestFirst:0,"0":"LargestFirst",
1146
+ /**
1147
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1148
+ */
1149
+ RandomImprove:1,"1":"RandomImprove",
1150
+ /**
1151
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1152
+ */
1153
+ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1154
+ /**
1155
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1156
+ */
1157
+ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1158
+ /**
1159
+ */
1160
+ module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1161
+ /**
1162
+ * Used to choosed the schema for a script JSON string
1163
+ */
1164
+ module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1165
1165
 
1166
1166
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1167
1167
  ? { register: () => {}, unregister: () => {} }
Binary file
@@ -7,9 +7,9 @@ export function get_possible_types_for_input(a: number, b: number, c: number): v
7
7
  export function check_block_or_tx_signatures(a: number, b: number, c: number): void;
8
8
  export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
9
9
  export function execute_tx_scripts(a: number, b: number, c: number, d: number, e: number): void;
10
+ export function cbor_to_json(a: number, b: number, c: number): void;
10
11
  export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
11
12
  export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
12
- export function cbor_to_json(a: number, b: number, c: number): void;
13
13
  export function __wbg_moveinstantaneousrewardscert_free(a: number): void;
14
14
  export function moveinstantaneousrewardscert_to_bytes(a: number, b: number): void;
15
15
  export function moveinstantaneousrewardscert_from_bytes(a: number, b: number, c: number): void;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "Evgenii Lisitskii <evgeniilisitskii@gmail.com>"
5
5
  ],
6
- "version": "0.1.0-beta.10",
6
+ "version": "0.1.0-beta.12",
7
7
  "files": [
8
8
  "node/cquisitor_lib_bg.wasm",
9
9
  "node/cquisitor_lib.js",