StringCharAt | ("redbluegreen").charAt(3) | 1GAS |
StringCharCodeAt | ("redbluegreen").charCodeAt(3) | 1GAS |
StringLength | ("redbluegreen").length | X |
StringConstructor | String.constructor("yellow") | 1GAS + 0.1GAS * string length |
StringToString | ("redbluegreen").toString() | X |
StringValueOf | ("redbluegreen").valueOf() | 1GAS |
StringConcat | ("redbluegreen").concat("redbluegreen") | 1GAS + 0.1GAS * res string length |
StringIncludes | ("redbluegreen").includes("red") | 1GAS + 0.1GAS * string length |
StringEndsWith | ("redbluegreen").endsWith("red") | 1GAS + 0.1GAS * string length |
StringIndexOf | ("redbluegreen").indexOf("red") | 1GAS + 0.1GAS * string length |
StringLastIndexOf | ("redbluegreen").lastIndexOf("red") | 1GAS + 0.1GAS * string length |
StringReplace | ("redbluegreen").replace("red", "blue") | 1GAS + 0.1GAS * string length |
StringSearch | ("redbluegreen").search("red") | 1GAS + 0.1GAS * string length |
StringSplit | ("redbluegreen").split("red") | 1GAS + 0.1GAS * string length |
StringStartsWith | ("redbluegreen").startsWith("red") | 1GAS + 0.1GAS * string length |
StringSlice | ("redbluegreen").slice() | 1GAS + 0.1GAS * string length |
StringSubstring | ("redbluegreen").substring(3) | 1GAS + 0.1GAS * string length |
StringToLowerCase | ("redbluegreen").toLowerCase() | 1GAS + 0.1GAS * string length |
StringToUpperCase | ("redbluegreen").toUpperCase() | 1GAS + 0.1GAS * string length |
StringTrim | ("redbluegreen").trim() | 1GAS + 0.1GAS * string length |
StringTrimLeft | ("redbluegreen").trimLeft() | 1GAS + 0.1GAS * string length |
StringTrimRight | ("redbluegreen").trimRight() | 1GAS + 0.1GAS * string length |
StringRepeat | ("redbluegreen").repeat(10) | 1GAS + 0.1GAS * res string length |
| | |
ArrayConstructor | Array.constructor(["red", "blue", "green"]) | 1GAS + 0.2GAS * res array length |
ArrayToString | (["red", "blue", "green"]).toString() | 1GAS + 1GAS * array length |
ArrayConcat | (["red", "blue", "green"]).concat(["red", "blue", "green"]) | 1GAS + 1GAS * res array length |
ArrayEvery | (["red", "blue", "green"]).every(function (x) { return true; }) | 1GAS + 1GAS * array length |
ArrayFilter | (["red", "blue", "green"]).filter(function (x) { return true; }) | 1GAS + 10GAS * array length |
ArrayFind | (["red", "blue", "green"]).find(function (x) { return true; }) | 1GAS + 1GAS * array length |
ArrayFindIndex | (["red", "blue", "green"]).findIndex(function (x) { return true; }) | 1GAS + 1GAS * array length |
ArrayForEach | (["red", "blue", "green"]).forEach(function (x) { return; }) | 1GAS + 1GAS * array length |
ArrayIncludes | (["red", "blue", "green"]).includes("red") | 1GAS + 1GAS * array length |
ArrayIndexOf | (["red", "blue", "green"]).indexOf("red") | 1GAS + 0.2GAS * array length |
ArrayJoin | (["red", "blue", "green"]).join() | 1GAS + 1GAS * array length |
ArrayKeys | (["red", "blue", "green"]).keys() | 1GAS + 0.2GAS * array length |
ArrayLastIndexOf | (["red", "blue", "green"]).lastIndexOf("red") | 1GAS + 0.2GAS * array length |
ArrayMap | (["red", "blue", "green"]).map(function (x) { return x; }) | 1GAS + 10GAS * array length |
ArrayPop | (["red", "blue", "green"]).pop() | 1GAS |
ArrayPush | (["red", "blue", "green"]).push("yellow") | 1GAS |
ArrayReverse | (["red", "blue", "green"]).reverse() | 1GAS + 0.2GAS * array length |
ArrayShift | (["red", "blue", "green"]).shift() | 1GAS |
ArraySlice | (["red", "blue", "green"]).slice() | 1GAS + 10GAS * array length |
ArraySort | (["red", "blue", "green"]).sort() | 1GAS + 1GAS * array length |
ArraySplice | (["red", "blue", "green"]).splice(0) | 1GAS + 10GAS * array length + (arguments length -2) |
ArrayUnshift | (["red", "blue", "green"]).unshift("yellow") | 1GAS |
| | |
JSONParse | JSON.parse({"array": ["red", "blue", "green"], "string": "", "float": 100} ) | 10GAS + 10GAS * string length |
| | |
MathAbs | Math.abs(-1) | 2GAS |
MathCbrt | Math.cbrt(2.5) | 2GAS |
MathCeil | Math.ceil(-1.5) | 2GAS |
MathFloor | Math.floor(1.5) | 2GAS |
MathLog | Math.log(5) | 2GAS |
MathLog10 | Math.log10(1234) | 2GAS |
MathLog1p | Math.log1p(0.7) | 2GAS |
MathMax | Math.max(3, 10, 5) | 2GAS |
MathMin | Math.min(3, 10, 5) | 2GAS |
MathPow | Math.pow(3, 15.5) | 2GAS |
MathRound | Math.round(2.7) | 2GAS |
MathSqrt | Math.sqrt(3.4) | 2GAS |
| | |
BigNumberConstructor | BigNumber.prototype.constructor("99999999999999999") | 20GAS |
BigNumberAbs | new BigNumber("-99999999999999999").abs() | 20GAS |
BigNumberDiv | new BigNumber("-99999999999999999").div("99999") | 20GAS + 10GAS * (number length + args[0] length) |
BigNumberIdiv | new BigNumber("-99999999999999999").idiv("99999") | 20GAS + 10GAS * (number length + args[0] length) |
BigNumberPow | new BigNumber("-99999999999999999").pow("99999") | 20GAS + 10GAS * (number length + args[0] length) |
BigNumberIntegerValue | new BigNumber("-99999999999999999").integerValue() | 20GAS + 4GAS * number length |
BigNumberEq | new BigNumber("-99999999999999999").eq("99999") | 20GAS + 2GAS * (number length + args[0] length) |
BigNumberIsFinite | new BigNumber("-99999999999999999").isFinite() | 20GAS |
BigNumberGt | new BigNumber("-99999999999999999").gt("99999") | 20GAS + 2GAS * (number length + args[0] length) |
BigNumberGte | new BigNumber("-99999999999999999").gte("99999") | 20GAS + 2GAS * (number length + args[0] length) |
BigNumberIsInteger | new BigNumber("-99999999999999999").isInteger() | 20GAS |
BigNumberLt | new BigNumber("-99999999999999999").lt("99999") | 20GAS + 2GAS * (number length + args[0] length) |
BigNumberLte | new BigNumber("-99999999999999999").lte("99999") | 20GAS + 2GAS * (number length + args[0] length) |
BigNumberIsNaN | new BigNumber("-99999999999999999").isNaN() | 20GAS |
BigNumberIsNegative | new BigNumber("-99999999999999999").isNegative() | 20GAS |
BigNumberIsPositive | new BigNumber("-99999999999999999").isPositive() | 20GAS |
BigNumberIsZero | new BigNumber("-99999999999999999").isZero() | 20GAS |
BigNumberMinus | new BigNumber("-99999999999999999").minus("99999") | 20GAS + 10GAS * (number length + args[0] length) |
BigNumberMod | new BigNumber("-99999999999999999").mod("99999") | 20GAS + 10GAS * (number length + args[0] length) |
BigNumberTimes | new BigNumber("-99999999999999999").times("99999") | 20GAS + 4GAS * (number length + args[0] length) |
BigNumberNegated | new BigNumber("-99999999999999999").negated() | 20GAS |
BigNumberPlus | new BigNumber("-99999999999999999").plus("99999") | 20GAS + 10GAS * (number length + args[0] length) |
BigNumberSqrt | new BigNumber("-99999999999999999").sqrt() | 20GAS + 4GAS * number length |
BigNumberToFixed | new BigNumber("-99999999999999999").toFixed(5) | 20GAS + 4GAS * number length |