Skip to content

Instantly share code, notes, and snippets.

View defido's full-sized avatar
🐕
I am dog!

defido

🐕
I am dog!
  • THE VERSE
View GitHub Profile
@defido
defido / Find release logs of CCB
Last active April 10, 2022 22:39
Find release logs of CCB
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
}
# @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
from vyper.interfaces import ERC20
from vyper.interfaces import ERC20Detailed
# implements: ERC20
# implements: ERC20Detailed
interface ICrossChainBridgeRouter:
# addresses of other ccb-related contracts
@external
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