-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sdk-coin-celo): support eip1559 for celo
Ticket: COIN-2046 TICKET: COIN-2046 BREAKING CHANGE: This commit updates the hardfork of celo, which changes the final v value and adds support to eip1559 txn
- Loading branch information
1 parent
f4af4ae
commit 819193f
Showing
7 changed files
with
54 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1 @@ | ||
import { BaseCoin as CoinConfig } from '@bitgo/statics'; | ||
import EthereumCommon from '@ethereumjs/common'; | ||
import { Transaction as EthTransaction, LegacyTxData } from '@bitgo/sdk-coin-eth'; | ||
import { CeloTransactionData } from './types'; | ||
import * as Utils from './utils'; | ||
|
||
export class Transaction extends EthTransaction { | ||
setTransactionData(txData: LegacyTxData): void { | ||
this._transactionData = CeloTransactionData.fromJson(txData); | ||
this.updateFields(); | ||
} | ||
|
||
/** @inheritdoc */ | ||
public static fromSerialized( | ||
coinConfig: Readonly<CoinConfig>, | ||
common: EthereumCommon, | ||
serializedTx: string | ||
): Transaction { | ||
return new Transaction(coinConfig, common, Utils.deserialize(serializedTx)); | ||
} | ||
} | ||
export { Transaction } from '@bitgo/abstract-eth'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters