@cardananium/cquisitor-lib 0.1.0-beta.34 → 0.1.0-beta.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cquisitor_lib.d.ts +2 -1
- package/browser/cquisitor_lib_bg.js +85 -82
- package/browser/cquisitor_lib_bg.wasm +0 -0
- package/browser/cquisitor_lib_bg.wasm.d.ts +2 -2
- package/node/cquisitor_lib.d.ts +2 -1
- package/node/cquisitor_lib.js +108 -105
- package/node/cquisitor_lib_bg.wasm +0 -0
- package/node/cquisitor_lib_bg.wasm.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @param {string} tx_hex
|
|
3
|
+
* @param {NetworkType} network_type
|
|
3
4
|
* @returns {string}
|
|
4
5
|
*/
|
|
5
|
-
export function get_necessary_data_list_js(tx_hex: string): string;
|
|
6
|
+
export function get_necessary_data_list_js(tx_hex: string, network_type: NetworkType): string;
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Extracts all script and datum hashes from a transaction
|
|
@@ -289,6 +289,28 @@ export function get_possible_types_for_input(input) {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
+
/**
|
|
293
|
+
* @param {string} cbor_hex
|
|
294
|
+
* @returns {any}
|
|
295
|
+
*/
|
|
296
|
+
export function cbor_to_json(cbor_hex) {
|
|
297
|
+
try {
|
|
298
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
299
|
+
const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
300
|
+
const len0 = WASM_VECTOR_LEN;
|
|
301
|
+
wasm.cbor_to_json(retptr, ptr0, len0);
|
|
302
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
303
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
304
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
305
|
+
if (r2) {
|
|
306
|
+
throw takeObject(r1);
|
|
307
|
+
}
|
|
308
|
+
return takeObject(r0);
|
|
309
|
+
} finally {
|
|
310
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
292
314
|
/**
|
|
293
315
|
* @param {string} hex_str
|
|
294
316
|
* @returns {any}
|
|
@@ -313,32 +335,35 @@ export function check_block_or_tx_signatures(hex_str) {
|
|
|
313
335
|
|
|
314
336
|
/**
|
|
315
337
|
* @param {string} tx_hex
|
|
338
|
+
* @param {string} network_type
|
|
316
339
|
* @returns {string}
|
|
317
340
|
*/
|
|
318
|
-
export function get_necessary_data_list_js(tx_hex) {
|
|
319
|
-
let
|
|
320
|
-
let
|
|
341
|
+
export function get_necessary_data_list_js(tx_hex, network_type) {
|
|
342
|
+
let deferred4_0;
|
|
343
|
+
let deferred4_1;
|
|
321
344
|
try {
|
|
322
345
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
323
346
|
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
324
347
|
const len0 = WASM_VECTOR_LEN;
|
|
325
|
-
|
|
348
|
+
const ptr1 = passStringToWasm0(network_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
349
|
+
const len1 = WASM_VECTOR_LEN;
|
|
350
|
+
wasm.get_necessary_data_list_js(retptr, ptr0, len0, ptr1, len1);
|
|
326
351
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
327
352
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
328
353
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
329
354
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
330
|
-
var
|
|
331
|
-
var
|
|
355
|
+
var ptr3 = r0;
|
|
356
|
+
var len3 = r1;
|
|
332
357
|
if (r3) {
|
|
333
|
-
|
|
358
|
+
ptr3 = 0; len3 = 0;
|
|
334
359
|
throw takeObject(r2);
|
|
335
360
|
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
return getStringFromWasm0(
|
|
361
|
+
deferred4_0 = ptr3;
|
|
362
|
+
deferred4_1 = len3;
|
|
363
|
+
return getStringFromWasm0(ptr3, len3);
|
|
339
364
|
} finally {
|
|
340
365
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
341
|
-
wasm.__wbindgen_free(
|
|
366
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
342
367
|
}
|
|
343
368
|
}
|
|
344
369
|
|
|
@@ -543,28 +568,6 @@ export function get_ref_script_bytes(tx_hex, output_index) {
|
|
|
543
568
|
}
|
|
544
569
|
}
|
|
545
570
|
|
|
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
571
|
function getArrayU8FromWasm0(ptr, len) {
|
|
569
572
|
ptr = ptr >>> 0;
|
|
570
573
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -1151,40 +1154,72 @@ function handleError(f, args) {
|
|
|
1151
1154
|
}
|
|
1152
1155
|
/**
|
|
1153
1156
|
*/
|
|
1154
|
-
export const
|
|
1157
|
+
export const CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1155
1158
|
/**
|
|
1159
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1156
1160
|
*/
|
|
1157
|
-
|
|
1161
|
+
LargestFirst:0,"0":"LargestFirst",
|
|
1158
1162
|
/**
|
|
1163
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1159
1164
|
*/
|
|
1160
|
-
|
|
1165
|
+
RandomImprove:1,"1":"RandomImprove",
|
|
1161
1166
|
/**
|
|
1167
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1162
1168
|
*/
|
|
1163
|
-
|
|
1169
|
+
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1164
1170
|
/**
|
|
1171
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1165
1172
|
*/
|
|
1166
|
-
|
|
1173
|
+
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1167
1174
|
/**
|
|
1175
|
+
* Each new language uses a different namespace for hashing its script
|
|
1176
|
+
* This is because you could have a language where the same bytes have different semantics
|
|
1177
|
+
* So this avoids scripts in different languages mapping to the same hash
|
|
1178
|
+
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1168
1179
|
*/
|
|
1169
|
-
export const
|
|
1180
|
+
export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1170
1181
|
/**
|
|
1171
1182
|
*/
|
|
1172
|
-
export const
|
|
1183
|
+
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", });
|
|
1184
|
+
/**
|
|
1185
|
+
*/
|
|
1186
|
+
export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1187
|
+
/**
|
|
1188
|
+
*/
|
|
1189
|
+
export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1190
|
+
/**
|
|
1191
|
+
*/
|
|
1192
|
+
export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1173
1193
|
/**
|
|
1174
1194
|
*/
|
|
1175
1195
|
export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1176
1196
|
/**
|
|
1177
1197
|
*/
|
|
1198
|
+
export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1199
|
+
/**
|
|
1200
|
+
*/
|
|
1178
1201
|
export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1179
1202
|
/**
|
|
1180
1203
|
*/
|
|
1181
|
-
export const
|
|
1204
|
+
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", });
|
|
1205
|
+
/**
|
|
1206
|
+
*/
|
|
1207
|
+
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", });
|
|
1208
|
+
/**
|
|
1209
|
+
*/
|
|
1210
|
+
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1211
|
+
/**
|
|
1212
|
+
*/
|
|
1213
|
+
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", });
|
|
1214
|
+
/**
|
|
1215
|
+
*/
|
|
1216
|
+
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", });
|
|
1182
1217
|
/**
|
|
1183
1218
|
*/
|
|
1184
1219
|
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", });
|
|
1185
1220
|
/**
|
|
1186
1221
|
*/
|
|
1187
|
-
export const
|
|
1222
|
+
export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1188
1223
|
/**
|
|
1189
1224
|
* JSON <-> PlutusData conversion schemas.
|
|
1190
1225
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -1237,65 +1272,33 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1237
1272
|
*/
|
|
1238
1273
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1239
1274
|
/**
|
|
1240
|
-
* Each new language uses a different namespace for hashing its script
|
|
1241
|
-
* This is because you could have a language where the same bytes have different semantics
|
|
1242
|
-
* So this avoids scripts in different languages mapping to the same hash
|
|
1243
|
-
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1244
|
-
*/
|
|
1245
|
-
export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1246
|
-
/**
|
|
1247
|
-
*/
|
|
1248
|
-
export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1249
|
-
/**
|
|
1250
|
-
*/
|
|
1251
|
-
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1252
|
-
/**
|
|
1253
1275
|
*/
|
|
1254
|
-
export const
|
|
1255
|
-
/**
|
|
1256
|
-
*/
|
|
1257
|
-
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", });
|
|
1276
|
+
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", });
|
|
1258
1277
|
/**
|
|
1259
1278
|
*/
|
|
1260
1279
|
export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1261
1280
|
/**
|
|
1262
|
-
* Used to choosed the schema for a script JSON string
|
|
1263
|
-
*/
|
|
1264
|
-
export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1265
|
-
/**
|
|
1266
|
-
*/
|
|
1267
|
-
export const CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1268
|
-
/**
|
|
1269
|
-
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1270
1281
|
*/
|
|
1271
|
-
|
|
1282
|
+
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", });
|
|
1272
1283
|
/**
|
|
1273
|
-
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1274
1284
|
*/
|
|
1275
|
-
|
|
1285
|
+
export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1276
1286
|
/**
|
|
1277
|
-
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1278
1287
|
*/
|
|
1279
|
-
|
|
1288
|
+
export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1280
1289
|
/**
|
|
1281
|
-
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1282
1290
|
*/
|
|
1283
|
-
|
|
1291
|
+
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", });
|
|
1284
1292
|
/**
|
|
1285
1293
|
*/
|
|
1286
1294
|
export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1287
1295
|
/**
|
|
1288
1296
|
*/
|
|
1289
|
-
export const
|
|
1290
|
-
/**
|
|
1291
|
-
*/
|
|
1292
|
-
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", });
|
|
1293
|
-
/**
|
|
1294
|
-
*/
|
|
1295
|
-
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", });
|
|
1297
|
+
export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1296
1298
|
/**
|
|
1299
|
+
* Used to choosed the schema for a script JSON string
|
|
1297
1300
|
*/
|
|
1298
|
-
export const
|
|
1301
|
+
export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1299
1302
|
|
|
1300
1303
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1301
1304
|
? { register: () => {}, unregister: () => {} }
|
|
Binary file
|
|
@@ -4,8 +4,9 @@ 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;
|
|
7
8
|
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 get_necessary_data_list_js(a: number, b: number, c: number, d: number, e: number): void;
|
|
9
10
|
export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
|
|
10
11
|
export function extract_hashes_from_transaction_js(a: number, b: number, c: number): void;
|
|
11
12
|
export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
|
|
@@ -13,7 +14,6 @@ export function decode_plutus_program_pretty_uplc(a: number, b: number, c: numbe
|
|
|
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.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @param {string} tx_hex
|
|
3
|
+
* @param {NetworkType} network_type
|
|
3
4
|
* @returns {string}
|
|
4
5
|
*/
|
|
5
|
-
export function get_necessary_data_list_js(tx_hex: string): string;
|
|
6
|
+
export function get_necessary_data_list_js(tx_hex: string, network_type: NetworkType): string;
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Extracts all script and datum hashes from a transaction
|
package/node/cquisitor_lib.js
CHANGED
|
@@ -284,6 +284,28 @@ module.exports.get_possible_types_for_input = function(input) {
|
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
286
|
|
|
287
|
+
/**
|
|
288
|
+
* @param {string} cbor_hex
|
|
289
|
+
* @returns {any}
|
|
290
|
+
*/
|
|
291
|
+
module.exports.cbor_to_json = function(cbor_hex) {
|
|
292
|
+
try {
|
|
293
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
294
|
+
const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
295
|
+
const len0 = WASM_VECTOR_LEN;
|
|
296
|
+
wasm.cbor_to_json(retptr, ptr0, len0);
|
|
297
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
298
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
299
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
300
|
+
if (r2) {
|
|
301
|
+
throw takeObject(r1);
|
|
302
|
+
}
|
|
303
|
+
return takeObject(r0);
|
|
304
|
+
} finally {
|
|
305
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
|
|
287
309
|
/**
|
|
288
310
|
* @param {string} hex_str
|
|
289
311
|
* @returns {any}
|
|
@@ -308,32 +330,35 @@ module.exports.check_block_or_tx_signatures = function(hex_str) {
|
|
|
308
330
|
|
|
309
331
|
/**
|
|
310
332
|
* @param {string} tx_hex
|
|
333
|
+
* @param {string} network_type
|
|
311
334
|
* @returns {string}
|
|
312
335
|
*/
|
|
313
|
-
module.exports.get_necessary_data_list_js = function(tx_hex) {
|
|
314
|
-
let
|
|
315
|
-
let
|
|
336
|
+
module.exports.get_necessary_data_list_js = function(tx_hex, network_type) {
|
|
337
|
+
let deferred4_0;
|
|
338
|
+
let deferred4_1;
|
|
316
339
|
try {
|
|
317
340
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
318
341
|
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
319
342
|
const len0 = WASM_VECTOR_LEN;
|
|
320
|
-
|
|
343
|
+
const ptr1 = passStringToWasm0(network_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
344
|
+
const len1 = WASM_VECTOR_LEN;
|
|
345
|
+
wasm.get_necessary_data_list_js(retptr, ptr0, len0, ptr1, len1);
|
|
321
346
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
322
347
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
323
348
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
324
349
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
325
|
-
var
|
|
326
|
-
var
|
|
350
|
+
var ptr3 = r0;
|
|
351
|
+
var len3 = r1;
|
|
327
352
|
if (r3) {
|
|
328
|
-
|
|
353
|
+
ptr3 = 0; len3 = 0;
|
|
329
354
|
throw takeObject(r2);
|
|
330
355
|
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
return getStringFromWasm0(
|
|
356
|
+
deferred4_0 = ptr3;
|
|
357
|
+
deferred4_1 = len3;
|
|
358
|
+
return getStringFromWasm0(ptr3, len3);
|
|
334
359
|
} finally {
|
|
335
360
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
336
|
-
wasm.__wbindgen_free(
|
|
361
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
337
362
|
}
|
|
338
363
|
};
|
|
339
364
|
|
|
@@ -538,28 +563,6 @@ module.exports.get_ref_script_bytes = function(tx_hex, output_index) {
|
|
|
538
563
|
}
|
|
539
564
|
};
|
|
540
565
|
|
|
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
566
|
function getArrayU8FromWasm0(ptr, len) {
|
|
564
567
|
ptr = ptr >>> 0;
|
|
565
568
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -1146,79 +1149,8 @@ function handleError(f, args) {
|
|
|
1146
1149
|
}
|
|
1147
1150
|
/**
|
|
1148
1151
|
*/
|
|
1149
|
-
module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1150
|
-
/**
|
|
1151
|
-
*/
|
|
1152
|
-
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", });
|
|
1153
|
-
/**
|
|
1154
|
-
*/
|
|
1155
|
-
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
|
-
*/
|
|
1158
|
-
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", });
|
|
1159
|
-
/**
|
|
1160
|
-
*/
|
|
1161
|
-
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1162
|
-
/**
|
|
1163
|
-
* Used to choosed the schema for a script JSON string
|
|
1164
|
-
*/
|
|
1165
|
-
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1166
|
-
/**
|
|
1167
|
-
*/
|
|
1168
|
-
module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1169
|
-
/**
|
|
1170
|
-
*/
|
|
1171
|
-
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", });
|
|
1172
|
-
/**
|
|
1173
|
-
*/
|
|
1174
|
-
module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1175
|
-
/**
|
|
1176
|
-
*/
|
|
1177
|
-
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", });
|
|
1178
|
-
/**
|
|
1179
|
-
*/
|
|
1180
|
-
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1181
|
-
/**
|
|
1182
|
-
*/
|
|
1183
|
-
module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1184
|
-
/**
|
|
1185
|
-
*/
|
|
1186
|
-
module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1187
|
-
/**
|
|
1188
|
-
*/
|
|
1189
|
-
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1190
|
-
/**
|
|
1191
|
-
*/
|
|
1192
|
-
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1193
|
-
/**
|
|
1194
|
-
* Each new language uses a different namespace for hashing its script
|
|
1195
|
-
* This is because you could have a language where the same bytes have different semantics
|
|
1196
|
-
* So this avoids scripts in different languages mapping to the same hash
|
|
1197
|
-
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1198
|
-
*/
|
|
1199
|
-
module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1200
|
-
/**
|
|
1201
|
-
*/
|
|
1202
|
-
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", });
|
|
1203
|
-
/**
|
|
1204
|
-
*/
|
|
1205
|
-
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1206
|
-
/**
|
|
1207
|
-
*/
|
|
1208
|
-
module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1209
|
-
/**
|
|
1210
|
-
*/
|
|
1211
|
-
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1212
|
-
/**
|
|
1213
|
-
*/
|
|
1214
1152
|
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", });
|
|
1215
1153
|
/**
|
|
1216
|
-
*/
|
|
1217
|
-
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", });
|
|
1218
|
-
/**
|
|
1219
|
-
*/
|
|
1220
|
-
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1221
|
-
/**
|
|
1222
1154
|
* JSON <-> PlutusData conversion schemas.
|
|
1223
1155
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
1224
1156
|
* https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
|
|
@@ -1271,7 +1203,43 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1271
1203
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1272
1204
|
/**
|
|
1273
1205
|
*/
|
|
1274
|
-
module.exports.
|
|
1206
|
+
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", });
|
|
1207
|
+
/**
|
|
1208
|
+
*/
|
|
1209
|
+
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1210
|
+
/**
|
|
1211
|
+
*/
|
|
1212
|
+
module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1213
|
+
/**
|
|
1214
|
+
*/
|
|
1215
|
+
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", });
|
|
1216
|
+
/**
|
|
1217
|
+
*/
|
|
1218
|
+
module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1219
|
+
/**
|
|
1220
|
+
*/
|
|
1221
|
+
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1222
|
+
/**
|
|
1223
|
+
*/
|
|
1224
|
+
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1225
|
+
/**
|
|
1226
|
+
*/
|
|
1227
|
+
module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1228
|
+
/**
|
|
1229
|
+
*/
|
|
1230
|
+
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1231
|
+
/**
|
|
1232
|
+
*/
|
|
1233
|
+
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", });
|
|
1234
|
+
/**
|
|
1235
|
+
*/
|
|
1236
|
+
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1237
|
+
/**
|
|
1238
|
+
*/
|
|
1239
|
+
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", });
|
|
1240
|
+
/**
|
|
1241
|
+
*/
|
|
1242
|
+
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", });
|
|
1275
1243
|
/**
|
|
1276
1244
|
*/
|
|
1277
1245
|
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
@@ -1291,6 +1259,41 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
|
1291
1259
|
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1292
1260
|
*/
|
|
1293
1261
|
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1262
|
+
/**
|
|
1263
|
+
*/
|
|
1264
|
+
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1265
|
+
/**
|
|
1266
|
+
*/
|
|
1267
|
+
module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1268
|
+
/**
|
|
1269
|
+
*/
|
|
1270
|
+
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", });
|
|
1271
|
+
/**
|
|
1272
|
+
*/
|
|
1273
|
+
module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1274
|
+
/**
|
|
1275
|
+
* Used to choosed the schema for a script JSON string
|
|
1276
|
+
*/
|
|
1277
|
+
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1278
|
+
/**
|
|
1279
|
+
*/
|
|
1280
|
+
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1281
|
+
/**
|
|
1282
|
+
*/
|
|
1283
|
+
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", });
|
|
1284
|
+
/**
|
|
1285
|
+
* Each new language uses a different namespace for hashing its script
|
|
1286
|
+
* This is because you could have a language where the same bytes have different semantics
|
|
1287
|
+
* So this avoids scripts in different languages mapping to the same hash
|
|
1288
|
+
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1289
|
+
*/
|
|
1290
|
+
module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1291
|
+
/**
|
|
1292
|
+
*/
|
|
1293
|
+
module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1294
|
+
/**
|
|
1295
|
+
*/
|
|
1296
|
+
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", });
|
|
1294
1297
|
|
|
1295
1298
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1296
1299
|
? { register: () => {}, unregister: () => {} }
|
|
Binary file
|
|
@@ -4,8 +4,9 @@ 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;
|
|
7
8
|
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 get_necessary_data_list_js(a: number, b: number, c: number, d: number, e: number): void;
|
|
9
10
|
export function validate_transaction_js(a: number, b: number, c: number, d: number, e: number): void;
|
|
10
11
|
export function extract_hashes_from_transaction_js(a: number, b: number, c: number): void;
|
|
11
12
|
export function decode_plutus_program_uplc_json(a: number, b: number, c: number): void;
|
|
@@ -13,7 +14,6 @@ export function decode_plutus_program_pretty_uplc(a: number, b: number, c: numbe
|
|
|
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