0xweb
Version:
Contract package manager and other web3 tools
29 lines (25 loc) • 847 B
text/typescript
import di from 'a-di';
import { $config } from '@dequanto/utils/$config';
import { PolyWeb3Client } from '@dequanto/clients/PolyWeb3Client';
import { BlockchainExplorer } from './BlockchainExplorer';
const contracts = $config.get('contracts.polygon', []);
export class Polyscan extends BlockchainExplorer {
constructor () {
super({
platform: 'polygon',
ABI_CACHE: `./cache/poly/abis.json`,
CONTRACTS: contracts,
getWeb3 () {
return di.resolve(PolyWeb3Client)
},
getConfig () {
const config = $config.get('blockchainExplorer.polygon');
return {
key: config?.key,
host: config?.host,
www: config?.www,
};
}
})
}
}