anyswap / CrossChain-Bridge

Cross-Chain bridge based on Anyswap MPC network.
GNU General Public License v3.0
281 stars 162 forks source link

Add blocknet src bridge #3

Closed gaozhengxin closed 3 years ago

gaozhengxin commented 3 years ago

tokens/block are copied from tokens/btc and adapted for blocknet. Callapi functions must be rewritten because electrs db cannot apply on blocknet. Many other functions depend on callapi functions, thus tokens/block.Bridge is not designed inheriting from tokens/btc.Bridge. Init constants are redefined in tokens/block. ltc.Bridge's inheritage from btc.Bridge is also cancelled. Must pass ltc or block bridge instance to btc.BridgeInstance.