@syncswap/sdk
Version:
SyncSwap TypeScript SDK for building DeFi applications
47 lines • 2.25 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ContractTypes = exports.ContractType = void 0;
class ContractType {
constructor(name, abi) {
this.name = name;
this.abi = abi;
}
static of(name, abi) {
return new ContractType(name, abi);
}
}
exports.ContractType = ContractType;
class ContractTypes {
}
exports.ContractTypes = ContractTypes;
// The wrapped ETH.
ContractTypes.WETH = ContractType.of("WETH", "weth");
// The common interface for pools.
ContractTypes.POOL = ContractType.of("POOL", "pool");
// The common interface for ERC20 tokens.
ContractTypes.TOKEN = ContractType.of("TOKEN", "erc20");
// The common interface for ERC4626 tokens.
ContractTypes.ERC4626 = ContractType.of("ERC4626", "erc4626");
// The pool master.
ContractTypes.POOL_MASTER = ContractType.of("POOL_MASTER", "pool_master");
// The classic factory.
ContractTypes.CLASSIC_FACTORY = ContractType.of("classic_factory", "factory");
ContractTypes.POOL_FACTORY = ContractType.of("common_pool_factory", "factory");
// The stable factory.
ContractTypes.STABLE_FACTORY = ContractType.of("STABLE_POOL_FACTORY", "factory");
// The crypto factory.
ContractTypes.CRYPTO_FACTORY = ContractType.of("CRYPTO_POOL_FACTORY", "factory");
ContractTypes.NFT_POSITION_MANAGER = ContractType.of("NFT_POSITION_MANAGER", "nft_position_manager");
ContractTypes.QUOTER = ContractType.of("QUOTER", "quoter");
ContractTypes.ROUTER_V3 = ContractType.of("ROUTER_V3", "routerv3");
ContractTypes.ROUTER_V2 = ContractType.of("ROUTER2", "router2");
// The multicall.
ContractTypes.MULTICALL = ContractType.of("MULTICALL", "multicall");
ContractTypes.MULTICALL2 = ContractType.of("MULTICALL2", "multicall2");
ContractTypes.MULTICALL3 = ContractType.of("MULTICALL3", "multicall3");
ContractTypes.WRAPPER_ROUTER = ContractType.of("WRAPPER_ROUTER", "wrapper_router");
ContractTypes.WRAPPER_ROUTER_V3 = ContractType.of("WRAPPER_ROUTER_V3", "wrapper_router_v3");
ContractTypes.ROUTE_HELPER = ContractType.of("ROUTE_HELPER", "route_helper");
ContractTypes.TOKEN_HELPER = ContractType.of("TOKEN_HELPER", "token_helper");
ContractTypes.POOL_HELPER = ContractType.of("POOL_HELPER", "pool_helper");
//# sourceMappingURL=contractTypes.js.map