@cardananium/cquisitor-lib 0.1.0-beta.34 → 0.1.0-beta.35
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.
|
@@ -409,6 +409,28 @@ export function extract_hashes_from_transaction_js(tx_hex) {
|
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
|
|
412
|
+
/**
|
|
413
|
+
* @param {string} cbor_hex
|
|
414
|
+
* @returns {any}
|
|
415
|
+
*/
|
|
416
|
+
export function cbor_to_json(cbor_hex) {
|
|
417
|
+
try {
|
|
418
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
419
|
+
const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
420
|
+
const len0 = WASM_VECTOR_LEN;
|
|
421
|
+
wasm.cbor_to_json(retptr, ptr0, len0);
|
|
422
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
423
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
424
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
425
|
+
if (r2) {
|
|
426
|
+
throw takeObject(r1);
|
|
427
|
+
}
|
|
428
|
+
return takeObject(r0);
|
|
429
|
+
} finally {
|
|
430
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
412
434
|
/**
|
|
413
435
|
* @param {string} hex
|
|
414
436
|
* @returns {any}
|
|
@@ -543,28 +565,6 @@ export function get_ref_script_bytes(tx_hex, output_index) {
|
|
|
543
565
|
}
|
|
544
566
|
}
|
|
545
567
|
|
|
546
|
-
/**
|
|
547
|
-
* @param {string} cbor_hex
|
|
548
|
-
* @returns {any}
|
|
549
|
-
*/
|
|
550
|
-
export function cbor_to_json(cbor_hex) {
|
|
551
|
-
try {
|
|
552
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
553
|
-
const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
554
|
-
const len0 = WASM_VECTOR_LEN;
|
|
555
|
-
wasm.cbor_to_json(retptr, ptr0, len0);
|
|
556
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
557
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
558
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
559
|
-
if (r2) {
|
|
560
|
-
throw takeObject(r1);
|
|
561
|
-
}
|
|
562
|
-
return takeObject(r0);
|
|
563
|
-
} finally {
|
|
564
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
|
|
568
568
|
function getArrayU8FromWasm0(ptr, len) {
|
|
569
569
|
ptr = ptr >>> 0;
|
|
570
570
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -1151,40 +1151,37 @@ function handleError(f, args) {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
/**
|
|
1153
1153
|
*/
|
|
1154
|
-
export const
|
|
1155
|
-
/**
|
|
1156
|
-
*/
|
|
1157
|
-
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", });
|
|
1154
|
+
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", });
|
|
1158
1155
|
/**
|
|
1159
1156
|
*/
|
|
1160
|
-
export const
|
|
1157
|
+
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", });
|
|
1161
1158
|
/**
|
|
1162
1159
|
*/
|
|
1163
|
-
export const
|
|
1160
|
+
export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1164
1161
|
/**
|
|
1165
1162
|
*/
|
|
1166
|
-
export const
|
|
1163
|
+
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", });
|
|
1167
1164
|
/**
|
|
1168
1165
|
*/
|
|
1169
|
-
export const
|
|
1166
|
+
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1170
1167
|
/**
|
|
1171
1168
|
*/
|
|
1172
|
-
export const
|
|
1169
|
+
export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1173
1170
|
/**
|
|
1174
1171
|
*/
|
|
1175
|
-
export const
|
|
1172
|
+
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", });
|
|
1176
1173
|
/**
|
|
1177
1174
|
*/
|
|
1178
|
-
export const
|
|
1175
|
+
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", });
|
|
1179
1176
|
/**
|
|
1180
1177
|
*/
|
|
1181
|
-
export const
|
|
1178
|
+
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", });
|
|
1182
1179
|
/**
|
|
1183
1180
|
*/
|
|
1184
|
-
export const
|
|
1181
|
+
export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1185
1182
|
/**
|
|
1186
1183
|
*/
|
|
1187
|
-
export const
|
|
1184
|
+
export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1188
1185
|
/**
|
|
1189
1186
|
* JSON <-> PlutusData conversion schemas.
|
|
1190
1187
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -1237,6 +1234,9 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1237
1234
|
*/
|
|
1238
1235
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1239
1236
|
/**
|
|
1237
|
+
*/
|
|
1238
|
+
export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1239
|
+
/**
|
|
1240
1240
|
* Each new language uses a different namespace for hashing its script
|
|
1241
1241
|
* This is because you could have a language where the same bytes have different semantics
|
|
1242
1242
|
* So this avoids scripts in different languages mapping to the same hash
|
|
@@ -1245,23 +1245,16 @@ DetailedSchema:1,"1":"DetailedSchema", });
|
|
|
1245
1245
|
export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1246
1246
|
/**
|
|
1247
1247
|
*/
|
|
1248
|
-
export const
|
|
1249
|
-
/**
|
|
1250
|
-
*/
|
|
1251
|
-
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1252
|
-
/**
|
|
1253
|
-
*/
|
|
1254
|
-
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", });
|
|
1248
|
+
export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1255
1249
|
/**
|
|
1256
1250
|
*/
|
|
1257
|
-
export const
|
|
1251
|
+
export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1258
1252
|
/**
|
|
1259
1253
|
*/
|
|
1260
|
-
export const
|
|
1254
|
+
export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1261
1255
|
/**
|
|
1262
|
-
* Used to choosed the schema for a script JSON string
|
|
1263
1256
|
*/
|
|
1264
|
-
export const
|
|
1257
|
+
export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1265
1258
|
/**
|
|
1266
1259
|
*/
|
|
1267
1260
|
export const CoinSelectionStrategyCIP2 = Object.freeze({
|
|
@@ -1283,19 +1276,26 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
|
1283
1276
|
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1284
1277
|
/**
|
|
1285
1278
|
*/
|
|
1286
|
-
export const
|
|
1279
|
+
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", });
|
|
1287
1280
|
/**
|
|
1288
1281
|
*/
|
|
1289
|
-
export const
|
|
1282
|
+
export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1290
1283
|
/**
|
|
1291
1284
|
*/
|
|
1292
|
-
export const
|
|
1285
|
+
export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1293
1286
|
/**
|
|
1294
1287
|
*/
|
|
1295
|
-
export const
|
|
1288
|
+
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", });
|
|
1296
1289
|
/**
|
|
1290
|
+
* Used to choosed the schema for a script JSON string
|
|
1297
1291
|
*/
|
|
1298
|
-
export const
|
|
1292
|
+
export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1293
|
+
/**
|
|
1294
|
+
*/
|
|
1295
|
+
export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1296
|
+
/**
|
|
1297
|
+
*/
|
|
1298
|
+
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", });
|
|
1299
1299
|
|
|
1300
1300
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1301
1301
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -39134,6 +39134,11 @@ export function __wbindgen_string_new(arg0, arg1) {
|
|
|
39134
39134
|
return addHeapObject(ret);
|
|
39135
39135
|
};
|
|
39136
39136
|
|
|
39137
|
+
export function __wbindgen_error_new(arg0, arg1) {
|
|
39138
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
39139
|
+
return addHeapObject(ret);
|
|
39140
|
+
};
|
|
39141
|
+
|
|
39137
39142
|
export function __wbindgen_is_undefined(arg0) {
|
|
39138
39143
|
const ret = getObject(arg0) === undefined;
|
|
39139
39144
|
return ret;
|
|
@@ -39179,11 +39184,6 @@ export function __wbindgen_is_object(arg0) {
|
|
|
39179
39184
|
return ret;
|
|
39180
39185
|
};
|
|
39181
39186
|
|
|
39182
|
-
export function __wbindgen_error_new(arg0, arg1) {
|
|
39183
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
39184
|
-
return addHeapObject(ret);
|
|
39185
|
-
};
|
|
39186
|
-
|
|
39187
39187
|
export function __wbindgen_object_clone_ref(arg0) {
|
|
39188
39188
|
const ret = getObject(arg0);
|
|
39189
39189
|
return addHeapObject(ret);
|
|
Binary file
|
|
@@ -8,12 +8,12 @@ export function check_block_or_tx_signatures(a: number, b: number, c: number): v
|
|
|
8
8
|
export function get_necessary_data_list_js(a: number, b: number, c: number): void;
|
|
9
9
|
export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
|
|
10
10
|
export function extract_hashes_from_transaction_js(a: number, b: number, c: number): void;
|
|
11
|
+
export function cbor_to_json(a: number, b: number, c: number): void;
|
|
11
12
|
export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
|
|
12
13
|
export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
|
|
13
14
|
export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
|
|
14
15
|
export function execute_tx_scripts(a: number, b: number, c: number, d: number, e: number): void;
|
|
15
16
|
export function get_ref_script_bytes(a: number, b: number, c: number, d: number): void;
|
|
16
|
-
export function cbor_to_json(a: number, b: number, c: number): void;
|
|
17
17
|
export function __wbg_noconfidenceaction_free(a: number): void;
|
|
18
18
|
export function noconfidenceaction_to_bytes(a: number, b: number): void;
|
|
19
19
|
export function noconfidenceaction_from_bytes(a: number, b: number, c: number): void;
|
package/node/cquisitor_lib.js
CHANGED
|
@@ -404,6 +404,28 @@ module.exports.extract_hashes_from_transaction_js = function(tx_hex) {
|
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
406
|
|
|
407
|
+
/**
|
|
408
|
+
* @param {string} cbor_hex
|
|
409
|
+
* @returns {any}
|
|
410
|
+
*/
|
|
411
|
+
module.exports.cbor_to_json = function(cbor_hex) {
|
|
412
|
+
try {
|
|
413
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
414
|
+
const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
415
|
+
const len0 = WASM_VECTOR_LEN;
|
|
416
|
+
wasm.cbor_to_json(retptr, ptr0, len0);
|
|
417
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
418
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
419
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
420
|
+
if (r2) {
|
|
421
|
+
throw takeObject(r1);
|
|
422
|
+
}
|
|
423
|
+
return takeObject(r0);
|
|
424
|
+
} finally {
|
|
425
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
|
|
407
429
|
/**
|
|
408
430
|
* @param {string} hex
|
|
409
431
|
* @returns {any}
|
|
@@ -538,28 +560,6 @@ module.exports.get_ref_script_bytes = function(tx_hex, output_index) {
|
|
|
538
560
|
}
|
|
539
561
|
};
|
|
540
562
|
|
|
541
|
-
/**
|
|
542
|
-
* @param {string} cbor_hex
|
|
543
|
-
* @returns {any}
|
|
544
|
-
*/
|
|
545
|
-
module.exports.cbor_to_json = function(cbor_hex) {
|
|
546
|
-
try {
|
|
547
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
548
|
-
const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
549
|
-
const len0 = WASM_VECTOR_LEN;
|
|
550
|
-
wasm.cbor_to_json(retptr, ptr0, len0);
|
|
551
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
552
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
553
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
554
|
-
if (r2) {
|
|
555
|
-
throw takeObject(r1);
|
|
556
|
-
}
|
|
557
|
-
return takeObject(r0);
|
|
558
|
-
} finally {
|
|
559
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
560
|
-
}
|
|
561
|
-
};
|
|
562
|
-
|
|
563
563
|
function getArrayU8FromWasm0(ptr, len) {
|
|
564
564
|
ptr = ptr >>> 0;
|
|
565
565
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -1145,42 +1145,46 @@ function handleError(f, args) {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
1147
|
/**
|
|
1148
|
+
* Used to choosed the schema for a script JSON string
|
|
1148
1149
|
*/
|
|
1149
|
-
module.exports.
|
|
1150
|
+
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1150
1151
|
/**
|
|
1151
1152
|
*/
|
|
1152
|
-
module.exports.
|
|
1153
|
+
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", });
|
|
1153
1154
|
/**
|
|
1154
1155
|
*/
|
|
1155
1156
|
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", });
|
|
1156
1157
|
/**
|
|
1157
1158
|
*/
|
|
1158
|
-
module.exports.
|
|
1159
|
+
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", });
|
|
1159
1160
|
/**
|
|
1160
1161
|
*/
|
|
1161
|
-
module.exports.
|
|
1162
|
+
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", });
|
|
1162
1163
|
/**
|
|
1163
|
-
* Used to choosed the schema for a script JSON string
|
|
1164
1164
|
*/
|
|
1165
|
-
module.exports.
|
|
1165
|
+
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1166
1166
|
/**
|
|
1167
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1167
1168
|
*/
|
|
1168
|
-
|
|
1169
|
+
LargestFirst:0,"0":"LargestFirst",
|
|
1169
1170
|
/**
|
|
1171
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1170
1172
|
*/
|
|
1171
|
-
|
|
1173
|
+
RandomImprove:1,"1":"RandomImprove",
|
|
1172
1174
|
/**
|
|
1175
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1173
1176
|
*/
|
|
1174
|
-
|
|
1177
|
+
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1175
1178
|
/**
|
|
1179
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1176
1180
|
*/
|
|
1177
|
-
|
|
1181
|
+
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1178
1182
|
/**
|
|
1179
1183
|
*/
|
|
1180
|
-
module.exports.
|
|
1184
|
+
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", });
|
|
1181
1185
|
/**
|
|
1182
1186
|
*/
|
|
1183
|
-
module.exports.
|
|
1187
|
+
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1184
1188
|
/**
|
|
1185
1189
|
*/
|
|
1186
1190
|
module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
@@ -1189,7 +1193,28 @@ module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1
|
|
|
1189
1193
|
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1190
1194
|
/**
|
|
1191
1195
|
*/
|
|
1192
|
-
module.exports.
|
|
1196
|
+
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1197
|
+
/**
|
|
1198
|
+
*/
|
|
1199
|
+
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", });
|
|
1200
|
+
/**
|
|
1201
|
+
*/
|
|
1202
|
+
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", });
|
|
1203
|
+
/**
|
|
1204
|
+
*/
|
|
1205
|
+
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", });
|
|
1206
|
+
/**
|
|
1207
|
+
*/
|
|
1208
|
+
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1209
|
+
/**
|
|
1210
|
+
*/
|
|
1211
|
+
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1212
|
+
/**
|
|
1213
|
+
*/
|
|
1214
|
+
module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1215
|
+
/**
|
|
1216
|
+
*/
|
|
1217
|
+
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", });
|
|
1193
1218
|
/**
|
|
1194
1219
|
* Each new language uses a different namespace for hashing its script
|
|
1195
1220
|
* This is because you could have a language where the same bytes have different semantics
|
|
@@ -1199,25 +1224,22 @@ module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllS
|
|
|
1199
1224
|
module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1200
1225
|
/**
|
|
1201
1226
|
*/
|
|
1202
|
-
module.exports.
|
|
1203
|
-
/**
|
|
1204
|
-
*/
|
|
1205
|
-
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1227
|
+
module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1206
1228
|
/**
|
|
1207
1229
|
*/
|
|
1208
|
-
module.exports.
|
|
1230
|
+
module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1209
1231
|
/**
|
|
1210
1232
|
*/
|
|
1211
1233
|
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1212
1234
|
/**
|
|
1213
1235
|
*/
|
|
1214
|
-
module.exports.
|
|
1236
|
+
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1215
1237
|
/**
|
|
1216
1238
|
*/
|
|
1217
|
-
module.exports.
|
|
1239
|
+
module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1218
1240
|
/**
|
|
1219
1241
|
*/
|
|
1220
|
-
module.exports.
|
|
1242
|
+
module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1221
1243
|
/**
|
|
1222
1244
|
* JSON <-> PlutusData conversion schemas.
|
|
1223
1245
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -1269,28 +1291,6 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1269
1291
|
* * all Plutus datums should be fully supported outside of the integer range limitations outlined above.
|
|
1270
1292
|
*/
|
|
1271
1293
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1272
|
-
/**
|
|
1273
|
-
*/
|
|
1274
|
-
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", });
|
|
1275
|
-
/**
|
|
1276
|
-
*/
|
|
1277
|
-
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1278
|
-
/**
|
|
1279
|
-
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1280
|
-
*/
|
|
1281
|
-
LargestFirst:0,"0":"LargestFirst",
|
|
1282
|
-
/**
|
|
1283
|
-
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1284
|
-
*/
|
|
1285
|
-
RandomImprove:1,"1":"RandomImprove",
|
|
1286
|
-
/**
|
|
1287
|
-
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1288
|
-
*/
|
|
1289
|
-
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1290
|
-
/**
|
|
1291
|
-
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1292
|
-
*/
|
|
1293
|
-
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1294
1294
|
|
|
1295
1295
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1296
1296
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -39326,6 +39326,11 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
39326
39326
|
return addHeapObject(ret);
|
|
39327
39327
|
};
|
|
39328
39328
|
|
|
39329
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
39330
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
39331
|
+
return addHeapObject(ret);
|
|
39332
|
+
};
|
|
39333
|
+
|
|
39329
39334
|
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
39330
39335
|
const ret = getObject(arg0) === undefined;
|
|
39331
39336
|
return ret;
|
|
@@ -39371,11 +39376,6 @@ module.exports.__wbindgen_is_object = function(arg0) {
|
|
|
39371
39376
|
return ret;
|
|
39372
39377
|
};
|
|
39373
39378
|
|
|
39374
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
39375
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
39376
|
-
return addHeapObject(ret);
|
|
39377
|
-
};
|
|
39378
|
-
|
|
39379
39379
|
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
39380
39380
|
const ret = getObject(arg0);
|
|
39381
39381
|
return addHeapObject(ret);
|
|
Binary file
|
|
@@ -8,12 +8,12 @@ export function check_block_or_tx_signatures(a: number, b: number, c: number): v
|
|
|
8
8
|
export function get_necessary_data_list_js(a: number, b: number, c: number): void;
|
|
9
9
|
export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
|
|
10
10
|
export function extract_hashes_from_transaction_js(a: number, b: number, c: number): void;
|
|
11
|
+
export function cbor_to_json(a: number, b: number, c: number): void;
|
|
11
12
|
export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
|
|
12
13
|
export function decode_plutus_program_pretty_uplc(a: number, b: number, c: number): void;
|
|
13
14
|
export function get_utxo_list_from_tx(a: number, b: number, c: number): void;
|
|
14
15
|
export function execute_tx_scripts(a: number, b: number, c: number, d: number, e: number): void;
|
|
15
16
|
export function get_ref_script_bytes(a: number, b: number, c: number, d: number): void;
|
|
16
|
-
export function cbor_to_json(a: number, b: number, c: number): void;
|
|
17
17
|
export function __wbg_noconfidenceaction_free(a: number): void;
|
|
18
18
|
export function noconfidenceaction_to_bytes(a: number, b: number): void;
|
|
19
19
|
export function noconfidenceaction_from_bytes(a: number, b: number, c: number): void;
|
package/package.json
CHANGED