Send mobymask p2p messages to laconicd (#339)

* Use laconic ETH RPC endpoint for querying

* Run peer with message handler to send tx to laconic

* Handle revoke messages in mobymask p2p

* Set tx gasLimit explicitly for slow eth_estimateGas call

* Convert delegationHash to hex string before broadcasting json
This commit is contained in:
2023-03-17 10:26:47 +05:30
committed by GitHub
parent 787991c432
commit c44eff36b4
8 changed files with 237 additions and 28 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ import isArray from 'lodash/isArray';
import { StorageLayout, GetStorageAt } from '../src';
// storageLayout doesnt exist in type CompilerOutput doesnt.
// storageLayout doesn't exist in type CompilerOutput doesn't.
// Extending CompilerOutput type to include storageLayout property.
interface StorageCompilerOutput extends CompilerOutput {
contracts: {
@@ -82,7 +82,7 @@ export const getStorageAt: GetStorageAt = async ({ blockHash, contract, slot })
return {
value,
proof: {
// Returning null value as proof, since ethers library getStorageAt method doesnt return proof.
// Returning null value as proof, since ethers library getStorageAt method doesn't return proof.
// This function is used in tests to mock the getStorageAt method of ipld-eth-client which returns proof along with value.
data: JSON.stringify(null)
}