Function
Static Public Summary | ||
public |
abbreviateValues(value: *, options: {}, depth: number): * |
|
public |
addContext(contractName: *, binary: *): {"type": *, "contractName": *, "binary": *} |
|
public |
* addContext(contractName: *, binary: *): string Adds EVM bytecode context |
|
public |
addInstance(address: *, context: *, binary: *): {"type": *, "address": *, "context": *, "binary": *} |
|
public |
* addInstance(address: *, binary: *): string Adds known deployed instance of binary at address |
|
public |
* addSource(source: *, sourcePath: *, ast: *) |
|
public |
addSource(source: *, sourcePath: *, ast: *): {"type": *, "source": *, "sourcePath": *, "ast": *} |
|
public |
addSourceMap(binary: *, sourceMap: *): {"type": *, "binary": *, "sourceMap": *} |
|
public |
* addSourceMap(binary: *, sourceMap: *) |
|
public |
* advance() |
|
public |
advance(): {"type": *} |
|
public |
allocateDeclarations(declarations: *, refs: *, slot: number, index: *, path: *[]): {"from": *, "to": *, "next": *, "children": *} Allocate storage for given variable declarations |
|
public |
assign(context: *, assignments: *): {"type": *, "context": *, "assignments": *} |
|
public |
ast |
|
public |
ast.current(state: *): Object ast.current |
|
public |
ast.current.index(state: *): Object ast.current.index |
|
public |
ast.current.node(state: *): Object ast.current.node |
|
public |
ast.current.pointer(state: *): Object ast.current.pointer |
|
public |
ast.current.tree(state: *): Object ast.current.tree |
|
public |
ast.views |
|
public |
ast.views.sources(state: *): Object ast.views.sources |
|
public |
baseDefinition(definition: *): {"typeDescriptions": *} |
|
public |
* begin(objectPattern: {"address": *, "binary": *}) |
|
public |
beginStep(type: *): {"type": *, "stepType": *} |
|
public |
call(address: *): {"type": *, "address": *} |
|
public |
callAddress(state: *): Object .callAddress |
|
public |
callstack(state: *[], action: *): * |
|
public |
* callstackSaga() |
|
public |
chunk(memory: *, size: *): * Split memory into chunks |
|
public |
cleanBigNumbers(value: *): * recursively converts big numbers into something nicer to look at |
|
public |
configureStore(reducer: *, saga: *, initialState: *, composeEnhancers: *): * |
|
public |
configureStore(reducer: *, saga: *, initialState: *): * |
|
public |
continueUntil(breakpoints: ...*): {"type": *, "breakpoints": *} |
|
public |
controller(state: *): Object controller |
|
public |
controller.current(state: *): Object controller.current |
|
public |
controller.current.executionContext(state: *): Object controller.current.executionContext |
|
public |
controller.current.functionDepth(state: *): Object controller.current.functionDepth |
|
public |
controller.current.location(state: *): Object controller.current.location |
|
public |
controller.current.location.isMultiline(state: *): Object controller.current.location.isMultiline |
|
public |
controller.current.location.node(state: *): Object controller.current.location.node |
|
public |
controller.current.location.sourceRange(state: *): Object controller.current.location.sourceRange |
|
public |
controller.current.willJump(state: *): Object controller.current.willJump |
|
public |
create(binary: *): {"type": *, "binary": *} |
|
public |
createBinary(state: *): Object .createBinary |
|
public |
solidity.current |
|
public |
evm.current |
|
public |
data.current |
|
public |
current.call(state: *): Object evm.current.call |
|
public |
current.callstack(state: *): Object evm.current.callstack |
|
public |
current.context(state: *): Object evm.current.context |
|
public |
current.functionDepth(state: *): Object solidity.current.functionDepth |
|
public |
current.identifiers(state: *): Object data.current.identifiers (namespace) |
|
public |
current.identifiers._(state: *): Object data.current.identifiers (selector) |
|
public |
current.identifiers.definitions(state: *): Object data.current.identifiers.definitions |
|
public |
current.identifiers.refs(state: *): Object data.current.identifiers.refs |
|
public |
current.instruction(state: *): Object solidity.current.instruction |
|
public |
current.instructionAtProgramCounter(state: *): Object solidity.current.instructionAtProgramCounter |
|
public |
current.instructions(state: *): Object solidity.current.instructions |
|
public |
current.isMultiline(state: *): Object solidity.current.isMultiline |
|
public |
current.isSourceRangeFinal(state: *): Object solidity.current.isSourceRangeFinal |
|
public |
current.jumpDirection(state: *): Object solidity.current.jumpDirection |
|
public |
current.scope(state: *): Object data.current.scope |
|
public |
current.scope.id(state: *): Object data.current.scope.id |
|
public |
current.source(state: *): Object solidity.current.source |
|
public |
current.sourceMap(state: *): Object solidity.current.sourceMap |
|
public |
current.sourceRange(state: *): Object solidity.current.sourceRange |
|
public |
current.willJump(state: *): Object solidity.current.willJump |
|
public |
* declare(node: *) |
|
public |
declare(node: *): {"type": *, "node": *} |
|
public |
decode(definition: *, args: ...*): * |
|
public |
decodeMemoryReference(definition: *, pointer: *, state: *, args: ...*): * |
|
public |
decodeStorageReference(definition: *, pointer: *, state: *, args: ...*): * |
|
public |
decodeValue(definition: *, pointer: *, state: *, args: ...*): * |
|
public |
doneVisiting(): {"type": *} |
|
public |
endTrace(): {"type": *} |
|
public |
error(error: *): {"type": *, "error": *} |
|
public |
error(error: *): {"type": *, "error": *} |
|
public |
fetchBinary(address: *): {"type": *, "address": *} |
|
public |
finish(): {"type": *} |
|
public |
functionDepth(state: number, action: *): * |
|
public |
trace.index |
|
public |
|
|
public |
solidity.info |
|
public |
session.info |
|
public |
data.info |
|
public |
evm.info |
|
public |
info.affectedInstances(state: *): Object session.info.affectedInstances |
|
public |
info.binaries(state: *): Object evm.info.binaries |
|
public |
info.binaries.search(state: *): Object evm.info.binaries.search |
|
public |
info.binaries.search.toRegExp(binary: *): Object |
|
public |
info.contexts(state: *): Object evm.info.contexts |
|
public |
info.instances(state: *): Object evm.info.instances |
|
public |
info.scopes(state: *): Object data.info.scopes |
|
public |
info.sourceMaps(state: *): Object solidity.info.sourceMaps |
|
public |
info.sources(state: *): Object solidity.info.sources |
|
public |
init(provider: *): {"type": *, "provider": *} |
|
public |
inspect(txHash: *): {"type": *, "txHash": *} |
|
public |
* inspectTransaction(txHash: *, provider: *): {"trace": *, "address": *, "binary": *} |
|
public |
interrupt(): {"type": *} |
|
public |
.isCall |
|
public |
.isCreate |
|
public |
.isHalting |
|
public |
.isJump |
|
public |
isReference(definition: *): * |
|
public |
jump(jumpDirection: *): {"type": *, "jumpDirection": *} |
|
public |
keccak256(args: ...*): * |
|
public |
keccak256(args: ...*): * |
|
public |
.memory |
|
public |
data.next |
|
public |
evm.next |
|
public |
trace.next |
|
public |
next(): {"type": *} |
|
public |
* obtainBinaries(addresses: *): * |
|
public |
prefixName(prefix: *, fn: *): * |
|
public |
data.proc |
|
public |
proc.assignments(state: *): Object data.proc.assignments |
|
public |
* processTrace(trace: *): * |
|
public |
programCounter(state: *): Object .programCounter |
|
public |
read(pointer: *, state: *): * |
|
public |
read(memory: *): BigNumber read word from memory |
|
public |
read(slot: *, offset: *): * read slot from storage |
|
public |
readBytes(memory: *): * read <bytes> amount of bytes from memory, starting at byte <start> |
|
public |
readRange(from: *, to: *, length: *): * read all bytes in some range. |
|
public |
ready(): {"type": *} |
|
public |
receiveAddresses(addresses: *): {"type": *, "addresses": *} |
|
public |
receiveBinary(address: *, binary: *): {"type": *, "address": *, "binary": *} |
|
public |
receiveCall(objectPattern: {"address": *, "binary": *}): {"type": *, "address": *, "binary": *} |
|
public |
receiveTrace(trace: *): {"type": *, "trace": *} |
|
public |
recordContracts(contexts: *, sources: *): {"type": *, "contexts": *, "sources": *} |
|
public |
referenceType(definition: *): * |
|
public |
returnCall(): {"type": *} |
|
public |
* saga() |
|
public |
* saga() |
|
public |
* saga() |
|
public |
* saga() |
|
public |
* saga() |
|
public |
* saga() |
|
public |
* saga() |
|
public |
* saga() |
|
public |
saveSteps(steps: *): {"type": *, "steps": *} |
|
public |
scope(id: *, pointer: *, parentId: *, sourceId: *): {"type": *, "id": *, "pointer": *, "parentId": *, "sourceId": *} |
|
public |
* scope(nodeId: *, pointer: *, parentId: *, sourceId: *) |
|
public |
session(state: *, action: *): * |
|
public |
specifiedSize(definition: *): * e.g. |
|
public |
.stack |
|
public |
start(txHash: *, provider: *): {"type": *, "txHash": *, "provider": *} |
|
public |
evm.state |
|
public |
solidity.state |
|
public |
trace.step |
|
public |
stepInto(): {"type": *} |
|
public |
stepNext(): {"type": *} |
|
public |
stepOut(): {"type": *} |
|
public |
stepOver(): {"type": *} |
|
public |
trace.steps |
|
public |
|
|
public |
stepsRemaining(state: *): Object trace.stepsRemaining |
|
public |
.storage |
|
public |
storageSize(definition: *): * |
|
public |
tick(): {"type": *} |
|
public |
toBigNumber(bytes: *): * |
|
public |
|
|
public |
toHexString(bytes: *, length: *, trim: *): string |
|
public |
toSignedBigNumber(bytes: *): * |
|
public |
tock(): {"type": *} |
|
public |
.trace |
|
public |
typeClass(definition: *): * returns basic type class for a variable definition node
e.g.:
|
|
public |
typeIdentifier(definition: *): * |
|
public |
data.views |
|
public |
views.decoder(state: *): Object data.views.decoder |
|
public |
views.scopes(state: *): Object data.views.scopes |
|
public |
views.scopes.inlined(state: *): Object data.views.scopes.inlined |
|
public |
visit(sourceId: *, ast: *): {"type": *, "sourceId": *, "ast": *} |
|
public |
* visitAll(idx: *) |
|
public |
* wait() |
Static Public
public abbreviateValues(value: *, options: {}, depth: number): * source
import {abbreviateValues} from 'truffle-debugger/lib/store/common.js'
Params:
Name | Type | Attribute | Description |
value | * | ||
options | {} |
|
|
depth | number |
|
Return:
* |
public addContext(contractName: *, binary: *): {"type": *, "contractName": *, "binary": *} source
import {addContext} from 'truffle-debugger/lib/evm/actions/index.js'
Params:
Name | Type | Attribute | Description |
contractName | * | ||
binary | * |
Return:
{"type": *, "contractName": *, "binary": *} |
public * addContext(contractName: *, binary: *): string source
import {addContext} from 'truffle-debugger/lib/evm/sagas/index.js'
Adds EVM bytecode context
Params:
Name | Type | Attribute | Description |
contractName | * | ||
binary | * |
public addInstance(address: *, context: *, binary: *): {"type": *, "address": *, "context": *, "binary": *} source
import {addInstance} from 'truffle-debugger/lib/evm/actions/index.js'
Params:
Name | Type | Attribute | Description |
address | * | ||
context | * | ||
binary | * |
Return:
{"type": *, "address": *, "context": *, "binary": *} |
public * addInstance(address: *, binary: *): string source
import {addInstance} from 'truffle-debugger/lib/evm/sagas/index.js'
Adds known deployed instance of binary at address
Params:
Name | Type | Attribute | Description |
address | * | ||
binary | * |
public * addSource(source: *, sourcePath: *, ast: *) source
import {addSource} from 'truffle-debugger/lib/solidity/sagas/index.js'
Params:
Name | Type | Attribute | Description |
source | * | ||
sourcePath | * | ||
ast | * |
public addSource(source: *, sourcePath: *, ast: *): {"type": *, "source": *, "sourcePath": *, "ast": *} source
import {addSource} from 'truffle-debugger/lib/solidity/actions/index.js'
Params:
Name | Type | Attribute | Description |
source | * | ||
sourcePath | * | ||
ast | * |
Return:
{"type": *, "source": *, "sourcePath": *, "ast": *} |
public addSourceMap(binary: *, sourceMap: *): {"type": *, "binary": *, "sourceMap": *} source
import {addSourceMap} from 'truffle-debugger/lib/solidity/actions/index.js'
Params:
Name | Type | Attribute | Description |
binary | * | ||
sourceMap | * |
Return:
{"type": *, "binary": *, "sourceMap": *} |
public * addSourceMap(binary: *, sourceMap: *) source
import {addSourceMap} from 'truffle-debugger/lib/solidity/sagas/index.js'
Params:
Name | Type | Attribute | Description |
binary | * | ||
sourceMap | * |
public advance(): {"type": *} source
import {advance} from 'truffle-debugger/lib/controller/actions/index.js'
Return:
{"type": *} |
public allocateDeclarations(declarations: *, refs: *, slot: number, index: *, path: *[]): {"from": *, "to": *, "next": *, "children": *} source
import {allocateDeclarations} from 'truffle-debugger/lib/data/decode/utils.js'
Allocate storage for given variable declarations
Postcondition: starts a new slot and occupies whole slots
Params:
Name | Type | Attribute | Description |
declarations | * | ||
refs | * | ||
slot | number |
|
|
index | * |
|
|
path | *[] |
|
Return:
{"from": *, "to": *, "next": *, "children": *} |
public assign(context: *, assignments: *): {"type": *, "context": *, "assignments": *} source
import {assign} from 'truffle-debugger/lib/data/actions/index.js'
Params:
Name | Type | Attribute | Description |
context | * | ||
assignments | * |
Return:
{"type": *, "context": *, "assignments": *} |
public ast.current(state: *): Object source
ast.current
Params:
Name | Type | Attribute | Description |
state | * |
public ast.current.index(state: *): Object source
ast.current.index
source ID
Params:
Name | Type | Attribute | Description |
state | * |
public ast.current.node(state: *): Object source
ast.current.node
current ast node to execute
Params:
Name | Type | Attribute | Description |
state | * |
public ast.current.pointer(state: *): Object source
ast.current.pointer
jsonpointer for current ast node
Params:
Name | Type | Attribute | Description |
state | * |
public ast.current.tree(state: *): Object source
ast.current.tree
ast for current source
Params:
Name | Type | Attribute | Description |
state | * |
public ast.views.sources(state: *): Object source
ast.views.sources
Params:
Name | Type | Attribute | Description |
state | * |
public baseDefinition(definition: *): {"typeDescriptions": *} source
import {baseDefinition} from 'truffle-debugger/lib/data/decode/utils.js'
Params:
Name | Type | Attribute | Description |
definition | * |
Return:
{"typeDescriptions": *} |
public * begin(objectPattern: {"address": *, "binary": *}) source
import {begin} from 'truffle-debugger/lib/evm/sagas/index.js'
Params:
Name | Type | Attribute | Description |
objectPattern | {"address": *, "binary": *} |
|
public beginStep(type: *): {"type": *, "stepType": *} source
import {beginStep} from 'truffle-debugger/lib/controller/actions/index.js'
Params:
Name | Type | Attribute | Description |
type | * |
Return:
{"type": *, "stepType": *} |
public call(address: *): {"type": *, "address": *} source
import {call} from 'truffle-debugger/lib/evm/actions/index.js'
Params:
Name | Type | Attribute | Description |
address | * |
Return:
{"type": *, "address": *} |
public callAddress(state: *): Object source
.callAddress
address transferred to by call operation
Params:
Name | Type | Attribute | Description |
state | * |
public callstack(state: *[], action: *): * source
import {callstack} from 'truffle-debugger/lib/evm/reducers.js'
Params:
Name | Type | Attribute | Description |
state | *[] |
|
|
action | * |
Return:
* |
public * callstackSaga() source
import {callstackSaga} from 'truffle-debugger/lib/evm/sagas/index.js'
public chunk(memory: *, size: *): * source
import {chunk} from 'truffle-debugger/lib/data/decode/memory.js'
Split memory into chunks
Params:
Name | Type | Attribute | Description |
memory | * | ||
size | * |
|
Return:
* |
public cleanBigNumbers(value: *): * source
import {cleanBigNumbers} from 'truffle-debugger/lib/data/decode/utils.js'
recursively converts big numbers into something nicer to look at
Params:
Name | Type | Attribute | Description |
value | * |
Return:
* |
public configureStore(reducer: *, saga: *, initialState: *, composeEnhancers: *): * source
import configureStore from 'truffle-debugger/lib/store/common.js'
Params:
Name | Type | Attribute | Description |
reducer | * | ||
saga | * | ||
initialState | * | ||
composeEnhancers | * |
Return:
* |
public configureStore(reducer: *, saga: *, initialState: *): * source
import configureStore from 'truffle-debugger/lib/store/development.js'
Params:
Name | Type | Attribute | Description |
reducer | * | ||
saga | * | ||
initialState | * |
Return:
* |
public continueUntil(breakpoints: ...*): {"type": *, "breakpoints": *} source
import {continueUntil} from 'truffle-debugger/lib/controller/actions/index.js'
Params:
Name | Type | Attribute | Description |
breakpoints | ...* |
Return:
{"type": *, "breakpoints": *} |
public controller.current(state: *): Object source
controller.current
Params:
Name | Type | Attribute | Description |
state | * |
public controller.current.executionContext(state: *): Object source
controller.current.executionContext
Params:
Name | Type | Attribute | Description |
state | * |
public controller.current.functionDepth(state: *): Object source
controller.current.functionDepth
Params:
Name | Type | Attribute | Description |
state | * |
public controller.current.location(state: *): Object source
controller.current.location
Params:
Name | Type | Attribute | Description |
state | * |
public controller.current.location.isMultiline(state: *): Object source
controller.current.location.isMultiline
Params:
Name | Type | Attribute | Description |
state | * |
public controller.current.location.node(state: *): Object source
controller.current.location.node
Params:
Name | Type | Attribute | Description |
state | * |
public controller.current.location.sourceRange(state: *): Object source
controller.current.location.sourceRange
Params:
Name | Type | Attribute | Description |
state | * |
public controller.current.willJump(state: *): Object source
controller.current.willJump
Params:
Name | Type | Attribute | Description |
state | * |
public create(binary: *): {"type": *, "binary": *} source
import {create} from 'truffle-debugger/lib/evm/actions/index.js'
Params:
Name | Type | Attribute | Description |
binary | * |
Return:
{"type": *, "binary": *} |
public createBinary(state: *): Object source
.createBinary
binary code to execute via create operation
Params:
Name | Type | Attribute | Description |
state | * |
public current(state: *): Object source
solidity.current
Params:
Name | Type | Attribute | Description |
state | * |
public current.call(state: *): Object source
evm.current.call
Params:
Name | Type | Attribute | Description |
state | * |
public current.callstack(state: *): Object source
evm.current.callstack
Params:
Name | Type | Attribute | Description |
state | * |
public current.context(state: *): Object source
evm.current.context
Params:
Name | Type | Attribute | Description |
state | * |
public current.functionDepth(state: *): Object source
solidity.current.functionDepth
Params:
Name | Type | Attribute | Description |
state | * |
public current.identifiers(state: *): Object source
data.current.identifiers (namespace)
Params:
Name | Type | Attribute | Description |
state | * |
public current.identifiers._(state: *): Object source
data.current.identifiers (selector)
returns identifers and corresponding definition node ID
Params:
Name | Type | Attribute | Description |
state | * |
public current.identifiers.definitions(state: *): Object source
data.current.identifiers.definitions
current variable definitions
Params:
Name | Type | Attribute | Description |
state | * |
public current.identifiers.refs(state: *): Object source
data.current.identifiers.refs
current variables' value refs
Params:
Name | Type | Attribute | Description |
state | * |
public current.instruction(state: *): Object source
solidity.current.instruction
Params:
Name | Type | Attribute | Description |
state | * |
public current.instructionAtProgramCounter(state: *): Object source
solidity.current.instructionAtProgramCounter
Params:
Name | Type | Attribute | Description |
state | * |
public current.instructions(state: *): Object source
solidity.current.instructions
Params:
Name | Type | Attribute | Description |
state | * |
public current.isMultiline(state: *): Object source
solidity.current.isMultiline
Params:
Name | Type | Attribute | Description |
state | * |
public current.isSourceRangeFinal(state: *): Object source
solidity.current.isSourceRangeFinal
Params:
Name | Type | Attribute | Description |
state | * |
public current.jumpDirection(state: *): Object source
solidity.current.jumpDirection
Params:
Name | Type | Attribute | Description |
state | * |
public current.scope(state: *): Object source
data.current.scope
Params:
Name | Type | Attribute | Description |
state | * |
public current.scope.id(state: *): Object source
data.current.scope.id
Params:
Name | Type | Attribute | Description |
state | * |
public current.source(state: *): Object source
solidity.current.source
Params:
Name | Type | Attribute | Description |
state | * |
public current.sourceMap(state: *): Object source
solidity.current.sourceMap
Params:
Name | Type | Attribute | Description |
state | * |
public current.sourceRange(state: *): Object source
solidity.current.sourceRange
Params:
Name | Type | Attribute | Description |
state | * |
public current.willJump(state: *): Object source
solidity.current.willJump
Params:
Name | Type | Attribute | Description |
state | * |
public * declare(node: *) source
import {declare} from 'truffle-debugger/lib/data/sagas/index.js'
Params:
Name | Type | Attribute | Description |
node | * |
public declare(node: *): {"type": *, "node": *} source
import {declare} from 'truffle-debugger/lib/data/actions/index.js'
Params:
Name | Type | Attribute | Description |
node | * |
Return:
{"type": *, "node": *} |
public decode(definition: *, args: ...*): * source
import decode from 'truffle-debugger/lib/data/decode/index.js'
Params:
Name | Type | Attribute | Description |
definition | * | ||
args | ...* |
Return:
* |
public decodeMemoryReference(definition: *, pointer: *, state: *, args: ...*): * source
import {decodeMemoryReference} from 'truffle-debugger/lib/data/decode/index.js'
Params:
Name | Type | Attribute | Description |
definition | * | ||
pointer | * | ||
state | * | ||
args | ...* |
Return:
* |
public decodeStorageReference(definition: *, pointer: *, state: *, args: ...*): * source
import {decodeStorageReference} from 'truffle-debugger/lib/data/decode/index.js'
Params:
Name | Type | Attribute | Description |
definition | * | ||
pointer | * | ||
state | * | ||
args | ...* |
Return:
* |
public decodeValue(definition: *, pointer: *, state: *, args: ...*): * source
import {decodeValue} from 'truffle-debugger/lib/data/decode/index.js'
Params:
Name | Type | Attribute | Description |
definition | * | ||
pointer | * | ||
state | * | ||
args | ...* |
Return:
* |
public doneVisiting(): {"type": *} source
import {doneVisiting} from 'truffle-debugger/lib/ast/actions/index.js'
Return:
{"type": *} |
public endTrace(): {"type": *} source
import {endTrace} from 'truffle-debugger/lib/trace/actions/index.js'
Return:
{"type": *} |
public error(error: *): {"type": *, "error": *} source
import {error} from 'truffle-debugger/lib/web3/actions/index.js'
Params:
Name | Type | Attribute | Description |
error | * |
Return:
{"type": *, "error": *} |
public error(error: *): {"type": *, "error": *} source
import {error} from 'truffle-debugger/lib/session/actions/index.js'
Params:
Name | Type | Attribute | Description |
error | * |
Return:
{"type": *, "error": *} |
public fetchBinary(address: *): {"type": *, "address": *} source
import {fetchBinary} from 'truffle-debugger/lib/web3/actions/index.js'
Params:
Name | Type | Attribute | Description |
address | * |
Return:
{"type": *, "address": *} |
public finish(): {"type": *} source
import {finish} from 'truffle-debugger/lib/session/actions/index.js'
Return:
{"type": *} |
public functionDepth(state: number, action: *): * source
import {functionDepth} from 'truffle-debugger/lib/solidity/reducers.js'
Params:
Name | Type | Attribute | Description |
state | number |
|
|
action | * |
Return:
* |
public index(state: *): Object source
trace.index
current step index
Params:
Name | Type | Attribute | Description |
state | * |
public index(state: number, action: *): * source
import {index} from 'truffle-debugger/lib/trace/reducers.js'
Params:
Name | Type | Attribute | Description |
state | number |
|
|
action | * |
Return:
* |
public info.affectedInstances(state: *): Object source
session.info.affectedInstances
Params:
Name | Type | Attribute | Description |
state | * |
public info.binaries(state: *): Object source
evm.info.binaries
Params:
Name | Type | Attribute | Description |
state | * |
public info.binaries.search(state: *): Object source
evm.info.binaries.search
returns function (binary) => context
Params:
Name | Type | Attribute | Description |
state | * |
public info.binaries.search.toRegExp(binary: *): Object source
Params:
Name | Type | Attribute | Description |
binary | * |
public info.contexts(state: *): Object source
evm.info.contexts
Params:
Name | Type | Attribute | Description |
state | * |
public info.instances(state: *): Object source
evm.info.instances
Params:
Name | Type | Attribute | Description |
state | * |
public info.scopes(state: *): Object source
data.info.scopes
Params:
Name | Type | Attribute | Description |
state | * |
public info.sourceMaps(state: *): Object source
solidity.info.sourceMaps
Params:
Name | Type | Attribute | Description |
state | * |
public info.sources(state: *): Object source
solidity.info.sources
Params:
Name | Type | Attribute | Description |
state | * |
public init(provider: *): {"type": *, "provider": *} source
import {init} from 'truffle-debugger/lib/web3/actions/index.js'
Params:
Name | Type | Attribute | Description |
provider | * |
Return:
{"type": *, "provider": *} |
public inspect(txHash: *): {"type": *, "txHash": *} source
import {inspect} from 'truffle-debugger/lib/web3/actions/index.js'
Params:
Name | Type | Attribute | Description |
txHash | * |
Return:
{"type": *, "txHash": *} |
public * inspectTransaction(txHash: *, provider: *): {"trace": *, "address": *, "binary": *} source
import {inspectTransaction} from 'truffle-debugger/lib/web3/sagas/index.js'
Params:
Name | Type | Attribute | Description |
txHash | * | ||
provider | * |
Return:
{"trace": *, "address": *, "binary": *} |
public interrupt(): {"type": *} source
import {interrupt} from 'truffle-debugger/lib/controller/actions/index.js'
Return:
{"type": *} |
public isCall(state: *): Object source
.isCall
whether the opcode will switch to another calling context
Params:
Name | Type | Attribute | Description |
state | * |
public isHalting(state: *): Object source
.isHalting
whether the instruction halts or returns from a calling context
Params:
Name | Type | Attribute | Description |
state | * |
public isReference(definition: *): * source
import {isReference} from 'truffle-debugger/lib/data/decode/utils.js'
Params:
Name | Type | Attribute | Description |
definition | * |
Return:
* |
public jump(jumpDirection: *): {"type": *, "jumpDirection": *} source
import {jump} from 'truffle-debugger/lib/solidity/actions/index.js'
Params:
Name | Type | Attribute | Description |
jumpDirection | * |
Return:
{"type": *, "jumpDirection": *} |
public keccak256(args: ...*): * source
import {keccak256} from 'truffle-debugger/lib/helpers/index.js'
Params:
Name | Type | Attribute | Description |
args | ...* |
Return:
* | 0x-prefix string of keccak256 hash |
public keccak256(args: ...*): * source
import {keccak256} from 'truffle-debugger/lib/data/decode/utils.js'
Params:
Name | Type | Attribute | Description |
args | ...* |
Return:
* |
public next(state: *): Object source
trace.next
next trace step or {}
Params:
Name | Type | Attribute | Description |
state | * |
public next(): {"type": *} source
import {next} from 'truffle-debugger/lib/trace/actions/index.js'
Return:
{"type": *} |
public * obtainBinaries(addresses: *): * source
import {obtainBinaries} from 'truffle-debugger/lib/web3/sagas/index.js'
Params:
Name | Type | Attribute | Description |
addresses | * |
Return:
* |
public prefixName(prefix: *, fn: *): * source
import {prefixName} from 'truffle-debugger/lib/helpers/index.js'
Params:
Name | Type | Attribute | Description |
prefix | * | ||
fn | * |
Return:
* |
public proc.assignments(state: *): Object source
data.proc.assignments
Params:
Name | Type | Attribute | Description |
state | * |
public * processTrace(trace: *): * source
import {processTrace} from 'truffle-debugger/lib/trace/sagas/index.js'
Params:
Name | Type | Attribute | Description |
trace | * |
Return:
* |
public programCounter(state: *): Object source
.programCounter
Params:
Name | Type | Attribute | Description |
state | * |
public read(pointer: *, state: *): * source
import {read} from 'truffle-debugger/lib/data/decode/index.js'
Params:
Name | Type | Attribute | Description |
pointer | * | ||
state | * |
Return:
* |
public read(memory: *): BigNumber source
import {read} from 'truffle-debugger/lib/data/decode/memory.js'
read word from memory
requires byte
to be a multiple of WORD_SIZE (32)
Params:
Name | Type | Attribute | Description |
memory | * | Uint8Array |
Return:
BigNumber |
public read(slot: *, offset: *): * source
import {read} from 'truffle-debugger/lib/data/decode/storage.js'
read slot from storage
Params:
Name | Type | Attribute | Description |
slot | * | big number or array of regular numbers |
|
offset | * | for array, offset from the keccak determined location |
Return:
* |
public readBytes(memory: *): * source
import {readBytes} from 'truffle-debugger/lib/data/decode/memory.js'
read <bytes> amount of bytes from memory, starting at byte <start>
Params:
Name | Type | Attribute | Description |
memory | * | Uint8Array |
Return:
* |
public readRange(from: *, to: *, length: *): * source
import {readRange} from 'truffle-debugger/lib/data/decode/storage.js'
read all bytes in some range.
parameters from
and to
are objects with the following properties:
slot - (required) either a bignumber or a "path" array of integer offsets
path array values get converted into keccak256 hash as per solidity
storage allocation method
ref: https://solidity.readthedocs.io/en/v0.4.23/miscellaneous.html#layout-of-state-variables-in-storage
(search "concatenation")
offset - (default: 0) slot offset
index - (default: 0) byte index in word
Params:
Name | Type | Attribute | Description |
from | * | location (see ^) |
|
to | * | location (see ^). inclusive. |
|
length | * | instead of |
Return:
* |
public ready(): {"type": *} source
import {ready} from 'truffle-debugger/lib/session/actions/index.js'
Return:
{"type": *} |
public receiveAddresses(addresses: *): {"type": *, "addresses": *} source
import {receiveAddresses} from 'truffle-debugger/lib/trace/actions/index.js'
Params:
Name | Type | Attribute | Description |
addresses | * |
Return:
{"type": *, "addresses": *} |
public receiveBinary(address: *, binary: *): {"type": *, "address": *, "binary": *} source
import {receiveBinary} from 'truffle-debugger/lib/web3/actions/index.js'
Params:
Name | Type | Attribute | Description |
address | * | ||
binary | * |
Return:
{"type": *, "address": *, "binary": *} |
public receiveCall(objectPattern: {"address": *, "binary": *}): {"type": *, "address": *, "binary": *} source
import {receiveCall} from 'truffle-debugger/lib/web3/actions/index.js'
Params:
Name | Type | Attribute | Description |
objectPattern | {"address": *, "binary": *} |
|
Return:
{"type": *, "address": *, "binary": *} |
public receiveTrace(trace: *): {"type": *, "trace": *} source
import {receiveTrace} from 'truffle-debugger/lib/web3/actions/index.js'
Params:
Name | Type | Attribute | Description |
trace | * |
Return:
{"type": *, "trace": *} |
public recordContracts(contexts: *, sources: *): {"type": *, "contexts": *, "sources": *} source
import {recordContracts} from 'truffle-debugger/lib/session/actions/index.js'
Params:
Name | Type | Attribute | Description |
contexts | * | ||
sources | * |
Return:
{"type": *, "contexts": *, "sources": *} |
public referenceType(definition: *): * source
import {referenceType} from 'truffle-debugger/lib/data/decode/utils.js'
Params:
Name | Type | Attribute | Description |
definition | * |
Return:
* |
public returnCall(): {"type": *} source
import {returnCall} from 'truffle-debugger/lib/evm/actions/index.js'
Return:
{"type": *} |
public saveSteps(steps: *): {"type": *, "steps": *} source
import {saveSteps} from 'truffle-debugger/lib/trace/actions/index.js'
Params:
Name | Type | Attribute | Description |
steps | * |
Return:
{"type": *, "steps": *} |
public scope(id: *, pointer: *, parentId: *, sourceId: *): {"type": *, "id": *, "pointer": *, "parentId": *, "sourceId": *} source
import {scope} from 'truffle-debugger/lib/data/actions/index.js'
Params:
Name | Type | Attribute | Description |
id | * | ||
pointer | * | ||
parentId | * | ||
sourceId | * |
Return:
{"type": *, "id": *, "pointer": *, "parentId": *, "sourceId": *} |
public * scope(nodeId: *, pointer: *, parentId: *, sourceId: *) source
import {scope} from 'truffle-debugger/lib/data/sagas/index.js'
Params:
Name | Type | Attribute | Description |
nodeId | * | ||
pointer | * | ||
parentId | * | ||
sourceId | * |
public session(state: *, action: *): * source
import {session} from 'truffle-debugger/lib/session/reducers.js'
Params:
Name | Type | Attribute | Description |
state | * |
|
|
action | * |
Return:
* |
public specifiedSize(definition: *): * source
import {specifiedSize} from 'truffle-debugger/lib/data/decode/utils.js'
e.g. uint48 -> 6
Params:
Name | Type | Attribute | Description |
definition | * |
Return:
* | size in bytes for explicit type size, or |
public start(txHash: *, provider: *): {"type": *, "txHash": *, "provider": *} source
import {start} from 'truffle-debugger/lib/session/actions/index.js'
Params:
Name | Type | Attribute | Description |
txHash | * | ||
provider | * |
Return:
{"type": *, "txHash": *, "provider": *} |
public step(state: *): Object source
trace.step
current trace step
Params:
Name | Type | Attribute | Description |
state | * |
public stepInto(): {"type": *} source
import {stepInto} from 'truffle-debugger/lib/controller/actions/index.js'
Return:
{"type": *} |
public stepNext(): {"type": *} source
import {stepNext} from 'truffle-debugger/lib/controller/actions/index.js'
Return:
{"type": *} |
public stepOut(): {"type": *} source
import {stepOut} from 'truffle-debugger/lib/controller/actions/index.js'
Return:
{"type": *} |
public stepOver(): {"type": *} source
import {stepOver} from 'truffle-debugger/lib/controller/actions/index.js'
Return:
{"type": *} |
public steps(state: *): Object source
trace.steps
all trace steps
Params:
Name | Type | Attribute | Description |
state | * |
public steps(state: undefined, action: *): * source
import {steps} from 'truffle-debugger/lib/trace/reducers.js'
Params:
Name | Type | Attribute | Description |
state | undefined |
|
|
action | * |
Return:
* |
public stepsRemaining(state: *): Object source
trace.stepsRemaining
number of steps remaining in trace
Params:
Name | Type | Attribute | Description |
state | * |
public storageSize(definition: *): * source
import {storageSize} from 'truffle-debugger/lib/data/decode/utils.js'
Params:
Name | Type | Attribute | Description |
definition | * |
Return:
* |
public tick(): {"type": *} source
import {tick} from 'truffle-debugger/lib/trace/actions/index.js'
Return:
{"type": *} |
public toBigNumber(bytes: *): * source
import {toBigNumber} from 'truffle-debugger/lib/data/decode/utils.js'
Params:
Name | Type | Attribute | Description |
bytes | * |
Return:
* |
public toBytes(number: *, length: number): * source
import {toBytes} from 'truffle-debugger/lib/data/decode/utils.js'
Params:
Name | Type | Attribute | Description |
number | * | ||
length | number |
|
Return:
* |
public toHexString(bytes: *, length: *, trim: *): string source
import {toHexString} from 'truffle-debugger/lib/data/decode/utils.js'
Params:
Name | Type | Attribute | Description |
bytes | * | Uint8Array |
|
length | * | desired byte length (pad with zeroes) |
|
trim | * | omit leading zeroes |
public toSignedBigNumber(bytes: *): * source
import {toSignedBigNumber} from 'truffle-debugger/lib/data/decode/utils.js'
Params:
Name | Type | Attribute | Description |
bytes | * |
Return:
* |
public tock(): {"type": *} source
import {tock} from 'truffle-debugger/lib/trace/actions/index.js'
Return:
{"type": *} |
public trace(state: *): Object source
.trace
trace step info related to operation
Params:
Name | Type | Attribute | Description |
state | * |
public typeClass(definition: *): * source
import {typeClass} from 'truffle-debugger/lib/data/decode/utils.js'
returns basic type class for a variable definition node
e.g.:
t_uint256
becomes uint
t_struct$_Thing_$20_memory_ptr
becomes struct
Params:
Name | Type | Attribute | Description |
definition | * |
Return:
* |
public typeIdentifier(definition: *): * source
import {typeIdentifier} from 'truffle-debugger/lib/data/decode/utils.js'
Params:
Name | Type | Attribute | Description |
definition | * |
Return:
* |
public views.decoder(state: *): Object source
data.views.decoder
selector returns (ast node definition, data reference) => value
Params:
Name | Type | Attribute | Description |
state | * |
public views.scopes(state: *): Object source
data.views.scopes
Params:
Name | Type | Attribute | Description |
state | * |
public views.scopes.inlined(state: *): Object source
data.views.scopes.inlined
Params:
Name | Type | Attribute | Description |
state | * |
public visit(sourceId: *, ast: *): {"type": *, "sourceId": *, "ast": *} source
import {visit} from 'truffle-debugger/lib/ast/actions/index.js'
Params:
Name | Type | Attribute | Description |
sourceId | * | ||
ast | * |
Return:
{"type": *, "sourceId": *, "ast": *} |
public * visitAll(idx: *) source
import {visitAll} from 'truffle-debugger/lib/ast/sagas/index.js'
Params:
Name | Type | Attribute | Description |
idx | * |