From 87a4b6ad064fba018633e8f5db102d94d939400c Mon Sep 17 00:00:00 2001 From: Alexey Kiselev Date: Mon, 4 Jan 2021 14:14:07 +0300 Subject: [PATCH] Costs of RIDE functions transactionHeightByID and blockInfoByHeight reduced for version 4 of standard library (#406) --- pkg/ride/constants.go | 152 +++++++++++++++++++------------------- pkg/ride/functions.go | 4 +- pkg/ride/generate/main.go | 2 + 3 files changed, 80 insertions(+), 78 deletions(-) diff --git a/pkg/ride/constants.go b/pkg/ride/constants.go index 77e11e098..88fed6c52 100644 --- a/pkg/ride/constants.go +++ b/pkg/ride/constants.go @@ -90,36 +90,20 @@ func checkConstantV4(name string) (uint16, bool) { return 0, false } -func newSha384(RideEnvironment) rideType { - return rideNamedType{name: "Sha384"} -} - -func createSha384(env RideEnvironment, args ...rideType) (rideType, error) { - return rideNamedType{name: "Sha384"}, nil -} - -func newCeiling(RideEnvironment) rideType { - return rideNamedType{name: "Ceiling"} -} - -func createCeiling(env RideEnvironment, args ...rideType) (rideType, error) { - return rideNamedType{name: "Ceiling"}, nil -} - -func newUp(RideEnvironment) rideType { - return rideNamedType{name: "Up"} +func newHalfDown(RideEnvironment) rideType { + return rideNamedType{name: "HalfDown"} } -func createUp(env RideEnvironment, args ...rideType) (rideType, error) { - return rideNamedType{name: "Up"}, nil +func createHalfDown(env RideEnvironment, args ...rideType) (rideType, error) { + return rideNamedType{name: "HalfDown"}, nil } -func newNoAlg(RideEnvironment) rideType { - return rideNamedType{name: "NoAlg"} +func newMd5(RideEnvironment) rideType { + return rideNamedType{name: "Md5"} } -func createNoAlg(env RideEnvironment, args ...rideType) (rideType, error) { - return rideNamedType{name: "NoAlg"}, nil +func createMd5(env RideEnvironment, args ...rideType) (rideType, error) { + return rideNamedType{name: "Md5"}, nil } func newSha1(RideEnvironment) rideType { @@ -130,30 +114,6 @@ func createSha1(env RideEnvironment, args ...rideType) (rideType, error) { return rideNamedType{name: "Sha1"}, nil } -func newSha224(RideEnvironment) rideType { - return rideNamedType{name: "Sha224"} -} - -func createSha224(env RideEnvironment, args ...rideType) (rideType, error) { - return rideNamedType{name: "Sha224"}, nil -} - -func newSha3256(RideEnvironment) rideType { - return rideNamedType{name: "Sha3256"} -} - -func createSha3256(env RideEnvironment, args ...rideType) (rideType, error) { - return rideNamedType{name: "Sha3256"}, nil -} - -func newSha3224(RideEnvironment) rideType { - return rideNamedType{name: "Sha3224"} -} - -func createSha3224(env RideEnvironment, args ...rideType) (rideType, error) { - return rideNamedType{name: "Sha3224"}, nil -} - func newSha3384(RideEnvironment) rideType { return rideNamedType{name: "Sha3384"} } @@ -162,12 +122,12 @@ func createSha3384(env RideEnvironment, args ...rideType) (rideType, error) { return rideNamedType{name: "Sha3384"}, nil } -func newBuy(RideEnvironment) rideType { - return rideNamedType{name: "Buy"} +func newSell(RideEnvironment) rideType { + return rideNamedType{name: "Sell"} } -func createBuy(env RideEnvironment, args ...rideType) (rideType, error) { - return rideNamedType{name: "Buy"}, nil +func createSell(env RideEnvironment, args ...rideType) (rideType, error) { + return rideNamedType{name: "Sell"}, nil } func newFloor(RideEnvironment) rideType { @@ -178,20 +138,20 @@ func createFloor(env RideEnvironment, args ...rideType) (rideType, error) { return rideNamedType{name: "Floor"}, nil } -func newHalfDown(RideEnvironment) rideType { - return rideNamedType{name: "HalfDown"} +func newUp(RideEnvironment) rideType { + return rideNamedType{name: "Up"} } -func createHalfDown(env RideEnvironment, args ...rideType) (rideType, error) { - return rideNamedType{name: "HalfDown"}, nil +func createUp(env RideEnvironment, args ...rideType) (rideType, error) { + return rideNamedType{name: "Up"}, nil } -func newSha256(RideEnvironment) rideType { - return rideNamedType{name: "Sha256"} +func newNoAlg(RideEnvironment) rideType { + return rideNamedType{name: "NoAlg"} } -func createSha256(env RideEnvironment, args ...rideType) (rideType, error) { - return rideNamedType{name: "Sha256"}, nil +func createNoAlg(env RideEnvironment, args ...rideType) (rideType, error) { + return rideNamedType{name: "NoAlg"}, nil } func newSha512(RideEnvironment) rideType { @@ -202,28 +162,28 @@ func createSha512(env RideEnvironment, args ...rideType) (rideType, error) { return rideNamedType{name: "Sha512"}, nil } -func newSha3512(RideEnvironment) rideType { - return rideNamedType{name: "Sha3512"} +func newSha3224(RideEnvironment) rideType { + return rideNamedType{name: "Sha3224"} } -func createSha3512(env RideEnvironment, args ...rideType) (rideType, error) { - return rideNamedType{name: "Sha3512"}, nil +func createSha3224(env RideEnvironment, args ...rideType) (rideType, error) { + return rideNamedType{name: "Sha3224"}, nil } -func newSell(RideEnvironment) rideType { - return rideNamedType{name: "Sell"} +func newSha3512(RideEnvironment) rideType { + return rideNamedType{name: "Sha3512"} } -func createSell(env RideEnvironment, args ...rideType) (rideType, error) { - return rideNamedType{name: "Sell"}, nil +func createSha3512(env RideEnvironment, args ...rideType) (rideType, error) { + return rideNamedType{name: "Sha3512"}, nil } -func newHalfEven(RideEnvironment) rideType { - return rideNamedType{name: "HalfEven"} +func newCeiling(RideEnvironment) rideType { + return rideNamedType{name: "Ceiling"} } -func createHalfEven(env RideEnvironment, args ...rideType) (rideType, error) { - return rideNamedType{name: "HalfEven"}, nil +func createCeiling(env RideEnvironment, args ...rideType) (rideType, error) { + return rideNamedType{name: "Ceiling"}, nil } func newDown(RideEnvironment) rideType { @@ -234,6 +194,22 @@ func createDown(env RideEnvironment, args ...rideType) (rideType, error) { return rideNamedType{name: "Down"}, nil } +func newBuy(RideEnvironment) rideType { + return rideNamedType{name: "Buy"} +} + +func createBuy(env RideEnvironment, args ...rideType) (rideType, error) { + return rideNamedType{name: "Buy"}, nil +} + +func newSha3256(RideEnvironment) rideType { + return rideNamedType{name: "Sha3256"} +} + +func createSha3256(env RideEnvironment, args ...rideType) (rideType, error) { + return rideNamedType{name: "Sha3256"}, nil +} + func newHalfUp(RideEnvironment) rideType { return rideNamedType{name: "HalfUp"} } @@ -242,10 +218,34 @@ func createHalfUp(env RideEnvironment, args ...rideType) (rideType, error) { return rideNamedType{name: "HalfUp"}, nil } -func newMd5(RideEnvironment) rideType { - return rideNamedType{name: "Md5"} +func newSha224(RideEnvironment) rideType { + return rideNamedType{name: "Sha224"} } -func createMd5(env RideEnvironment, args ...rideType) (rideType, error) { - return rideNamedType{name: "Md5"}, nil +func createSha224(env RideEnvironment, args ...rideType) (rideType, error) { + return rideNamedType{name: "Sha224"}, nil +} + +func newSha256(RideEnvironment) rideType { + return rideNamedType{name: "Sha256"} +} + +func createSha256(env RideEnvironment, args ...rideType) (rideType, error) { + return rideNamedType{name: "Sha256"}, nil +} + +func newSha384(RideEnvironment) rideType { + return rideNamedType{name: "Sha384"} +} + +func createSha384(env RideEnvironment, args ...rideType) (rideType, error) { + return rideNamedType{name: "Sha384"}, nil +} + +func newHalfEven(RideEnvironment) rideType { + return rideNamedType{name: "HalfEven"} +} + +func createHalfEven(env RideEnvironment, args ...rideType) (rideType, error) { + return rideNamedType{name: "HalfEven"}, nil } diff --git a/pkg/ride/functions.go b/pkg/ride/functions.go index 8530d9550..299772c37 100644 --- a/pkg/ride/functions.go +++ b/pkg/ride/functions.go @@ -73,8 +73,8 @@ func costV3(id int) int { } var _functions_V4 = [...]rideFunction{unaryNot, neq, unaryMinus, eq, instanceOf, sum, transactionHeightByID, assetInfoV4, blockInfoByHeight, transferByID, wavesBalanceV4, assetBalanceV4, sub, gt, ge, mul, intFromArray, booleanFromArray, bytesFromArray, stringFromArray, div, intFromState, booleanFromState, bytesFromState, stringFromState, mod, addressFromRecipient, addressToString, addressFromString, fraction, transferFromProtobuf, pow, calculateAssetID, log, simplifiedIssue, fullIssue, limitedCreateList, appendToList, concatList, indexOfList, lastIndexOfList, bytesToUTF8String, bytesToInt, bytesToIntWithOffset, indexOfSubstring, indexOfSubstringWithOffset, splitString, parseInt, lastIndexOfSubstring, lastIndexOfSubstringWithOffset, makeString, newTuple2, newTuple3, newTuple4, newTuple5, newTuple6, newTuple7, newTuple8, newTuple9, newTuple10, newTuple11, newTuple12, newTuple13, newTuple14, newTuple15, newTuple16, newTuple17, newTuple18, newTuple19, newTuple20, newTuple21, newTuple22, throw, sizeBytes, takeBytes, dropBytes, concatBytes, bls12Groth16Verify_1, bls12Groth16Verify_2, bls12Groth16Verify_3, bls12Groth16Verify_4, bls12Groth16Verify_5, bls12Groth16Verify_6, bls12Groth16Verify_7, bls12Groth16Verify_8, bls12Groth16Verify_9, bls12Groth16Verify_10, bls12Groth16Verify_11, bls12Groth16Verify_12, bls12Groth16Verify_13, bls12Groth16Verify_14, bls12Groth16Verify_15, bn256Groth16Verify_1, bn256Groth16Verify_2, bn256Groth16Verify_3, bn256Groth16Verify_4, bn256Groth16Verify_5, bn256Groth16Verify_6, bn256Groth16Verify_7, bn256Groth16Verify_8, bn256Groth16Verify_9, bn256Groth16Verify_10, bn256Groth16Verify_11, bn256Groth16Verify_12, bn256Groth16Verify_13, bn256Groth16Verify_14, bn256Groth16Verify_15, sigVerify_8, sigVerify_16, sigVerify_32, sigVerify_64, sigVerify_128, rsaVerify_16, rsaVerify_32, rsaVerify_64, rsaVerify_128, keccak256_16, keccak256_32, keccak256_64, keccak256_128, blake2b256_16, blake2b256_32, blake2b256_64, blake2b256_128, sha256_16, sha256_32, sha256_64, sha256_128, concatStrings, takeString, dropString, sizeString, sizeList, getList, median, max, min, intToBytes, stringToBytes, booleanToBytes, intToString, booleanToString, sigVerify, keccak256, blake2b256, sha256, rsaVerify, toBase58, fromBase58, toBase64, fromBase64, toBase16, fromBase16, rebuildMerkleRoot, bls12Groth16Verify, bn256Groth16Verify, ecRecover, intValueFromArray, booleanValueFromArray, bytesValueFromArray, stringValueFromArray, intValueFromState, booleanValueFromState, bytesValueFromState, stringValueFromState, addressFromString, addressValueFromString, bytesValueFromArrayByIndex, booleanValueFromArrayByIndex, intValueFromArrayByIndex, stringValueFromArrayByIndex, address, alias, assetPair, checkedBytesDataEntry, checkedBooleanDataEntry, burn, createBuy, createCeiling, dataTransaction, checkedDeleteEntry, createDown, createFloor, createHalfDown, createHalfEven, createHalfUp, checkedIntDataEntry, createMd5, createNoAlg, reissue, scriptTransfer, createSell, createSha1, createSha224, createSha256, createSha3224, createSha3256, createSha3384, createSha3512, createSha384, createSha512, sponsorship, checkedStringDataEntry, unit, createUp, addressFromPublicKey, addressFromString, contains, containsElement, dropRightString, dropRightBytes, extract, bytesFromArrayByIndex, booleanFromArrayByIndex, intFromArrayByIndex, stringFromArrayByIndex, isDefined, parseIntValue, takeRightString, takeRightBytes, throw0, value, valueOrElse, valueOrErrorMessage} -var _catalogue_V4 = [...]int{1, 1, 1, 1, 1, 1, 100, 15, 100, 60, 10, 10, 1, 1, 1, 1, 10, 10, 10, 10, 1, 10, 10, 10, 10, 1, 5, 10, 1, 1, 5, 100, 10, 100, 1, 1, 1, 1, 4, 5, 5, 7, 1, 1, 3, 3, 75, 2, 3, 3, 30, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 6, 2, 1200, 1300, 1400, 1500, 1600, 1700, 1800, 1900, 2000, 2100, 2200, 2300, 2400, 2500, 2600, 800, 850, 950, 1000, 1050, 1100, 1150, 1200, 1250, 1300, 1350, 1400, 1450, 1550, 1600, 47, 57, 70, 102, 172, 500, 550, 625, 750, 10, 25, 50, 100, 10, 25, 50, 100, 10, 25, 50, 100, 20, 20, 20, 1, 2, 2, 20, 3, 3, 1, 8, 1, 1, 1, 200, 200, 200, 200, 1000, 3, 1, 35, 40, 10, 10, 30, 2700, 1650, 70, 10, 10, 10, 10, 10, 10, 10, 10, 1, 124, 10, 10, 10, 10, 1, 1, 2, 2, 2, 2, 0, 0, 9, 1, 0, 0, 0, 0, 0, 2, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 63, 124, 3, 5, 20, 6, 13, 30, 30, 30, 30, 1, 2, 20, 6, 1, 2, 2, 2} -var CatalogueV4 = map[string]int{"!": 1, "!=": 1, "-": 1, "0": 1, "1": 1, "100": 1, "1001": 100, "1004": 15, "1005": 100, "1006": 60, "1007": 10, "1008": 10, "101": 1, "102": 1, "103": 1, "104": 1, "1040": 10, "1041": 10, "1042": 10, "1043": 10, "105": 1, "1050": 10, "1051": 10, "1052": 10, "1053": 10, "106": 1, "1060": 5, "1061": 10, "1062": 1, "107": 1, "1070": 5, "108": 100, "1080": 10, "109": 100, "1090": 1, "1091": 1, "1100": 1, "1101": 1, "1102": 4, "1103": 5, "1104": 5, "1200": 7, "1201": 1, "1202": 1, "1203": 3, "1204": 3, "1205": 75, "1206": 2, "1207": 3, "1208": 3, "1209": 30, "1300": 1, "1301": 1, "1302": 1, "1303": 1, "1304": 1, "1305": 1, "1306": 1, "1307": 1, "1308": 1, "1309": 1, "1310": 1, "1311": 1, "1312": 1, "1313": 1, "1314": 1, "1315": 1, "1316": 1, "1317": 1, "1318": 1, "1319": 1, "1320": 1, "2": 1, "200": 1, "201": 6, "202": 6, "203": 2, "2400": 1200, "2401": 1300, "2402": 1400, "2403": 1500, "2404": 1600, "2405": 1700, "2406": 1800, "2407": 1900, "2408": 2000, "2409": 2100, "2410": 2200, "2411": 2300, "2412": 2400, "2413": 2500, "2414": 2600, "2450": 800, "2451": 850, "2452": 950, "2453": 1000, "2454": 1050, "2455": 1100, "2456": 1150, "2457": 1200, "2458": 1250, "2459": 1300, "2460": 1350, "2461": 1400, "2462": 1450, "2463": 1550, "2464": 1600, "2500": 47, "2501": 57, "2502": 70, "2503": 102, "2504": 172, "2600": 500, "2601": 550, "2602": 625, "2603": 750, "2700": 10, "2701": 25, "2702": 50, "2703": 100, "2800": 10, "2801": 25, "2802": 50, "2803": 100, "2900": 10, "2901": 25, "2902": 50, "2903": 100, "300": 20, "303": 20, "304": 20, "305": 1, "400": 2, "401": 2, "405": 20, "406": 3, "407": 3, "410": 1, "411": 8, "412": 1, "420": 1, "421": 1, "500": 200, "501": 200, "502": 200, "503": 200, "504": 1000, "600": 3, "601": 1, "602": 35, "603": 40, "604": 10, "605": 10, "701": 30, "800": 2700, "801": 1650, "900": 70, "@extrNative(1040)": 10, "@extrNative(1041)": 10, "@extrNative(1042)": 10, "@extrNative(1043)": 10, "@extrNative(1050)": 10, "@extrNative(1051)": 10, "@extrNative(1052)": 10, "@extrNative(1053)": 10, "@extrNative(1062)": 1, "@extrUser(addressFromString)": 124, "@extrUser(getBinary)": 10, "@extrUser(getBoolean)": 10, "@extrUser(getInteger)": 10, "@extrUser(getString)": 10, "Address": 1, "Alias": 1, "AssetPair": 2, "BinaryEntry": 2, "BooleanEntry": 2, "Burn": 2, "Buy": 0, "Ceiling": 0, "DataTransaction": 9, "DeleteEntry": 1, "Down": 0, "Floor": 0, "HalfDown": 0, "HalfEven": 0, "HalfUp": 0, "IntegerEntry": 2, "Md5": 0, "NoAlg": 0, "Reissue": 3, "ScriptTransfer": 3, "Sell": 0, "Sha1": 0, "Sha224": 0, "Sha256": 0, "Sha3224": 0, "Sha3256": 0, "Sha3384": 0, "Sha3512": 0, "Sha384": 0, "Sha512": 0, "SponsorFee": 2, "StringEntry": 2, "Unit": 0, "Up": 0, "addressFromPublicKey": 63, "addressFromString": 124, "contains": 3, "containsElement": 5, "dropRight": 20, "dropRightBytes": 6, "extract": 13, "getBinary": 30, "getBoolean": 30, "getInteger": 30, "getString": 30, "isDefined": 1, "parseIntValue": 2, "takeRight": 20, "takeRightBytes": 6, "throw": 1, "value": 2, "valueOrElse": 2, "valueOrErrorMessage": 2} +var _catalogue_V4 = [...]int{1, 1, 1, 1, 1, 1, 20, 15, 5, 60, 10, 10, 1, 1, 1, 1, 10, 10, 10, 10, 1, 10, 10, 10, 10, 1, 5, 10, 1, 1, 5, 100, 10, 100, 1, 1, 1, 1, 4, 5, 5, 7, 1, 1, 3, 3, 75, 2, 3, 3, 30, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 6, 2, 1200, 1300, 1400, 1500, 1600, 1700, 1800, 1900, 2000, 2100, 2200, 2300, 2400, 2500, 2600, 800, 850, 950, 1000, 1050, 1100, 1150, 1200, 1250, 1300, 1350, 1400, 1450, 1550, 1600, 47, 57, 70, 102, 172, 500, 550, 625, 750, 10, 25, 50, 100, 10, 25, 50, 100, 10, 25, 50, 100, 20, 20, 20, 1, 2, 2, 20, 3, 3, 1, 8, 1, 1, 1, 200, 200, 200, 200, 1000, 3, 1, 35, 40, 10, 10, 30, 2700, 1650, 70, 10, 10, 10, 10, 10, 10, 10, 10, 1, 124, 10, 10, 10, 10, 1, 1, 2, 2, 2, 2, 0, 0, 9, 1, 0, 0, 0, 0, 0, 2, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 63, 124, 3, 5, 20, 6, 13, 30, 30, 30, 30, 1, 2, 20, 6, 1, 2, 2, 2} +var CatalogueV4 = map[string]int{"!": 1, "!=": 1, "-": 1, "0": 1, "1": 1, "100": 1, "1001": 20, "1004": 15, "1005": 5, "1006": 60, "1007": 10, "1008": 10, "101": 1, "102": 1, "103": 1, "104": 1, "1040": 10, "1041": 10, "1042": 10, "1043": 10, "105": 1, "1050": 10, "1051": 10, "1052": 10, "1053": 10, "106": 1, "1060": 5, "1061": 10, "1062": 1, "107": 1, "1070": 5, "108": 100, "1080": 10, "109": 100, "1090": 1, "1091": 1, "1100": 1, "1101": 1, "1102": 4, "1103": 5, "1104": 5, "1200": 7, "1201": 1, "1202": 1, "1203": 3, "1204": 3, "1205": 75, "1206": 2, "1207": 3, "1208": 3, "1209": 30, "1300": 1, "1301": 1, "1302": 1, "1303": 1, "1304": 1, "1305": 1, "1306": 1, "1307": 1, "1308": 1, "1309": 1, "1310": 1, "1311": 1, "1312": 1, "1313": 1, "1314": 1, "1315": 1, "1316": 1, "1317": 1, "1318": 1, "1319": 1, "1320": 1, "2": 1, "200": 1, "201": 6, "202": 6, "203": 2, "2400": 1200, "2401": 1300, "2402": 1400, "2403": 1500, "2404": 1600, "2405": 1700, "2406": 1800, "2407": 1900, "2408": 2000, "2409": 2100, "2410": 2200, "2411": 2300, "2412": 2400, "2413": 2500, "2414": 2600, "2450": 800, "2451": 850, "2452": 950, "2453": 1000, "2454": 1050, "2455": 1100, "2456": 1150, "2457": 1200, "2458": 1250, "2459": 1300, "2460": 1350, "2461": 1400, "2462": 1450, "2463": 1550, "2464": 1600, "2500": 47, "2501": 57, "2502": 70, "2503": 102, "2504": 172, "2600": 500, "2601": 550, "2602": 625, "2603": 750, "2700": 10, "2701": 25, "2702": 50, "2703": 100, "2800": 10, "2801": 25, "2802": 50, "2803": 100, "2900": 10, "2901": 25, "2902": 50, "2903": 100, "300": 20, "303": 20, "304": 20, "305": 1, "400": 2, "401": 2, "405": 20, "406": 3, "407": 3, "410": 1, "411": 8, "412": 1, "420": 1, "421": 1, "500": 200, "501": 200, "502": 200, "503": 200, "504": 1000, "600": 3, "601": 1, "602": 35, "603": 40, "604": 10, "605": 10, "701": 30, "800": 2700, "801": 1650, "900": 70, "@extrNative(1040)": 10, "@extrNative(1041)": 10, "@extrNative(1042)": 10, "@extrNative(1043)": 10, "@extrNative(1050)": 10, "@extrNative(1051)": 10, "@extrNative(1052)": 10, "@extrNative(1053)": 10, "@extrNative(1062)": 1, "@extrUser(addressFromString)": 124, "@extrUser(getBinary)": 10, "@extrUser(getBoolean)": 10, "@extrUser(getInteger)": 10, "@extrUser(getString)": 10, "Address": 1, "Alias": 1, "AssetPair": 2, "BinaryEntry": 2, "BooleanEntry": 2, "Burn": 2, "Buy": 0, "Ceiling": 0, "DataTransaction": 9, "DeleteEntry": 1, "Down": 0, "Floor": 0, "HalfDown": 0, "HalfEven": 0, "HalfUp": 0, "IntegerEntry": 2, "Md5": 0, "NoAlg": 0, "Reissue": 3, "ScriptTransfer": 3, "Sell": 0, "Sha1": 0, "Sha224": 0, "Sha256": 0, "Sha3224": 0, "Sha3256": 0, "Sha3384": 0, "Sha3512": 0, "Sha384": 0, "Sha512": 0, "SponsorFee": 2, "StringEntry": 2, "Unit": 0, "Up": 0, "addressFromPublicKey": 63, "addressFromString": 124, "contains": 3, "containsElement": 5, "dropRight": 20, "dropRightBytes": 6, "extract": 13, "getBinary": 30, "getBoolean": 30, "getInteger": 30, "getString": 30, "isDefined": 1, "parseIntValue": 2, "takeRight": 20, "takeRightBytes": 6, "throw": 1, "value": 2, "valueOrElse": 2, "valueOrErrorMessage": 2} const _names_V4 = "!!=-011001001100410051006100710081011021031041040104110421043105105010511052105310610601061106210710701081080109109010911100110111021103110412001201120212031204120512061207120812091300130113021303130413051306130713081309131013111312131313141315131613171318131913202200201202203240024012402240324042405240624072408240924102411241224132414245024512452245324542455245624572458245924602461246224632464250025012502250325042600260126022603270027012702270328002801280228032900290129022903300303304305400401405406407410411412420421500501502503504600601602603604605701800801900@extrNative(1040)@extrNative(1041)@extrNative(1042)@extrNative(1043)@extrNative(1050)@extrNative(1051)@extrNative(1052)@extrNative(1053)@extrNative(1062)@extrUser(addressFromString)@extrUser(getBinary)@extrUser(getBoolean)@extrUser(getInteger)@extrUser(getString)AddressAliasAssetPairBinaryEntryBooleanEntryBurnBuyCeilingDataTransactionDeleteEntryDownFloorHalfDownHalfEvenHalfUpIntegerEntryMd5NoAlgReissueScriptTransferSellSha1Sha224Sha256Sha3224Sha3256Sha3384Sha3512Sha384Sha512SponsorFeeStringEntryUnitUpaddressFromPublicKeyaddressFromStringcontainscontainsElementdropRightdropRightBytesextractgetBinarygetBooleangetIntegergetStringisDefinedparseIntValuetakeRighttakeRightBytesthrowvaluevalueOrElsevalueOrErrorMessage" diff --git a/pkg/ride/generate/main.go b/pkg/ride/generate/main.go index 3e378d270..bbb7d96c4 100644 --- a/pkg/ride/generate/main.go +++ b/pkg/ride/generate/main.go @@ -384,7 +384,9 @@ func catalogueV4() map[string]int { m["800"] = 2700 // BLS12 m["801"] = 1650 // BN256 m["900"] = 70 + m["1001"] = 20 m["1004"] = 15 + m["1005"] = 5 m["1006"] = 60 m["1007"] = 10 m["1008"] = 10