chore: sync submodule state (parent ref update)

Made-with: Cursor
This commit is contained in:
defiQUG
2026-03-02 12:14:14 -08:00
parent b6a776e5d7
commit 25c96e210a
316 changed files with 29779 additions and 677 deletions

36
provider/index.js Normal file
View File

@@ -0,0 +1,36 @@
/**
* MetaMask Dual-Chain Provider
* Connect MetaMask and other Web3 providers to ChainID 138 (DeFi Oracle Meta Mainnet)
* and Ethereum Mainnet (1). Includes chain configs, token list, and oracle helpers.
*
* Usage:
* import { addChainsToWallet, switchChain, getEthUsdPrice, getTokensByChain } from './provider'
* await addChainsToWallet(window.ethereum)
* const price = await getEthUsdPrice(provider, 138)
*/
export {
CHAINS,
CHAIN_138,
CHAIN_MAINNET,
CHAIN_ALL_MAINNET,
getChainById,
getChainByHex,
} from './chains.js'
export {
ORACLES_CHAIN_138,
ORACLES_MAINNET,
ORACLE_ABI,
getEthUsdPrice,
getOracleConfig,
} from './oracles.js'
export {
TOKEN_LIST,
TOKEN_LIST_URL,
getTokensByChain,
getToken,
} from './tokens.js'
export { addChainsToWallet, switchChain, addTokenToWallet, ensureChain } from './wallet.js'