This file contains hidden or 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
| let blocksInAday; | |
| let targetChainId = Number(decodedParamsInput['targetChainId']); | |
| console.log(decodedParamsInput['targetChainId']); | |
| if(targetChainId === 1) { // ETH 8500 blocks in a day | |
| blocksInAday = 8500; | |
| } else if (targetChainId === 56) { // BNB Smart chain 35000 | |
| blocksInAday = 25000 | |
| } else if (targetChainId === 137) { | |
| blocksInAday = 40000 | |
| } |
This file contains hidden or 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
| # @dev Implementation of ERC-20 token standard. | |
| # @author Takayuki Jimba (@yudetamago) | |
| # https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md | |
| from vyper.interfaces import ERC20 | |
| from vyper.interfaces import ERC20Detailed | |
| implements: ERC20 | |
| implements: ERC20Detailed |
This file contains hidden or 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
| from vyper.interfaces import ERC20 | |
| from vyper.interfaces import ERC20Detailed | |
| # implements: ERC20 | |
| # implements: ERC20Detailed | |
| interface ICrossChainBridgeRouter: | |
| # addresses of other ccb-related contracts | |
| @external |
This file contains hidden or 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
| from vyper.interfaces import ERC20 | |
| from vyper.interfaces import ERC20Detailed | |
| # import ICrossChainBridgeRouter as ICrossChainBridgeRouter | |
| # import IERC20 as IERC20 | |
| implements: ERC20 | |
| implements: ERC20Detailed | |
| # implements: ICrossChainBridgeRouter | |
| # implements: IERC20 |