bitcore
bitcore copied to clipboard
[Bitcore] Support Arb, Base, and Op Chains
Features
Provides new chain support in BWS, BWC, and CWC Add's streaming support to externally provided historical chain state.
Propositions
Token Suffix Standards
We will use the chain abbreviation as a token suffix as opposed to the first letter of the chain. So USDC on Arbitrum would be usdc_arb instead of usdc_a (i.e usdc_m for matic). This is to keep things easier to keep track as we adopt the increasing amount of chains.
Axios to replace request
Request has been deprecated for over three years. Axios is already being used by some dependencies and Insight. Axios also provides cleaner handling of responses. I propose Axios to be used all API requests this moving forward.
Chain != Coin
Bitcore (currently most prevalent in BWC) makes the assumption that a transactions coin would equal its chain. This is no longer true as more chains appear that utilize another coin as their gas token (i.e Optimism using ETH).