sol-dbg 0.7.7 → 0.7.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/dist/debug/decoding/index.d.ts +1 -0
- package/dist/debug/decoding/index.d.ts.map +1 -1
- package/dist/debug/decoding/index.js +4 -0
- package/dist/debug/decoding/index.js.map +1 -1
- package/dist/debug/decoding/value.d.ts +11 -1
- package/dist/debug/decoding/value.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/debug/decoding/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/debug/decoding/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.inRange = exports.isPointerView = void 0;
|
|
17
18
|
__exportStar(require("./calldata"), exports);
|
|
18
19
|
__exportStar(require("./general"), exports);
|
|
19
20
|
__exportStar(require("./memory"), exports);
|
|
@@ -22,4 +23,7 @@ __exportStar(require("./storage"), exports);
|
|
|
22
23
|
__exportStar(require("./exp_types"), exports);
|
|
23
24
|
__exportStar(require("./value"), exports);
|
|
24
25
|
__exportStar(require("./view"), exports);
|
|
26
|
+
var utils_1 = require("./utils");
|
|
27
|
+
Object.defineProperty(exports, "isPointerView", { enumerable: true, get: function () { return utils_1.isPointerView; } });
|
|
28
|
+
Object.defineProperty(exports, "inRange", { enumerable: true, get: function () { return utils_1.inRange; } });
|
|
25
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/debug/decoding/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/debug/decoding/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,8CAA4B;AAC5B,0CAAwB;AACxB,yCAAuB;AACvB,iCAAiD;AAAxC,sGAAA,aAAa,OAAA;AAAE,gGAAA,OAAO,OAAA"}
|
|
@@ -45,6 +45,16 @@ export declare function hasPoison(v: Value): boolean;
|
|
|
45
45
|
/**
|
|
46
46
|
* Typescript types corresponding to various Solidity types.
|
|
47
47
|
* Includes both primitive (value) types and compound types
|
|
48
|
+
* `PrimitiveValue`s are those that can be held in a local on the stack. In general they
|
|
49
|
+
* correspond to what can *fit* in a single word.
|
|
50
|
+
* A notable exception is `Slice` which corresponds to 2 words (offset and length).
|
|
51
|
+
* Also `View` here corresponds to an EVM Pointer.
|
|
52
|
+
* Also `Uint8Array` appears here as we use it to represent FixedBytesType
|
|
48
53
|
*/
|
|
49
|
-
export type
|
|
54
|
+
export type PrimitiveValue = bigint | boolean | Uint8Array | Address | FunctionValue | Slice | View<any, Value, any, TypeNode> | Poison;
|
|
55
|
+
/**
|
|
56
|
+
* A complex value corrseponds to Solidity bytes, strings, arrays, tuples, structs and maps.
|
|
57
|
+
*/
|
|
58
|
+
export type ComplexValue = Uint8Array | string | Value[] | Struct | Map<Value, Value>;
|
|
59
|
+
export type Value = PrimitiveValue | ComplexValue;
|
|
50
60
|
//# sourceMappingURL=value.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value.d.ts","sourceRoot":"","sources":["../../../src/debug/decoding/value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAU,kBAAkB,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,qBAAa,cAAc;aAEH,OAAO,EAAE,OAAO;aAChB,QAAQ,EAAE,UAAU;gBADpB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,UAAU;CAE3C;AAED,qBAAa,cAAc;aACK,GAAG,EAAE,kBAAkB;gBAAvB,GAAG,EAAE,kBAAkB;CACtD;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;AAE5D,qBAAa,MAAM;aACa,OAAO,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;gBAA/B,OAAO,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC3D,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK;CAS7B;AAED,qBAAa,KAAK;aAEM,KAAK,EAAE,KAAK,EAAE;aACd,KAAK,EAAE,MAAM;aACb,GAAG,EAAE,MAAM;gBAFX,KAAK,EAAE,KAAK,EAAE,EACd,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM;CAElC;AAED,8BAAsB,MAAM;IACxB,QAAQ,CAAC,EAAE,IAAI,MAAM;CACxB;AAED,qBAAa,eAAgB,SAAQ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