@cardananium/cquisitor-lib 0.1.0-beta.30 → 0.1.0-beta.31
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.
|
@@ -1118,10 +1118,13 @@ function handleError(f, args) {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
/**
|
|
1120
1120
|
*/
|
|
1121
|
-
export const
|
|
1121
|
+
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", });
|
|
1122
1122
|
/**
|
|
1123
1123
|
*/
|
|
1124
|
-
export const
|
|
1124
|
+
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", });
|
|
1125
|
+
/**
|
|
1126
|
+
*/
|
|
1127
|
+
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", });
|
|
1125
1128
|
/**
|
|
1126
1129
|
* JSON <-> PlutusData conversion schemas.
|
|
1127
1130
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -1174,64 +1177,73 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1174
1177
|
*/
|
|
1175
1178
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1176
1179
|
/**
|
|
1177
|
-
* Used to choosed the schema for a script JSON string
|
|
1178
1180
|
*/
|
|
1179
|
-
export const
|
|
1181
|
+
export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1182
|
+
/**
|
|
1183
|
+
*/
|
|
1184
|
+
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", });
|
|
1180
1185
|
/**
|
|
1181
1186
|
*/
|
|
1182
1187
|
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", });
|
|
1183
1188
|
/**
|
|
1184
|
-
* Each new language uses a different namespace for hashing its script
|
|
1185
|
-
* This is because you could have a language where the same bytes have different semantics
|
|
1186
|
-
* So this avoids scripts in different languages mapping to the same hash
|
|
1187
|
-
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1188
1189
|
*/
|
|
1189
|
-
export const
|
|
1190
|
+
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", });
|
|
1190
1191
|
/**
|
|
1191
1192
|
*/
|
|
1192
|
-
export const
|
|
1193
|
+
export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1193
1194
|
/**
|
|
1194
1195
|
*/
|
|
1195
|
-
export const
|
|
1196
|
+
export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1196
1197
|
/**
|
|
1197
1198
|
*/
|
|
1198
|
-
export const
|
|
1199
|
+
export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1199
1200
|
/**
|
|
1200
1201
|
*/
|
|
1201
1202
|
export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1202
1203
|
/**
|
|
1204
|
+
* Each new language uses a different namespace for hashing its script
|
|
1205
|
+
* This is because you could have a language where the same bytes have different semantics
|
|
1206
|
+
* So this avoids scripts in different languages mapping to the same hash
|
|
1207
|
+
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1203
1208
|
*/
|
|
1204
|
-
export const
|
|
1209
|
+
export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1205
1210
|
/**
|
|
1206
1211
|
*/
|
|
1207
|
-
export const
|
|
1212
|
+
export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1208
1213
|
/**
|
|
1209
1214
|
*/
|
|
1210
|
-
export const
|
|
1215
|
+
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", });
|
|
1211
1216
|
/**
|
|
1217
|
+
* Used to choosed the schema for a script JSON string
|
|
1212
1218
|
*/
|
|
1213
|
-
export const
|
|
1219
|
+
export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1214
1220
|
/**
|
|
1215
1221
|
*/
|
|
1216
|
-
export const
|
|
1222
|
+
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1217
1223
|
/**
|
|
1218
1224
|
*/
|
|
1219
|
-
export const
|
|
1225
|
+
export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1220
1226
|
/**
|
|
1221
1227
|
*/
|
|
1222
|
-
export const
|
|
1228
|
+
export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1223
1229
|
/**
|
|
1224
1230
|
*/
|
|
1225
|
-
export const
|
|
1231
|
+
export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1226
1232
|
/**
|
|
1227
1233
|
*/
|
|
1228
|
-
export const
|
|
1234
|
+
export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1229
1235
|
/**
|
|
1230
1236
|
*/
|
|
1231
1237
|
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", });
|
|
1232
1238
|
/**
|
|
1233
1239
|
*/
|
|
1234
|
-
export const
|
|
1240
|
+
export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1241
|
+
/**
|
|
1242
|
+
*/
|
|
1243
|
+
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", });
|
|
1244
|
+
/**
|
|
1245
|
+
*/
|
|
1246
|
+
export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1235
1247
|
/**
|
|
1236
1248
|
*/
|
|
1237
1249
|
export const CoinSelectionStrategyCIP2 = Object.freeze({
|
|
@@ -1251,18 +1263,6 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
|
1251
1263
|
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1252
1264
|
*/
|
|
1253
1265
|
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1254
|
-
/**
|
|
1255
|
-
*/
|
|
1256
|
-
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1257
|
-
/**
|
|
1258
|
-
*/
|
|
1259
|
-
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", });
|
|
1260
|
-
/**
|
|
1261
|
-
*/
|
|
1262
|
-
export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1263
|
-
/**
|
|
1264
|
-
*/
|
|
1265
|
-
export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1266
1266
|
|
|
1267
1267
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1268
1268
|
? { register: () => {}, unregister: () => {} }
|
|
Binary file
|
package/node/cquisitor_lib.js
CHANGED
|
@@ -1113,13 +1113,13 @@ function handleError(f, args) {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
/**
|
|
1115
1115
|
*/
|
|
1116
|
-
module.exports.
|
|
1116
|
+
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", });
|
|
1117
1117
|
/**
|
|
1118
1118
|
*/
|
|
1119
|
-
module.exports.
|
|
1119
|
+
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1120
1120
|
/**
|
|
1121
1121
|
*/
|
|
1122
|
-
module.exports.
|
|
1122
|
+
module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1123
1123
|
/**
|
|
1124
1124
|
*/
|
|
1125
1125
|
module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
@@ -1127,83 +1127,60 @@ module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1"
|
|
|
1127
1127
|
*/
|
|
1128
1128
|
module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1129
1129
|
/**
|
|
1130
|
-
* Used to choosed the schema for a script JSON string
|
|
1131
|
-
*/
|
|
1132
|
-
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1133
|
-
/**
|
|
1134
|
-
*/
|
|
1135
|
-
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1136
|
-
/**
|
|
1137
|
-
*/
|
|
1138
|
-
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1139
|
-
/**
|
|
1140
|
-
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1141
|
-
*/
|
|
1142
|
-
LargestFirst:0,"0":"LargestFirst",
|
|
1143
|
-
/**
|
|
1144
|
-
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1145
1130
|
*/
|
|
1146
|
-
|
|
1147
|
-
/**
|
|
1148
|
-
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1149
|
-
*/
|
|
1150
|
-
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1131
|
+
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", });
|
|
1151
1132
|
/**
|
|
1152
|
-
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1153
1133
|
*/
|
|
1154
|
-
|
|
1134
|
+
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1155
1135
|
/**
|
|
1156
1136
|
*/
|
|
1157
|
-
module.exports.
|
|
1137
|
+
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", });
|
|
1158
1138
|
/**
|
|
1159
1139
|
*/
|
|
1160
|
-
module.exports.
|
|
1140
|
+
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", });
|
|
1161
1141
|
/**
|
|
1162
1142
|
*/
|
|
1163
|
-
module.exports.
|
|
1143
|
+
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1164
1144
|
/**
|
|
1165
|
-
* Each new language uses a different namespace for hashing its script
|
|
1166
|
-
* This is because you could have a language where the same bytes have different semantics
|
|
1167
|
-
* So this avoids scripts in different languages mapping to the same hash
|
|
1168
|
-
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1169
1145
|
*/
|
|
1170
|
-
module.exports.
|
|
1146
|
+
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1171
1147
|
/**
|
|
1172
1148
|
*/
|
|
1173
|
-
module.exports.
|
|
1149
|
+
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1174
1150
|
/**
|
|
1175
1151
|
*/
|
|
1176
1152
|
module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1177
1153
|
/**
|
|
1178
1154
|
*/
|
|
1179
|
-
module.exports.
|
|
1180
|
-
/**
|
|
1181
|
-
*/
|
|
1182
|
-
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1155
|
+
module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1183
1156
|
/**
|
|
1184
1157
|
*/
|
|
1185
|
-
module.exports.
|
|
1158
|
+
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1186
1159
|
/**
|
|
1187
1160
|
*/
|
|
1188
|
-
module.exports.
|
|
1161
|
+
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", });
|
|
1189
1162
|
/**
|
|
1190
1163
|
*/
|
|
1191
|
-
module.exports.
|
|
1164
|
+
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1192
1165
|
/**
|
|
1166
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1193
1167
|
*/
|
|
1194
|
-
|
|
1168
|
+
LargestFirst:0,"0":"LargestFirst",
|
|
1195
1169
|
/**
|
|
1170
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1196
1171
|
*/
|
|
1197
|
-
|
|
1172
|
+
RandomImprove:1,"1":"RandomImprove",
|
|
1198
1173
|
/**
|
|
1174
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1199
1175
|
*/
|
|
1200
|
-
|
|
1176
|
+
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1201
1177
|
/**
|
|
1178
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1202
1179
|
*/
|
|
1203
|
-
|
|
1180
|
+
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1204
1181
|
/**
|
|
1205
1182
|
*/
|
|
1206
|
-
module.exports.
|
|
1183
|
+
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", });
|
|
1207
1184
|
/**
|
|
1208
1185
|
* JSON <-> PlutusData conversion schemas.
|
|
1209
1186
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -1257,7 +1234,30 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1257
1234
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1258
1235
|
/**
|
|
1259
1236
|
*/
|
|
1260
|
-
module.exports.
|
|
1237
|
+
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", });
|
|
1238
|
+
/**
|
|
1239
|
+
* Each new language uses a different namespace for hashing its script
|
|
1240
|
+
* This is because you could have a language where the same bytes have different semantics
|
|
1241
|
+
* So this avoids scripts in different languages mapping to the same hash
|
|
1242
|
+
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1243
|
+
*/
|
|
1244
|
+
module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1245
|
+
/**
|
|
1246
|
+
*/
|
|
1247
|
+
module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1248
|
+
/**
|
|
1249
|
+
* Used to choosed the schema for a script JSON string
|
|
1250
|
+
*/
|
|
1251
|
+
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1252
|
+
/**
|
|
1253
|
+
*/
|
|
1254
|
+
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", });
|
|
1255
|
+
/**
|
|
1256
|
+
*/
|
|
1257
|
+
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", });
|
|
1258
|
+
/**
|
|
1259
|
+
*/
|
|
1260
|
+
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1261
1261
|
|
|
1262
1262
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1263
1263
|
? { register: () => {}, unregister: () => {} }
|
|
Binary file
|
package/package.json
CHANGED