Substrate EVM Processor
is defined in an npm
package that needs to be installed before being able to use it:SubstrateEvmProcessor
class can be imported from the packageprocessor.ts
file in the test subfolder of our main project's repository.The Contract Application Binary Interface (ABI) is the standard way to interact with contracts in the Ethereum ecosystem, both from outside the blockchain and for contract-to-contract interaction. Data is encoded according to its type, as described in this specification. The encoding is not self describing and thus requires a schema in order to decode.
@ethersproject/abi
to wrap the ABI JSON in an Interface
class, and then exports an events
object mapping an event name with its related topic and a function to decode
the EVM data.EvmLogHandler
function, like this:transfer
will be an object with from
, to
, tokenId
fields, as defined above.