sol-dbg 0.7.16 → 0.8.0
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/abi.d.ts +10 -3
- package/dist/debug/abi.d.ts.map +1 -1
- package/dist/debug/abi.js +5 -4
- package/dist/debug/abi.js.map +1 -1
- package/dist/debug/artifact_manager/artifact_manager.d.ts +5 -2
- package/dist/debug/artifact_manager/artifact_manager.d.ts.map +1 -1
- package/dist/debug/artifact_manager/artifact_manager.js +24 -6
- package/dist/debug/artifact_manager/artifact_manager.js.map +1 -1
- package/dist/debug/decoding/calldata/view.d.ts +15 -16
- package/dist/debug/decoding/calldata/view.d.ts.map +1 -1
- package/dist/debug/decoding/calldata/view.js +47 -47
- package/dist/debug/decoding/calldata/view.js.map +1 -1
- package/dist/debug/decoding/index.d.ts +1 -2
- package/dist/debug/decoding/index.d.ts.map +1 -1
- package/dist/debug/decoding/index.js +2 -2
- package/dist/debug/decoding/index.js.map +1 -1
- package/dist/debug/decoding/memory/view.d.ts +16 -17
- package/dist/debug/decoding/memory/view.d.ts.map +1 -1
- package/dist/debug/decoding/memory/view.js +36 -36
- package/dist/debug/decoding/memory/view.js.map +1 -1
- package/dist/debug/decoding/stack/view.d.ts +4 -4
- package/dist/debug/decoding/stack/view.d.ts.map +1 -1
- package/dist/debug/decoding/stack/view.js +20 -19
- package/dist/debug/decoding/stack/view.js.map +1 -1
- package/dist/debug/decoding/storage/view.d.ts +18 -19
- package/dist/debug/decoding/storage/view.d.ts.map +1 -1
- package/dist/debug/decoding/storage/view.js +67 -65
- package/dist/debug/decoding/storage/view.js.map +1 -1
- package/dist/debug/decoding/utils.d.ts +20 -2
- package/dist/debug/decoding/utils.d.ts.map +1 -1
- package/dist/debug/decoding/utils.js +119 -3
- package/dist/debug/decoding/utils.js.map +1 -1
- package/dist/debug/decoding/view.d.ts +11 -6
- package/dist/debug/decoding/view.d.ts.map +1 -1
- package/dist/debug/index.d.ts +1 -0
- package/dist/debug/index.d.ts.map +1 -1
- package/dist/debug/index.js +1 -0
- package/dist/debug/index.js.map +1 -1
- package/dist/debug/layout.d.ts.map +1 -1
- package/dist/debug/layout.js +2 -1
- package/dist/debug/layout.js.map +1 -1
- package/dist/debug/runtime_types/ast/address_type.d.ts +5 -0
- package/dist/debug/runtime_types/ast/address_type.d.ts.map +1 -0
- package/dist/debug/runtime_types/ast/address_type.js +11 -0
- package/dist/debug/runtime_types/ast/address_type.js.map +1 -0
- package/dist/debug/runtime_types/ast/array_type.d.ts +8 -0
- package/dist/debug/runtime_types/ast/array_type.d.ts.map +1 -0
- package/dist/debug/runtime_types/ast/array_type.js +16 -0
- package/dist/debug/runtime_types/ast/array_type.js.map +1 -0
- package/dist/debug/runtime_types/ast/base_type.d.ts +16 -0
- package/dist/debug/runtime_types/ast/base_type.d.ts.map +1 -0
- package/dist/debug/runtime_types/ast/base_type.js +19 -0
- package/dist/debug/runtime_types/ast/base_type.js.map +1 -0
- package/dist/debug/runtime_types/ast/bool_type.d.ts +5 -0
- package/dist/debug/runtime_types/ast/bool_type.d.ts.map +1 -0
- package/dist/debug/runtime_types/ast/bool_type.js +11 -0
- package/dist/debug/runtime_types/ast/bool_type.js.map +1 -0
- package/dist/debug/runtime_types/ast/bytes_type.d.ts +5 -0
- package/dist/debug/runtime_types/ast/bytes_type.d.ts.map +1 -0
- package/dist/debug/runtime_types/ast/bytes_type.js +11 -0
- package/dist/debug/runtime_types/ast/bytes_type.js.map +1 -0
- package/dist/debug/runtime_types/ast/fixed_bytes_type.d.ts +7 -0
- package/dist/debug/runtime_types/ast/fixed_bytes_type.d.ts.map +1 -0
- package/dist/debug/runtime_types/ast/fixed_bytes_type.js +15 -0
- package/dist/debug/runtime_types/ast/fixed_bytes_type.js.map +1 -0
- package/dist/debug/runtime_types/ast/function_type.d.ts +11 -0
- package/dist/debug/runtime_types/ast/function_type.d.ts.map +1 -0
- package/dist/debug/runtime_types/ast/function_type.js +22 -0
- package/dist/debug/runtime_types/ast/function_type.js.map +1 -0
- package/dist/debug/runtime_types/ast/index.d.ts +16 -0
- package/dist/debug/runtime_types/ast/index.d.ts.map +1 -0
- package/dist/debug/runtime_types/ast/index.js +32 -0
- package/dist/debug/runtime_types/ast/index.js.map +1 -0
- package/dist/debug/runtime_types/ast/int_type.d.ts +10 -0
- package/dist/debug/runtime_types/ast/int_type.d.ts.map +1 -0
- package/dist/debug/runtime_types/ast/int_type.js +24 -0
- package/dist/debug/runtime_types/ast/int_type.js.map +1 -0
- package/dist/debug/runtime_types/ast/mapping_type.d.ts +8 -0
- package/dist/debug/runtime_types/ast/mapping_type.d.ts.map +1 -0
- package/dist/debug/runtime_types/ast/mapping_type.js +16 -0
- package/dist/debug/runtime_types/ast/mapping_type.js.map +1 -0
- package/dist/debug/runtime_types/ast/missing_type.d.ts +11 -0
- package/dist/debug/runtime_types/ast/missing_type.d.ts.map +1 -0
- package/dist/debug/runtime_types/ast/missing_type.js +19 -0
- package/dist/debug/runtime_types/ast/missing_type.js.map +1 -0
- package/dist/debug/runtime_types/ast/pointer_type.d.ts +9 -0
- package/dist/debug/runtime_types/ast/pointer_type.d.ts.map +1 -0
- package/dist/debug/runtime_types/ast/pointer_type.js +51 -0
- package/dist/debug/runtime_types/ast/pointer_type.js.map +1 -0
- package/dist/debug/runtime_types/ast/string_type.d.ts +5 -0
- package/dist/debug/runtime_types/ast/string_type.d.ts.map +1 -0
- package/dist/debug/runtime_types/ast/string_type.js +11 -0
- package/dist/debug/runtime_types/ast/string_type.js.map +1 -0
- package/dist/debug/runtime_types/ast/struct_type.d.ts +8 -0
- package/dist/debug/runtime_types/ast/struct_type.d.ts.map +1 -0
- package/dist/debug/runtime_types/ast/struct_type.js +16 -0
- package/dist/debug/runtime_types/ast/struct_type.js.map +1 -0
- package/dist/debug/runtime_types/ast/tuple_type.d.ts +7 -0
- package/dist/debug/runtime_types/ast/tuple_type.d.ts.map +1 -0
- package/dist/debug/runtime_types/ast/tuple_type.js +15 -0
- package/dist/debug/runtime_types/ast/tuple_type.js.map +1 -0
- package/dist/debug/runtime_types/ast/type_type.d.ts +12 -0
- package/dist/debug/runtime_types/ast/type_type.d.ts.map +1 -0
- package/dist/debug/runtime_types/ast/type_type.js +19 -0
- package/dist/debug/runtime_types/ast/type_type.js.map +1 -0
- package/dist/debug/runtime_types/index.d.ts +3 -0
- package/dist/debug/runtime_types/index.d.ts.map +1 -0
- package/dist/debug/runtime_types/index.js +19 -0
- package/dist/debug/runtime_types/index.js.map +1 -0
- package/dist/debug/runtime_types/utils.d.ts +32 -0
- package/dist/debug/runtime_types/utils.d.ts.map +1 -0
- package/dist/debug/runtime_types/utils.js +213 -0
- package/dist/debug/runtime_types/utils.js.map +1 -0
- package/dist/debug/tracers/transformers/int_stack.d.ts.map +1 -1
- package/dist/debug/tracers/transformers/int_stack.js +4 -2
- package/dist/debug/tracers/transformers/int_stack.js.map +1 -1
- package/dist/debug/tracers/transformers/ret_info.js +2 -2
- package/dist/debug/tracers/transformers/ret_info.js.map +1 -1
- package/dist/utils/misc.d.ts +5 -1
- package/dist/utils/misc.d.ts.map +1 -1
- package/dist/utils/misc.js +20 -9
- package/dist/utils/misc.js.map +1 -1
- package/dist/utils/pp.d.ts.map +1 -1
- package/dist/utils/pp.js +13 -12
- package/dist/utils/pp.js.map +1 -1
- package/dist/utils/solidity.d.ts +1 -0
- package/dist/utils/solidity.d.ts.map +1 -1
- package/dist/utils/solidity.js +8 -0
- package/dist/utils/solidity.js.map +1 -1
- package/package.json +1 -1
- package/dist/debug/decoding/exp_types.d.ts +0 -46
- package/dist/debug/decoding/exp_types.d.ts.map +0 -1
- package/dist/debug/decoding/exp_types.js +0 -202
- package/dist/debug/decoding/exp_types.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixed_bytes_type.d.ts","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/fixed_bytes_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,qBAAa,cAAe,SAAQ,eAAe;aACnB,QAAQ,EAAE,MAAM;gBAAhB,QAAQ,EAAE,MAAM;IAI5C,EAAE,IAAI,MAAM;CAGf"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FixedBytesType = void 0;
|
|
4
|
+
const base_type_1 = require("./base_type");
|
|
5
|
+
class FixedBytesType extends base_type_1.BaseRuntimeType {
|
|
6
|
+
constructor(numBytes) {
|
|
7
|
+
super();
|
|
8
|
+
this.numBytes = numBytes;
|
|
9
|
+
}
|
|
10
|
+
pp() {
|
|
11
|
+
return `bytes${this.numBytes}`;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.FixedBytesType = FixedBytesType;
|
|
15
|
+
//# sourceMappingURL=fixed_bytes_type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixed_bytes_type.js","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/fixed_bytes_type.ts"],"names":[],"mappings":";;;AAAA,2CAA8C;AAE9C,MAAa,cAAe,SAAQ,2BAAe;IAC/C,YAA4B,QAAgB;QACxC,KAAK,EAAE,CAAC;QADgB,aAAQ,GAAR,QAAQ,CAAQ;IAE5C,CAAC;IAED,EAAE;QACE,OAAO,QAAQ,IAAI,CAAC,QAAQ,EAAE,CAAC;IACnC,CAAC;CACJ;AARD,wCAQC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FunctionStateMutability } from "solc-typed-ast";
|
|
2
|
+
import { BaseRuntimeType } from "./base_type";
|
|
3
|
+
export declare class FunctionType extends BaseRuntimeType {
|
|
4
|
+
readonly argTs: BaseRuntimeType[];
|
|
5
|
+
readonly external: boolean;
|
|
6
|
+
readonly mutability: FunctionStateMutability;
|
|
7
|
+
readonly retTs: BaseRuntimeType[];
|
|
8
|
+
constructor(argTs: BaseRuntimeType[], external: boolean, mutability: FunctionStateMutability, retTs: BaseRuntimeType[]);
|
|
9
|
+
pp(): string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=function_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function_type.d.ts","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/function_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,qBAAa,YAAa,SAAQ,eAAe;aAEzB,KAAK,EAAE,eAAe,EAAE;aACxB,QAAQ,EAAE,OAAO;aACjB,UAAU,EAAE,uBAAuB;aACnC,KAAK,EAAE,eAAe,EAAE;gBAHxB,KAAK,EAAE,eAAe,EAAE,EACxB,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,uBAAuB,EACnC,KAAK,EAAE,eAAe,EAAE;IAK5C,EAAE,IAAI,MAAM;CAQf"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FunctionType = void 0;
|
|
4
|
+
const base_type_1 = require("./base_type");
|
|
5
|
+
class FunctionType extends base_type_1.BaseRuntimeType {
|
|
6
|
+
constructor(argTs, external, mutability, retTs) {
|
|
7
|
+
super();
|
|
8
|
+
this.argTs = argTs;
|
|
9
|
+
this.external = external;
|
|
10
|
+
this.mutability = mutability;
|
|
11
|
+
this.retTs = retTs;
|
|
12
|
+
}
|
|
13
|
+
pp() {
|
|
14
|
+
const argStr = this.argTs.map((argT) => argT.pp()).join(", ");
|
|
15
|
+
const retStr = this.retTs.length > 0
|
|
16
|
+
? `returns (${this.retTs.map((retT) => retT.pp()).join(", ")})`
|
|
17
|
+
: "";
|
|
18
|
+
return `function (${argStr})${this.external ? " external " : " "}${this.mutability} ${retStr}`;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.FunctionType = FunctionType;
|
|
22
|
+
//# sourceMappingURL=function_type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function_type.js","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/function_type.ts"],"names":[],"mappings":";;;AACA,2CAA8C;AAE9C,MAAa,YAAa,SAAQ,2BAAe;IAC7C,YACoB,KAAwB,EACxB,QAAiB,EACjB,UAAmC,EACnC,KAAwB;QAExC,KAAK,EAAE,CAAC;QALQ,UAAK,GAAL,KAAK,CAAmB;QACxB,aAAQ,GAAR,QAAQ,CAAS;QACjB,eAAU,GAAV,UAAU,CAAyB;QACnC,UAAK,GAAL,KAAK,CAAmB;IAG5C,CAAC;IAED,EAAE;QACE,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9D,MAAM,MAAM,GACR,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC;YACjB,CAAC,CAAC,YAAY,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG;YAC/D,CAAC,CAAC,EAAE,CAAC;QACb,OAAO,aAAa,MAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,UAAU,IAAI,MAAM,EAAE,CAAC;IACnG,CAAC;CACJ;AAlBD,oCAkBC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from "./address_type";
|
|
2
|
+
export * from "./array_type";
|
|
3
|
+
export * from "./base_type";
|
|
4
|
+
export * from "./bool_type";
|
|
5
|
+
export * from "./bytes_type";
|
|
6
|
+
export * from "./fixed_bytes_type";
|
|
7
|
+
export * from "./int_type";
|
|
8
|
+
export * from "./mapping_type";
|
|
9
|
+
export * from "./missing_type";
|
|
10
|
+
export * from "./pointer_type";
|
|
11
|
+
export * from "./string_type";
|
|
12
|
+
export * from "./struct_type";
|
|
13
|
+
export * from "./tuple_type";
|
|
14
|
+
export * from "./function_type";
|
|
15
|
+
export * from "./type_type";
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./address_type"), exports);
|
|
18
|
+
__exportStar(require("./array_type"), exports);
|
|
19
|
+
__exportStar(require("./base_type"), exports);
|
|
20
|
+
__exportStar(require("./bool_type"), exports);
|
|
21
|
+
__exportStar(require("./bytes_type"), exports);
|
|
22
|
+
__exportStar(require("./fixed_bytes_type"), exports);
|
|
23
|
+
__exportStar(require("./int_type"), exports);
|
|
24
|
+
__exportStar(require("./mapping_type"), exports);
|
|
25
|
+
__exportStar(require("./missing_type"), exports);
|
|
26
|
+
__exportStar(require("./pointer_type"), exports);
|
|
27
|
+
__exportStar(require("./string_type"), exports);
|
|
28
|
+
__exportStar(require("./struct_type"), exports);
|
|
29
|
+
__exportStar(require("./tuple_type"), exports);
|
|
30
|
+
__exportStar(require("./function_type"), exports);
|
|
31
|
+
__exportStar(require("./type_type"), exports);
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,+CAA6B;AAC7B,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B;AAC7B,qDAAmC;AACnC,6CAA2B;AAC3B,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,gDAA8B;AAC9B,gDAA8B;AAC9B,+CAA6B;AAC7B,kDAAgC;AAChC,8CAA4B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseRuntimeType } from "./base_type";
|
|
2
|
+
export declare class IntType extends BaseRuntimeType {
|
|
3
|
+
readonly numBits: number;
|
|
4
|
+
readonly signed: boolean;
|
|
5
|
+
constructor(numBits: number, signed: boolean);
|
|
6
|
+
pp(): string;
|
|
7
|
+
max(): bigint;
|
|
8
|
+
min(): bigint;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=int_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"int_type.d.ts","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/int_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,qBAAa,OAAQ,SAAQ,eAAe;aAEpB,OAAO,EAAE,MAAM;aACf,MAAM,EAAE,OAAO;gBADf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,OAAO;IAKnC,EAAE,IAAI,MAAM;IAKZ,GAAG,IAAI,MAAM;IAKb,GAAG,IAAI,MAAM;CAGhB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntType = void 0;
|
|
4
|
+
const base_type_1 = require("./base_type");
|
|
5
|
+
class IntType extends base_type_1.BaseRuntimeType {
|
|
6
|
+
constructor(numBits, signed) {
|
|
7
|
+
super();
|
|
8
|
+
this.numBits = numBits;
|
|
9
|
+
this.signed = signed;
|
|
10
|
+
}
|
|
11
|
+
pp() {
|
|
12
|
+
return `${this.signed ? "" : "u"}int${this.numBits}`;
|
|
13
|
+
}
|
|
14
|
+
/// Maximum value (inclusive) representable by this int type.
|
|
15
|
+
max() {
|
|
16
|
+
return 2n ** BigInt(this.signed ? this.numBits - 1 : this.numBits) - 1n;
|
|
17
|
+
}
|
|
18
|
+
/// Minimum value (inclusive) representable by this int type.
|
|
19
|
+
min() {
|
|
20
|
+
return this.signed ? -(2n ** BigInt(this.numBits - 1)) : 0n;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.IntType = IntType;
|
|
24
|
+
//# sourceMappingURL=int_type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"int_type.js","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/int_type.ts"],"names":[],"mappings":";;;AAAA,2CAA8C;AAE9C,MAAa,OAAQ,SAAQ,2BAAe;IACxC,YACoB,OAAe,EACf,MAAe;QAE/B,KAAK,EAAE,CAAC;QAHQ,YAAO,GAAP,OAAO,CAAQ;QACf,WAAM,GAAN,MAAM,CAAS;IAGnC,CAAC;IAED,EAAE;QACE,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;IACzD,CAAC;IAED,6DAA6D;IAC7D,GAAG;QACC,OAAO,EAAE,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;IAC5E,CAAC;IAED,6DAA6D;IAC7D,GAAG;QACC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAChE,CAAC;CACJ;AArBD,0BAqBC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseRuntimeType } from "./base_type";
|
|
2
|
+
export declare class MappingType extends BaseRuntimeType {
|
|
3
|
+
readonly keyType: BaseRuntimeType;
|
|
4
|
+
readonly valueType: BaseRuntimeType;
|
|
5
|
+
constructor(keyType: BaseRuntimeType, valueType: BaseRuntimeType);
|
|
6
|
+
pp(): string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=mapping_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping_type.d.ts","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/mapping_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,qBAAa,WAAY,SAAQ,eAAe;aAExB,OAAO,EAAE,eAAe;aACxB,SAAS,EAAE,eAAe;gBAD1B,OAAO,EAAE,eAAe,EACxB,SAAS,EAAE,eAAe;IAK9C,EAAE,IAAI,MAAM;CAGf"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MappingType = void 0;
|
|
4
|
+
const base_type_1 = require("./base_type");
|
|
5
|
+
class MappingType extends base_type_1.BaseRuntimeType {
|
|
6
|
+
constructor(keyType, valueType) {
|
|
7
|
+
super();
|
|
8
|
+
this.keyType = keyType;
|
|
9
|
+
this.valueType = valueType;
|
|
10
|
+
}
|
|
11
|
+
pp() {
|
|
12
|
+
return `mapping(${this.keyType.pp()} => ${this.valueType.pp()})`;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.MappingType = MappingType;
|
|
16
|
+
//# sourceMappingURL=mapping_type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping_type.js","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/mapping_type.ts"],"names":[],"mappings":";;;AAAA,2CAA8C;AAE9C,MAAa,WAAY,SAAQ,2BAAe;IAC5C,YACoB,OAAwB,EACxB,SAA0B;QAE1C,KAAK,EAAE,CAAC;QAHQ,YAAO,GAAP,OAAO,CAAiB;QACxB,cAAS,GAAT,SAAS,CAAiB;IAG9C,CAAC;IAED,EAAE;QACE,OAAO,WAAW,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,GAAG,CAAC;IACrE,CAAC;CACJ;AAXD,kCAWC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseRuntimeType } from "./base_type";
|
|
2
|
+
/**
|
|
3
|
+
* The local version of sol-dbg's MissingType.
|
|
4
|
+
* @todo may deprecate this in the future
|
|
5
|
+
*/
|
|
6
|
+
export declare class MissingType extends BaseRuntimeType {
|
|
7
|
+
readonly typeString: string | undefined;
|
|
8
|
+
constructor(typeString: string | undefined);
|
|
9
|
+
pp(): string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=missing_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"missing_type.d.ts","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/missing_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C;;;GAGG;AACH,qBAAa,WAAY,SAAQ,eAAe;aAChB,UAAU,EAAE,MAAM,GAAG,SAAS;gBAA9B,UAAU,EAAE,MAAM,GAAG,SAAS;IAI1D,EAAE,IAAI,MAAM;CAGf"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MissingType = void 0;
|
|
4
|
+
const base_type_1 = require("./base_type");
|
|
5
|
+
/**
|
|
6
|
+
* The local version of sol-dbg's MissingType.
|
|
7
|
+
* @todo may deprecate this in the future
|
|
8
|
+
*/
|
|
9
|
+
class MissingType extends base_type_1.BaseRuntimeType {
|
|
10
|
+
constructor(typeString) {
|
|
11
|
+
super();
|
|
12
|
+
this.typeString = typeString;
|
|
13
|
+
}
|
|
14
|
+
pp() {
|
|
15
|
+
return `<mssing type${this.typeString !== undefined ? `: ${this.typeString}` : ""}>`;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.MissingType = MissingType;
|
|
19
|
+
//# sourceMappingURL=missing_type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"missing_type.js","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/missing_type.ts"],"names":[],"mappings":";;;AAAA,2CAA8C;AAE9C;;;GAGG;AACH,MAAa,WAAY,SAAQ,2BAAe;IAC5C,YAA4B,UAA8B;QACtD,KAAK,EAAE,CAAC;QADgB,eAAU,GAAV,UAAU,CAAoB;IAE1D,CAAC;IAED,EAAE;QACE,OAAO,eAAe,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC;IACzF,CAAC;CACJ;AARD,kCAQC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as sol from "solc-typed-ast";
|
|
2
|
+
import { BaseRuntimeType } from "./base_type";
|
|
3
|
+
export declare class PointerType extends BaseRuntimeType {
|
|
4
|
+
readonly toType: BaseRuntimeType;
|
|
5
|
+
readonly location: sol.DataLocation;
|
|
6
|
+
constructor(toType: BaseRuntimeType, location: sol.DataLocation);
|
|
7
|
+
pp(): string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=pointer_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pointer_type.d.ts","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/pointer_type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,qBAAa,WAAY,SAAQ,eAAe;aAExB,MAAM,EAAE,eAAe;aACvB,QAAQ,EAAE,GAAG,CAAC,YAAY;gBAD1B,MAAM,EAAE,eAAe,EACvB,QAAQ,EAAE,GAAG,CAAC,YAAY;IAS9C,EAAE,IAAI,MAAM;CAGf"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.PointerType = void 0;
|
|
37
|
+
const sol = __importStar(require("solc-typed-ast"));
|
|
38
|
+
const base_type_1 = require("./base_type");
|
|
39
|
+
class PointerType extends base_type_1.BaseRuntimeType {
|
|
40
|
+
constructor(toType, location) {
|
|
41
|
+
super();
|
|
42
|
+
this.toType = toType;
|
|
43
|
+
this.location = location;
|
|
44
|
+
sol.assert(location !== sol.DataLocation.Default, `Unexpected pointer type with default location`);
|
|
45
|
+
}
|
|
46
|
+
pp() {
|
|
47
|
+
return `${this.toType.pp()} ${this.location}`;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.PointerType = PointerType;
|
|
51
|
+
//# sourceMappingURL=pointer_type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pointer_type.js","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/pointer_type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;AACtC,2CAA8C;AAE9C,MAAa,WAAY,SAAQ,2BAAe;IAC5C,YACoB,MAAuB,EACvB,QAA0B;QAE1C,KAAK,EAAE,CAAC;QAHQ,WAAM,GAAN,MAAM,CAAiB;QACvB,aAAQ,GAAR,QAAQ,CAAkB;QAG1C,GAAG,CAAC,MAAM,CACN,QAAQ,KAAK,GAAG,CAAC,YAAY,CAAC,OAAO,EACrC,+CAA+C,CAClD,CAAC;IACN,CAAC;IAED,EAAE;QACE,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClD,CAAC;CACJ;AAfD,kCAeC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string_type.d.ts","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/string_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,qBAAa,UAAW,SAAQ,eAAe;IAC3C,EAAE,IAAI,MAAM;CAGf"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StringType = void 0;
|
|
4
|
+
const base_type_1 = require("./base_type");
|
|
5
|
+
class StringType extends base_type_1.BaseRuntimeType {
|
|
6
|
+
pp() {
|
|
7
|
+
return `string`;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.StringType = StringType;
|
|
11
|
+
//# sourceMappingURL=string_type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string_type.js","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/string_type.ts"],"names":[],"mappings":";;;AAAA,2CAA8C;AAE9C,MAAa,UAAW,SAAQ,2BAAe;IAC3C,EAAE;QACE,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ;AAJD,gCAIC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseRuntimeType } from "./base_type";
|
|
2
|
+
export declare class StructType extends BaseRuntimeType {
|
|
3
|
+
readonly name: string;
|
|
4
|
+
readonly fields: Array<[string, BaseRuntimeType]>;
|
|
5
|
+
constructor(name: string, fields: Array<[string, BaseRuntimeType]>);
|
|
6
|
+
pp(): string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=struct_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"struct_type.d.ts","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/struct_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,qBAAa,UAAW,SAAQ,eAAe;aAEvB,IAAI,EAAE,MAAM;aACZ,MAAM,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;gBADxC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAK5D,EAAE,IAAI,MAAM;CAGf"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StructType = void 0;
|
|
4
|
+
const base_type_1 = require("./base_type");
|
|
5
|
+
class StructType extends base_type_1.BaseRuntimeType {
|
|
6
|
+
constructor(name, fields) {
|
|
7
|
+
super();
|
|
8
|
+
this.name = name;
|
|
9
|
+
this.fields = fields;
|
|
10
|
+
}
|
|
11
|
+
pp() {
|
|
12
|
+
return `struct ${this.name} {${this.fields.map(([name, type]) => `${name}: ${type.pp()}`).join(";\n")}}`;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.StructType = StructType;
|
|
16
|
+
//# sourceMappingURL=struct_type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"struct_type.js","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/struct_type.ts"],"names":[],"mappings":";;;AAAA,2CAA8C;AAE9C,MAAa,UAAW,SAAQ,2BAAe;IAC3C,YACoB,IAAY,EACZ,MAAwC;QAExD,KAAK,EAAE,CAAC;QAHQ,SAAI,GAAJ,IAAI,CAAQ;QACZ,WAAM,GAAN,MAAM,CAAkC;IAG5D,CAAC;IAED,EAAE;QACE,OAAO,UAAU,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;IAC7G,CAAC;CACJ;AAXD,gCAWC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tuple_type.d.ts","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/tuple_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,qBAAa,SAAU,SAAQ,eAAe;aACd,YAAY,EAAE,eAAe,EAAE;gBAA/B,YAAY,EAAE,eAAe,EAAE;IAI3D,EAAE,IAAI,MAAM;CAGf"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TupleType = void 0;
|
|
4
|
+
const base_type_1 = require("./base_type");
|
|
5
|
+
class TupleType extends base_type_1.BaseRuntimeType {
|
|
6
|
+
constructor(elementTypes) {
|
|
7
|
+
super();
|
|
8
|
+
this.elementTypes = elementTypes;
|
|
9
|
+
}
|
|
10
|
+
pp() {
|
|
11
|
+
return `(${this.elementTypes.map((t) => t.pp()).join(", ")})`;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.TupleType = TupleType;
|
|
15
|
+
//# sourceMappingURL=tuple_type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tuple_type.js","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/tuple_type.ts"],"names":[],"mappings":";;;AAAA,2CAA8C;AAE9C,MAAa,SAAU,SAAQ,2BAAe;IAC1C,YAA4B,YAA+B;QACvD,KAAK,EAAE,CAAC;QADgB,iBAAY,GAAZ,YAAY,CAAmB;IAE3D,CAAC;IAED,EAAE;QACE,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;IAClE,CAAC;CACJ;AARD,8BAQC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as sol from "solc-typed-ast";
|
|
2
|
+
import { BaseRuntimeType } from "./base_type";
|
|
3
|
+
/**
|
|
4
|
+
* The type of a 'type expression'. Strictly speaking this shouldnt appear as a runtime value, however its convenient
|
|
5
|
+
* to have it here as it appears as an argument to `abi.decode`.
|
|
6
|
+
*/
|
|
7
|
+
export declare class TypeType extends BaseRuntimeType {
|
|
8
|
+
readonly rawT: sol.TypeNode;
|
|
9
|
+
constructor(rawT: sol.TypeNode);
|
|
10
|
+
pp(): string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=type_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type_type.d.ts","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/type_type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C;;;GAGG;AACH,qBAAa,QAAS,SAAQ,eAAe;aACb,IAAI,EAAE,GAAG,CAAC,QAAQ;gBAAlB,IAAI,EAAE,GAAG,CAAC,QAAQ;IAI9C,EAAE,IAAI,MAAM;CAGf"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TypeType = void 0;
|
|
4
|
+
const base_type_1 = require("./base_type");
|
|
5
|
+
/**
|
|
6
|
+
* The type of a 'type expression'. Strictly speaking this shouldnt appear as a runtime value, however its convenient
|
|
7
|
+
* to have it here as it appears as an argument to `abi.decode`.
|
|
8
|
+
*/
|
|
9
|
+
class TypeType extends base_type_1.BaseRuntimeType {
|
|
10
|
+
constructor(rawT) {
|
|
11
|
+
super();
|
|
12
|
+
this.rawT = rawT;
|
|
13
|
+
}
|
|
14
|
+
pp() {
|
|
15
|
+
return `<type: ${this.rawT.pp()}>`;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.TypeType = TypeType;
|
|
19
|
+
//# sourceMappingURL=type_type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type_type.js","sourceRoot":"","sources":["../../../../src/debug/runtime_types/ast/type_type.ts"],"names":[],"mappings":";;;AACA,2CAA8C;AAE9C;;;GAGG;AACH,MAAa,QAAS,SAAQ,2BAAe;IACzC,YAA4B,IAAkB;QAC1C,KAAK,EAAE,CAAC;QADgB,SAAI,GAAJ,IAAI,CAAc;IAE9C,CAAC;IAED,EAAE;QACE,OAAO,UAAU,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC;IACvC,CAAC;CACJ;AARD,4BAQC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/debug/runtime_types/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ast"), exports);
|
|
18
|
+
__exportStar(require("./utils"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/debug/runtime_types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,0CAAwB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as sol from "solc-typed-ast";
|
|
2
|
+
import * as rtt from "./ast";
|
|
3
|
+
/**
|
|
4
|
+
* Convert the given solc-typed-ast type to a runtime types. This does the following conversions:
|
|
5
|
+
*
|
|
6
|
+
* - Convert `UserDefinedType(StructDefinition)` to `ExpStructType`
|
|
7
|
+
* - Convert `UserDefinedType(UserDefinedValueTypeDefinition)` to the underlying type
|
|
8
|
+
* - Convert `UserDefinedType(ContractDefinition)` to address
|
|
9
|
+
*
|
|
10
|
+
* @param rawT
|
|
11
|
+
*/
|
|
12
|
+
export declare function astToRuntimeType(rawT: sol.TypeNode, infer: sol.InferType, loc?: sol.DataLocation | undefined): rtt.BaseRuntimeType;
|
|
13
|
+
/**
|
|
14
|
+
* Given a general runtime type 'pattern' that doesn't contain any data locations, and a data location,
|
|
15
|
+
* produce a concrete instance of the general type for the target location.
|
|
16
|
+
* This is the inverse of `specializeType()`
|
|
17
|
+
*
|
|
18
|
+
* @param type - general type "pattern"
|
|
19
|
+
* @param loc - target location to specialize to
|
|
20
|
+
* @returns specialized type
|
|
21
|
+
*/
|
|
22
|
+
export declare function specializeType(type: rtt.BaseRuntimeType, loc: sol.DataLocation): rtt.BaseRuntimeType;
|
|
23
|
+
/**
|
|
24
|
+
* Given a `BaseRuntimeType` `type` that is specialized to some storage location,
|
|
25
|
+
* compute the original 'general' type that is independent of location.
|
|
26
|
+
* This is the inverse of `specializeType()`
|
|
27
|
+
*
|
|
28
|
+
* @param type - specialized type
|
|
29
|
+
* @returns computed generalized type
|
|
30
|
+
*/
|
|
31
|
+
export declare function generalizeType(type: rtt.BaseRuntimeType): rtt.BaseRuntimeType;
|
|
32
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/debug/runtime_types/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAyB7B;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC5B,IAAI,EAAE,GAAG,CAAC,QAAQ,EAClB,KAAK,EAAE,GAAG,CAAC,SAAS,EACpB,GAAG,GAAE,GAAG,CAAC,YAAY,GAAG,SAAqB,GAC9C,GAAG,CAAC,eAAe,CA4GrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC1B,IAAI,EAAE,GAAG,CAAC,eAAe,EACzB,GAAG,EAAE,GAAG,CAAC,YAAY,GACtB,GAAG,CAAC,eAAe,CA4CrB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,eAAe,GAAG,GAAG,CAAC,eAAe,CA8B7E"}
|