-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '113-ethereum-chain-fix-bugs' into 'dev'
fix bugs in EVM packages Closes #113 See merge request ergo/rosen-bridge/rosen-chains!133
- Loading branch information
Showing
11 changed files
with
92 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@rosen-chains/evm': major | ||
--- | ||
|
||
add chain name and native token id to constructor to fix extractor intialization |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@rosen-chains/ethereum': patch | ||
--- | ||
|
||
fix extractor initialization |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@rosen-chains/evm': patch | ||
--- | ||
|
||
fix tx serialization for rosen-extractor |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@rosen-chains/evm-rpc': patch | ||
--- | ||
|
||
fix transaction submission |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,37 @@ | ||
import { EvmChain } from '@rosen-chains/evm'; | ||
import { | ||
AbstractEvmNetwork, | ||
EvmChain, | ||
EvmConfigs, | ||
TssSignFunction, | ||
} from '@rosen-chains/evm'; | ||
import { RosenTokens } from '@rosen-bridge/tokens'; | ||
import { AbstractLogger } from '@rosen-bridge/abstract-logger'; | ||
import { ETH, ETHEREUM_CHAIN } from './constants'; | ||
|
||
class EthereumChain extends EvmChain { | ||
CHAIN = ETHEREUM_CHAIN; | ||
NATIVE_TOKEN_ID = ETH; | ||
CHAIN_ID = 1n; | ||
|
||
constructor( | ||
network: AbstractEvmNetwork, | ||
configs: EvmConfigs, | ||
tokens: RosenTokens, | ||
supportedTokens: Array<string>, | ||
signFunction: TssSignFunction, | ||
logger?: AbstractLogger | ||
) { | ||
super( | ||
network, | ||
configs, | ||
tokens, | ||
supportedTokens, | ||
signFunction, | ||
ETHEREUM_CHAIN, | ||
ETH, | ||
logger | ||
); | ||
} | ||
} | ||
|
||
export default EthereumChain; |
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
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
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