You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://gitter.im/ethereum/ethereumjs-lib) or #ethereumjs on freenode
-`opts.caller` - The address that ran this code. The address should be a `Buffer` of 20bits. Defaults to `0`
102
102
-`cb` - The callback. It is given two arguments, an `error` string containing an error that may have happened or `null` and a `results` object with the following properties
103
103
-`gas` - the amount of gas left as a `bignum`
104
-
-`gasUsed` - the amount of gas as a `bignum` the code used to run.
104
+
-`gasUsed` - the amount of gas as a `bignum` the code used to run.
105
105
-`gasRefund` - a `Bignum` containing the amount of gas to refund from deleting storage values
106
106
-`suicides` - an `Object` with keys for accounts that have suicided and values for balance transfer recipient accounts.
107
107
-`logs` - an `Array` of logs that the contract emitted.
All events are instances of [async-eventemmiter](https://www.npmjs.com/package/async-eventemitter). If an event handler has an arity of 2 the VM will pause until the callback is called
138
138
139
-
#### `step`
139
+
#### `step`
140
140
The `step` event is given an `Object` and callback. The `Object` has the following properties.
141
141
-`pc` - a `Number` representing the program counter
142
142
-`opcode` - the next opcode to be ran
143
143
-`gas` - a `bignum` standing for the amount of gasLeft
144
-
-`stack` - an `Array` of `Buffers` containing the stack.
144
+
-`stack` - an `Array` of `Buffers` containing the stack.
145
145
-`storageTrie` - the storage [trie](https://github.com/wanderer/merkle-patricia-tree) for the account
146
146
-`account` - the [`Account`](https://github.com/ethereum/ethereumjs-account) which owns the code running.
147
147
-`address` - the address of the `account`
148
148
-`depth` - the current number of calls deep the contract is
149
149
-`memory` - the memory of the VM as a `buffer`
150
-
-`cache` - The account cache. Contains all the accounts loaded from the trie. It is an instance of [functional red black tree](https://www.npmjs.com/package/functional-red-black-tree)
150
+
-`cache` - The account cache. Contains all the accounts loaded from the trie. It is an instance of [functional red black tree](https://www.npmjs.com/package/functional-red-black-tree)
151
151
152
152
#### `beforeBlock`
153
153
Emits the block that is about to be processed.
@@ -164,11 +164,17 @@ Emits the result of the transaction.
0 commit comments