@cardananium/cquisitor-lib 0.1.0-beta.7 → 0.1.0-beta.8
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_bg.wasm → cquisitor_lib_bg.wasm} +0 -0
- package/node/cquisitor_lib.d.ts +417 -0
- package/node/cquisitor_lib.js +39586 -0
- package/node/cquisitor_lib_bg.wasm +0 -0
- package/node/cquisitor_lib_bg.wasm.d.ts +2437 -0
- package/package.json +16 -12
- package/{browser/cquisitor_lib.d.ts → cquisitor_lib.d.ts} +0 -0
- package/{browser/cquisitor_lib.js → cquisitor_lib.js} +35 -35
- /package/{browser/cquisitor_lib_bg.wasm.d.ts → cquisitor_lib_bg.wasm.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -3,24 +3,28 @@
|
|
|
3
3
|
"collaborators": [
|
|
4
4
|
"Evgenii Lisitskii <evgeniilisitskii@gmail.com>"
|
|
5
5
|
],
|
|
6
|
-
"version": "0.1.0-beta.
|
|
6
|
+
"version": "0.1.0-beta.8",
|
|
7
7
|
"files": [
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
8
|
+
"node/cquisitor_lib_bg.wasm",
|
|
9
|
+
"node/cquisitor_lib.js",
|
|
10
|
+
"node/cquisitor_lib.d.ts",
|
|
11
|
+
"node/cquisitor_lib_bg.wasm.d.ts",
|
|
12
|
+
"cquisitor_lib_bg.wasm",
|
|
13
|
+
"cquisitor_lib.js",
|
|
14
|
+
"cquisitor_lib.d.ts",
|
|
15
|
+
"cquisitor_lib_bg.wasm.d.ts"
|
|
12
16
|
],
|
|
13
|
-
"main": "./
|
|
14
|
-
"types": "./
|
|
15
|
-
"browser": "./
|
|
17
|
+
"main": "./node/cquisitor_lib.js",
|
|
18
|
+
"types": "./node/cquisitor_lib.d.ts",
|
|
19
|
+
"browser": "./cquisitor_lib.js",
|
|
16
20
|
"exports": {
|
|
17
21
|
".": {
|
|
18
22
|
"node": {
|
|
19
|
-
"import": "./
|
|
20
|
-
"require": "./
|
|
23
|
+
"import": "./node/cquisitor_lib.js",
|
|
24
|
+
"require": "./node/cquisitor_lib.js"
|
|
21
25
|
},
|
|
22
|
-
"browser": "./
|
|
23
|
-
"default": "./
|
|
26
|
+
"browser": "./cquisitor_lib.js",
|
|
27
|
+
"default": "./node/cquisitor_lib.js"
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
}
|
|
File without changes
|
|
@@ -1014,44 +1014,66 @@ function handleError(f, args) {
|
|
|
1014
1014
|
}
|
|
1015
1015
|
/**
|
|
1016
1016
|
*/
|
|
1017
|
-
export const
|
|
1017
|
+
export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1018
1018
|
/**
|
|
1019
1019
|
*/
|
|
1020
1020
|
export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1021
1021
|
/**
|
|
1022
1022
|
*/
|
|
1023
|
-
export const
|
|
1023
|
+
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", });
|
|
1024
1024
|
/**
|
|
1025
1025
|
*/
|
|
1026
|
-
export const
|
|
1026
|
+
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", });
|
|
1027
1027
|
/**
|
|
1028
1028
|
*/
|
|
1029
|
-
export const
|
|
1029
|
+
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", });
|
|
1030
|
+
/**
|
|
1031
|
+
* Used to choosed the schema for a script JSON string
|
|
1032
|
+
*/
|
|
1033
|
+
export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1034
|
+
/**
|
|
1035
|
+
*/
|
|
1036
|
+
export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1030
1037
|
/**
|
|
1031
1038
|
*/
|
|
1032
1039
|
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", });
|
|
1033
1040
|
/**
|
|
1034
1041
|
*/
|
|
1035
|
-
export const
|
|
1042
|
+
export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1036
1043
|
/**
|
|
1037
|
-
* Used to choosed the schema for a script JSON string
|
|
1038
1044
|
*/
|
|
1039
|
-
export const
|
|
1045
|
+
export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1046
|
+
/**
|
|
1047
|
+
*/
|
|
1048
|
+
export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1040
1049
|
/**
|
|
1041
1050
|
*/
|
|
1042
1051
|
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", });
|
|
1043
1052
|
/**
|
|
1044
1053
|
*/
|
|
1045
|
-
export const
|
|
1054
|
+
export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1046
1055
|
/**
|
|
1056
|
+
* Each new language uses a different namespace for hashing its script
|
|
1057
|
+
* This is because you could have a language where the same bytes have different semantics
|
|
1058
|
+
* So this avoids scripts in different languages mapping to the same hash
|
|
1059
|
+
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1047
1060
|
*/
|
|
1048
|
-
export const
|
|
1061
|
+
export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1062
|
+
/**
|
|
1063
|
+
*/
|
|
1064
|
+
export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1049
1065
|
/**
|
|
1050
1066
|
*/
|
|
1051
1067
|
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", });
|
|
1052
1068
|
/**
|
|
1053
1069
|
*/
|
|
1054
|
-
export const
|
|
1070
|
+
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", });
|
|
1071
|
+
/**
|
|
1072
|
+
*/
|
|
1073
|
+
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", });
|
|
1074
|
+
/**
|
|
1075
|
+
*/
|
|
1076
|
+
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1055
1077
|
/**
|
|
1056
1078
|
*/
|
|
1057
1079
|
export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
@@ -1076,32 +1098,10 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
|
1076
1098
|
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1077
1099
|
/**
|
|
1078
1100
|
*/
|
|
1079
|
-
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", });
|
|
1080
|
-
/**
|
|
1081
|
-
*/
|
|
1082
|
-
export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1083
|
-
/**
|
|
1084
|
-
*/
|
|
1085
|
-
export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1086
|
-
/**
|
|
1087
|
-
* Each new language uses a different namespace for hashing its script
|
|
1088
|
-
* This is because you could have a language where the same bytes have different semantics
|
|
1089
|
-
* So this avoids scripts in different languages mapping to the same hash
|
|
1090
|
-
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1091
|
-
*/
|
|
1092
|
-
export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1093
|
-
/**
|
|
1094
|
-
*/
|
|
1095
|
-
export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1096
|
-
/**
|
|
1097
|
-
*/
|
|
1098
|
-
export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1099
|
-
/**
|
|
1100
|
-
*/
|
|
1101
1101
|
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", });
|
|
1102
1102
|
/**
|
|
1103
1103
|
*/
|
|
1104
|
-
export const
|
|
1104
|
+
export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1105
1105
|
/**
|
|
1106
1106
|
* JSON <-> PlutusData conversion schemas.
|
|
1107
1107
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -1155,10 +1155,10 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1155
1155
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1156
1156
|
/**
|
|
1157
1157
|
*/
|
|
1158
|
-
export const
|
|
1158
|
+
export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1159
1159
|
/**
|
|
1160
1160
|
*/
|
|
1161
|
-
export const
|
|
1161
|
+
export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1162
1162
|
|
|
1163
1163
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1164
1164
|
? { register: () => {}, unregister: () => {} }
|
|
File without changes
|