Skip to content

Commit

Permalink
Merge pull request #4039 from BitGo/WIN-1012-move-methods-from-sdk-co…
Browse files Browse the repository at this point in the history
…in-eth

refactor(abstract-eth): move methods to abstract-eth
  • Loading branch information
gianchandania authored Nov 11, 2023
2 parents af3a57b + af8bd10 commit 5bc8c97
Show file tree
Hide file tree
Showing 20 changed files with 2,808 additions and 2,947 deletions.
15 changes: 10 additions & 5 deletions modules/abstract-eth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,18 @@
"@bitgo/sdk-core": "^8.26.0",
"@bitgo/statics": "^29.0.0",
"@bitgo/utxo-lib": "^9.16.0",
"bignumber.js": "^9.1.1",
"ethers": "^5.1.3",
"ethereumjs-util": "7.1.5",
"@ethereumjs/common": "^2.6.5",
"@ethereumjs/tx": "^3.3.0",
"ethereumjs-abi": "^0.6.5",
"bignumber.js": "^9.1.1",
"bn.js": "^5.2.1",
"debug": "^3.1.0"
"debug": "^3.1.0",
"ethereumjs-abi": "^0.6.5",
"ethereumjs-util": "7.1.5",
"ethers": "^5.1.3",
"lodash": "4.17.21",
"keccak": "^3.0.3",
"secp256k1": "5.0.0",
"@bitgo/sdk-lib-mpc": "^8.15.0",
"@metamask/eth-sig-util": "^5.0.2"
}
}
7 changes: 4 additions & 3 deletions modules/abstract-eth/src/abstractEthLikeCoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
import BigNumber from 'bignumber.js';

import { isValidEthAddress, KeyPair as EthKeyPair, TransactionBuilder } from './lib';
import { VerifyEthAddressOptions } from './abstractEthLikeNewCoins';

export interface EthSignTransactionOptions extends SignTransactionOptions {
txPrebuild: TransactionPrebuild;
Expand All @@ -36,12 +37,12 @@ export interface TxInfo {
}

interface TransactionPrebuild extends BaseTransactionPrebuild {
txHex: string;
txHex?: string;
txInfo: TxInfo;
feeInfo: EthTransactionFee;
source: string;
dataToSign: string;
nextContractSequenceId?: string;
nextContractSequenceId?: number;
expireTime?: number;
}

Expand Down Expand Up @@ -134,7 +135,7 @@ export abstract class AbstractEthLikeCoin extends BaseCoin {
return {};
}

async isWalletAddress(): Promise<boolean> {
async isWalletAddress(params: VerifyEthAddressOptions): Promise<boolean> {
throw new MethodNotImplementedError();
}

Expand Down
Loading

0 comments on commit 5bc8c97

Please sign in to comment.