UNPKG

@truffle/codec

Version:

Library for encoding and decoding smart contract data

1,604 lines (1,603 loc) 2.51 MB
{ "id": 0, "name": "Truffle Decoding and Encoding", "variant": "project", "kind": 1, "flags": {}, "children": [ { "id": 1, "name": "@truffle/codec", "variant": "declaration", "kind": 2, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "# Truffle Codec\n\nThis module provides low-level decoding and encoding functionality for\nSolidity and the Solidity ABI. Many parts of this module are intended\nprimarily for internal use by Truffle and so remain largely undocumented,\nbut some of its types are also output by @truffle/decoder, which provides\na higher-level interface to much of this module's functionality.\n\n## If you're here from Truffle Decoder or Truffle Encoder\n\nIf you're coming here from [[@truffle/decoder]] or [[@truffle/encoder]],\nyou probably just want to know about the parts that are relevant to you.\nThese are:\n\n* The \"data\" category (specifically [[Format]])\n* The \"output\" and \"enumerations\" categories ([[CalldataDecoding]], [[LogDecoding]], et al., see below)\n* The \"errors\" category (specifically [[UnknownUserDefinedTypeError]])\n\nNote that the data category is largely scarce in\ndocumentation, although that's because it's largely self-explanatory.\n\nIf you're not just here from Truffle Decoder or Encoder, but are actually\ninterested in the lower-level workings, read on.\n\n## How this module differs from Truffle Decoder and Encoder\n\nUnlike Truffle Decoder and Encoder, this library makes no network connections\nand avoids dependencies that do. Instead, its decoding functionality\nis generator-based; calling one of the decoding functions returns a\ngenerator. This generator's " }, { "kind": "code", "text": "`next()`" }, { "kind": "text", "text": " function may return a finished\nresult, or it may return a request for more information. It is up to\nthe caller to fulfill these requests -- say, by making a network\nconnection of its own. This is how @truffle/decoder and @truffle/encoder\nwork; @truffle/codec makes requests, while Decoder and Encoder fulfill them by\nlooking up the necessary information on the blockchain.\n\nThis library also provides additional functionality beyond what's used by\nTruffle Decoder and Encoder. In particular, this library also exists to\nsupport Truffle Debugger, and so it provides decoding functionality not just\nfor transactions, logs, and state variables, but also for Solidity variables\nduring transaction execution, including circularity detection for memroy\nstructures. It includes functionality for decoding Solidity's internal\nfunction pointers, which the debugger uses, but which Truffle Decoder\ncurrently does not (although this is planned for the future).\n\nThere is also functionality for decoding return values and revert messages\nthat goes beyond what's currently available in @truffle/decoder; this may get\na better interface in the future.\n\n## How to use\n\nYou should probably use [[@truffle/decoder]] or [[@truffle/encoder]]\ninstead, if your use case doesn't preclude it. This module has little\ndocumentation, where it has any at all, and it's likely that parts of its\ninterface may change (particularly regarding allocation). That said, if you\ntruly need the functionality here, Truffle Decoder and Truffle Encoder can\nperhaps serve as something of a reference implementation (and perhaps\nTruffle Debugger as well, though that code is much harder to read or copy)." } ] }, "children": [ { "id": 1147, "name": "AbiData", "variant": "declaration", "kind": 4, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "For allocation, encoding, and decoding of locations related to the ABI\n(calldata in Solidity, events, etc.)" } ] }, "children": [ { "id": 1148, "name": "Allocate", "variant": "declaration", "kind": 4, "flags": {}, "children": [ { "id": 1184, "name": "Utils", "variant": "declaration", "kind": 4, "flags": {}, "children": [ { "id": 1188, "name": "ContextAndAllocationInfo", "variant": "declaration", "kind": 256, "flags": {}, "children": [ { "id": 1192, "name": "allocationInfo", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/utils.ts", "line": 18, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/utils.ts#L18" } ], "type": { "type": "array", "elementType": { "type": "reference", "target": 1237, "name": "ContractAllocationInfo", "package": "@truffle/codec" } } }, { "id": 1189, "name": "contexts", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/utils.ts", "line": 15, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/utils.ts#L15" } ], "type": { "type": "reference", "target": 1889, "name": "Contexts", "package": "@truffle/codec" } }, { "id": 1191, "name": "contractsAndContexts", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/utils.ts", "line": 17, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/utils.ts#L17" } ], "type": { "type": "array", "elementType": { "type": "reference", "target": 1245, "name": "ContractAndContexts", "package": "@truffle/codec" } } }, { "id": 1190, "name": "deployedContexts", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/utils.ts", "line": 16, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/utils.ts#L16" } ], "type": { "type": "reference", "target": 1889, "name": "Contexts", "package": "@truffle/codec" } } ], "groups": [ { "title": "Properties", "children": [ 1192, 1189, 1191, 1190 ] } ], "sources": [ { "fileName": "codec/lib/abi-data/allocate/utils.ts", "line": 14, "character": 17, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/utils.ts#L14" } ] }, { "id": 1185, "name": "collectAllocationInfo", "variant": "declaration", "kind": 64, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/utils.ts", "line": 21, "character": 16, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/utils.ts#L21" } ], "signatures": [ { "id": 1186, "name": "collectAllocationInfo", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/utils.ts", "line": 21, "character": 0, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/utils.ts#L21" } ], "parameters": [ { "id": 1187, "name": "compilations", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "array", "elementType": { "type": "reference", "target": 1817, "name": "Compilation", "package": "@truffle/codec" } } } ], "type": { "type": "reference", "target": 1188, "name": "ContextAndAllocationInfo", "package": "@truffle/codec" } } ] } ], "groups": [ { "title": "Interfaces", "children": [ 1188 ] }, { "title": "Functions", "children": [ 1185 ] } ], "sources": [ { "fileName": "codec/lib/abi-data/allocate/utils.ts", "line": 1, "character": 0, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/utils.ts#L1" } ] }, { "id": 1193, "name": "AbiAllocations", "variant": "declaration", "kind": 256, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 42, "character": 17, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L42" } ], "indexSignature": { "id": 1194, "name": "__index", "variant": "signature", "kind": 8192, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 43, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L43" } ], "parameters": [ { "id": 1195, "name": "id", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "union", "types": [ { "type": "reference", "target": { "sourceFileName": "lib/abi-data/allocate/types.ts", "qualifiedName": "AbiAllocation" }, "name": "AbiAllocation", "package": "@truffle/codec" }, { "type": "literal", "value": null } ] } } }, { "id": 1196, "name": "AbiSizeInfo", "variant": "declaration", "kind": 256, "flags": {}, "children": [ { "id": 1198, "name": "dynamic", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 33, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L33" } ], "type": { "type": "intrinsic", "name": "boolean" } }, { "id": 1197, "name": "size", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 32, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L32" } ], "type": { "type": "intrinsic", "name": "number" } } ], "groups": [ { "title": "Properties", "children": [ 1198, 1197 ] } ], "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 31, "character": 17, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L31" } ] }, { "id": 1228, "name": "BlankReturndataAllocation", "variant": "declaration", "kind": 256, "flags": {}, "children": [ { "id": 1232, "name": "allocationMode", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 197, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L197" } ], "type": { "type": "reference", "target": 895, "name": "DecodingMode", "package": "@truffle/codec" } }, { "id": 1231, "name": "arguments", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 196, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L196" } ], "type": { "type": "tuple" } }, { "id": 1229, "name": "kind", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 194, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L194" } ], "type": { "type": "union", "types": [ { "type": "literal", "value": "selfdestruct" }, { "type": "literal", "value": "failure" } ] } }, { "id": 1230, "name": "selector", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 195, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L195" } ], "type": { "type": "reference", "target": { "sourceFileName": "../../node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Uint8Array" }, "name": "Uint8Array", "package": "typescript" } } ], "groups": [ { "title": "Properties", "children": [ 1232, 1231, 1229, 1230 ] } ], "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 193, "character": 17, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L193" } ] }, { "id": 1199, "name": "CalldataAllocation", "variant": "declaration", "kind": 256, "flags": {}, "children": [ { "id": 1200, "name": "abi", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 97, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L97" } ], "type": { "type": "union", "types": [ { "type": "reference", "target": { "sourceFileName": "../abi-utils/lib/types.ts", "qualifiedName": "FunctionEntry" }, "name": "FunctionEntry", "package": "@truffle/abi-utils" }, { "type": "reference", "target": { "sourceFileName": "../abi-utils/lib/types.ts", "qualifiedName": "ConstructorEntry" }, "name": "ConstructorEntry", "package": "@truffle/abi-utils" } ] } }, { "id": 1203, "name": "allocationMode", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 100, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L100" } ], "type": { "type": "reference", "target": 895, "name": "DecodingMode", "package": "@truffle/codec" } }, { "id": 1202, "name": "arguments", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 99, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L99" } ], "type": { "type": "array", "elementType": { "type": "reference", "target": { "sourceFileName": "lib/abi-data/allocate/types.ts", "qualifiedName": "CalldataArgumentAllocation" }, "name": "CalldataArgumentAllocation", "package": "@truffle/codec" } } }, { "id": 1201, "name": "offset", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 98, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L98" } ], "type": { "type": "intrinsic", "name": "number" } } ], "groups": [ { "title": "Properties", "children": [ 1200, 1203, 1202, 1201 ] } ], "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 96, "character": 17, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L96" } ] }, { "id": 1218, "name": "ConstructorReturndataAllocation", "variant": "declaration", "kind": 256, "flags": {}, "children": [ { "id": 1223, "name": "allocationMode", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 190, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L190" } ], "type": { "type": "reference", "target": 895, "name": "DecodingMode", "package": "@truffle/codec" } }, { "id": 1222, "name": "delegatecallGuard", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 189, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L189" } ], "type": { "type": "intrinsic", "name": "boolean" } }, { "id": 1221, "name": "immutables", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 188, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L188" } ], "type": { "type": "array", "elementType": { "type": "reference", "target": { "sourceFileName": "lib/abi-data/allocate/types.ts", "qualifiedName": "ReturnImmutableAllocation" }, "name": "ReturnImmutableAllocation", "package": "@truffle/codec" } } }, { "id": 1219, "name": "kind", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 186, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L186" } ], "type": { "type": "literal", "value": "bytecode" } }, { "id": 1220, "name": "selector", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 187, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L187" } ], "type": { "type": "reference", "target": { "sourceFileName": "../../node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Uint8Array" }, "name": "Uint8Array", "package": "typescript" } } ], "groups": [ { "title": "Properties", "children": [ 1223, 1222, 1221, 1219, 1220 ] } ], "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 185, "character": 17, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L185" } ] }, { "id": 1237, "name": "ContractAllocationInfo", "variant": "declaration", "kind": 256, "flags": {}, "children": [ { "id": 1238, "name": "abi", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 14, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L14" } ], "type": { "type": "reference", "target": { "sourceFileName": "../abi-utils/lib/types.ts", "qualifiedName": "Abi" }, "name": "Abi", "package": "@truffle/abi-utils" } }, { "id": 1244, "name": "compilationId", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 20, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L20" } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 1243, "name": "compiler", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 19, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L19" } ], "type": { "type": "reference", "target": 1764, "name": "CompilerVersion", "package": "@truffle/codec" } }, { "id": 1241, "name": "constructorContext", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 17, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L17" } ], "type": { "type": "reference", "target": 1892, "name": "Context", "package": "@truffle/codec" } }, { "id": 1239, "name": "contractNode", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 15, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L15" } ], "type": { "type": "reference", "target": 1688, "name": "AstNode", "package": "@truffle/codec" } }, { "id": 1240, "name": "deployedContext", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 16, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L16" } ], "type": { "type": "reference", "target": 1892, "name": "Context", "package": "@truffle/codec" } }, { "id": 1242, "name": "immutableReferences", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 18, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L18" } ], "type": { "type": "reference", "target": { "sourceFileName": "../contract-schema/spec/index.d.ts", "qualifiedName": "ImmutableReferences" }, "name": "ImmutableReferences", "package": "@truffle/contract-schema" } } ], "groups": [ { "title": "Properties", "children": [ 1238, 1244, 1243, 1241, 1239, 1240, 1242 ] } ], "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 13, "character": 17, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L13" } ] }, { "id": 1245, "name": "ContractAndContexts", "variant": "declaration", "kind": 256, "flags": {}, "children": [ { "id": 1246, "name": "compilationId", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 24, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L24" } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 1250, "name": "constructorContext", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 28, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L28" } ], "type": { "type": "reference", "target": 1892, "name": "Context", "package": "@truffle/codec" } }, { "id": 1247, "name": "contract", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 25, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L25" } ], "type": { "type": "reference", "target": 1832, "name": "Contract", "package": "@truffle/codec" } }, { "id": 1249, "name": "deployedContext", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 27, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L27" } ], "type": { "type": "reference", "target": 1892, "name": "Context", "package": "@truffle/codec" } }, { "id": 1248, "name": "node", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 26, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L26" } ], "type": { "type": "reference", "target": 1688, "name": "AstNode", "package": "@truffle/codec" } } ], "groups": [ { "title": "Properties", "children": [ 1246, 1250, 1247, 1249, 1248 ] } ], "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 23, "character": 17, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L23" } ] }, { "id": 1251, "name": "EventAllocation", "variant": "declaration", "kind": 256, "flags": {}, "children": [ { "id": 1252, "name": "abi", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 136, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L136" } ], "type": { "type": "reference", "target": { "sourceFileName": "../abi-utils/lib/types.ts", "qualifiedName": "EventEntry" }, "name": "EventEntry", "package": "@truffle/abi-utils" } }, { "id": 1258, "name": "allocationMode", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 142, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L142" } ], "type": { "type": "reference", "target": 895, "name": "DecodingMode", "package": "@truffle/codec" } }, { "id": 1256, "name": "anonymous", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 140, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L140" } ], "type": { "type": "intrinsic", "name": "boolean" } }, { "id": 1257, "name": "arguments", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 141, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L141" } ], "type": { "type": "array", "elementType": { "type": "reference", "target": { "sourceFileName": "lib/abi-data/allocate/types.ts", "qualifiedName": "EventArgumentAllocation" }, "name": "EventArgumentAllocation", "package": "@truffle/codec" } } }, { "id": 1253, "name": "contextHash", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 137, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L137" } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 1254, "name": "definedIn", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 138, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L138" } ], "type": { "type": "reference", "target": 236, "name": "ContractType", "package": "@truffle/codec" } }, { "id": 1255, "name": "id", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 139, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L139" } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Properties", "children": [ 1252, 1258, 1256, 1257, 1253, 1254, 1255 ] } ], "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 135, "character": 17, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L135" } ] }, { "id": 1234, "name": "FunctionCalldataAndReturndataAllocation", "variant": "declaration", "kind": 256, "flags": {}, "children": [ { "id": 1235, "name": "input", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 88, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L88" } ], "type": { "type": "reference", "target": 1199, "name": "CalldataAllocation", "package": "@truffle/codec" } }, { "id": 1236, "name": "output", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 89, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L89" } ], "type": { "type": "reference", "target": 1205, "name": "ReturnValueReturndataAllocation", "package": "@truffle/codec" } } ], "groups": [ { "title": "Properties", "children": [ 1235, 1236 ] } ], "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 87, "character": 17, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L87" } ] }, { "id": 1224, "name": "MessageReturndataAllocation", "variant": "declaration", "kind": 256, "flags": {}, "children": [ { "id": 1227, "name": "allocationMode", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 203, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L203" } ], "type": { "type": "reference", "target": 895, "name": "DecodingMode", "package": "@truffle/codec" } }, { "id": 1225, "name": "kind", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 201, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L201" } ], "type": { "type": "literal", "value": "returnmessage" } }, { "id": 1226, "name": "selector", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 202, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L202" } ], "type": { "type": "reference", "target": { "sourceFileName": "../../node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Uint8Array" }, "name": "Uint8Array", "package": "typescript" } } ], "groups": [ { "title": "Properties", "children": [ 1227, 1225, 1226 ] } ], "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 200, "character": 17, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L200" } ] }, { "id": 1205, "name": "ReturnValueReturndataAllocation", "variant": "declaration", "kind": 256, "flags": {}, "children": [ { "id": 1209, "name": "allocationMode", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 170, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L170" } ], "type": { "type": "reference", "target": 895, "name": "DecodingMode", "package": "@truffle/codec" } }, { "id": 1208, "name": "arguments", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 169, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L169" } ], "type": { "type": "array", "elementType": { "type": "reference", "target": { "sourceFileName": "lib/abi-data/allocate/types.ts", "qualifiedName": "ReturndataArgumentAllocation" }, "name": "ReturndataArgumentAllocation", "package": "@truffle/codec" } } }, { "id": 1206, "name": "kind", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 167, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L167" } ], "type": { "type": "literal", "value": "return" } }, { "id": 1207, "name": "selector", "variant": "declaration", "kind": 1024, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 168, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L168" } ], "type": { "type": "reference", "target": { "sourceFileName": "../../node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Uint8Array" }, "name": "Uint8Array", "package": "typescript" } } ], "groups": [ { "title": "Properties", "children": [ 1209, 1208, 1206, 1207 ] } ], "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 166, "character": 17, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L166" } ] }, { "id": 1259, "name": "ReturndataAllocations", "variant": "declaration", "kind": 256, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 152, "character": 17, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L152" } ], "indexSignature": { "id": 1260, "name": "__index", "variant": "signature", "kind": 8192, "flags": {}, "sources": [ { "fileName": "codec/lib/abi-data/allocate/types.ts", "line": 153, "character": 2, "url": "https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/codec/lib/abi-data/allocate/types.ts#L153" } ], "parameters": [ { "id": 1261, "name": "contextHash", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic",