Skip to content

Commit

Permalink
fix: remove json file to fix json import error (#527)
Browse files Browse the repository at this point in the history
<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->

Fix error import json file using core utils functions

## Related Issue Or Context
<!--- If suggesting a new feature or change, please discuss it in an
issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps
to reproduce -->
<!--- Otherwise, describe context and motivation for change herre -->

Closes: #<issue>

## How Has This Been Tested? Testing details.
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
- [ ] I have commented my code, particularly in hard-to-understand
areas.
- [ ] I have ensured that all acceptance criteria (or expected behavior)
from issue are met
- [ ] I have updated the documentation locally and in chainbridge-docs.
- [ ] I have added tests to cover my changes.
- [ ] I have ensured that all the checks are passing and green, I've
signed the CLA bot
  • Loading branch information
wainola authored Sep 10, 2024
1 parent 47acbdb commit e2bd0d6
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 87 deletions.
86 changes: 0 additions & 86 deletions packages/core/src/abi/Multicall.json

This file was deleted.

86 changes: 86 additions & 0 deletions packages/core/src/multiCallAbi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
export const MulticallAbi = [
{
constant: true,
inputs: [],
name: 'getCurrentBlockTimestamp',
outputs: [{ name: 'timestamp', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{
components: [
{ name: 'target', type: 'address' },
{ name: 'callData', type: 'bytes' },
],
name: 'calls',
type: 'tuple[]',
},
],
name: 'aggregate',
outputs: [
{ name: 'blockNumber', type: 'uint256' },
{ name: 'returnData', type: 'bytes[]' },
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getLastBlockHash',
outputs: [{ name: 'blockHash', type: 'bytes32' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ name: 'addr', type: 'address' }],
name: 'getEthBalance',
outputs: [{ name: 'balance', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getCurrentBlockDifficulty',
outputs: [{ name: 'difficulty', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getCurrentBlockGasLimit',
outputs: [{ name: 'gaslimit', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getCurrentBlockCoinbase',
outputs: [{ name: 'coinbase', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ name: 'blockNumber', type: 'uint256' }],
name: 'getBlockHash',
outputs: [{ name: 'blockHash', type: 'bytes32' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
];
2 changes: 1 addition & 1 deletion packages/core/src/multicall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
import { Web3Provider } from '@ethersproject/providers';
import { Contract, utils } from 'ethers';

import MulticallAbi from './abi/Multicall.json';
import { MulticallAbi } from './multiCallAbi.js';
import type { Eip1193Provider, FeeHandlerType, RouteIndexerType } from './types.js';

enum MulticallDeployedNetworks {
Expand Down

0 comments on commit e2bd0d6

Please sign in to comment.